From adb934701975f6b0214475d1a8d0d1ce727b9d4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 16:32:59 +0200 Subject: Adding upstream version 3.38.1. Signed-off-by: Daniel Baumann --- CONTRIBUTING.md | 34 + COPYING | 340 + NEWS | 2412 ++ README.md | 56 + build-aux/flatpak/.gitignore | 2 + build-aux/flatpak/1-build-and-install.sh | 3 + build-aux/flatpak/2-run-app.sh | 3 + build-aux/flatpak/3-teardown.sh | 3 + build-aux/flatpak/org.gnome.gedit.yml | 87 + build-aux/meson/post_install.py | 30 + build-aux/osx/README | 24 + build-aux/osx/build/.gitignore | 5 + build-aux/osx/build/README | 131 + build-aux/osx/build/build | 336 + build-aux/osx/build/config/jhbuildrc-gedit | 40 + build-aux/osx/build/modulesets/bootstrap.modules | 249 + build-aux/osx/build/modulesets/gedit.modules | 553 + .../patches/berkeleydb-nonsrctree/atomic.patch | 20 + .../modulesets/patches/berkeleydb/atomic.patch | 20 + .../patches/enchant/enchant-applespell.patch | 368 + .../modulesets/patches/enchant/enchant-gsize.patch | 97 + .../patches/enchant/enchant-relocatable.patch | 40 + .../gettext-runtime/gettext-bug33999-stpncpy.patch | 63 + .../gettext-tools/gettext-bug33999-stpncpy.patch | 63 + ...1-Bug-724590-GSlice-slab_stack-corruption.patch | 28 + .../gobject-introspection/girscanner-objc.patch | 20 + ...722-Drag-and-Drop-sometimes-stops-working.patch | 274 + ...GtkDragSourceOwner-pasteboardChangedOwner.patch | 39 + .../patches/gtk+/gtk+-2-m4-creation.patch | 5 + ...ed-exception-from-attempting-to-access-me.patch | 39 + .../itstool/itstool.use-correct-libxml.patch | 28 + .../patches/libgcrypt/libgcrypt-build-clang.patch | 97 + .../libxml2-Bug-686118-pthreads_once_init.patch | 33 + .../modulesets/patches/readline/readline62-001 | 46 + .../modulesets/patches/readline/readline62-002 | 57 + .../modulesets/patches/readline/readline62-003 | 76 + .../modulesets/patches/readline/readline62-004 | 108 + ...0001-Bug-70255-Build-fails-with-glib-2.38.patch | 42 + .../updater/gedit-bootstrap-overrides.modules | 119 + .../osx/build/updater/gedit-overrides.modules | 211 + .../build/updater/patches/enchant-applespell.patch | 368 + .../updater/patches/enchant-relocatable.patch | 40 + .../patches/gedit-plugins-disable-terminal.patch | 30 + build-aux/osx/build/updater/update_modulesets.py | 320 + build-aux/osx/bundle/.gitignore | 1 + build-aux/osx/bundle/bundle | 327 + build-aux/osx/bundle/data/Info.plist.in | 268 + build-aux/osx/bundle/data/gedit | 66 + build-aux/osx/bundle/data/gedit.bundle | 122 + build-aux/osx/bundle/data/gedit.icns | Bin 0 -> 262295 bytes build-aux/osx/bundle/data/geditdoc.icns | Bin 0 -> 38861 bytes build-aux/osx/bundle/data/geditpkg.icns | Bin 0 -> 290002 bytes build-aux/osx/bundle/data/template.dmg.bz2 | Bin 0 -> 2101803 bytes build-aux/osx/bundle/images/background.png | Bin 0 -> 398486 bytes build-aux/osx/bundle/images/background.svg | 1456 + build-aux/osx/bundle/images/gedit-128x128.png | Bin 0 -> 17789 bytes build-aux/osx/bundle/images/gedit-16x16.png | Bin 0 -> 980 bytes build-aux/osx/bundle/images/gedit-256x256.png | Bin 0 -> 49959 bytes build-aux/osx/bundle/images/gedit-32x32.png.png | Bin 0 -> 2173 bytes build-aux/osx/bundle/images/gedit-512x512.png | Bin 0 -> 134171 bytes build-aux/osx/bundle/images/gedit-icon.svg | 24452 +++++++++++++ build-aux/osx/bundle/images/gedit-pkg-128x128.png | Bin 0 -> 19341 bytes build-aux/osx/bundle/images/gedit-pkg-16x16.png | Bin 0 -> 1012 bytes build-aux/osx/bundle/images/gedit-pkg-256x256.png | Bin 0 -> 55224 bytes build-aux/osx/bundle/images/gedit-pkg-32x32.png | Bin 0 -> 2265 bytes build-aux/osx/bundle/images/gedit-pkg-512x512.png | Bin 0 -> 148664 bytes build-aux/osx/bundle/images/gedit-pkg-icon.svg | 34171 +++++++++++++++++++ build-aux/snap/snapcraft.yaml | 192 + data/gedit-osx.gschema.override | 5 + data/gedit.1 | 104 + data/icons/meson.build | 9 + data/icons/org.gnome.gedit-symbolic.svg | 39 + data/icons/org.gnome.gedit.Devel.svg | 1 + data/icons/org.gnome.gedit.svg | 376 + data/meson.build | 97 + data/org.gnome.gedit-ms-windows.gschema.override | 5 + data/org.gnome.gedit.appdata.xml.in | 49 + data/org.gnome.gedit.desktop.in | 26 + data/org.gnome.gedit.gschema.xml.in | 308 + data/org.gnome.gedit.service.in | 3 + data/privacy-policy.md | 4 + data/screenshot.png | Bin 0 -> 95886 bytes docs/build.md | 92 + docs/class-diagram.dia | Bin 0 -> 6866 bytes docs/common-bugs.md | 14 + docs/gedit-development-getting-started.md | 100 + docs/how-to-write-a-gedit-plugin.md | 45 + docs/reference/api-breaks.xml | 93 + docs/reference/gedit-docs.xml | 59 + docs/reference/gedit-sections.txt | 367 + docs/reference/meson.build | 42 + docs/roadmap.md | 127 + gedit.doap | 69 + gedit/Gedit-3.0.metadata | 24 + gedit/Gedit.py | 99 + gedit/gedit-app-activatable.c | 117 + gedit/gedit-app-activatable.h | 64 + gedit/gedit-app-osx.h | 46 + gedit/gedit-app-osx.m | 602 + gedit/gedit-app-private.h | 52 + gedit/gedit-app-win32.c | 144 + gedit/gedit-app-win32.h | 38 + gedit/gedit-app.c | 1661 + gedit/gedit-app.h | 82 + gedit/gedit-close-confirmation-dialog.c | 551 + gedit/gedit-close-confirmation-dialog.h | 46 + gedit/gedit-commands-documents.c | 106 + gedit/gedit-commands-edit.c | 205 + gedit/gedit-commands-file-print.c | 49 + gedit/gedit-commands-file.c | 2165 ++ gedit/gedit-commands-help.c | 122 + gedit/gedit-commands-private.h | 172 + gedit/gedit-commands-search.c | 696 + gedit/gedit-commands-view.c | 168 + gedit/gedit-commands.h | 63 + gedit/gedit-debug.c | 236 + gedit/gedit-debug.h | 85 + gedit/gedit-dirs.c | 176 + gedit/gedit-dirs.h | 55 + gedit/gedit-document-private.h | 49 + gedit/gedit-document.c | 1659 + gedit/gedit-document.h | 97 + gedit/gedit-documents-panel.c | 1739 + gedit/gedit-documents-panel.h | 40 + gedit/gedit-encoding-items.c | 108 + gedit/gedit-encoding-items.h | 40 + gedit/gedit-encodings-combo-box.c | 445 + gedit/gedit-encodings-combo-box.h | 43 + gedit/gedit-encodings-dialog.c | 884 + gedit/gedit-encodings-dialog.h | 37 + gedit/gedit-factory.c | 50 + gedit/gedit-factory.h | 53 + gedit/gedit-file-chooser-dialog-gtk.c | 465 + gedit/gedit-file-chooser-dialog-gtk.h | 45 + gedit/gedit-file-chooser-dialog.c | 258 + gedit/gedit-file-chooser-dialog.h | 123 + gedit/gedit-file-chooser-open-dialog.c | 125 + gedit/gedit-file-chooser-open-dialog.h | 58 + gedit/gedit-file-chooser-open-native.c | 84 + gedit/gedit-file-chooser-open-native.h | 58 + gedit/gedit-file-chooser-open.c | 77 + gedit/gedit-file-chooser-open.h | 58 + gedit/gedit-file-chooser.c | 781 + gedit/gedit-file-chooser.h | 91 + gedit/gedit-highlight-mode-dialog.c | 104 + gedit/gedit-highlight-mode-dialog.h | 42 + gedit/gedit-highlight-mode-selector.c | 378 + gedit/gedit-highlight-mode-selector.h | 46 + gedit/gedit-history-entry.c | 470 + gedit/gedit-history-entry.h | 55 + gedit/gedit-io-error-info-bar.c | 870 + gedit/gedit-io-error-info-bar.h | 52 + gedit/gedit-menu-extension.c | 187 + gedit/gedit-menu-extension.h | 47 + gedit/gedit-menu-stack-switcher.c | 420 + gedit/gedit-menu-stack-switcher.h | 43 + gedit/gedit-message-bus.c | 1259 + gedit/gedit-message-bus.h | 154 + gedit/gedit-message.c | 321 + gedit/gedit-message.h | 77 + gedit/gedit-multi-notebook.c | 1125 + gedit/gedit-multi-notebook.h | 148 + gedit/gedit-notebook-popup-menu.c | 297 + gedit/gedit-notebook-popup-menu.h | 39 + gedit/gedit-notebook-stack-switcher.c | 362 + gedit/gedit-notebook-stack-switcher.h | 71 + gedit/gedit-notebook.c | 672 + gedit/gedit-notebook.h | 100 + gedit/gedit-pango.c | 204 + gedit/gedit-pango.h | 32 + gedit/gedit-plugins-engine.c | 136 + gedit/gedit-plugins-engine.h | 39 + gedit/gedit-preferences-dialog.c | 873 + gedit/gedit-preferences-dialog.h | 35 + gedit/gedit-print-job.c | 823 + gedit/gedit-print-job.h | 70 + gedit/gedit-print-preview.c | 1158 + gedit/gedit-print-preview.h | 39 + gedit/gedit-progress-info-bar.c | 177 + gedit/gedit-progress-info-bar.h | 53 + gedit/gedit-recent.c | 324 + gedit/gedit-recent.h | 56 + gedit/gedit-replace-dialog.c | 819 + gedit/gedit-replace-dialog.h | 58 + gedit/gedit-settings.c | 440 + gedit/gedit-settings.h | 108 + gedit/gedit-status-menu-button.c | 163 + gedit/gedit-status-menu-button.h | 43 + gedit/gedit-statusbar.c | 258 + gedit/gedit-statusbar.h | 53 + gedit/gedit-tab-label.c | 295 + gedit/gedit-tab-label.h | 41 + gedit/gedit-tab-private.h | 81 + gedit/gedit-tab.c | 3059 ++ gedit/gedit-tab.h | 77 + gedit/gedit-utils.c | 620 + gedit/gedit-utils.h | 69 + gedit/gedit-view-activatable.c | 96 + gedit/gedit-view-activatable.h | 47 + gedit/gedit-view-frame.c | 1592 + gedit/gedit-view-frame.h | 45 + gedit/gedit-view.c | 918 + gedit/gedit-view.h | 90 + gedit/gedit-window-activatable.c | 120 + gedit/gedit-window-activatable.h | 49 + gedit/gedit-window-private.h | 118 + gedit/gedit-window.c | 3592 ++ gedit/gedit-window.h | 178 + gedit/gedit.c | 180 + gedit/meson.build | 270 + gedit/resources/css/gedit-style-osx.css | 129 + gedit/resources/css/gedit-style.css | 31 + gedit/resources/css/gedit.adwaita.css | 61 + gedit/resources/css/gedit.highcontrast.css | 5 + gedit/resources/gedit.gresource.xml.in | 26 + gedit/resources/gtk/menus-common.ui | 402 + gedit/resources/gtk/menus-traditional.ui | 143 + gedit/resources/gtk/menus.ui | 132 + gedit/resources/meson.build | 21 + gedit/resources/ui/gedit-encodings-dialog.ui | 278 + gedit/resources/ui/gedit-highlight-mode-dialog.ui | 87 + .../resources/ui/gedit-highlight-mode-selector.ui | 83 + gedit/resources/ui/gedit-preferences-dialog.ui | 766 + gedit/resources/ui/gedit-print-preferences.ui | 518 + gedit/resources/ui/gedit-print-preview.ui | 417 + gedit/resources/ui/gedit-progress-info-bar.ui | 88 + gedit/resources/ui/gedit-replace-dialog.ui | 246 + gedit/resources/ui/gedit-shortcuts.ui | 487 + gedit/resources/ui/gedit-status-menu-button.ui | 51 + gedit/resources/ui/gedit-statusbar.ui | 102 + gedit/resources/ui/gedit-tab-label.ui | 50 + gedit/resources/ui/gedit-view-frame.ui | 88 + gedit/resources/ui/gedit-window.ui | 422 + help/C/check_status.sh | 43 + help/C/figures/gedit-html-snippet.png | Bin 0 -> 3139 bytes help/C/figures/gedit-icon.png | Bin 0 -> 815 bytes help/C/figures/gedit3-screenshot.png | Bin 0 -> 14022 bytes help/C/gedit-change-color-scheme.page | 66 + help/C/gedit-change-default-font.page | 43 + help/C/gedit-close-file.page | 27 + help/C/gedit-create-new-file.page | 32 + help/C/gedit-edit-as-root.page | 43 + help/C/gedit-files-basic.page | 21 + help/C/gedit-full-screen.page | 58 + help/C/gedit-open-files-from-sidepane.page | 69 + help/C/gedit-open-files.page | 50 + help/C/gedit-open-on-server.page | 52 + help/C/gedit-open-recent.page | 35 + help/C/gedit-plugin-guide.page | 48 + help/C/gedit-plugins-change-case.page | 54 + help/C/gedit-plugins-doc-stats.page | 44 + help/C/gedit-plugins-external-tools.page | 46 + help/C/gedit-plugins-file-browser.page | 49 + help/C/gedit-plugins-insert-date-time.page | 50 + help/C/gedit-plugins-install.page | 64 + help/C/gedit-plugins-modelines.page | 100 + help/C/gedit-plugins-pyconsole.page | 31 + help/C/gedit-plugins-quick-open.page | 67 + help/C/gedit-plugins-snippets.page | 187 + help/C/gedit-plugins-sort.page | 89 + help/C/gedit-printing-order.page | 69 + help/C/gedit-printing-select.page | 42 + help/C/gedit-printing.page | 126 + help/C/gedit-quickstart.page | 38 + help/C/gedit-replace.page | 153 + help/C/gedit-save-file.page | 37 + help/C/gedit-search.page | 110 + help/C/gedit-spellcheck.page | 135 + help/C/gedit-syntax-highlighting.page | 37 + help/C/gedit-tab-groups.page | 104 + help/C/gedit-tabs-moving.page | 112 + help/C/gedit-tabs.page | 58 + help/C/gedit-undo-redo.page | 42 + help/C/gnome-help.sct | 22 + help/C/index.page | 54 + help/C/legal.xml | 6 + help/C/schematron.sh | 1 + help/LINGUAS | 32 + help/ar/ar.po | 4057 +++ help/bg/bg.po | 3995 +++ help/bg/figures/gedit-html-snippet.png | Bin 0 -> 3990 bytes help/bg/figures/gedit3-screenshot.png | Bin 0 -> 14730 bytes help/ca/ca.po | 4138 +++ help/cs/cs.po | 3520 ++ help/da/da.po | 4529 +++ help/da/figures/gedit-html-snippet.png | Bin 0 -> 2806 bytes help/da/figures/gedit3-screenshot.png | Bin 0 -> 14086 bytes help/de/de.po | 4219 +++ help/de/figures/gedit-html-snippet.png | Bin 0 -> 2333 bytes help/de/figures/gedit3-screenshot.png | Bin 0 -> 14122 bytes help/el/el.po | 6148 ++++ help/el/figures/gedit-html-snippet.png | Bin 0 -> 3860 bytes help/el/figures/gedit3-screenshot.png | Bin 0 -> 16251 bytes help/en_GB/en_GB.po | 3495 ++ help/es/es.po | 9581 ++++++ help/eu/eu.po | 4512 +++ help/fi/fi.po | 4404 +++ help/fr/figures/gedit-html-snippet.png | Bin 0 -> 7058 bytes help/fr/figures/gedit3-screenshot.png | Bin 0 -> 16805 bytes help/fr/fr.po | 4288 +++ help/gl/gl.po | 4325 +++ help/hu/figures/gedit-html-snippet.png | Bin 0 -> 4053 bytes help/hu/figures/gedit3-screenshot.png | Bin 0 -> 14203 bytes help/hu/hu.po | 4366 +++ help/id/id.po | 3543 ++ help/it/it.po | 4679 +++ help/ja/ja.po | 2226 ++ help/ko/ko.po | 4399 +++ help/lv/lv.po | 4234 +++ help/meson.build | 53 + help/oc/oc.po | 3650 ++ help/pl/figures/gedit-html-snippet.png | Bin 0 -> 2216 bytes help/pl/figures/gedit3-screenshot.png | Bin 0 -> 21372 bytes help/pl/pl.po | 3471 ++ help/pt_BR/figures/gedit-html-snippet.png | Bin 0 -> 4064 bytes help/pt_BR/figures/gedit3-screenshot.png | Bin 0 -> 16787 bytes help/pt_BR/pt_BR.po | 4660 +++ help/ro/figures/gedit-html-snippet.png | Bin 0 -> 4015 bytes help/ro/figures/gedit3-screenshot.png | Bin 0 -> 18019 bytes help/ro/ro.po | 5563 +++ help/ru/ru.po | 4406 +++ help/sl/sl.po | 2592 ++ help/sv/figures/gedit-html-snippet.png | Bin 0 -> 3438 bytes help/sv/figures/gedit3-screenshot.png | Bin 0 -> 16003 bytes help/sv/sv.po | 4168 +++ help/te/te.po | 3262 ++ help/th/th.po | 3832 +++ help/uk/uk.po | 3535 ++ help/zh_CN/zh_CN.po | 9066 +++++ help/zh_HK/zh_HK.po | 2717 ++ help/zh_TW/zh_TW.po | 2686 ++ logo.png | Bin 0 -> 2424 bytes meson.build | 96 + meson_options.txt | 24 + plugins/docinfo/docinfo.plugin.desktop.in | 8 + plugins/docinfo/gedit-docinfo-plugin.c | 638 + plugins/docinfo/gedit-docinfo-plugin.h | 63 + plugins/docinfo/meson.build | 34 + .../docinfo/resources/gedit-docinfo.gresource.xml | 6 + plugins/docinfo/resources/meson.build | 8 + .../docinfo/resources/ui/gedit-docinfo-plugin.ui | 337 + plugins/externaltools/data/build.desktop.in | 9 + plugins/externaltools/data/build.tool.in | 15 + plugins/externaltools/data/meson.build | 46 + .../data/open-terminal-here-osx.desktop.in | 9 + .../data/open-terminal-here-osx.tool.in | 16 + .../data/open-terminal-here.desktop.in | 9 + .../externaltools/data/open-terminal-here.tool.in | 4 + .../data/remove-trailing-spaces.desktop.in | 9 + .../data/remove-trailing-spaces.tool.in | 3 + plugins/externaltools/data/run-command.desktop.in | 8 + plugins/externaltools/data/run-command.tool.in | 4 + .../externaltools/data/send-to-fpaste.desktop.in | 11 + plugins/externaltools/data/send-to-fpaste.tool.in | 26 + .../externaltools/externaltools.plugin.desktop.in | 9 + plugins/externaltools/meson.build | 35 + ...g.gnome.gedit.plugins.externaltools.gschema.xml | 20 + plugins/externaltools/scripts/gedit-tool-merge.pl | 78 + plugins/externaltools/scripts/meson.build | 13 + plugins/externaltools/tests/meson.build | 21 + plugins/externaltools/tests/testlinkparsing.py | 203 + plugins/externaltools/tools/__init__.py | 26 + plugins/externaltools/tools/appactivatable.py | 178 + plugins/externaltools/tools/capture.py | 268 + plugins/externaltools/tools/filelookup.py | 165 + plugins/externaltools/tools/functions.py | 365 + plugins/externaltools/tools/library.py | 520 + plugins/externaltools/tools/linkparsing.py | 252 + plugins/externaltools/tools/manager.py | 878 + plugins/externaltools/tools/meson.build | 36 + plugins/externaltools/tools/outputpanel.py | 247 + plugins/externaltools/tools/outputpanel.ui | 49 + plugins/externaltools/tools/tools.ui | 548 + plugins/externaltools/tools/windowactivatable.py | 141 + plugins/filebrowser/filebrowser.plugin.desktop.in | 12 + plugins/filebrowser/gedit-file-bookmarks-store.c | 920 + plugins/filebrowser/gedit-file-bookmarks-store.h | 91 + .../gedit-file-browser-enum-register.c.template | 20 + ...gedit-file-browser-enum-types-stage1.c.template | 45 + .../gedit-file-browser-enum-types.h.template | 28 + plugins/filebrowser/gedit-file-browser-error.h | 41 + plugins/filebrowser/gedit-file-browser-messages.c | 1074 + plugins/filebrowser/gedit-file-browser-messages.h | 33 + plugins/filebrowser/gedit-file-browser-plugin.c | 972 + plugins/filebrowser/gedit-file-browser-plugin.h | 70 + plugins/filebrowser/gedit-file-browser-store.c | 3672 ++ plugins/filebrowser/gedit-file-browser-store.h | 188 + plugins/filebrowser/gedit-file-browser-utils.c | 223 + plugins/filebrowser/gedit-file-browser-utils.h | 46 + plugins/filebrowser/gedit-file-browser-view.c | 1323 + plugins/filebrowser/gedit-file-browser-view.h | 84 + plugins/filebrowser/gedit-file-browser-widget.c | 3150 ++ plugins/filebrowser/gedit-file-browser-widget.h | 126 + plugins/filebrowser/meson.build | 127 + plugins/filebrowser/messages.xml | 47 + .../gedit-file-browser-message-activation.c | 105 + .../gedit-file-browser-message-activation.h | 69 + .../gedit-file-browser-message-add-filter.c | 162 + .../gedit-file-browser-message-add-filter.h | 69 + ...edit-file-browser-message-extend-context-menu.c | 128 + ...edit-file-browser-message-extend-context-menu.h | 70 + .../messages/gedit-file-browser-message-get-root.c | 127 + .../messages/gedit-file-browser-message-get-root.h | 69 + .../messages/gedit-file-browser-message-get-view.c | 127 + .../messages/gedit-file-browser-message-get-view.h | 69 + .../gedit-file-browser-message-id-location.c | 190 + .../gedit-file-browser-message-id-location.h | 70 + .../messages/gedit-file-browser-message-id.c | 107 + .../messages/gedit-file-browser-message-id.h | 69 + .../gedit-file-browser-message-set-emblem.c | 142 + .../gedit-file-browser-message-set-emblem.h | 69 + .../gedit-file-browser-message-set-markup.c | 143 + .../gedit-file-browser-message-set-markup.h | 70 + .../messages/gedit-file-browser-message-set-root.c | 149 + .../messages/gedit-file-browser-message-set-root.h | 69 + plugins/filebrowser/messages/meson.build | 25 + plugins/filebrowser/messages/messages.h | 16 + ...org.gnome.gedit.plugins.filebrowser.gschema.xml | 58 + .../resources/gedit-file-browser.gresource.xml | 7 + plugins/filebrowser/resources/meson.build | 8 + .../resources/ui/gedit-file-browser-menus.ui | 84 + .../resources/ui/gedit-file-browser-widget.ui | 275 + plugins/generate-list.sh | 44 + plugins/list-of-gedit-plugins.md | 45 + plugins/meson.build | 31 + plugins/modelines/gedit-modeline-plugin.c | 225 + plugins/modelines/gedit-modeline-plugin.h | 60 + plugins/modelines/language-mappings | 14 + plugins/modelines/meson.build | 42 + plugins/modelines/modeline-parser.c | 899 + plugins/modelines/modeline-parser.h | 36 + plugins/modelines/modelines.plugin.desktop.in | 8 + plugins/pythonconsole/meson.build | 31 + ...g.gnome.gedit.plugins.pythonconsole.gschema.xml | 30 + .../pythonconsole/pythonconsole.plugin.desktop.in | 12 + plugins/pythonconsole/pythonconsole/__init__.py | 75 + plugins/pythonconsole/pythonconsole/config.py | 74 + plugins/pythonconsole/pythonconsole/config.ui | 70 + plugins/pythonconsole/pythonconsole/console.py | 415 + plugins/pythonconsole/pythonconsole/meson.build | 24 + .../quickhighlight/gedit-quick-highlight-plugin.c | 483 + .../quickhighlight/gedit-quick-highlight-plugin.h | 63 + plugins/quickhighlight/meson.build | 32 + .../quickhighlight.plugin.desktop.in | 8 + plugins/quickopen/meson.build | 19 + plugins/quickopen/quickopen.plugin.desktop.in | 12 + plugins/quickopen/quickopen/__init__.py | 193 + plugins/quickopen/quickopen/popup.py | 617 + plugins/quickopen/quickopen/virtualdirs.py | 87 + plugins/snippets/data/c.xml | 281 + plugins/snippets/data/chdr.xml | 258 + plugins/snippets/data/cpp.xml | 180 + plugins/snippets/data/css.xml | 557 + plugins/snippets/data/docbook.xml | 2645 ++ plugins/snippets/data/fortran.xml | 164 + plugins/snippets/data/global.xml | 2 + plugins/snippets/data/haskell.xml | 14 + plugins/snippets/data/html.xml | 252 + plugins/snippets/data/idl.xml | 49 + plugins/snippets/data/java.xml | 91 + plugins/snippets/data/javascript.xml | 10 + plugins/snippets/data/lang/snippets.lang | 160 + plugins/snippets/data/latex.xml | 38 + plugins/snippets/data/mallard.xml | 316 + plugins/snippets/data/markdown.xml | 98 + plugins/snippets/data/perl.xml | 126 + plugins/snippets/data/php.xml | 192 + plugins/snippets/data/python.xml | 112 + plugins/snippets/data/rpmspec.xml | 22 + plugins/snippets/data/ruby.xml | 166 + plugins/snippets/data/sh.xml | 47 + plugins/snippets/data/snippets.xml | 98 + plugins/snippets/data/tcl.xml | 55 + plugins/snippets/data/xml.xml | 25 + plugins/snippets/data/xslt.xml | 143 + plugins/snippets/meson.build | 23 + plugins/snippets/snippets.plugin.desktop.in | 9 + plugins/snippets/snippets/__init__.py | 26 + plugins/snippets/snippets/appactivatable.py | 133 + plugins/snippets/snippets/completion.py | 187 + plugins/snippets/snippets/document.py | 1097 + plugins/snippets/snippets/exporter.py | 122 + plugins/snippets/snippets/helper.py | 204 + plugins/snippets/snippets/importer.py | 134 + plugins/snippets/snippets/languagemanager.py | 40 + plugins/snippets/snippets/library.py | 989 + plugins/snippets/snippets/manager.py | 1143 + plugins/snippets/snippets/meson.build | 39 + plugins/snippets/snippets/parser.py | 256 + plugins/snippets/snippets/placeholder.py | 714 + plugins/snippets/snippets/shareddata.py | 83 + plugins/snippets/snippets/signals.py | 90 + plugins/snippets/snippets/singleton.py | 27 + plugins/snippets/snippets/snippet.py | 360 + plugins/snippets/snippets/snippets.ui | 417 + plugins/snippets/snippets/substitutionparser.py | 203 + plugins/snippets/snippets/windowactivatable.py | 186 + plugins/sort/gedit-sort-plugin.c | 418 + plugins/sort/gedit-sort-plugin.h | 59 + plugins/sort/meson.build | 34 + plugins/sort/resources/gedit-sort.gresource.xml | 6 + plugins/sort/resources/meson.build | 8 + plugins/sort/resources/ui/gedit-sort-plugin.ui | 160 + plugins/sort/sort.plugin.desktop.in | 11 + plugins/spell/gedit-spell-app-activatable.c | 184 + plugins/spell/gedit-spell-app-activatable.h | 38 + plugins/spell/gedit-spell-plugin.c | 810 + plugins/spell/gedit-spell-plugin.h | 62 + plugins/spell/meson.build | 54 + .../org.gnome.gedit.plugins.spell.gschema.xml | 9 + plugins/spell/resources/gedit-spell.gresource.xml | 6 + plugins/spell/resources/meson.build | 8 + .../spell/resources/ui/gedit-spell-setup-dialog.ui | 97 + plugins/spell/spell.plugin.desktop.in | 11 + plugins/time/gedit-time-plugin.c | 1078 + plugins/time/gedit-time-plugin.h | 61 + plugins/time/meson.build | 68 + .../time/org.gnome.gedit.plugins.time.gschema.xml | 19 + plugins/time/resources/gedit-time.gresource.xml | 7 + plugins/time/resources/meson.build | 8 + plugins/time/resources/ui/gedit-time-dialog.ui | 198 + .../time/resources/ui/gedit-time-setup-dialog.ui | 214 + plugins/time/time.plugin.desktop.in | 8 + po/LINGUAS | 107 + po/POTFILES.in | 116 + po/POTFILES.skip | 1 + po/af.po | 6486 ++++ po/am.po | 4656 +++ po/an.po | 4034 +++ po/ar.po | 4254 +++ po/as.po | 5503 +++ po/ast.po | 4590 +++ po/az.po | 4814 +++ po/be.po | 3964 +++ po/be@latin.po | 5298 +++ po/bg.po | 3702 ++ po/bn.po | 5443 +++ po/bn_IN.po | 4131 +++ po/br.po | 4896 +++ po/bs.po | 3527 ++ po/ca.po | 3582 ++ po/ca@valencia.po | 3852 +++ po/ckb.po | 2884 ++ po/crh.po | 5251 +++ po/cs.po | 3566 ++ po/cy.po | 5549 +++ po/da.po | 3795 ++ po/de.po | 3883 +++ po/dz.po | 5463 +++ po/el.po | 5716 ++++ po/en@shaw.po | 5100 +++ po/en_CA.po | 4710 +++ po/en_GB.po | 6566 ++++ po/eo.po | 4221 +++ po/es.po | 5846 ++++ po/et.po | 2983 ++ po/eu.po | 3546 ++ po/fa.po | 6098 ++++ po/fi.po | 3969 +++ po/fr.po | 3900 +++ po/fur.po | 3805 +++ po/ga.po | 3541 ++ po/gd.po | 4279 +++ po/gl.po | 3751 ++ po/gu.po | 3923 +++ po/he.po | 5796 ++++ po/hi.po | 5430 +++ po/hr.po | 3795 ++ po/hu.po | 3708 ++ po/hy.po | 4552 +++ po/id.po | 3680 ++ po/is.po | 3765 ++ po/it.po | 3592 ++ po/ja.po | 3669 ++ po/ka.po | 4891 +++ po/kk.po | 4035 +++ po/km.po | 3596 ++ po/kn.po | 3989 +++ po/ko.po | 3597 ++ po/ku.po | 5181 +++ po/la.po | 4877 +++ po/ln.po | 3287 ++ po/lt.po | 3957 +++ po/lv.po | 3805 +++ po/mai.po | 5104 +++ po/meson.build | 7 + po/mg.po | 4865 +++ po/mi.po | 4591 +++ po/mjw.po | 3491 ++ po/mk.po | 4477 +++ po/ml.po | 3926 +++ po/mn.po | 4823 +++ po/mr.po | 4064 +++ po/ms.po | 5299 +++ po/my.po | 4971 +++ po/nb.po | 3604 ++ po/nds.po | 4801 +++ po/ne.po | 5876 ++++ po/nl.po | 4140 +++ po/nn.po | 3882 +++ po/oc.po | 4505 +++ po/or.po | 5337 +++ po/pa.po | 5844 ++++ po/pl.po | 3609 ++ po/ps.po | 4783 +++ po/pt.po | 6877 ++++ po/pt_BR.po | 4511 +++ po/ro.po | 6188 ++++ po/ru.po | 3919 +++ po/rw.po | 5490 +++ po/si.po | 4935 +++ po/sk.po | 4344 +++ po/sl.po | 4359 +++ po/sq.po | 5043 +++ po/sr.po | 4335 +++ po/sr@latin.po | 4249 +++ po/sv.po | 3974 +++ po/ta.po | 5467 +++ po/te.po | 5293 +++ po/tg.po | 3528 ++ po/th.po | 6004 ++++ po/tk.po | 4796 +++ po/tr.po | 3900 +++ po/ug.po | 3557 ++ po/uk.po | 3701 ++ po/vi.po | 4572 +++ po/wa.po | 4721 +++ po/xh.po | 4670 +++ po/zh_CN.po | 3656 ++ po/zh_HK.po | 3323 ++ po/zh_TW.po | 3613 ++ subprojects/libgd/Makefile.am | 230 + subprojects/libgd/README | 123 + subprojects/libgd/libgd.doap | 35 + subprojects/libgd/libgd.m4 | 140 + subprojects/libgd/libgd/gd-icon-utils.c | 394 + subprojects/libgd/libgd/gd-icon-utils.h | 49 + subprojects/libgd/libgd/gd-main-box-child.c | 186 + subprojects/libgd/libgd/gd-main-box-child.h | 54 + subprojects/libgd/libgd/gd-main-box-generic.c | 491 + subprojects/libgd/libgd/gd-main-box-generic.h | 73 + subprojects/libgd/libgd/gd-main-box-item.c | 242 + subprojects/libgd/libgd/gd-main-box-item.h | 55 + subprojects/libgd/libgd/gd-main-box.c | 548 + subprojects/libgd/libgd/gd-main-box.h | 61 + subprojects/libgd/libgd/gd-main-icon-box-child.c | 439 + subprojects/libgd/libgd/gd-main-icon-box-child.h | 43 + subprojects/libgd/libgd/gd-main-icon-box-icon.c | 366 + subprojects/libgd/libgd/gd-main-icon-box-icon.h | 40 + subprojects/libgd/libgd/gd-main-icon-box.c | 1042 + subprojects/libgd/libgd/gd-main-icon-box.h | 44 + subprojects/libgd/libgd/gd-main-icon-view.c | 440 + subprojects/libgd/libgd/gd-main-icon-view.h | 42 + subprojects/libgd/libgd/gd-main-list-view.c | 345 + subprojects/libgd/libgd/gd-main-list-view.h | 80 + subprojects/libgd/libgd/gd-main-view-generic.c | 330 + subprojects/libgd/libgd/gd-main-view-generic.h | 117 + subprojects/libgd/libgd/gd-main-view.c | 1160 + subprojects/libgd/libgd/gd-main-view.h | 65 + subprojects/libgd/libgd/gd-margin-container.c | 377 + subprojects/libgd/libgd/gd-margin-container.h | 75 + subprojects/libgd/libgd/gd-notification.c | 870 + subprojects/libgd/libgd/gd-notification.h | 67 + subprojects/libgd/libgd/gd-styled-text-renderer.c | 134 + subprojects/libgd/libgd/gd-styled-text-renderer.h | 51 + subprojects/libgd/libgd/gd-tagged-entry.c | 1240 + subprojects/libgd/libgd/gd-tagged-entry.h | 117 + .../libgd/libgd/gd-toggle-pixbuf-renderer.c | 280 + .../libgd/libgd/gd-toggle-pixbuf-renderer.h | 47 + subprojects/libgd/libgd/gd-two-lines-renderer.c | 632 + subprojects/libgd/libgd/gd-two-lines-renderer.h | 43 + subprojects/libgd/libgd/gd-types-catalog.c | 123 + subprojects/libgd/libgd/gd-types-catalog.h | 31 + subprojects/libgd/libgd/gd.h | 81 + subprojects/libgd/libgd/meson.build | 204 + subprojects/libgd/meson.build | 24 + subprojects/libgd/meson_options.txt | 25 + subprojects/libgd/meson_readme.md | 88 + subprojects/libgd/test-tagged-entry-2.c | 131 + subprojects/libgd/test-tagged-entry.c | 111 + tools/generate-message.py | 777 + 681 files changed, 774104 insertions(+) create mode 100644 CONTRIBUTING.md create mode 100644 COPYING create mode 100644 NEWS create mode 100644 README.md create mode 100644 build-aux/flatpak/.gitignore create mode 100755 build-aux/flatpak/1-build-and-install.sh create mode 100755 build-aux/flatpak/2-run-app.sh create mode 100755 build-aux/flatpak/3-teardown.sh create mode 100644 build-aux/flatpak/org.gnome.gedit.yml create mode 100755 build-aux/meson/post_install.py create mode 100644 build-aux/osx/README create mode 100644 build-aux/osx/build/.gitignore create mode 100644 build-aux/osx/build/README create mode 100755 build-aux/osx/build/build create mode 100644 build-aux/osx/build/config/jhbuildrc-gedit create mode 100644 build-aux/osx/build/modulesets/bootstrap.modules create mode 100644 build-aux/osx/build/modulesets/gedit.modules create mode 100644 build-aux/osx/build/modulesets/patches/berkeleydb-nonsrctree/atomic.patch create mode 100644 build-aux/osx/build/modulesets/patches/berkeleydb/atomic.patch create mode 100644 build-aux/osx/build/modulesets/patches/enchant/enchant-applespell.patch create mode 100644 build-aux/osx/build/modulesets/patches/enchant/enchant-gsize.patch create mode 100644 build-aux/osx/build/modulesets/patches/enchant/enchant-relocatable.patch create mode 100644 build-aux/osx/build/modulesets/patches/gettext-runtime/gettext-bug33999-stpncpy.patch create mode 100644 build-aux/osx/build/modulesets/patches/gettext-tools/gettext-bug33999-stpncpy.patch create mode 100644 build-aux/osx/build/modulesets/patches/glib/0001-Bug-724590-GSlice-slab_stack-corruption.patch create mode 100644 build-aux/osx/build/modulesets/patches/gobject-introspection/girscanner-objc.patch create mode 100644 build-aux/osx/build/modulesets/patches/gtk+/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch create mode 100644 build-aux/osx/build/modulesets/patches/gtk+/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch create mode 100644 build-aux/osx/build/modulesets/patches/gtk+/gtk+-2-m4-creation.patch create mode 100644 build-aux/osx/build/modulesets/patches/gtk-mac-integration/0001-Fix-unhandled-exception-from-attempting-to-access-me.patch create mode 100644 build-aux/osx/build/modulesets/patches/itstool/itstool.use-correct-libxml.patch create mode 100644 build-aux/osx/build/modulesets/patches/libgcrypt/libgcrypt-build-clang.patch create mode 100644 build-aux/osx/build/modulesets/patches/libxml2/libxml2-Bug-686118-pthreads_once_init.patch create mode 100644 build-aux/osx/build/modulesets/patches/readline/readline62-001 create mode 100644 build-aux/osx/build/modulesets/patches/readline/readline62-002 create mode 100644 build-aux/osx/build/modulesets/patches/readline/readline62-003 create mode 100644 build-aux/osx/build/modulesets/patches/readline/readline62-004 create mode 100644 build-aux/osx/build/modulesets/patches/shared-mime-info/0001-Bug-70255-Build-fails-with-glib-2.38.patch create mode 100644 build-aux/osx/build/updater/gedit-bootstrap-overrides.modules create mode 100644 build-aux/osx/build/updater/gedit-overrides.modules create mode 100644 build-aux/osx/build/updater/patches/enchant-applespell.patch create mode 100644 build-aux/osx/build/updater/patches/enchant-relocatable.patch create mode 100644 build-aux/osx/build/updater/patches/gedit-plugins-disable-terminal.patch create mode 100755 build-aux/osx/build/updater/update_modulesets.py create mode 100644 build-aux/osx/bundle/.gitignore create mode 100755 build-aux/osx/bundle/bundle create mode 100644 build-aux/osx/bundle/data/Info.plist.in create mode 100755 build-aux/osx/bundle/data/gedit create mode 100644 build-aux/osx/bundle/data/gedit.bundle create mode 100644 build-aux/osx/bundle/data/gedit.icns create mode 100644 build-aux/osx/bundle/data/geditdoc.icns create mode 100644 build-aux/osx/bundle/data/geditpkg.icns create mode 100644 build-aux/osx/bundle/data/template.dmg.bz2 create mode 100644 build-aux/osx/bundle/images/background.png create mode 100644 build-aux/osx/bundle/images/background.svg create mode 100644 build-aux/osx/bundle/images/gedit-128x128.png create mode 100644 build-aux/osx/bundle/images/gedit-16x16.png create mode 100644 build-aux/osx/bundle/images/gedit-256x256.png create mode 100644 build-aux/osx/bundle/images/gedit-32x32.png.png create mode 100644 build-aux/osx/bundle/images/gedit-512x512.png create mode 100644 build-aux/osx/bundle/images/gedit-icon.svg create mode 100644 build-aux/osx/bundle/images/gedit-pkg-128x128.png create mode 100644 build-aux/osx/bundle/images/gedit-pkg-16x16.png create mode 100644 build-aux/osx/bundle/images/gedit-pkg-256x256.png create mode 100644 build-aux/osx/bundle/images/gedit-pkg-32x32.png create mode 100644 build-aux/osx/bundle/images/gedit-pkg-512x512.png create mode 100644 build-aux/osx/bundle/images/gedit-pkg-icon.svg create mode 100644 build-aux/snap/snapcraft.yaml create mode 100644 data/gedit-osx.gschema.override create mode 100644 data/gedit.1 create mode 100644 data/icons/meson.build create mode 100644 data/icons/org.gnome.gedit-symbolic.svg create mode 100644 data/icons/org.gnome.gedit.Devel.svg create mode 100644 data/icons/org.gnome.gedit.svg create mode 100644 data/meson.build create mode 100644 data/org.gnome.gedit-ms-windows.gschema.override create mode 100644 data/org.gnome.gedit.appdata.xml.in create mode 100644 data/org.gnome.gedit.desktop.in create mode 100644 data/org.gnome.gedit.gschema.xml.in create mode 100644 data/org.gnome.gedit.service.in create mode 100644 data/privacy-policy.md create mode 100644 data/screenshot.png create mode 100644 docs/build.md create mode 100644 docs/class-diagram.dia create mode 100644 docs/common-bugs.md create mode 100644 docs/gedit-development-getting-started.md create mode 100644 docs/how-to-write-a-gedit-plugin.md create mode 100644 docs/reference/api-breaks.xml create mode 100644 docs/reference/gedit-docs.xml create mode 100644 docs/reference/gedit-sections.txt create mode 100644 docs/reference/meson.build create mode 100644 docs/roadmap.md create mode 100644 gedit.doap create mode 100644 gedit/Gedit-3.0.metadata create mode 100644 gedit/Gedit.py create mode 100644 gedit/gedit-app-activatable.c create mode 100644 gedit/gedit-app-activatable.h create mode 100644 gedit/gedit-app-osx.h create mode 100644 gedit/gedit-app-osx.m create mode 100644 gedit/gedit-app-private.h create mode 100644 gedit/gedit-app-win32.c create mode 100644 gedit/gedit-app-win32.h create mode 100644 gedit/gedit-app.c create mode 100644 gedit/gedit-app.h create mode 100644 gedit/gedit-close-confirmation-dialog.c create mode 100644 gedit/gedit-close-confirmation-dialog.h create mode 100644 gedit/gedit-commands-documents.c create mode 100644 gedit/gedit-commands-edit.c create mode 100644 gedit/gedit-commands-file-print.c create mode 100644 gedit/gedit-commands-file.c create mode 100644 gedit/gedit-commands-help.c create mode 100644 gedit/gedit-commands-private.h create mode 100644 gedit/gedit-commands-search.c create mode 100644 gedit/gedit-commands-view.c create mode 100644 gedit/gedit-commands.h create mode 100644 gedit/gedit-debug.c create mode 100644 gedit/gedit-debug.h create mode 100644 gedit/gedit-dirs.c create mode 100644 gedit/gedit-dirs.h create mode 100644 gedit/gedit-document-private.h create mode 100644 gedit/gedit-document.c create mode 100644 gedit/gedit-document.h create mode 100644 gedit/gedit-documents-panel.c create mode 100644 gedit/gedit-documents-panel.h create mode 100644 gedit/gedit-encoding-items.c create mode 100644 gedit/gedit-encoding-items.h create mode 100644 gedit/gedit-encodings-combo-box.c create mode 100644 gedit/gedit-encodings-combo-box.h create mode 100644 gedit/gedit-encodings-dialog.c create mode 100644 gedit/gedit-encodings-dialog.h create mode 100644 gedit/gedit-factory.c create mode 100644 gedit/gedit-factory.h create mode 100644 gedit/gedit-file-chooser-dialog-gtk.c create mode 100644 gedit/gedit-file-chooser-dialog-gtk.h create mode 100644 gedit/gedit-file-chooser-dialog.c create mode 100644 gedit/gedit-file-chooser-dialog.h create mode 100644 gedit/gedit-file-chooser-open-dialog.c create mode 100644 gedit/gedit-file-chooser-open-dialog.h create mode 100644 gedit/gedit-file-chooser-open-native.c create mode 100644 gedit/gedit-file-chooser-open-native.h create mode 100644 gedit/gedit-file-chooser-open.c create mode 100644 gedit/gedit-file-chooser-open.h create mode 100644 gedit/gedit-file-chooser.c create mode 100644 gedit/gedit-file-chooser.h create mode 100644 gedit/gedit-highlight-mode-dialog.c create mode 100644 gedit/gedit-highlight-mode-dialog.h create mode 100644 gedit/gedit-highlight-mode-selector.c create mode 100644 gedit/gedit-highlight-mode-selector.h create mode 100644 gedit/gedit-history-entry.c create mode 100644 gedit/gedit-history-entry.h create mode 100644 gedit/gedit-io-error-info-bar.c create mode 100644 gedit/gedit-io-error-info-bar.h create mode 100644 gedit/gedit-menu-extension.c create mode 100644 gedit/gedit-menu-extension.h create mode 100644 gedit/gedit-menu-stack-switcher.c create mode 100644 gedit/gedit-menu-stack-switcher.h create mode 100644 gedit/gedit-message-bus.c create mode 100644 gedit/gedit-message-bus.h create mode 100644 gedit/gedit-message.c create mode 100644 gedit/gedit-message.h create mode 100644 gedit/gedit-multi-notebook.c create mode 100644 gedit/gedit-multi-notebook.h create mode 100644 gedit/gedit-notebook-popup-menu.c create mode 100644 gedit/gedit-notebook-popup-menu.h create mode 100644 gedit/gedit-notebook-stack-switcher.c create mode 100644 gedit/gedit-notebook-stack-switcher.h create mode 100644 gedit/gedit-notebook.c create mode 100644 gedit/gedit-notebook.h create mode 100644 gedit/gedit-pango.c create mode 100644 gedit/gedit-pango.h create mode 100644 gedit/gedit-plugins-engine.c create mode 100644 gedit/gedit-plugins-engine.h create mode 100644 gedit/gedit-preferences-dialog.c create mode 100644 gedit/gedit-preferences-dialog.h create mode 100644 gedit/gedit-print-job.c create mode 100644 gedit/gedit-print-job.h create mode 100644 gedit/gedit-print-preview.c create mode 100644 gedit/gedit-print-preview.h create mode 100644 gedit/gedit-progress-info-bar.c create mode 100644 gedit/gedit-progress-info-bar.h create mode 100644 gedit/gedit-recent.c create mode 100644 gedit/gedit-recent.h create mode 100644 gedit/gedit-replace-dialog.c create mode 100644 gedit/gedit-replace-dialog.h create mode 100644 gedit/gedit-settings.c create mode 100644 gedit/gedit-settings.h create mode 100644 gedit/gedit-status-menu-button.c create mode 100644 gedit/gedit-status-menu-button.h create mode 100644 gedit/gedit-statusbar.c create mode 100644 gedit/gedit-statusbar.h create mode 100644 gedit/gedit-tab-label.c create mode 100644 gedit/gedit-tab-label.h create mode 100644 gedit/gedit-tab-private.h create mode 100644 gedit/gedit-tab.c create mode 100644 gedit/gedit-tab.h create mode 100644 gedit/gedit-utils.c create mode 100644 gedit/gedit-utils.h create mode 100644 gedit/gedit-view-activatable.c create mode 100644 gedit/gedit-view-activatable.h create mode 100644 gedit/gedit-view-frame.c create mode 100644 gedit/gedit-view-frame.h create mode 100644 gedit/gedit-view.c create mode 100644 gedit/gedit-view.h create mode 100644 gedit/gedit-window-activatable.c create mode 100644 gedit/gedit-window-activatable.h create mode 100644 gedit/gedit-window-private.h create mode 100644 gedit/gedit-window.c create mode 100644 gedit/gedit-window.h create mode 100644 gedit/gedit.c create mode 100644 gedit/meson.build create mode 100644 gedit/resources/css/gedit-style-osx.css create mode 100644 gedit/resources/css/gedit-style.css create mode 100644 gedit/resources/css/gedit.adwaita.css create mode 100644 gedit/resources/css/gedit.highcontrast.css create mode 100644 gedit/resources/gedit.gresource.xml.in create mode 100644 gedit/resources/gtk/menus-common.ui create mode 100644 gedit/resources/gtk/menus-traditional.ui create mode 100644 gedit/resources/gtk/menus.ui create mode 100644 gedit/resources/meson.build create mode 100644 gedit/resources/ui/gedit-encodings-dialog.ui create mode 100644 gedit/resources/ui/gedit-highlight-mode-dialog.ui create mode 100644 gedit/resources/ui/gedit-highlight-mode-selector.ui create mode 100644 gedit/resources/ui/gedit-preferences-dialog.ui create mode 100644 gedit/resources/ui/gedit-print-preferences.ui create mode 100644 gedit/resources/ui/gedit-print-preview.ui create mode 100644 gedit/resources/ui/gedit-progress-info-bar.ui create mode 100644 gedit/resources/ui/gedit-replace-dialog.ui create mode 100644 gedit/resources/ui/gedit-shortcuts.ui create mode 100644 gedit/resources/ui/gedit-status-menu-button.ui create mode 100644 gedit/resources/ui/gedit-statusbar.ui create mode 100644 gedit/resources/ui/gedit-tab-label.ui create mode 100644 gedit/resources/ui/gedit-view-frame.ui create mode 100644 gedit/resources/ui/gedit-window.ui create mode 100755 help/C/check_status.sh create mode 100644 help/C/figures/gedit-html-snippet.png create mode 100644 help/C/figures/gedit-icon.png create mode 100644 help/C/figures/gedit3-screenshot.png create mode 100644 help/C/gedit-change-color-scheme.page create mode 100644 help/C/gedit-change-default-font.page create mode 100644 help/C/gedit-close-file.page create mode 100644 help/C/gedit-create-new-file.page create mode 100644 help/C/gedit-edit-as-root.page create mode 100644 help/C/gedit-files-basic.page create mode 100644 help/C/gedit-full-screen.page create mode 100644 help/C/gedit-open-files-from-sidepane.page create mode 100644 help/C/gedit-open-files.page create mode 100644 help/C/gedit-open-on-server.page create mode 100644 help/C/gedit-open-recent.page create mode 100644 help/C/gedit-plugin-guide.page create mode 100644 help/C/gedit-plugins-change-case.page create mode 100644 help/C/gedit-plugins-doc-stats.page create mode 100644 help/C/gedit-plugins-external-tools.page create mode 100644 help/C/gedit-plugins-file-browser.page create mode 100644 help/C/gedit-plugins-insert-date-time.page create mode 100644 help/C/gedit-plugins-install.page create mode 100644 help/C/gedit-plugins-modelines.page create mode 100644 help/C/gedit-plugins-pyconsole.page create mode 100644 help/C/gedit-plugins-quick-open.page create mode 100644 help/C/gedit-plugins-snippets.page create mode 100644 help/C/gedit-plugins-sort.page create mode 100644 help/C/gedit-printing-order.page create mode 100644 help/C/gedit-printing-select.page create mode 100644 help/C/gedit-printing.page create mode 100644 help/C/gedit-quickstart.page create mode 100644 help/C/gedit-replace.page create mode 100644 help/C/gedit-save-file.page create mode 100644 help/C/gedit-search.page create mode 100644 help/C/gedit-spellcheck.page create mode 100644 help/C/gedit-syntax-highlighting.page create mode 100644 help/C/gedit-tab-groups.page create mode 100644 help/C/gedit-tabs-moving.page create mode 100644 help/C/gedit-tabs.page create mode 100644 help/C/gedit-undo-redo.page create mode 100644 help/C/gnome-help.sct create mode 100644 help/C/index.page create mode 100644 help/C/legal.xml create mode 100755 help/C/schematron.sh create mode 100644 help/LINGUAS create mode 100644 help/ar/ar.po create mode 100644 help/bg/bg.po create mode 100644 help/bg/figures/gedit-html-snippet.png create mode 100644 help/bg/figures/gedit3-screenshot.png create mode 100644 help/ca/ca.po create mode 100644 help/cs/cs.po create mode 100644 help/da/da.po create mode 100644 help/da/figures/gedit-html-snippet.png create mode 100644 help/da/figures/gedit3-screenshot.png create mode 100644 help/de/de.po create mode 100644 help/de/figures/gedit-html-snippet.png create mode 100644 help/de/figures/gedit3-screenshot.png create mode 100644 help/el/el.po create mode 100644 help/el/figures/gedit-html-snippet.png create mode 100644 help/el/figures/gedit3-screenshot.png create mode 100644 help/en_GB/en_GB.po create mode 100644 help/es/es.po create mode 100644 help/eu/eu.po create mode 100644 help/fi/fi.po create mode 100644 help/fr/figures/gedit-html-snippet.png create mode 100644 help/fr/figures/gedit3-screenshot.png create mode 100644 help/fr/fr.po create mode 100644 help/gl/gl.po create mode 100644 help/hu/figures/gedit-html-snippet.png create mode 100644 help/hu/figures/gedit3-screenshot.png create mode 100644 help/hu/hu.po create mode 100644 help/id/id.po create mode 100644 help/it/it.po create mode 100644 help/ja/ja.po create mode 100644 help/ko/ko.po create mode 100644 help/lv/lv.po create mode 100644 help/meson.build create mode 100644 help/oc/oc.po create mode 100644 help/pl/figures/gedit-html-snippet.png create mode 100644 help/pl/figures/gedit3-screenshot.png create mode 100644 help/pl/pl.po create mode 100644 help/pt_BR/figures/gedit-html-snippet.png create mode 100644 help/pt_BR/figures/gedit3-screenshot.png create mode 100644 help/pt_BR/pt_BR.po create mode 100644 help/ro/figures/gedit-html-snippet.png create mode 100644 help/ro/figures/gedit3-screenshot.png create mode 100644 help/ro/ro.po create mode 100644 help/ru/ru.po create mode 100644 help/sl/sl.po create mode 100644 help/sv/figures/gedit-html-snippet.png create mode 100644 help/sv/figures/gedit3-screenshot.png create mode 100644 help/sv/sv.po create mode 100644 help/te/te.po create mode 100644 help/th/th.po create mode 100644 help/uk/uk.po create mode 100644 help/zh_CN/zh_CN.po create mode 100644 help/zh_HK/zh_HK.po create mode 100644 help/zh_TW/zh_TW.po create mode 100644 logo.png create mode 100644 meson.build create mode 100644 meson_options.txt create mode 100644 plugins/docinfo/docinfo.plugin.desktop.in create mode 100644 plugins/docinfo/gedit-docinfo-plugin.c create mode 100644 plugins/docinfo/gedit-docinfo-plugin.h create mode 100644 plugins/docinfo/meson.build create mode 100644 plugins/docinfo/resources/gedit-docinfo.gresource.xml create mode 100644 plugins/docinfo/resources/meson.build create mode 100644 plugins/docinfo/resources/ui/gedit-docinfo-plugin.ui create mode 100644 plugins/externaltools/data/build.desktop.in create mode 100755 plugins/externaltools/data/build.tool.in create mode 100644 plugins/externaltools/data/meson.build create mode 100644 plugins/externaltools/data/open-terminal-here-osx.desktop.in create mode 100755 plugins/externaltools/data/open-terminal-here-osx.tool.in create mode 100644 plugins/externaltools/data/open-terminal-here.desktop.in create mode 100755 plugins/externaltools/data/open-terminal-here.tool.in create mode 100644 plugins/externaltools/data/remove-trailing-spaces.desktop.in create mode 100755 plugins/externaltools/data/remove-trailing-spaces.tool.in create mode 100644 plugins/externaltools/data/run-command.desktop.in create mode 100755 plugins/externaltools/data/run-command.tool.in create mode 100644 plugins/externaltools/data/send-to-fpaste.desktop.in create mode 100755 plugins/externaltools/data/send-to-fpaste.tool.in create mode 100644 plugins/externaltools/externaltools.plugin.desktop.in create mode 100644 plugins/externaltools/meson.build create mode 100644 plugins/externaltools/org.gnome.gedit.plugins.externaltools.gschema.xml create mode 100755 plugins/externaltools/scripts/gedit-tool-merge.pl create mode 100644 plugins/externaltools/scripts/meson.build create mode 100644 plugins/externaltools/tests/meson.build create mode 100644 plugins/externaltools/tests/testlinkparsing.py create mode 100644 plugins/externaltools/tools/__init__.py create mode 100644 plugins/externaltools/tools/appactivatable.py create mode 100644 plugins/externaltools/tools/capture.py create mode 100644 plugins/externaltools/tools/filelookup.py create mode 100644 plugins/externaltools/tools/functions.py create mode 100644 plugins/externaltools/tools/library.py create mode 100644 plugins/externaltools/tools/linkparsing.py create mode 100644 plugins/externaltools/tools/manager.py create mode 100644 plugins/externaltools/tools/meson.build create mode 100644 plugins/externaltools/tools/outputpanel.py create mode 100644 plugins/externaltools/tools/outputpanel.ui create mode 100644 plugins/externaltools/tools/tools.ui create mode 100644 plugins/externaltools/tools/windowactivatable.py create mode 100644 plugins/filebrowser/filebrowser.plugin.desktop.in create mode 100644 plugins/filebrowser/gedit-file-bookmarks-store.c create mode 100644 plugins/filebrowser/gedit-file-bookmarks-store.h create mode 100644 plugins/filebrowser/gedit-file-browser-enum-register.c.template create mode 100644 plugins/filebrowser/gedit-file-browser-enum-types-stage1.c.template create mode 100644 plugins/filebrowser/gedit-file-browser-enum-types.h.template create mode 100644 plugins/filebrowser/gedit-file-browser-error.h create mode 100644 plugins/filebrowser/gedit-file-browser-messages.c create mode 100644 plugins/filebrowser/gedit-file-browser-messages.h create mode 100644 plugins/filebrowser/gedit-file-browser-plugin.c create mode 100644 plugins/filebrowser/gedit-file-browser-plugin.h create mode 100644 plugins/filebrowser/gedit-file-browser-store.c create mode 100644 plugins/filebrowser/gedit-file-browser-store.h create mode 100644 plugins/filebrowser/gedit-file-browser-utils.c create mode 100644 plugins/filebrowser/gedit-file-browser-utils.h create mode 100644 plugins/filebrowser/gedit-file-browser-view.c create mode 100644 plugins/filebrowser/gedit-file-browser-view.h create mode 100644 plugins/filebrowser/gedit-file-browser-widget.c create mode 100644 plugins/filebrowser/gedit-file-browser-widget.h create mode 100644 plugins/filebrowser/meson.build create mode 100644 plugins/filebrowser/messages.xml create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-activation.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-activation.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-add-filter.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-add-filter.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-get-root.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-get-root.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-get-view.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-get-view.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-id-location.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-id-location.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-id.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-id.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-set-markup.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-set-markup.h create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-set-root.c create mode 100644 plugins/filebrowser/messages/gedit-file-browser-message-set-root.h create mode 100644 plugins/filebrowser/messages/meson.build create mode 100644 plugins/filebrowser/messages/messages.h create mode 100644 plugins/filebrowser/org.gnome.gedit.plugins.filebrowser.gschema.xml create mode 100644 plugins/filebrowser/resources/gedit-file-browser.gresource.xml create mode 100644 plugins/filebrowser/resources/meson.build create mode 100644 plugins/filebrowser/resources/ui/gedit-file-browser-menus.ui create mode 100644 plugins/filebrowser/resources/ui/gedit-file-browser-widget.ui create mode 100755 plugins/generate-list.sh create mode 100644 plugins/list-of-gedit-plugins.md create mode 100644 plugins/meson.build create mode 100644 plugins/modelines/gedit-modeline-plugin.c create mode 100644 plugins/modelines/gedit-modeline-plugin.h create mode 100644 plugins/modelines/language-mappings create mode 100644 plugins/modelines/meson.build create mode 100644 plugins/modelines/modeline-parser.c create mode 100644 plugins/modelines/modeline-parser.h create mode 100644 plugins/modelines/modelines.plugin.desktop.in create mode 100644 plugins/pythonconsole/meson.build create mode 100644 plugins/pythonconsole/org.gnome.gedit.plugins.pythonconsole.gschema.xml create mode 100644 plugins/pythonconsole/pythonconsole.plugin.desktop.in create mode 100644 plugins/pythonconsole/pythonconsole/__init__.py create mode 100644 plugins/pythonconsole/pythonconsole/config.py create mode 100644 plugins/pythonconsole/pythonconsole/config.ui create mode 100644 plugins/pythonconsole/pythonconsole/console.py create mode 100644 plugins/pythonconsole/pythonconsole/meson.build create mode 100644 plugins/quickhighlight/gedit-quick-highlight-plugin.c create mode 100644 plugins/quickhighlight/gedit-quick-highlight-plugin.h create mode 100644 plugins/quickhighlight/meson.build create mode 100644 plugins/quickhighlight/quickhighlight.plugin.desktop.in create mode 100644 plugins/quickopen/meson.build create mode 100644 plugins/quickopen/quickopen.plugin.desktop.in create mode 100644 plugins/quickopen/quickopen/__init__.py create mode 100644 plugins/quickopen/quickopen/popup.py create mode 100644 plugins/quickopen/quickopen/virtualdirs.py create mode 100644 plugins/snippets/data/c.xml create mode 100644 plugins/snippets/data/chdr.xml create mode 100644 plugins/snippets/data/cpp.xml create mode 100644 plugins/snippets/data/css.xml create mode 100644 plugins/snippets/data/docbook.xml create mode 100644 plugins/snippets/data/fortran.xml create mode 100644 plugins/snippets/data/global.xml create mode 100644 plugins/snippets/data/haskell.xml create mode 100644 plugins/snippets/data/html.xml create mode 100644 plugins/snippets/data/idl.xml create mode 100644 plugins/snippets/data/java.xml create mode 100644 plugins/snippets/data/javascript.xml create mode 100644 plugins/snippets/data/lang/snippets.lang create mode 100644 plugins/snippets/data/latex.xml create mode 100644 plugins/snippets/data/mallard.xml create mode 100644 plugins/snippets/data/markdown.xml create mode 100644 plugins/snippets/data/perl.xml create mode 100644 plugins/snippets/data/php.xml create mode 100644 plugins/snippets/data/python.xml create mode 100644 plugins/snippets/data/rpmspec.xml create mode 100644 plugins/snippets/data/ruby.xml create mode 100644 plugins/snippets/data/sh.xml create mode 100644 plugins/snippets/data/snippets.xml create mode 100644 plugins/snippets/data/tcl.xml create mode 100644 plugins/snippets/data/xml.xml create mode 100644 plugins/snippets/data/xslt.xml create mode 100644 plugins/snippets/meson.build create mode 100644 plugins/snippets/snippets.plugin.desktop.in create mode 100644 plugins/snippets/snippets/__init__.py create mode 100644 plugins/snippets/snippets/appactivatable.py create mode 100644 plugins/snippets/snippets/completion.py create mode 100644 plugins/snippets/snippets/document.py create mode 100644 plugins/snippets/snippets/exporter.py create mode 100644 plugins/snippets/snippets/helper.py create mode 100644 plugins/snippets/snippets/importer.py create mode 100644 plugins/snippets/snippets/languagemanager.py create mode 100644 plugins/snippets/snippets/library.py create mode 100644 plugins/snippets/snippets/manager.py create mode 100644 plugins/snippets/snippets/meson.build create mode 100644 plugins/snippets/snippets/parser.py create mode 100644 plugins/snippets/snippets/placeholder.py create mode 100644 plugins/snippets/snippets/shareddata.py create mode 100644 plugins/snippets/snippets/signals.py create mode 100644 plugins/snippets/snippets/singleton.py create mode 100644 plugins/snippets/snippets/snippet.py create mode 100644 plugins/snippets/snippets/snippets.ui create mode 100644 plugins/snippets/snippets/substitutionparser.py create mode 100644 plugins/snippets/snippets/windowactivatable.py create mode 100644 plugins/sort/gedit-sort-plugin.c create mode 100644 plugins/sort/gedit-sort-plugin.h create mode 100644 plugins/sort/meson.build create mode 100644 plugins/sort/resources/gedit-sort.gresource.xml create mode 100644 plugins/sort/resources/meson.build create mode 100644 plugins/sort/resources/ui/gedit-sort-plugin.ui create mode 100644 plugins/sort/sort.plugin.desktop.in create mode 100644 plugins/spell/gedit-spell-app-activatable.c create mode 100644 plugins/spell/gedit-spell-app-activatable.h create mode 100644 plugins/spell/gedit-spell-plugin.c create mode 100644 plugins/spell/gedit-spell-plugin.h create mode 100644 plugins/spell/meson.build create mode 100644 plugins/spell/org.gnome.gedit.plugins.spell.gschema.xml create mode 100644 plugins/spell/resources/gedit-spell.gresource.xml create mode 100644 plugins/spell/resources/meson.build create mode 100644 plugins/spell/resources/ui/gedit-spell-setup-dialog.ui create mode 100644 plugins/spell/spell.plugin.desktop.in create mode 100644 plugins/time/gedit-time-plugin.c create mode 100644 plugins/time/gedit-time-plugin.h create mode 100644 plugins/time/meson.build create mode 100644 plugins/time/org.gnome.gedit.plugins.time.gschema.xml create mode 100644 plugins/time/resources/gedit-time.gresource.xml create mode 100644 plugins/time/resources/meson.build create mode 100644 plugins/time/resources/ui/gedit-time-dialog.ui create mode 100644 plugins/time/resources/ui/gedit-time-setup-dialog.ui create mode 100644 plugins/time/time.plugin.desktop.in create mode 100644 po/LINGUAS create mode 100644 po/POTFILES.in create mode 100644 po/POTFILES.skip create mode 100644 po/af.po create mode 100644 po/am.po create mode 100644 po/an.po create mode 100644 po/ar.po create mode 100644 po/as.po create mode 100644 po/ast.po create mode 100644 po/az.po create mode 100644 po/be.po create mode 100644 po/be@latin.po create mode 100644 po/bg.po create mode 100644 po/bn.po create mode 100644 po/bn_IN.po create mode 100644 po/br.po create mode 100644 po/bs.po create mode 100644 po/ca.po create mode 100644 po/ca@valencia.po create mode 100644 po/ckb.po create mode 100644 po/crh.po create mode 100644 po/cs.po create mode 100644 po/cy.po create mode 100644 po/da.po create mode 100644 po/de.po create mode 100644 po/dz.po create mode 100644 po/el.po create mode 100644 po/en@shaw.po create mode 100644 po/en_CA.po create mode 100644 po/en_GB.po create mode 100644 po/eo.po create mode 100644 po/es.po create mode 100644 po/et.po create mode 100644 po/eu.po create mode 100644 po/fa.po create mode 100644 po/fi.po create mode 100644 po/fr.po create mode 100644 po/fur.po create mode 100644 po/ga.po create mode 100644 po/gd.po create mode 100644 po/gl.po create mode 100644 po/gu.po create mode 100644 po/he.po create mode 100644 po/hi.po create mode 100644 po/hr.po create mode 100644 po/hu.po create mode 100644 po/hy.po create mode 100644 po/id.po create mode 100644 po/is.po create mode 100644 po/it.po create mode 100644 po/ja.po create mode 100644 po/ka.po create mode 100644 po/kk.po create mode 100644 po/km.po create mode 100644 po/kn.po create mode 100644 po/ko.po create mode 100644 po/ku.po create mode 100644 po/la.po create mode 100644 po/ln.po create mode 100644 po/lt.po create mode 100644 po/lv.po create mode 100644 po/mai.po create mode 100644 po/meson.build create mode 100644 po/mg.po create mode 100644 po/mi.po create mode 100644 po/mjw.po create mode 100644 po/mk.po create mode 100644 po/ml.po create mode 100644 po/mn.po create mode 100644 po/mr.po create mode 100644 po/ms.po create mode 100644 po/my.po create mode 100644 po/nb.po create mode 100644 po/nds.po create mode 100644 po/ne.po create mode 100644 po/nl.po create mode 100644 po/nn.po create mode 100644 po/oc.po create mode 100644 po/or.po create mode 100644 po/pa.po create mode 100644 po/pl.po create mode 100644 po/ps.po create mode 100644 po/pt.po create mode 100644 po/pt_BR.po create mode 100644 po/ro.po create mode 100644 po/ru.po create mode 100644 po/rw.po create mode 100644 po/si.po create mode 100644 po/sk.po create mode 100644 po/sl.po create mode 100644 po/sq.po create mode 100644 po/sr.po create mode 100644 po/sr@latin.po create mode 100644 po/sv.po create mode 100644 po/ta.po create mode 100644 po/te.po create mode 100644 po/tg.po create mode 100644 po/th.po create mode 100644 po/tk.po create mode 100644 po/tr.po create mode 100644 po/ug.po create mode 100644 po/uk.po create mode 100644 po/vi.po create mode 100644 po/wa.po create mode 100644 po/xh.po create mode 100644 po/zh_CN.po create mode 100644 po/zh_HK.po create mode 100644 po/zh_TW.po create mode 100644 subprojects/libgd/Makefile.am create mode 100644 subprojects/libgd/README create mode 100644 subprojects/libgd/libgd.doap create mode 100644 subprojects/libgd/libgd.m4 create mode 100644 subprojects/libgd/libgd/gd-icon-utils.c create mode 100644 subprojects/libgd/libgd/gd-icon-utils.h create mode 100644 subprojects/libgd/libgd/gd-main-box-child.c create mode 100644 subprojects/libgd/libgd/gd-main-box-child.h create mode 100644 subprojects/libgd/libgd/gd-main-box-generic.c create mode 100644 subprojects/libgd/libgd/gd-main-box-generic.h create mode 100644 subprojects/libgd/libgd/gd-main-box-item.c create mode 100644 subprojects/libgd/libgd/gd-main-box-item.h create mode 100644 subprojects/libgd/libgd/gd-main-box.c create mode 100644 subprojects/libgd/libgd/gd-main-box.h create mode 100644 subprojects/libgd/libgd/gd-main-icon-box-child.c create mode 100644 subprojects/libgd/libgd/gd-main-icon-box-child.h create mode 100644 subprojects/libgd/libgd/gd-main-icon-box-icon.c create mode 100644 subprojects/libgd/libgd/gd-main-icon-box-icon.h create mode 100644 subprojects/libgd/libgd/gd-main-icon-box.c create mode 100644 subprojects/libgd/libgd/gd-main-icon-box.h create mode 100644 subprojects/libgd/libgd/gd-main-icon-view.c create mode 100644 subprojects/libgd/libgd/gd-main-icon-view.h create mode 100644 subprojects/libgd/libgd/gd-main-list-view.c create mode 100644 subprojects/libgd/libgd/gd-main-list-view.h create mode 100644 subprojects/libgd/libgd/gd-main-view-generic.c create mode 100644 subprojects/libgd/libgd/gd-main-view-generic.h create mode 100644 subprojects/libgd/libgd/gd-main-view.c create mode 100644 subprojects/libgd/libgd/gd-main-view.h create mode 100644 subprojects/libgd/libgd/gd-margin-container.c create mode 100644 subprojects/libgd/libgd/gd-margin-container.h create mode 100644 subprojects/libgd/libgd/gd-notification.c create mode 100644 subprojects/libgd/libgd/gd-notification.h create mode 100644 subprojects/libgd/libgd/gd-styled-text-renderer.c create mode 100644 subprojects/libgd/libgd/gd-styled-text-renderer.h create mode 100644 subprojects/libgd/libgd/gd-tagged-entry.c create mode 100644 subprojects/libgd/libgd/gd-tagged-entry.h create mode 100644 subprojects/libgd/libgd/gd-toggle-pixbuf-renderer.c create mode 100644 subprojects/libgd/libgd/gd-toggle-pixbuf-renderer.h create mode 100644 subprojects/libgd/libgd/gd-two-lines-renderer.c create mode 100644 subprojects/libgd/libgd/gd-two-lines-renderer.h create mode 100644 subprojects/libgd/libgd/gd-types-catalog.c create mode 100644 subprojects/libgd/libgd/gd-types-catalog.h create mode 100644 subprojects/libgd/libgd/gd.h create mode 100644 subprojects/libgd/libgd/meson.build create mode 100644 subprojects/libgd/meson.build create mode 100644 subprojects/libgd/meson_options.txt create mode 100644 subprojects/libgd/meson_readme.md create mode 100644 subprojects/libgd/test-tagged-entry-2.c create mode 100644 subprojects/libgd/test-tagged-entry.c create mode 100755 tools/generate-message.py diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..dfbee7f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,34 @@ +How to contribute to gedit +========================== + +gedit development relies on voluntary contributions and everyone is invited to +help. + +If you are interested in helping us to improve gedit, please contact the +developers on the gedit mailing list and offer your help. See the “Getting in +Touch” section on the [gedit wiki page](https://wiki.gnome.org/Apps/Gedit). + +Contributions other than software development +--------------------------------------------- + +See the [GNOME wiki](https://wiki.gnome.org/). + +Doing **bug triaging** on the bug tracker is a very useful task for gedit, +because gedit is used by many people and there are therefore lots of bug reports +or feature requests. The gedit developers often have difficulties to triage all +the bugs and do first line support. Having a curated list of important bugs to +fix would tremendously help the gedit developers. + +Software development +-------------------- + +To get started with gedit software development, see the file +[docs/gedit-development-getting-started.md](docs/gedit-development-getting-started.md). + +gedit follows the same guidelines and code conventions as GtkSourceView. See +the [GtkSourceView HACKING file](https://gitlab.gnome.org/GNOME/gtksourceview/blob/master/HACKING). + +The gedit and gedit-plugins Git repositories are hosted on the GNOME GitLab +instance: +- [gedit on GitLab](https://gitlab.gnome.org/GNOME/gedit) +- [gedit-plugins on GitLab](https://gitlab.gnome.org/GNOME/gedit-plugins) diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..1f963da --- /dev/null +++ b/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. + diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..24f28fa --- /dev/null +++ b/NEWS @@ -0,0 +1,2412 @@ +News in 3.38.1, 2020-11-20 +-------------------------- +* AppData: change donation URL to Liberapay. +* Improvements to the user manual. +* Translation updates. + +News in 3.38.0, 2020-09-11 +-------------------------- +* Translation updates. + +News in 3.37.92, 2020-09-04 +--------------------------- +* A few code refactorings. +* CI: small update. +* Translation updates. + +News in 3.37.3, 2020-07-03 +-------------------------- +* Start to migrate to GtkFileChooserNative. +* User manual: remove the page with the list of keyboard shortcuts, it was + redundant with the new Shortcuts window. +* Translation updates. + +News in 3.37.2, 2020-05-29 +-------------------------- +* gedit is now available on the Microsoft Store! +* Remove the checkupdate plugin (no longer useful). +* GSettings: revisit the set of plugins activated by default. +* Change app description. +* Write a script to have a list of plugins with their description. +* Documentation updates. +* About dialog: have the gedit icon, not the old logo. +* Many improvements to the build system. +* Fix a few bugs. +* Add a few keyboard shortcuts to the Shortcuts window. +* Updates to the Flatpak and Snap. +* Translation updates. + +Tepl-ification: +* Create GeditFactory class, subclass of TeplAbstractFactory. +* Use tepl_application_handle_metadata(). + +News in 3.37.1, 2020-04-24 +-------------------------- +* Remove the support for X11 workspaces. + See: commit d0728e7d0c3e7fdc58f03f0af4e0ce64eb7aef6e +* gedit no longer depends on X11, gedit is now a native app on Wayland. +* Remove the support for the org.gnome.desktop.lockdown GSettings. + See: commit b6728797d6b308b46cf4e0dae4493dc62d3decda +* Some updates to the user manual. +* Improvements to the keyboard shortcuts window. +* Build system: various small improvements. +* Update the Flatpak. +* Other small improvements and code refactorings. +* A few bug fixes. +* Translation updates. + +Changes for plugins: +* Bump API version to 3.38. +* Remove all deprecated APIs. +* See the list of API breaks and new deprecations in the API reference. + +Tepl-ification: +* Move some utility functions to the Tepl library. +* Refactor and move some I/O error infobars to Tepl. +* GeditView now inherits from TeplView. +* Port to the new Tepl metadata API. +* Use TeplStyleSchemeChooserWidget. + +News in 3.36.1, 2020-03-20 +-------------------------- +* File chooser dialog: use text files filter by default. +* Fix compilation on macOS. +* Fix External Tools plugin. +* Fix Snippets plugin. +* Other bug fixes. +* Translation updates. + +News in 3.36.0, 2020-03-06 +-------------------------- +* Fix a bug in the quickopen plugin. +* Updates to the user manual. +* Translation updates. + +News in 3.35.90, 2020-01-31 +--------------------------- +* Remove text centering when in fullscreen mode and when a right margin was + set. For the explanation see: commit 8710e89d847b0bfc65d7833255090e304cf7c890 +* Make the scrollbars always visible around the main text area. For the + explanation see: commit 5e0909c19f267b4023131881fac89c58a2a17453 +* Remove the overview map. For the explanation see: + commit 26899e0ba7c1390c098b61fc7a901d700c4e745c +* File chooser dialog: re-add the feature to be able to customize the list of + character encodings. +* Open a file from the headerbar: re-implement the previous user interface: two + buttons, "Open" to open the dialog window, and an arrow to open the recent + menu. For the explanation see: commit 27f54a9aed82109a512743b5e819b18004c19de7 +* GSettings schema: enable more features by default (auto-indent, + display-line-numbers, highlight-current-line and bracket-matching) and set + default style scheme to 'tango'. +* Bug fixes. +* Code refactorings. +* Lots of small improvements to the build system. +* The libsoup dependency is required only on Windows for the checkupdate plugin. +* Translation updates. + +News in 3.35.1, 2019-11-22 +-------------------------- + +User-visible changes: +* File browser plugin: fix interactive search. +* A few fixes in the CSS style. + +Changes for packagers: +* New dependency: Tepl, which itself depends on Amtk and uchardet. + https://wiki.gnome.org/Projects/Tepl + https://wiki.gnome.org/Projects/Amtk + https://www.freedesktop.org/wiki/Software/uchardet/ +* Removed dependency: libxml-2.0 +* Remove the 'enable-gvfs-metadata' build option, it's now handled by Tepl, and + Tepl has a similar build option. +* Rename the build option 'documentation' -> 'gtk_doc'. + +Changes for plugins: +* Bump gedit API version to 3.36. +* Remove the deprecated API. +* Deprecate some gedit_utils functions. +* Write an API breaks section in the gtk-doc reference manual of gedit. + +Tepl-ification: +* Use some tepl_utils functions. +* Use TeplFileMetadata internally in GeditDocument, which has permitted to + remove GeditMetadataManager. + +Other changes: +* Create a nightly app icon (but not yet used). +* Automatically test that the GSettings schema files are valid. +* Various small code refactorings. +* Updates to the Flatpak and Snap packages. + Convert the Flatpak manifest to YAML. +* Translation updates. + +News in 3.34.0, 2019-09-09 +-------------------------- +* Translation updates. + +News in 3.33.92, 2019-09-03 +--------------------------- +* Documentation: + - Overhaul README.md and CONTRIBUTING.md (renamed from HACKING). + - Write several documents in Markdown in the docs/ directory: + - gedit development - getting started + - gedit installation by building the source code + - a new roadmap + (Sébastien Wilmet) +* Updates to the Snap and Flatpak packages (Ken VanDine, Martin Blanchard) +* Translation updates. + +============= +gedit 3.33.90 +============= + +- Add "gedit" to .desktop keywords as search workaround for Flatpak + and Snap (Felipe) +- Build fixes (Christopher, Jordi, Luca, Michael, Ting-Wei) +- Translation updates + +Contributors: + Luca Bacci + Felipe Borges + Michael Catanzaro + Ting-Wei Lan + Jordi Mas + Christopher Reiter + +============ +gedit 3.32.2 +============ + +- Reintroduce enable-gvfs-metadata build option (Andrea) +- Fix several crash bugs (Andrea) +- Translation updates + +Contributors: Andrea Azzarone + +============ +gedit 3.32.0 +============ + +- Translation updates + +============= +gedit 3.31.92 +============= +Development release + +- Fix segfault in open document selector (Sebastien) +- Update help for app menu changes (Andre) +- Miscellaneous fixes (Jeremy, Ken) + +Contributors: + Sebastien Bacher, Jeremy Bicha, Andre Klapper, Ken VanDine + +============== +gedit 3.31.90 +============== +Development release + +- Switch to meson (Martin) +- Drop autotools support (Jeremy) +- Add tests to validate AppStream metadata and .desktop (Bilal) +- Flatpak and Snap versions now bundle gedit-plugins (Martin & Jeremy) +- Fix some issues resulting from the GNOME 3.32 menu changes (Jeffery) +- Drop gconf conversion file (Jeremy) +- Miscellaneous fixes (Andre, Jeremy) + +Contributors: + Jeremy Bicha, Martin Blanchard, Bilal Elmoussaoui + Andre Klapper, Jeffery To + +============= +gedit 3.31.3 +============= +Development release + +- Update README and rename to README.md (Alexandre) +- Update new app icon (Jakub) +- Fix searching with upper case characters in recent files popup (Sébastien) +- Fix symbolic icons in file browser with dark themes (Sébastien) +- Use a color for search matching in recent files popup that works better + with dark themes (Sébastien) +- Clean up deprecations and more (Sébastien) + +Contributors: + Alexandre Franke, Sébastien Lafargue, Jakub Steiner + +============= +gedit 3.31.2 +============= +Development release + +- Follow GNOME 3.32 menu guidelines (Corey) +- Allow closing tabs with middle-click (Corey) + +Contributors: Corey Daley + +============= +gedit 3.31.1 +============= +Development release + +- Fix tarball and version number from previous release + +============= +gedit 3.31.0 +============= +Development release + +- Redesign the app icon (Jakub) +- Migrate to gettext and stop using intltool (Martin) +- Switch from gtksourceview3 to gtksourceview4 (Christian) +- Fix file chooser not opening in correct location after first time + (Sebastien) +- Miscellaneous build and translation fixes (Jeremy, Mathieu, Piotr) +- Translation updates + +Contributors: + Jeremy Bicha, Martin Blanchard, Mathieu Bridon, Piotr Drąg, Christian Hergert, + Sebastien Lafargue, Jakub Steiner + +============= +gedit 3.30.2 +============= +- Fix file chooser not opening in correct location after first time + (Sebastien Lafargue) +- Translation updates + +============= +gedit 3.30.1 +============= + +- Translation updates + +============= +gedit 3.30.0 +============= + +- Translation updates + +============= +gedit 3.29.90 +============= +Development release + +- Port GeditFileChooserDialogGtk to GtkFileChooserNative + so that it can use the file chooser portal for better confinement + when run as a Flatpak or Snap (James) +- Add a style class to the main window for theming (abakkk) +- Move nightly Flatpak manifest here (Jordan) +- Misc bugfixes (Jeremy, Mathieu, Andre, nick, Ken) +- Translation updates + +Contributors: + abakkk, Jeremy Bicha, Mathieu Bridon, James Henstridge, Andre Klapper, + Jordan Petridis, nick richards, Ken VanDine + +============ +gedit 3.28.1 +============ + +- Translation updates + +============ +gedit 3.28.0 +============ + +- Translation updates + +============= +gedit 3.27.92 +============= + +- Translation updates + +============= +gedit 3.27.90 +============= + +- Misc bugfixes +- Translation updates + +============ +gedit 3.22.1 +============ + +- Misc bugfixes +- Translation updates + +============ +gedit 3.22.0 +============ + +- Misc bugfixes +- Translation updates + +============= +gedit 3.21.90 +============= + +- Misc bugfixes +- Translation updates + +============ +gedit 3.20.2 +============ + +- Misc bugfixes +- Translation updates + +============ +gedit 3.20.1 +============ + +- Use a menubar only if gtk-shell-shows-menubar is set to true +- Misc bugfixes +- Translation updates + +============ +gedit 3.20.0 +============ + +- Translation updates + +============ +gedit 3.19.5 +============ + +- Spell plugin: adapt code for gspell API changes +- Save window size properly +- Translation updates + +============ +gedit 3.19.4 +============ + +New Features and Fixes +====================== +- Spell plugin: adapt code for gspell API changes +- CSS updates +- AppData: add project_group and translation tags +- Various other code improvements and bug fixes + +New and updated translations +============================ +- de (Mario Blättermann) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- hu (Meskó Balázs) +- kk (Baurzhan Muftakhidinov) +- lv (Rūdolfs Mazurs) +- pl (Piotr Drąg) +- pt_BR (Rafael Fontenelle) +- sk (Dušan Kazik) +- zh_TW (Chao-Hsiung Liao) + +============ +gedit 3.19.3 +============ + +New Features and Fixes +====================== +- Rename to "Text Editor" in the .desktop file +- Use traditional menubar layout on XFCE, Unity, etc +- require the latest gspell for the spell plugin +- New Windows WiX installer +- CSS updates to track GTK+ changes +- Various minor code improvements and bug fixes + +New and updated translations +============================ +- cs (Marek Černocký) +- de (Mario Blättermann) +- el (Tom Tryfonidis) +- fi (Jiri Grönroos) +- he (Yosef Or Boczko) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- ru (Stas Solovey) +- sk (Dušan Kazik) +- th (Akom Chotiphantawanon) +- tr (Muhammet Kara) +- vi (Trần Ngọc Quân) + +============ +gedit 3.19.2 +============ + +New Features and Fixes +====================== +- Ship our own app icon +- Add shortcuts window +- Adapt code for gspell API changes +- Rename GeditViewHolder -> GeditViewCentering +- CloseConfirmationDialog: subclass GtkMessageDialog +- CSS updates to track GTK+ changes +- Various minor code improvements and bug fixes + +New and updated translations +============================ +- es (Daniel Mustieles) +- kk (Baurzhan Muftakhidinov) +- pt +- sk (Dušan Kazik) + +============ +gedit 3.19.1 +============ + +New Features and Fixes +====================== +- Change default document title to "Untitled Document" +- Port the spell plugin to gspell +- Various minor code improvements and bug fixes + +New and updated translations +============================ +- cs (Marek Černocký) +- el (Efstathios Iosifidis) +- es (Daniel Mustieles) +- eu (Iñaki Larrañaga Murgoitio) +- fi (Jiri Grönroos) +- gd (GunChleoc) +- he (Yosef Or Boczko) +- is (Sveinn í Felli) +- lt (Aurimas Černius) +- lv (Rūdolfs Mazurs) +- nb (Kjartan Maraas) +- pt (Pedro Albuquerque) +- ro (Daniel Șerbănescu) +- ru (Yuri Myasoedov) +- sk (Dušan Kazik) +- th (Akom Chotiphantawanon) +- vi (Trần Ngọc Quân) +- zh_CN (Bin Li) + +============ +gedit 3.18.1 +============ + +New Features and Fixes +====================== +- Make the Replace dialog resizable +- Various minor code improvements and bug fixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- fi (Lauri Nurmi) +- gd (GunChleoc) +- it (Milo Casagrande) +- nl (Hannie Dumoleyn) +- sr@latin (Miloš Popović) +- sr (Милош Поповић) +- vi (Trần Ngọc Quân) + +============ +gedit 3.18.0 +============ + +New Features and Fixes +====================== +- Fix close confirmation dialog regression introduced in 3.17.92 + +New and updated translations +============================ +- cs (Marek Černocký) +- de (Bernd Homuth) +- el (Tom Tryfonidis) +- it (Milo Casagrande) +- ja (Jiro Matsuzawa) +- lv (Rūdolfs Mazurs) +- pt_BR (Enrico Nicoletto) +- ru (Stas Solovey) +- tr (Muhammet Kara) + +============= +gedit 3.17.92 +============= + +New Features and Fixes +====================== +- Various minor code improvements and bug fixes + +New and updated translations +============================ +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- de (Wolfgang Stoeggl) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- fa (Arash Mousavi) +- fr (Alain Lojewski) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- hu (Balázs Úr) +- is (Sveinn í Felli) +- kk (Baurzhan Muftakhidinov) +- ko (Changwoo Ryu) +- nb (Kjartan Maraas) +- pl (Piotr Drąg) +- sk (Dušan Kazik) +- sv (Anders Jonsson) +- zh_TW (Chao-Hsiung Liao) + +============= +gedit 3.17.90 +============= + +New Features and Fixes +====================== +- Spell checking: fix performance problem and re-organize the code +- Move minimap settings in the preferences dialog +- CSS improvements +- Add a snippet generating RPM SPEC %changelog line +- Various other code improvements and bug fixes + +New and updated translations +============================ +- ca (Carles Ferrando Garcia) +- cs (Marek Černocký) +- de (Benjamin Steinwender) +- es (Daniel Mustieles) +- lt (Aurimas Černius) +- nb (Åka Sikrom) +- pt (Pedro Albuquerque) + +============ +gedit 3.17.2 +============ + +New Features and Fixes +====================== +- Lots of cleanups and code improvements to: the document handling code, + file printing and the spell checking. +- gtk-mac-integration support fix + +New and updated translations +============================ +- de (Benjamin Steinwender) +- he (Yosef Or Boczko) +- hu (Balázs Úr) +- hu (Gabor Kelemen) +- it (Milo Casagrande) +- oc (Cédric Valmary (totenoc.eu)) +- pt (Pedro Albuquerque) +- sk (Dušan Kazik) +- sl (Matej Urbančič) +- th (Akom Chotiphantawanon) + +============ +gedit 3.17.1 +============ + +New Features and Fixes +====================== +- Add a menu to toggle the source map +- Fix print margins +- Fix the --wait options when passing a list of files +- Several cleanups and code improvements to the document handling code +- Various other bug fixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- ca (Gil Forcada) +- cs (Marek Černocký) +- de (Christian Kirbach) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- he (Yosef Or Boczko) +- nb (Åka Sikrom) +- oc (Cédric Valmary (Tot en òc)) +- pl (Piotr Drąg) +- ro (Daniel Șerbănescu) +- sk (Dušan Kazik) +- th (Akom Chotiphantawanon) +- tr (Necdet Yücel) + +============ +gedit 3.17.0 +============ + +New Features and Fixes +====================== +- Improve the Encodings dialog +- Add setting to display a grid pattern +- Various other bug fixes + +New and updated translations +============================ +- an (Daniel Martinez) +- cs (Marek Černocký) +- es (Daniel Mustieles) +- uk (Назарій Ріттер) +- vi (Trần Ngọc Quân) + +============ +gedit 3.16.1 +============ + +New Features and Fixes +====================== +- Improve error reporting when failing to load private lib +- Performance improvements for groups of text insertions/deletions +- Do not merge xml translation in gschema files +- Various other bug fixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- ca (Gil Forcada) +- eo (Kristjan SCHMIDT) +- fr (Alain Lojewski) +- id (Andika Triwidada) +- pa (A S Alam) + +============ +gedit 3.16.0 +============ + +New and updated translations +============================ + +- an (Daniel Martinez) +- de (Benjamin Steinwender) +- eu (Iñaki Larrañaga Murgoitio) +- fi (Jiri Grönroos) +- ja (Nobuto Murata) +- ru (Stas Solovey) +- th (Akom Chotiphantawanon) +- zh_TW (Chao-Hsiung Liao) + +============= +gedit 3.15.92 +============= + +New Features and Fixes +====================== +- Various bug fixes + +New and updated translations +============================ +- bg (Alexander Shopov) +- bs (Samir Ribic) +- da (Kenneth Nielsen) +- de (Benjamin Steinwender) +- gl (Fran Dieguez) +- hu (Gabor Kelemen) +- kk (Baurzhan Muftakhidinov) +- ko (Changwoo Ryu) +- lt (Aurimas Černius) +- lv (Rūdolfs Mazurs) +- nb (Åka Sikrom) +- pl (Paweł Żołnowski) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- sv (Anders Jonsson) +- sv (Daniel Nylander) +- tr (Muhammet Kara) +- vi (Trần Ngọc Quân) + +============= +gedit 3.15.91 +============= + +New Features and Fixes +====================== +- Rework some of the printing code +- Various bug fixes + +New and updated translations +============================ +- cs (Marek Černocký) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- fr (Alain Lojewski) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- hu (Balázs Úr) +- pt_BR (Rafael Ferreira) +- ru (Stas Solovey) +- sk (Dušan Kazik) +- sl (Matej Urbančič) +- uk (Daniel Korostil) +- zh_TW (Chao-Hsiung Liao) + +============= +gedit 3.15.90 +============= + +New Features and Fixes +====================== +- Improved documentation +- Various bug fixes + +New and updated translations +============================ +- an (Daniel Martinez) +- cs (Marek Černocký) +- de (Benjamin Steinwender) +- el (Efstathios Iosifidis) +- es (Daniel Mustieles) +- he (Yosef Or Boczko) +- is (Sveinn í Felli) +- nb (Åka Sikrom) +- ru (Ivan Komaritsyn) +- sk (Dušan Kazik) +- sv (Anders Jonsson) + +============ +gedit 3.15.1 +============ + +New Features and Fixes +====================== +- Improved open document selector +- Start to rework the replace dialog +- Use the new color scheme chooser +- External tools plugin: fix document saving +- Various bug fixes + +New and updated translations +============================ +- cs (Marek Černocký) +- es (Daniel Mustieles) +- eu (Iñaki Larrañaga Murgoitio) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- hu (Balázs Úr) +- hu (Gabor Kelemen) +- is (Sveinn í Felli) +- ja (Hajime Taira) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- pt_BR (Rafael Ferreira) +- ro (Daniel Șerbănescu) +- ru (Stas Solovey) +- tr (Muhammet Kara) +- vi (Trần Ngọc Quân) + +============ +gedit 3.14.1 +============ + +New Features and Fixes +====================== +- Increase default window size +- Various bug fixes + +New and updated translations +============================ +- an (Daniel Martinez) +- bn_IN +- el (Efstathios Iosifidis) +- fa (Arash Mousavi) +- fi (Jiri Grönroos) +- gd (GunChleoc) +- gl (Fran Dieguez) +- gu +- he (Yosef Or Boczko) +- kk (Baurzhan Muftakhidinov) +- lv (Rūdolfs Mazurs) +- nb (Kjartan Maraas) +- pl (Piotr Drąg) +- pt (Pedro Albuquerque) +- ru (Stas Solovey) +- te (Krishnababu Krothapalli) +- uk (Назарій Ріттер) +- zh_CN (Yunqiang Su) +- zh_TW (Cheng-Chia Tseng) + +============= +gedit 3.14.0 +============= + +New Features and Fixes +====================== +- Improvements on OSX port +- Improvements on Win32 port +- Misc bugfixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- bg (Alexander Shopov) +- bn_IN (sray) +- ca (Gil Forcada) +- ca@valencia (Gil Forcada) +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- de () +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- fi (Jiri Grönroos) +- fr (Alain Lojewski) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- he (Yosef Or Boczko) +- hi (rajesh) +- hu (Balázs Úr) +- id (Andika Triwidada) +- it (Milo Casagrande) +- ja (Jiro Matsuzawa) +- kn (Shankar Prasad) +- ko (Changwoo Ryu) +- lt (Aurimas Černius) +- mr (Sandeep Shedmake) +- nb (Kjartan Maraas) +- or (Manoj Kumar Giri) +- pa (A S Alam) +- pl (Paweł Żołnowski) +- pt_BR (Rafael Ferreira) +- ru (Yuri Myasoedov) +- sk (Dušan Kazik) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- sv (Sebastian Rasmussen) +- ta (Shantha kumar) +- th (Akom Chotiphantawanon) +- uk (Daniel Korostil) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +============= +gedit 3.13.91 +============= + +New Features and Fixes +====================== +- Fix a segmentation fault when loading a file + +New and updated translations +============================ +- es (Daniel Mustieles) + +============= +gedit 3.13.90 +============= + +New Features and Fixes +====================== +- Set default value of create-backup-copy setting to false +- Misc improvements and bug fixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- el (Tom Tryfonidis) +- fi (Lasse Liehu) +- he (Yosef Or Boczko) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) + +============ +gedit 3.13.5 +============ + +New Features and Fixes +====================== +- Rework the headerbar again +- Fix opening files from nautilus +- Center the view in fullscreen mode +- Win32 improvements and new installer +- Misc bug fixes + +New and updated translations +============================ +- el (Maria Mavridou) +- eu (Iñaki Larrañaga Murgoitio) +- ja (Jiro Matsuzawa) +- nn (Moonchild) +- tg (Victor Ibragimov) + +============ +gedit 3.13.4 +============ + +New Features and Fixes +====================== +- Update appdata file for new desktop file name +- Use automatic GTK menus +- Misc bug fixes + +New and updated translations +============================ +- he (Yosef Or Boczko) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- pt_BR (Enrico Nicoletto) + +============ +gedit 3.13.3 +============ + +New Features and Fixes +====================== +- File loading and saving based on a new API in GtkSourceView. + GeditEncoding is replaced by GtkSourceEncoding, and there + are changes in GeditDocument. To port plugins, see: + https://wiki.gnome.org/Apps/Gedit/API-Changes + +- Include Adwaita theming +- New selector to open documents in the header bar +- Various improvements and bug fixes +- Some work to build gedit on Windows + +New and updated translations +============================ +- bg (Alexander Shopov) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- gd (GunChleoc) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- nb (Kjartan Maraas) +- ru (Yuri Myasoedov) +- sv (Anders Jonsson) +- tr (Muhammet Kara) + +============ +gedit 3.13.2 +============ + +- Zeitgeist plugin moved to the gedit-plugins module +- Some code clean-up in GeditTab and GeditDocument +- Updated Thai translation + +============ +gedit 3.13.1 +============ + +New Features and Fixes +====================== +- Statusbar: line/col popover menu (Sebastien Lafargue) +- Use GtkListBox for the style scheme list (Paolo Borelli) +- Make use of popover menu for the gear menu (Ignacio Casal Quinteiro) +- Make it work on Windows (Руслан Ижбулатов, Paolo Borelli) +- Add a gsettings for the last wrapping split -mode (Sebastien Lafargue) +- Misc bug fixes. + +New and updated translations +============================ +- be (Sviatlana Liasovich) +- ca@valencia (Pau Iranzo) +- cs (Marek Černocký) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- he (Yosef Or Boczko) +- id (Andika Triwidada) +- pt_BR (Enrico Nicoletto) +- pt_BR (Rafael Ferreira) +- th (Akom Chotiphantawanon) + +============ +gedit 3.12.1 +============ + +New Features and Fixes +====================== +- Many fixes to the snippets plugin +- Rework some of the internals in preparation to a new Windows release +- Change Uppercase shortcut to Ctrl+U to avoid conflict with Save All +- Add Ctrl+N shortcut for New Window +- Plug some minor memory leaks +- Misc bug fixes. + +New and updated translations +============================ +- ar (Ibrahim Saed) +- cs (Marek Černocký) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- hu (Attila Hammer) +- id (Andika Triwidada) +- th (Akom Chotiphantawanon) + +============ +gedit 3.12.0 +============ + +New Features and Fixes +====================== +- Fix regression sorting recent files + +New and updated translations +============================ +- an (Daniel Martinez) +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- de (Christian Kirbach) +- eu (Iñaki Larrañaga Murgoitio) +- gd (GunChleoc) +- hu (Gabor Kelemen) +- lv (Rūdolfs Mazurs) +- sl (Matej Urbančič) + +============= +gedit 3.11.92 +============= + +New Features and Fixes +====================== +- Implement drag'n'drop for the documents panel +- Misc bug fixes. + +New and updated translations +============================ +- ca (Pau Iranzo) +- cs (Marek Černocký) +- de (Christian Kirbach) +- de (Wolfgang Stoeggl) +- es (Daniel Mustieles) +- fi (Jiri Grönroos) +- fr (naybnet) +- id (Andika Triwidada) +- ko (Changwoo Ryu) +- lv (Rūdolfs Mazurs) +- pa (A S Alam) +- pl (Paweł Żołnowski) +- pt (Tiago S.) +- ru (Yuri Myasoedov) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- uk (Daniel Korostil) +- zh_CN (Wylmer Wang) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +============= +gedit 3.11.91 +============= + +New Features and Fixes +====================== +- Add keyboard shortcuts to change text case +- Readd bus message to add context menu items to the filebrowser +- Reopen last closed tab with ctrl+shift+T +- Rework fullscreen mode to use GtkRevealer +- Misc bug fixes. + +New and updated translations +============================ +- cs (Marek Černocký) +- es (Daniel Mustieles) +- gd (GunChleoc) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- hu (Balázs Úr) +- it (Milo Casagrande) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- pt_BR (Rafael Ferreira) +- zh_CN (Tong Hui) + +============= +gedit 3.11.90 +============= + +New Features and Fixes +====================== +- Even more work on the new UI (use popovers, CSD in dialogs and much more) +- Reimplement the documents sidepane using GtkListBox +- Adapt plugins to the latest changes +- Misc bug fixes. + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- cs (Marek Černocký) +- es (Daniel Mustieles) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- id (Andika Triwidada) +- it (Milo Casagrande) +- pt_BR (Enrico Nicoletto) +- uk (Daniel Korostil) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +============ +gedit 3.11.3 +============ + +New Features and Fixes +====================== +- More work on the new UI +- Finalize the new API to extend the menu from plugins +- Adapt plugins to the latest changes +- Restore command line handling that was broken in laste release. +- Detect when network is not available and warn if using remote documents +- Add an fpaste tool to the external tools scripts +- Rewrite the build system with nonrecursive Makefiles +- Improvements in docs. +- Misc bug fixes. + +New and updated translations +============================ +- an (Jorge Pérez Pérez) +- as (Nilamdyuti Goswami) +- cs (Marek Černocký) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- gd (GunChleoc) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- kn (Shankar Prasad) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- pt_BR (Rafael Ferreira) +- ru (Stas Solovey) +- th (Akom Chotiphantawanon) +- zh_CN (Tong Hui) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +============ +gedit 3.11.2 +============ + +New Features and Fixes +====================== +- Refresh the main user interface, radically changing the user interacts with the UI. +- Remove deprecated API. +- Integrate change case plugin inside GtkSourceView directly. +- Improvements in docs. +- Misc bug fixes. + +New and updated translations +============================ +- bg (Valentin Laskov) +- de (Simon Linden) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- el (Efstathios Iosifidis) +- es (Daniel Mustieles) +- fr (Julien Hardelin) +- gl (Fran Dieguez) +- he (Yosef Or Boczko) +- id (Andika Triwidada) +- it (Milo Casagrande) +- lv (Rūdolfs Mazurs) +- nl (Hannie Dumoleyn) +- pt_BR (Rafael Ferreira) +- sk (Pavol Klačanský) +- sl (Matej Urbančič) +- ta (Shantha kumar) +- th (Akom Chotiphantawanon) +- zh_CN (Luo Lei) + +============ +gedit 3.11.1 +============ + +New Features and Fixes +====================== +- Implement XDS dnd support for GeditView and GeditWindow (Nelson Benítez León) +- Documentation Improvements +- Style fixes +- Implement Move to New Tab Group (Ignacio Casal Quinteiro) +- Expand tabs and center tab labels (William Jon McCann) +- Misc bugfixes and improvements + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- be (Sviatlana Liasovich) +- ca (Josep Sanchez Mesegue) +- ca@valencia (Josep Sanchez Mesegue) +- cs (Marek Černocký) +- da (Ask Hjorth Larsen) +- de (Christian Kirbach) +- es (Daniel Mustieles) +- eu (Iñaki Larrañaga Murgoitio) +- gl (Fran Dieguez) +- hu (Gabor Kelemen) +- id (Andika Triwidada) +- it (Milo Casagrande) +- ko (Changwoo Ryu) +- lt (Aurimas Černius) +- lv (Rūdolfs Mazurs) +- nb (Kjartan Maraas) +- pl (Piotr Drąg) +- pt (António Lima) +- pt_BR (Antonio Fernandes C. Neto) +- ru (Stas Solovey) +- ru (Yuri Myasoedov) +- sk (Pavol Klačanský) +- sl (Matej Urbančič) +- sr (Мирослав Николић) +- sr@latin (Miroslav Nikolić) +- th (Akom Chotiphantawanon) + +============ +gedit 3.10.0 +============ + +New Features and Fixes +====================== +- Misc bugfixes and improvements + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- ca (Josep Sànchez) +- et (Mattias Põldaru) +- eu (Iñaki Larrañaga Murgoitio) +- gd (GunChleoc) +- ja (Jiro Matsuzawa) +- pt_BR (Enrico Nicoletto) +- uk (Daniel Korostil) +- zh_CN (Wylmer Wang) + +============ +gedit 3.9.92 +============ + +New Features and Fixes +====================== +- Some final tweaks to the search rework (Sébastien Wilmet) +- Misc bugfixes and improvements + +New and updated translations +============================ +- be (Sviatlana Liasovich) +- ca (Gil Forcada) +- da (Ask Hjorth Larsen) +- de (Christian Kirbach) +- fi (Jiri Grönroos) +- fr (Alain Lojewski) +- gl (Fran Dieguez) +- hu (Gabor Kelemen) +- id (Andika Triwidada) +- ko (Changwoo Ryu) +- lv (Rūdolfs Mazurs) +- ru (Dmitriy S. Seregin) +- ru (Yuri Myasoedov) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- th (Akom Chotiphantawanon) +- vi (Trần Ngọc Quân) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +============ +gedit 3.9.91 +============ + +New Features and Fixes +====================== +- Misc bugfixes and improvements + +New and updated translations +============================ +- de (Christian Kirbach) +- es (Daniel Mustieles) +- ga (Seán de Búrca) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- hu (Balázs Úr) +- id (Andika Triwidada) +- it (Milo Casagrande) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- pa (A S Alam) +- pl (Piotr Drąg) +- pt_BR (Enrico Nicoletto) +- sk (Pavol Klačanský) +- vi (Trần Ngọc Quân) + +============ +gedit 3.9.90 +============ + +New Features and Fixes +====================== +- Implement regual expression search (Sébastien Wilmet) +- Misc bugfixes and improvements + +New and updated translations +============================ +- cs (Marek Černocký) +- de (Christian Kirbach) +- de (Tobias Endrigkeit) +- he (Yaron Shahrabani) +- hu (Gabor Kelemen) +- it (Milo Casagrande) +- nb (Kjartan Maraas) +- pt_BR (Rafael Ferreira) +- th (Akom Chotiphantawanon) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.9.4 +=========== + +New Features and Fixes +====================== +- Use the GtkSourceView search and replace API (Sébastien Wilmet) +- Deprecate the gedit search and replace API (Sébastien Wilmet) +- Display the number of search occurrences and the current occurrence position + in the search entry (Ignacio Casal Quinteiro, Sébastien Wilmet) +- Fix tab groups (Garrett Regier) +- Misc bugfixes and improvements (Shobha Tyagi, Ignacio Casal Quinteiro, + Garrett Regier, William Jon McCann, Paolo Borelli, Matthias Clasen) + +New and updated translations +============================ +- cs (Marek Černocký) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- gl (Fran Dieguez) +- id (Andika Triwidada) +- it (Milo Casagrande) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- sk (Pavol Klačanský) + +=========== +gedit 3.9.3 +=========== + +New Features and Fixes +====================== +- Various bugfixes and improvements to the filebrowser and the + external tools plugins (Garrett Regier) +- Fix clicking on replace dialog buttons (Sébastien Wilmet) +- Misc bugfixes + +New and updated translations +============================ +- cs (Marek Černocký) +- es (Daniel Mustieles) +- it (Milo Casagrande) +- nb (Kjartan Maraas) + +=========== +gedit 3.9.2 +=========== + +New Features and Fixes +====================== +- Many bugfixes and improvements to the filebrowser, quickopen and + external tools plugins (Garrett Regier) +- Misc bugfixes + +New and updated translations +============================ +- cs (Marek Černocký) +- de (Benjamin Steinwender) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- ja (Jiro Matsuzawa) +- mr (Sandeep Shedmake) +- th (Akom Chotiphantawanon) + +=========== +gedit 3.9.1 +=========== + +New Features and Fixes +====================== +- Add new Highlight Mode dialog (Ignacio Casal Quinteiro) +- Allow shell quotes in commands from Run Command tool (Adam Dingle) +- Use widget templates (Ignacio Casal Quinteiro, Paolo Borelli) +- external tools: look in browser root for files in tool output (Adam Dingle) +- external tools: extend link parser to handle grep output (Adam Dingle) +- external tools: provide environment variable with file browser root (Ignacio Casal Quinteiro) +- Improvements in filebrowser (Ignacio Casal Quinteiro, Sébastien Wilmet) +- Improvements in quickopen (Ignacio Casal Quinteiro) +- Improvements in docs +- Misc bugfixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- de (Christian Kirbach) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- hu (Gabor Kelemen) +- it (Milo Casagrande) +- ja (OKANO Takayoshi) +- ml (Anish A) +- nb (Kjartan Maraas) +- or (Manoj Kumar Giri) +- pl (Piotr Drąg) +- pt_BR (Enrico Nicoletto) +- ru (Stas Solovey) +- sk (Pavol Klačanský) +- sl (Matej Urbančič) +- ta (Shantha kumar) +- te (Krishnababu Krothapalli) + +=========== +gedit 3.8.1 +=========== + +New Features and Fixes +====================== +- Port zeitgeist plugin to use libzeitgeist2 (Seif Lotfy) +- Improvements in docs +- Misc bugfixes + +New and updated translations +============================ +- an (Jorge Pérez Pérez) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- fi (Jiri Grönroos) +- hu (Gabor Kelemen) +- pl (Wojciech Szczęsny) +- pt_BR (Rafael Ferreira) +- tr (Muhammet Kara) +- uk (Daniel Korostil) + +=========== +gedit 3.8.0 +=========== + +New Features and Fixes +====================== +- Improvements in docs +- Misc bugfixes + +New and updated translations +============================ +- crh (Reşat SABIQ) +- es (Daniel Mustieles) +- fa (Arash Mousavi) +- fr (Alexandre Franke) +- hi (raj) +- hu (Gabor Kelemen) +- ja (Jiro Matsuzwa) +- kn (Shankar Prasad) +- mr (Sandeep Shedmake) +- or (Manoj Kumar Giri) +- ta (Dr.T.Vasudevan) +- te (Krishnababu Krothapalli) + +=========== +gedit 3.7.6 +=========== + +New Features and Fixes +====================== +- Improvements in docs +- Misc bugfixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- be (Sviatlana Liasovich) +- ca (Gil Forcada) +- ca@valencia (Gil Forcada) +- da (Kenneth Nielsen) +- de (Mario Blättermann) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- et (Mattias Põldaru) +- fi (Jiri Grönroos) +- fr (Bruno Brouard) +- hu (Balázs Úr) +- id (Andika Triwidada) +- ja (Jiro Matsuzwa) +- ko (Changwoo Ryu) +- lv (Rūdolfs Mazurs) +- pt (Duarte Loreto) +- ru (Yuri Myasoedov) +- sk (Pavol Klačanský) +- ta (Dr.T.Vasudevan) +- tg (Victor Ibragimov) +- th (Akom Chotiphantawanon) + +=========== +gedit 3.7.5 +=========== + +New Features and Fixes +====================== +- Updated mallard snippets (Jim Campbell) +- Improvements in docs +- Misc bugfixes + +New and updated translations +============================ +- cs (Marek Černocký) +- de (Mario Blättermann) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- fr (Alain Lojewski) +- gu ("Last-Translator: \n") +- lt (Aurimas Černius) +- pa (A S Alam) +- ru (Stas Solovey) +- ru (Yuri Myasoedov) +- sl (Andrej Žnidaršič) +- zh_CN (Wylmer Wang) + +=========== +gedit 3.7.4 +=========== + +New Features and Fixes +====================== +- Use revealer to animate the search bar and the notification bars (Ignacio Casal Quinteiro) +- Several fixes in snippets (Sébastien Wilmet) +- Improvements in docs (Ekaterina Gerasimova) +- Misc bugfixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- bg (Alexander Shopov) +- es (Daniel Mustieles) +- eu (Iñaki Larrañaga Murgoitio) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- it (Milo Casagrande) +- ja (Carrot031) +- lt (Aurimas Černius) +- ml (Anish A) +- nb (Kjartan Maraas) +- nl (Wouter Bolsterlee) +- pl (Piotr Drąg) +- pt_BR (Rafael Ferreira) +- ru (Yuri Myasoedov) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- th (Akom Chotiphantawanon) +- ug (Gheyret Kenji) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.7.3 +=========== + +New Features and Fixes +====================== +- Application menu (Paolo Borelli, Ignacio Casal Quinteiro) +- Misc bugfixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- es (Daniel Mustieles) +- he (Yaron Shahrabani) +- hu (Balázs Úr) +- it (Milo Casagrande) +- nb (Kjartan Maraas) + +=========== +gedit 3.7.2 +=========== + +New Features and Fixes +====================== +- Port to GtkApplication (Paolo Borelli, Ryan Lortie, Ignacio Casal Quinteiro) +- Lots of improvements in docs (Jim Campbell) +- Misc bugfixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- as (Nilamdyuti Goswami) +- be (Sviatlana Liasovich) +- ca (Gil Forcada) +- cs (Marek Černocký) +- de (Wolfgang Stoeggl) +- el (Dimitris Spingos (Δημήτρης Σπίγγος)) +- es (Daniel Mustieles) +- et (Mattias Põldaru) +- fa (Arash Mousavi) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- he (Yaron Shahrabani) +- hu (Gabor Kelemen) +- id (Andika Triwidada) +- ja (Takayuki KUSANO) +- lt (Aurimas Černius) +- lv (Rūdolfs Mazurs) +- ml (Ani Peter) +- mr (Sandeep Shedmake) +- nb (Kjartan Maraas) +- or (Manoj Kumar Giri) +- pa (A S Alam) +- pl (Piotr Drąg) +- pt_BR (Rafael Ferreira) +- ru (Yuri Myasoedov) +- sk (Dušan Kazik) +- sl (Andrej Žnidaršič) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- ta (Dr.T.Vasudevan) + +=========== +gedit 3.7.1 +=========== + +New Features and Fixes +====================== +- Port to python 3 (Ignacio Casal Quinteiro) +- Misc bugfixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- be (Sviatlana Liasovich) +- ca (Gil Forcada) +- cs (Marek Černocký) +- de (Wolfgang Stoeggl) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- et (Mattias Põldaru) +- fa (Arash Mousavi) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- hu (Gabor Kelemen) +- id (Andika Triwidada) +- ja (Takayuki KUSANO) +- lt (Aurimas Černius) +- lv (Rūdolfs Mazurs) +- mr (Sandeep Shedmake) +- nb (Kjartan Maraas) +- pa (A S Alam) +- pl (Piotr Drąg) +- ru (Yuri Myasoedov) +- sk (Dušan Kazik) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) + +=========== +gedit 3.6.1 +=========== + +New Features and Fixes +====================== +- File Browser side panel improvements (Ignacio Casal Quinteiro) +- Fix print preview in landscape mode (Adrian Johnson) +- Misc bugfixes + +New and updated translations +============================ +- ca (David Planella) +- ca@valencia (David Planella) +- el (Tom Tryfonidis) +- gl (Fran Dieguez) +- km (Khoem Sokhem) +- lv (Rūdolfs Mazurs) +- nb (Kjartan Maraas) +- sk (Ivan Masár) +- sl (Matej Urbančič) +- uk (Daniel Korostil) + +=========== +gedit 3.6.0 +=========== + +New and updated translations +============================ +- bg (Alexander Shopov) +- bn_IN (Sayak Sarkar) +- el (Tom Tryfonidis) +- et (Mattias Põldaru) +- hi (chandankumar) +- kn (Shankar Prasad) +- lv (Rūdolfs Mazurs) +- or (Manoj Kumar Giri) +- ru (Yuri Myasoedov) +- te (Krishnababu Krothapalli) +- zh_CN (YunQiang Su) + +=========== +gedit 3.5.3 +=========== + +New Features and Fixes +====================== +- Handle a command line specifying a big line number (Paolo Borelli, David Toton) +- Extensive snippet collection for docbook +- Misc bugfixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- be (Sviatlana Liasovich) +- bg (Krasimir Chonov) +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- de (Mario Blättermann) +- el (Tom Tryfonidis) +- en_GB (Bruce Cowan) +- es (Daniel Mustieles) +- fa (Arash Mousavi) +- fi (Jiri Grönroos) +- fi (sampo555) +- fr (Alain Lojewski) +- fr (Bruno Brouard) +- gu ("Last-Translator: \n") +- hu (Gabor Kelemen) +- id (Andika Triwidada) +- it (Milo Casagrande) +- ko (Changwoo Ryu) +- lt (Aurimas Černius) +- ml (Ani Peter) +- mr (Sandeep Shedmake) +- pa (A S Alam) +- pl (Piotr Drąg) +- pt_BR (Rafael Ferreira) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- ta (Dr.T.Vasudevan) +- th (Theppitak Karoonboonyanan) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.5.2 +=========== + +New Features and Fixes +====================== +- Improvements in snippets plugin (Jesse van den Kieboom) +- Use autoreconf instead gnome-autogen (Javier Jardón) +- Misc bugfixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- as (Nilamdyuti Goswami) +- de (Mario Blättermann) +- el (Tom Tryfonidis) +- es (Daniel Mustieles) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- he (Yaron Shahrabani) +- id (Andika Triwidada) +- it (Milo Casagrande) +- ja (OKANO Takayoshi) +- lt (Aurimas Černius) +- mr (Sandeep Shedmake) +- nb (Kjartan Maraas) +- nn (Moonchild) +- pl (Piotr Drąg) +- pt (Duarte Loreto) +- ru (Stas Solovey) +- ru (Yuri Myasoedov) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- tr (Muhammet Kara) +- vi (Nguyễn Thái Ngọc Duy) +- zh_CN (Colin Zhao) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.5.1 +=========== + +New Features and Fixes +====================== +- Improved html snippets (Jaseem Abid) +- Misc bugfixes + +New and updated translations +============================ +- ar (Khaled Hosny) +- as (Nilamdyuti Goswami) +- de (Christian Kirbach) +- es (Daniel Mustieles) +- gl (Fran Dieguez) +- hi (Rajesh Ranjan) + +=========== +gedit 3.4.2 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- el (Tom Tryfonidis) +- id (Dirgita) +- lv (Rūdolfs Mazurs) +- zh_HK (Cheng-Chia Tseng) +- zh_TW (Cheng-Chia Tseng) + +=========== +gedit 3.4.1 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- bg (Krasimir Chonov) +- de (Mario Blättermann) +- es (Daniel Mustieles) +- fr (Alain Lojewski) +- hu (Gabor Kelemen) +- lv (Rūdolfs Mazurs) +- pt_BR (Adorilson Bezerra) +- sk (Ivan Masár) +- th (Akom Chotiphantawanon) +- zh_HK (Pin-hsien Li) +- zh_TW (Pin-hsien Li) + +=========== +gedit 3.4.0 +=========== + +New and updated translations +============================ +- ar (Abderrahim Kitouni) +- bg (Krasimir Chonov) +- ca (David Planella) +- ca@valencia (David Planella) +- crh (Reşat SABIQ) +- de (Viktor Nyberg) +- he (Yaron Shahrabani) +- ja (Takayuki KUSANO) +- lv (Anita Reitere) +- pt_BR (Antonio Fernandes C. Neto) +- sl (Andrej Žnidaršič) +- te (Bhuvan Krishna) +- uk (Korostil Daniel) +- zh_CN (Colin Zhao) + +=========== +gedit 3.3.8 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- ar (Ibrahim Saed) +- as (Nilamdyuti Goswami) +- be (Sviatlana Liasovich) +- bg (Alexander Shopov) +- bg (Krasimir Chonov) +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- en_GB (Bruce Cowan) +- es (Daniel Mustieles) +- et (Mattias Põldaru) +- eu (Iñaki Larrañaga Murgoitio) +- fa (Arash Mousavi) +- fi (Tommi Vainikainen) +- fr (Bruno Brouard) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- hi (rajesh) +- hu (Gabor Kelemen) +- it (Milo Casagrande) +- ko (Changwoo Ryu) +- lt (Algimantas Margevičius) +- lv (Rūdolfs Mazurs) +- nb (Kjartan Maraas) +- nl (Wouter Bolsterlee) +- pa (A S Alam) +- pl (Piotr Drąg) +- pt (Duarte Loreto) +- ru (Yuri Myasoedov) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- sv (Daniel Nylander) +- te (Sasi Bhushan Boddepalli) +- tr (Muhammet Kara) +- vi (Nguyễn Thái Ngọc Duy) +- zh_HK (Pin-hsien Li) +- zh_TW (Pin-hsien Li) + +=========== +gedit 3.3.7 +=========== + +New Features and Fixes +====================== +- Add support for fd.o desktop action spec (Nathan Williams) +- Misc bugfixes + +=========== +gedit 3.3.6 +=========== + +New Features and Fixes +====================== +- Fix the "time" plugin (Paolo Borelli) +- Misc bugfixes + +New and updated translations +============================ +- eu (Iñaki Larrañaga Murgoitio) +- hu (Gabor Kelemen) +- nl (Hannie Dumoleyn) +- pl (Piotr Drąg) + +=========== +gedit 3.3.5 +=========== + +New Features and Fixes +====================== +- Less clutter seach popup (Ignacio Casal Quinteiro) +- Use GResources (Ignacio Casal Quinteiro, Paolo Borelli) +- Misc bugfixes + +New and updated translations +============================ +- bg (Alexander Shopov) +- gl (Fran Dieguez) +- it (Milo Casagrande) +- ru (Yuri Myasoedov) +- ta (Dr.T.Vasudevan) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.3.4 +=========== + +New Features and Fixes +====================== +- Fix many memory leaks (Daniel Trebbien) +- Use Yelp Tools for docs generation (Javier Jardón) +- Docs updates (Jim Campbell) +- Misc bugfixes + +New and updated translations +============================ +- be (Sviatlana Liasovich) +- cs (Marek Černocký) +- da (Kenneth Nielsen) +- de (Mario Blättermann) +- es (Daniel Mustieles) +- et (Mattias Põldaru) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- lt (Aurimas Černius) +- nb (Kjartan Maraas) +- sl (Andrej Žnidaršič) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- sv (Daniel Nylander) +- zh_CN (Colin Zhao) + +=========== +gedit 3.3.3 +=========== + +New Features and Fixes +====================== +- Bring the OSX port up to date (Jesse van den Kieboom) +- Start fixing the Win32 port (Ignacio Casal Quinteiro) +- Some minor UI improvements, some css styling is now in the Adwaita theme +- Misc bugfixes + +New and updated translations +============================ +- bg (Alexander Shopov) +- es (Daniel Mustieles) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- nb (Kjartan Maraas) +- pt_BR (Fábio Nogueira) +- sl (Matej Urbančič) +- sv (Daniel Nylander) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.3.2 +=========== + +New Features and Fixes +====================== +- More docs awesome (Jim Campbell) +- Port snippets and external tools managers to GtkGrid (Paolo Borelli) +- Fix crashes when exiting with new gtk+ (Paolo Borelli) +- Improvements in filebrowser plugin (Ignacio Casal Quinteiro) +- Symbolic icons for close buttons (Ignacio Casal Quinteiro) +- Misc bugfixes + +New and updated translations +============================ +- be (Sviatlana Liasovich) +- bg (Alexander Shopov) +- eo (Kristjan SCHMIDT) +- es (Daniel Mustieles) +- et (Mattias Põldaru) +- fr (Alain Lojewski) +- fr (Bruno Brouard) +- he (Yaron Shahrabani) +- ja (Jiro Matsuzawa) +- lt (Aurimas Černius) +- mk ("Last-Translator: Jovan N\n") +- nb (Kjartan Maraas) +- ru (Misha Shnurapet) +- ru (Yuri Myasoedov) +- sl (Andrej Žnidaršič) +- te (Praveen Illa) +- zh_CN (Colin Zhao) + +=========== +gedit 3.3.1 +=========== + +New Features and Fixes +====================== +- Sidebar style for the panel (Ignacio Casal Quinteiro) +- Separate ParseAndActivate from Activate for snippets (Jesse van den Kieboom) +- Remove outdated tool to generate a plugin scheleton (Paolo Borelli) +- Clear the tools accel entry on backspace (Paolo Borelli) +- Make restoring default print fonts actually work (Paolo Borelli) +- Use GtkGrid in the pythonconsole settings (Paolo Borelli) +- GtkTable replaced with GtkGrid in gedit-print-preferences (Laura Lazzati) +- GtkTable replaced with GtkGrid in docinfo-plugin (Laura Lazzati) +- Remove gedit_style_scheme_manager_list_schemes_sorted (Paolo Borelli) +- Remove gedit_language_manager_list_languages_sorted (Paolo Borelli) +- Remove explicit gthread initialization (Paolo Borelli) +- More docs awesome (Jim Campbell) +- quickopen: set placeholder text (Ignacio Casal Quinteiro) +- Misc bugfixes + +New and updated translations +============================ +- de (Mario Blättermann) +- el (Kostas Papadimas) +- es (Daniel Mustieles) +- fr (Bruno Brouard) +- gl (Fran Dieguez) +- he (Yaron Shahrabani) +- my (phonemyintkhaing) +- nb (Kjartan Maraas) +- ru (Yuri Myasoedov) +- sl (Matej Urbančič) +- th (Akom Chotiphantawanon) +- tr (Muhammet Kara) + +=========== +gedit 3.2.2 +=========== + +New Features and Fixes +====================== +- More help awesome (Jim Campbell) +- Misc bugfixes + +New and updated translations +============================ +- be (Sviatlana Liasovich) +- es (Jorge González) +- fr (Bruno Brouard) +- pl (Piotr Drąg) +- sk (Ivan Masár) +- vi (Nguyễn Thái Ngọc Duy) + +=========== +gedit 3.2.1 +=========== + +New Features and Fixes +====================== +- More help awesome (Jim Campbell) +- Use GtkGrid in the replace dialog. (Paolo Borelli) +- Misc bugfixes + +New and updated translations +============================ +- da (Kenneth Nielsen) +- eo (Kristjan SCHMIDT) +- lv (Rūdofls Mazurs) + +=========== +gedit 3.2.0 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- as (Nilamdyuti Goswami) +- ca@valencia (Gil Forcada) +- de (Christian Kirbach) +- es (Jorge González) +- eu (Julen Ruiz Aizpuru) +- ga (Seán de Búrca) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- hu (Gabor Kelemen) +- ja (OKANO Takayoshi) +- kn (Shankar Prasad) +- ko (Changwoo Ryu) +- nl (Hannie Dumoleyn) +- te (Krishnababu Krothapalli) + +=========== +gedit 3.1.6 +=========== + +New Features and Fixes +====================== +- Misc bugfixes +- More documentation (Jim Campbell) + +New and updated translations +============================ +- ca (Gil Forcada) +- da (Kenneth Nielsen) +- en_GB (Bruce Cowan) +- es (Daniel Mustieles) +- fr (Bruno Brouard) +- gl (Fran Dieguez) +- gu ("Last-Translator: \n") +- lt (Aurimas Černius) +- pl (Piotr Drąg) +- pt (Duarte Loreto) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- ta (Dr.T.Vasudevan) + +=========== +gedit 3.1.5 +=========== + +New Features and Fixes +====================== +- Update snippet for mallard (Germán Póo-Caamaño) +- Update the quickopen dialog to look more GNOMEish 3 (Ignacio Casal Quinteiro) +- Use symbolic icons for the search popup. (Ignacio Casal Quinteiro) +- Point to the right help in the dialogs (Ignacio Casal Quinteiro, Jim Campbell) + +New and updated translations +============================ +- fa (Arash Mousavi) +- it (Milo Casagrande) +- tr (Muhammet Kara) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + +=========== +gedit 3.1.4 +=========== + +New Features and Fixes +====================== +- Use css for the search popup (Ignacio Casal Quinteiro) +- Use pygobject 3 +- More documentation (Jim Campbell) +- gboxed templates for snippets plugin (Ignacio Casal Quinteiro) +- Misc bugfixes + +New and updated translations +============================ +- bg (Alexander Shopov) +- de (Mario Blättermann) +- es (Jorge González) +- id (Andika Triwidada) +- it (Milo Casagrande) +- nl (Hannie Dumoleyn) +- pa (A S Alam) +- th (Akom Chotiphantawanon) +- tr (Muhammet Kara) + +=========== +gedit 3.1.3 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- cs (Marek Černocký) +- de (Mario Blättermann) +- el (Simos Xenitellis) +- es (Daniel Mustieles) +- eu (Iñaki Larrañaga Murgoitio) +- he (Yaron Shahrabani) +- hu (Gabor Kelemen) +- lv (Rūdofls Mazurs) +- nb (Kjartan Maraas) +- pt_BR (Thiago Branco Meurer) +- sl (Matej Urbančič) +- zh_CN (Colin Zhao) + +=========== +gedit 3.1.2 +=========== + +New Features and Fixes +====================== +- Add markdown snippets (Jean-Philippe Fleury) +- Fix slowdown on gedit (Paolo Borelli) +- Update to use libpeas 1.1 API (Garrett Regier) +- New GNOME 3 like style for snippets and external tools (Ignacio Casal Quinteiro) +- Misc bugfixes + +New and updated translations +============================ +- de (Christian Kirbach) +- de (Paul Seyfert) +- es (Jorge González) +- gl (Fran Diéguez) +- he (Yaron Shahrabani) +- nb (Kjartan Maraas) +- sl (Matej Urbančič) + +=========== +gedit 3.1.1 +=========== + +New Features and Fixes +====================== +- Port to GtkOverlay (Ignacio Casal Quinteiro) +- Fix single instance logic (Paolo Borelli) +- Misc bugfixes + +New and updated translations +============================ +- ca@valencia (Gil Forcada) +- el (Kostas Papadimas) +- fr (Bruno Brouard) + +=========== +gedit 3.0.3 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- cs (Marek Černocký) +- es (Daniel Mustieles) +- gl (Fran Diéguez) +- ja (Jiro Matsuzawa) +- sk (Ivan Masár) +- ug (Zeper) + +=========== +gedit 3.0.2 +=========== + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- de (Mario Blättermann) +- es (Daniel Mustieles) +- hu (Gabor Kelemen) +- sk (Ivan Masár) +- vi (Clytie Siddall) + +============= +gedit 3.0.1 +============= + +New Features and Fixes +====================== +- Various fixes in search popup +- Style improvements +- Misc bugfixes + +New and updated translations +============================ +- eu (Inaki Larranaga Murgoitio) + +============= +gedit 3.0.0 +============= + +New Features and Fixes +====================== +- Misc bugfixes + +New and updated translations +============================ +- af (F Wolff) +- ar (Khaled Hosny) +- as (Nilamdyuti Goswami) +- ast (Xandru Armesto) +- be (Ihar Hrachyshka) +- bg (Krasimir Chonov) +- bn_IN ("Last-Translator: \n") +- ca (Gil Forcada) +- ca@valencia (Gil Forcada) +- cs (Marek Černocký) +- da (Ask Hjorth Larsen) +- de (Christian Kirbach) +- de (Mario Blättermann) +- el (Michael Kotsarinis) +- el (Simos Xenitellis) +- en_GB (Bruce Cowan) +- en@shaw (Thomas Thurman) +- eo (Kristjan SCHMIDT) +- es (Daniel Mustieles) +- es (Jorge González) +- et (Mattias Põldaru) +- eu (Iñaki Larrañaga Murgoitio) +- fr (Gérard Baylard) +- ga (Seán de Búrca) +- gl (Fran Diéguez) +- gu (Sweta Kothari) +- he (Yaron Shahrabani) +- hi (Rajesh Ranjan) +- hu (Gabor Kelemen) +- id (Dirgita) +- it (Milo Casagrande) +- ja (Hajime Taira) +- ko (Changwoo Ryu) +- lt (Aurimas Černius) +- lv (Rudolfs) +- ml ("Last-Translator: \n") +- mr (Sandeep Shedmake) +- nb (Kjartan Maraas) +- nl (Wouter Bolsterlee) +- or (Manoj Kumar Giri) +- pa (A S Alam) +- pl (Piotr Drąg) +- pt_BR (Gabriel F. Vilar) +- pt (Duarte Loreto) +- ro (Lucian Adrian Grijincu) +- ru (Yuri Myaseodov) +- sl (Andrej Žnidaršič) +- sl (Matej Urbančič) +- sr@latin (Miroslav Nikolić) +- sr (Мирослав Николић) +- sv (Daniel Nylander) +- ta ("Last-Translator: \n") +- te (Krishnababu Krothapalli) +- th (Akom Chotiphantawanon) +- tr ("Last-Translator: \n") +- ug (Zeper) +- uk (Korostil Daniel) +- vi (Clytie Siddall) +- zh_CN (YunQiang Su) +- zh_HK (Chao-Hsiung Liao) +- zh_TW (Chao-Hsiung Liao) + diff --git a/README.md b/README.md new file mode 100644 index 0000000..099caf0 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +gedit - The GNOME text editor +============================= + +This is version 3.38.1 of gedit. + +gedit is the text editor of the GNOME desktop environment. + +The first goal of gedit is to be easy to use, with a simple interface by +default. More advanced features are available by enabling plugins. + +See the [gedit official website](https://wiki.gnome.org/Apps/Gedit) for +more information. + +License +------- + +gedit is released under the GNU General Public License (GPL) version 2 or +later, see the file [COPYING](COPYING) for more information. + +Dependencies +------------ + +gedit uses the GTK GUI toolkit. + +For a complete list of dependencies, see the file [meson.build](meson.build) and +search the section “Dependencies”. + +Installation +------------ + +To build gedit from source, see the [docs/build.md](docs/build.md) file. + +How to report bugs +------------------ + +Please read +[the wiki page on how to report bugs](https://wiki.gnome.org/Apps/Gedit/ReportingBugs), +it contains a list of frequently reported bugs and a link to the bug +tracker. + +Development resources +--------------------- + +- [gedit on GitLab](https://gitlab.gnome.org/GNOME/gedit) +- [gedit-plugins on GitLab](https://gitlab.gnome.org/GNOME/gedit-plugins) +- [Tarballs](https://download.gnome.org/sources/gedit/) +- [Roadmap](docs/roadmap.md) +- [gedit wiki attic](https://wiki.gnome.org/Apps/Gedit/Attic) + +Contributions +------------- + +gedit development relies on voluntary contributions and everyone is invited +to help. + +See the file [CONTRIBUTING.md](CONTRIBUTING.md) for more information. diff --git a/build-aux/flatpak/.gitignore b/build-aux/flatpak/.gitignore new file mode 100644 index 0000000..7949add --- /dev/null +++ b/build-aux/flatpak/.gitignore @@ -0,0 +1,2 @@ +.flatpak-builder/ +build/ diff --git a/build-aux/flatpak/1-build-and-install.sh b/build-aux/flatpak/1-build-and-install.sh new file mode 100755 index 0000000..cb96038 --- /dev/null +++ b/build-aux/flatpak/1-build-and-install.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +flatpak-builder --force-clean --user --install build org.gnome.gedit.yml diff --git a/build-aux/flatpak/2-run-app.sh b/build-aux/flatpak/2-run-app.sh new file mode 100755 index 0000000..1dc2b58 --- /dev/null +++ b/build-aux/flatpak/2-run-app.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +flatpak run org.gnome.gedit diff --git a/build-aux/flatpak/3-teardown.sh b/build-aux/flatpak/3-teardown.sh new file mode 100755 index 0000000..99cbb06 --- /dev/null +++ b/build-aux/flatpak/3-teardown.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +flatpak uninstall --user org.gnome.gedit diff --git a/build-aux/flatpak/org.gnome.gedit.yml b/build-aux/flatpak/org.gnome.gedit.yml new file mode 100644 index 0000000..8c158bb --- /dev/null +++ b/build-aux/flatpak/org.gnome.gedit.yml @@ -0,0 +1,87 @@ +--- +app-id: org.gnome.gedit +runtime: org.gnome.Platform +runtime-version: master +sdk: org.gnome.Sdk +command: gedit +tags: + - nightly +desktop-file-name-prefix: "(Nightly) " + +finish-args: + - "--share=ipc" + - "--socket=x11" + - "--socket=fallback-x11" + - "--socket=wayland" + - "--metadata=X-DConf=migrate-path=/org/gnome/gedit/" + # Needed at least for the integrated file browser plugin: + - "--filesystem=host" + # For opening files from remote locations (with GVfs): + - "--talk-name=org.gtk.vfs.*" + +build-options: + cflags: "-O2 -g" + cxxflags: "-O2 -g" + env: + V: '1' + +cleanup: + - "/include" + - "/lib/pkgconfig" + - "/share/pkgconfig" + - "/share/aclocal" + - "/man" + - "/share/man" + - "/share/gtk-doc" + - "/share/vala" + - "/share/gir-1.0" + - "*.la" + - "*.a" + +modules: + - name: libpeas + buildsystem: meson + config-opts: + - "-Dlua51=false" + - "-Dvapi=true" + - "-Ddemos=false" + - "-Dglade_catalog=false" + sources: + - type: archive + url: https://download.gnome.org/sources/libpeas/1.26/libpeas-1.26.0.tar.xz + sha256: a976d77e20496479a8e955e6a38fb0e5c5de89cf64d9f44e75c2213ee14f7376 + + - name: gspell + cleanup: + - "/bin" + sources: + - type: archive + url: https://download.gnome.org/sources/gspell/1.8/gspell-1.8.4.tar.xz + sha256: cf4d16a716e813449bd631405dc1001ea89537b8cdae2b8abfb3999212bd43b4 + + - name: amtk + sources: + - type: archive + url: https://download.gnome.org/sources/amtk/5.2/amtk-5.2.0.tar.xz + sha256: 820545bb4cf87ecebc2c3638d6b6e58b8dbd60a419a9b43cf020124e5dad7078 + + - name: tepl + buildsystem: meson + sources: + - type: git + url: https://gitlab.gnome.org/GNOME/tepl.git + + - name: gedit + buildsystem: meson + sources: + - type: git + url: https://gitlab.gnome.org/GNOME/gedit.git + # To build a local branch, comment out 'url' and uncomment: + # path: ../../ + # branch: wip/misc + + - name: gedit-plugins + buildsystem: meson + sources: + - type: git + url: https://gitlab.gnome.org/GNOME/gedit-plugins.git diff --git a/build-aux/meson/post_install.py b/build-aux/meson/post_install.py new file mode 100755 index 0000000..15b7838 --- /dev/null +++ b/build-aux/meson/post_install.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 + +import os +import subprocess +import sys + +libdir = sys.argv[1] +datadir = sys.argv[2] + +# Packaging tools define DESTDIR and this isn't needed for them +if 'DESTDIR' not in os.environ: + print('Compiling gsettings schemas...') + subprocess.call(['glib-compile-schemas', + os.path.join(datadir, 'glib-2.0', 'schemas')]) + + print('Updating icon cache...') + subprocess.call(['gtk-update-icon-cache', '-qtf', + os.path.join(datadir, 'icons', 'hicolor')]) + + print('Updating desktop database...') + subprocess.call(['update-desktop-database', '-q', + os.path.join(datadir, 'applications')]) + + print('Compiling python modules...') + subprocess.call([sys.executable, '-m', 'compileall', '-f', '-q', + os.path.join(libdir, 'gedit', 'plugins')]) + + print('Compiling python modules (optimized versions) ...') + subprocess.call([sys.executable, '-O', '-m', 'compileall', '-f', '-q', + os.path.join(libdir, 'gedit', 'plugins')]) diff --git a/build-aux/osx/README b/build-aux/osx/README new file mode 100644 index 0000000..fa962d7 --- /dev/null +++ b/build-aux/osx/README @@ -0,0 +1,24 @@ +This document briefly describes how to build and package gedit for OS X. + +Building gedit for OS X +============================================================================= +Please see build/README for more details on building gedit + + +Making a gedit bundle +============================================================================= + +You can make a gedit bundle (i.e. a gedit.app) with a script provided by +gedit. + + ./make bundle + +Note that in order for this to succeed, you will need to have built gedit +successfully before. If successful, you will now have a gedit.app bundle +in this directory. Similarly, if you want to build the final dmg image, +you can use: + + ./make dmg + +Again, for this to succeed you first need to have successfully built the +bundle. diff --git a/build-aux/osx/build/.gitignore b/build-aux/osx/build/.gitignore new file mode 100644 index 0000000..fdd88bc --- /dev/null +++ b/build-aux/osx/build/.gitignore @@ -0,0 +1,5 @@ +.build +.home +updater/.cache +updater/.gtk-osx +updater/modulesets diff --git a/build-aux/osx/build/README b/build-aux/osx/build/README new file mode 100644 index 0000000..79c0d4a --- /dev/null +++ b/build-aux/osx/build/README @@ -0,0 +1,131 @@ +This is a guide to building gedit on OS X. This guide assumes that you are +already familiar with building gtk+ software on OS X (natively) using jhbuild. +Please make sure to read https://live.gnome.org/GTK%2B/OSX/Building +before proceeding. + + +Building gedit for OS X +============================================================================= + +Since version 3.14, gedit hosts a self-contained, in-tree guided build +process using jhbuild. The ./build script in this directory is the main +entry-point which handles: + +1) Initializing the build environment (installing jhbuild in-tree) +2) Bootstrapping and building all the necessary dependencies +3) Simple wrapper around common jhbuild tasks (build, make, shell, etc.) + +The basic build procedure in a pristine environment is: + + ./build all + +This will first initialize the build environment (if necessary), install +jhbuild if needed, bootstrap jhbuild and then continue to build gedit and +all its dependencies. Each of these stages can also be invoked manually: + + ./build init + ./build bootstrap + ./build build + +Note that at the moment of writing, ./build bootstrap is not entirely +equivalent to ./build jh bootstrap. The reason is that there is a problem +when building python as part of the bootstrap process. As a workaround, +python is actually built twice during bootstrap. + +By default, ./build will build against the 10.7 (Lion) OS X SDK, which +has to be already installed and available at + +$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk + +Although Xcode 5 does not distribute the 10.7 SDK by default, it can be +easily obtained from previous Xcode versions. To do so, find the last +version of Xcode to support a given SDK and download it from apple +developer downloads [1]. Open the package, and without installing, +extract the SDK directory and copy it to the right location. For 10.7, +the latest Xcode version to support it is 4.3.3, which can be downloaded +at [2] (links subject to change). + +It is also possible to build gedit against a different SDK by exporting +the GEDIT_SDK environment variable (defaults to 10.7). For example: + + export GEDIT_SDK=10.9 + ./build all + +Would build gedit against the 10.9 SDK and install in .build/10.9 +(see Directory structure below). + +Note that building gedit for OS X, although made easier by use of this +./build script, often still requires expertise and manual intervention +when things go wrong. If this is the case, please feel free to visit the +#gedit channel on GIMPnet IRC or send an e-mail to the gedit mailing list +(gedit-list@gnome.org). + + +Directory structure +============================================================================= +The general structure is as follows: + + /.build + root jhbuild directory. This directory will contain all the sources, + checkout directories and install locations during building. + + /$SDK : separated by SDK version + /source : checkout directory for all the sources + /inst : install directory for $SDK + + /pkgs : download location for tarballs + + /.home + an automatically created fake $HOME directory. This is used to create + an artificial separation for jhbuild such that it will not pick up on + possible existing .jhbuildrc files. This directory is also used to + install jhbuild itself. + + /config + /jhbuildrc-gedit : the gedit specific jhbuild environment configuration + + /modulesets + the jhbuild modulesets used to build gedit. Note that these are + self-contained and are updated each release. + + /patches : directory with jhbuild patches + /bootstrap.modules : the bootstrap modules + /gedit.modules : modules for gedit and all its dependencies + + /updater + /gedit-bootstrap-overrides.modules + jhbuild moduleset overrides for bootstrap + + /gedit-overrides.modules + jhbuild moduleset overrides for gedit + + /update_modulesets.py + an application which is used to update and merge jhbuild moduleset + files. The use of this application is two-fold: + + 1) It merges the override module files with the latest gtk-osx stable + modulesets, allowing for clean separation. The overrides files + contain only gedit specific changes on top of the gtk-osx stable + modulesets to obtain a gedit build. Additionally, it creates a + single moduleset file with only modules required for gedit in it and + copies any required patches specified in the moduleset to a local + directory. + + 2) It automatically looks for new versions (stable and unstable) of + GNOME libraries and queries whether or not to update modules that + have newer versions than those already in the moduleset. This makes + it easier to update to next-release versions of all required + dependencies. + + The output of running this application is a /modulesets directory + which is a self-contained modulesets/patches jhbuild configuration. + It can be copied to the parent directory to replace the previous + modulesets (which were generated in the same manner). + + Versions queried from GNOME ftp and downloaded patches are cached by + default in /.cache. Make sure to remove this directory (or parts of + it) to get up-to-date. + + +[1] https://developer.apple.com/downloads +[2] http://adcdownload.apple.com/Developer_Tools/xcode_4.3.3_for_lion/xcode_4.3.3_for_lion.dmg diff --git a/build-aux/osx/build/build b/build-aux/osx/build/build new file mode 100755 index 0000000..112b57a --- /dev/null +++ b/build-aux/osx/build/build @@ -0,0 +1,336 @@ +#!/bin/bash + +pushd $(dirname "$0") > /dev/null +D=$(pwd -P) +popd > /dev/null + +BASED="$D/.build" +HOMED="$D/.home" + +SOURCED="$HOMED/source" +INSTALLD="$HOMED/.local" + +GTK_OSX_BASE_URL="https://git.gnome.org/browse/gtk-osx/plain/" +JHBUILD_SOURCED="$SOURCED/jhbuild" + +ME="$0" + +if [ -z "$GEDIT_SDK" ]; then + export GEDIT_SDK=10.7 +fi + +export PATH="$INSTALLD/bin:$PATH" + +function do_exit() { + printf "$@" + echo "" + exit 1 +} + +if [ ! which git &>/dev/null ]; then + do_exit "You need to have git installed to build gedit for OS X" +fi + +if [ ! xcodebuild -version &>/dev/null ]; then + do_exit "You need to have Xcode installed to build gedit for OS X" +fi + +xcodebase=$(xcode-select -p) +sdkdir="$xcodebase/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$GEDIT_SDK.sdk" + +if [ ! -d "$sdkdir" ]; then + do_exit "SDK base directory for $GEDIT_SDK not found. Please make sure to install the SDK at $sdkdir" +fi + +function checkout_jhbuild() { + #JHBUILD_REVISION=$(curl -ks "$GTK_OSX_BASE_URL/jhbuild-revision") + + #if test x"$JHBUILD_REVISION" = x; then + # do_exit "Could not find jhbuild revision to use." + #fi + + mkdir -p $(dirname "$JHBUILD_SOURCED") + + git clone https://gitlab.gnome.org/GNOME/jhbuild.git "$JHBUILD_SOURCED" || do_exit "Failed to clone jhbuild." + #git --work-tree "$JHBUILD_SOURCED" checkout -b stable $JHBUILD_REVISION || do_exit "Failed to checkout stable jhbuild revision." +} + +function build_jhbuild() { + echo "Building jhbuild..." + (cd "$JHBUILD_SOURCED" && ./autogen.sh --prefix="$INSTALLD" && make -f Makefile.plain DISABLE_GETTEXT=1 install) >/dev/null || do_exit "Jhbuild installation failed"; + + rm -f "$INSTALLD/bin/python2" + + cat << PYTHON2 > "$INSTALLD/bin/python2" +#!/bin/bash + +exec /usr/bin/python "\$@" +PYTHON2 + chmod +x "$INSTALLD/bin/python2" +} + +function setup_jhbuildrc() { + echo "Installing jhbuild configuration..." + + mkdir -p "$HOMED" + curl -ks "$GTK_OSX_BASE_URL/jhbuildrc-gtk-osx" | \ + sed -e 's/^.*PYTHONPATH.*$//g' -e 's/^.*PYTHON_SITE_PACKAGES.*$//g' > "$HOMED/.jhbuildrc" || do_exit "Failed to get jhbuildrc." + + rm -f "$HOMED/.jhbuildrc-gedit" + ln -s "$D/config/jhbuildrc-gedit" "$HOMED/.jhbuildrc-gedit" || exit 1 +} + +function init_help_short() { + echo "Initialize the in-tree build environment (installs jhbuild)" +} + +function cmd_init() { + mkdir -p "$SOURCED" + + if [ ! -d "$JHBUILD_SOURCED" ]; then + checkout_jhbuild + fi + + build_jhbuild + setup_jhbuildrc + + rm -f "$BASED/$GEDIT_SDK/source/gedit" + mkdir -p "$BASED/$GEDIT_SDK/source" + ln -s $(cd "$D/../../" && pwd) "$BASED/$GEDIT_SDK/source/gedit" +} + +function bootstrap_help_short() { + echo "Run jhbuild bootstrap" +} + +function cmd_bootstrap() { + # Built python once + cmd_jh bootstrap -q python || exit 1 + + # Built python twice! There is a bug where python somehow manages to link + # its main binary to the system framework library, which then doesn't work... + # Building python again seems to resolve the issue... + cmd_jh bootstrap -q -f -t python python || exit 1 + + # Bootstrap all the rest + cmd_jh bootstrap -q || exit 1 +} + +function jh_help_usage() { + echo "jhbuild-command ..." +} + +function jh_help_short() { + echo "Run jhbuild commands" +} + +function cmd_jh() { + # Setup our jhbuild environment + export GEDIT_OSX_SOURCE_BASE="$D" + export GEDIT_OSX_BUILD_BASE="$BASED" + export __GEDIT_OSX_OLD_HOME="$HOME" + export HOME="$HOMED" + export JHB=gedit + + # We set this because without it, GNU gettext intltool or whatever the cause + # may be, will set DATADIRNAME=lib during configure because gettext is not part + # of libc on OS X. The result is that translations would be installed in lib/ + # instead of share/ and would not get picked up. + export DATADIRNAME=share + + "$INSTALLD/bin/jhbuild" -f "$HOMED/.jhbuildrc" "$@" +} + +function dbg_help_usage() { + echo "build command ..." +} + +function dbg_help_short() { + echo "Run remaining build commands in a debug environment" +} + +function cmd_dbg() { + export GEDIT_OSX_DEBUG=1 + _process "$@" +} + +function shell_help_short() { + echo "Start the jhbuild shell (shorthand for jh shell)" +} + +function cmd_shell() { + cmd_jh shell +} + +function make_help_usage() { + echo "module-source-directory" +} + +function make_help_short() { + echo "Run jhbuild make at the provided source directory" +} + +function cmd_make() { + cd "$BASED/$GEDIT_SDK/source/$1" && cmd_jh make +} + +function run_help_usage() { + echo "program ..." +} + +function run_help_short() { + echo "Run the provided program in the jhbuild environment (shorthand for jh run)" +} + +function cmd_run() { + cmd_jh run "$@" +} + +function env_help_short() { + echo "Obtain certain environment paths" +} + +function cmd_env() { + vars=(source inst bin home local-bin) + + case "$1" in + source) + echo "$BASED/$GEDIT_SDK/source" + ;; + inst) + echo "$BASED/$GEDIT_SDK/inst" + ;; + bin) + echo "$BASED/$GEDIT_SDK/inst/bin" + ;; + home) + echo "$HOMED" + ;; + local-bin) + echo "$HOMED/.local/bin" + ;; + "") + for v in "${vars[@]}"; do + u=$(echo -n "$v" | tr '-' '_') + echo -n "$u=" + cmd_env "$v" + done + ;; + *) + varnames=$(printf ", \033[1m%s\033[0m" "${vars[@]}") + varnames=${varnames:2} + + do_exit "Unknown environment variable \033[1m$1\033[0m, available variables are: $varnames" + ;; + esac +} + +function all_help_short() { + echo "Runs the init, bootstrap and build commands" +} + +function cmd_all() { + if [ ! -d "$JHBUILD_SOURCED" ]; then + cmd_init || exit 1 + fi + + if [ ! -f "$BASED/$GEDIT_SDK/inst/bin/python" ]; then + cmd_bootstrap || exit 1 + fi + + cmd_jh build -q +} + +function help_help_short() { + echo "Shows this help message" +} + +function cmd_help() { + if [ -z "$1" ]; then + echo "Usage: $ME [command]" + echo "" + echo "Available commands:" + echo "" + + for cmd in "${commands[@]}"; do + printf " \033[1m$cmd\x1B[0m " + + l=${#cmd} + let d="$commandsmaxlen - $l + 1" + + printf "%${d}s" "" + echo -n "- " + + if [[ $(type -t "${cmd}_help_short") = "function" ]]; then + "${cmd}_help_short" + else + echo "" + fi + done + + echo "" + else + cmd="cmd_$1" + + if [[ $(type -t "$cmd") != "function" ]]; then + do_exit "Invalid command \033[1m$1\033[0m, available commands are: $cmds" + fi + + printf "Usage: $ME \033[1m$1\033[0m " + + if [[ $(type -t "$1_help_usage") = "function" ]]; then + "$1_help_usage" + else + echo "" + fi + + echo "" + + if [[ $(type -t "$1_help_long") != "function" ]]; then + "$1_help_short" + else + "$1_help_long" + fi + fi +} + +commands=() +commandsmaxlen=0 + +while read line +do + cmd=${line#declare -f } + + if [[ "$cmd" = cmd_* ]]; then + cname=${cmd#cmd_} + + commands+=($cname) + + l=${#cname} + + if [[ $l > $commandsmaxlen ]]; then + commandsmaxlen=$l + fi + fi +done < <(declare -F) + +cmds=$(printf ", \033[1m%s\033[0m" "${commands[@]}") +cmds=${cmds:2} + +function _process() { + if [ -z "$1" ]; then + cmd_help + exit 0 + fi + + cmd="cmd_$1" + + if [[ $(type -t "$cmd") != "function" ]]; then + do_exit "Invalid command $1, available commands are: $cmds" + fi + + shift 1 + "$cmd" "$@" +} + +_process "$@" diff --git a/build-aux/osx/build/config/jhbuildrc-gedit b/build-aux/osx/build/config/jhbuildrc-gedit new file mode 100644 index 0000000..46ca950 --- /dev/null +++ b/build-aux/osx/build/config/jhbuildrc-gedit @@ -0,0 +1,40 @@ +# -*- mode: python -*- + +import sys, os + +_gsdk = os.environ.get('GEDIT_SDK', None) + +if not _gsdk: + sys.stderr.write("No GEDIT_SDK environment given. Please provide 10.x\n") + sys.exit(1) + +_basedir = os.environ['GEDIT_OSX_BUILD_BASE'] + +if not _basedir: + sys.stderr.write("No GEDIT_OSX_BASE environment given. Please provide the base build directory\n") + sys.exit(1) + +_sourcedir = os.environ['GEDIT_OSX_SOURCE_BASE'] + +if not _sourcedir: + sys.stderr.write("No GEDIT_OSX_SOURCE_BASE environment given. Please provide the base source directory\n") + sys.exit(1) + +checkoutroot = os.path.join(_basedir, _gsdk, "source") +prefix = os.path.join(_basedir, _gsdk, "inst") +tarballdir = os.path.join(_basedir, "pkgs") + +# Main setup +setup_sdk(target=_gsdk, sdk_version=_gsdk, architectures=['x86_64']) + +if 'GEDIT_OSX_DEBUG' in os.environ: + setup_debug() +else: + setup_release() + +# Main module set +modulesets_dir = os.path.join(_sourcedir, "modulesets") +moduleset = "gedit.modules" +modules = ["gedit-meta"] + +os.environ['HOME'] = os.environ['__GEDIT_OSX_OLD_HOME'] diff --git a/build-aux/osx/build/modulesets/bootstrap.modules b/build-aux/osx/build/modulesets/bootstrap.modules new file mode 100644 index 0000000..e6dfdc5 --- /dev/null +++ b/build-aux/osx/build/modulesets/bootstrap.modules @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/osx/build/modulesets/gedit.modules b/build-aux/osx/build/modulesets/gedit.modules new file mode 100644 index 0000000..f8497b9 --- /dev/null +++ b/build-aux/osx/build/modulesets/gedit.modules @@ -0,0 +1,553 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/osx/build/modulesets/patches/berkeleydb-nonsrctree/atomic.patch b/build-aux/osx/build/modulesets/patches/berkeleydb-nonsrctree/atomic.patch new file mode 100644 index 0000000..398aa1d --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/berkeleydb-nonsrctree/atomic.patch @@ -0,0 +1,20 @@ +--- src/dbinc/atomic.h 2013-03-12 14:07:22.000000000 -0400 ++++ src/dbinc/atomic.h.change 2013-03-12 14:06:35.000000000 -0400 +@@ -144,7 +144,7 @@ + #define atomic_inc(env, p) __atomic_inc(p) + #define atomic_dec(env, p) __atomic_dec(p) + #define atomic_compare_exchange(env, p, o, n) \ +- __atomic_compare_exchange((p), (o), (n)) ++ __atomic_compare_exchange_db((p), (o), (n)) + static inline int __atomic_inc(db_atomic_t *p) + { + int temp; +@@ -176,7 +176,7 @@ + * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html + * which configure could be changed to use. + */ +-static inline int __atomic_compare_exchange( ++static inline int __atomic_compare_exchange_db( + db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval) + { + atomic_value_t was; diff --git a/build-aux/osx/build/modulesets/patches/berkeleydb/atomic.patch b/build-aux/osx/build/modulesets/patches/berkeleydb/atomic.patch new file mode 100644 index 0000000..398aa1d --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/berkeleydb/atomic.patch @@ -0,0 +1,20 @@ +--- src/dbinc/atomic.h 2013-03-12 14:07:22.000000000 -0400 ++++ src/dbinc/atomic.h.change 2013-03-12 14:06:35.000000000 -0400 +@@ -144,7 +144,7 @@ + #define atomic_inc(env, p) __atomic_inc(p) + #define atomic_dec(env, p) __atomic_dec(p) + #define atomic_compare_exchange(env, p, o, n) \ +- __atomic_compare_exchange((p), (o), (n)) ++ __atomic_compare_exchange_db((p), (o), (n)) + static inline int __atomic_inc(db_atomic_t *p) + { + int temp; +@@ -176,7 +176,7 @@ + * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html + * which configure could be changed to use. + */ +-static inline int __atomic_compare_exchange( ++static inline int __atomic_compare_exchange_db( + db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval) + { + atomic_value_t was; diff --git a/build-aux/osx/build/modulesets/patches/enchant/enchant-applespell.patch b/build-aux/osx/build/modulesets/patches/enchant/enchant-applespell.patch new file mode 100644 index 0000000..f6f1f65 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/enchant/enchant-applespell.patch @@ -0,0 +1,368 @@ +--- a/configure.in (revision 30591) ++++ b/configure.in (working copy) +@@ -33,4 +33,5 @@ + AC_PROG_CC + AC_PROG_CPP ++AC_PROG_OBJC + AC_PROG_INSTALL + AC_PROG_LN_S +--- a/src/applespell/Makefile.am 2010-04-01 22:53:37.000000000 +0200 ++++ b/src/applespell/Makefile.am 2012-01-11 22:42:13.000000000 +0100 +@@ -1,4 +1,13 @@ +-EXTRA_DIST= \ +- applespell_checker.h \ +- applespell_checker.mm \ +- AppleSpell.config ++target_lib = libenchant_applespell.la ++ ++INCLUDES=-I$(top_srcdir)/src $(ENCHANT_CFLAGS) $(CC_WARN_CFLAGS) -DXP_TARGET_COCOA -xobjective-c -D_ENCHANT_BUILD=1 ++ ++applespell_LTLIBRARIES = $(target_lib) ++applespelldir= $(libdir)/enchant ++ ++libenchant_applespell_la_LIBADD= $(ENCHANT_LIBS) -lobjc $(top_builddir)/src/libenchant.la ++libenchant_applespell_la_LDFLAGS = -module -avoid-version -no-undefined -framework Cocoa ++libenchant_applespell_la_SOURCES = applespell_provider.m ++libenchant_applespell_la_LIBTOOLFLAGS = --tag=CC ++ ++libenchant_applespell_lalibdir=$(libdir)/enchant +--- a/src/applespell/applespell_provider.m 2012-01-11 22:46:35.000000000 +0100 ++++ b/src/applespell/applespell_provider.m 2012-01-11 22:39:17.000000000 +0100 +@@ -0,0 +1,337 @@ ++/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ ++/* enchant ++ * Copyright (C) 2004 Remi Payette ++ * Copyright (C) 2004 Francis James Franklin ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version 2 ++ * of the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ++ * 02110-1301, USA. ++ */ ++ ++#include ++#include ++#include ++#include ++ ++#include "enchant-provider.h" ++ ++#ifdef __cplusplus ++extern "C" ++{ ++#endif ++ ++ENCHANT_MODULE_EXPORT (EnchantProvider *) ++init_enchant_provider (void); ++ ++ENCHANT_MODULE_EXPORT (void) ++configure_enchant_provider (EnchantProvider *provider, const gchar *module_dir); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++ENCHANT_PLUGIN_DECLARE("AppleSpell") ++ ++typedef struct ++{ ++ NSSpellChecker *checker; ++ NSString *language; ++} Dictionary; ++ ++static Dictionary * ++dictionary_new (NSSpellChecker *checker, ++ NSString *language) ++{ ++ Dictionary *ret; ++ ++ ret = g_slice_new (Dictionary); ++ ++ ret->checker = checker; ++ ret->language = language; ++ ++ return ret; ++} ++ ++static void ++dictionary_free (Dictionary *dictionary) ++{ ++ [dictionary->language release]; ++ g_slice_free (Dictionary, dictionary); ++} ++ ++static gchar ** ++applespell_dict_suggest (EnchantDict *dict, ++ const gchar * const word, ++ size_t len, ++ size_t *out_n_suggs) ++{ ++ NSAutoreleasePool *pool; ++ gchar **ret = NULL; ++ NSString *str; ++ Dictionary *d; ++ NSArray *words; ++ NSRange range; ++ guint i = 0; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ d = dict->user_data; ++ ++ str = [[NSString alloc] initWithBytes:word length:len encoding:NSUTF8StringEncoding]; ++ ++ range.location = 0; ++ range.length = [str length]; ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5 ++ words = [d->checker guessesForWordRange:range ++ inString:str ++ language:d->language ++ inSpellDocumentWithTag:0]; ++#else ++ [d->checker setLanguage:d->language]; ++ words = [d->checker guessesForWord:str]; ++#endif ++ ++ *out_n_suggs = [words count]; ++ ++ ret = g_new0 (gchar *, *out_n_suggs + 1); ++ ++ for (i = 0; i < [words count]; ++i) ++ { ++ ret[i] = g_strdup ([[words objectAtIndex:i] UTF8String]); ++ } ++ ++ [str release]; ++ [pool release]; ++ ++ return ret; ++} ++ ++static gint ++applespell_dict_check (EnchantDict *dict, ++ const gchar * const word, ++ size_t len) ++{ ++ NSAutoreleasePool *pool; ++ gint result = 0; ++ NSString *str; ++ Dictionary *d; ++ NSRange range; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ d = dict->user_data; ++ ++ str = [[NSString alloc] initWithBytes:word length:len encoding:NSUTF8StringEncoding]; ++ ++ range = [d->checker checkSpellingOfString:str ++ startingAt:0 ++ language:d->language ++ wrap:true ++ inSpellDocumentWithTag:0 ++ wordCount:NULL]; ++ ++ result = range.length > 0 ? 1 : 0; ++ ++ [str release]; ++ [pool release]; ++ ++ return result; ++} ++ ++static EnchantDict * ++applespell_provider_request_dict (EnchantProvider *provider, ++ const char * const tag) ++{ ++ NSAutoreleasePool *pool; ++ EnchantDict *dict; ++ NSString *str; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ str = [[NSString alloc] initWithUTF8String:tag]; ++ ++ dict = g_new0 (EnchantDict, 1); ++ ++ dict->check = applespell_dict_check; ++ dict->suggest = applespell_dict_suggest; ++ ++ dict->user_data = dictionary_new (provider->user_data, ++ str); ++ ++ [str retain]; ++ ++ [pool release]; ++ return dict; ++} ++ ++static void ++applespell_provider_dispose_dict (EnchantProvider *provider, ++ EnchantDict *dict) ++{ ++ NSAutoreleasePool *pool; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ dictionary_free (dict->user_data); ++ g_free (dict); ++ ++ [pool release]; ++} ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 ++static gchar const *available_languages[] = { ++ "en", ++ "en_GB", ++ "en_AU", ++ "de", ++ "fr", ++ "nl", ++ "pl", ++ NULL ++}; ++ ++#endif ++ ++static gint ++applespell_provider_dictionary_exists (EnchantProvider *provider, ++ const gchar * const tag) ++{ ++ NSAutoreleasePool *pool; ++ gint result = 0; ++ NSSpellChecker *checker; ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ NSArray *languages; ++ guint i; ++#else ++ gchar const **ptr; ++#endif ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ checker = provider->user_data; ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ languages = [checker availableLanguages]; ++ ++ for (i = 0; i < [languages count]; ++i) ++ { ++ if (g_strcmp0 (tag, [[languages objectAtIndex:i] UTF8String]) == 0) ++ { ++ result = 1; ++ break; ++ } ++ } ++#else ++ ptr = available_languages; ++ ++ while (ptr && *ptr) ++ { ++ if (g_strcmp0 (tag, *ptr) == 0) ++ { ++ result = 1; ++ break; ++ } ++ ++ptr; ++ } ++#endif ++ ++ [pool release]; ++ ++ return result; ++} ++ ++static void ++applespell_provider_dispose (EnchantProvider *provider) ++{ ++ g_free (provider); ++} ++ ++static const gchar * ++applespell_provider_identify (EnchantProvider *provider) ++{ ++ return "AppleSpell"; ++} ++ ++static const gchar * ++applespell_provider_describe (EnchantProvider *provider) ++{ ++ return "AppleSpell Provider"; ++} ++ ++static gchar ** ++applespell_provider_list_dicts (EnchantProvider *provider, ++ size_t *out_n_dicts) ++{ ++ NSSpellChecker *checker; ++ NSAutoreleasePool *pool; ++ gchar **ret = NULL; ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ NSArray *languages; ++ guint i = 0; ++#endif ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ checker = provider->user_data; ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ languages = [checker availableLanguages]; ++ *out_n_dicts = [languages count]; ++ ++ ret = g_new0 (gchar *, *out_n_dicts + 1); ++ ++ for (i = 0; i < [languages count]; ++i) ++ { ++ ret[i] = g_strdup ([[languages objectAtIndex:i] UTF8String]); ++ } ++#else ++ ret = g_strdupv ((gchar **)available_languages); ++#endif ++ ++ [pool release]; ++ ++ return ret; ++} ++ ++ENCHANT_MODULE_EXPORT (EnchantProvider *) ++init_enchant_provider (void) ++{ ++ NSAutoreleasePool *pool; ++ EnchantProvider *provider; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ provider = g_new0 (EnchantProvider, 1); ++ ++ provider->dispose = applespell_provider_dispose; ++ provider->request_dict = applespell_provider_request_dict; ++ provider->dispose_dict = applespell_provider_dispose_dict; ++ provider->dictionary_exists = applespell_provider_dictionary_exists; ++ provider->identify = applespell_provider_identify; ++ provider->describe = applespell_provider_describe; ++ provider->list_dicts = applespell_provider_list_dicts; ++ ++ provider->user_data = [NSSpellChecker sharedSpellChecker]; ++ ++ [pool release]; ++ ++ return provider; ++} ++ ++ENCHANT_MODULE_EXPORT (void) ++configure_enchant_provider (EnchantProvider *provider, ++ const gchar *module_dir) ++{ ++ return; ++} diff --git a/build-aux/osx/build/modulesets/patches/enchant/enchant-gsize.patch b/build-aux/osx/build/modulesets/patches/enchant/enchant-gsize.patch new file mode 100644 index 0000000..5bfba14 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/enchant/enchant-gsize.patch @@ -0,0 +1,97 @@ +--- a/src/ispell/ispell_checker.cpp Thu Apr 1 13:53:37 2010 ++++ b/src/ispell/ispell_checker.cpp Mon Feb 24 15:35:49 2014 +@@ -162,7 +162,7 @@ + else + { + /* convert to 8bit string and null terminate */ +- size_t len_in, len_out, result; ++ gsize len_in, len_out, result; + // the 8bit encodings use precomposed forms + char *normalizedWord = g_utf8_normalize (utf8Word, length, G_NORMALIZE_NFC); + char *In = normalizedWord; +@@ -172,7 +172,7 @@ + len_out = sizeof( szWord ) - 1; + result = g_iconv(m_translate_in, &In, &len_in, &Out, &len_out); + g_free(normalizedWord); +- if ((size_t)-1 == result) ++ if ((gsize)-1 == result) + return false; + *Out = '\0'; + } +@@ -210,7 +210,7 @@ + { + /* convert to 8bit string and null terminate */ + +- size_t len_in, len_out, result; ++ gsize len_in, len_out, result; + // the 8bit encodings use precomposed forms + char *normalizedWord = g_utf8_normalize (utf8Word, length, G_NORMALIZE_NFC); + char *In = normalizedWord; +@@ -219,7 +219,7 @@ + len_out = sizeof( word8 ) - 1; + result = g_iconv(m_translate_in, &In, &len_in, &Out, &len_out); + g_free(normalizedWord); +- if ((size_t)-1 == result) ++ if ((gsize)-1 == result) + return NULL; + *Out = '\0'; + } +@@ -252,13 +252,13 @@ + { + /* convert to 32bit string and null terminate */ + +- size_t len_in, len_out; ++ gsize len_in, len_out; + char *In = m_possibilities[c]; + char *Out = reinterpret_cast(utf8Sugg); + + len_in = l; + len_out = INPUTWORDLEN + MAXAFFIXLEN; +- if ((size_t)-1 == g_iconv(m_translate_out, &In, &len_in, &Out, &len_out)) { ++ if ((gsize)-1 == g_iconv(m_translate_out, &In, &len_in, &Out, &len_out)) { + *out_n_suggestions = c; + return sugg_arr; + } +--- a/src/myspell/myspell_checker.cpp Thu Apr 1 13:53:37 2010 ++++ b/src/myspell/myspell_checker.cpp Mon Feb 24 15:37:56 2014 +@@ -159,11 +159,11 @@ + char *in = normalizedWord; + char word8[MAXWORDLEN + 1]; + char *out = word8; +- size_t len_in = strlen(in); +- size_t len_out = sizeof( word8 ) - 1; +- size_t result = g_iconv(m_translate_in, &in, &len_in, &out, &len_out); ++ gsize len_in = strlen(in); ++ gsize len_out = sizeof( word8 ) - 1; ++ gsize result = g_iconv(m_translate_in, &in, &len_in, &out, &len_out); + g_free(normalizedWord); +- if ((size_t)-1 == result) ++ if ((gsize)-1 == result) + return false; + *out = '\0'; + if (myspell->spell(word8)) +@@ -185,11 +185,11 @@ + char *in = normalizedWord; + char word8[MAXWORDLEN + 1]; + char *out = word8; +- size_t len_in = strlen(in); +- size_t len_out = sizeof(word8) - 1; +- size_t result = g_iconv(m_translate_in, &in, &len_in, &out, &len_out); ++ gsize len_in = strlen(in); ++ gsize len_out = sizeof(word8) - 1; ++ gsize result = g_iconv(m_translate_in, &in, &len_in, &out, &len_out); + g_free(normalizedWord); +- if ((size_t)-1 == result) ++ if ((gsize)-1 == result) + return NULL; + + *out = '\0'; +@@ -203,7 +203,7 @@ + len_out = MAXWORDLEN; + char *word = g_new0(char, len_out + 1); + out = reinterpret_cast(word); +- if ((size_t)-1 == g_iconv(m_translate_out, &in, &len_in, &out, &len_out)) { ++ if ((gsize)-1 == g_iconv(m_translate_out, &in, &len_in, &out, &len_out)) { + for (size_t j = i; j < *nsug; j++) + free(sugMS[j]); + free(sugMS); diff --git a/build-aux/osx/build/modulesets/patches/enchant/enchant-relocatable.patch b/build-aux/osx/build/modulesets/patches/enchant/enchant-relocatable.patch new file mode 100644 index 0000000..7e56eb7 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/enchant/enchant-relocatable.patch @@ -0,0 +1,40 @@ +--- a/src/enchant.c 2010-04-01 22:53:37.000000000 +0200 ++++ b/src/enchant.c 2014-08-26 21:32:21.000000000 +0200 +@@ -210,6 +210,13 @@ + char * module_dir = NULL; + char * prefix = NULL; + ++ const char *envdir = g_getenv ("ENCHANT_MODULES_DIR"); ++ ++ if (envdir != NULL && *envdir != '\0') ++ { ++ module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (envdir)); ++ } ++ + { + char* user_module_dir; + +@@ -239,7 +246,8 @@ + module_dirs = enchant_slist_append_unique_path (module_dirs, module_dir); + + #if defined(ENCHANT_GLOBAL_MODULE_DIR) +- module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR)); ++ if (envdir == NULL || *envdir == '\0') ++ module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR)); + #else + /* Dynamically locate library and search for modules relative to it. */ + prefix = enchant_get_prefix_dir(); +@@ -278,6 +286,13 @@ + if (ordering_dir) + conf_dirs = enchant_slist_append_unique_path (conf_dirs, ordering_dir); + ++ const char *envdir = g_getenv ("ENCHANT_DATA_DIR"); ++ ++ if (envdir != NULL && *envdir != '\0') ++ { ++ conf_dirs = enchant_slist_append_unique_path (conf_dirs, g_strdup (envdir)); ++ } ++ + /* Dynamically locate library and search for files relative to it. */ + prefix = enchant_get_prefix_dir(); + if(prefix) diff --git a/build-aux/osx/build/modulesets/patches/gettext-runtime/gettext-bug33999-stpncpy.patch b/build-aux/osx/build/modulesets/patches/gettext-runtime/gettext-bug33999-stpncpy.patch new file mode 100644 index 0000000..eda2932 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gettext-runtime/gettext-bug33999-stpncpy.patch @@ -0,0 +1,63 @@ + +--- a/gettext-tools/libgettextpo/string.in.h Sun Apr 25 02:22:40 2010 ++++ b/gettext-tools/libgettextpo/string.in.h Tue Oct 4 14:36:31 2011 +@@ -229,6 +229,7 @@ + #if @GNULIB_STPNCPY@ + # if @REPLACE_STPNCPY@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) ++# undef stpncpy + # define stpncpy rpl_stpncpy + # endif + _GL_FUNCDECL_RPL (stpncpy, char *, + + Rename module 'memxfrm' to 'amemxfrm'. +--- a/gettext-tools/gnulib-lib/string.in.h Mon May 24 02:42:47 2010 ++++ b/gettext-tools/gnulib-lib/string.in.h Tue Oct 4 14:35:46 2011 +@@ -229,6 +229,7 @@ + #if @GNULIB_STPNCPY@ + # if @REPLACE_STPNCPY@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) ++# undef stpncpy + # define stpncpy rpl_stpncpy + # endif + _GL_FUNCDECL_RPL (stpncpy, char *, + +--- a/gettext-runtime/gnulib-lib/string.in.h Sun Apr 25 02:20:42 2010 ++++ b/gettext-runtime/gnulib-lib/string.in.h Tue Oct 4 14:34:57 2011 +@@ -229,6 +229,7 @@ + #if @GNULIB_STPNCPY@ + # if @REPLACE_STPNCPY@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) ++# undef stpncpy + # define stpncpy rpl_stpncpy + # endif + _GL_FUNCDECL_RPL (stpncpy, char *, +--- a/gettext-tools/configure Sun Jun 6 13:12:20 2010 ++++ b/gettext-tools/configure Tue Oct 4 16:29:27 2011 +@@ -40562,6 +40562,16 @@ + + + ++ ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default" ++if test "x$ac_cv_have_decl_stpncpy" = x""yes; then : ++ ac_have_decl=1 ++else ++ ac_have_decl=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++#define HAVE_DECL_STPNCPY $ac_have_decl ++_ACEOF + + + +@@ -40606,7 +40616,9 @@ + #include + #include /* for strcpy */ + /* The stpncpy prototype is missing in on AIX 4. */ ++#if !HAVE_DECL_STPNCPY + extern char *stpncpy (char *dest, const char *src, size_t n); ++#endif + int main () { + const char *src = "Hello"; + char dest[10]; diff --git a/build-aux/osx/build/modulesets/patches/gettext-tools/gettext-bug33999-stpncpy.patch b/build-aux/osx/build/modulesets/patches/gettext-tools/gettext-bug33999-stpncpy.patch new file mode 100644 index 0000000..eda2932 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gettext-tools/gettext-bug33999-stpncpy.patch @@ -0,0 +1,63 @@ + +--- a/gettext-tools/libgettextpo/string.in.h Sun Apr 25 02:22:40 2010 ++++ b/gettext-tools/libgettextpo/string.in.h Tue Oct 4 14:36:31 2011 +@@ -229,6 +229,7 @@ + #if @GNULIB_STPNCPY@ + # if @REPLACE_STPNCPY@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) ++# undef stpncpy + # define stpncpy rpl_stpncpy + # endif + _GL_FUNCDECL_RPL (stpncpy, char *, + + Rename module 'memxfrm' to 'amemxfrm'. +--- a/gettext-tools/gnulib-lib/string.in.h Mon May 24 02:42:47 2010 ++++ b/gettext-tools/gnulib-lib/string.in.h Tue Oct 4 14:35:46 2011 +@@ -229,6 +229,7 @@ + #if @GNULIB_STPNCPY@ + # if @REPLACE_STPNCPY@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) ++# undef stpncpy + # define stpncpy rpl_stpncpy + # endif + _GL_FUNCDECL_RPL (stpncpy, char *, + +--- a/gettext-runtime/gnulib-lib/string.in.h Sun Apr 25 02:20:42 2010 ++++ b/gettext-runtime/gnulib-lib/string.in.h Tue Oct 4 14:34:57 2011 +@@ -229,6 +229,7 @@ + #if @GNULIB_STPNCPY@ + # if @REPLACE_STPNCPY@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) ++# undef stpncpy + # define stpncpy rpl_stpncpy + # endif + _GL_FUNCDECL_RPL (stpncpy, char *, +--- a/gettext-tools/configure Sun Jun 6 13:12:20 2010 ++++ b/gettext-tools/configure Tue Oct 4 16:29:27 2011 +@@ -40562,6 +40562,16 @@ + + + ++ ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default" ++if test "x$ac_cv_have_decl_stpncpy" = x""yes; then : ++ ac_have_decl=1 ++else ++ ac_have_decl=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++#define HAVE_DECL_STPNCPY $ac_have_decl ++_ACEOF + + + +@@ -40606,7 +40616,9 @@ + #include + #include /* for strcpy */ + /* The stpncpy prototype is missing in on AIX 4. */ ++#if !HAVE_DECL_STPNCPY + extern char *stpncpy (char *dest, const char *src, size_t n); ++#endif + int main () { + const char *src = "Hello"; + char dest[10]; diff --git a/build-aux/osx/build/modulesets/patches/glib/0001-Bug-724590-GSlice-slab_stack-corruption.patch b/build-aux/osx/build/modulesets/patches/glib/0001-Bug-724590-GSlice-slab_stack-corruption.patch new file mode 100644 index 0000000..0e62201 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/glib/0001-Bug-724590-GSlice-slab_stack-corruption.patch @@ -0,0 +1,28 @@ +From 1b21a85f1914eecc107319cb94e8c8517291599b Mon Sep 17 00:00:00 2001 +From: John Ralls +Date: Mon, 17 Feb 2014 15:51:38 -0800 +Subject: [PATCH] Bug 724590 - GSlice slab_stack corruption + +Dereference allocation->contention_counters before trying to take the +address of an element. +--- + glib/gslice.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/glib/gslice.c b/glib/gslice.c +index 0563d80..2c5f4fb 100644 +--- a/glib/gslice.c ++++ b/glib/gslice.c +@@ -715,7 +715,8 @@ static ChunkLink* + magazine_cache_pop_magazine (guint ix, + gsize *countp) + { +- g_mutex_lock_a (&allocator->magazine_mutex, &allocator->contention_counters[ix]); ++ guint *counters = allocator->contention_counters; ++ g_mutex_lock_a (&allocator->magazine_mutex, &counters[ix]); + if (!allocator->magazines[ix]) + { + guint magazine_threshold = allocator_get_magazine_threshold (allocator, ix); +-- +1.8.3.rc0 + diff --git a/build-aux/osx/build/modulesets/patches/gobject-introspection/girscanner-objc.patch b/build-aux/osx/build/modulesets/patches/gobject-introspection/girscanner-objc.patch new file mode 100644 index 0000000..76d2bee --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gobject-introspection/girscanner-objc.patch @@ -0,0 +1,20 @@ +diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l +index 6a40398..40f1fc0 100644 +--- a/giscanner/scannerlexer.l ++++ b/giscanner/scannerlexer.l +@@ -108,6 +108,7 @@ stringtext ([^\\\"])|(\\.) + "|" { return '|'; } + "~" { return '~'; } + "!" { return '!'; } ++"@" { return '@'; } + "=" { return '='; } + "<" { return '<'; } + ">" { return '>'; } +@@ -199,6 +200,7 @@ stringtext ([^\\\"])|(\\.) + + "\""{stringtext}*"\"" { return STRING; } + "L\""{stringtext}*"\"" { return STRING; } ++"@\""{stringtext}*"\"" { return STRING; } + + . { if (yytext[0]) fprintf(stderr, "%s:%d: unexpected character `%c'\n", scanner->current_filename, lineno, yytext[0]); } + diff --git a/build-aux/osx/build/modulesets/patches/gtk+/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch b/build-aux/osx/build/modulesets/patches/gtk+/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch new file mode 100644 index 0000000..b0a1ef5 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gtk+/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch @@ -0,0 +1,274 @@ +From dcd9ab00c64a1df63fd5fa58c2ca25efd9b3e09e Mon Sep 17 00:00:00 2001 +From: John Ralls +Date: Sat, 24 Sep 2011 18:14:09 -0700 +Subject: [PATCH 06/15] Bug 658722 - Drag and Drop sometimes stops working + +First, rather than assuming that there's already an event queued up if +_gdk_quartz_drag_source_context isn't NULL, assume that it just didn't get +cleaned up the last time it ran and abort it. + +This naturally requires implementing gdk_quartz_drag_abort(), so remove the +code from [GdkQuartzNSWindow draggedImage:endedAt:operation:] and move it to +gdkdnd_quartz.c as static void gdk_quartz_drag_end(). Implement both +gdk_quartz_drag_drop() and gdk_quartz_drag_abort() by calling +gdk_quartz_drag_end(). + +Next, try to get rid of the memory cycle between gtk_drag_source_info.context +and _gdk_quartz_drag_source_context (which carries the GtkQuartzDragSourceInfo +struct as qdata). Replace gtk_drag_source_clear_info() by using a +g_object_set_qdata_full() for context in gtk_drag_get_source_context, calling +gtk_drag_source_info_destroy() as the destructor. This eliminates the need to +queue a cleanup idle event. I use g_object_run_dispose() on +_gtk_quartz_drag_source_context to force the deletion of the info stored as +qdata, which in turn unrefs the info->context pointer. Ordinarily this gets +fired off from draggedImage:endedAt:operation:, meaning that the special +dragging CFRunLoop is complete and NSEvents are again flowing, so queuing a +cleanup event isn't necessary. The advantage is that it can also be run from +gdk_drag_abort, so if Gdk thinks there's a drag but CF doesn't all of the +memory still gets cleaned up. +--- + gdk/quartz/GdkQuartzWindow.c | 16 +------- + gdk/quartz/gdkdnd-quartz.c | 35 +++++++++++++-- + gtk/gtkdnd-quartz.c | 96 ++++++++++++++++------------------------- + 3 files changed, 69 insertions(+), 78 deletions(-) + +diff --git a/gdk/quartz/GdkQuartzWindow.c b/gdk/quartz/GdkQuartzWindow.c +index dcd7250..20ed80e 100644 +--- a/gdk/quartz/GdkQuartzWindow.c ++++ b/gdk/quartz/GdkQuartzWindow.c +@@ -560,21 +560,7 @@ update_context_from_dragging_info (id sender) + + - (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation + { +- GdkEvent event; +- +- g_assert (_gdk_quartz_drag_source_context != NULL); +- +- event.dnd.type = GDK_DROP_FINISHED; +- event.dnd.window = g_object_ref ([[self contentView] gdkWindow]); +- event.dnd.send_event = FALSE; +- event.dnd.context = _gdk_quartz_drag_source_context; +- +- (*_gdk_event_func) (&event, _gdk_event_data); +- +- g_object_unref (event.dnd.window); +- +- g_object_unref (_gdk_quartz_drag_source_context); +- _gdk_quartz_drag_source_context = NULL; ++ gdk_drag_drop (_gdk_quartz_drag_source_context, (guint32)g_get_real_time()); + } + + @end +diff --git a/gdk/quartz/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c +index bb70b71..143a8ed 100644 +--- a/gdk/quartz/gdkdnd-quartz.c ++++ b/gdk/quartz/gdkdnd-quartz.c +@@ -111,11 +111,20 @@ GdkDragContext * + gdk_drag_begin (GdkWindow *window, + GList *targets) + { +- g_assert (_gdk_quartz_drag_source_context == NULL); ++ if (_gdk_quartz_drag_source_context != NULL) ++ { ++ /* Something is amiss with the existing drag, so log a message ++ and abort it */ ++ g_warning ("Drag begun with existing context; aborting the preexisting drag"); ++ gdk_drag_abort (_gdk_quartz_drag_source_context, ++ (guint32)g_get_real_time ()); ++ } ++ + + /* Create fake context */ + _gdk_quartz_drag_source_context = gdk_drag_context_new (); + _gdk_quartz_drag_source_context->is_source = TRUE; ++ _gdk_quartz_drag_source_context->source_window = window; + + return _gdk_quartz_drag_source_context; + } +@@ -155,20 +164,36 @@ gdk_drag_find_window_for_screen (GdkDragContext *context, + /* FIXME: Implement */ + } + ++static void ++gdk_quartz_drag_end (GdkDragContext *context) ++{ ++ GdkEvent event; ++ ++ g_assert (context != NULL); ++ event.dnd.type = GDK_DROP_FINISHED; ++ event.dnd.window = g_object_ref (context->source_window); ++ event.dnd.send_event = FALSE; ++ event.dnd.context = context; ++ ++ (*_gdk_event_func) (&event, _gdk_event_data); ++ ++ g_object_run_dispose (_gdk_quartz_drag_source_context); ++ _gdk_quartz_drag_source_context = NULL; ++} ++ + void + gdk_drag_drop (GdkDragContext *context, + guint32 time) + { +- /* FIXME: Implement */ ++ gdk_quartz_drag_end (context); + } + + void + gdk_drag_abort (GdkDragContext *context, + guint32 time) + { +- g_return_if_fail (context != NULL); +- +- /* FIXME: Implement */ ++ g_warning ("Gdk-quartz-drag-drop, aborting\n"); ++ gdk_quartz_drag_end (context); + } + + void +diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c +index 5688568..be92a22 100644 +--- a/gtk/gtkdnd-quartz.c ++++ b/gtk/gtkdnd-quartz.c +@@ -269,6 +269,39 @@ gtk_drag_dest_info_destroy (gpointer data) + g_free (info); + } + ++static void ++gtk_drag_source_info_destroy (GtkDragSourceInfo *info) ++{ ++ NSPasteboard *pasteboard; ++ NSAutoreleasePool *pool; ++ ++ if (info->icon_pixbuf) ++ g_object_unref (info->icon_pixbuf); ++ ++ g_signal_emit_by_name (info->widget, "drag-end", ++ info->context); ++ ++ if (info->source_widget) ++ g_object_unref (info->source_widget); ++ ++ if (info->widget) ++ g_object_unref (info->widget); ++ ++ gtk_target_list_unref (info->target_list); ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ /* Empty the pasteboard, so that it will not accidentally access ++ * info->context after it has been destroyed. ++ */ ++ pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard]; ++ [pasteboard declareTypes: nil owner: nil]; ++ ++ [pool release]; ++ ++ g_free (info); ++} ++ + static GtkDragDestInfo * + gtk_drag_get_dest_info (GdkDragContext *context, + gboolean create) +@@ -308,18 +341,14 @@ gtk_drag_get_source_info (GdkDragContext *context, + { + info = g_new0 (GtkDragSourceInfo, 1); + info->context = context; +- g_object_set_qdata (G_OBJECT (context), dest_info_quark, info); ++ g_object_ref (info->context); ++ g_object_set_qdata_full (G_OBJECT (context), dest_info_quark, ++ info, gtk_drag_source_info_destroy); + } + + return info; + } + +-static void +-gtk_drag_clear_source_info (GdkDragContext *context) +-{ +- g_object_set_qdata (G_OBJECT (context), dest_info_quark, NULL); +-} +- + GtkWidget * + gtk_drag_get_source_widget (GdkDragContext *context) + { +@@ -1089,7 +1118,8 @@ gtk_drag_begin_idle (gpointer arg) + [owner release]; + [types release]; + +- if ((nswindow = get_toplevel_nswindow (info->source_widget)) == NULL) ++ if (info->source_widget == NULL ++ || (nswindow = get_toplevel_nswindow (info->source_widget)) == NULL) + return FALSE; + + /* Ref the context. It's unreffed when the drag has been aborted */ +@@ -1108,7 +1138,6 @@ gtk_drag_begin_idle (gpointer arg) + source:nswindow + slideBack:YES]; + +- [info->nsevent release]; + [drag_image release]; + + [pool release]; +@@ -1833,61 +1862,12 @@ gtk_drag_set_default_icon (GdkColormap *colormap, + } + + static void +-gtk_drag_source_info_destroy (GtkDragSourceInfo *info) +-{ +- NSPasteboard *pasteboard; +- NSAutoreleasePool *pool; +- +- if (info->icon_pixbuf) +- g_object_unref (info->icon_pixbuf); +- +- g_signal_emit_by_name (info->widget, "drag-end", +- info->context); +- +- if (info->source_widget) +- g_object_unref (info->source_widget); +- +- if (info->widget) +- g_object_unref (info->widget); +- +- gtk_target_list_unref (info->target_list); +- +- pool = [[NSAutoreleasePool alloc] init]; +- +- /* Empty the pasteboard, so that it will not accidentally access +- * info->context after it has been destroyed. +- */ +- pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard]; +- [pasteboard declareTypes: nil owner: nil]; +- +- [pool release]; +- +- gtk_drag_clear_source_info (info->context); +- g_object_unref (info->context); +- +- g_free (info); +- info = NULL; +-} +- +-static gboolean +-drag_drop_finished_idle_cb (gpointer data) +-{ +- gtk_drag_source_info_destroy (data); +- return FALSE; +-} +- +-static void + gtk_drag_drop_finished (GtkDragSourceInfo *info) + { + if (info->success && info->delete) + g_signal_emit_by_name (info->source_widget, "drag-data-delete", + info->context); + +- /* Workaround for the fact that the NS API blocks until the drag is +- * over. This way the context is still valid when returning from +- * drag_begin, even if it will still be quite useless. See bug #501588. +- */ +- g_idle_add (drag_drop_finished_idle_cb, info); + } + + /************************************************************* diff --git a/build-aux/osx/build/modulesets/patches/gtk+/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch b/build-aux/osx/build/modulesets/patches/gtk+/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch new file mode 100644 index 0000000..5b9153c --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gtk+/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch @@ -0,0 +1,39 @@ +From 259563958047ccbf6f61578f2d724fc731218304 Mon Sep 17 00:00:00 2001 +From: John Ralls +Date: Sun, 25 Sep 2011 12:03:54 -0700 +Subject: [PATCH 08/15] Implement GtkDragSourceOwner pasteboardChangedOwner: + +--- + gtk/gtkdnd-quartz.c | 11 +++++++++++ + 1 files changed, 11 insertions(+), 0 deletions(-) + +diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c +index 084aada..21ce11a 100644 +--- a/gtk/gtkdnd-quartz.c ++++ b/gtk/gtkdnd-quartz.c +@@ -149,6 +149,8 @@ struct _GtkDragFindData + guint target_info; + GtkSelectionData selection_data; + ++ g_return_if_fail(info->source_widget != NULL); ++ g_return_if_fail(info->target_list != NULL); + selection_data.selection = GDK_NONE; + selection_data.data = NULL; + selection_data.length = -1; +@@ -171,6 +173,15 @@ struct _GtkDragFindData + } + } + ++- (void)pasteboardChangedOwner: (NSPasteboard*)sender ++{ ++ if (!info) return; ++ ++ info->target_list = NULL; ++ info->widget = NULL; ++ info->source_widget = NULL; ++} ++ + - (id)initWithInfo:(GtkDragSourceInfo *)anInfo + { + self = [super init]; + diff --git a/build-aux/osx/build/modulesets/patches/gtk+/gtk+-2-m4-creation.patch b/build-aux/osx/build/modulesets/patches/gtk+/gtk+-2-m4-creation.patch new file mode 100644 index 0000000..26321b7 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gtk+/gtk+-2-m4-creation.patch @@ -0,0 +1,5 @@ +diff -uN gtk+-2.24.21/m4/.bogus gtk+-2.24.21.save/m4/.bogus +--- gtk+-2.24.21/m4/.bogus 2013-10-02 08:01:33.000000000 -0700 ++++ gtk+-2.24.21.save/m4/.bogus 2013-10-02 08:03:40.000000000 -0700 +@@ -0,0 +1 @@ ++A phony file to enable making a patch to create this directory. diff --git a/build-aux/osx/build/modulesets/patches/gtk-mac-integration/0001-Fix-unhandled-exception-from-attempting-to-access-me.patch b/build-aux/osx/build/modulesets/patches/gtk-mac-integration/0001-Fix-unhandled-exception-from-attempting-to-access-me.patch new file mode 100644 index 0000000..87151bb --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/gtk-mac-integration/0001-Fix-unhandled-exception-from-attempting-to-access-me.patch @@ -0,0 +1,39 @@ +From cd3a21ff115cd6c6c11ce39aa62eaf912c78b060 Mon Sep 17 00:00:00 2001 +From: John Ralls +Date: Mon, 30 Dec 2013 12:20:26 -0800 +Subject: [PATCH] Fix unhandled exception from attempting to access menu + itemAtIndex:-1 + +--- + src/cocoa_menu_item.c | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) + +diff --git a/src/cocoa_menu_item.c b/src/cocoa_menu_item.c +index 793c254..dd46586 100644 +--- a/src/cocoa_menu_item.c ++++ b/src/cocoa_menu_item.c +@@ -550,12 +550,16 @@ cocoa_menu_item_add_item (NSMenu* cocoa_menu, GtkWidget* menu_item, int index) + /* Clean up adjacent separators: */ + if ([cocoa_menu numberOfItems] > 0) + { +- if (([cocoa_menu numberOfItems] == index || +- [[cocoa_menu itemAtIndex: index] isSeparatorItem]) && +- [[cocoa_menu itemAtIndex: index - 1] isSeparatorItem]) ++ if (index == 0) ++ { ++ if ([[cocoa_menu itemAtIndex: index] isSeparatorItem]) ++ [cocoa_menu removeItemAtIndex: index]; ++ } ++ else if (([cocoa_menu numberOfItems] == index || ++ [[cocoa_menu itemAtIndex: index] isSeparatorItem]) && ++ [[cocoa_menu itemAtIndex: index - 1] isSeparatorItem]) + [cocoa_menu removeItemAtIndex: index - 1]; +- if (index == 0 && [[cocoa_menu itemAtIndex: index] isSeparatorItem]) +- [cocoa_menu removeItemAtIndex: index]; ++ + } + } + +-- +1.8.3.rc0 + diff --git a/build-aux/osx/build/modulesets/patches/itstool/itstool.use-correct-libxml.patch b/build-aux/osx/build/modulesets/patches/itstool/itstool.use-correct-libxml.patch new file mode 100644 index 0000000..51a25c0 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/itstool/itstool.use-correct-libxml.patch @@ -0,0 +1,28 @@ +From d6ef86e2fb7bf9ddf888521e2c7dc5b5b7e4b6d8 Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro +Date: Fri, 10 Jan 2014 23:50:52 -0600 +Subject: [PATCH] build: use $PYTHON when testing for libxml2 + +/usr/bin/python is a symlink to /usr/bin/python3 on some systems. +In this case, configure unconditionally checks for the Python 3 version +of libxml2. Instead, use the version of Python found by AM_PATH_PYTHON. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index c29efad..dbd0c7f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -14,7 +14,7 @@ AM_PATH_PYTHON([2.6]) + + py_module=libxml2 + AC_MSG_CHECKING(for python module $py_module) +-echo "import $py_module" | python - &>/dev/null ++echo "import $py_module" | $PYTHON - &>/dev/null + if test $? -ne 0; then + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Python module $py_module is needed to run this package) +-- +1.8.5.2 + diff --git a/build-aux/osx/build/modulesets/patches/libgcrypt/libgcrypt-build-clang.patch b/build-aux/osx/build/modulesets/patches/libgcrypt/libgcrypt-build-clang.patch new file mode 100644 index 0000000..5e6beb5 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/libgcrypt/libgcrypt-build-clang.patch @@ -0,0 +1,97 @@ +diff -c /Users/john/Development/gtk-sources/libgcrypt-1.5.3/cipher/rijndael.c\~ /Users/john/Development/gtk-sources/libgcrypt-1.5.3/cipher/rijndael.c +--- a/cipher/rijndael.c Tue Oct 15 11:09:37 2013 ++++ b/cipher/rijndael.c + Tue Oct 15 11:53:22 2013 +@@ -725,13 +725,13 @@ + "movdqa 0x90(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpl $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xb0(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpl $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xd0(%%esi), %%xmm1\n\t" +@@ -780,13 +780,13 @@ + "movdqa 0x90(%%esi), %%xmm1\n\t" + aesdec_xmm1_xmm0 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpl $10, %[rounds]\n\t" + "jz .Ldeclast%=\n\t" + aesdec_xmm1_xmm0 + "movdqa 0xb0(%%esi), %%xmm1\n\t" + aesdec_xmm1_xmm0 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpl $12, %[rounds]\n\t" + "jz .Ldeclast%=\n\t" + aesdec_xmm1_xmm0 + "movdqa 0xd0(%%esi), %%xmm1\n\t" +@@ -839,13 +839,13 @@ + "movdqa 0x90(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpl $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xb0(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpl $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xd0(%%esi), %%xmm1\n\t" +@@ -857,7 +857,7 @@ + "movdqu %[src], %%xmm1\n\t" /* Save input. */ + "pxor %%xmm1, %%xmm0\n\t" /* xmm0 = input ^ IV */ + +- "cmp $1, %[decrypt]\n\t" ++ "cmpl $1, %[decrypt]\n\t" + "jz .Ldecrypt_%=\n\t" + "movdqa %%xmm0, %[iv]\n\t" /* [encrypt] Store IV. */ + "jmp .Lleave_%=\n" +@@ -918,13 +918,13 @@ + "movdqa 0x90(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpl $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xb0(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpl $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xd0(%%esi), %%xmm1\n\t" +@@ -1045,7 +1045,7 @@ + aesenc_xmm1_xmm3 + aesenc_xmm1_xmm4 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpl $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + aesenc_xmm1_xmm2 +@@ -1057,7 +1057,7 @@ + aesenc_xmm1_xmm3 + aesenc_xmm1_xmm4 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpl $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + aesenc_xmm1_xmm2 + +Diff finished. Tue Oct 15 11:53:31 2013 diff --git a/build-aux/osx/build/modulesets/patches/libxml2/libxml2-Bug-686118-pthreads_once_init.patch b/build-aux/osx/build/modulesets/patches/libxml2/libxml2-Bug-686118-pthreads_once_init.patch new file mode 100644 index 0000000..8f42220 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/libxml2/libxml2-Bug-686118-pthreads_once_init.patch @@ -0,0 +1,33 @@ +From 3f6cfbd1d38d0634a2ddcb9a0a13e1b5a2195a5e Mon Sep 17 00:00:00 2001 +From: Friedrich Haubensak +Date: Wed, 12 Sep 2012 15:34:53 +0000 +Subject: Fix a thread portability problem + +cannot compile libxml2-2.9.0 using studio 12.1 compiler on solaris 10 + +I.M.O. structure initializer (as PTHREAD_ONCE_INIT) cannot be used in +a structure assignment anyway +--- +diff --git a/threads.c b/threads.c +index f206149..7e85a26 100644 +--- a/threads.c ++++ b/threads.c +@@ -146,6 +146,7 @@ struct _xmlRMutex { + static pthread_key_t globalkey; + static pthread_t mainthread; + static pthread_once_t once_control = PTHREAD_ONCE_INIT; ++static pthread_once_t once_control_init = PTHREAD_ONCE_INIT; + static pthread_mutex_t global_init_lock = PTHREAD_MUTEX_INITIALIZER; + #elif defined HAVE_WIN32_THREADS + #if defined(HAVE_COMPILER_TLS) +@@ -915,7 +916,7 @@ xmlCleanupThreads(void) + #ifdef HAVE_PTHREAD_H + if ((libxml_is_threaded) && (pthread_key_delete != NULL)) + pthread_key_delete(globalkey); +- once_control = PTHREAD_ONCE_INIT; ++ once_control = once_control_init; + #elif defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL)) + if (globalkey != TLS_OUT_OF_INDEXES) { + xmlGlobalStateCleanupHelperParams *p; +-- +cgit v0.9.0.2 diff --git a/build-aux/osx/build/modulesets/patches/readline/readline62-001 b/build-aux/osx/build/modulesets/patches/readline/readline62-001 new file mode 100644 index 0000000..d4563c3 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/readline/readline62-001 @@ -0,0 +1,46 @@ + READLINE PATCH REPORT + ===================== + +Readline-Release: 6.2 +Patch-ID: readline62-001 + +Bug-Reported-by: Clark J. Wang +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00157.html + +Bug-Description: + +The readline vi-mode `cc', `dd', and `yy' commands failed to modify the +entire line. + +[This patch intentionally does not modify patchlevel] + +Patch (apply with `patch -p0'): + +*** ../readline-6.2-patched/vi_mode.c 2010-11-20 19:51:39.000000000 -0500 +--- vi_mode.c 2011-02-17 20:24:25.000000000 -0500 +*************** +*** 1115,1119 **** + _rl_vi_last_motion = c; + RL_UNSETSTATE (RL_STATE_VIMOTION); +! return (0); + } + #if defined (READLINE_CALLBACKS) +--- 1115,1119 ---- + _rl_vi_last_motion = c; + RL_UNSETSTATE (RL_STATE_VIMOTION); +! return (vidomove_dispatch (m)); + } + #if defined (READLINE_CALLBACKS) +*** ../readline-6.2-patched/callback.c 2010-06-06 12:18:58.000000000 -0400 +--- callback.c 2011-02-17 20:43:28.000000000 -0500 +*************** +*** 149,152 **** +--- 149,155 ---- + /* Should handle everything, including cleanup, numeric arguments, + and turning off RL_STATE_VIMOTION */ ++ if (RL_ISSTATE (RL_STATE_NUMERICARG) == 0) ++ _rl_internal_char_cleanup (); ++ + return; + } diff --git a/build-aux/osx/build/modulesets/patches/readline/readline62-002 b/build-aux/osx/build/modulesets/patches/readline/readline62-002 new file mode 100644 index 0000000..3dc2604 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/readline/readline62-002 @@ -0,0 +1,57 @@ + READLINE PATCH REPORT + ===================== + +Readline-Release: 6.2 +Patch-ID: readline62-002 + +Bug-Reported-by: Vincent Sheffer +Bug-Reference-ID: +Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2011-08/msg00000.html + +Bug-Description: + +The readline shared library helper script needs to be updated for Mac OS X +10.7 (Lion, darwin11). + +Patch (apply with `patch -p0'): + +*** ../readline-6.2-patched/support/shobj-conf 2009-10-28 09:20:21.000000000 -0400 +--- support/shobj-conf 2011-08-27 13:25:23.000000000 -0400 +*************** +*** 158,162 **** + + # Darwin/MacOS X +! darwin[89]*|darwin10*) + SHOBJ_STATUS=supported + SHLIB_STATUS=supported +--- 172,176 ---- + + # Darwin/MacOS X +! darwin[89]*|darwin1[012]*) + SHOBJ_STATUS=supported + SHLIB_STATUS=supported +*************** +*** 187,191 **** + + case "${host_os}" in +! darwin[789]*|darwin10*) SHOBJ_LDFLAGS='' + SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' + ;; +--- 201,205 ---- + + case "${host_os}" in +! darwin[789]*|darwin1[012]*) SHOBJ_LDFLAGS='' + SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' + ;; + +*** ../readline-6.2-patched/patchlevel 2010-01-14 10:15:52.000000000 -0500 +--- patchlevel 2011-11-17 11:09:35.000000000 -0500 +*************** +*** 1,3 **** + # Do not edit -- exists only for use by patch + +! 1 +--- 1,3 ---- + # Do not edit -- exists only for use by patch + +! 2 diff --git a/build-aux/osx/build/modulesets/patches/readline/readline62-003 b/build-aux/osx/build/modulesets/patches/readline/readline62-003 new file mode 100644 index 0000000..0462242 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/readline/readline62-003 @@ -0,0 +1,76 @@ + READLINE PATCH REPORT + ===================== + +Readline-Release: 6.2 +Patch-ID: readline62-003 + +Bug-Reported-by: Max Horn +Bug-Reference-ID: <20CC5C60-07C3-4E41-9817-741E48D407C5@quendi.de> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2012-06/msg00005.html + +Bug-Description: + +A change between readline-6.1 and readline-6.2 to prevent the readline input +hook from being called too frequently had the side effect of causing delays +when reading pasted input on systems such as Mac OS X. This patch fixes +those delays while retaining the readline-6.2 behavior. + +Patch (apply with `patch -p0'): + +*** ../readline-6.2-patched/input.c 2010-05-30 18:33:01.000000000 -0400 +--- input.c 2012-06-25 21:08:42.000000000 -0400 +*************** +*** 410,414 **** + rl_read_key () + { +! int c; + + rl_key_sequence_length++; +--- 412,416 ---- + rl_read_key () + { +! int c, r; + + rl_key_sequence_length++; +*************** +*** 430,441 **** + while (rl_event_hook) + { +! if (rl_gather_tyi () < 0) /* XXX - EIO */ + { + rl_done = 1; + return ('\n'); + } + RL_CHECK_SIGNALS (); +- if (rl_get_char (&c) != 0) +- break; + if (rl_done) /* XXX - experimental */ + return ('\n'); +--- 432,447 ---- + while (rl_event_hook) + { +! if (rl_get_char (&c) != 0) +! break; +! +! if ((r = rl_gather_tyi ()) < 0) /* XXX - EIO */ + { + rl_done = 1; + return ('\n'); + } ++ else if (r == 1) /* read something */ ++ continue; ++ + RL_CHECK_SIGNALS (); + if (rl_done) /* XXX - experimental */ + return ('\n'); +*** ../readline-6.2-patched/patchlevel 2010-01-14 10:15:52.000000000 -0500 +--- patchlevel 2011-11-17 11:09:35.000000000 -0500 +*************** +*** 1,3 **** + # Do not edit -- exists only for use by patch + +! 2 +--- 1,3 ---- + # Do not edit -- exists only for use by patch + +! 3 diff --git a/build-aux/osx/build/modulesets/patches/readline/readline62-004 b/build-aux/osx/build/modulesets/patches/readline/readline62-004 new file mode 100644 index 0000000..5f3ba9b --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/readline/readline62-004 @@ -0,0 +1,108 @@ + READLINE PATCH REPORT + ===================== + +Readline-Release: 6.2 +Patch-ID: readline62-004 + +Bug-Reported-by: Jakub Filak +Bug-Reference-ID: +Bug-Reference-URL: https://bugzilla.redhat.com/show_bug.cgi?id=813289 + +Bug-Description: + +Attempting to redo (using `.') the vi editing mode `cc', `dd', or `yy' +commands leads to an infinite loop. + +Patch (apply with `patch -p0'): + +*** ../readline-6.2-patched/vi_mode.c 2011-02-25 11:17:02.000000000 -0500 +--- vi_mode.c 2012-06-02 12:24:47.000000000 -0400 +*************** +*** 1235,1243 **** + r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing) + { + _rl_vimvcxt->motion = _rl_vi_last_motion; + r = rl_domove_motion_callback (_rl_vimvcxt); + } + #if defined (READLINE_CALLBACKS) + else if (RL_ISSTATE (RL_STATE_CALLBACK)) +--- 1297,1313 ---- + r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing && _rl_vi_last_motion != 'd') /* `dd' is special */ + { + _rl_vimvcxt->motion = _rl_vi_last_motion; + r = rl_domove_motion_callback (_rl_vimvcxt); + } ++ else if (vi_redoing) /* handle redoing `dd' here */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ rl_mark = rl_end; ++ rl_beg_of_line (1, key); ++ RL_UNSETSTATE (RL_STATE_VIMOTION); ++ r = vidomove_dispatch (_rl_vimvcxt); ++ } + #if defined (READLINE_CALLBACKS) + else if (RL_ISSTATE (RL_STATE_CALLBACK)) +*************** +*** 1317,1325 **** + r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing) + { + _rl_vimvcxt->motion = _rl_vi_last_motion; + r = rl_domove_motion_callback (_rl_vimvcxt); + } + #if defined (READLINE_CALLBACKS) + else if (RL_ISSTATE (RL_STATE_CALLBACK)) +--- 1387,1403 ---- + r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing && _rl_vi_last_motion != 'c') /* `cc' is special */ + { + _rl_vimvcxt->motion = _rl_vi_last_motion; + r = rl_domove_motion_callback (_rl_vimvcxt); + } ++ else if (vi_redoing) /* handle redoing `cc' here */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ rl_mark = rl_end; ++ rl_beg_of_line (1, key); ++ RL_UNSETSTATE (RL_STATE_VIMOTION); ++ r = vidomove_dispatch (_rl_vimvcxt); ++ } + #if defined (READLINE_CALLBACKS) + else if (RL_ISSTATE (RL_STATE_CALLBACK)) +*************** +*** 1378,1381 **** +--- 1456,1472 ---- + r = rl_domove_motion_callback (_rl_vimvcxt); + } ++ else if (vi_redoing && _rl_vi_last_motion != 'y') /* `yy' is special */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ r = rl_domove_motion_callback (_rl_vimvcxt); ++ } ++ else if (vi_redoing) /* handle redoing `yy' here */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ rl_mark = rl_end; ++ rl_beg_of_line (1, key); ++ RL_UNSETSTATE (RL_STATE_VIMOTION); ++ r = vidomove_dispatch (_rl_vimvcxt); ++ } + #if defined (READLINE_CALLBACKS) + else if (RL_ISSTATE (RL_STATE_CALLBACK)) +*** ../readline-6.2-patched/patchlevel 2010-01-14 10:15:52.000000000 -0500 +--- patchlevel 2011-11-17 11:09:35.000000000 -0500 +*************** +*** 1,3 **** + # Do not edit -- exists only for use by patch + +! 3 +--- 1,3 ---- + # Do not edit -- exists only for use by patch + +! 4 diff --git a/build-aux/osx/build/modulesets/patches/shared-mime-info/0001-Bug-70255-Build-fails-with-glib-2.38.patch b/build-aux/osx/build/modulesets/patches/shared-mime-info/0001-Bug-70255-Build-fails-with-glib-2.38.patch new file mode 100644 index 0000000..f2007d2 --- /dev/null +++ b/build-aux/osx/build/modulesets/patches/shared-mime-info/0001-Bug-70255-Build-fails-with-glib-2.38.patch @@ -0,0 +1,42 @@ +From bfb2d780ff11cb547cc20d31c473be35cacb4509 Mon Sep 17 00:00:00 2001 +From: John Ralls +Date: Tue, 8 Oct 2013 11:33:11 -0700 +Subject: [PATCH] Bug 70255 - Build fails with glib-2.38 + +--- + configure.ac | 3 +++ + test-tree-magic.c | 3 ++- + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 68007c9..60a4c4d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -29,6 +29,9 @@ dnl Check whether libxml and glib are present is installed + PKG_CHECK_MODULES(ALL, \ + libxml-2.0 >= 2.4 \ + glib-2.0 >= 2.6.0) ++PKG_CHECK_MODULES(GLIB_2_36, glib-2.0 >= 2.36.0, ++ [AC_DEFINE([HAVE_GLIB_2_36], [1], [Configure g_type_init deprecation])], ++ [PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)]) + AC_SUBST(ALL_CFLAGS) + AC_SUBST(ALL_LIBS) + +diff --git a/test-tree-magic.c b/test-tree-magic.c +index 9b4dfaf..ec44a29 100644 +--- a/test-tree-magic.c ++++ b/test-tree-magic.c +@@ -637,8 +637,9 @@ int main (int argc, char **argv) + char *content, **lines; + guint i; + ++#ifndef HAVE_GLIB_2_36 + g_type_init (); +- ++#endif + if (argc != 2) { + g_print ("Usage: %s [file]\n", argv[0]); + g_print ("Where file contains, on each line, a directory path,\n" +-- +1.8.3.rc0 + diff --git a/build-aux/osx/build/updater/gedit-bootstrap-overrides.modules b/build-aux/osx/build/updater/gedit-bootstrap-overrides.modules new file mode 100644 index 0000000..37c2726 --- /dev/null +++ b/build-aux/osx/build/updater/gedit-bootstrap-overrides.modules @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/osx/build/updater/gedit-overrides.modules b/build-aux/osx/build/updater/gedit-overrides.modules new file mode 100644 index 0000000..d893392 --- /dev/null +++ b/build-aux/osx/build/updater/gedit-overrides.modules @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/osx/build/updater/patches/enchant-applespell.patch b/build-aux/osx/build/updater/patches/enchant-applespell.patch new file mode 100644 index 0000000..f6f1f65 --- /dev/null +++ b/build-aux/osx/build/updater/patches/enchant-applespell.patch @@ -0,0 +1,368 @@ +--- a/configure.in (revision 30591) ++++ b/configure.in (working copy) +@@ -33,4 +33,5 @@ + AC_PROG_CC + AC_PROG_CPP ++AC_PROG_OBJC + AC_PROG_INSTALL + AC_PROG_LN_S +--- a/src/applespell/Makefile.am 2010-04-01 22:53:37.000000000 +0200 ++++ b/src/applespell/Makefile.am 2012-01-11 22:42:13.000000000 +0100 +@@ -1,4 +1,13 @@ +-EXTRA_DIST= \ +- applespell_checker.h \ +- applespell_checker.mm \ +- AppleSpell.config ++target_lib = libenchant_applespell.la ++ ++INCLUDES=-I$(top_srcdir)/src $(ENCHANT_CFLAGS) $(CC_WARN_CFLAGS) -DXP_TARGET_COCOA -xobjective-c -D_ENCHANT_BUILD=1 ++ ++applespell_LTLIBRARIES = $(target_lib) ++applespelldir= $(libdir)/enchant ++ ++libenchant_applespell_la_LIBADD= $(ENCHANT_LIBS) -lobjc $(top_builddir)/src/libenchant.la ++libenchant_applespell_la_LDFLAGS = -module -avoid-version -no-undefined -framework Cocoa ++libenchant_applespell_la_SOURCES = applespell_provider.m ++libenchant_applespell_la_LIBTOOLFLAGS = --tag=CC ++ ++libenchant_applespell_lalibdir=$(libdir)/enchant +--- a/src/applespell/applespell_provider.m 2012-01-11 22:46:35.000000000 +0100 ++++ b/src/applespell/applespell_provider.m 2012-01-11 22:39:17.000000000 +0100 +@@ -0,0 +1,337 @@ ++/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ ++/* enchant ++ * Copyright (C) 2004 Remi Payette ++ * Copyright (C) 2004 Francis James Franklin ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version 2 ++ * of the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ++ * 02110-1301, USA. ++ */ ++ ++#include ++#include ++#include ++#include ++ ++#include "enchant-provider.h" ++ ++#ifdef __cplusplus ++extern "C" ++{ ++#endif ++ ++ENCHANT_MODULE_EXPORT (EnchantProvider *) ++init_enchant_provider (void); ++ ++ENCHANT_MODULE_EXPORT (void) ++configure_enchant_provider (EnchantProvider *provider, const gchar *module_dir); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++ENCHANT_PLUGIN_DECLARE("AppleSpell") ++ ++typedef struct ++{ ++ NSSpellChecker *checker; ++ NSString *language; ++} Dictionary; ++ ++static Dictionary * ++dictionary_new (NSSpellChecker *checker, ++ NSString *language) ++{ ++ Dictionary *ret; ++ ++ ret = g_slice_new (Dictionary); ++ ++ ret->checker = checker; ++ ret->language = language; ++ ++ return ret; ++} ++ ++static void ++dictionary_free (Dictionary *dictionary) ++{ ++ [dictionary->language release]; ++ g_slice_free (Dictionary, dictionary); ++} ++ ++static gchar ** ++applespell_dict_suggest (EnchantDict *dict, ++ const gchar * const word, ++ size_t len, ++ size_t *out_n_suggs) ++{ ++ NSAutoreleasePool *pool; ++ gchar **ret = NULL; ++ NSString *str; ++ Dictionary *d; ++ NSArray *words; ++ NSRange range; ++ guint i = 0; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ d = dict->user_data; ++ ++ str = [[NSString alloc] initWithBytes:word length:len encoding:NSUTF8StringEncoding]; ++ ++ range.location = 0; ++ range.length = [str length]; ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5 ++ words = [d->checker guessesForWordRange:range ++ inString:str ++ language:d->language ++ inSpellDocumentWithTag:0]; ++#else ++ [d->checker setLanguage:d->language]; ++ words = [d->checker guessesForWord:str]; ++#endif ++ ++ *out_n_suggs = [words count]; ++ ++ ret = g_new0 (gchar *, *out_n_suggs + 1); ++ ++ for (i = 0; i < [words count]; ++i) ++ { ++ ret[i] = g_strdup ([[words objectAtIndex:i] UTF8String]); ++ } ++ ++ [str release]; ++ [pool release]; ++ ++ return ret; ++} ++ ++static gint ++applespell_dict_check (EnchantDict *dict, ++ const gchar * const word, ++ size_t len) ++{ ++ NSAutoreleasePool *pool; ++ gint result = 0; ++ NSString *str; ++ Dictionary *d; ++ NSRange range; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ d = dict->user_data; ++ ++ str = [[NSString alloc] initWithBytes:word length:len encoding:NSUTF8StringEncoding]; ++ ++ range = [d->checker checkSpellingOfString:str ++ startingAt:0 ++ language:d->language ++ wrap:true ++ inSpellDocumentWithTag:0 ++ wordCount:NULL]; ++ ++ result = range.length > 0 ? 1 : 0; ++ ++ [str release]; ++ [pool release]; ++ ++ return result; ++} ++ ++static EnchantDict * ++applespell_provider_request_dict (EnchantProvider *provider, ++ const char * const tag) ++{ ++ NSAutoreleasePool *pool; ++ EnchantDict *dict; ++ NSString *str; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ str = [[NSString alloc] initWithUTF8String:tag]; ++ ++ dict = g_new0 (EnchantDict, 1); ++ ++ dict->check = applespell_dict_check; ++ dict->suggest = applespell_dict_suggest; ++ ++ dict->user_data = dictionary_new (provider->user_data, ++ str); ++ ++ [str retain]; ++ ++ [pool release]; ++ return dict; ++} ++ ++static void ++applespell_provider_dispose_dict (EnchantProvider *provider, ++ EnchantDict *dict) ++{ ++ NSAutoreleasePool *pool; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ dictionary_free (dict->user_data); ++ g_free (dict); ++ ++ [pool release]; ++} ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 ++static gchar const *available_languages[] = { ++ "en", ++ "en_GB", ++ "en_AU", ++ "de", ++ "fr", ++ "nl", ++ "pl", ++ NULL ++}; ++ ++#endif ++ ++static gint ++applespell_provider_dictionary_exists (EnchantProvider *provider, ++ const gchar * const tag) ++{ ++ NSAutoreleasePool *pool; ++ gint result = 0; ++ NSSpellChecker *checker; ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ NSArray *languages; ++ guint i; ++#else ++ gchar const **ptr; ++#endif ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ checker = provider->user_data; ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ languages = [checker availableLanguages]; ++ ++ for (i = 0; i < [languages count]; ++i) ++ { ++ if (g_strcmp0 (tag, [[languages objectAtIndex:i] UTF8String]) == 0) ++ { ++ result = 1; ++ break; ++ } ++ } ++#else ++ ptr = available_languages; ++ ++ while (ptr && *ptr) ++ { ++ if (g_strcmp0 (tag, *ptr) == 0) ++ { ++ result = 1; ++ break; ++ } ++ ++ptr; ++ } ++#endif ++ ++ [pool release]; ++ ++ return result; ++} ++ ++static void ++applespell_provider_dispose (EnchantProvider *provider) ++{ ++ g_free (provider); ++} ++ ++static const gchar * ++applespell_provider_identify (EnchantProvider *provider) ++{ ++ return "AppleSpell"; ++} ++ ++static const gchar * ++applespell_provider_describe (EnchantProvider *provider) ++{ ++ return "AppleSpell Provider"; ++} ++ ++static gchar ** ++applespell_provider_list_dicts (EnchantProvider *provider, ++ size_t *out_n_dicts) ++{ ++ NSSpellChecker *checker; ++ NSAutoreleasePool *pool; ++ gchar **ret = NULL; ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ NSArray *languages; ++ guint i = 0; ++#endif ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ checker = provider->user_data; ++ ++#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ++ languages = [checker availableLanguages]; ++ *out_n_dicts = [languages count]; ++ ++ ret = g_new0 (gchar *, *out_n_dicts + 1); ++ ++ for (i = 0; i < [languages count]; ++i) ++ { ++ ret[i] = g_strdup ([[languages objectAtIndex:i] UTF8String]); ++ } ++#else ++ ret = g_strdupv ((gchar **)available_languages); ++#endif ++ ++ [pool release]; ++ ++ return ret; ++} ++ ++ENCHANT_MODULE_EXPORT (EnchantProvider *) ++init_enchant_provider (void) ++{ ++ NSAutoreleasePool *pool; ++ EnchantProvider *provider; ++ ++ pool = [[NSAutoreleasePool alloc] init]; ++ ++ provider = g_new0 (EnchantProvider, 1); ++ ++ provider->dispose = applespell_provider_dispose; ++ provider->request_dict = applespell_provider_request_dict; ++ provider->dispose_dict = applespell_provider_dispose_dict; ++ provider->dictionary_exists = applespell_provider_dictionary_exists; ++ provider->identify = applespell_provider_identify; ++ provider->describe = applespell_provider_describe; ++ provider->list_dicts = applespell_provider_list_dicts; ++ ++ provider->user_data = [NSSpellChecker sharedSpellChecker]; ++ ++ [pool release]; ++ ++ return provider; ++} ++ ++ENCHANT_MODULE_EXPORT (void) ++configure_enchant_provider (EnchantProvider *provider, ++ const gchar *module_dir) ++{ ++ return; ++} diff --git a/build-aux/osx/build/updater/patches/enchant-relocatable.patch b/build-aux/osx/build/updater/patches/enchant-relocatable.patch new file mode 100644 index 0000000..7e56eb7 --- /dev/null +++ b/build-aux/osx/build/updater/patches/enchant-relocatable.patch @@ -0,0 +1,40 @@ +--- a/src/enchant.c 2010-04-01 22:53:37.000000000 +0200 ++++ b/src/enchant.c 2014-08-26 21:32:21.000000000 +0200 +@@ -210,6 +210,13 @@ + char * module_dir = NULL; + char * prefix = NULL; + ++ const char *envdir = g_getenv ("ENCHANT_MODULES_DIR"); ++ ++ if (envdir != NULL && *envdir != '\0') ++ { ++ module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (envdir)); ++ } ++ + { + char* user_module_dir; + +@@ -239,7 +246,8 @@ + module_dirs = enchant_slist_append_unique_path (module_dirs, module_dir); + + #if defined(ENCHANT_GLOBAL_MODULE_DIR) +- module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR)); ++ if (envdir == NULL || *envdir == '\0') ++ module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR)); + #else + /* Dynamically locate library and search for modules relative to it. */ + prefix = enchant_get_prefix_dir(); +@@ -278,6 +286,13 @@ + if (ordering_dir) + conf_dirs = enchant_slist_append_unique_path (conf_dirs, ordering_dir); + ++ const char *envdir = g_getenv ("ENCHANT_DATA_DIR"); ++ ++ if (envdir != NULL && *envdir != '\0') ++ { ++ conf_dirs = enchant_slist_append_unique_path (conf_dirs, g_strdup (envdir)); ++ } ++ + /* Dynamically locate library and search for files relative to it. */ + prefix = enchant_get_prefix_dir(); + if(prefix) diff --git a/build-aux/osx/build/updater/patches/gedit-plugins-disable-terminal.patch b/build-aux/osx/build/updater/patches/gedit-plugins-disable-terminal.patch new file mode 100644 index 0000000..e1d2928 --- /dev/null +++ b/build-aux/osx/build/updater/patches/gedit-plugins-disable-terminal.patch @@ -0,0 +1,30 @@ +--- a/configure.ac 2011-10-16 22:03:19.000000000 +0200 ++++ b/configure.ac 2012-01-15 13:57:54.000000000 +0100 +@@ -246,6 +246,27 @@ + fi + fi + ++# ================================================================ ++# Terminal (vte) ++# ================================================================ ++plugin_defined terminal ++ ++if test "$?" = 1 ++then ++ AC_CHECK_LIB([vte], [vte_terminal_new], [have_vte=yes], [have_vte=no]) ++ ++ if test "x$have_vte" = "xno"; then ++ plugin_defined_explicit terminal ++ if test "$?" = 1 ++ then ++ AC_MSG_ERROR([vte could not be found, needed for terminal plugin]) ++ else ++ AC_MSG_WARN([vte could not be found, terminal plugin will be disabled]) ++ undef_plugin terminal "vte not found" ++ fi ++ fi ++fi ++ + if test -z "$disabled_plugins" + then + disabled_plugins="none" diff --git a/build-aux/osx/build/updater/update_modulesets.py b/build-aux/osx/build/updater/update_modulesets.py new file mode 100755 index 0000000..1382297 --- /dev/null +++ b/build-aux/osx/build/updater/update_modulesets.py @@ -0,0 +1,320 @@ +#!/usr/bin/env python + +import lxml.etree as ET +import lxml.objectify + +import subprocess, shutil, os, glob, urllib2, json, sys, difflib + +if not os.path.exists('.gtk-osx'): + subprocess.call(['git', 'clone', 'git://git.gnome.org/gtk-osx', '.gtk-osx']) + +try: + os.makedirs('.cache') +except: + pass + +class Merger: + def __init__(self): + self.repos = {} + self.modules = {} + + def normalize_xml(self, xml): + s = ET.tostring(xml) + o = lxml.objectify.fromstring(s) + + return ET.tostring(o, pretty_print=True) + + def extract_repos(self, t): + default = None + + for repo in t.findall('./repository'): + name = repo.attrib['name'] + + if 'default' in repo.attrib: + default = repo + + if not name in self.repos: + self.repos[name] = repo + + return default + + def parse_module(self, f): + t = ET.parse(f) + drepo = self.extract_repos(t) + + tags = {} + + for x in t.getroot().findall('./'): + if x.tag == 'include' or x.tag == 'repository': + continue + + branch = x.find('./branch') + + if not branch is None and not 'repo' in branch.attrib: + branch.attrib['repo'] = drepo.attrib['name'] + + id = x.attrib['id'] + + if id in self.modules: + print('Overriding existing module {0}:'.format(id)) + + a = self.normalize_xml(self.modules[id]).splitlines(True) + b = self.normalize_xml(x).splitlines(True) + + print(''.join(difflib.unified_diff(a, b, fromfile='old', tofile='new'))) + print('\n') + + sys.stdout.write('Do you want to keep the original, or the new file? [(o)riginal, (n)new] ') + sys.stdout.flush() + answer = sys.stdin.readline().rstrip() + + if answer == '' or answer == 'n' or answer == 'new': + self.modules[id] = x + print('Using new version\n') + else: + print('Used original version\n') + else: + self.modules[id] = x + + def copy_patches(self, mod): + # Copy patches locally + patches = mod.findall('./branch/patch') + + if len(patches) == 0: + return + + dname = 'modulesets/patches/' + mod.attrib['id'] + + try: + os.makedirs(dname) + except: + pass + + locc = 'http://git.gnome.org/browse/gtk-osx/plain/' + + for p in patches: + f = p.attrib['file'] + + pname = os.path.basename(f) + + if f.startswith(locc): + shutil.copyfile('.gtk-osx/' + f[len(locc):], dname + '/' + pname) + elif f.startswith('patches/'): + shutil.copyfile(f, dname + '/' + pname) + else: + content = self.from_cache_or_url(os.path.join('patches', mod.attrib['id'], pname), f) + + with open(dname + '/' + pname, 'w') as patch: + patch.write(content) + + p.attrib['file'] = mod.attrib['id'] + '/' + pname + + def from_cache_or_url(self, filename, url): + cfile = os.path.join('.cache', filename) + + try: + with open(cfile) as f: + return f.read() + except: + pass + + resp = urllib2.urlopen(url) + ret = resp.read() + resp.close() + + dname = os.path.dirname(cfile) + + try: + os.makedirs(dname) + except: + pass + + try: + with open(cfile, 'w') as f: + f.write(ret) + except: + pass + + return ret + + def update_module(self, mod): + branch = mod.find('./branch') + + if branch is None: + return + + if not branch.attrib['repo'].endswith('.gnome.org'): + return + + # Check for latest versions + repo = self.repos[branch.attrib['repo']] + + if repo.attrib['type'] != 'tarball': + return + + module = branch.attrib['module'] + + modname = module.split('/', 2)[0] + version = [int(x) for x in branch.attrib['version'].split('.')] + + # Skip updating gtk+ 2.x + if modname == 'gtk+' and version[0] == 2: + return + + href = repo.attrib['href'] + versions = self.from_cache_or_url(mod.attrib['id'] + '.json', href + modname + '/cache.json') + versions = json.loads(versions) + + latest = [version, version] + + for v in versions[1][modname]: + vv = [int(x) for x in v.split('.')] + + if vv[1] % 2 == 0: + if vv > latest[0] and vv[0] == latest[0][0]: + latest[0] = vv + else: + if vv > latest[1] and vv[0] == latest[1][0]: + latest[1] = vv + + if latest[0] > version or latest[1] > version: + choices = [] + + if latest[0] > version: + choices.append('stable = {0}'.format('.'.join([str(x) for x in latest[0]]))) + + if latest[1] > version: + choices.append('unstable = {0}'.format('.'.join([str(x) for x in latest[1]]))) + + sversion = '.'.join([str(x) for x in version]) + print('Found new versions for {0} = {1}: {2}'.format(modname, sversion, ', '.join(choices))) + + sys.stdout.write('Do you want to update? [(s)table/(u)nstable/(n)o]: ') + sys.stdout.flush() + answer = sys.stdin.readline().rstrip() + + nv = None + + if answer == '': + if latest[0] > latest[1]: + answer = 'stable' + else: + answer = 'unstable' + + if (answer == 'stable' or answer == 's') and latest[0] > version: + nv = latest[0] + elif (answer =='unstable' or answer == 'u') and latest[1] > version: + nv = latest[1] + + if not nv is None: + v = '.'.join([str(x) for x in nv]) + info = versions[1][modname][v] + branch.attrib['version'] = v + branch.attrib['module'] = '{0}/{1}'.format(modname, info['tar.xz']) + + hfile = href + modname + '/' + info['sha256sum'] + + ret = self.from_cache_or_url(os.path.join('hashes', modname, info['sha256sum']), hfile) + + for line in ret.splitlines(): + hash, fname = line.rstrip().split(None, 2) + + if fname == os.path.basename(info['tar.xz']): + branch.attrib['hash'] = 'sha256:{0}'.format(hash) + + print('Updated to version {0}\n'.format(v)) + else: + print('Keep version {0}\n'.format(sversion)) + + def merge(self, modules, entry_point, overrides): + self.modules = {} + self.repos = {} + + for mod in modules: + self.parse_module(mod) + + self.required_modules = [] + processed = set() + + self.parse_module(overrides) + + process = [self.modules[entry_point]] + processed.add(entry_point) + + while len(process) != 0: + mod = process.pop() + id = mod.attrib['id'] + + self.required_modules.insert(0, mod) + + deps = mod.findall('./dependencies/dep') + mod.findall('./after/dep') + mod.findall('./suggests/dep') + + for dep in deps: + package = dep.attrib['package'] + + if package in processed: + continue + + if not package in self.modules: + sys.stderr.write('Package dependency is not in modules... {0}\n'.format(package)) + sys.exit(1) + + processed.add(package) + process.insert(0, self.modules[package]) + + def write(self, f): + needed_repos = {} + + for mod in self.required_modules: + branch = mod.find('./branch') + + if not branch is None and 'repo' in branch.attrib: + needed_repos[branch.attrib['repo']] = self.repos[branch.attrib['repo']] + + try: + os.makedirs('.cache') + except: + pass + + for mod in self.required_modules: + self.copy_patches(mod) + self.update_module(mod) + + with open(f, 'w') as f: + root = ET.Element('moduleset') + + repos = needed_repos.values() + repos.sort(lambda a, b: cmp(a.attrib['name'], b.attrib['name'])) + + for repo in repos: + root.append(repo) + + for mod in self.required_modules: + root.append(mod) + + ret = ET.ElementTree(root) + + content = ET.tostring(ret, pretty_print=True, xml_declaration=True, encoding='utf-8', doctype='') + f.write(content) + +shutil.rmtree('modulesets', ignore_errors=True) + +os.makedirs('modulesets') +os.makedirs('modulesets/patches') + +allf = glob.glob('.gtk-osx/modulesets-stable/*.modules') + +nobs = [x for x in allf if os.path.basename(x) != 'bootstrap.modules'] +bs = [x for x in allf if os.path.basename(x) == 'bootstrap.modules'] + +m = Merger() + +m.merge(nobs, 'gedit-meta', 'gedit-overrides.modules') +m.write('modulesets/gedit.modules') + +m.merge(bs, 'meta-bootstrap', 'gedit-bootstrap-overrides.modules') +m.write('modulesets/bootstrap.modules') + +print('New modules have been written to "modulesets"') + +# vi:ts=4:et diff --git a/build-aux/osx/bundle/.gitignore b/build-aux/osx/bundle/.gitignore new file mode 100644 index 0000000..c16a2f4 --- /dev/null +++ b/build-aux/osx/bundle/.gitignore @@ -0,0 +1 @@ +gedit.app diff --git a/build-aux/osx/bundle/bundle b/build-aux/osx/bundle/bundle new file mode 100755 index 0000000..379caf2 --- /dev/null +++ b/build-aux/osx/bundle/bundle @@ -0,0 +1,327 @@ +#!/bin/bash + +pushd $(dirname "$0") > /dev/null +D=$(pwd -P) +popd > /dev/null + +ME="$0" +BUNDLE_NAME="Gedit" +BUNDLE="$D/$BUNDLE_NAME.app" + +function do_strip { + tp=$(file -b --mime-type "$1") + + if [ "$tp" != "application/octet-stream" ]; then + return + fi + + name=$(mktemp -t bundle) + st=$(stat -f %p "$1") + + strip -o "$name" -S "$1" + mv -f "$name" "$1" + + chmod "$st" "$1" + chmod u+w "$1" +} + +function dmg_help_short() { + echo "Create a dmg from a bundle" +} + +function cmd_dmg() { + # Copied and modified from Banshee + if [ ! -d "$BUNDLE" ]; then + cmd_make + fi + + VOLUME_NAME="$BUNDLE_NAME" + + if [ ! -z "$1" ]; then + DMG_FILE="$1.dmg" + else + DMG_FILE="$D/$BUNDLE_NAME.dmg" + fi + + DMG_APP="$BUNDLE" + TMP_MOUNT_POINT="$D/$VOLUME_NAME.mounted" + FINAL_MOUNT_POINT="/Volumes/$VOLUME_NAME" + + rm -f $DMG_FILE + rm -f $DMG_FILE.master + + # Compute an approximated image size in MB, and bloat by 30 MB + image_size=$(du -ck "$DMG_APP" | tail -n1 | cut -f1) + image_size=$((($image_size * 11) / 10000)) + + echo "Creating disk image (${image_size}MB)..." + + TMPNAME="${DMG_FILE%.dmg}_tmp.dmg" + + cp "$D/data/template.dmg.bz2" "$TMPNAME.bz2" + bunzip2 "$TMPNAME.bz2" + + hdiutil resize -size ${image_size}m "$TMPNAME" || exit 1 + + echo "Attaching to disk image..." + hdiutil attach "$TMPNAME" -readwrite -noautoopen -mountpoint "$TMP_MOUNT_POINT" -quiet || exit 1 + + echo "Populating image..." + rsync -az "$DMG_APP" "$TMP_MOUNT_POINT/" || exit 1 + + echo "Ensuring permissions" + chmod -Rf go-w "$TMP_MOUNT_POINT" 2>/dev/null + + echo "Blessing image..." + bless --folder "$TMP_MOUNT_POINT" --openfolder "$TMP_MOUNT_POINT" || exit 1 + + echo "Detaching from disk image..." + hdiutil detach "$TMP_MOUNT_POINT" -quiet || exit 1 + + echo "Converting to final image..." + hdiutil convert -quiet -format UDBZ -o "$DMG_FILE" "$TMPNAME" || exit 1 + + # Make internet-enable + hdiutil internet-enable -yes "$DMG_FILE" || exit 1 + + rm -f "$TMPNAME" + + n=$(basename "$DMG_FILE") + echo "Done $n." +} + +function make_help_usage() { + echo "[-f]" +} + +function make_help_short() { + echo "Make the $BUNDLE_NAME.app bundle" +} + +function build_gtk_mac_bundler() { + b="$D/../build/build" + lbin=$("$b" env local-bin) + + if [ -x "$lbin/gtk-mac-bundler" ]; then + return + fi + + echo "Installing gtk-mac-bundler..." + + home=$("$b" env home) + sbin="$home/source" + + mkdir -p "$sbin" + + ( + cd "$sbin" + + if [ ! -d gtk-mac-bundler ]; then + git clone https://github.com/jessevdk/gtk-mac-bundler || exit 1 + fi + + ( + cd gtk-mac-bundler + git checkout -b stable 5994aa557ebb24687ed07e74910e4007521a53b4 || exit 1 + HOME="$home" make install + ) || exit 1 + ) || exit 1 +} + +function make_fake_help_long() { + echo "Create a fake bundle pointing towards files in the build. This is useful mostly to test bundle support." +} + +function make_fake_help_short() { + echo "Create a fake bundle" +} + +function cmd_make_fake() { + fake="$D/Gedit-fake.app" + + rm -rf "$fake" + mkdir -p "$fake/Contents" + + b="$D/../build/build" + inst=$("$b" env inst) + source=$("$b" env source) + + mkdir -p "$fake/Contents/Resources" + + for d in share lib; do + ln -s "$inst/$d" "$fake/Contents/Resources/$d" + done + + mkdir "$fake/Contents/MacOS" + + bin="$fake/Contents/MacOS/Gedit" + + printf "#!/bin/bash\n\nexec $b run \"$source/gedit/gedit/gedit\"\n" > "$bin" + chmod u+x "$bin" + + echo "APPL????" > "$fake/Contents/PkgInfo" + + cp "$D/data/Info.plist" "$fake/Contents/" + cp "$D/data/gedit.icns" "$fake/Contents/Resources/" +} + +function cmd_make() { + build_gtk_mac_bundler + + if [ -d "$BUNDLE" ]; then + rm -rf "$BUNDLE" + fi + + b="$D/../build/build" + + # No idea why it's not writable, but we need it to be so that install_name_tool + # can change the link paths + inst=$("$b" env inst) + chmod u+w "$inst/lib/libpython3.3m.dylib" + + lbin=$("$b" env local-bin) + + echo "Generating bundle from Gedit.bundle specification..." + "$b" run "$lbin/gtk-mac-bundler" "$D/data/Gedit.bundle" || exit 1 + + mv "$D/data/$BUNDLE_NAME.app" "$BUNDLE" + + echo "Removing unneeded files from bundle" + + # Remove pyc and pyo files + for d in lib share/gedit/plugins; do + find "$BUNDLE/Contents/Resources/$d/"* -type f -regex '.*\.py[oc]' -exec 'rm -f {}' 2>/dev/null + find "$BUNDLE/Contents/Resources/$d/"* -type d -name '__pycache__' -exec 'rmdir {}' 2>/dev/null + done + + echo "Creating localized names..." + locales=$(find "$inst/share/locale" -name gedit.mo | sed 's/.*locale\/\([^\/]*\)\/.*/\1/g' | /usr/bin/grep -v @) + + for locale in en $locales; do + printf "$locale " + ldir="$BUNDLE/Contents/Resources/$locale.lproj" + + lname=$(LANG=$locale "$b" run gettext gedit "Text Editor") + + mkdir -p "$ldir" + + echo "CFBundleName = \"Gedit\";" > "$ldir/InfoPlist.strings" + echo "CFBundleDisplayName = \"Gedit $lname\";" >> "$ldir/InfoPlist.strings" + done + + printf ", done...\n\nDo you want to strip debug symbols? [\033[1myes\033[0m/no] " + read strip + + if [ "$strip" = "yes" ] || [ -z "$strip" ]; then + echo "Strip debug symbols from bundle binaries" + + # Strip debug symbols from libraries/modules + for i in $(find -E "$BUNDLE/Contents/Resources" -type f -regex '.*\.(so|dylib)$' 2>/dev/null); do + do_strip "$i" + done + + # Strip debug symbols from binaries + for i in $(find "$BUNDLE/Contents/Resources/bin" -type f 2>/dev/null); do + if [ -x "$i" ]; then + do_strip "$i" + fi + done + + # Strip debug symbols from main binary + do_strip "$BUNDLE/Contents/MacOS/gedit-bin" + fi +} + +function help_help_short() { + echo "Shows this help message" +} + +function cmd_help() { + if [ -z "$1" ]; then + echo "Usage: $ME [command]" + echo "" + echo "Available commands:" + echo "" + + for cmd in "${commands[@]}"; do + printf " \033[1m$cmd\x1B[0m " + + l=${#cmd} + let d="$commandsmaxlen - $l + 1" + + printf "%${d}s" "" + echo -n "- " + + icmd=${cmd/-/_} + + if [[ $(type -t "${icmd}_help_short") = "function" ]]; then + "${icmd}_help_short" + else + echo "" + fi + done + + echo "" + else + cmd="cmd_${1/-/_}" + + if [[ $(type -t "$cmd") != "function" ]]; then + printf "Invalid command \033[1m$1\033[0m, available commands are: $cmds\n" + exit 1 + fi + + printf "Usage: $ME \033[1m$1\033[0m " + + if [[ $(type -t "${1/-/_}_help_usage") = "function" ]]; then + "${1/-/_}_help_usage" + else + echo "" + fi + + echo "" + + if [[ $(type -t "${1/-/_}_help_long") != "function" ]]; then + "${1/-/_}_help_short" + else + "${1/-/_}_help_long" + fi + fi +} + +commands=() +commandsmaxlen=0 + +while read line +do + cmd=${line#declare -f } + + if [[ "$cmd" = cmd_* ]]; then + cname=${cmd#cmd_} + + commands+=(${cname/_/-}) + + l=${#cname} + + if [[ $l > $commandsmaxlen ]]; then + commandsmaxlen=$l + fi + fi +done < <(declare -F) + +cmds=$(printf ", \033[1m%s\033[0m" "${commands[@]}") +cmds=${cmds:2} + +if [ -z "$1" ]; then + cmd_help + exit 0 +fi + +cmd="cmd_${1/-/_}" + +if [[ $(type -t "$cmd") != "function" ]]; then + printf "Invalid command $1, available commands are: $cmds\n" + exit 1 +fi + +shift 1 +"$cmd" "$@" diff --git a/build-aux/osx/bundle/data/Info.plist.in b/build-aux/osx/bundle/data/Info.plist.in new file mode 100644 index 0000000..381cbea --- /dev/null +++ b/build-aux/osx/bundle/data/Info.plist.in @@ -0,0 +1,268 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + Gedit + CFBundleGetInfoString + @VERSION@ Copyright 2009, Gedit + CFBundleIconFile + gedit.icns + CFBundleIdentifier + org.gnome.Gedit + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleShortVersionString + @VERSION@ + CFBundleSignature + ???? + CFBundleVersion + @VERSION@ + NSHumanReadableCopyright + Copyright 2009 Gedit, GNU General Public License. + LSMinimumSystemVersion + 10.7 + CFBundleName + Gedit + CFBundleDisplayName + Gedit + NSHighResolutionCapable + + NSHighResolutionMagnifyAllowed + + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + * + F + F90 + Filemaker + M + act3 + ada + applescript + as + asm + asp + awk + bak + bash + b + bf + brainfuck + c + cgi + c++ + cfm + cob + conf + cp + cpp + cs + csh + css + CSS + csv + custom + cxx + def + default + do + dtd + dxf + enc + eps + err + f + f90 + fcgi + for + fs + fscript + gcc + h + hpgl + htm + HTM + html + ics + idl + inc + ini + java + javascript + js + las + lasso + latex + lgt + lisp + log + ltx + lua + m + m1s + mel + m4 + mk + mm + msl + mtl + mws + mx + mxo + mysql + njs + p + ps + pas + pch + php + php3 + php4 + phtml + pl + plist + pm + pod + postgresql + pike + pp + pro + py + python + pyw + r + rb + rc + reb + rebol + rsp + rtf + ruby + rxp + s + sgml + sh + shtm + shtml + sieve + sl + strings + sty + sps + spss + sql + SQL + st + svg + tab + tcl + tcsh + tex + text + txt + types + uue + v + vbs + vcard + vcs + verilog + vhd + vhdl + vrm + vrml + wmk + x + xhtml + xml + xsl + xslt + yaml + + CFBundleTypeIconFile + geditdoc + CFBundleTypeMIMETypes + + application/base64 + application/dxf + application/php + application/plain + application/postscript + application/rtf + application/vnd.hp-hpgl + application/x-bsh + application/x-csh + application/x-javascript + application/x-latex + application/x-meme + application/x-pointplus + application/x-rtf + application/x-seelogo + application/x-sh + application/x-shar + application/x-tcl + application/x-tex + application/x-vrml + application/xml + image/svg+xml + image/svg-xml + image/vnd.dwg + image/x-dwg + image/x-xpixmap + model/vrml + text/asp + text/calendar + text/css + text/directory + text/html + text/javascript + text/pascal + text/php + text/plain + text/richtext + text/sgml + text/vcard + text/x-asm + text/x-c + text/x-fortran + text/x-h + text/x-java-source + text/x-m + text/x-pascal + text/x-perl-script + text/x-php-script + text/x-script.csh + text/x-script.perl-module + text/x-script.perl + text/x-script.phyton + text/x-script.sh + text/x-script.tcl + text/x-script.tcsh + text/x-server-parsed-html + text/x-sgml + text/x-uuencode + text/x-vcalendar + text/x-vcard + text/xml + x-world/x-vrml + + CFBundleTypeName + Gedit Document + CFBundleTypeOSTypes + + **** + + CFBundleTypeRole + Editor + + + + diff --git a/build-aux/osx/bundle/data/gedit b/build-aux/osx/bundle/data/gedit new file mode 100755 index 0000000..391fbbb --- /dev/null +++ b/build-aux/osx/bundle/data/gedit @@ -0,0 +1,66 @@ +#!/bin/bash + +if test "x$GTK_DEBUG_LAUNCHER" != x; then + set -x +fi + +if test "x$GTK_DEBUG_GDB" != x; then + EXEC="lldb --" +elif test "x$GTK_DEBUG_DTRUSS" != x; then + EXEC="sudo dtruss sudo -u $USER" +else + EXEC=exec +fi + +name=$(basename "$0") +dirn=$(dirname "$0") + +pushd "$dirn/../../" > /dev/null +bundle=$(pwd -P) +popd > /dev/null + +bundle_contents="$bundle"/Contents +bundle_res="$bundle_contents"/Resources +bundle_lib="$bundle_res"/lib +bundle_bin="$bundle_res"/bin +bundle_data="$bundle_res"/share +bundle_etc="$bundle_res"/etc + +export PATH="$bundle_bin:$PATH" +export DYLD_LIBRARY_PATH="$bundle_lib:$DYLD_LIBRARY_PATH" +export XDG_CONFIG_DIRS="$bundle_etc:$XDG_CONFIG_DIRS" +export XDG_DATA_DIRS="$bundle_data:$XDG_DATA_DIRS" +export GTK_DATA_PREFIX="$bundle_res" +export GTK_EXE_PREFIX="$bundle_res" +export GTK_PATH="$bundle_res" +export GDK_PIXBUF_MODULE_FILE="$bundle_lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" +#export GIO_EXTRA_MODULES="$bundle_lib/gio/modules" +export GI_TYPELIB_PATH="$bundle_lib/girepository-1.0" +export PYTHONPATH="$bundle_lib/python3.3/site-packages" +export PYTHONHOME="$bundle_res" +export PANGO_LIBDIR="$bundle_lib" +export PANGO_SYSCONFDIR="$bundle_etc" +export PEAS_PLUGIN_LOADERS_DIR="$bundle_lib/libpeas-1.0/loaders" +export ENCHANT_MODULES_DIR="$bundle_lib/enchant" +export ENCHANT_DATA_DIR="$bundle_data/enchant" + +if test -f "$bundle_lib/charset.alias"; then + export CHARSETALIASDIR="$bundle_lib" +fi + +# Extra arguments can be added in environment.sh. +EXTRA_ARGS= +if test -f "$bundle_res/environment.sh"; then + source "$bundle_res/environment.sh" +fi + +# Strip out the argument added by the OS. +if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then + shift 1 +fi + +if [ "x$GTK_DEBUG_SHELL" != "x" ]; then + exec bash +else + $EXEC "$bundle_contents/MacOS/$name-bin" "$@" $EXTRA_ARGS +fi diff --git a/build-aux/osx/bundle/data/gedit.bundle b/build-aux/osx/bundle/data/gedit.bundle new file mode 100644 index 0000000..edb138f --- /dev/null +++ b/build-aux/osx/bundle/data/gedit.bundle @@ -0,0 +1,122 @@ + + + + + + gtk+-3.0 + ${env:JHBUILD_PREFIX} + + + + + ${project}/Gedit + + + + + ${project}/Info.plist + ${prefix}/bin/gedit + + + ${prefix}/lib/libgit2-glib*.dylib + + + ${prefix}/lib/gtk-3.0/${pkg:gtk+-3.0:gtk_binary_version}/printbackends/*.so + + + ${prefix}/lib/gtk-3.0/${pkg:gtk+-3.0:gtk_binary_version}/immodules/*.so + + + ${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/*.so + + + ${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so + + + ${prefix}/lib/libpeas-1.0/loaders/*.so + ${prefix}/lib/gedit/plugins/*.so + + + ${prefix}/lib/enchant/libenchant_applespell.so + + + ${prefix}/lib/libpeas-1.0/loaders/*.so + + + ${prefix}/lib/girepository-1.0 + + + ${prefix}/lib/gedit/girepository-1.0 + + + + ${prefix}/lib/python3.3/site-packages/cairo/*.so + ${prefix}/lib/python3.3/site-packages/gi/*.so + + + + ${prefix}/include/python3.3m/pyconfig.h + + ${prefix}/lib/python3.3/lib-dynload/*.so + ${prefix}/lib/python3.3 + ${prefix}/bin/python3 + + + ${prefix}/etc/gtk-3.0/* + + + ${prefix}/share/gtksourceview-4 + + + ${prefix}/share/gedit + ${prefix}/lib/gedit + + + ${prefix}/share/locale + ${prefix}/lib/charset.alias + + + ${prefix}/share/mime + + + ${prefix}/share/xml/iso-codes + + + ${prefix}/share/themes/Default + ${prefix}/share/themes/Adwaita + ${prefix}/share/themes/HighContrast + ${prefix}/share/themes/Mac + + + ${project}/gedit.icns + ${project}/geditdoc.icns + + + ${prefix}/share/glib-2.0/schemas/gschemas.compiled + + + Adwaita + gnome + diff --git a/build-aux/osx/bundle/data/gedit.icns b/build-aux/osx/bundle/data/gedit.icns new file mode 100644 index 0000000..a0bd725 Binary files /dev/null and b/build-aux/osx/bundle/data/gedit.icns differ diff --git a/build-aux/osx/bundle/data/geditdoc.icns b/build-aux/osx/bundle/data/geditdoc.icns new file mode 100644 index 0000000..cea4481 Binary files /dev/null and b/build-aux/osx/bundle/data/geditdoc.icns differ diff --git a/build-aux/osx/bundle/data/geditpkg.icns b/build-aux/osx/bundle/data/geditpkg.icns new file mode 100644 index 0000000..92e7add Binary files /dev/null and b/build-aux/osx/bundle/data/geditpkg.icns differ diff --git a/build-aux/osx/bundle/data/template.dmg.bz2 b/build-aux/osx/bundle/data/template.dmg.bz2 new file mode 100644 index 0000000..b6450e2 Binary files /dev/null and b/build-aux/osx/bundle/data/template.dmg.bz2 differ diff --git a/build-aux/osx/bundle/images/background.png b/build-aux/osx/bundle/images/background.png new file mode 100644 index 0000000..88c8809 Binary files /dev/null and b/build-aux/osx/bundle/images/background.png differ diff --git a/build-aux/osx/bundle/images/background.svg b/build-aux/osx/bundle/images/background.svg new file mode 100644 index 0000000..1473073 --- /dev/null +++ b/build-aux/osx/bundle/images/background.svg @@ -0,0 +1,1456 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + TM + + + 3.14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/osx/bundle/images/gedit-128x128.png b/build-aux/osx/bundle/images/gedit-128x128.png new file mode 100644 index 0000000..fbd288d Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-128x128.png differ diff --git a/build-aux/osx/bundle/images/gedit-16x16.png b/build-aux/osx/bundle/images/gedit-16x16.png new file mode 100644 index 0000000..3763b42 Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-16x16.png differ diff --git a/build-aux/osx/bundle/images/gedit-256x256.png b/build-aux/osx/bundle/images/gedit-256x256.png new file mode 100644 index 0000000..ec3732b Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-256x256.png differ diff --git a/build-aux/osx/bundle/images/gedit-32x32.png.png b/build-aux/osx/bundle/images/gedit-32x32.png.png new file mode 100644 index 0000000..264f585 Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-32x32.png.png differ diff --git a/build-aux/osx/bundle/images/gedit-512x512.png b/build-aux/osx/bundle/images/gedit-512x512.png new file mode 100644 index 0000000..b76b2ee Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-512x512.png differ diff --git a/build-aux/osx/bundle/images/gedit-icon.svg b/build-aux/osx/bundle/images/gedit-icon.svg new file mode 100644 index 0000000..0a61cab --- /dev/null +++ b/build-aux/osx/bundle/images/gedit-icon.svg @@ -0,0 +1,24452 @@ + + + + + Text Editor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Jakub Steiner + + + http://jimmac.musichall.cz + + Text Editor + + + text + editor + gedit + + + + + + + + + + + + + + + + + + + + + Lapo Calamandrei + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STOP BIKESHEDDING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STOP BIKESHEDDING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STOP BIKESHEDDING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/osx/bundle/images/gedit-pkg-128x128.png b/build-aux/osx/bundle/images/gedit-pkg-128x128.png new file mode 100644 index 0000000..35bd323 Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-pkg-128x128.png differ diff --git a/build-aux/osx/bundle/images/gedit-pkg-16x16.png b/build-aux/osx/bundle/images/gedit-pkg-16x16.png new file mode 100644 index 0000000..1609741 Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-pkg-16x16.png differ diff --git a/build-aux/osx/bundle/images/gedit-pkg-256x256.png b/build-aux/osx/bundle/images/gedit-pkg-256x256.png new file mode 100644 index 0000000..d570368 Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-pkg-256x256.png differ diff --git a/build-aux/osx/bundle/images/gedit-pkg-32x32.png b/build-aux/osx/bundle/images/gedit-pkg-32x32.png new file mode 100644 index 0000000..02484b2 Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-pkg-32x32.png differ diff --git a/build-aux/osx/bundle/images/gedit-pkg-512x512.png b/build-aux/osx/bundle/images/gedit-pkg-512x512.png new file mode 100644 index 0000000..f2048aa Binary files /dev/null and b/build-aux/osx/bundle/images/gedit-pkg-512x512.png differ diff --git a/build-aux/osx/bundle/images/gedit-pkg-icon.svg b/build-aux/osx/bundle/images/gedit-pkg-icon.svg new file mode 100644 index 0000000..277b825 --- /dev/null +++ b/build-aux/osx/bundle/images/gedit-pkg-icon.svg @@ -0,0 +1,34171 @@ + + + + + Text Editor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Jakub Steiner + + + http://jimmac.musichall.cz + + Text Editor + + + text + editor + gedit + + + + + + + + + + + + + + + + + + + + + Lapo Calamandrei + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STOP BIKESHEDDING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STOP BIKESHEDDING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STOP BIKESHEDDING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build-aux/snap/snapcraft.yaml b/build-aux/snap/snapcraft.yaml new file mode 100644 index 0000000..fc49c39 --- /dev/null +++ b/build-aux/snap/snapcraft.yaml @@ -0,0 +1,192 @@ +name: gedit +version: git +adopt-info: gedit +grade: stable # must be 'stable' to release into candidate/stable channels +confinement: strict +base: core18 + +layout: + /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpeas-1.0: + symlink: $SNAP/gnome-platform/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpeas-1.0 + /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gedit: + symlink: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gedit + /usr/share/gedit: + symlink: $SNAP/usr/share/gedit + +slots: + # for GtkApplication registration + gedit: + interface: dbus + bus: session + name: org.gnome.gedit + +apps: + gedit: + command: usr/bin/gedit + extensions: [gnome-3-28] + plugs: + - avahi-observe + - cups-control + - gsettings + - home + - network + - mount-observe + - removable-media + common-id: org.gnome.gedit.desktop + environment: + GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas + LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/lib/$SNAPCRAFT_ARCH_TRIPLET/gedit:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/gnome-platform/usr/lib/$SNAPCRAFT_ARCH_TRIPLET + GI_TYPELIB_PATH: $SNAP/usr/lib/girepository-1.0:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gedit/girepository-1.0:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/girepository-1.0:$SNAP/gnome-platform/usr/lib/girepository-1.0:$SNAP/gnome-platform/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/girepository-1.0 + PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$SNAP/gnome-platform/usr/lib/python3/dist-packages + GTK_USE_PORTAL: 1 + +parts: + amtk: + source: https://gitlab.gnome.org/GNOME/amtk.git + source-type: git + plugin: autotools + configflags: + - --prefix=/usr + - --enable-introspection=no + organize: + snap/gedit/current/usr: usr + + tepl: + after: [amtk, gtksourceview] + source: https://gitlab.gnome.org/GNOME/tepl.git + source-type: git + plugin: meson + meson-parameters: + - --prefix=/usr + organize: + snap/gedit/current/usr: usr + build-packages: + - libuchardet-dev + stage-packages: + - libuchardet0 + + gtksourceview: + source: https://gitlab.gnome.org/GNOME/gtksourceview.git + source-type: git + plugin: meson + meson-parameters: + - --prefix=/usr + - -Dc_args="-Wno-error=undef" + organize: + snap/gedit/current/usr: usr + build-packages: + - autoconf-archive + - gettext + - gobject-introspection + - gtk-doc-tools + - libfribidi-dev + - libgirepository1.0-dev + - libglib2.0-dev + - libgtk-3-dev + - libpeas-dev + - libxml2-dev + - libxml2-utils + - valac + # meson gir overrides don't work well + override-build: | + snapcraftctl build + cp $SNAPCRAFT_PART_INSTALL/usr/share/gir-1.0/GtkSource* /usr/share/gir-1.0 + cp $SNAPCRAFT_PART_INSTALL/usr/share/vala/vapi/gtksource* /usr/share/vala/vapi + + gedit: + after: [gtksourceview, tepl] + source: . + source-type: git + parse-info: [usr/share/metainfo/org.gnome.gedit.appdata.xml] + plugin: meson + meson-parameters: + - --prefix=/usr + - -Dvala_args="--vapidir=$SNAPCRAFT_STAGE/usr/share/vala/vapi" + build-environment: + - C_INCLUDE_PATH: $SNAPCRAFT_STAGE/usr/include/gtksourceview-4 + override-build: | + sed -i.bak -e 's|Icon=org.gnome.gedit$|Icon=${SNAP}/meta/gui/org.gnome.gedit.svg|g' data/org.gnome.gedit.desktop.in + sed -i.bak -e "s|symlink_media: true|symlink_media: false|g" help/meson.build + snapcraftctl build + mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/ + cp data/icons/org.gnome.gedit.svg $SNAPCRAFT_PART_INSTALL/meta/gui/ + cp ../install/usr/share/applications/org.gnome.gedit.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/ + build-packages: + - desktop-file-utils + - gettext + - gsettings-desktop-schemas-dev + - gtk-doc-tools + - itstool + - libsoup2.4-dev + - libgspell-1-dev + - libxml2-dev + - libglib2.0-dev + - libgtk-3-dev + - libpeas-dev + - libx11-dev + - python3 + - python-gi-dev + - gobject-introspection + - libgirepository1.0-dev + - valac + stage-packages: + - libfribidi0 + + gedit-plugins: + after: [gedit] + source: https://gitlab.gnome.org/GNOME/gedit-plugins.git + source-type: git + plugin: meson + meson-parameters: + - --prefix=/snap/gedit/current/usr + - -Dplugin_bookmarks=true + - -Dplugin_bracketcompletion=true + - -Dplugin_charmap=true + - -Dplugin_codecomment=true + - -Dplugin_colorpicker=true + - -Dplugin_colorschemer=true + - -Dplugin_commander=false + - -Dplugin_drawspaces=true + - -Dplugin_findinfiles=false + - -Dplugin_git=true + - -Dplugin_joinlines=true + - -Dplugin_multiedit=false + - -Dplugin_smartspaces=true + - -Dplugin_terminal=true + - -Dplugin_textsize=true + - -Dplugin_translate=true + - -Dplugin_wordcompletion=true + - -Dplugin_zeitgeist=false + organize: + snap/gedit/current/usr: usr + build-environment: + - C_INCLUDE_PATH: $SNAPCRAFT_STAGE/usr/include:$SNAPCRAFT_STAGE/usr/include/gedit-3.14:$SNAPCRAFT_STAGE/usr/include/gtksourceview-4 + - LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gedit + - PKG_CONFIG_PATH: $PKG_CONFIG_PATH:$SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig + build-packages: + - appstream + - build-essential + - gettext + - gnome-common + - itstool + - libgit2-glib-1.0-dev + - libglib2.0-dev + - libgtk-3-dev + - libgucharmap-2-90-dev + - libvte-2.91-dev + - python3 + - python3-dbus + - python-dbus-dev + - python-gi-dev + - yelp-tools + stage-packages: + - python3 + - python3-dbus + - python3-gi + - python3-setuptools +# Zeitgeist plugin isn't as useful in a Snap. + stage: + - -usr/lib/gedit/plugins/libzeitgeist.so + - -usr/lib/gedit/plugins/zeitgeist.plugin + - -usr/share/help/*/gedit/zeitgeist-dataprovider.page + - -usr/share/metainfo/gedit-zeitgeist.metainfo.xml diff --git a/data/gedit-osx.gschema.override b/data/gedit-osx.gschema.override new file mode 100644 index 0000000..bee32cc --- /dev/null +++ b/data/gedit-osx.gschema.override @@ -0,0 +1,5 @@ +[org.gnome.desktop.interface] +monospace-font-name = 'Menlo 12' + +[org.gnome.gedit.preferences.editor] +editor-font = 'Menlo 12' diff --git a/data/gedit.1 b/data/gedit.1 new file mode 100644 index 0000000..095ee6d --- /dev/null +++ b/data/gedit.1 @@ -0,0 +1,104 @@ +.TH GEDIT 1 "17 May 2010" +.SH NAME +\fBgedit\fP \- text editor for the GNOME Desktop + +.SH SYNOPSIS +.br +.B gedit +[\fIOPTION\fR...] [\fIFILE\fR...] [+\fILINE\fR[:\fICOLUMN\fR]] +.br +.B gedit +[\fIOPTION\fR...] - + +.SH DESCRIPTION +.B gedit +is the official text editor of the GNOME desktop environment. + +While aiming at simplicity and ease of use, +.B gedit +is a powerful general purpose text editor. +It can be used to create and edit all kinds of text files. + +.B gedit +features a flexible plugin system which can be used to dynamically add +new advanced features to +.B gedit +itself. +.LP +.SH OPTIONS + +.TP +\fB\-\-encoding\fR +Set the character encoding to be used for opening the files listed on the command line. +.TP +\fB\-\-list-encodings\fR +Display list of possible values for the encoding option and exit. +.TP +\fB\-\-new\-window\fR +Create a new toplevel window in an existing instance of +.B gedit. +.TP +\fB\-\-new\-document\fR +Create a new document in an existing instance of +.B gedit. +.TP +\fB\-s, \-\-standalone\fR +Run +.B gedit +in standalone mode. +.TP +\fB\-w, \-\-wait\fR +Open files and block the +.B gedit +process. +.TP +\fB\-\-help\fR +Prints the command line options. +.TP +\fB\-\-version\fR +Output version information and exit. +.TP +\fBFILE\fR +Specifies the file to open when +.B gedit +starts. If this is not specified, +.B gedit +will load a blank file with an "Unsaved Document" label. Multiple files can be loaded if they are +separated by spaces. +.B gedit +also supports handling of remote files. For example, you can pass the location +of a webpage to +.B gedit +, like "http://www.gnome.org", or load a file from a FTP server, +like "ftp://ftp.gnome.org/robots.txt". +.TP +\fB-\fR +.B gedit will read from stdin +.TP +\fB+LINE\fR +For the first file, go to the line specified by LINE (do not insert a space between the "+" sign and the number). +If LINE is missing, go to the last line. +.TP +\fBCOLUMN\fR +For the first file, go to the column specified by COLUMN. +If COLUMN is missing, go to the first column. + +.SH BUGS +If you find a bug, please report it at the GNOME bug tracker. See https://wiki.gnome.org/Apps/Gedit/ReportingBugs. +.SH AUTHORS +Paolo Maggi (paolo@gnome.org) +.TP +Paolo Borelli (pborelli@gnome.org) +.TP +Steve Frécinaux (code@istique.net) +.TP +Jesse van den Kieboom (jessevdk@gnome.org) +.TP +Ignacio Casal Quinteiro +.TP +James Willcox (jwillcox@gnome.org) +.TP +Federico Mena Quintero (federico@novell.com) +.TP +Chema Celorio + diff --git a/data/icons/meson.build b/data/icons/meson.build new file mode 100644 index 0000000..c1f2edb --- /dev/null +++ b/data/icons/meson.build @@ -0,0 +1,9 @@ +install_data( + 'org.gnome.gedit.svg', + install_dir: get_option('datadir') / 'icons/hicolor/scalable/apps' +) + +install_data( + 'org.gnome.gedit-symbolic.svg', + install_dir: get_option('datadir') / 'icons/hicolor/symbolic/apps' +) diff --git a/data/icons/org.gnome.gedit-symbolic.svg b/data/icons/org.gnome.gedit-symbolic.svg new file mode 100644 index 0000000..b75c950 --- /dev/null +++ b/data/icons/org.gnome.gedit-symbolic.svg @@ -0,0 +1,39 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/icons/org.gnome.gedit.Devel.svg b/data/icons/org.gnome.gedit.Devel.svg new file mode 100644 index 0000000..16c8749 --- /dev/null +++ b/data/icons/org.gnome.gedit.Devel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/icons/org.gnome.gedit.svg b/data/icons/org.gnome.gedit.svg new file mode 100644 index 0000000..af97ab9 --- /dev/null +++ b/data/icons/org.gnome.gedit.svg @@ -0,0 +1,376 @@ + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + GNOME Design Team + + + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..bb61387 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,97 @@ +subdir('icons') + +install_man('gedit.1') + +appdata = 'org.gnome.gedit.appdata.xml' +appdata_file = i18n.merge_file( + appdata, + input: appdata + '.in', + output: appdata, + po_dir: '../po/', + install: true, + install_dir: get_option('datadir') / 'metainfo' +) + +appstream_util = find_program('appstream-util', required: get_option('require_all_tests')) +if appstream_util.found() + test( + 'validate-appdata', + appstream_util, + args: ['validate-relax', '--nonet', appdata_file] + ) +endif + +desktop_file = 'org.gnome.gedit.desktop' +desktop_output_file = i18n.merge_file( + desktop_file, + type: 'desktop', + input: desktop_file + '.in', + output: desktop_file, + po_dir: '../po/', + install: true, + install_dir: get_option('datadir') / 'applications' +) + +desktop_file_validate = find_program('desktop-file-validate', required: get_option('require_all_tests')) +if desktop_file_validate.found() + test( + 'validate-desktop', + desktop_file_validate, + args: [desktop_output_file] + ) +endif + +active_plugins = [ + 'docinfo', + 'filebrowser', + 'modelines', + 'sort', + 'spell', +] + +quoted_plugins = [] +foreach plugin_name : active_plugins + quoted_plugins += '\'@0@\''.format(plugin_name) +endforeach + +gschema_in = configuration_data() +gschema_in.set('ACTIVE_PLUGINS', ', '.join(quoted_plugins)) + +gschema_file = configure_file( + input: 'org.gnome.gedit.gschema.xml.in', + output: 'org.gnome.gedit.gschema.xml', + configuration: gschema_in, + install_dir: get_option('datadir') / 'glib-2.0/schemas' +) + +gschema_dtd = gio_dep.get_pkgconfig_variable('schemasdir') / 'gschema.dtd' + +xmllint = find_program('xmllint', required: get_option('require_all_tests')) +if xmllint.found() + test( + 'validate-gschema', + xmllint, + args: [ + '--noout', + '--dtdvalid', gschema_dtd, + gschema_file, + ] + ) +endif + +if host_machine.system() == 'windows' + install_data( + 'org.gnome.gedit-ms-windows.gschema.override', + install_dir: get_option('datadir') / 'glib-2.0/schemas' + ) +endif + +service_in = configuration_data() +service_in.set('bindir', get_option('prefix') / get_option('bindir')) + +configure_file( + input: 'org.gnome.gedit.service.in', + output: 'org.gnome.gedit.service', + configuration: service_in, + install_dir: get_option('datadir') / 'dbus-1/services' +) diff --git a/data/org.gnome.gedit-ms-windows.gschema.override b/data/org.gnome.gedit-ms-windows.gschema.override new file mode 100644 index 0000000..007ae32 --- /dev/null +++ b/data/org.gnome.gedit-ms-windows.gschema.override @@ -0,0 +1,5 @@ +[org.gnome.desktop.interface] +monospace-font-name = 'Monospace 11' + +[org.gnome.gedit.preferences.editor] +editor-font = 'Monospace 11' diff --git a/data/org.gnome.gedit.appdata.xml.in b/data/org.gnome.gedit.appdata.xml.in new file mode 100644 index 0000000..da41962 --- /dev/null +++ b/data/org.gnome.gedit.appdata.xml.in @@ -0,0 +1,49 @@ + + + + org.gnome.gedit.desktop + CC0-1.0 + GPL-2.0+ + gedit + Edit text files + +

+ gedit is the text editor of the GNOME desktop environment. +

+

+ The first goal of gedit is to be easy to use, with a simple interface by + default. More advanced features are available by enabling plugins. +

+
+ + HiDpiIcon + HighContrast + ModernToolkit + UserDocs + + + + https://gitlab.gnome.org/GNOME/gedit/raw/master/data/screenshot.png + + + https://wiki.gnome.org/Apps/Gedit + https://gitlab.gnome.org/GNOME/gedit/issues + https://liberapay.com/gedit/ + https://help.gnome.org/users/gedit/stable/ + https://wiki.gnome.org/TranslationProject + swilmet@gnome.org + GNOME + GNOME + gedit + + + + + + + + + + + +
diff --git a/data/org.gnome.gedit.desktop.in b/data/org.gnome.gedit.desktop.in new file mode 100644 index 0000000..0200813 --- /dev/null +++ b/data/org.gnome.gedit.desktop.in @@ -0,0 +1,26 @@ +[Desktop Entry] +Name=Text Editor +Comment=Edit text files +Exec=gedit %U +Terminal=false +Type=Application +StartupNotify=true +MimeType=text/plain; +# TRANSLATORS: Do NOT translate or transliterate this text! +# This is an icon file name. +Icon=org.gnome.gedit +Categories=GNOME;GTK;Utility;TextEditor; +Actions=new-window;new-document; +# TRANSLATORS: Do NOT translate or localize the semicolons! +# The list MUST also end with a semicolon! +# Search terms to find this application. +Keywords=Text;Editor;Plaintext;Write;gedit; +DBusActivatable=true + +[Desktop Action new-window] +Name=New Window +Exec=gedit --new-window + +[Desktop Action new-document] +Name=New Document +Exec=gedit --new-document diff --git a/data/org.gnome.gedit.gschema.xml.in b/data/org.gnome.gedit.gschema.xml.in new file mode 100644 index 0000000..b797d84 --- /dev/null +++ b/data/org.gnome.gedit.gschema.xml.in @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + Use Default Font + Whether to use the system’s default fixed width font for editing text instead of a font specific to gedit. If this option is turned off, then the font named in the “Editor Font” option will be used instead of the system font. + + + + 'Monospace 12' + Editor Font + A custom font that will be used for the editing area. This will only take effect if the “Use Default Font” option is turned off. + + + 'tango' + Style Scheme + The ID of a GtkSourceView Style Scheme used to color the text. + + + false + Create Backup Copies + Whether gedit should create backup copies for the files it saves. + + + false + Autosave + Whether gedit should automatically save modified files after a time interval. You can set the time interval with the “Autosave Interval” option. + + + 10 + Autosave Interval + Number of minutes after which gedit will automatically save modified files. This will only take effect if the “Autosave” option is turned on. + + + 2000 + Maximum Number of Undo Actions + Maximum number of actions that gedit will be able to undo or redo. Use “-1” for unlimited number of actions. + + + + + + + + 'word' + Line Wrapping Mode + Specifies how to wrap long lines in the editing area. Use “none” for no wrapping, “word” for wrapping at word boundaries, and “char” for wrapping at individual character boundaries. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here. + + + + + + + 'word' + Last split mode choice for line wrapping mode + Specifies the last split mode used with line wrapping mode, so that when wrapping mode is off we still remember the split mode choice. Use “word” for wrapping at word boundaries, and “char” for wrapping at individual character boundaries. + + + 8 + Tab Size + Specifies the number of spaces that should be displayed instead of Tab characters. + + + false + Insert spaces + Whether gedit should insert spaces instead of tabs. + + + true + Automatic indent + Whether gedit should enable automatic indentation. + + + true + Display Line Numbers + Whether gedit should display line numbers in the editing area. + + + true + Highlight Current Line + Whether gedit should highlight the current line. + + + true + Highlight Matching Brackets + Whether gedit should highlight matching brackets. + + + false + Display Right Margin + Whether gedit should display the right margin in the editing area. + + + 80 + Right Margin Position + Specifies the position of the right margin. + + + 'none' + Document background pattern type + Whether the document will get a background pattern painted. + + + + + + + + + 'after' + Smart Home End + Specifies how the cursor moves when the HOME and END keys are pressed. Use “disabled” to always move at the start/end of the line, “after” to move to the start/end of the line the first time the keys are pressed and to the start/end of the text ignoring whitespaces the second time the keys are pressed, “before” to move to the start/end of the text before moving to the start/end of the line and “always” to always move to the start/end of the text instead of the start/end of the line. + + + true + Restore Previous Cursor Position + Whether gedit should restore the previous cursor position when a file is loaded. + + + true + Enable Syntax Highlighting + Whether gedit should enable syntax highlighting. + + + true + Enable Search Highlighting + Whether gedit should highlight all the occurrences of the searched text. + + + true + Ensure Trailing Newline + Whether gedit will ensure that documents always end with a trailing newline. + + + + + 'auto' + Notebook Show Tabs Mode + Specifies when to show the notebook tabs. Use “never” to never show the tabs, “always” to always show the tabs, and “auto” to show the tabs only when there is more than one tab. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here. + + + true + Status Bar is Visible + Whether the status bar at the bottom of editing windows should be visible. + + + false + Side panel is Visible + Whether the side panel at the left of editing windows should be visible. + + + false + + + + + true + Print Syntax Highlighting + Whether gedit should print syntax highlighting when printing documents. + + + true + Print Header + Whether gedit should include a document header when printing documents. + + + + + + + + 'word' + Printing Line Wrapping Mode + Specifies how to wrap long lines for printing. Use “none” for no wrapping, “word” for wrapping at word boundaries, and “char” for wrapping at individual character boundaries. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here. + + + 0 + Print Line Numbers + If this value is 0, then no line numbers will be inserted when printing a document. Otherwise, gedit will print line numbers every such number of lines. + + + + 'Monospace 9' + Body Font for Printing + Specifies the font to use for a document’s body when printing documents. + + + + 'Sans 11' + Header Font for Printing + Specifies the font to use for page headers when printing a document. This will only take effect if the “Print Header” option is turned on. + + + + 'Sans 8' + Line Number Font for Printing + Specifies the font to use for line numbers when printing. This will only take effect if the “Print Line Numbers” option is non-zero. + + + 25 + Margin Left + The left margin, in millimeters. + + + 15 + Margin Top + The top margin, in millimeters. + + + 25 + Margin Right + The right margin, in millimeters. + + + 25 + Margin Bottom + The bottom margin, in millimeters. + + + + + [''] + Candidate Encodings + List of candidate encodings shown in the Character Encoding menu in the open/save file chooser. + “CURRENT” represents the current locale encoding. Only recognized encodings are used. + The default value is the empty list, in which case gedit will choose good defaults depending on the country and language. + + + + + + + + + + 0 + + + (900, 700) + + + 200 + + + '' + + + 140 + + + '' + + + + + 0 + + + true + + + + + [''] + + + [''] + + + + + [@ACTIVE_PLUGINS@] + Active plugins + List of active plugins. + + + diff --git a/data/org.gnome.gedit.service.in b/data/org.gnome.gedit.service.in new file mode 100644 index 0000000..cf5a5b2 --- /dev/null +++ b/data/org.gnome.gedit.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.gnome.gedit +Exec=@bindir@/gedit --gapplication-service diff --git a/data/privacy-policy.md b/data/privacy-policy.md new file mode 100644 index 0000000..7ecedfc --- /dev/null +++ b/data/privacy-policy.md @@ -0,0 +1,4 @@ +Privacy policy of gedit +======================= + +We don't store any data. diff --git a/data/screenshot.png b/data/screenshot.png new file mode 100644 index 0000000..5eb409c Binary files /dev/null and b/data/screenshot.png differ diff --git a/docs/build.md b/docs/build.md new file mode 100644 index 0000000..a95da5e --- /dev/null +++ b/docs/build.md @@ -0,0 +1,92 @@ +gedit installation by building the source code +============================================== + +Recommendation to install in a separate prefix +---------------------------------------------- + +Once you have built gedit from source, you cannot run the application from its +build directory: you need to install it with `ninja install`. For this reason it +is highly recommended that you install in a separate prefix instead of +overwriting your system binaries. + +Note however that when running gedit from a custom prefix you will need to set +many environment variables accordingly, for instance `PATH` and `XDG_DATA_DIR`. + +There exists several tools that GNOME developers use to take care of all of +this. See the _Tools_ section below. + +Installation of the dependencies +-------------------------------- + +You need to have all gedit dependencies installed, with recent enough versions. +If a dependency is missing or is too old, the build configuration fails (you can +try to run the build configuration command for gedit until it succeeds, see the +procedure below). + +You can install the dependencies by installing packages provided by your +operating system, for example on Fedora: +``` +# dnf builddep gedit +``` + +But if your version of gedit provided by the OS differs too much from the +version of gedit you want to build from source, you'll need to install the new +dependencies from source too, and it can become a complicated task if you do it +manually. + +Also, during gedit development, gedit may depend on a not-yet-released +development version of a GNOME dependency. So certain GNOME dependencies may +need to be installed from Git. + +That's why if you have difficulties installing recent enough versions of the +dependencies, it is usually easier to use one of the tools explained in the next +section. + +Tools +----- + +There are several tools available that take care of the following: +- Install in a separate prefix. +- Build or install dependencies. +- Plus, for some tools: run in a container/sandbox. + +GNOME developers usually use one of these tools: +- [JHBuild](https://developer.gnome.org/jhbuild/unstable/) +- Or [BuildStream](https://buildstream.build/) +- Or [Flatpak](https://flatpak.org/) + +JHBuild tips: +- Try `ignore_suggests = True` in your jhbuildrc to have fewer dependencies to + build (see the difference with "jhbuild list gedit"). Another solution is to + put some modules in the skip variable in jhbuildrc. + +Building the gedit module manually +---------------------------------- + +If you use one of the above tools, you don't need all the explanations in this +section. But it can be instructive. + +gedit uses the [Meson](https://mesonbuild.com/) build system. + +Once the dependencies are installed, here are simple procedures to finally build +the gedit module from source. + +### Installation onto the system + +**Warning**: this procedure doesn't install in a separate prefix, so it may +overwrite your system binaries. + +``` +$ mkdir build && cd build/ +$ meson # Build configuration +$ ninja # Build +[ Become root if necessary ] +$ ninja install # Installation +``` + +### Installation in a separate prefix + +Just change the above `meson` command by: +``` +$ meson --prefix /an/other/path +``` diff --git a/docs/class-diagram.dia b/docs/class-diagram.dia new file mode 100644 index 0000000..872a5f3 Binary files /dev/null and b/docs/class-diagram.dia differ diff --git a/docs/common-bugs.md b/docs/common-bugs.md new file mode 100644 index 0000000..6ca9ba0 --- /dev/null +++ b/docs/common-bugs.md @@ -0,0 +1,14 @@ +Common gedit bugs +================= + +This page documents common bugs in gedit. If you find your problem in this page, +_please do not report a new bug for it_. + +Problem with very long lines +---------------------------- + +Very long lines (e.g. a wrapped line that takes the whole screen) are not well +supported by gedit, there can be performance problems or freezes. + +[GitLab issue](https://gitlab.gnome.org/GNOME/gtk/issues/229). See also the +[gedit FAQ](https://wiki.gnome.org/Apps/Gedit/FAQ). diff --git a/docs/gedit-development-getting-started.md b/docs/gedit-development-getting-started.md new file mode 100644 index 0000000..4f930af --- /dev/null +++ b/docs/gedit-development-getting-started.md @@ -0,0 +1,100 @@ +gedit development - getting started +=================================== + +The following explanations can be improved over time, if you see something +missing, a feedback is welcome. + +Programming languages and paradigms +----------------------------------- + +gedit is mostly written in C, with some plugins in Python or +[Vala](https://wiki.gnome.org/Projects/Vala/). The build system is in +[Meson](https://mesonbuild.com/). + +The code is object-oriented and event-driven. In C, it's thanks to the use of +the GObject library (see next section). If you open some `*.c` or `*.h` files, +you may think “what is this horror?!” but – don't panic – it's just some +C/GObject boilerplate code, and that boilerplate can be generated by a tool. So +once you've learned GObject, you will no longer be afraid ;-) + +Libraries used +-------------- + +As every GNOME application, gedit uses the GLib, GObject and GTK libraries. To +modify the gedit source code, you should be familiar with those libraries. See +the [GTK website](https://www.gtk.org/) and the document +[The GLib/GTK Development Platform – A Getting Started Guide](https://people.gnome.org/~swilmet/glib-gtk-book/). + +The main widget used by gedit is GtkTextView, a general-purpose multiline text +editor. To learn that widget API, read the excellent +[GtkTextView tutorial](http://www.bravegnu.org/gtktext/) (a bit old but still +mostly valid). But GtkTextView is not enough for source code edition. gedit +actually uses the +[GtkSourceView](https://wiki.gnome.org/Projects/GtkSourceView) library, which +contains a subclass of GtkTextView with many features useful for a text editor +or an IDE. But GtkSourceView is not enough to have a full-blown text editor, +gedit is actually in the process of using more features from the +[Tepl](https://wiki.gnome.org/Projects/Tepl) library, and to further develop +Tepl alongside gedit. + +For its plugin system, gedit uses the +[libpeas](https://wiki.gnome.org/Projects/Libpeas) library. + +Plugins may have other dependencies, for example the spell-checking plugin uses +[gspell](https://wiki.gnome.org/Projects/gspell). + +gedit architecture +------------------ + +The [gedit Git repository](https://gitlab.gnome.org/GNOME/gedit) contains the +_gedit core_ plus the default plugins. There is also the +[gedit-plugins Git repository](https://gitlab.gnome.org/GNOME/gedit-plugins) +for additional official plugins. The gedit core source code is in the `gedit/` +directory. The plugins are in … `plugins/`! + +gedit core provides: +- A basic text editor. +- The integration of libpeas, with an API for plugins. + +There is a class diagram of gedit core in the file +[class-diagram.dia](class-diagram.dia) (but it may be outdated, see the Git log +for that file). + +Build/Installation +------------------ + +See the file [build.md](build.md). + +First contribution +------------------ + +See the [Newcomers](https://wiki.gnome.org/Newcomers/) page to start +contributing to GNOME in general. But perhaps some things explained there are +not relevant for gedit, in case of doubt the gedit documentation takes +precedence. + +To know how to contribute to gedit specifically, read the +[README.md](../README.md) and [CONTRIBUTING.md](../CONTRIBUTING.md) files +present in the Git repository (and then you'll see that the `CONTRIBUTING.md` +file refers to this file, but please don't end up in an infinite reading loop). + +A good way to learn a lot of things is to write a new plugin (as a third-party +plugin first). + +A potentially easy task (but not always) is to fix compilation warnings, for +example when a deprecated function is used. If you encounter a runtime warning +or critical message, it is also a good idea to fix it. + +Improvements to the documentation (for users or developers) is also useful, +especially to improve the API reference for developing gedit plugins. + +Note that gedit, although simple to use, is old. Some parts of the code is +legacy code. The remaining tasks to do are often not simple, the codebase needs +a lot of refactoring, and to do it properly an experienced developer is advised. +That's why writing plugins is normally easier. + +Interesting article to read, written by a GNOME developer: +[Working on Free Software](http://ometer.com/hacking.html) + +Happy hacking!\ +the gedit developers. diff --git a/docs/how-to-write-a-gedit-plugin.md b/docs/how-to-write-a-gedit-plugin.md new file mode 100644 index 0000000..69e833e --- /dev/null +++ b/docs/how-to-write-a-gedit-plugin.md @@ -0,0 +1,45 @@ +How to write a gedit plugin +=========================== + +The [gedit-development-getting-started.md](gedit-development-getting-started.md) +documentation is a good start. + +Programming language for a gedit plugin +--------------------------------------- + +The preferred language is the C language, that way the code can be easily +refactored to be included in a library. + +Rust and Vala plugins are possible too since they are equivalent to C. + +Python plugins are possible too. + +### What if I prefer to write in Ruby/JS/Scheme/Perl/C#/modula-2/Oz/whatever… + +While GObject allows you to use many other languages, using more than one +interpreter in the same process is not possible, not only because of bloat and +performance, but also because different interpreted languages cannot manage +garbage collections of GObjects at the same time: see +[this email](https://mail.gnome.org/archives/desktop-devel-list/2010-August/msg00036.html). + +The gedit developers have chosen Python as the interpreted language. + +API reference +------------- + +Build gedit with `-D gtk_doc=true`, you can then browse the API reference in the +[Devhelp](https://wiki.gnome.org/Apps/Devhelp) application. + +To know how to write a plugin, refer to the +[libpeas](https://wiki.gnome.org/Projects/Libpeas) documentation as well. + +More documentation and tips +--------------------------- + +More documentation, for example a tutorial, would be useful. In the meantime, +the recommended thing to do is to see how core gedit plugins are implemented. + +### Unofficial documentation and tutorials (may be outdated) + +- [Writing plugins in Python](https://wiki.gnome.org/Apps/Gedit/PythonPluginHowTo) (a little outdated) +- [Writing plugins in Vala](https://wiki.gnome.org/Projects/Vala/Gedit3PluginSample) (maybe outdated) diff --git a/docs/reference/api-breaks.xml b/docs/reference/api-breaks.xml new file mode 100644 index 0000000..8057a16 --- /dev/null +++ b/docs/reference/api-breaks.xml @@ -0,0 +1,93 @@ + + +]> + + + API Breaks + + + gedit is a quite old piece of software (created in 1998, at the beginnings + of the GNOME project), and as every software, the code evolves during its + lifetime. So there are sometimes API breaks for gedit plugins, there are no + API stability guarantees. + + + + When it is possible, instead of directly removing an API, that API is first + marked as deprecated, and then removed for the next API break. See the + index of deprecated symbols. + + + + 3.36.0 -> 3.37.1 + + + + All previously deprecated APIs have been removed. + + + + + The lockdown support has been removed (for the + org.gnome.desktop.lockdown GSettings). So the + gedit_app_get_lockdown() function has been removed. + + + + + The GBOOLEAN_TO_POINTER() and + GPOINTER_TO_BOOLEAN() macros have been removed from + gedit-utils.h. + + + + + The gedit_utils_get_current_workspace(), + gedit_utils_get_window_workspace() and + gedit_utils_get_current_viewport() functions have been + removed because workspaces information is not available on Wayland. + + + + + + + 3.34.0 -> 3.35.2 + + + + All previously deprecated APIs have been removed. + + + + + The GeditDocument:use-gvfs-metadata property has been + removed. But there was anyway a warning for not using that property in + a gedit plugin. + + + + + For gedit_document_get_metadata() + and gedit_document_set_metadata(), + the key names should now have the prefix "gedit-" with + possibly an additional namespace for the plugin name, for example + "gedit-spell-foobar". So the key names are now the same + regardless of the operating system, and the key names should no longer + start with "metadata::". + + + + + + + For previous gedit versions + + See the + Old API Changes wiki page. + + + diff --git a/docs/reference/gedit-docs.xml b/docs/reference/gedit-docs.xml new file mode 100644 index 0000000..9e32e54 --- /dev/null +++ b/docs/reference/gedit-docs.xml @@ -0,0 +1,59 @@ + + + + + gedit Reference Manual + + + + API Reference + + + + + + + + + + + + + + + + + + + + + + + Annexes + + + Object Hierarchy + + + + + + + Index of all symbols + + + + Index of deprecated symbols + + + + Index of new symbols in 3.4 + + + + Index of new symbols in 3.14 + + + + diff --git a/docs/reference/gedit-sections.txt b/docs/reference/gedit-sections.txt new file mode 100644 index 0000000..1983892 --- /dev/null +++ b/docs/reference/gedit-sections.txt @@ -0,0 +1,367 @@ +
+gedit-app +GeditApp +GeditApp +gedit_app_create_window +gedit_app_set_window_title +gedit_app_get_main_windows +gedit_app_get_documents +gedit_app_get_views +gedit_app_process_window_event +gedit_app_show_help + +GEDIT_APP +GEDIT_IS_APP +GEDIT_TYPE_APP +gedit_app_get_type +GEDIT_APP_CLASS +GEDIT_IS_APP_CLASS +GEDIT_APP_GET_CLASS +
+ +
+gedit-app-activatable +GeditAppActivatable +GeditAppActivatable +gedit_app_activatable_activate +gedit_app_activatable_deactivate +gedit_app_activatable_extend_menu + +GEDIT_TYPE_APP_ACTIVATABLE +GEDIT_APP_ACTIVATABLE +GEDIT_APP_ACTIVATABLE_IFACE +GEDIT_IS_APP_ACTIVATABLE +GEDIT_APP_ACTIVATABLE_GET_IFACE +gedit_app_activatable_get_type +
+ +
+gedit-commands +GeditCommands +gedit_commands_load_location +gedit_commands_load_locations +gedit_commands_save_document +gedit_commands_save_document_async +gedit_commands_save_document_finish +gedit_commands_save_all_documents +
+ +
+gedit-document +GeditDocument +GeditDocument +gedit_document_new +gedit_document_get_file +gedit_document_get_uri_for_display +gedit_document_get_short_name_for_display +gedit_document_get_mime_type +gedit_document_is_untouched +gedit_document_is_untitled +gedit_document_goto_line +gedit_document_goto_line_offset +gedit_document_set_language +gedit_document_get_content_type +gedit_document_get_metadata +gedit_document_set_metadata +gedit_document_set_search_context +gedit_document_get_search_context + +GEDIT_DOCUMENT +GEDIT_IS_DOCUMENT +GEDIT_TYPE_DOCUMENT +gedit_document_get_type +GEDIT_DOCUMENT_CLASS +GEDIT_IS_DOCUMENT_CLASS +GEDIT_DOCUMENT_GET_CLASS +
+ +
+gedit-encodings-combo-box +GeditEncodingsComboBox +GeditEncodingsComboBox +gedit_encodings_combo_box_new +gedit_encodings_combo_box_get_selected_encoding +gedit_encodings_combo_box_set_selected_encoding + +GEDIT_ENCODINGS_COMBO_BOX +GEDIT_IS_ENCODINGS_COMBO_BOX +GEDIT_TYPE_ENCODINGS_COMBO_BOX +gedit_encodings_combo_box_get_type +GEDIT_ENCODINGS_COMBO_BOX_CLASS +GEDIT_IS_ENCODINGS_COMBO_BOX_CLASS +GEDIT_ENCODINGS_COMBO_BOX_GET_CLASS +
+ +
+gedit-message-bus +GeditMessageBus +GeditMessageBus +GeditMessageCallback +GeditMessageBusForeach +gedit_message_bus_get_default +gedit_message_bus_new +gedit_message_bus_lookup +gedit_message_bus_register +gedit_message_bus_unregister +gedit_message_bus_unregister_all +gedit_message_bus_is_registered +gedit_message_bus_foreach +gedit_message_bus_connect +gedit_message_bus_disconnect +gedit_message_bus_disconnect_by_func +gedit_message_bus_block +gedit_message_bus_block_by_func +gedit_message_bus_unblock +gedit_message_bus_unblock_by_func +gedit_message_bus_send_message +gedit_message_bus_send_message_sync +gedit_message_bus_send +gedit_message_bus_send_sync + +GEDIT_MESSAGE_BUS +GEDIT_MESSAGE_BUS_CONST +GEDIT_IS_MESSAGE_BUS +GEDIT_TYPE_MESSAGE_BUS +gedit_message_bus_get_type +GEDIT_MESSAGE_BUS_CLASS +GEDIT_IS_MESSAGE_BUS_CLASS +GEDIT_MESSAGE_BUS_GET_CLASS +GeditMessageBusPrivate +
+ +
+gedit-message +GeditMessage +GeditMessage +gedit_message_get_object_path +gedit_message_get_method +gedit_message_type_has +gedit_message_type_check +gedit_message_has +gedit_message_is_valid_object_path +gedit_message_type_identifier + +GEDIT_MESSAGE +GEDIT_MESSAGE_CONST +GEDIT_IS_MESSAGE +GEDIT_TYPE_MESSAGE +gedit_message_get_type +GEDIT_MESSAGE_CLASS +GEDIT_IS_MESSAGE_CLASS +GEDIT_MESSAGE_GET_CLASS +GeditMessagePrivate +
+ +
+gedit-progress-info-bar +GeditProgressInfoBar +GeditProgressInfoBar +gedit_progress_info_bar_new +gedit_progress_info_bar_set_icon_name +gedit_progress_info_bar_set_markup +gedit_progress_info_bar_set_text +gedit_progress_info_bar_set_fraction +gedit_progress_info_bar_pulse + +GEDIT_PROGRESS_INFO_BAR +GEDIT_IS_PROGRESS_INFO_BAR +GEDIT_TYPE_PROGRESS_INFO_BAR +gedit_progress_info_bar_get_type +GEDIT_PROGRESS_INFO_BAR_CLASS +GEDIT_IS_PROGRESS_INFO_BAR_CLASS +GEDIT_PROGRESS_INFO_BAR_GET_CLASS +
+ +
+gedit-statusbar +GeditStatusbar +GeditStatusbar +gedit_statusbar_new +gedit_statusbar_set_window_state +gedit_statusbar_set_overwrite +gedit_statusbar_clear_overwrite +gedit_statusbar_flash_message + +GEDIT_STATUSBAR +GEDIT_IS_STATUSBAR +GEDIT_TYPE_STATUSBAR +gedit_statusbar_get_type +GEDIT_STATUSBAR_CLASS +GEDIT_IS_STATUSBAR_CLASS +GEDIT_STATUSBAR_GET_CLASS +
+ +
+gedit-tab +GeditTab +GeditTab +GeditTabState +gedit_tab_get_view +gedit_tab_get_document +gedit_tab_get_from_document +gedit_tab_get_state +gedit_tab_get_auto_save_enabled +gedit_tab_set_auto_save_enabled +gedit_tab_get_auto_save_interval +gedit_tab_set_auto_save_interval +gedit_tab_set_info_bar + +GEDIT_TAB +GEDIT_IS_TAB +GEDIT_TYPE_TAB +gedit_tab_get_type +GEDIT_TAB_CLASS +GEDIT_IS_TAB_CLASS +GEDIT_TAB_GET_CLASS +GEDIT_TYPE_TAB_STATE +gedit_tab_state_get_type +
+ +
+gedit-view +GeditViewPrivate +GeditView +GeditView +gedit_view_new +gedit_view_cut_clipboard +gedit_view_copy_clipboard +gedit_view_paste_clipboard +gedit_view_delete_selection +gedit_view_select_all +gedit_view_scroll_to_cursor +gedit_view_set_font + +GEDIT_VIEW +GEDIT_IS_VIEW +GEDIT_TYPE_VIEW +gedit_view_get_type +GEDIT_VIEW_CLASS +GEDIT_IS_VIEW_CLASS +GEDIT_VIEW_GET_CLASS +
+ +
+gedit-view-activatable +GeditViewActivatable +GeditViewActivatable +gedit_view_activatable_activate +gedit_view_activatable_deactivate + +GEDIT_TYPE_VIEW_ACTIVATABLE +GEDIT_VIEW_ACTIVATABLE +GEDIT_VIEW_ACTIVATABLE_IFACE +GEDIT_IS_VIEW_ACTIVATABLE +GEDIT_VIEW_ACTIVATABLE_GET_IFACE +gedit_view_activatable_get_type +
+ +
+gedit-window +GeditWindow +GeditWindow +GeditWindowState +gedit_window_create_tab +gedit_window_create_tab_from_location +gedit_window_create_tab_from_stream +gedit_window_close_tab +gedit_window_close_all_tabs +gedit_window_close_tabs +gedit_window_get_active_tab +gedit_window_set_active_tab +gedit_window_get_active_view +gedit_window_get_active_document +gedit_window_get_documents +gedit_window_get_unsaved_documents +gedit_window_get_views +gedit_window_get_group +gedit_window_get_side_panel +gedit_window_get_bottom_panel +gedit_window_get_statusbar +gedit_window_get_state +gedit_window_get_tab_from_location +gedit_window_get_message_bus + +GEDIT_WINDOW +GEDIT_IS_WINDOW +GEDIT_TYPE_WINDOW +gedit_window_get_type +GEDIT_WINDOW_CLASS +GEDIT_IS_WINDOW_CLASS +GEDIT_WINDOW_GET_CLASS +GEDIT_TYPE_WINDOW_STATE +GeditWindowPrivate +gedit_window_state_get_type +
+ +
+gedit-window-activatable +GeditWindowActivatable +GeditWindowActivatable +gedit_window_activatable_activate +gedit_window_activatable_deactivate +gedit_window_activatable_update_state + +GEDIT_TYPE_WINDOW_ACTIVATABLE +GEDIT_WINDOW_ACTIVATABLE +GEDIT_WINDOW_ACTIVATABLE_IFACE +GEDIT_IS_WINDOW_ACTIVATABLE +GEDIT_WINDOW_ACTIVATABLE_GET_IFACE +gedit_window_activatable_get_type +
+ +
+gedit-debug +GeditDebugSection +DEBUG_VIEW +DEBUG_PREFS +DEBUG_WINDOW +DEBUG_PANEL +DEBUG_PLUGINS +DEBUG_TAB +DEBUG_DOCUMENT +DEBUG_COMMANDS +DEBUG_APP +DEBUG_UTILS +DEBUG_METADATA +gedit_debug_init +gedit_debug +gedit_debug_message +gedit_debug_plugin_message + +GEDIT_TYPE_DEBUG_SECTION +gedit_debug_section_get_type +
+ +
+gedit-menu-extension +GeditMenuExtension +gedit_menu_extension_new +gedit_menu_extension_append_menu_item +gedit_menu_extension_prepend_menu_item +gedit_menu_extension_remove_items + +GEDIT_IS_MENU_EXTENSION +GEDIT_IS_MENU_EXTENSION_CLASS +GEDIT_MENU_EXTENSION +GEDIT_MENU_EXTENSION_CLASS +GEDIT_MENU_EXTENSION_CONST +GEDIT_MENU_EXTENSION_GET_CLASS +GEDIT_TYPE_MENU_EXTENSION +GeditMenuExtensionClass +gedit_menu_extension_get_type +
+ +
+gedit-utils +gedit_utils_menu_position_under_tree_view +gedit_utils_set_atk_name_description +gedit_utils_basename_for_display +gedit_utils_drop_get_uris +gedit_utils_get_compression_type_from_content_type +gedit_utils_is_valid_location +gedit_utils_location_get_dirname_for_display +gedit_utils_set_direct_save_filename +gedit_utils_newline_type_to_string +gedit_warning +gedit_utils_decode_uri +
diff --git a/docs/reference/meson.build b/docs/reference/meson.build new file mode 100644 index 0000000..7e4fc01 --- /dev/null +++ b/docs/reference/meson.build @@ -0,0 +1,42 @@ +html_dir = get_option('prefix') / gnome.gtkdoc_html_dir('gedit') + +glib_docpath = dependency('glib-2.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/glib' +gobject_docpath = dependency('gobject-2.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gobject' +gio_docpath = dependency('gio-2.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gio' +gdk_docpath = dependency('gdk-3.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gdk3' +gtk_docpath = dependency('gtk+-3.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gtk3' +gsv_docpath = dependency('gtksourceview-4').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gtksourceview-4.0' +amtk_docpath = dependency('amtk-5').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/amtk-5.0' +tepl_docpath = dependency('tepl-5').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/tepl-5' +libpeas_docpath = dependency('libpeas-1.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/libpeas' + +gedit_doc_dep = declare_dependency( + link_with: libgedit_shared_lib, + include_directories: root_include_dir, + dependencies: deps_basic_list, +) + +gnome.gtkdoc( + 'gedit', + main_xml: 'gedit-docs.xml', + src_dir: include_directories('../../gedit/'), + dependencies: gedit_doc_dep, + scan_args: ['--rebuild-types'], + fixxref_args: [ + '--html-dir=@0@'.format(html_dir), + '--extra-dir=@0@'.format(glib_docpath), + '--extra-dir=@0@'.format(gobject_docpath), + '--extra-dir=@0@'.format(gio_docpath), + '--extra-dir=@0@'.format(gdk_docpath), + '--extra-dir=@0@'.format(gtk_docpath), + '--extra-dir=@0@'.format(gsv_docpath), + '--extra-dir=@0@'.format(amtk_docpath), + '--extra-dir=@0@'.format(tepl_docpath), + '--extra-dir=@0@'.format(libpeas_docpath), + ], + content_files: [ + 'api-breaks.xml' + ], + ignore_headers: libgedit_private_headers, + install: true, +) diff --git a/docs/roadmap.md b/docs/roadmap.md new file mode 100644 index 0000000..f2749f6 --- /dev/null +++ b/docs/roadmap.md @@ -0,0 +1,127 @@ +gedit roadmap +============= + +This page contains the plans for major code changes we hope to get done in the +future. + +See also the +[Tepl roadmap](https://gitlab.gnome.org/GNOME/tepl/blob/master/docs/roadmap.md). + +See the [NEWS file](../NEWS) for a detailed history. + +If you often contribute to gedit, feel free to add your plans here. + +Making the gedit source code more re-usable +------------------------------------------- + +Status: **[in progress](https://wiki.gnome.org/Apps/Gedit/ReusableCode)** (this +is an ongoing effort) + +Recently done: +- gedit 3.36: start to use the [Tepl](https://wiki.gnome.org/Projects/Tepl) + library. + +Next steps: +- Use more features from the [Tepl](https://wiki.gnome.org/Projects/Tepl) + library, and develop Tepl alongside gedit. The goal is to reduce the amount + of code in gedit, by having re-usable code in Tepl instead. + +New version of gedit on Windows +------------------------------- + +Status: **done** + +[gedit on the Microsoft Store](https://www.microsoft.com/store/apps/9PL1J21XF0PT). + +Making gedit suitable on a smartphone +------------------------------------- + +Status: **[in progress](https://gitlab.gnome.org/GNOME/Initiatives/-/issues/13)** + +gedit is installed by default with the [Librem 5](https://puri.sm/products/librem-5/) +smartphone. + +Replace search and replace dialog window by an horizontal bar below the text +---------------------------------------------------------------------------- + +Status: **[todo](https://gitlab.gnome.org/GNOME/gedit/-/issues/288)** + +To not hide the text. + +Changing character encoding and line ending type of opened files +---------------------------------------------------------------- + +Status: **todo** + +To fully support GtkFileChooserNative and better sandboxing. + +Note that the integrated file browser plugin needs access at least to the whole +home directory. But the work on this task (with the code in Tepl) would allow +better sandboxing for other text editors that don't have an integrated file +browser. + +Handle problem with large files or files containing very long lines +------------------------------------------------------------------- + +Status: **started in Tepl** + +As a stopgap measure, prevent those files from being loaded in the first place, +show first an infobar with a warning message. + +Longer-term solution: fix the performance problem in GTK for very long lines. + +For very big file size (e.g. a 1GB log file or SQL dump), it's more complicated +because the whole file is loaded in memory. It needs another data structure +implementation for the GtkTextView API. + +Do not allow incompatible plugins to be loaded +---------------------------------------------- + +Status: **todo** + +There are currently no checks to see if a plugin is compatible with the gedit +version. Currently enabling a plugin can make gedit to crash. + +Solution: include the gedit plugin API version in the directory names where +plugins need to be installed. Better solution: see +[this libpeas feature request](https://bugzilla.gnome.org/show_bug.cgi?id=642694#c15). + +Be able to quit the application with all documents saved, and restored on next start +------------------------------------------------------------------------------------ + +Status: **todo** + +Even for unsaved and untitled files, be able to quit gedit, restart it later and +come back to the state before with all tabs restored. + +Better C language support +------------------------- + +Status: **todo** + +- Code completion with Clang. +- Align function parameters on the parenthesis (function definition / + function call). +- Generate and insert GTK-Doc comment header for a function. +- Split/join lines of a C comment with `*` at beginning of each line, ditto when + pressing Enter (insert `*` at the beginning of the new line). + +Improve printing UI workflow +---------------------------- + +Status: **todo** + +Implement it like in Firefox, show first a preview of the file to print. + +Avoid the need for gedit forks +------------------------------ + +Status: **todo** + +There are several forks of gedit available: [Pluma](https://github.com/mate-desktop/pluma) +(from the MATE desktop environment) and [xed](https://github.com/linuxmint/xed) +(from the Linux Mint distribution). xed is a fork of Pluma, and Pluma is a fork +of gedit. + +The goal is to make gedit suitable for MATE and Linux Mint. This can be +implemented by adding a “gedit-classic” configuration option. diff --git a/gedit.doap b/gedit.doap new file mode 100644 index 0000000..b77a387 --- /dev/null +++ b/gedit.doap @@ -0,0 +1,69 @@ + + + gedit + GNOME Text Editor + +gedit is the text editor of the GNOME desktop environment. + +The first goal of gedit is to be easy to use, with a simple interface by +default. More advanced features are available by enabling plugins. + + + + + + + + C + Python + + + + Sébastien Wilmet + + swilmet + + + + + diff --git a/gedit/Gedit-3.0.metadata b/gedit/Gedit-3.0.metadata new file mode 100644 index 0000000..1a5b45a --- /dev/null +++ b/gedit/Gedit-3.0.metadata @@ -0,0 +1,24 @@ +App cheader_filename="gedit/gedit-app.h" +AppActivatable cheader_filename="gedit/gedit-app-activatable.h" +DebugSection cheader_filename="gedit/gedit-debug.h" +Document cheader_filename="gedit/gedit-document.h" +EncodingsComboBox cheader_filename="gedit/gedit-encodings-combo-box.h" +MenuExtension cheader_filename="gedit/gedit-menu-extension.h" +Message cheader_filename="gedit/gedit-message.h" +MessageBus cheader_filename="gedit/gedit-message-bus.h" +ProgressInfoBar cheader_filename="gedit/gedit-progress-info-bar.h" +Statusbar cheader_filename="gedit/gedit-statusbar.h" +Tab cheader_filename="gedit/gedit-tab.h" +TabState cheader_filename="gedit/gedit-tab.h" +View cheader_filename="gedit/gedit-view.h" +ViewActivatable cheader_filename="gedit/gedit-view-activatable.h" +Window cheader_filename="gedit/gedit-window.h" +WindowActivatable cheader_filename="gedit/gedit-window-activatable.h" +WindowState cheader_filename="gedit/gedit-window.h" + +commands_* cheader_filename="gedit/gedit-commands.h" +debug* cheader_filename="gedit/gedit-debug.h" +utils_* cheader_filename="gedit/gedit-utils.h" + +MessageBusForeach cheader_filename="gedit/gedit-message-bus.h" +MessageCallback cheader_filename="gedit/gedit-message-bus.h" diff --git a/gedit/Gedit.py b/gedit/Gedit.py new file mode 100644 index 0000000..c3a1f43 --- /dev/null +++ b/gedit/Gedit.py @@ -0,0 +1,99 @@ +# Copyright (C) 2011 Jesse van den Kieboom +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +from gi.repository import GObject +import inspect + +from ..overrides import override +from ..importer import modules + +Gedit = modules['Gedit']._introspection_module +__all__ = [] + +class MessageBus(Gedit.MessageBus): + def create(self, object_path, method, **kwargs): + tp = self.lookup(object_path, method) + + if not tp.is_a(Gedit.Message.__gtype__): + return None + + kwargs['object-path'] = object_path + kwargs['method'] = method + + return GObject.new(tp, **kwargs) + + def send_sync(self, object_path, method, **kwargs): + msg = self.create(object_path, method, **kwargs) + self.send_message_sync(msg) + + return msg + + def send(self, object_path, method, **kwargs): + msg = self.create(object_path, method, **kwargs) + self.send_message(msg) + + return msg + +MessageBus = override(MessageBus) +__all__.append('MessageBus') + +class Message(Gedit.Message): + def __getattribute__(self, name): + try: + return Gedit.Message.__getattribute__(self, name) + except: + return getattr(self.props, name) + +Message = override(Message) +__all__.append('Message') + + +def get_trace_info(num_back_frames=0): + frame = inspect.currentframe().f_back + try: + for i in range(num_back_frames): + back_frame = frame.f_back + if back_frame is None: + break + frame = back_frame + + filename = frame.f_code.co_filename + + # http://code.activestate.com/recipes/145297-grabbing-the-current-line-number-easily/ + lineno = frame.f_lineno + + func_name = frame.f_code.co_name + try: + # http://stackoverflow.com/questions/2203424/python-how-to-retrieve-class-information-from-a-frame-object + cls_name = frame.f_locals["self"].__class__.__name__ + except: + pass + else: + func_name = "%s.%s" % (cls_name, func_name) + + return (filename, lineno, func_name) + finally: + frame = None + +orig_debug_plugin_message_func = Gedit.debug_plugin_message + +@override(Gedit.debug_plugin_message) +def debug_plugin_message(format, *format_args): + filename, lineno, func_name = get_trace_info(1) + orig_debug_plugin_message_func(filename, lineno, func_name, format % format_args) +__all__.append(debug_plugin_message) + +# vi:ex:ts=4:et diff --git a/gedit/gedit-app-activatable.c b/gedit/gedit-app-activatable.c new file mode 100644 index 0000000..f5dbd35 --- /dev/null +++ b/gedit/gedit-app-activatable.c @@ -0,0 +1,117 @@ +/* + * gedit-app-activatable.h + * This file is part of gedit + * + * Copyright (C) 2010 Steve Frécinaux + * Copyright (C) 2010 Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-app-activatable.h" +#include "gedit-app.h" +#include "gedit-app-private.h" + +/** + * SECTION:gedit-app-activatable + * @short_description: Interface for activatable extensions on apps + * @see_also: #PeasExtensionSet + * + * #GeditAppActivatable is an interface which should be implemented by + * extensions that should be activated on a gedit application. + **/ + +G_DEFINE_INTERFACE(GeditAppActivatable, gedit_app_activatable, G_TYPE_OBJECT) + +static void +gedit_app_activatable_default_init (GeditAppActivatableInterface *iface) +{ + /** + * GeditAppActivatable:app: + * + * The app property contains the gedit app for this + * #GeditAppActivatable instance. + */ + g_object_interface_install_property (iface, + g_param_spec_object ("app", + "App", + "The gedit app", + GEDIT_TYPE_APP, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS)); +} + +/** + * gedit_app_activatable_activate: + * @activatable: A #GeditAppActivatable. + * + * Activates the extension on the application. + */ +void +gedit_app_activatable_activate (GeditAppActivatable *activatable) +{ + GeditAppActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_APP_ACTIVATABLE (activatable)); + + iface = GEDIT_APP_ACTIVATABLE_GET_IFACE (activatable); + + if (iface->activate != NULL) + { + iface->activate (activatable); + } +} + +/** + * gedit_app_activatable_deactivate: + * @activatable: A #GeditAppActivatable. + * + * Deactivates the extension from the application. + * + */ +void +gedit_app_activatable_deactivate (GeditAppActivatable *activatable) +{ + GeditAppActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_APP_ACTIVATABLE (activatable)); + + iface = GEDIT_APP_ACTIVATABLE_GET_IFACE (activatable); + + if (iface->deactivate != NULL) + { + iface->deactivate (activatable); + } +} + +GeditMenuExtension * +gedit_app_activatable_extend_menu (GeditAppActivatable *activatable, + const gchar *extension_point) +{ + GeditApp *app; + GeditMenuExtension *ext; + + g_return_val_if_fail (GEDIT_IS_APP_ACTIVATABLE (activatable), NULL); + + g_object_get (G_OBJECT (activatable), "app", &app, NULL); + ext = _gedit_app_extend_menu (app, extension_point); + g_object_unref (app); + + return ext; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app-activatable.h b/gedit/gedit-app-activatable.h new file mode 100644 index 0000000..f3f6606 --- /dev/null +++ b/gedit/gedit-app-activatable.h @@ -0,0 +1,64 @@ +/* + * gedit-app-activatable.h + * This file is part of gedit + * + * Copyright (C) 2010 - Steve Frécinaux + * Copyright (C) 2010 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_APP_ACTIVATABLE_H +#define GEDIT_APP_ACTIVATABLE_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_APP_ACTIVATABLE (gedit_app_activatable_get_type ()) + +G_DECLARE_INTERFACE (GeditAppActivatable, gedit_app_activatable, GEDIT, APP_ACTIVATABLE, GObject) + +struct _GeditAppActivatableInterface +{ + GTypeInterface g_iface; + + /* Virtual public methods */ + void (*activate) (GeditAppActivatable *activatable); + void (*deactivate) (GeditAppActivatable *activatable); +}; + +void gedit_app_activatable_activate (GeditAppActivatable *activatable); +void gedit_app_activatable_deactivate (GeditAppActivatable *activatable); + +/** + * gedit_app_activatable_extend_menu: + * @activatable: A #GeditAppActivatable. + * @extension_point: the extension point section of the menu to get. + * + * Gets the #GeditMenuExtension for the menu @extension_point. Note that + * the extension point could be in different menus (gear menu, app menu, etc) + * depending on the platform. + * + * Returns: (transfer full): a #GeditMenuExtension for the specific section + * or %NULL if not found. + */ +GeditMenuExtension *gedit_app_activatable_extend_menu (GeditAppActivatable *activatable, + const gchar *extension_point); + +G_END_DECLS + +#endif /* GEDIT_APP_ACTIVATABLE_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app-osx.h b/gedit/gedit-app-osx.h new file mode 100644 index 0000000..e73c880 --- /dev/null +++ b/gedit/gedit-app-osx.h @@ -0,0 +1,46 @@ +/* + * gedit-app-osx.h + * This file is part of gedit + * + * Copyright (C) 2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_APP_OSX_H +#define GEDIT_APP_OSX_H + +#include "gedit-app.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_APP_OSX (gedit_app_osx_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditAppOSX, gedit_app_osx, GEDIT, APP_OSX, GeditApp) + +void gedit_app_osx_set_window_title (GeditAppOSX *app, + GeditWindow *window, + const gchar *title, + GeditDocument *document); + +gboolean gedit_app_osx_show_url (GeditAppOSX *app, + const gchar *url); + +G_END_DECLS + +#endif /* GEDIT_APP_OSX_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app-osx.m b/gedit/gedit-app-osx.m new file mode 100644 index 0000000..5df1b94 --- /dev/null +++ b/gedit/gedit-app-osx.m @@ -0,0 +1,602 @@ +/* + * gedit-app-osx.c + * This file is part of gedit + * + * Copyright (C) 2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "gedit-app-osx.h" + +#include +#include +#include + +#include "gedit-app-private.h" +#include "gedit-dirs.h" +#include "gedit-debug.h" +#include "gedit-commands.h" +#include "gedit-commands-private.h" +#include "gedit-recent.h" +#import + +NSWindow *gdk_quartz_window_get_nswindow(GdkWindow *window); +NSEvent *gdk_quartz_event_get_nsevent(GdkEvent *event); + +static GeditWindow * +ensure_window (GeditAppOSX *app, + gboolean with_empty_document) +{ + GList *windows; + GeditWindow *ret = NULL; + + windows = gtk_application_get_windows (GTK_APPLICATION (app)); + + while (windows) + { + GtkWindow *window; + GdkWindow *win; + NSWindow *nswin; + + window = windows->data; + windows = g_list_next (windows); + + if (!gtk_widget_get_realized (GTK_WIDGET (window))) + { + continue; + } + + if (!GEDIT_IS_WINDOW (window)) + { + continue; + } + + win = gtk_widget_get_window (GTK_WIDGET (window)); + nswin = gdk_quartz_window_get_nswindow (win); + + if ([nswin isOnActiveSpace]) + { + ret = GEDIT_WINDOW (window); + break; + } + } + + if (!ret) + { + ret = gedit_app_create_window (GEDIT_APP (app), NULL); + gtk_widget_show (GTK_WIDGET (ret)); + } + + if (with_empty_document && gedit_window_get_active_document (ret) == NULL) + { + gedit_window_create_tab (ret, TRUE); + } + + gtk_window_present (GTK_WINDOW (ret)); + return ret; +} + +@interface GeditAppOSXDelegate : NSObject +{ + GeditAppOSX *app; + id orig; +} + +- (id)initWithApp:(GeditAppOSX *)theApp; +- (void)release; + +- (id)forwardingTargetForSelector:(SEL)aSelector; +- (BOOL)respondsToSelector:(SEL)aSelector; + +- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag; +- (void)applicationWillBecomeActive:(NSNotification *)aNotification; +- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames; + +@end + +@implementation GeditAppOSXDelegate +- (id)initWithApp:(GeditAppOSX *)theApp +{ + [super init]; + app = theApp; + + orig = [NSApp delegate]; + [NSApp setDelegate:self]; + + return self; +} + +- (void)release +{ + [NSApp setDelegate:orig]; + [super release]; +} + +- (id)forwardingTargetForSelector:(SEL)aSelector +{ + return orig; +} + +- (BOOL)respondsToSelector:(SEL)aSelector +{ + return [super respondsToSelector:aSelector] || [orig respondsToSelector:aSelector]; +} + +- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag +{ + ensure_window (app, TRUE); + return NO; +} + +- (void)applicationWillBecomeActive:(NSNotification *)aNotification +{ + ensure_window (app, TRUE); +} + +- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames +{ + ensure_window (app, FALSE); + [orig application:sender openFiles:filenames]; +} + +@end + +struct _GeditAppOSX +{ + GeditApp parent_instance; + + GeditMenuExtension *recent_files_menu; + gulong recent_manager_changed_id; + + GeditAppOSXDelegate *app_delegate; + + GList *recent_actions; + GeditRecentConfiguration recent_config; +}; + +G_DEFINE_TYPE (GeditAppOSX, gedit_app_osx, GEDIT_TYPE_APP) + +static void +remove_recent_actions (GeditAppOSX *app) +{ + while (app->recent_actions) + { + gchar *action_name = app->recent_actions->data; + + g_action_map_remove_action (G_ACTION_MAP (app), action_name); + g_free (action_name); + + app->recent_actions = g_list_delete_link (app->recent_actions, + app->recent_actions); + } +} + +static void +gedit_app_osx_finalize (GObject *object) +{ + GeditAppOSX *app = GEDIT_APP_OSX (object); + + g_object_unref (app->recent_files_menu); + + remove_recent_actions (app); + + g_signal_handler_disconnect (app->recent_config.manager, + app->recent_manager_changed_id); + + gedit_recent_configuration_destroy (&app->recent_config); + + [app->app_delegate release]; + + G_OBJECT_CLASS (gedit_app_osx_parent_class)->finalize (object); +} + +gboolean +gedit_app_osx_show_url (GeditAppOSX *app, + const gchar *url) +{ + return [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithUTF8String:url]]]; +} + +static gboolean +gedit_app_osx_show_help_impl (GeditApp *app, + GtkWindow *parent, + const gchar *name, + const gchar *link_id) +{ + gboolean ret = FALSE; + + if (name == NULL || g_strcmp0 (name, "gedit") == 0) + { + gchar *link; + + if (link_id) + { + link = g_strdup_printf ("http://library.gnome.org/users/gedit/stable/%s", + link_id); + } + else + { + link = g_strdup ("http://library.gnome.org/users/gedit/stable/"); + } + + ret = gedit_app_osx_show_url (GEDIT_APP_OSX (app), link); + g_free (link); + } + + return ret; +} + +static void +gedit_app_osx_set_window_title_impl (GeditApp *app, + GeditWindow *window, + const gchar *title) +{ + NSWindow *native; + GeditDocument *document; + GdkWindow *wnd; + + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + wnd = gtk_widget_get_window (GTK_WIDGET (window)); + + if (wnd == NULL) + { + return; + } + + native = gdk_quartz_window_get_nswindow (wnd); + document = gedit_window_get_active_document (window); + + if (document) + { + bool ismodified; + + if (gedit_document_is_untitled (document)) + { + [native setRepresentedURL:nil]; + } + else + { + GtkSourceFile *file; + GFile *location; + gchar *uri; + + file = gedit_document_get_file (document); + location = gtk_source_file_get_location (file); + + uri = g_file_get_uri (location); + + NSURL *nsurl = [NSURL URLWithString:[NSString stringWithUTF8String:uri]]; + + [native setRepresentedURL:nsurl]; + g_free (uri); + } + + ismodified = !gedit_document_is_untouched (document); + [native setDocumentEdited:ismodified]; + } + else + { + [native setRepresentedURL:nil]; + [native setDocumentEdited:false]; + } + + GEDIT_APP_CLASS (gedit_app_osx_parent_class)->set_window_title (app, window, title); +} + +typedef struct +{ + GeditAppOSX *app; + GtkRecentInfo *info; +} RecentFileInfo; + +static void +recent_file_info_free (gpointer data, + GClosure *closure) +{ + RecentFileInfo *info = data; + + g_object_unref (info->app); + gtk_recent_info_unref (info->info); + + g_slice_free (RecentFileInfo, data); +} + +static void +recent_file_activated (GAction *action, + GVariant *parameter, + RecentFileInfo *info) +{ + GeditWindow *window; + const gchar *uri; + GFile *file; + + uri = gtk_recent_info_get_uri (info->info); + file = g_file_new_for_uri (uri); + + window = ensure_window (info->app, FALSE); + + gedit_commands_load_location (GEDIT_WINDOW (window), file, NULL, 0, 0); + g_object_unref (file); +} + +static void +recent_files_menu_populate (GeditAppOSX *app) +{ + GList *items; + gint i = 0; + + gedit_menu_extension_remove_items (app->recent_files_menu); + remove_recent_actions (app); + + items = gedit_recent_get_items (&app->recent_config); + + while (items) + { + GtkRecentInfo *info = items->data; + GMenuItem *mitem; + const gchar *name; + gchar *acname; + gchar *acfullname; + GSimpleAction *action; + RecentFileInfo *finfo; + + name = gtk_recent_info_get_display_name (info); + + acname = g_strdup_printf ("recent-file-action-%d", ++i); + action = g_simple_action_new (acname, NULL); + + finfo = g_slice_new (RecentFileInfo); + finfo->app = g_object_ref (app); + finfo->info = gtk_recent_info_ref (info); + + g_signal_connect_data (action, + "activate", + G_CALLBACK (recent_file_activated), + finfo, + recent_file_info_free, + 0); + + g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (action)); + g_object_unref (action); + + acfullname = g_strdup_printf ("app.%s", acname); + + app->recent_actions = g_list_prepend (app->recent_actions, acname); + + mitem = g_menu_item_new (name, acfullname); + gedit_menu_extension_append_menu_item (app->recent_files_menu, mitem); + + g_free (acfullname); + + g_object_unref (mitem); + gtk_recent_info_unref (info); + + items = g_list_delete_link (items, items); + } +} + +static void +recent_manager_changed (GtkRecentManager *manager, + GeditAppOSX *app) +{ + recent_files_menu_populate (app); +} + +static void +open_activated (GSimpleAction *action, + GVariant *parameter, + gpointer userdata) +{ + _gedit_cmd_file_open (NULL, NULL, NULL); +} + +static GActionEntry app_entries[] = { + { "open", open_activated, NULL, NULL, NULL } +}; + +static void +update_open_sensitivity (GeditAppOSX *app) +{ + GAction *action; + gboolean has_windows; + + has_windows = (gtk_application_get_windows (GTK_APPLICATION (app)) != NULL); + + action = g_action_map_lookup_action (G_ACTION_MAP (app), "open"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !has_windows); +} + +static void +gedit_app_osx_startup (GApplication *application) +{ + const gchar *replace_accels[] = { + "F", + NULL + }; + + const gchar *open_accels[] = { + "O", + NULL + }; + + const gchar *fullscreen_accels[] = { + "F", + NULL + }; + + GeditAppOSX *app = GEDIT_APP_OSX (application); + + G_APPLICATION_CLASS (gedit_app_osx_parent_class)->startup (application); + + app->app_delegate = [[[GeditAppOSXDelegate alloc] initWithApp:app] retain]; + + g_action_map_add_action_entries (G_ACTION_MAP (application), + app_entries, + G_N_ELEMENTS (app_entries), + application); + + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "win.replace", + replace_accels); + + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "app.open", + open_accels); + + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "win.fullscreen", + fullscreen_accels); + + gedit_recent_configuration_init_default (&app->recent_config); + + app->recent_files_menu = _gedit_app_extend_menu (GEDIT_APP (application), + "recent-files-section"); + + app->recent_manager_changed_id = g_signal_connect (app->recent_config.manager, + "changed", + G_CALLBACK (recent_manager_changed), + app); + + recent_files_menu_populate (app); + + g_application_hold (application); + update_open_sensitivity (app); +} + +static void +set_window_allow_fullscreen (GeditWindow *window) +{ + GdkWindow *wnd; + NSWindow *native; + + wnd = gtk_widget_get_window (GTK_WIDGET (window)); + + if (wnd != NULL) + { + native = gdk_quartz_window_get_nswindow (wnd); + [native setCollectionBehavior: [native collectionBehavior] | NSWindowCollectionBehaviorFullScreenPrimary]; + } +} + +static void +on_window_realized (GtkWidget *widget) +{ + set_window_allow_fullscreen (GEDIT_WINDOW (widget)); +} + +static GeditWindow * +gedit_app_osx_create_window_impl (GeditApp *app) +{ + GeditWindow *window; + + window = GEDIT_APP_CLASS (gedit_app_osx_parent_class)->create_window (app); + + gtk_window_set_titlebar (GTK_WINDOW (window), NULL); + + if (gtk_widget_get_realized (GTK_WIDGET (window))) + { + set_window_allow_fullscreen (window); + } + else + { + g_signal_connect (window, "realize", G_CALLBACK (on_window_realized), NULL); + } + + return window; +} + +static gboolean +gedit_app_osx_process_window_event_impl (GeditApp *app, + GeditWindow *window, + GdkEvent *event) +{ + NSEvent *nsevent; + + /* For OS X we will propagate the event to NSApp, which handles some OS X + * specific keybindings and the accelerators for the menu + */ + nsevent = gdk_quartz_event_get_nsevent (event); + [NSApp sendEvent:nsevent]; + + /* It does not really matter what we return here since it's the last thing + * in the chain. Also we can't get from sendEvent whether the event was + * actually handled by NSApp anyway + */ + return TRUE; +} + +static void +gedit_app_osx_constructed (GObject *object) +{ + /* FIXME: should we do this on all platforms? */ + g_object_set (object, "register-session", TRUE, NULL); + G_OBJECT_CLASS (gedit_app_osx_parent_class)->constructed (object); +} + +static void +gedit_app_osx_window_added (GtkApplication *application, + GtkWindow *window) +{ + GTK_APPLICATION_CLASS (gedit_app_osx_parent_class)->window_added (application, window); + + update_open_sensitivity (GEDIT_APP_OSX (application)); +} + +static void +gedit_app_osx_window_removed (GtkApplication *application, + GtkWindow *window) +{ + GTK_APPLICATION_CLASS (gedit_app_osx_parent_class)->window_removed (application, window); + + update_open_sensitivity (GEDIT_APP_OSX (application)); +} + +static void +gedit_app_osx_class_init (GeditAppOSXClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GeditAppClass *app_class = GEDIT_APP_CLASS (klass); + GApplicationClass *application_class = G_APPLICATION_CLASS (klass); + GtkApplicationClass *gtkapplication_class = GTK_APPLICATION_CLASS (klass); + + object_class->finalize = gedit_app_osx_finalize; + object_class->constructed = gedit_app_osx_constructed; + + application_class->startup = gedit_app_osx_startup; + + gtkapplication_class->window_added = gedit_app_osx_window_added; + gtkapplication_class->window_removed = gedit_app_osx_window_removed; + + app_class->show_help = gedit_app_osx_show_help_impl; + app_class->set_window_title = gedit_app_osx_set_window_title_impl; + app_class->create_window = gedit_app_osx_create_window_impl; + app_class->process_window_event = gedit_app_osx_process_window_event_impl; +} + +static void +gedit_app_osx_init (GeditAppOSX *app) +{ + /* This is required so that Cocoa is not going to parse the + command line arguments by itself and generate OpenFile events. + We already parse the command line ourselves, so this is needed + to prevent opening files twice, etc. */ + [[NSUserDefaults standardUserDefaults] setObject:@"NO" + forKey:@"NSTreatUnknownArgumentsAsOpen"]; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app-private.h b/gedit/gedit-app-private.h new file mode 100644 index 0000000..6e1278a --- /dev/null +++ b/gedit/gedit-app-private.h @@ -0,0 +1,52 @@ +/* + * gedit-app-private.h + * This file is part of gedit + * + * Copyright (C) 2015 - Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_APP_PRIVATE_H +#define GEDIT_APP_PRIVATE_H + +#include "gedit-app.h" +#include "gedit-menu-extension.h" + +G_BEGIN_DECLS + +/* global print config */ +GtkPageSetup *_gedit_app_get_default_page_setup (GeditApp *app); +void _gedit_app_set_default_page_setup (GeditApp *app, + GtkPageSetup *page_setup); +GtkPrintSettings *_gedit_app_get_default_print_settings (GeditApp *app); +void _gedit_app_set_default_print_settings (GeditApp *app, + GtkPrintSettings *settings); + +GMenuModel *_gedit_app_get_hamburger_menu (GeditApp *app); + +GMenuModel *_gedit_app_get_notebook_menu (GeditApp *app); + +GMenuModel *_gedit_app_get_tab_width_menu (GeditApp *app); + +GMenuModel *_gedit_app_get_line_col_menu (GeditApp *app); + +GeditMenuExtension *_gedit_app_extend_menu (GeditApp *app, + const gchar *extension_point); + +G_END_DECLS + +#endif /* GEDIT_APP_PRIVATE_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app-win32.c b/gedit/gedit-app-win32.c new file mode 100644 index 0000000..696dfbb --- /dev/null +++ b/gedit/gedit-app-win32.c @@ -0,0 +1,144 @@ +/* + * gedit-app-win32.c + * This file is part of gedit + * + * Copyright (C) 2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "gedit-app-win32.h" + +#define SAVE_DATADIR DATADIR +#undef DATADIR +#include +#include +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif +#include +#define DATADIR SAVE_DATADIR +#undef SAVE_DATADIR + +struct _GeditAppWin32 +{ + GeditApp parent_instance; +}; + +G_DEFINE_TYPE (GeditAppWin32, gedit_app_win32, GEDIT_TYPE_APP) + +static void +gedit_app_win32_finalize (GObject *object) +{ + G_OBJECT_CLASS (gedit_app_win32_parent_class)->finalize (object); +} + +static gchar * +gedit_app_win32_help_link_id_impl (GeditApp *app, + const gchar *name, + const gchar *link_id) +{ + if (link_id) + { + return g_strdup_printf ("http://library.gnome.org/users/gedit/stable/%s", + link_id); + } + else + { + return g_strdup ("http://library.gnome.org/users/gedit/stable/"); + } +} + +static void +setup_path (void) +{ + gchar *path; + gchar *installdir; + gchar *bin; + + installdir = g_win32_get_package_installation_directory_of_module (NULL); + + bin = g_build_filename (installdir, "bin", NULL); + g_free (installdir); + + /* Set PATH to include the gedit executable's folder */ + path = g_build_path (";", bin, g_getenv ("PATH"), NULL); + g_free (bin); + + if (!g_setenv ("PATH", path, TRUE)) + { + g_warning ("Could not set PATH for gedit"); + } + + g_free (path); +} + +static void +prep_console (void) +{ + /* If we open gedit from a console get the stdout printing */ + if (fileno (stdout) != -1 && + _get_osfhandle (fileno (stdout)) != -1) + { + /* stdout is fine, presumably redirected to a file or pipe */ + } + else + { + typedef BOOL (* WINAPI AttachConsole_t) (DWORD); + + AttachConsole_t p_AttachConsole = + (AttachConsole_t) GetProcAddress (GetModuleHandle ("kernel32.dll"), + "AttachConsole"); + + if (p_AttachConsole != NULL && p_AttachConsole (ATTACH_PARENT_PROCESS)) + { + freopen ("CONOUT$", "w", stdout); + dup2 (fileno (stdout), 1); + freopen ("CONOUT$", "w", stderr); + dup2 (fileno (stderr), 2); + } + } +} + +static void +gedit_app_win32_startup (GApplication *application) +{ + G_APPLICATION_CLASS (gedit_app_win32_parent_class)->startup (application); + + setup_path (); + prep_console (); +} + +static void +gedit_app_win32_class_init (GeditAppWin32Class *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GApplicationClass *gapp_class = G_APPLICATION_CLASS (klass); + GeditAppClass *app_class = GEDIT_APP_CLASS (klass); + + object_class->finalize = gedit_app_win32_finalize; + + gapp_class->startup = gedit_app_win32_startup; + + app_class->help_link_id = gedit_app_win32_help_link_id_impl; +} + +static void +gedit_app_win32_init (GeditAppWin32 *self) +{ +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app-win32.h b/gedit/gedit-app-win32.h new file mode 100644 index 0000000..071beba --- /dev/null +++ b/gedit/gedit-app-win32.h @@ -0,0 +1,38 @@ +/* + * gedit-app-win32.h + * This file is part of gedit + * + * Copyright (C) 2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_APP_WIN32_H +#define GEDIT_APP_WIN32_H + +#include "gedit-app.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_APP_WIN32 (gedit_app_win32_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditAppWin32, gedit_app_win32, GEDIT, APP_WIN32, GeditApp) + +G_END_DECLS + +#endif /* GEDIT_APP_WIN32_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c new file mode 100644 index 0000000..5532d59 --- /dev/null +++ b/gedit/gedit-app.c @@ -0,0 +1,1661 @@ +/* + * gedit-app.c + * This file is part of gedit + * + * Copyright (C) 2005-2006 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-app.h" +#include "gedit-app-private.h" + +#include +#include +#include + +#include +#include +#include + +#include "gedit-commands-private.h" +#include "gedit-notebook.h" +#include "gedit-debug.h" +#include "gedit-utils.h" +#include "gedit-enum-types.h" +#include "gedit-dirs.h" +#include "gedit-settings.h" +#include "gedit-app-activatable.h" +#include "gedit-plugins-engine.h" +#include "gedit-commands.h" +#include "gedit-preferences-dialog.h" +#include "gedit-tab.h" + +#define GEDIT_PAGE_SETUP_FILE "gedit-page-setup" +#define GEDIT_PRINT_SETTINGS_FILE "gedit-print-settings" + +typedef struct +{ + GeditPluginsEngine *engine; + + GtkCssProvider *theme_provider; + + GtkPageSetup *page_setup; + GtkPrintSettings *print_settings; + + GSettings *ui_settings; + GSettings *window_settings; + + GMenuModel *hamburger_menu; + GMenuModel *notebook_menu; + GMenuModel *tab_width_menu; + GMenuModel *line_col_menu; + + PeasExtensionSet *extensions; + + /* command line parsing */ + gboolean new_window; + gboolean new_document; + const GtkSourceEncoding *encoding; + GInputStream *stdin_stream; + GSList *file_list; + gint line_position; + gint column_position; + GApplicationCommandLine *command_line; +} GeditAppPrivate; + +static const GOptionEntry options[] = +{ + /* Version */ + { + "version", 'V', 0, G_OPTION_ARG_NONE, NULL, + N_("Show the application’s version"), NULL + }, + + /* List available encodings */ + { + "list-encodings", '\0', 0, G_OPTION_ARG_NONE, NULL, + N_("Display list of possible values for the encoding option"), + NULL + }, + + /* Encoding */ + { + "encoding", '\0', 0, G_OPTION_ARG_STRING, NULL, + N_("Set the character encoding to be used to open the files listed on the command line"), + N_("ENCODING") + }, + + /* Open a new window */ + { + "new-window", '\0', 0, G_OPTION_ARG_NONE, NULL, + N_("Create a new top-level window in an existing instance of gedit"), + NULL + }, + + /* Create a new empty document */ + { + "new-document", '\0', 0, G_OPTION_ARG_NONE, NULL, + N_("Create a new document in an existing instance of gedit"), + NULL + }, + + /* Wait for closing documents */ + { + "wait", 'w', 0, G_OPTION_ARG_NONE, NULL, + N_("Open files and block process until files are closed"), + NULL + }, + + /* New instance */ + { + "standalone", 's', 0, G_OPTION_ARG_NONE, NULL, + N_("Run gedit in standalone mode"), + NULL + }, + + /* collects file arguments */ + { + G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_FILENAME_ARRAY, NULL, NULL, + N_("[FILE…] [+LINE[:COLUMN]]") + }, + + {NULL} +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditApp, gedit_app, GTK_TYPE_APPLICATION) + +static void +gedit_app_dispose (GObject *object) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (GEDIT_APP (object)); + + g_clear_object (&priv->ui_settings); + g_clear_object (&priv->window_settings); + + g_clear_object (&priv->page_setup); + g_clear_object (&priv->print_settings); + + /* Note that unreffing the extensions will automatically remove + * all extensions which in turn will deactivate the extension + */ + g_clear_object (&priv->extensions); + + g_clear_object (&priv->engine); + + if (priv->theme_provider != NULL) + { + gtk_style_context_remove_provider_for_screen (gdk_screen_get_default (), + GTK_STYLE_PROVIDER (priv->theme_provider)); + g_clear_object (&priv->theme_provider); + } + + g_clear_object (&priv->hamburger_menu); + g_clear_object (&priv->notebook_menu); + g_clear_object (&priv->tab_width_menu); + g_clear_object (&priv->line_col_menu); + + G_OBJECT_CLASS (gedit_app_parent_class)->dispose (object); +} + +static gchar * +gedit_app_help_link_id_impl (GeditApp *app, + const gchar *name, + const gchar *link_id) +{ + if (link_id) + { + return g_strdup_printf ("help:%s/%s", name, link_id); + } + else + { + return g_strdup_printf ("help:%s", name); + } +} + +static gboolean +gedit_app_show_help_impl (GeditApp *app, + GtkWindow *parent, + const gchar *name, + const gchar *link_id) +{ + GError *error = NULL; + gboolean ret; + gchar *link; + + if (name == NULL) + { + name = "gedit"; + } + + link = GEDIT_APP_GET_CLASS (app)->help_link_id (app, name, link_id); + + ret = gtk_show_uri_on_window (GTK_WINDOW (parent), + link, + GDK_CURRENT_TIME, + &error); + + g_free (link); + + if (error != NULL) + { + GtkWidget *dialog; + + dialog = gtk_message_dialog_new (parent, + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_CLOSE, + _("There was an error displaying the help.")); + + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), + "%s", error->message); + + g_signal_connect (G_OBJECT (dialog), + "response", + G_CALLBACK (gtk_widget_destroy), + NULL); + + gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + + gtk_widget_show (dialog); + + g_error_free (error); + } + + return ret; +} + +static void +gedit_app_set_window_title_impl (GeditApp *app, + GeditWindow *window, + const gchar *title) +{ + gtk_window_set_title (GTK_WINDOW (window), title); +} + +static GeditWindow * +get_active_window (GtkApplication *app) +{ + GList *windows; + GList *l; + + /* Gtk documentation says the window list is always in MRU order. */ + windows = gtk_application_get_windows (app); + for (l = windows; l != NULL; l = l->next) + { + GtkWindow *window = l->data; + + if (GEDIT_IS_WINDOW (window)) + { + return GEDIT_WINDOW (window); + } + } + + return NULL; +} + +static void +set_command_line_wait (GeditApp *app, + GeditTab *tab) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (app); + + g_object_set_data_full (G_OBJECT (tab), + "GeditTabCommandLineWait", + g_object_ref (priv->command_line), + (GDestroyNotify)g_object_unref); +} + +static void +set_command_line_wait_doc (GeditDocument *doc, + GeditApp *app) +{ + GeditTab *tab = gedit_tab_get_from_document (doc); + + set_command_line_wait (app, tab); +} + +static void +open_files (GApplication *application, + gboolean new_window, + gboolean new_document, + gint line_position, + gint column_position, + const GtkSourceEncoding *encoding, + GInputStream *stdin_stream, + GSList *file_list, + GApplicationCommandLine *command_line) +{ + GeditWindow *window = NULL; + GeditTab *tab; + gboolean doc_created = FALSE; + + if (!new_window) + { + window = get_active_window (GTK_APPLICATION (application)); + } + + if (window == NULL) + { + gedit_debug_message (DEBUG_APP, "Create main window"); + window = gedit_app_create_window (GEDIT_APP (application), NULL); + + gedit_debug_message (DEBUG_APP, "Show window"); + gtk_widget_show (GTK_WIDGET (window)); + } + + if (stdin_stream) + { + gedit_debug_message (DEBUG_APP, "Load stdin"); + + tab = gedit_window_create_tab_from_stream (window, + stdin_stream, + encoding, + line_position, + column_position, + TRUE); + doc_created = tab != NULL; + + if (doc_created && command_line) + { + set_command_line_wait (GEDIT_APP (application), + tab); + } + g_input_stream_close (stdin_stream, NULL, NULL); + } + + if (file_list != NULL) + { + GSList *loaded; + + gedit_debug_message (DEBUG_APP, "Load files"); + loaded = _gedit_cmd_load_files_from_prompt (window, + file_list, + encoding, + line_position, + column_position); + + doc_created = doc_created || loaded != NULL; + + if (command_line) + { + g_slist_foreach (loaded, (GFunc)set_command_line_wait_doc, GEDIT_APP (application)); + } + g_slist_free (loaded); + } + + if (!doc_created || new_document) + { + gedit_debug_message (DEBUG_APP, "Create tab"); + tab = gedit_window_create_tab (window, TRUE); + + if (command_line) + { + set_command_line_wait (GEDIT_APP (application), + tab); + } + } + + gtk_window_present (GTK_WINDOW (window)); +} + +static void +new_window_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditApp *app; + GeditWindow *window; + + app = GEDIT_APP (user_data); + window = gedit_app_create_window (app, NULL); + + gedit_debug_message (DEBUG_APP, "Show window"); + gtk_widget_show (GTK_WIDGET (window)); + + gedit_debug_message (DEBUG_APP, "Create tab"); + gedit_window_create_tab (window, TRUE); + + gtk_window_present (GTK_WINDOW (window)); +} + +static void +new_document_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GApplication *application = G_APPLICATION (user_data); + + open_files (application, + FALSE, + TRUE, + 0, + 0, + NULL, + NULL, + NULL, + NULL); +} + +static void +preferences_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GtkApplication *app; + GeditWindow *window; + + app = GTK_APPLICATION (user_data); + window = GEDIT_WINDOW (gtk_application_get_active_window (app)); + + gedit_show_preferences_dialog (window); +} + +static void +keyboard_shortcuts_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GtkApplication *app; + GeditWindow *window; + + app = GTK_APPLICATION (user_data); + window = GEDIT_WINDOW (gtk_application_get_active_window (app)); + + _gedit_cmd_help_keyboard_shortcuts (window); +} + +static void +help_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GtkApplication *app; + GeditWindow *window; + + app = GTK_APPLICATION (user_data); + window = GEDIT_WINDOW (gtk_application_get_active_window (app)); + + _gedit_cmd_help_contents (window); +} + +static void +about_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GtkApplication *app; + GeditWindow *window; + + app = GTK_APPLICATION (user_data); + window = GEDIT_WINDOW (gtk_application_get_active_window (app)); + + _gedit_cmd_help_about (window); +} + +static void +quit_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + _gedit_cmd_file_quit (NULL, NULL, NULL); +} + +static GActionEntry app_entries[] = { + { "new-window", new_window_activated, NULL, NULL, NULL }, + { "new-document", new_document_activated, NULL, NULL, NULL }, + { "preferences", preferences_activated, NULL, NULL, NULL }, + { "shortcuts", keyboard_shortcuts_activated, NULL, NULL, NULL }, + { "help", help_activated, NULL, NULL, NULL }, + { "about", about_activated, NULL, NULL, NULL }, + { "quit", quit_activated, NULL, NULL, NULL } +}; + +static void +extension_added (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditApp *app) +{ + gedit_app_activatable_activate (GEDIT_APP_ACTIVATABLE (exten)); +} + +static void +extension_removed (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditApp *app) +{ + gedit_app_activatable_deactivate (GEDIT_APP_ACTIVATABLE (exten)); +} + +static void +load_accels (void) +{ + gchar *filename; + + filename = g_build_filename (gedit_dirs_get_user_config_dir (), + "accels", + NULL); + if (filename != NULL) + { + gedit_debug_message (DEBUG_APP, "Loading keybindings from %s\n", filename); + gtk_accel_map_load (filename); + g_free (filename); + } +} + +static GtkCssProvider * +load_css_from_resource (const gchar *filename, + gboolean required) +{ + GError *error = NULL; + GFile *css_file; + GtkCssProvider *provider; + gchar *resource_name; + + resource_name = g_strdup_printf ("resource:///org/gnome/gedit/css/%s", filename); + css_file = g_file_new_for_uri (resource_name); + g_free (resource_name); + + if (!required && !g_file_query_exists (css_file, NULL)) + { + g_object_unref (css_file); + return NULL; + } + + provider = gtk_css_provider_new (); + + if (gtk_css_provider_load_from_file (provider, css_file, &error)) + { + gtk_style_context_add_provider_for_screen (gdk_screen_get_default (), + GTK_STYLE_PROVIDER (provider), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + } + else + { + g_warning ("Could not load css provider: %s", error->message); + g_error_free (error); + } + + g_object_unref (css_file); + return provider; +} + +static void +theme_changed (GtkSettings *settings, + GParamSpec *pspec, + GeditApp *app) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (app); + + gchar *theme, *lc_theme, *theme_css; + + g_object_get (settings, "gtk-theme-name", &theme, NULL); + lc_theme = g_ascii_strdown (theme, -1); + g_free (theme); + + theme_css = g_strdup_printf ("gedit.%s.css", lc_theme); + g_free (lc_theme); + + if (priv->theme_provider != NULL) + { + gtk_style_context_remove_provider_for_screen (gdk_screen_get_default (), + GTK_STYLE_PROVIDER (priv->theme_provider)); + g_clear_object (&priv->theme_provider); + } + + priv->theme_provider = load_css_from_resource (theme_css, FALSE); + + g_free (theme_css); +} + +static void +setup_theme_extensions (GeditApp *app) +{ + GtkSettings *settings; + + settings = gtk_settings_get_default (); + g_signal_connect (settings, "notify::gtk-theme-name", + G_CALLBACK (theme_changed), app); + theme_changed (settings, NULL, app); +} + +static GMenuModel * +get_menu_model (GeditApp *app, + const char *id) +{ + GMenu *menu; + + menu = gtk_application_get_menu_by_id (GTK_APPLICATION (app), id); + + return menu ? G_MENU_MODEL (g_object_ref_sink (menu)) : NULL; +} + +static void +add_accelerator (GtkApplication *app, + const gchar *action_name, + const gchar *accel) +{ + const gchar *vaccels[] = { + accel, + NULL + }; + + gtk_application_set_accels_for_action (app, action_name, vaccels); +} + +static gboolean +show_menubar (void) +{ + GtkSettings *settings = gtk_settings_get_default (); + gboolean result; + + g_object_get (settings, + "gtk-shell-shows-menubar", &result, + NULL); + + return result; +} + +static void +gedit_app_startup (GApplication *application) +{ + GeditAppPrivate *priv; + GtkCssProvider *css_provider; + GtkSourceStyleSchemeManager *manager; + + priv = gedit_app_get_instance_private (GEDIT_APP (application)); + + G_APPLICATION_CLASS (gedit_app_parent_class)->startup (application); + + /* Setup debugging */ + gedit_debug_init (); + gedit_debug_message (DEBUG_APP, "Startup"); + + setup_theme_extensions (GEDIT_APP (application)); + + /* Load/init settings */ + _gedit_settings_get_singleton (); + priv->ui_settings = g_settings_new ("org.gnome.gedit.preferences.ui"); + priv->window_settings = g_settings_new ("org.gnome.gedit.state.window"); + + g_action_map_add_action_entries (G_ACTION_MAP (application), + app_entries, + G_N_ELEMENTS (app_entries), + application); + + /* menus */ + if (!show_menubar ()) + { + gtk_application_set_menubar (GTK_APPLICATION (application), NULL); + priv->hamburger_menu = get_menu_model (GEDIT_APP (application), + "hamburger-menu"); + } + + priv->notebook_menu = get_menu_model (GEDIT_APP (application), "notebook-menu"); + priv->tab_width_menu = get_menu_model (GEDIT_APP (application), "tab-width-menu"); + priv->line_col_menu = get_menu_model (GEDIT_APP (application), "line-col-menu"); + + /* Accelerators */ + add_accelerator (GTK_APPLICATION (application), "app.new-window", "N"); + add_accelerator (GTK_APPLICATION (application), "app.quit", "Q"); + add_accelerator (GTK_APPLICATION (application), "app.help", "F1"); + add_accelerator (GTK_APPLICATION (application), "app.shortcuts", "question"); + + add_accelerator (GTK_APPLICATION (application), "win.hamburger-menu", "F10"); + add_accelerator (GTK_APPLICATION (application), "win.open", "O"); + add_accelerator (GTK_APPLICATION (application), "win.save", "S"); + add_accelerator (GTK_APPLICATION (application), "win.save-as", "S"); + add_accelerator (GTK_APPLICATION (application), "win.save-all", "L"); + add_accelerator (GTK_APPLICATION (application), "win.new-tab", "T"); + add_accelerator (GTK_APPLICATION (application), "win.reopen-closed-tab", "T"); + add_accelerator (GTK_APPLICATION (application), "win.close", "W"); + add_accelerator (GTK_APPLICATION (application), "win.close-all", "W"); + add_accelerator (GTK_APPLICATION (application), "win.print", "P"); + add_accelerator (GTK_APPLICATION (application), "win.find", "F"); + add_accelerator (GTK_APPLICATION (application), "win.find-next", "G"); + add_accelerator (GTK_APPLICATION (application), "win.find-prev", "G"); + add_accelerator (GTK_APPLICATION (application), "win.replace", "H"); + add_accelerator (GTK_APPLICATION (application), "win.clear-highlight", "K"); + add_accelerator (GTK_APPLICATION (application), "win.goto-line", "I"); + add_accelerator (GTK_APPLICATION (application), "win.focus-active-view", "Escape"); + add_accelerator (GTK_APPLICATION (application), "win.side-panel", "F9"); + add_accelerator (GTK_APPLICATION (application), "win.bottom-panel", "F9"); + add_accelerator (GTK_APPLICATION (application), "win.fullscreen", "F11"); + add_accelerator (GTK_APPLICATION (application), "win.new-tab-group", "N"); + add_accelerator (GTK_APPLICATION (application), "win.previous-tab-group", "Page_Up"); + add_accelerator (GTK_APPLICATION (application), "win.next-tab-group", "Page_Down"); + add_accelerator (GTK_APPLICATION (application), "win.previous-document", "Page_Up"); + add_accelerator (GTK_APPLICATION (application), "win.next-document", "Page_Down"); + + load_accels (); + + /* Load custom css */ + g_object_unref (load_css_from_resource ("gedit-style.css", TRUE)); + css_provider = load_css_from_resource ("gedit-style-os.css", FALSE); + g_clear_object (&css_provider); + + /* + * We use the default gtksourceview style scheme manager so that plugins + * can obtain it easily without a gedit specific api, but we need to + * add our search path at startup before the manager is actually used. + */ + manager = gtk_source_style_scheme_manager_get_default (); + gtk_source_style_scheme_manager_append_search_path (manager, + gedit_dirs_get_user_styles_dir ()); + + priv->engine = gedit_plugins_engine_get_default (); + priv->extensions = peas_extension_set_new (PEAS_ENGINE (priv->engine), + GEDIT_TYPE_APP_ACTIVATABLE, + "app", GEDIT_APP (application), + NULL); + + g_signal_connect (priv->extensions, + "extension-added", + G_CALLBACK (extension_added), + application); + + g_signal_connect (priv->extensions, + "extension-removed", + G_CALLBACK (extension_removed), + application); + + peas_extension_set_foreach (priv->extensions, + (PeasExtensionSetForeachFunc) extension_added, + application); +} + +static void +gedit_app_activate (GApplication *application) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (GEDIT_APP (application)); + + open_files (application, + priv->new_window, + priv->new_document, + priv->line_position, + priv->column_position, + priv->encoding, + priv->stdin_stream, + priv->file_list, + priv->command_line); +} + +static void +clear_options (GeditApp *app) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (app); + + g_clear_object (&priv->stdin_stream); + g_slist_free_full (priv->file_list, g_object_unref); + + priv->new_window = FALSE; + priv->new_document = FALSE; + priv->encoding = NULL; + priv->file_list = NULL; + priv->line_position = 0; + priv->column_position = 0; + priv->command_line = NULL; +} + +static void +get_line_column_position (const gchar *arg, + gint *line, + gint *column) +{ + gchar **split; + + split = g_strsplit (arg, ":", 2); + + if (split != NULL) + { + if (split[0] != NULL) + { + *line = atoi (split[0]); + } + + if (split[1] != NULL) + { + *column = atoi (split[1]); + } + } + + g_strfreev (split); +} + +static gint +gedit_app_command_line (GApplication *application, + GApplicationCommandLine *cl) +{ + GeditAppPrivate *priv; + GVariantDict *options; + const gchar *encoding_charset; + const gchar **remaining_args; + + priv = gedit_app_get_instance_private (GEDIT_APP (application)); + + options = g_application_command_line_get_options_dict (cl); + + g_variant_dict_lookup (options, "new-window", "b", &priv->new_window); + g_variant_dict_lookup (options, "new-document", "b", &priv->new_document); + + if (g_variant_dict_contains (options, "wait")) + { + priv->command_line = cl; + } + + if (g_variant_dict_lookup (options, "encoding", "&s", &encoding_charset)) + { + priv->encoding = gtk_source_encoding_get_from_charset (encoding_charset); + + if (priv->encoding == NULL) + { + g_application_command_line_printerr (cl, + _("%s: invalid encoding."), + encoding_charset); + } + } + + /* Parse filenames */ + if (g_variant_dict_lookup (options, G_OPTION_REMAINING, "^a&ay", &remaining_args)) + { + gint i; + + for (i = 0; remaining_args[i]; i++) + { + if (*remaining_args[i] == '+') + { + if (*(remaining_args[i] + 1) == '\0') + { + /* goto the last line of the document */ + priv->line_position = G_MAXINT; + priv->column_position = 0; + } + else + { + get_line_column_position (remaining_args[i] + 1, + &priv->line_position, + &priv->column_position); + } + } + else if (*remaining_args[i] == '-' && *(remaining_args[i] + 1) == '\0') + { + priv->stdin_stream = g_application_command_line_get_stdin (cl); + } + else + { + GFile *file; + + file = g_application_command_line_create_file_for_arg (cl, remaining_args[i]); + priv->file_list = g_slist_prepend (priv->file_list, file); + } + } + + priv->file_list = g_slist_reverse (priv->file_list); + g_free (remaining_args); + } + + g_application_activate (application); + clear_options (GEDIT_APP (application)); + + return 0; +} + +static void +print_all_encodings (void) +{ + GSList *all_encodings; + GSList *l; + + all_encodings = gtk_source_encoding_get_all (); + + for (l = all_encodings; l != NULL; l = l->next) + { + const GtkSourceEncoding *encoding = l->data; + g_print ("%s\n", gtk_source_encoding_get_charset (encoding)); + } + + g_slist_free (all_encodings); +} + +static gint +gedit_app_handle_local_options (GApplication *application, + GVariantDict *options) +{ + if (g_variant_dict_contains (options, "version")) + { + g_print ("%s - Version %s\n", g_get_application_name (), VERSION); + return 0; + } + + if (g_variant_dict_contains (options, "list-encodings")) + { + print_all_encodings (); + return 0; + } + + if (g_variant_dict_contains (options, "standalone")) + { + GApplicationFlags old_flags; + + old_flags = g_application_get_flags (application); + g_application_set_flags (application, old_flags | G_APPLICATION_NON_UNIQUE); + } + + if (g_variant_dict_contains (options, "wait")) + { + GApplicationFlags old_flags; + + old_flags = g_application_get_flags (application); + g_application_set_flags (application, old_flags | G_APPLICATION_IS_LAUNCHER); + } + + return -1; +} + +/* Note: when launched from command line we do not reach this method + * since we manually handle the command line parameters in order to + * parse +LINE:COL, stdin, etc. + * However this method is called when open() is called via dbus, for + * instance when double clicking on a file in nautilus + */ +static void +gedit_app_open (GApplication *application, + GFile **files, + gint n_files, + const gchar *hint) +{ + gint i; + GSList *file_list = NULL; + + for (i = 0; i < n_files; i++) + { + file_list = g_slist_prepend (file_list, files[i]); + } + + file_list = g_slist_reverse (file_list); + + open_files (application, + FALSE, + FALSE, + 0, + 0, + NULL, + NULL, + file_list, + NULL); + + g_slist_free (file_list); +} + +static gboolean +ensure_user_config_dir (void) +{ + const gchar *config_dir; + gboolean ret = TRUE; + gint res; + + config_dir = gedit_dirs_get_user_config_dir (); + if (config_dir == NULL) + { + g_warning ("Could not get config directory\n"); + return FALSE; + } + + res = g_mkdir_with_parents (config_dir, 0755); + if (res < 0) + { + g_warning ("Could not create config directory\n"); + ret = FALSE; + } + + return ret; +} + +static void +save_accels (void) +{ + gchar *filename; + + filename = g_build_filename (gedit_dirs_get_user_config_dir (), + "accels", + NULL); + if (filename != NULL) + { + gedit_debug_message (DEBUG_APP, "Saving keybindings in %s\n", filename); + gtk_accel_map_save (filename); + g_free (filename); + } +} + +static gchar * +get_page_setup_file (void) +{ + const gchar *config_dir; + gchar *setup = NULL; + + config_dir = gedit_dirs_get_user_config_dir (); + + if (config_dir != NULL) + { + setup = g_build_filename (config_dir, + GEDIT_PAGE_SETUP_FILE, + NULL); + } + + return setup; +} + +static void +save_page_setup (GeditApp *app) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (app); + + if (priv->page_setup != NULL) + { + gchar *filename; + GError *error = NULL; + + filename = get_page_setup_file (); + + gtk_page_setup_to_file (priv->page_setup, + filename, + &error); + if (error) + { + g_warning ("%s", error->message); + g_error_free (error); + } + + g_free (filename); + } +} + +static gchar * +get_print_settings_file (void) +{ + const gchar *config_dir; + gchar *settings = NULL; + + config_dir = gedit_dirs_get_user_config_dir (); + + if (config_dir != NULL) + { + settings = g_build_filename (config_dir, + GEDIT_PRINT_SETTINGS_FILE, + NULL); + } + + return settings; +} + +static void +save_print_settings (GeditApp *app) +{ + GeditAppPrivate *priv; + + priv = gedit_app_get_instance_private (app); + + if (priv->print_settings != NULL) + { + gchar *filename; + GError *error = NULL; + + filename = get_print_settings_file (); + + gtk_print_settings_to_file (priv->print_settings, + filename, + &error); + if (error) + { + g_warning ("%s", error->message); + g_error_free (error); + } + + g_free (filename); + } +} + +static void +gedit_app_shutdown (GApplication *app) +{ + gedit_debug_message (DEBUG_APP, "Quitting\n"); + + /* Last window is gone... save some settings and exit */ + ensure_user_config_dir (); + + save_accels (); + save_page_setup (GEDIT_APP (app)); + save_print_settings (GEDIT_APP (app)); + + G_APPLICATION_CLASS (gedit_app_parent_class)->shutdown (app); +} + +static gboolean +window_delete_event (GeditWindow *window, + GdkEvent *event, + GeditApp *app) +{ + GeditWindowState ws; + + ws = gedit_window_get_state (window); + + if (ws & + (GEDIT_WINDOW_STATE_SAVING | GEDIT_WINDOW_STATE_PRINTING)) + { + return TRUE; + } + + _gedit_cmd_file_quit (NULL, NULL, window); + + /* Do not destroy the window */ + return TRUE; +} + +static GeditWindow * +gedit_app_create_window_impl (GeditApp *app) +{ + GeditWindow *window; + + window = g_object_new (GEDIT_TYPE_WINDOW, "application", app, NULL); + + gedit_debug_message (DEBUG_APP, "Window created"); + + g_signal_connect (window, + "delete_event", + G_CALLBACK (window_delete_event), + app); + + return window; +} + +static void +gedit_app_class_init (GeditAppClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GApplicationClass *app_class = G_APPLICATION_CLASS (klass); + + object_class->dispose = gedit_app_dispose; + + app_class->startup = gedit_app_startup; + app_class->activate = gedit_app_activate; + app_class->command_line = gedit_app_command_line; + app_class->handle_local_options = gedit_app_handle_local_options; + app_class->open = gedit_app_open; + app_class->shutdown = gedit_app_shutdown; + + klass->show_help = gedit_app_show_help_impl; + klass->help_link_id = gedit_app_help_link_id_impl; + klass->set_window_title = gedit_app_set_window_title_impl; + klass->create_window = gedit_app_create_window_impl; +} + +static void +load_page_setup (GeditApp *app) +{ + GeditAppPrivate *priv; + gchar *filename; + GError *error = NULL; + + priv = gedit_app_get_instance_private (app); + + g_return_if_fail (priv->page_setup == NULL); + + filename = get_page_setup_file (); + + priv->page_setup = gtk_page_setup_new_from_file (filename, &error); + if (error) + { + /* Ignore file not found error */ + if (error->domain != G_FILE_ERROR || + error->code != G_FILE_ERROR_NOENT) + { + g_warning ("%s", error->message); + } + + g_error_free (error); + } + + g_free (filename); + + /* fall back to default settings */ + if (priv->page_setup == NULL) + { + priv->page_setup = gtk_page_setup_new (); + } +} + +static void +load_print_settings (GeditApp *app) +{ + GeditAppPrivate *priv; + gchar *filename; + GError *error = NULL; + + priv = gedit_app_get_instance_private (app); + + g_return_if_fail (priv->print_settings == NULL); + + filename = get_print_settings_file (); + + priv->print_settings = gtk_print_settings_new_from_file (filename, &error); + if (error != NULL) + { + /* - Ignore file not found error. + * - Ignore empty file error, i.e. group not found. This happens + * when we click on cancel in the print dialog, when using the + * printing for the first time in gedit. + */ + if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT) && + !g_error_matches (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_GROUP_NOT_FOUND)) + { + g_warning ("Load print settings error: %s", error->message); + } + + g_error_free (error); + } + + g_free (filename); + + /* fall back to default settings */ + if (priv->print_settings == NULL) + { + priv->print_settings = gtk_print_settings_new (); + } +} + +static void +gedit_app_init (GeditApp *app) +{ + TeplApplication *tepl_app; + + g_set_application_name ("gedit"); + gtk_window_set_default_icon_name ("org.gnome.gedit"); + + g_application_add_main_option_entries (G_APPLICATION (app), options); + + tepl_app = tepl_application_get_from_gtk_application (GTK_APPLICATION (app)); + tepl_application_handle_metadata (tepl_app); +} + +/** + * gedit_app_create_window: + * @app: the #GeditApp + * @screen: (allow-none): + * + * Create a new #GeditWindow part of @app. + * + * Return value: (transfer none): the new #GeditWindow + */ +GeditWindow * +gedit_app_create_window (GeditApp *app, + GdkScreen *screen) +{ + GeditAppPrivate *priv; + GeditWindow *window; + GdkWindowState state; + gint w, h; + + gedit_debug (DEBUG_APP); + + priv = gedit_app_get_instance_private (app); + + window = GEDIT_APP_GET_CLASS (app)->create_window (app); + + if (screen != NULL) + { + gtk_window_set_screen (GTK_WINDOW (window), screen); + } + + state = g_settings_get_int (priv->window_settings, + GEDIT_SETTINGS_WINDOW_STATE); + + g_settings_get (priv->window_settings, + GEDIT_SETTINGS_WINDOW_SIZE, + "(ii)", &w, &h); + + gtk_window_set_default_size (GTK_WINDOW (window), w, h); + + if ((state & GDK_WINDOW_STATE_MAXIMIZED) != 0) + { + gtk_window_maximize (GTK_WINDOW (window)); + } + else + { + gtk_window_unmaximize (GTK_WINDOW (window)); + } + + if ((state & GDK_WINDOW_STATE_STICKY ) != 0) + { + gtk_window_stick (GTK_WINDOW (window)); + } + else + { + gtk_window_unstick (GTK_WINDOW (window)); + } + + return window; +} + +/** + * gedit_app_get_main_windows: + * @app: the #GeditApp + * + * Returns all #GeditWindows currently open in #GeditApp. + * This differs from gtk_application_get_windows() since it does not + * include the preferences dialog and other auxiliary windows. + * + * Return value: (element-type Gedit.Window) (transfer container): + * a newly allocated list of #GeditWindow objects + */ +GList * +gedit_app_get_main_windows (GeditApp *app) +{ + GList *res = NULL; + GList *windows, *l; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + windows = gtk_application_get_windows (GTK_APPLICATION (app)); + for (l = windows; l != NULL; l = g_list_next (l)) + { + if (GEDIT_IS_WINDOW (l->data)) + { + res = g_list_prepend (res, l->data); + } + } + + return g_list_reverse (res); +} + +/** + * gedit_app_get_documents: + * @app: the #GeditApp + * + * Returns all the documents currently open in #GeditApp. + * + * Return value: (element-type Gedit.Document) (transfer container): + * a newly allocated list of #GeditDocument objects + */ +GList * +gedit_app_get_documents (GeditApp *app) +{ + GList *res = NULL; + GList *windows, *l; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + windows = gtk_application_get_windows (GTK_APPLICATION (app)); + for (l = windows; l != NULL; l = g_list_next (l)) + { + if (GEDIT_IS_WINDOW (l->data)) + { + res = g_list_concat (res, + gedit_window_get_documents (GEDIT_WINDOW (l->data))); + } + } + + return res; +} + +/** + * gedit_app_get_views: + * @app: the #GeditApp + * + * Returns all the views currently present in #GeditApp. + * + * Return value: (element-type Gedit.View) (transfer container): + * a newly allocated list of #GeditView objects + */ +GList * +gedit_app_get_views (GeditApp *app) +{ + GList *res = NULL; + GList *windows, *l; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + windows = gtk_application_get_windows (GTK_APPLICATION (app)); + for (l = windows; l != NULL; l = g_list_next (l)) + { + if (GEDIT_IS_WINDOW (l->data)) + { + res = g_list_concat (res, + gedit_window_get_views (GEDIT_WINDOW (l->data))); + } + } + + return res; +} + +gboolean +gedit_app_show_help (GeditApp *app, + GtkWindow *parent, + const gchar *name, + const gchar *link_id) +{ + g_return_val_if_fail (GEDIT_IS_APP (app), FALSE); + g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), FALSE); + + return GEDIT_APP_GET_CLASS (app)->show_help (app, parent, name, link_id); +} + +void +gedit_app_set_window_title (GeditApp *app, + GeditWindow *window, + const gchar *title) +{ + g_return_if_fail (GEDIT_IS_APP (app)); + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + GEDIT_APP_GET_CLASS (app)->set_window_title (app, window, title); +} + +gboolean +gedit_app_process_window_event (GeditApp *app, + GeditWindow *window, + GdkEvent *event) +{ + g_return_val_if_fail (GEDIT_IS_APP (app), FALSE); + g_return_val_if_fail (GEDIT_IS_WINDOW (window), FALSE); + + if (GEDIT_APP_GET_CLASS (app)->process_window_event) + { + return GEDIT_APP_GET_CLASS (app)->process_window_event (app, window, event); + } + + return FALSE; +} + +static GMenuModel * +find_extension_point_section (GMenuModel *model, + const gchar *extension_point) +{ + gint i, n_items; + GMenuModel *section = NULL; + + n_items = g_menu_model_get_n_items (model); + + for (i = 0; i < n_items && !section; i++) + { + gchar *id = NULL; + + if (g_menu_model_get_item_attribute (model, i, "id", "s", &id) && + strcmp (id, extension_point) == 0) + { + section = g_menu_model_get_item_link (model, i, G_MENU_LINK_SECTION); + } + else + { + GMenuModel *subsection; + GMenuModel *submenu; + gint j, j_items; + + subsection = g_menu_model_get_item_link (model, i, G_MENU_LINK_SECTION); + + if (subsection == NULL) + { + subsection = model; + } + + j_items = g_menu_model_get_n_items (subsection); + + for (j = 0; j < j_items && !section; j++) + { + submenu = g_menu_model_get_item_link (subsection, j, G_MENU_LINK_SUBMENU); + if (submenu) + { + section = find_extension_point_section (submenu, extension_point); + } + } + } + + g_free (id); + } + + return section; +} + +/* Returns a copy */ +GtkPageSetup * +_gedit_app_get_default_page_setup (GeditApp *app) +{ + GeditAppPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + priv = gedit_app_get_instance_private (app); + + if (priv->page_setup == NULL) + { + load_page_setup (app); + } + + return gtk_page_setup_copy (priv->page_setup); +} + +void +_gedit_app_set_default_page_setup (GeditApp *app, + GtkPageSetup *page_setup) +{ + GeditAppPrivate *priv; + + g_return_if_fail (GEDIT_IS_APP (app)); + g_return_if_fail (GTK_IS_PAGE_SETUP (page_setup)); + + priv = gedit_app_get_instance_private (app); + + g_set_object (&priv->page_setup, page_setup); +} + +/* Returns a copy */ +GtkPrintSettings * +_gedit_app_get_default_print_settings (GeditApp *app) +{ + GeditAppPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + priv = gedit_app_get_instance_private (app); + + if (priv->print_settings == NULL) + { + load_print_settings (app); + } + + return gtk_print_settings_copy (priv->print_settings); +} + +void +_gedit_app_set_default_print_settings (GeditApp *app, + GtkPrintSettings *settings) +{ + GeditAppPrivate *priv; + + g_return_if_fail (GEDIT_IS_APP (app)); + g_return_if_fail (GTK_IS_PRINT_SETTINGS (settings)); + + priv = gedit_app_get_instance_private (app); + + if (priv->print_settings != NULL) + { + g_object_unref (priv->print_settings); + } + + priv->print_settings = g_object_ref (settings); +} + +GMenuModel * +_gedit_app_get_hamburger_menu (GeditApp *app) +{ + GeditAppPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + priv = gedit_app_get_instance_private (app); + + return priv->hamburger_menu; +} + +GMenuModel * +_gedit_app_get_notebook_menu (GeditApp *app) +{ + GeditAppPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + priv = gedit_app_get_instance_private (app); + + return priv->notebook_menu; +} + +GMenuModel * +_gedit_app_get_tab_width_menu (GeditApp *app) +{ + GeditAppPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + priv = gedit_app_get_instance_private (app); + + return priv->tab_width_menu; +} + +GMenuModel * +_gedit_app_get_line_col_menu (GeditApp *app) +{ + GeditAppPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + + priv = gedit_app_get_instance_private (app); + + return priv->line_col_menu; +} + +GeditMenuExtension * +_gedit_app_extend_menu (GeditApp *app, + const gchar *extension_point) +{ + GeditAppPrivate *priv; + GMenuModel *model; + GMenuModel *section; + + g_return_val_if_fail (GEDIT_IS_APP (app), NULL); + g_return_val_if_fail (extension_point != NULL, NULL); + + priv = gedit_app_get_instance_private (app); + + /* First look in the gear or window menu */ + if (priv->hamburger_menu) + { + model = priv->hamburger_menu; + } + else + { + model = gtk_application_get_menubar (GTK_APPLICATION (app)); + } + + section = find_extension_point_section (model, extension_point); + + /* otherwise look in the app menu */ + if (section == NULL) + { + model = gtk_application_get_app_menu (GTK_APPLICATION (app)); + + if (model != NULL) + { + section = find_extension_point_section (model, extension_point); + } + } + + return section != NULL ? gedit_menu_extension_new (G_MENU (section)) : NULL; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-app.h b/gedit/gedit-app.h new file mode 100644 index 0000000..3d7273e --- /dev/null +++ b/gedit/gedit-app.h @@ -0,0 +1,82 @@ +/* + * gedit-app.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_APP_H +#define GEDIT_APP_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_APP (gedit_app_get_type()) + +G_DECLARE_DERIVABLE_TYPE (GeditApp, gedit_app, GEDIT, APP, GtkApplication) + +struct _GeditAppClass +{ + GtkApplicationClass parent_class; + + gboolean (*show_help) (GeditApp *app, + GtkWindow *parent, + const gchar *name, + const gchar *link_id); + + gchar *(*help_link_id) (GeditApp *app, + const gchar *name, + const gchar *link_id); + + void (*set_window_title) (GeditApp *app, + GeditWindow *window, + const gchar *title); + + GeditWindow *(*create_window) (GeditApp *app); + + gboolean (*process_window_event) (GeditApp *app, + GeditWindow *window, + GdkEvent *event); +}; + +GeditWindow *gedit_app_create_window (GeditApp *app, + GdkScreen *screen); + +GList *gedit_app_get_main_windows (GeditApp *app); + +GList *gedit_app_get_documents (GeditApp *app); + +GList *gedit_app_get_views (GeditApp *app); + +gboolean gedit_app_show_help (GeditApp *app, + GtkWindow *parent, + const gchar *name, + const gchar *link_id); + +void gedit_app_set_window_title (GeditApp *app, + GeditWindow *window, + const gchar *title); +gboolean gedit_app_process_window_event (GeditApp *app, + GeditWindow *window, + GdkEvent *event); + +G_END_DECLS + +#endif /* GEDIT_APP_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-close-confirmation-dialog.c b/gedit/gedit-close-confirmation-dialog.c new file mode 100644 index 0000000..cbe4d89 --- /dev/null +++ b/gedit/gedit-close-confirmation-dialog.c @@ -0,0 +1,551 @@ +/* + * gedit-close-confirmation-dialog.c + * This file is part of gedit + * + * Copyright (C) 2004-2005 GNOME Foundation + * Copyright (C) 2015 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-close-confirmation-dialog.h" + +#include + +#include +#include +#include +#include +#include + +/* Mode */ +enum +{ + SINGLE_DOC_MODE, + MULTIPLE_DOCS_MODE +}; + +#define GET_MODE(dlg) (((dlg->unsaved_documents != NULL) && \ + (dlg->unsaved_documents->next == NULL)) ? \ + SINGLE_DOC_MODE : MULTIPLE_DOCS_MODE) + +#define GEDIT_SAVE_DOCUMENT_KEY "gedit-save-document" + +struct _GeditCloseConfirmationDialog +{ + GtkMessageDialog parent_instance; + + GList *unsaved_documents; + GList *selected_documents; + GtkWidget *list_box; +}; + +enum +{ + PROP_0, + PROP_UNSAVED_DOCUMENTS, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE (GeditCloseConfirmationDialog, + gedit_close_confirmation_dialog, + GTK_TYPE_MESSAGE_DIALOG) + +static void set_unsaved_document (GeditCloseConfirmationDialog *dlg, + const GList *list); + +static GList * +get_selected_docs (GtkWidget *list_box) +{ + GList *rows; + GList *l; + GList *ret = NULL; + + rows = gtk_container_get_children (GTK_CONTAINER (list_box)); + for (l = rows; l != NULL; l = l->next) + { + GtkWidget *row = l->data; + GtkWidget *check_button; + + check_button = gtk_bin_get_child (GTK_BIN (row)); + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_button))) + { + GeditDocument *doc; + + doc = g_object_get_data (G_OBJECT (row), GEDIT_SAVE_DOCUMENT_KEY); + g_return_val_if_fail (doc != NULL, NULL); + + ret = g_list_prepend (ret, doc); + } + } + + g_list_free (rows); + + return g_list_reverse (ret); +} + +/* Since we connect in the constructor we are sure this handler will be called + * before the user ones. + */ +static void +response_cb (GeditCloseConfirmationDialog *dlg, + gint response_id, + gpointer data) +{ + g_return_if_fail (GEDIT_IS_CLOSE_CONFIRMATION_DIALOG (dlg)); + + if (dlg->selected_documents != NULL) + { + g_list_free (dlg->selected_documents); + dlg->selected_documents = NULL; + } + + if (response_id == GTK_RESPONSE_YES) + { + if (GET_MODE (dlg) == SINGLE_DOC_MODE) + { + dlg->selected_documents = g_list_copy (dlg->unsaved_documents); + } + else + { + dlg->selected_documents = get_selected_docs (dlg->list_box); + } + } +} + +static void +gedit_close_confirmation_dialog_init (GeditCloseConfirmationDialog *dlg) +{ + gtk_window_set_title (GTK_WINDOW (dlg), ""); + gtk_window_set_modal (GTK_WINDOW (dlg), TRUE); + gtk_window_set_destroy_with_parent (GTK_WINDOW (dlg), TRUE); + + g_signal_connect (dlg, + "response", + G_CALLBACK (response_cb), + NULL); +} + +static void +gedit_close_confirmation_dialog_finalize (GObject *object) +{ + GeditCloseConfirmationDialog *dlg = GEDIT_CLOSE_CONFIRMATION_DIALOG (object); + + g_list_free (dlg->unsaved_documents); + g_list_free (dlg->selected_documents); + + /* Call the parent's destructor */ + G_OBJECT_CLASS (gedit_close_confirmation_dialog_parent_class)->finalize (object); +} + +static void +gedit_close_confirmation_dialog_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditCloseConfirmationDialog *dlg; + + dlg = GEDIT_CLOSE_CONFIRMATION_DIALOG (object); + + switch (prop_id) + { + case PROP_UNSAVED_DOCUMENTS: + set_unsaved_document (dlg, g_value_get_pointer (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_close_confirmation_dialog_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditCloseConfirmationDialog *dlg = GEDIT_CLOSE_CONFIRMATION_DIALOG (object); + + switch (prop_id) + { + case PROP_UNSAVED_DOCUMENTS: + g_value_set_pointer (value, dlg->unsaved_documents); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_close_confirmation_dialog_class_init (GeditCloseConfirmationDialogClass *klass) +{ + GObjectClass *gobject_class = G_OBJECT_CLASS (klass); + + gobject_class->set_property = gedit_close_confirmation_dialog_set_property; + gobject_class->get_property = gedit_close_confirmation_dialog_get_property; + gobject_class->finalize = gedit_close_confirmation_dialog_finalize; + + properties[PROP_UNSAVED_DOCUMENTS] = + g_param_spec_pointer ("unsaved-documents", + "Unsaved Documents", + "List of Unsaved Documents", + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (gobject_class, LAST_PROP, properties); +} + +GList * +gedit_close_confirmation_dialog_get_selected_documents (GeditCloseConfirmationDialog *dlg) +{ + g_return_val_if_fail (GEDIT_IS_CLOSE_CONFIRMATION_DIALOG (dlg), NULL); + + return g_list_copy (dlg->selected_documents); +} + +GtkWidget * +gedit_close_confirmation_dialog_new (GtkWindow *parent, + GList *unsaved_documents) +{ + GtkWidget *dlg; + + g_return_val_if_fail (unsaved_documents != NULL, NULL); + + dlg = g_object_new (GEDIT_TYPE_CLOSE_CONFIRMATION_DIALOG, + "unsaved-documents", unsaved_documents, + "message-type", GTK_MESSAGE_QUESTION, + NULL); + + if (parent != NULL) + { + gtk_window_group_add_window (gedit_window_get_group (GEDIT_WINDOW (parent)), + GTK_WINDOW (dlg)); + + gtk_window_set_transient_for (GTK_WINDOW (dlg), parent); + } + + return dlg; +} + +GtkWidget * +gedit_close_confirmation_dialog_new_single (GtkWindow *parent, + GeditDocument *doc) +{ + GtkWidget *dlg; + GList *unsaved_documents; + + g_return_val_if_fail (doc != NULL, NULL); + + unsaved_documents = g_list_prepend (NULL, doc); + dlg = gedit_close_confirmation_dialog_new (parent, unsaved_documents); + g_list_free (unsaved_documents); + + return dlg; +} + +static void +add_buttons (GeditCloseConfirmationDialog *dlg) +{ + GtkWidget *close_button; + gboolean save_as = FALSE; + + close_button = gtk_dialog_add_button (GTK_DIALOG (dlg), + _("Close _without Saving"), + GTK_RESPONSE_NO); + + gtk_style_context_add_class (gtk_widget_get_style_context (close_button), + "destructive-action"); + + gtk_dialog_add_button (GTK_DIALOG (dlg), _("_Cancel"), GTK_RESPONSE_CANCEL); + + if (GET_MODE (dlg) == SINGLE_DOC_MODE) + { + GeditDocument *doc; + GtkSourceFile *file; + + doc = GEDIT_DOCUMENT (dlg->unsaved_documents->data); + file = gedit_document_get_file (doc); + + if (gtk_source_file_is_readonly (file) || + gedit_document_is_untitled (doc)) + { + save_as = TRUE; + } + } + + gtk_dialog_add_button (GTK_DIALOG (dlg), + save_as ? _("_Save As…") : _("_Save"), + GTK_RESPONSE_YES); + gtk_dialog_set_default_response (GTK_DIALOG (dlg), + GTK_RESPONSE_YES); +} + +static gchar * +get_text_secondary_label (GeditDocument *doc) +{ + glong seconds; + gchar *secondary_msg; + + seconds = MAX (1, _gedit_document_get_seconds_since_last_save_or_load (doc)); + + if (seconds < 55) + { + secondary_msg = g_strdup_printf ( + ngettext ("If you don’t save, changes from the last %ld second " + "will be permanently lost.", + "If you don’t save, changes from the last %ld seconds " + "will be permanently lost.", + seconds), + seconds); + } + else if (seconds < 75) /* 55 <= seconds < 75 */ + { + secondary_msg = g_strdup (_("If you don’t save, changes from the last minute " + "will be permanently lost.")); + } + else if (seconds < 110) /* 75 <= seconds < 110 */ + { + secondary_msg = g_strdup_printf ( + ngettext ("If you don’t save, changes from the last minute and %ld " + "second will be permanently lost.", + "If you don’t save, changes from the last minute and %ld " + "seconds will be permanently lost.", + seconds - 60 ), + seconds - 60); + } + else if (seconds < 3600) + { + secondary_msg = g_strdup_printf ( + ngettext ("If you don’t save, changes from the last %ld minute " + "will be permanently lost.", + "If you don’t save, changes from the last %ld minutes " + "will be permanently lost.", + seconds / 60), + seconds / 60); + } + else if (seconds < 7200) + { + gint minutes; + seconds -= 3600; + + minutes = seconds / 60; + if (minutes < 5) + { + secondary_msg = g_strdup (_("If you don’t save, changes from the last hour " + "will be permanently lost.")); + } + else + { + secondary_msg = g_strdup_printf ( + ngettext ("If you don’t save, changes from the last hour and %d " + "minute will be permanently lost.", + "If you don’t save, changes from the last hour and %d " + "minutes will be permanently lost.", + minutes), + minutes); + } + } + else + { + gint hours; + + hours = seconds / 3600; + + secondary_msg = g_strdup_printf ( + ngettext ("If you don’t save, changes from the last %d hour " + "will be permanently lost.", + "If you don’t save, changes from the last %d hours " + "will be permanently lost.", + hours), + hours); + } + + return secondary_msg; +} + +static void +build_single_doc_dialog (GeditCloseConfirmationDialog *dlg) +{ + GeditDocument *doc; + gchar *doc_name; + gchar *str; + gchar *markup_str; + + g_return_if_fail (dlg->unsaved_documents->data != NULL); + doc = GEDIT_DOCUMENT (dlg->unsaved_documents->data); + + add_buttons (dlg); + + /* Primary message */ + doc_name = gedit_document_get_short_name_for_display (doc); + + str = g_markup_printf_escaped (_("Save changes to document “%s” before closing?"), + doc_name); + + g_free (doc_name); + + markup_str = g_strconcat ("", str, "", NULL); + g_free (str); + + gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dlg), markup_str); + g_free (markup_str); + + /* Secondary message */ + str = get_text_secondary_label (doc); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dlg), "%s", str); + g_free (str); +} + +static GtkWidget * +create_list_box (GeditCloseConfirmationDialog *dlg) +{ + GtkWidget *list_box; + GList *l; + + list_box = gtk_list_box_new (); + + for (l = dlg->unsaved_documents; l != NULL; l = l->next) + { + GeditDocument *doc = l->data; + gchar *name; + GtkWidget *check_button; + GtkWidget *row; + + name = gedit_document_get_short_name_for_display (doc); + check_button = gtk_check_button_new_with_label (name); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check_button), TRUE); + gtk_widget_set_halign (check_button, GTK_ALIGN_START); + g_free (name); + + row = gtk_list_box_row_new (); + gtk_container_add (GTK_CONTAINER (row), check_button); + gtk_widget_show_all (row); + + g_object_set_data_full (G_OBJECT (row), + GEDIT_SAVE_DOCUMENT_KEY, + g_object_ref (doc), + (GDestroyNotify) g_object_unref); + + gtk_list_box_insert (GTK_LIST_BOX (list_box), row, -1); + } + + return list_box; +} + +static void +build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg) +{ + GtkWidget *content_area; + GtkWidget *vbox; + GtkWidget *select_label; + GtkWidget *scrolledwindow; + GtkWidget *secondary_label; + gchar *str; + gchar *markup_str; + + add_buttons (dlg); + + gtk_window_set_resizable (GTK_WINDOW (dlg), TRUE); + + /* Primary message */ + str = g_strdup_printf ( + ngettext ("There is %d document with unsaved changes. " + "Save changes before closing?", + "There are %d documents with unsaved changes. " + "Save changes before closing?", + g_list_length (dlg->unsaved_documents)), + g_list_length (dlg->unsaved_documents)); + + markup_str = g_strconcat ("", str, "", NULL); + g_free (str); + + gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dlg), markup_str); + g_free (markup_str); + + /* List of unsaved documents */ + content_area = gtk_dialog_get_content_area (GTK_DIALOG (dlg)); + gtk_box_set_spacing (GTK_BOX (content_area), 10); + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); + gtk_widget_set_margin_start (vbox, 30); + gtk_widget_set_margin_end (vbox, 30); + gtk_widget_set_margin_bottom (vbox, 12); + gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); + + select_label = gtk_label_new_with_mnemonic (_("S_elect the documents you want to save:")); + gtk_box_pack_start (GTK_BOX (vbox), select_label, FALSE, FALSE, 0); + gtk_label_set_line_wrap (GTK_LABEL (select_label), TRUE); + gtk_label_set_max_width_chars (GTK_LABEL (select_label), 72); + gtk_widget_set_halign (select_label, GTK_ALIGN_START); + + scrolledwindow = gtk_scrolled_window_new (NULL, NULL); + gtk_box_pack_start (GTK_BOX (vbox), scrolledwindow, TRUE, TRUE, 0); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow), + GTK_SHADOW_IN); + gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (scrolledwindow), 90); + + dlg->list_box = create_list_box (dlg); + gtk_container_add (GTK_CONTAINER (scrolledwindow), dlg->list_box); + + /* Secondary label */ + secondary_label = gtk_label_new (_("If you don’t save, " + "all your changes will be permanently lost.")); + gtk_box_pack_start (GTK_BOX (vbox), secondary_label, FALSE, FALSE, 0); + gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE); + gtk_widget_set_halign (secondary_label, GTK_ALIGN_CENTER); + gtk_widget_set_valign (secondary_label, GTK_ALIGN_START); + gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_max_width_chars (GTK_LABEL (secondary_label), 72); + + gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), dlg->list_box); + + gtk_widget_show_all (vbox); +} + +static void +set_unsaved_document (GeditCloseConfirmationDialog *dlg, + const GList *list) +{ + g_return_if_fail (list != NULL); + + g_return_if_fail (dlg->unsaved_documents == NULL); + + dlg->unsaved_documents = g_list_copy ((GList *)list); + + if (GET_MODE (dlg) == SINGLE_DOC_MODE) + { + build_single_doc_dialog (dlg); + } + else + { + build_multiple_docs_dialog (dlg); + } +} + +const GList * +gedit_close_confirmation_dialog_get_unsaved_documents (GeditCloseConfirmationDialog *dlg) +{ + g_return_val_if_fail (GEDIT_IS_CLOSE_CONFIRMATION_DIALOG (dlg), NULL); + + return dlg->unsaved_documents; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-close-confirmation-dialog.h b/gedit/gedit-close-confirmation-dialog.h new file mode 100644 index 0000000..cfdb06e --- /dev/null +++ b/gedit/gedit-close-confirmation-dialog.h @@ -0,0 +1,46 @@ +/* + * gedit-close-confirmation-dialog.h + * This file is part of gedit + * + * Copyright (C) 2004-2005 GNOME Foundation + * Copyright (C) 2015 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_CLOSE_CONFIRMATION_DIALOG_H +#define GEDIT_CLOSE_CONFIRMATION_DIALOG_H + +#include +#include +#include + +#define GEDIT_TYPE_CLOSE_CONFIRMATION_DIALOG (gedit_close_confirmation_dialog_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditCloseConfirmationDialog, gedit_close_confirmation_dialog, + GEDIT, CLOSE_CONFIRMATION_DIALOG, + GtkMessageDialog) + +GtkWidget *gedit_close_confirmation_dialog_new (GtkWindow *parent, + GList *unsaved_documents); + +GtkWidget *gedit_close_confirmation_dialog_new_single (GtkWindow *parent, + GeditDocument *doc); + +const GList *gedit_close_confirmation_dialog_get_unsaved_documents (GeditCloseConfirmationDialog *dlg); + +GList *gedit_close_confirmation_dialog_get_selected_documents (GeditCloseConfirmationDialog *dlg); + +#endif /* GEDIT_CLOSE_CONFIRMATION_DIALOG_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-documents.c b/gedit/gedit-commands-documents.c new file mode 100644 index 0000000..34b7846 --- /dev/null +++ b/gedit/gedit-commands-documents.c @@ -0,0 +1,106 @@ +/* + * gedit-documents-commands.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include + +#include "gedit-window.h" +#include "gedit-notebook.h" +#include "gedit-multi-notebook.h" +#include "gedit-debug.h" + +void +_gedit_cmd_documents_previous_document (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GtkNotebook *notebook; + + gedit_debug (DEBUG_COMMANDS); + + notebook = GTK_NOTEBOOK (_gedit_window_get_notebook (window)); + gtk_notebook_prev_page (notebook); +} + +void +_gedit_cmd_documents_next_document (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GtkNotebook *notebook; + + gedit_debug (DEBUG_COMMANDS); + + notebook = GTK_NOTEBOOK (_gedit_window_get_notebook (window)); + gtk_notebook_next_page (notebook); +} + +void +_gedit_cmd_documents_move_to_new_window (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_window_get_active_tab (window); + + if (tab == NULL) + return; + + _gedit_window_move_tab_to_new_window (window, tab); +} + +/* Methods releated with the tab groups */ +void +_gedit_cmd_documents_new_tab_group (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gedit_multi_notebook_add_new_notebook (GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (GEDIT_WINDOW (user_data)))); +} + +void +_gedit_cmd_documents_previous_tab_group (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gedit_multi_notebook_previous_notebook (GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (GEDIT_WINDOW (user_data)))); +} + +void +_gedit_cmd_documents_next_tab_group (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gedit_multi_notebook_next_notebook (GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (GEDIT_WINDOW (user_data)))); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-edit.c b/gedit/gedit-commands-edit.c new file mode 100644 index 0000000..66ea017 --- /dev/null +++ b/gedit/gedit-commands-edit.c @@ -0,0 +1,205 @@ +/* + * gedit-commands-edit.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include + +#include "gedit-window.h" +#include "gedit-debug.h" +#include "gedit-view.h" +#include "gedit-preferences-dialog.h" + +void +_gedit_cmd_edit_undo (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + GtkSourceBuffer *active_document; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + active_document = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (active_view))); + + gtk_source_buffer_undo (active_document); + + tepl_view_scroll_to_cursor (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_redo (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + GtkSourceBuffer *active_document; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + active_document = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (active_view))); + + gtk_source_buffer_redo (active_document); + + tepl_view_scroll_to_cursor (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_cut (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + tepl_view_cut_clipboard (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_copy (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + tepl_view_copy_clipboard (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_paste (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + tepl_view_paste_clipboard (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_delete (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + tepl_view_delete_selection (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_select_all (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view != NULL); + + tepl_view_select_all (TEPL_VIEW (active_view)); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_gedit_cmd_edit_preferences (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + gedit_show_preferences_dialog (window); +} + +void +_gedit_cmd_edit_overwrite_mode (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditView *active_view; + gboolean overwrite; + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + g_return_if_fail (active_view); + + overwrite = g_variant_get_boolean (state); + g_simple_action_set_state (action, state); + + gtk_text_view_set_overwrite (GTK_TEXT_VIEW (active_view), overwrite); + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-file-print.c b/gedit/gedit-commands-file-print.c new file mode 100644 index 0000000..425a9be --- /dev/null +++ b/gedit/gedit-commands-file-print.c @@ -0,0 +1,49 @@ +/* + * gedit-commands-file-print.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include "gedit-window.h" +#include "gedit-tab.h" +#include "gedit-tab-private.h" +#include "gedit-debug.h" + +void +_gedit_cmd_file_print (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_window_get_active_tab (window); + + if (tab != NULL) + { + _gedit_tab_print (tab); + } +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c new file mode 100644 index 0000000..565ee44 --- /dev/null +++ b/gedit/gedit-commands-file.c @@ -0,0 +1,2165 @@ +/* + * gedit-commands-file.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * Copyright (C) 2014 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include +#include + +#include "gedit-app.h" +#include "gedit-debug.h" +#include "gedit-document.h" +#include "gedit-document-private.h" +#include "gedit-tab.h" +#include "gedit-tab-private.h" +#include "gedit-window.h" +#include "gedit-window-private.h" +#include "gedit-notebook.h" +#include "gedit-statusbar.h" +#include "gedit-utils.h" +#include "gedit-file-chooser-dialog.h" +#include "gedit-file-chooser-open.h" +#include "gedit-close-confirmation-dialog.h" + +/* useful macro */ +#define GBOOLEAN_TO_POINTER(i) (GINT_TO_POINTER ((i) ? 2 : 1)) +#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT(i) == 2) ? TRUE : FALSE)) + +#define GEDIT_IS_CLOSING_ALL "gedit-is-closing-all" +#define GEDIT_NOTEBOOK_TO_CLOSE "gedit-notebook-to-close" +#define GEDIT_IS_QUITTING "gedit-is-quitting" +#define GEDIT_IS_QUITTING_ALL "gedit-is-quitting-all" + +void +_gedit_cmd_file_new (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + gedit_window_create_tab (window, TRUE); +} + +static GeditTab * +get_tab_from_file (GList *docs, + GFile *file) +{ + GList *l; + + for (l = docs; l != NULL; l = l->next) + { + GeditDocument *doc; + GtkSourceFile *source_file; + GFile *location; + + doc = l->data; + source_file = gedit_document_get_file (doc); + location = gtk_source_file_get_location (source_file); + + if (location != NULL && g_file_equal (location, file)) + { + return gedit_tab_get_from_document (doc); + } + } + + return NULL; +} + +static gboolean +is_duplicated_file (GSList *files, + GFile *file) +{ + GSList *l; + + for (l = files; l != NULL; l = l->next) + { + if (g_file_equal (l->data, file)) + { + return TRUE; + } + } + + return FALSE; +} + +/* File loading */ +static GSList * +load_file_list (GeditWindow *window, + const GSList *files, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean create) +{ + GList *win_docs; + GSList *files_to_load = NULL; + GSList *loaded_files = NULL; + GeditTab *tab; + gboolean jump_to = TRUE; /* Whether to jump to the new tab */ + const GSList *l; + gint num_loaded_files = 0; + + gedit_debug (DEBUG_COMMANDS); + + win_docs = gedit_window_get_documents (window); + + /* Remove the files corresponding to documents already opened in + * "window" and remove duplicates from the "files" list. + */ + for (l = files; l != NULL; l = l->next) + { + GFile *file = l->data; + + if (is_duplicated_file (files_to_load, file)) + { + continue; + } + + tab = get_tab_from_file (win_docs, file); + + if (tab == NULL) + { + files_to_load = g_slist_prepend (files_to_load, file); + } + else + { + if (l == files) + { + TeplView *view; + + gedit_window_set_active_tab (window, tab); + jump_to = FALSE; + view = TEPL_VIEW (gedit_tab_get_view (tab)); + + if (line_pos > 0) + { + if (column_pos > 0) + { + tepl_view_goto_line_offset (view, + line_pos - 1, + column_pos - 1); + } + else + { + tepl_view_goto_line (view, line_pos - 1); + } + } + } + + ++num_loaded_files; + loaded_files = g_slist_prepend (loaded_files, + gedit_tab_get_document (tab)); + } + } + + g_list_free (win_docs); + + if (files_to_load == NULL) + { + return g_slist_reverse (loaded_files); + } + + files_to_load = g_slist_reverse (files_to_load); + l = files_to_load; + + tab = gedit_window_get_active_tab (window); + if (tab != NULL) + { + GeditDocument *doc; + + doc = gedit_tab_get_document (tab); + + if (gedit_document_is_untouched (doc) && + gedit_tab_get_state (tab) == GEDIT_TAB_STATE_NORMAL) + { + _gedit_tab_load (tab, + l->data, + encoding, + line_pos, + column_pos, + create); + + /* make sure the view has focus */ + gtk_widget_grab_focus (GTK_WIDGET (gedit_tab_get_view (tab))); + + l = g_slist_next (l); + jump_to = FALSE; + + ++num_loaded_files; + loaded_files = g_slist_prepend (loaded_files, + gedit_tab_get_document (tab)); + } + } + + while (l != NULL) + { + g_return_val_if_fail (l->data != NULL, NULL); + + tab = gedit_window_create_tab_from_location (window, + l->data, + encoding, + line_pos, + column_pos, + create, + jump_to); + + if (tab != NULL) + { + jump_to = FALSE; + + ++num_loaded_files; + loaded_files = g_slist_prepend (loaded_files, + gedit_tab_get_document (tab)); + } + + l = g_slist_next (l); + } + + loaded_files = g_slist_reverse (loaded_files); + + if (num_loaded_files == 1) + { + GeditDocument *doc; + gchar *uri_for_display; + + g_return_val_if_fail (tab != NULL, loaded_files); + + doc = gedit_tab_get_document (tab); + uri_for_display = gedit_document_get_uri_for_display (doc); + + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + _("Loading file “%s”\342\200\246"), + uri_for_display); + + g_free (uri_for_display); + } + else + { + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + ngettext ("Loading %d file\342\200\246", + "Loading %d files\342\200\246", + num_loaded_files), + num_loaded_files); + } + + g_slist_free (files_to_load); + + return loaded_files; +} + +/** + * gedit_commands_load_location: + * @window: a #GeditWindow + * @location: a #GFile to load + * @encoding: (allow-none): the #GtkSourceEncoding of @location + * @line_pos: the line position to place the cursor + * @column_pos: the line column to place the cursor + * + * Loads @location. Ignores non-existing locations. + */ +void +gedit_commands_load_location (GeditWindow *window, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos) +{ + GSList *locations = NULL; + gchar *uri; + GSList *ret; + + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (G_IS_FILE (location)); + g_return_if_fail (gedit_utils_is_valid_location (location)); + + uri = g_file_get_uri (location); + gedit_debug_message (DEBUG_COMMANDS, "Loading URI '%s'", uri); + g_free (uri); + + locations = g_slist_prepend (locations, location); + + ret = load_file_list (window, locations, encoding, line_pos, column_pos, FALSE); + g_slist_free (ret); + + g_slist_free (locations); +} + +/** + * gedit_commands_load_locations: + * @window: a #GeditWindow + * @locations: (element-type Gio.File): the locations to load + * @encoding: (allow-none): the #GtkSourceEncoding + * @line_pos: the line position to place the cursor + * @column_pos: the line column to place the cursor + * + * Loads @locations. Ignore non-existing locations. + * + * Returns: (element-type Gedit.Document) (transfer container): the locations + * that were loaded. + */ +GSList * +gedit_commands_load_locations (GeditWindow *window, + const GSList *locations, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + g_return_val_if_fail (locations != NULL && locations->data != NULL, NULL); + + gedit_debug (DEBUG_COMMANDS); + + return load_file_list (window, locations, encoding, line_pos, column_pos, FALSE); +} + +/* + * From the command line we can specify a line position for the + * first doc. Beside specifying a non-existing file creates a + * titled document. + */ +GSList * +_gedit_cmd_load_files_from_prompt (GeditWindow *window, + GSList *files, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos) +{ + gedit_debug (DEBUG_COMMANDS); + + return load_file_list (window, files, encoding, line_pos, column_pos, TRUE); +} + +static void +file_chooser_open_done_cb (GeditFileChooserOpen *file_chooser, + gboolean accept, + GeditWindow *window) +{ + GSList *files; + const GtkSourceEncoding *encoding; + gchar *folder_uri; + GSList *loaded_documents; + + gedit_debug (DEBUG_COMMANDS); + + if (!accept) + { + g_object_unref (file_chooser); + return; + } + + files = _gedit_file_chooser_open_get_files (file_chooser); + encoding = _gedit_file_chooser_get_encoding (GEDIT_FILE_CHOOSER (file_chooser)); + folder_uri = _gedit_file_chooser_get_current_folder_uri (GEDIT_FILE_CHOOSER (file_chooser)); + g_object_unref (file_chooser); + + if (window == NULL) + { + window = gedit_app_create_window (GEDIT_APP (g_application_get_default ()), NULL); + + gtk_widget_show (GTK_WIDGET (window)); + gtk_window_present (GTK_WINDOW (window)); + } + + /* Remember the folder we navigated to. */ + _gedit_window_set_file_chooser_folder_uri (window, GTK_FILE_CHOOSER_ACTION_OPEN, folder_uri); + g_free (folder_uri); + + loaded_documents = gedit_commands_load_locations (window, files, encoding, 0, 0); + + g_slist_free (loaded_documents); + g_slist_free_full (files, g_object_unref); +} + +void +_gedit_cmd_file_open (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = NULL; + GeditFileChooserOpen *file_chooser; + + gedit_debug (DEBUG_COMMANDS); + + if (user_data != NULL) + { + window = GEDIT_WINDOW (user_data); + } + + file_chooser = _gedit_file_chooser_open_new (); + + if (window != NULL) + { + const gchar *folder_uri; + + _gedit_file_chooser_set_transient_for (GEDIT_FILE_CHOOSER (file_chooser), + GTK_WINDOW (window)); + + folder_uri = _gedit_window_get_file_chooser_folder_uri (window, GTK_FILE_CHOOSER_ACTION_OPEN); + if (folder_uri != NULL) + { + _gedit_file_chooser_set_current_folder_uri (GEDIT_FILE_CHOOSER (file_chooser), + folder_uri); + } + } + + g_signal_connect (file_chooser, + "done", + G_CALLBACK (file_chooser_open_done_cb), + window); + + _gedit_file_chooser_show (GEDIT_FILE_CHOOSER (file_chooser)); +} + +void +_gedit_cmd_file_reopen_closed_tab (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GFile *file; + + file = _gedit_window_pop_last_closed_doc (window); + if (file != NULL) + { + gedit_commands_load_location (window, file, NULL, 0, 0); + } +} + +/* File saving */ + +/* FIXME: modify this dialog to be similar to the one provided by gtk+ for + * already existing files - Paolo (Oct. 11, 2005) */ +static gboolean +replace_read_only_file (GtkWindow *parent, + GFile *file) +{ + GtkWidget *dialog; + gint ret; + gchar *parse_name; + gchar *name_for_display; + + gedit_debug (DEBUG_COMMANDS); + + parse_name = g_file_get_parse_name (file); + + /* Truncate the name so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the name doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + name_for_display = tepl_utils_str_middle_truncate (parse_name, 50); + g_free (parse_name); + + dialog = gtk_message_dialog_new (parent, + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_NONE, + _("The file “%s” is read-only."), + name_for_display); + g_free (name_for_display); + + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), + _("Do you want to try to replace it " + "with the one you are saving?")); + + gtk_dialog_add_buttons (GTK_DIALOG (dialog), + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Replace"), GTK_RESPONSE_YES, + NULL); + + gtk_dialog_set_default_response (GTK_DIALOG (dialog), + GTK_RESPONSE_CANCEL); + + gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + + ret = gtk_dialog_run (GTK_DIALOG (dialog)); + + gtk_widget_destroy (dialog); + + return ret == GTK_RESPONSE_YES; +} + +static gboolean +change_compression (GtkWindow *parent, + GFile *file, + gboolean compressed) +{ + GtkWidget *dialog; + gint ret; + gchar *parse_name; + gchar *name_for_display; + const gchar *primary_message; + const gchar *button_label; + + gedit_debug (DEBUG_COMMANDS); + + parse_name = g_file_get_parse_name (file); + + /* Truncate the name so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the name doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + name_for_display = tepl_utils_str_middle_truncate (parse_name, 50); + g_free (parse_name); + + if (compressed) + { + primary_message = _("Save the file using compression?"); + } + else + { + primary_message = _("Save the file as plain text?"); + } + + dialog = gtk_message_dialog_new (parent, + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_NONE, + "%s", + primary_message); + + if (compressed) + { + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), + _("The file “%s” was previously saved as plain " + "text and will now be saved using compression."), + name_for_display); + + button_label = _("_Save Using Compression"); + } + else + { + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), + _("The file “%s” was previously saved " + "using compression and will now be saved as plain text."), + name_for_display); + button_label = _("_Save As Plain Text"); + } + + g_free (name_for_display); + + gtk_dialog_add_buttons (GTK_DIALOG (dialog), + _("_Cancel"), GTK_RESPONSE_CANCEL, + button_label, GTK_RESPONSE_YES, + NULL); + + gtk_dialog_set_default_response (GTK_DIALOG (dialog), + GTK_RESPONSE_CANCEL); + + gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + + ret = gtk_dialog_run (GTK_DIALOG (dialog)); + + gtk_widget_destroy (dialog); + + return ret == GTK_RESPONSE_YES; +} + +static GtkSourceCompressionType +get_compression_type_from_file (GFile *file) +{ + gchar *name; + gchar *content_type; + GtkSourceCompressionType type; + + name = g_file_get_basename (file); + content_type = g_content_type_guess (name, NULL, 0, NULL); + + type = gedit_utils_get_compression_type_from_content_type (content_type); + + g_free (name); + g_free (content_type); + + return type; +} + +static void +tab_save_as_ready_cb (GeditTab *tab, + GAsyncResult *result, + GTask *task) +{ + gboolean success = _gedit_tab_save_finish (tab, result); + g_task_return_boolean (task, success); + g_object_unref (task); +} + +static void +save_dialog_response_cb (GeditFileChooserDialog *dialog, + gint response_id, + GTask *task) +{ + GeditTab *tab; + GeditWindow *window; + GeditDocument *doc; + GtkSourceFile *file; + GFile *location; + gchar *parse_name; + GtkSourceNewlineType newline_type; + GtkSourceCompressionType compression_type; + GtkSourceCompressionType current_compression_type; + const GtkSourceEncoding *encoding; + + gedit_debug (DEBUG_COMMANDS); + + tab = g_task_get_source_object (task); + window = g_task_get_task_data (task); + + if (response_id != GTK_RESPONSE_ACCEPT) + { + gedit_file_chooser_dialog_destroy (dialog); + g_task_return_boolean (task, FALSE); + g_object_unref (task); + return; + } + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + location = gedit_file_chooser_dialog_get_file (dialog); + g_return_if_fail (location != NULL); + + compression_type = get_compression_type_from_file (location); + current_compression_type = gtk_source_file_get_compression_type (file); + + if ((compression_type == GTK_SOURCE_COMPRESSION_TYPE_NONE) != + (current_compression_type == GTK_SOURCE_COMPRESSION_TYPE_NONE)) + { + GtkWindow *dialog_window = gedit_file_chooser_dialog_get_window (dialog); + + if (!change_compression (dialog_window, + location, + compression_type != GTK_SOURCE_COMPRESSION_TYPE_NONE)) + { + gedit_file_chooser_dialog_destroy (dialog); + g_object_unref (location); + + g_task_return_boolean (task, FALSE); + g_object_unref (task); + return; + } + } + + encoding = gedit_file_chooser_dialog_get_encoding (dialog); + newline_type = gedit_file_chooser_dialog_get_newline_type (dialog); + + gedit_file_chooser_dialog_destroy (dialog); + + parse_name = g_file_get_parse_name (location); + + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + _("Saving file “%s”\342\200\246"), + parse_name); + + g_free (parse_name); + + /* Let's remember the dir we navigated to, even if the saving fails... */ + { + GFile *folder; + + folder = g_file_get_parent (location); + if (folder != NULL) + { + gchar *folder_uri; + + folder_uri = g_file_get_uri (folder); + _gedit_window_set_file_chooser_folder_uri (window, + GTK_FILE_CHOOSER_ACTION_SAVE, + folder_uri); + + g_object_unref (folder); + g_free (folder_uri); + } + } + + _gedit_tab_save_as_async (tab, + location, + encoding, + newline_type, + compression_type, + g_task_get_cancellable (task), + (GAsyncReadyCallback) tab_save_as_ready_cb, + task); + + g_object_unref (location); +} + +static GtkFileChooserConfirmation +confirm_overwrite_callback (GeditFileChooserDialog *dialog, + gpointer data) +{ + GtkFileChooserConfirmation res; + GFile *file; + GFileInfo *info; + + gedit_debug (DEBUG_COMMANDS); + + /* fall back to the default confirmation dialog */ + res = GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM; + + file = gedit_file_chooser_dialog_get_file (dialog); + + info = g_file_query_info (file, + G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, + G_FILE_QUERY_INFO_NONE, + NULL, + NULL); + + if (info != NULL) + { + if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE) && + !g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) + { + GtkWindow *win; + + win = gedit_file_chooser_dialog_get_window (dialog); + + if (replace_read_only_file (win, file)) + { + res = GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME; + } + else + { + res = GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN; + } + } + + g_object_unref (info); + } + + g_object_unref (file); + + return res; +} + +/* Call save_as_tab_finish() in @callback. */ +static void +save_as_tab_async (GeditTab *tab, + GeditWindow *window, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GTask *task; + GeditFileChooserDialog *save_dialog; + GtkWindowGroup *window_group; + GtkWindow *dialog_window; + GeditDocument *doc; + GtkSourceFile *file; + GFile *location; + const GtkSourceEncoding *encoding; + GtkSourceNewlineType newline_type; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + gedit_debug (DEBUG_COMMANDS); + + task = g_task_new (tab, cancellable, callback, user_data); + g_task_set_task_data (task, g_object_ref (window), g_object_unref); + + /* Translators: "Save As" is the title of the file chooser window. */ + save_dialog = gedit_file_chooser_dialog_create (C_("window title", "Save As"), + GTK_WINDOW (window), + _("_Save"), + _("_Cancel")); + + gedit_file_chooser_dialog_set_do_overwrite_confirmation (save_dialog, TRUE); + + g_signal_connect (save_dialog, + "confirm-overwrite", + G_CALLBACK (confirm_overwrite_callback), + NULL); + + window_group = gedit_window_get_group (window); + + dialog_window = gedit_file_chooser_dialog_get_window (save_dialog); + + if (dialog_window != NULL) + { + gtk_window_group_add_window (window_group, dialog_window); + } + + /* Save As dialog is modal to its main window */ + gedit_file_chooser_dialog_set_modal (save_dialog, TRUE); + + /* Set the suggested file name */ + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + location = gtk_source_file_get_location (file); + + if (location != NULL) + { + gedit_file_chooser_dialog_set_file (save_dialog, location); + } + else + { + const gchar *default_folder_uri; + GFile *default_folder; + gchar *docname; + + default_folder_uri = _gedit_window_get_file_chooser_folder_uri (window, + GTK_FILE_CHOOSER_ACTION_SAVE); + if (default_folder_uri != NULL) + { + default_folder = g_file_new_for_uri (default_folder_uri); + } + else + { + /* It's logical to take the home dir by default, and it fixes + * a problem on MS Windows (hang in C:\windows\system32). + * + * FIXME: it would be better to use GtkFileChooserNative + * to permanently fix the hang problem on MS Windows. + */ + default_folder = g_file_new_for_path (g_get_home_dir ()); + } + + gedit_file_chooser_dialog_set_current_folder (save_dialog, default_folder); + g_object_unref (default_folder); + + docname = gedit_document_get_short_name_for_display (doc); + gedit_file_chooser_dialog_set_current_name (save_dialog, docname); + g_free (docname); + } + + /* Set suggested encoding and newline type. */ + encoding = gtk_source_file_get_encoding (file); + + if (encoding == NULL) + { + encoding = gtk_source_encoding_get_utf8 (); + } + + newline_type = gtk_source_file_get_newline_type (file); + + gedit_file_chooser_dialog_set_encoding (GEDIT_FILE_CHOOSER_DIALOG (save_dialog), + encoding); + + gedit_file_chooser_dialog_set_newline_type (GEDIT_FILE_CHOOSER_DIALOG (save_dialog), + newline_type); + + g_signal_connect (save_dialog, + "response", + G_CALLBACK (save_dialog_response_cb), + task); + + gedit_file_chooser_dialog_show (save_dialog); +} + +static gboolean +save_as_tab_finish (GeditTab *tab, + GAsyncResult *result) +{ + g_return_val_if_fail (g_task_is_valid (result, tab), FALSE); + + return g_task_propagate_boolean (G_TASK (result), NULL); +} + +static void +save_as_tab_ready_cb (GeditTab *tab, + GAsyncResult *result, + GTask *task) +{ + gboolean success = save_as_tab_finish (tab, result); + + g_task_return_boolean (task, success); + g_object_unref (task); +} + +static void +tab_save_ready_cb (GeditTab *tab, + GAsyncResult *result, + GTask *task) +{ + gboolean success = _gedit_tab_save_finish (tab, result); + + g_task_return_boolean (task, success); + g_object_unref (task); +} + +/** + * gedit_commands_save_document_async: + * @document: the #GeditDocument to save. + * @window: a #GeditWindow. + * @cancellable: (nullable): optional #GCancellable object, %NULL to ignore. + * @callback: (scope async): a #GAsyncReadyCallback to call when the operation + * is finished. + * @user_data: (closure): the data to pass to the @callback function. + * + * Asynchronously save the @document. @document must belong to @window. The + * source object of the async task is @document (which will be the first + * parameter of the #GAsyncReadyCallback). + * + * When the operation is finished, @callback will be called. You can then call + * gedit_commands_save_document_finish() to get the result of the operation. + * + * Since: 3.14 + */ +void +gedit_commands_save_document_async (GeditDocument *document, + GeditWindow *window, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GTask *task; + GeditTab *tab; + GtkSourceFile *file; + gchar *uri_for_display; + + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail (GEDIT_IS_DOCUMENT (document)); + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable)); + + task = g_task_new (document, cancellable, callback, user_data); + + tab = gedit_tab_get_from_document (document); + file = gedit_document_get_file (document); + + if (gedit_document_is_untitled (document) || + gtk_source_file_is_readonly (file)) + { + gedit_debug_message (DEBUG_COMMANDS, "Untitled or Readonly"); + + save_as_tab_async (tab, + window, + cancellable, + (GAsyncReadyCallback) save_as_tab_ready_cb, + task); + return; + } + + uri_for_display = gedit_document_get_uri_for_display (document); + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + _("Saving file “%s”\342\200\246"), + uri_for_display); + + g_free (uri_for_display); + + _gedit_tab_save_async (tab, + cancellable, + (GAsyncReadyCallback) tab_save_ready_cb, + task); +} + +/** + * gedit_commands_save_document_finish: + * @document: a #GeditDocument. + * @result: a #GAsyncResult. + * + * Finishes an asynchronous document saving operation started with + * gedit_commands_save_document_async(). + * + * Note that there is no error parameter because the errors are already handled + * by gedit. + * + * Returns: %TRUE if the document has been correctly saved, %FALSE otherwise. + * Since: 3.14 + */ +gboolean +gedit_commands_save_document_finish (GeditDocument *document, + GAsyncResult *result) +{ + g_return_val_if_fail (g_task_is_valid (result, document), FALSE); + + return g_task_propagate_boolean (G_TASK (result), NULL); +} + +static void +save_tab_ready_cb (GeditDocument *doc, + GAsyncResult *result, + gpointer user_data) +{ + gedit_commands_save_document_finish (doc, result); +} + +/* Save tab asynchronously, but without results. */ +static void +save_tab (GeditTab *tab, + GeditWindow *window) +{ + GeditDocument *doc = gedit_tab_get_document (tab); + + gedit_commands_save_document_async (doc, + window, + NULL, + (GAsyncReadyCallback) save_tab_ready_cb, + NULL); +} + +void +_gedit_cmd_file_save (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_window_get_active_tab (window); + if (tab != NULL) + { + save_tab (tab, window); + } +} + +static void +_gedit_cmd_file_save_as_cb (GeditTab *tab, + GAsyncResult *result, + gpointer user_data) +{ + save_as_tab_finish (tab, result); +} + +void +_gedit_cmd_file_save_as (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_window_get_active_tab (window); + if (tab != NULL) + { + save_as_tab_async (tab, + window, + NULL, + (GAsyncReadyCallback) _gedit_cmd_file_save_as_cb, + NULL); + } +} + +static void +quit_if_needed (GeditWindow *window) +{ + gboolean is_quitting; + gboolean is_quitting_all; + + is_quitting = GPOINTER_TO_BOOLEAN (g_object_get_data (G_OBJECT (window), + GEDIT_IS_QUITTING)); + + is_quitting_all = GPOINTER_TO_BOOLEAN (g_object_get_data (G_OBJECT (window), + GEDIT_IS_QUITTING_ALL)); + + if (is_quitting) + { + gtk_widget_destroy (GTK_WIDGET (window)); + } + + if (is_quitting_all) + { + GtkApplication *app; + + app = GTK_APPLICATION (g_application_get_default ()); + + if (gtk_application_get_windows (app) == NULL) + { + g_application_quit (G_APPLICATION (app)); + } + } +} + +static gboolean +really_close_tab (GeditTab *tab) +{ + GtkWidget *toplevel; + GeditWindow *window; + + gedit_debug (DEBUG_COMMANDS); + + g_return_val_if_fail (gedit_tab_get_state (tab) == GEDIT_TAB_STATE_CLOSING, + FALSE); + + toplevel = gtk_widget_get_toplevel (GTK_WIDGET (tab)); + g_return_val_if_fail (GEDIT_IS_WINDOW (toplevel), FALSE); + + window = GEDIT_WINDOW (toplevel); + + gedit_window_close_tab (window, tab); + + if (gedit_window_get_active_tab (window) == NULL) + { + quit_if_needed (window); + } + + return FALSE; +} + +static void +close_tab (GeditTab *tab) +{ + GeditDocument *doc; + + doc = gedit_tab_get_document (tab); + g_return_if_fail (doc != NULL); + + /* If the user has modified again the document, do not close the tab. */ + if (_gedit_document_needs_saving (doc)) + { + return; + } + + /* Close the document only if it has been succesfully saved. + * Tab state is set to CLOSING (it is a state without exiting + * transitions) and the tab is closed in an idle handler. + */ + _gedit_tab_mark_for_closing (tab); + + g_idle_add_full (G_PRIORITY_HIGH_IDLE, + (GSourceFunc) really_close_tab, + tab, + NULL); +} + +typedef struct _SaveAsData SaveAsData; + +struct _SaveAsData +{ + /* Reffed */ + GeditWindow *window; + + /* List of reffed GeditTab's */ + GSList *tabs_to_save_as; + + guint close_tabs : 1; +}; + +static void save_as_documents_list (SaveAsData *data); + +static void +save_as_documents_list_cb (GeditTab *tab, + GAsyncResult *result, + SaveAsData *data) +{ + gboolean saved = save_as_tab_finish (tab, result); + + if (saved && data->close_tabs) + { + close_tab (tab); + } + + g_return_if_fail (tab == GEDIT_TAB (data->tabs_to_save_as->data)); + g_object_unref (data->tabs_to_save_as->data); + data->tabs_to_save_as = g_slist_delete_link (data->tabs_to_save_as, + data->tabs_to_save_as); + + if (data->tabs_to_save_as != NULL) + { + save_as_documents_list (data); + } + else + { + g_object_unref (data->window); + g_slice_free (SaveAsData, data); + } +} + +static void +save_as_documents_list (SaveAsData *data) +{ + GeditTab *next_tab = GEDIT_TAB (data->tabs_to_save_as->data); + + gedit_window_set_active_tab (data->window, next_tab); + + save_as_tab_async (next_tab, + data->window, + NULL, + (GAsyncReadyCallback) save_as_documents_list_cb, + data); +} + +/* + * The docs in the list must belong to the same GeditWindow. + */ +static void +save_documents_list (GeditWindow *window, + GList *docs) +{ + SaveAsData *data = NULL; + GList *l; + + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail ((gedit_window_get_state (window) & GEDIT_WINDOW_STATE_PRINTING) == 0); + + for (l = docs; l != NULL; l = l->next) + { + GeditDocument *doc; + GeditTab *tab; + GeditTabState state; + + g_return_if_fail (GEDIT_IS_DOCUMENT (l->data)); + doc = l->data; + + tab = gedit_tab_get_from_document (doc); + state = gedit_tab_get_state (tab); + + g_return_if_fail (state != GEDIT_TAB_STATE_PRINTING); + g_return_if_fail (state != GEDIT_TAB_STATE_CLOSING); + + if (state == GEDIT_TAB_STATE_NORMAL || + state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) + { + if (_gedit_document_needs_saving (doc)) + { + GtkSourceFile *file = gedit_document_get_file (doc); + + /* FIXME: manage the case of local readonly files owned by the + user is running gedit - Paolo (Dec. 8, 2005) */ + if (gedit_document_is_untitled (doc) || + gtk_source_file_is_readonly (file)) + { + if (data == NULL) + { + data = g_slice_new (SaveAsData); + data->window = g_object_ref (window); + data->tabs_to_save_as = NULL; + data->close_tabs = FALSE; + } + + data->tabs_to_save_as = g_slist_prepend (data->tabs_to_save_as, + g_object_ref (tab)); + } + else + { + save_tab (tab, window); + } + } + } + else + { + /* If the state is: + - GEDIT_TAB_STATE_LOADING: we do not save since we are sure the file is unmodified + - GEDIT_TAB_STATE_REVERTING: we do not save since the user wants + to return back to the version of the file she previously saved + - GEDIT_TAB_STATE_SAVING: well, we are already saving (no need to save again) + - GEDIT_TAB_STATE_PRINTING: there is not a + real reason for not saving in this case, we do not save to avoid to run + two operations using the message area at the same time (may be we can remove + this limitation in the future). Note that SaveAll, ClosAll + and Quit are unsensitive if the window state is PRINTING. + - GEDIT_TAB_STATE_GENERIC_ERROR: we do not save since the document contains + errors (I don't think this is a very frequent case, we should probably remove + this state) + - GEDIT_TAB_STATE_LOADING_ERROR: there is nothing to save + - GEDIT_TAB_STATE_REVERTING_ERROR: there is nothing to save and saving the current + document will overwrite the copy of the file the user wants to go back to + - GEDIT_TAB_STATE_SAVING_ERROR: we do not save since we just failed to save, so there is + no reason to automatically retry... we wait for user intervention + - GEDIT_TAB_STATE_CLOSING: this state is invalid in this case + */ + + gchar *uri_for_display; + + uri_for_display = gedit_document_get_uri_for_display (doc); + gedit_debug_message (DEBUG_COMMANDS, + "File '%s' not saved. State: %d", + uri_for_display, + state); + g_free (uri_for_display); + } + } + + if (data != NULL) + { + data->tabs_to_save_as = g_slist_reverse (data->tabs_to_save_as); + save_as_documents_list (data); + } +} + +/** + * gedit_commands_save_all_documents: + * @window: a #GeditWindow. + * + * Asynchronously save all documents belonging to @window. The result of the + * operation is not available, so it's difficult to know whether all the + * documents are correctly saved. + */ +void +gedit_commands_save_all_documents (GeditWindow *window) +{ + GList *docs; + + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + gedit_debug (DEBUG_COMMANDS); + + docs = gedit_window_get_documents (window); + + save_documents_list (window, docs); + + g_list_free (docs); +} + +void +_gedit_cmd_file_save_all (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gedit_commands_save_all_documents (GEDIT_WINDOW (user_data)); +} + +/** + * gedit_commands_save_document: + * @window: a #GeditWindow. + * @document: the #GeditDocument to save. + * + * Asynchronously save @document. @document must belong to @window. If you need + * the result of the operation, use gedit_commands_save_document_async(). + */ +void +gedit_commands_save_document (GeditWindow *window, + GeditDocument *document) +{ + GeditTab *tab; + + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (GEDIT_IS_DOCUMENT (document)); + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_tab_get_from_document (document); + save_tab (tab, window); +} + +/* File revert */ +static void +do_revert (GeditWindow *window, + GeditTab *tab) +{ + GeditDocument *doc; + gchar *docname; + + gedit_debug (DEBUG_COMMANDS); + + doc = gedit_tab_get_document (tab); + docname = gedit_document_get_short_name_for_display (doc); + + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + _("Reverting the document “%s”\342\200\246"), + docname); + + g_free (docname); + + _gedit_tab_revert (tab); +} + +static void +revert_dialog_response_cb (GtkDialog *dialog, + gint response_id, + GeditWindow *window) +{ + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + /* FIXME: we are relying on the fact that the dialog is + modal so the active tab can't be changed... + not very nice - Paolo (Oct 11, 2005) */ + tab = gedit_window_get_active_tab (window); + if (tab == NULL) + { + return; + } + + gtk_widget_destroy (GTK_WIDGET (dialog)); + + if (response_id == GTK_RESPONSE_OK) + { + do_revert (window, tab); + } +} + +static GtkWidget * +revert_dialog (GeditWindow *window, + GeditDocument *doc) +{ + GtkWidget *dialog; + gchar *docname; + gchar *primary_msg; + gchar *secondary_msg; + glong seconds; + + gedit_debug (DEBUG_COMMANDS); + + docname = gedit_document_get_short_name_for_display (doc); + primary_msg = g_strdup_printf (_("Revert unsaved changes to document “%s”?"), + docname); + g_free (docname); + + seconds = MAX (1, _gedit_document_get_seconds_since_last_save_or_load (doc)); + + if (seconds < 55) + { + secondary_msg = g_strdup_printf ( + ngettext ("Changes made to the document in the last %ld second " + "will be permanently lost.", + "Changes made to the document in the last %ld seconds " + "will be permanently lost.", + seconds), + seconds); + } + else if (seconds < 75) /* 55 <= seconds < 75 */ + { + secondary_msg = g_strdup (_("Changes made to the document in the last minute " + "will be permanently lost.")); + } + else if (seconds < 110) /* 75 <= seconds < 110 */ + { + secondary_msg = g_strdup_printf ( + ngettext ("Changes made to the document in the last minute and " + "%ld second will be permanently lost.", + "Changes made to the document in the last minute and " + "%ld seconds will be permanently lost.", + seconds - 60 ), + seconds - 60); + } + else if (seconds < 3600) + { + secondary_msg = g_strdup_printf ( + ngettext ("Changes made to the document in the last %ld minute " + "will be permanently lost.", + "Changes made to the document in the last %ld minutes " + "will be permanently lost.", + seconds / 60), + seconds / 60); + } + else if (seconds < 7200) + { + gint minutes; + seconds -= 3600; + + minutes = seconds / 60; + if (minutes < 5) + { + secondary_msg = g_strdup (_("Changes made to the document in the last hour " + "will be permanently lost.")); + } + else + { + secondary_msg = g_strdup_printf ( + ngettext ("Changes made to the document in the last hour and " + "%d minute will be permanently lost.", + "Changes made to the document in the last hour and " + "%d minutes will be permanently lost.", + minutes), + minutes); + } + } + else + { + gint hours; + + hours = seconds / 3600; + + secondary_msg = g_strdup_printf ( + ngettext ("Changes made to the document in the last %d hour " + "will be permanently lost.", + "Changes made to the document in the last %d hours " + "will be permanently lost.", + hours), + hours); + } + + dialog = gtk_message_dialog_new (GTK_WINDOW (window), + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_NONE, + "%s", primary_msg); + + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), + "%s", secondary_msg); + g_free (primary_msg); + g_free (secondary_msg); + + gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + + gtk_dialog_add_buttons (GTK_DIALOG (dialog), + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Revert"), GTK_RESPONSE_OK, + NULL); + + gtk_dialog_set_default_response (GTK_DIALOG (dialog), + GTK_RESPONSE_CANCEL); + + return dialog; +} + +void +_gedit_cmd_file_revert (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *tab; + GeditDocument *doc; + GtkWidget *dialog; + GtkWindowGroup *window_group; + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_window_get_active_tab (window); + g_return_if_fail (tab != NULL); + + /* If we are already displaying a notification reverting will drop local + * modifications or if the document has not been modified, do not bug + * the user further. + */ + if (gedit_tab_get_state (tab) == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION || + _gedit_tab_get_can_close (tab)) + { + do_revert (window, tab); + return; + } + + doc = gedit_tab_get_document (tab); + g_return_if_fail (doc != NULL); + g_return_if_fail (!gedit_document_is_untitled (doc)); + + dialog = revert_dialog (window, doc); + + window_group = gedit_window_get_group (window); + + gtk_window_group_add_window (window_group, GTK_WINDOW (dialog)); + + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); + + g_signal_connect (dialog, + "response", + G_CALLBACK (revert_dialog_response_cb), + window); + + gtk_widget_show (dialog); +} + +static void +tab_state_changed_while_saving (GeditTab *tab, + GParamSpec *pspec, + GeditWindow *window) +{ + GeditTabState state; + + state = gedit_tab_get_state (tab); + + gedit_debug_message (DEBUG_COMMANDS, "State while saving: %d\n", state); + + /* When the state becomes NORMAL, it means the saving operation is + * finished. + */ + if (state == GEDIT_TAB_STATE_NORMAL) + { + g_signal_handlers_disconnect_by_func (tab, + G_CALLBACK (tab_state_changed_while_saving), + window); + + close_tab (tab); + } +} + +static void +save_and_close (GeditTab *tab, + GeditWindow *window) +{ + gedit_debug (DEBUG_COMMANDS); + + /* Trace tab state changes */ + g_signal_connect (tab, + "notify::state", + G_CALLBACK (tab_state_changed_while_saving), + window); + + save_tab (tab, window); +} + +static void +save_and_close_documents (GList *docs, + GeditWindow *window, + GeditNotebook *notebook) +{ + GList *tabs; + GList *l; + GSList *sl; + SaveAsData *data = NULL; + GSList *tabs_to_save_and_close = NULL; + GList *tabs_to_close = NULL; + + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail ((gedit_window_get_state (window) & GEDIT_WINDOW_STATE_PRINTING) == 0); + + if (notebook != NULL) + { + tabs = gtk_container_get_children (GTK_CONTAINER (notebook)); + } + else + { + tabs = _gedit_window_get_all_tabs (window); + } + + for (l = tabs; l != NULL; l = l->next) + { + GeditTab *tab = GEDIT_TAB (l->data); + GeditTabState state; + GeditDocument *doc; + + state = gedit_tab_get_state (tab); + doc = gedit_tab_get_document (tab); + + /* If the state is: ([*] invalid states) + - GEDIT_TAB_STATE_NORMAL: close (and if needed save) + - GEDIT_TAB_STATE_LOADING: close, we are sure the file is unmodified + - GEDIT_TAB_STATE_REVERTING: since the user wants + to return back to the version of the file she previously saved, we can close + without saving (CHECK: are we sure this is the right behavior, suppose the case + the original file has been deleted) + - [*] GEDIT_TAB_STATE_SAVING: invalid, ClosAll + and Quit are unsensitive if the window state is SAVING. + - [*] GEDIT_TAB_STATE_PRINTING: there is not a + real reason for not closing in this case, we do not save to avoid to run + two operations using the message area at the same time (may be we can remove + this limitation in the future). Note that ClosAll + and Quit are unsensitive if the window state is PRINTING. + - GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW: close (and if needed save) + - GEDIT_TAB_STATE_LOADING_ERROR: close without saving (if the state is LOADING_ERROR then the + document is not modified) + - GEDIT_TAB_STATE_REVERTING_ERROR: we do not close since the document contains errors + - GEDIT_TAB_STATE_SAVING_ERROR: we do not close since the document contains errors + - GEDIT_TAB_STATE_GENERIC_ERROR: we do not close since the document contains + errors (CHECK: we should problably remove this state) + - [*] GEDIT_TAB_STATE_CLOSING: this state is invalid in this case + */ + + g_return_if_fail (state != GEDIT_TAB_STATE_PRINTING); + g_return_if_fail (state != GEDIT_TAB_STATE_CLOSING); + g_return_if_fail (state != GEDIT_TAB_STATE_SAVING); + + if (state != GEDIT_TAB_STATE_SAVING_ERROR && + state != GEDIT_TAB_STATE_GENERIC_ERROR && + state != GEDIT_TAB_STATE_REVERTING_ERROR) + { + if (g_list_index (docs, doc) >= 0 && + state != GEDIT_TAB_STATE_LOADING && + state != GEDIT_TAB_STATE_LOADING_ERROR && + state != GEDIT_TAB_STATE_REVERTING) /* FIXME: is this the right behavior with REVERTING ?*/ + { + GtkSourceFile *file = gedit_document_get_file (doc); + + /* The document must be saved before closing */ + g_return_if_fail (_gedit_document_needs_saving (doc)); + + /* FIXME: manage the case of local readonly files owned by the + * user is running gedit - Paolo (Dec. 8, 2005) */ + if (gedit_document_is_untitled (doc) || + gtk_source_file_is_readonly (file)) + { + if (data == NULL) + { + data = g_slice_new (SaveAsData); + data->window = g_object_ref (window); + data->tabs_to_save_as = NULL; + data->close_tabs = TRUE; + } + + data->tabs_to_save_as = g_slist_prepend (data->tabs_to_save_as, + g_object_ref (tab)); + } + else + { + tabs_to_save_and_close = g_slist_prepend (tabs_to_save_and_close, tab); + } + } + else + { + /* The document can be closed without saving */ + tabs_to_close = g_list_prepend (tabs_to_close, tab); + } + } + } + + g_list_free (tabs); + + /* Close all tabs to close (in a sync way) */ + gedit_window_close_tabs (window, tabs_to_close); + g_list_free (tabs_to_close); + + /* Save and close all the files in tabs_to_save_and_close */ + for (sl = tabs_to_save_and_close; sl != NULL; sl = sl->next) + { + save_and_close (GEDIT_TAB (sl->data), window); + } + + g_slist_free (tabs_to_save_and_close); + + /* Save As and close all the files in data->tabs_to_save_as. */ + if (data != NULL) + { + data->tabs_to_save_as = g_slist_reverse (data->tabs_to_save_as); + save_as_documents_list (data); + } +} + +static void +save_and_close_document (const GList *docs, + GeditWindow *window) +{ + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail (docs->next == NULL); + + tab = gedit_tab_get_from_document (GEDIT_DOCUMENT (docs->data)); + g_return_if_fail (tab != NULL); + + save_and_close (tab, window); +} + +static void +close_all_tabs (GeditWindow *window) +{ + gedit_debug (DEBUG_COMMANDS); + + /* There is no document to save -> close all tabs */ + gedit_window_close_all_tabs (window); + + quit_if_needed (window); +} + +static void +close_document (GeditWindow *window, + GeditDocument *doc) +{ + GeditTab *tab; + + gedit_debug (DEBUG_COMMANDS); + + tab = gedit_tab_get_from_document (doc); + g_return_if_fail (tab != NULL); + + gedit_window_close_tab (window, tab); +} + +static void +close_confirmation_dialog_response_handler (GeditCloseConfirmationDialog *dlg, + gint response_id, + GeditWindow *window) +{ + GList *selected_documents; + gboolean is_closing_all; + GeditNotebook *notebook_to_close; + + gedit_debug (DEBUG_COMMANDS); + + is_closing_all = GPOINTER_TO_BOOLEAN (g_object_get_data (G_OBJECT (window), + GEDIT_IS_CLOSING_ALL)); + + notebook_to_close = g_object_get_data (G_OBJECT (window), GEDIT_NOTEBOOK_TO_CLOSE); + + gtk_widget_hide (GTK_WIDGET (dlg)); + + switch (response_id) + { + /* Save and Close */ + case GTK_RESPONSE_YES: + selected_documents = gedit_close_confirmation_dialog_get_selected_documents (dlg); + + if (selected_documents == NULL) + { + if (is_closing_all) + { + /* There is no document to save -> close all tabs */ + /* We call gtk_widget_destroy before close_all_tabs + * because close_all_tabs could destroy the gedit window */ + gtk_widget_destroy (GTK_WIDGET (dlg)); + + close_all_tabs (window); + return; + } + else if (notebook_to_close) + { + gedit_notebook_remove_all_tabs (notebook_to_close); + } + else + { + g_return_if_reached (); + } + } + else + { + if (is_closing_all || notebook_to_close) + { + GeditNotebook *notebook = is_closing_all ? NULL : notebook_to_close; + + save_and_close_documents (selected_documents, window, notebook); + } + else + { + save_and_close_document (selected_documents, window); + } + } + + g_list_free (selected_documents); + break; + + /* Close without Saving */ + case GTK_RESPONSE_NO: + if (is_closing_all) + { + /* We call gtk_widget_destroy before close_all_tabs + * because close_all_tabs could destroy the gedit window */ + gtk_widget_destroy (GTK_WIDGET (dlg)); + + close_all_tabs (window); + return; + } + else if (notebook_to_close) + { + gedit_notebook_remove_all_tabs (notebook_to_close); + } + else + { + const GList *unsaved_documents; + + unsaved_documents = gedit_close_confirmation_dialog_get_unsaved_documents (dlg); + g_return_if_fail (unsaved_documents->next == NULL); + + close_document (window, GEDIT_DOCUMENT (unsaved_documents->data)); + } + + break; + + /* Do not close */ + default: + /* Reset is_quitting flag */ + g_object_set_data (G_OBJECT (window), + GEDIT_IS_QUITTING, + GBOOLEAN_TO_POINTER (FALSE)); + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_QUITTING_ALL, + GBOOLEAN_TO_POINTER (FALSE)); + break; + } + + g_object_set_data (G_OBJECT (window), GEDIT_NOTEBOOK_TO_CLOSE, NULL); + + gtk_widget_destroy (GTK_WIDGET (dlg)); +} + +/* Returns TRUE if the tab can be immediately closed */ +static gboolean +tab_can_close (GeditTab *tab, + GtkWindow *window) +{ + GeditDocument *doc; + + gedit_debug (DEBUG_COMMANDS); + + doc = gedit_tab_get_document (tab); + + if (!_gedit_tab_get_can_close (tab)) + { + GtkWidget *dlg; + + dlg = gedit_close_confirmation_dialog_new_single (window, doc); + g_signal_connect (dlg, + "response", + G_CALLBACK (close_confirmation_dialog_response_handler), + window); + + gtk_widget_show (dlg); + + return FALSE; + } + + return TRUE; +} + +/* FIXME: we probably need this one public for plugins... + * maybe even a _list variant. Or maybe it's better make + * gedit_window_close_tab always run the confirm dialog? + * we should not allow closing a tab without resetting the + * GEDIT_IS_CLOSING_ALL flag! + */ +void +_gedit_cmd_file_close_tab (GeditTab *tab, + GeditWindow *window) +{ + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail (GTK_WIDGET (window) == gtk_widget_get_toplevel (GTK_WIDGET (tab))); + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_CLOSING_ALL, + GBOOLEAN_TO_POINTER (FALSE)); + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_QUITTING, + GBOOLEAN_TO_POINTER (FALSE)); + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_QUITTING_ALL, + GBOOLEAN_TO_POINTER (FALSE)); + + if (tab_can_close (tab, GTK_WINDOW (window))) + { + gedit_window_close_tab (window, tab); + } +} + +void +_gedit_cmd_file_close (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *active_tab; + + gedit_debug (DEBUG_COMMANDS); + + active_tab = gedit_window_get_active_tab (window); + + if (active_tab == NULL) + { + gtk_widget_destroy (GTK_WIDGET (window)); + return; + } + + _gedit_cmd_file_close_tab (active_tab, window); +} + +static void +file_close_dialog (GeditWindow *window, + GList *unsaved_docs) +{ + GtkWidget *dlg; + + if (unsaved_docs->next == NULL) + { + /* There is only one unsaved document */ + GeditTab *tab; + GeditDocument *doc; + + doc = GEDIT_DOCUMENT (unsaved_docs->data); + + tab = gedit_tab_get_from_document (doc); + g_return_if_fail (tab != NULL); + + gedit_window_set_active_tab (window, tab); + + dlg = gedit_close_confirmation_dialog_new_single (GTK_WINDOW (window), doc); + } + else + { + dlg = gedit_close_confirmation_dialog_new (GTK_WINDOW (window), unsaved_docs); + } + + g_signal_connect (dlg, + "response", + G_CALLBACK (close_confirmation_dialog_response_handler), + window); + + gtk_widget_show (dlg); +} + +static GList * +notebook_get_unsaved_documents (GeditNotebook *notebook) +{ + GList *children; + GList *unsaved_docs = NULL; + GList *l; + + children = gtk_container_get_children (GTK_CONTAINER (notebook)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + GeditTab *tab = GEDIT_TAB (l->data); + + if (!_gedit_tab_get_can_close (tab)) + { + GeditDocument *doc; + + doc = gedit_tab_get_document (tab); + unsaved_docs = g_list_prepend (unsaved_docs, doc); + } + } + + g_list_free (children); + + return g_list_reverse (unsaved_docs); +} + +/* Close a notebook */ +void +_gedit_cmd_file_close_notebook (GeditWindow *window, + GeditNotebook *notebook) +{ + GList *unsaved_docs; + + g_object_set_data (G_OBJECT (window), GEDIT_IS_CLOSING_ALL, GBOOLEAN_TO_POINTER (FALSE)); + g_object_set_data (G_OBJECT (window), GEDIT_IS_QUITTING, GBOOLEAN_TO_POINTER (FALSE)); + g_object_set_data (G_OBJECT (window), GEDIT_IS_QUITTING_ALL, GBOOLEAN_TO_POINTER (FALSE)); + + g_object_set_data (G_OBJECT (window), GEDIT_NOTEBOOK_TO_CLOSE, notebook); + + unsaved_docs = notebook_get_unsaved_documents (notebook); + + if (unsaved_docs == NULL) + { + /* There is no document to save -> close the notebook */ + gedit_notebook_remove_all_tabs (GEDIT_NOTEBOOK (notebook)); + } + else + { + file_close_dialog (window, unsaved_docs); + + g_list_free (unsaved_docs); + } +} + +/* Close all tabs */ +static void +file_close_all (GeditWindow *window, + gboolean is_quitting) +{ + GList *unsaved_docs; + + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail (!(gedit_window_get_state (window) & + (GEDIT_WINDOW_STATE_SAVING | + GEDIT_WINDOW_STATE_PRINTING))); + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_CLOSING_ALL, + GBOOLEAN_TO_POINTER (TRUE)); + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_QUITTING, + GBOOLEAN_TO_POINTER (is_quitting)); + + unsaved_docs = gedit_window_get_unsaved_documents (window); + + if (unsaved_docs != NULL) + { + file_close_dialog (window, unsaved_docs); + + g_list_free (unsaved_docs); + } + else + { + /* There is no document to save -> close all tabs */ + gedit_window_close_all_tabs (window); + quit_if_needed (window); + } +} + +void +_gedit_cmd_file_close_all (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + g_return_if_fail (!(gedit_window_get_state (window) & + (GEDIT_WINDOW_STATE_SAVING | + GEDIT_WINDOW_STATE_PRINTING))); + + file_close_all (window, FALSE); +} + +/* Quit */ +static void +quit_all (void) +{ + GList *windows; + GList *l; + GApplication *app; + + app = g_application_get_default (); + windows = gedit_app_get_main_windows (GEDIT_APP (app)); + + if (windows == NULL) + { + g_application_quit (app); + return; + } + + for (l = windows; l != NULL; l = g_list_next (l)) + { + GeditWindow *window = l->data; + + g_object_set_data (G_OBJECT (window), + GEDIT_IS_QUITTING_ALL, + GBOOLEAN_TO_POINTER (TRUE)); + + if (!(gedit_window_get_state (window) & + (GEDIT_WINDOW_STATE_SAVING | GEDIT_WINDOW_STATE_PRINTING))) + { + file_close_all (window, TRUE); + } + } + + g_list_free (windows); +} + +void +_gedit_cmd_file_quit (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + if (window == NULL) + { + quit_all (); + return; + } + + g_return_if_fail (!(gedit_window_get_state (window) & + (GEDIT_WINDOW_STATE_SAVING | + GEDIT_WINDOW_STATE_PRINTING))); + + file_close_all (window, TRUE); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-help.c b/gedit/gedit-commands-help.c new file mode 100644 index 0000000..0e3dd57 --- /dev/null +++ b/gedit/gedit-commands-help.c @@ -0,0 +1,122 @@ +/* + * gedit-help-commands.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include +#include + +#include "gedit-debug.h" +#include "gedit-app.h" +#include "gedit-dirs.h" + +void +_gedit_cmd_help_keyboard_shortcuts (GeditWindow *window) +{ + static GtkWidget *shortcuts_window; + + gedit_debug (DEBUG_COMMANDS); + + if (shortcuts_window == NULL) + { + GtkBuilder *builder; + + builder = gtk_builder_new_from_resource ("/org/gnome/gedit/ui/gedit-shortcuts.ui"); + shortcuts_window = GTK_WIDGET (gtk_builder_get_object (builder, "shortcuts-gedit")); + + g_signal_connect (shortcuts_window, + "destroy", + G_CALLBACK (gtk_widget_destroyed), + &shortcuts_window); + + g_object_unref (builder); + } + + if (GTK_WINDOW (window) != gtk_window_get_transient_for (GTK_WINDOW (shortcuts_window))) + { + gtk_window_set_transient_for (GTK_WINDOW (shortcuts_window), GTK_WINDOW (window)); + } + + gtk_widget_show_all (shortcuts_window); + gtk_window_present (GTK_WINDOW (shortcuts_window)); +} + +void +_gedit_cmd_help_contents (GeditWindow *window) +{ + gedit_debug (DEBUG_COMMANDS); + + gedit_app_show_help (GEDIT_APP (g_application_get_default ()), + GTK_WINDOW (window), + NULL, + NULL); +} + +void +_gedit_cmd_help_about (GeditWindow *window) +{ + static const gchar * const authors[] = { + "Alex Roberts", + "Chema Celorio", + "Evan Lawrence", + "Federico Mena Quintero ", + "Garrett Regier ", + "Ignacio Casal Quinteiro ", + "James Willcox ", + "Jesse van den Kieboom ", + "Paolo Borelli ", + "Paolo Maggi ", + "Sébastien Lafargue ", + "Sébastien Wilmet ", + "Steve Frécinaux ", + NULL + }; + + static const gchar * const documenters[] = { + "Jim Campbell ", + "Daniel Neel ", + "Sun GNOME Documentation Team ", + "Eric Baudais ", + NULL + }; + + gedit_debug (DEBUG_COMMANDS); + + gtk_show_about_dialog (GTK_WINDOW (window), + "program-name", "gedit", + "authors", authors, + "comments", _("gedit is a small and lightweight text editor for the GNOME desktop"), + "copyright", "Copyright 1998-2020 – the gedit team", + "license-type", GTK_LICENSE_GPL_2_0, + "logo-icon-name", "org.gnome.gedit", + "documenters", documenters, + "translator-credits", _("translator-credits"), + "version", VERSION, + "website", "http://www.gedit.org", + "website-label", "www.gedit.org", + NULL); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-private.h b/gedit/gedit-commands-private.h new file mode 100644 index 0000000..0c2f0d7 --- /dev/null +++ b/gedit/gedit-commands-private.h @@ -0,0 +1,172 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * gedit-commands.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_COMMANDS_PRIVATE_H +#define GEDIT_COMMANDS_PRIVATE_H + +#include +#include +#include + +G_BEGIN_DECLS + +/* Create titled documens for non-existing URIs */ +GSList *_gedit_cmd_load_files_from_prompt (GeditWindow *window, + GSList *files, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos) G_GNUC_WARN_UNUSED_RESULT; + +void _gedit_cmd_file_new (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_open (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_reopen_closed_tab (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_save (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_save_as (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_save_all (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_revert (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_print (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_close (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_close_all (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_file_quit (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +void _gedit_cmd_edit_undo (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_redo (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_cut (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_copy (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_paste (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_delete (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_select_all (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_preferences (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_edit_overwrite_mode (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +void _gedit_cmd_view_focus_active (GSimpleAction *action, + GVariant *state, + gpointer user_data); +void _gedit_cmd_view_toggle_side_panel (GSimpleAction *action, + GVariant *state, + gpointer user_data); +void _gedit_cmd_view_toggle_bottom_panel (GSimpleAction *action, + GVariant *state, + gpointer user_data); +void _gedit_cmd_view_toggle_fullscreen_mode (GSimpleAction *action, + GVariant *state, + gpointer user_data); +void _gedit_cmd_view_leave_fullscreen_mode (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_view_highlight_mode (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +void _gedit_cmd_search_find (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_search_find_next (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_search_find_prev (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_search_replace (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_search_clear_highlight (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_search_goto_line (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +void _gedit_cmd_documents_previous_document (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_documents_next_document (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_documents_move_to_new_window (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_documents_new_tab_group (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_documents_previous_tab_group (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +void _gedit_cmd_documents_next_tab_group (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +void _gedit_cmd_help_keyboard_shortcuts (GeditWindow *window); +void _gedit_cmd_help_contents (GeditWindow *window); +void _gedit_cmd_help_about (GeditWindow *window); + +void _gedit_cmd_file_close_tab (GeditTab *tab, + GeditWindow *window); + +void _gedit_cmd_file_close_notebook (GeditWindow *window, + GeditNotebook *notebook); + +G_END_DECLS + +#endif /* GEDIT_COMMANDS_PRIVATE_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-search.c b/gedit/gedit-commands-search.c new file mode 100644 index 0000000..2270398 --- /dev/null +++ b/gedit/gedit-commands-search.c @@ -0,0 +1,696 @@ +/* + * gedit-commands-search.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2006 Paolo Maggi + * Copyright (C) 2013 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include +#include +#include +#include + +#include "gedit-debug.h" +#include "gedit-statusbar.h" +#include "gedit-tab.h" +#include "gedit-tab-private.h" +#include "gedit-view-frame.h" +#include "gedit-window.h" +#include "gedit-window-private.h" +#include "gedit-utils.h" +#include "gedit-replace-dialog.h" + +#define GEDIT_REPLACE_DIALOG_KEY "gedit-replace-dialog-key" +#define GEDIT_LAST_SEARCH_DATA_KEY "gedit-last-search-data-key" + +typedef struct _LastSearchData LastSearchData; +struct _LastSearchData +{ + gint x; + gint y; +}; + +static void +last_search_data_free (LastSearchData *data) +{ + g_slice_free (LastSearchData, data); +} + +static void +last_search_data_restore_position (GeditReplaceDialog *dlg) +{ + LastSearchData *data; + + data = g_object_get_data (G_OBJECT (dlg), GEDIT_LAST_SEARCH_DATA_KEY); + + if (data != NULL) + { + gtk_window_move (GTK_WINDOW (dlg), + data->x, + data->y); + } +} + +static void +last_search_data_store_position (GeditReplaceDialog *dlg) +{ + LastSearchData *data; + + data = g_object_get_data (G_OBJECT (dlg), GEDIT_LAST_SEARCH_DATA_KEY); + + if (data == NULL) + { + data = g_slice_new (LastSearchData); + + g_object_set_data_full (G_OBJECT (dlg), + GEDIT_LAST_SEARCH_DATA_KEY, + data, + (GDestroyNotify) last_search_data_free); + } + + gtk_window_get_position (GTK_WINDOW (dlg), + &data->x, + &data->y); +} + +/* Use occurences only for Replace All */ +static void +text_found (GeditWindow *window, + gint occurrences) +{ + if (occurrences > 1) + { + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + ngettext("Found and replaced %d occurrence", + "Found and replaced %d occurrences", + occurrences), + occurrences); + } + else if (occurrences == 1) + { + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + _("Found and replaced one occurrence")); + } + else + { + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + " "); + } +} + +#define MAX_MSG_LENGTH 40 + +static void +text_not_found (GeditWindow *window, + GeditReplaceDialog *replace_dialog) +{ + const gchar *search_text; + gchar *truncated_text; + + search_text = gedit_replace_dialog_get_search_text (replace_dialog); + truncated_text = tepl_utils_str_end_truncate (search_text, MAX_MSG_LENGTH); + + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->generic_message_cid, + /* Translators: %s is replaced by the text + entered by the user in the search box */ + _("“%s” not found"), truncated_text); + + g_free (truncated_text); +} + +static void +finish_search_from_dialog (GeditWindow *window, + gboolean found) +{ + GeditReplaceDialog *replace_dialog; + + replace_dialog = g_object_get_data (G_OBJECT (window), GEDIT_REPLACE_DIALOG_KEY); + + g_return_if_fail (replace_dialog != NULL); + + if (found) + { + text_found (window, 0); + } + else + { + text_not_found (window, replace_dialog); + } +} + +static gboolean +forward_search_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditView *view) +{ + gboolean found; + GtkSourceBuffer *buffer; + GtkTextIter match_start; + GtkTextIter match_end; + + found = gtk_source_search_context_forward_finish (search_context, + result, + &match_start, + &match_end, + NULL, + NULL); + + buffer = gtk_source_search_context_get_buffer (search_context); + + if (found) + { + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &match_start, + &match_end); + + tepl_view_scroll_to_cursor (TEPL_VIEW (view)); + } + else + { + GtkTextIter end_selection; + + gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (buffer), + NULL, + &end_selection); + + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &end_selection, + &end_selection); + } + + return found; +} + +static void +forward_search_from_dialog_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditWindow *window) +{ + GeditView *view = gedit_window_get_active_view (window); + gboolean found; + + if (view == NULL) + { + return; + } + + found = forward_search_finished (search_context, result, view); + + finish_search_from_dialog (window, found); +} + +static void +run_forward_search (GeditWindow *window, + gboolean from_dialog) +{ + GeditView *view; + GtkTextBuffer *buffer; + GtkTextIter start_at; + GtkSourceSearchContext *search_context; + + view = gedit_window_get_active_view (window); + + if (view == NULL) + { + return; + } + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); + + search_context = gedit_document_get_search_context (GEDIT_DOCUMENT (buffer)); + + if (search_context == NULL) + { + return; + } + + gtk_text_buffer_get_selection_bounds (buffer, NULL, &start_at); + + if (from_dialog) + { + gtk_source_search_context_forward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)forward_search_from_dialog_finished, + window); + } + else + { + gtk_source_search_context_forward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)forward_search_finished, + view); + } +} + +static gboolean +backward_search_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditView *view) +{ + gboolean found; + GtkTextIter match_start; + GtkTextIter match_end; + GtkSourceBuffer *buffer; + + found = gtk_source_search_context_backward_finish (search_context, + result, + &match_start, + &match_end, + NULL, + NULL); + + buffer = gtk_source_search_context_get_buffer (search_context); + + if (found) + { + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &match_start, + &match_end); + + tepl_view_scroll_to_cursor (TEPL_VIEW (view)); + } + else + { + GtkTextIter start_selection; + + gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (buffer), + &start_selection, + NULL); + + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &start_selection, + &start_selection); + } + + return found; +} + +static void +backward_search_from_dialog_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditWindow *window) +{ + GeditView *view = gedit_window_get_active_view (window); + gboolean found; + + if (view == NULL) + { + return; + } + + found = backward_search_finished (search_context, result, view); + + finish_search_from_dialog (window, found); +} + +static void +run_backward_search (GeditWindow *window, + gboolean from_dialog) +{ + GeditView *view; + GtkTextBuffer *buffer; + GtkTextIter start_at; + GtkSourceSearchContext *search_context; + + view = gedit_window_get_active_view (window); + + if (view == NULL) + { + return; + } + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); + + search_context = gedit_document_get_search_context (GEDIT_DOCUMENT (buffer)); + + if (search_context == NULL) + { + return; + } + + gtk_text_buffer_get_selection_bounds (buffer, &start_at, NULL); + + if (from_dialog) + { + gtk_source_search_context_backward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)backward_search_from_dialog_finished, + window); + } + else + { + gtk_source_search_context_backward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)backward_search_finished, + view); + } +} + +static void +do_find (GeditReplaceDialog *dialog, + GeditWindow *window) +{ + if (gedit_replace_dialog_get_backwards (dialog)) + { + run_backward_search (window, TRUE); + } + else + { + run_forward_search (window, TRUE); + } +} + +static void +do_replace (GeditReplaceDialog *dialog, + GeditWindow *window) +{ + GeditDocument *doc; + GtkSourceSearchContext *search_context; + const gchar *replace_entry_text; + gchar *unescaped_replace_text; + GtkTextIter start; + GtkTextIter end; + GError *error = NULL; + + doc = gedit_window_get_active_document (window); + + if (doc == NULL) + { + return; + } + + search_context = gedit_document_get_search_context (doc); + + if (search_context == NULL) + { + return; + } + + /* replace text may be "", we just delete */ + replace_entry_text = gedit_replace_dialog_get_replace_text (dialog); + g_return_if_fail (replace_entry_text != NULL); + + unescaped_replace_text = gtk_source_utils_unescape_search_text (replace_entry_text); + + gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), &start, &end); + + gtk_source_search_context_replace (search_context, + &start, + &end, + unescaped_replace_text, + -1, + &error); + + g_free (unescaped_replace_text); + + if (error != NULL) + { + gedit_replace_dialog_set_replace_error (dialog, error->message); + g_error_free (error); + } + + do_find (dialog, window); +} + +static void +do_replace_all (GeditReplaceDialog *dialog, + GeditWindow *window) +{ + GeditView *view; + GtkSourceSearchContext *search_context; + GtkTextBuffer *buffer; + GtkSourceCompletion *completion; + const gchar *replace_entry_text; + gchar *unescaped_replace_text; + gint count; + GError *error = NULL; + + view = gedit_window_get_active_view (window); + + if (view == NULL) + { + return; + } + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); + + search_context = gedit_document_get_search_context (GEDIT_DOCUMENT (buffer)); + + if (search_context == NULL) + { + return; + } + + /* FIXME: this should really be done automatically in gtksoureview, but + * it is an important performance fix, so let's do it here for now. + */ + completion = gtk_source_view_get_completion (GTK_SOURCE_VIEW (view)); + gtk_source_completion_block_interactive (completion); + + /* replace text may be "", we just delete all occurrences */ + replace_entry_text = gedit_replace_dialog_get_replace_text (dialog); + g_return_if_fail (replace_entry_text != NULL); + + unescaped_replace_text = gtk_source_utils_unescape_search_text (replace_entry_text); + + count = gtk_source_search_context_replace_all (search_context, + unescaped_replace_text, + -1, + &error); + + g_free (unescaped_replace_text); + + gtk_source_completion_unblock_interactive (completion); + + if (count > 0) + { + text_found (window, count); + } + else if (error == NULL) + { + text_not_found (window, dialog); + } + + if (error != NULL) + { + gedit_replace_dialog_set_replace_error (dialog, error->message); + g_error_free (error); + } +} + +static void +replace_dialog_response_cb (GeditReplaceDialog *dialog, + gint response_id, + GeditWindow *window) +{ + gedit_debug (DEBUG_COMMANDS); + + switch (response_id) + { + case GEDIT_REPLACE_DIALOG_FIND_RESPONSE: + do_find (dialog, window); + break; + + case GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE: + do_replace (dialog, window); + break; + + case GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE: + do_replace_all (dialog, window); + break; + + default: + last_search_data_store_position (dialog); + gtk_widget_hide (GTK_WIDGET (dialog)); + } +} + +static void +replace_dialog_destroyed (GeditWindow *window, + GeditReplaceDialog *dialog) +{ + gedit_debug (DEBUG_COMMANDS); + + g_object_set_data (G_OBJECT (window), + GEDIT_REPLACE_DIALOG_KEY, + NULL); + g_object_set_data (G_OBJECT (dialog), + GEDIT_LAST_SEARCH_DATA_KEY, + NULL); +} + +static GtkWidget * +create_dialog (GeditWindow *window) +{ + GtkWidget *dialog = gedit_replace_dialog_new (window); + + g_signal_connect (dialog, + "response", + G_CALLBACK (replace_dialog_response_cb), + window); + + g_object_set_data (G_OBJECT (window), + GEDIT_REPLACE_DIALOG_KEY, + dialog); + + g_object_weak_ref (G_OBJECT (dialog), + (GWeakNotify) replace_dialog_destroyed, + window); + + return dialog; +} + +void +_gedit_cmd_search_find (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *active_tab; + GeditViewFrame *frame; + + gedit_debug (DEBUG_COMMANDS); + + active_tab = gedit_window_get_active_tab (window); + + if (active_tab == NULL) + { + return; + } + + frame = _gedit_tab_get_view_frame (active_tab); + gedit_view_frame_popup_search (frame); +} + +void +_gedit_cmd_search_replace (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + gpointer data; + GtkWidget *replace_dialog; + + gedit_debug (DEBUG_COMMANDS); + + data = g_object_get_data (G_OBJECT (window), GEDIT_REPLACE_DIALOG_KEY); + + if (data == NULL) + { + replace_dialog = create_dialog (window); + } + else + { + g_return_if_fail (GEDIT_IS_REPLACE_DIALOG (data)); + + replace_dialog = GTK_WIDGET (data); + } + + gtk_widget_show (replace_dialog); + last_search_data_restore_position (GEDIT_REPLACE_DIALOG (replace_dialog)); + gedit_replace_dialog_present_with_time (GEDIT_REPLACE_DIALOG (replace_dialog), + GDK_CURRENT_TIME); +} + +void +_gedit_cmd_search_find_next (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + run_forward_search (window, FALSE); +} + +void +_gedit_cmd_search_find_prev (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + run_backward_search (window, FALSE); +} + +void +_gedit_cmd_search_clear_highlight (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *active_tab; + GeditViewFrame *frame; + GeditDocument *doc; + + gedit_debug (DEBUG_COMMANDS); + + active_tab = gedit_window_get_active_tab (window); + + if (active_tab == NULL) + { + return; + } + + frame = _gedit_tab_get_view_frame (active_tab); + gedit_view_frame_clear_search (frame); + + doc = gedit_tab_get_document (active_tab); + gedit_document_set_search_context (doc, NULL); +} + +void +_gedit_cmd_search_goto_line (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GeditTab *active_tab; + GeditViewFrame *frame; + + gedit_debug (DEBUG_COMMANDS); + + active_tab = gedit_window_get_active_tab (window); + + if (active_tab == NULL) + { + return; + } + + frame = _gedit_tab_get_view_frame (active_tab); + gedit_view_frame_popup_goto_line (frame); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands-view.c b/gedit/gedit-commands-view.c new file mode 100644 index 0000000..449458a --- /dev/null +++ b/gedit/gedit-commands-view.c @@ -0,0 +1,168 @@ +/* + * gedit-view-commands.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-commands.h" +#include "gedit-commands-private.h" + +#include + +#include "gedit-debug.h" +#include "gedit-window.h" +#include "gedit-highlight-mode-dialog.h" +#include "gedit-highlight-mode-selector.h" + +void +_gedit_cmd_view_focus_active (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditView *active_view; + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + active_view = gedit_window_get_active_view (window); + + if (active_view) + { + gtk_widget_grab_focus (GTK_WIDGET (active_view)); + } +} + +void +_gedit_cmd_view_toggle_side_panel (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GtkWidget *panel; + gboolean visible; + + gedit_debug (DEBUG_COMMANDS); + + panel = gedit_window_get_side_panel (window); + + visible = g_variant_get_boolean (state); + gtk_widget_set_visible (panel, visible); + + if (visible) + { + gtk_widget_grab_focus (panel); + } + + g_simple_action_set_state (action, state); +} + +void +_gedit_cmd_view_toggle_bottom_panel (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + GtkWidget *panel; + gboolean visible; + + gedit_debug (DEBUG_COMMANDS); + + panel = gedit_window_get_bottom_panel (window); + + visible = g_variant_get_boolean (state); + gtk_widget_set_visible (panel, visible); + + if (visible) + { + gtk_widget_grab_focus (panel); + } + + g_simple_action_set_state (action, state); +} + +void +_gedit_cmd_view_toggle_fullscreen_mode (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditWindow *window = GEDIT_WINDOW (user_data); + + gedit_debug (DEBUG_COMMANDS); + + if (g_variant_get_boolean (state)) + { + _gedit_window_fullscreen (window); + } + else + { + _gedit_window_unfullscreen (window); + } +} + +void +_gedit_cmd_view_leave_fullscreen_mode (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + _gedit_window_unfullscreen (GEDIT_WINDOW (user_data)); +} + +static void +on_language_selected (GeditHighlightModeSelector *sel, + GtkSourceLanguage *language, + GeditWindow *window) +{ + GeditDocument *doc; + + doc = gedit_window_get_active_document (window); + if (doc) + { + gedit_document_set_language (doc, language); + } +} + +void +_gedit_cmd_view_highlight_mode (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GtkWindow *window = GTK_WINDOW (user_data); + GtkWidget *dlg; + GeditHighlightModeSelector *sel; + GeditDocument *doc; + + dlg = gedit_highlight_mode_dialog_new (window); + sel = gedit_highlight_mode_dialog_get_selector (GEDIT_HIGHLIGHT_MODE_DIALOG (dlg)); + + doc = gedit_window_get_active_document (GEDIT_WINDOW (window)); + if (doc) + { + gedit_highlight_mode_selector_select_language (sel, + gedit_document_get_language (doc)); + } + + g_signal_connect (sel, "language-selected", + G_CALLBACK (on_language_selected), window); + + gtk_widget_show (GTK_WIDGET (dlg)); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-commands.h b/gedit/gedit-commands.h new file mode 100644 index 0000000..a003c3a --- /dev/null +++ b/gedit/gedit-commands.h @@ -0,0 +1,63 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * gedit-commands.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_COMMANDS_H +#define GEDIT_COMMANDS_H + +#include +#include + +G_BEGIN_DECLS + +/* Do nothing if URI does not exist */ +void gedit_commands_load_location (GeditWindow *window, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos); + +/* Ignore non-existing URIs */ +GSList *gedit_commands_load_locations (GeditWindow *window, + const GSList *locations, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos) G_GNUC_WARN_UNUSED_RESULT; + +void gedit_commands_save_document (GeditWindow *window, + GeditDocument *document); + +void gedit_commands_save_document_async (GeditDocument *document, + GeditWindow *window, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean gedit_commands_save_document_finish (GeditDocument *document, + GAsyncResult *result); + +void gedit_commands_save_all_documents (GeditWindow *window); + +G_END_DECLS + +#endif /* GEDIT_COMMANDS_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-debug.c b/gedit/gedit-debug.c new file mode 100644 index 0000000..396dc14 --- /dev/null +++ b/gedit/gedit-debug.c @@ -0,0 +1,236 @@ +/* + * gedit-debug.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002 - 2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-debug.h" +#include + +#define ENABLE_PROFILING + +#ifdef ENABLE_PROFILING +static GTimer *timer = NULL; +static gdouble last_time = 0.0; +#endif + +static GeditDebugSection enabled_sections = GEDIT_NO_DEBUG; + +#define DEBUG_IS_ENABLED(section) (enabled_sections & (section)) + +/** + * gedit_debug_init: + * + * Initializes the debugging subsystem of gedit. + * + * The function checks for the existence of certain environment variables to + * determine whether to enable output for a debug section. To enable output + * for a specific debug section, set an environment variable of the same name; + * e.g. to enable output for the %GEDIT_DEBUG_PLUGINS section, set a + * GEDIT_DEBUG_PLUGINS environment variable. To enable output + * for all debug sections, set the GEDIT_DEBUG environment + * variable. + * + * This function must be called before any of the other debug functions are + * called. It must only be called once. + */ +void +gedit_debug_init (void) +{ + if (g_getenv ("GEDIT_DEBUG") != NULL) + { + /* enable all debugging */ + enabled_sections = ~GEDIT_NO_DEBUG; + goto out; + } + + if (g_getenv ("GEDIT_DEBUG_VIEW") != NULL) + { + enabled_sections |= GEDIT_DEBUG_VIEW; + } + if (g_getenv ("GEDIT_DEBUG_PREFS") != NULL) + { + enabled_sections |= GEDIT_DEBUG_PREFS; + } + if (g_getenv ("GEDIT_DEBUG_WINDOW") != NULL) + { + enabled_sections |= GEDIT_DEBUG_WINDOW; + } + if (g_getenv ("GEDIT_DEBUG_PANEL") != NULL) + { + enabled_sections |= GEDIT_DEBUG_PANEL; + } + if (g_getenv ("GEDIT_DEBUG_PLUGINS") != NULL) + { + enabled_sections |= GEDIT_DEBUG_PLUGINS; + } + if (g_getenv ("GEDIT_DEBUG_TAB") != NULL) + { + enabled_sections |= GEDIT_DEBUG_TAB; + } + if (g_getenv ("GEDIT_DEBUG_DOCUMENT") != NULL) + { + enabled_sections |= GEDIT_DEBUG_DOCUMENT; + } + if (g_getenv ("GEDIT_DEBUG_COMMANDS") != NULL) + { + enabled_sections |= GEDIT_DEBUG_COMMANDS; + } + if (g_getenv ("GEDIT_DEBUG_APP") != NULL) + { + enabled_sections |= GEDIT_DEBUG_APP; + } + if (g_getenv ("GEDIT_DEBUG_UTILS") != NULL) + { + enabled_sections |= GEDIT_DEBUG_UTILS; + } + if (g_getenv ("GEDIT_DEBUG_METADATA") != NULL) + { + enabled_sections |= GEDIT_DEBUG_METADATA; + } + +out: + +#ifdef ENABLE_PROFILING + if (enabled_sections != GEDIT_NO_DEBUG) + { + timer = g_timer_new (); + } +#endif +} + +/** + * gedit_debug: + * @section: debug section. + * @file: file name. + * @line: line number. + * @function: name of the function that is calling gedit_debug(). + * + * If @section is enabled, then logs the trace information @file, @line, and + * @function. + */ +void +gedit_debug (GeditDebugSection section, + const gchar *file, + gint line, + const gchar *function) +{ + gedit_debug_message (section, file, line, function, "%s", ""); +} + +/** + * gedit_debug_message: + * @section: debug section. + * @file: file name. + * @line: line number. + * @function: name of the function that is calling gedit_debug_message(). + * @format: A g_vprintf() format string. + * @...: The format string arguments. + * + * If @section is enabled, then logs the trace information @file, @line, and + * @function along with the message obtained by formatting @format with the + * given format string arguments. + */ +void +gedit_debug_message (GeditDebugSection section, + const gchar *file, + gint line, + const gchar *function, + const gchar *format, + ...) +{ + if (G_UNLIKELY (DEBUG_IS_ENABLED (section))) + { + va_list args; + gchar *msg; + +#ifdef ENABLE_PROFILING + gdouble seconds; + + g_return_if_fail (timer != NULL); + + seconds = g_timer_elapsed (timer, NULL); +#endif + + g_return_if_fail (format != NULL); + + va_start (args, format); + msg = g_strdup_vprintf (format, args); + va_end (args); + +#ifdef ENABLE_PROFILING + g_print ("[%f (%f)] %s:%d (%s) %s\n", + seconds, + seconds - last_time, + file, + line, + function, + msg); + + last_time = seconds; +#else + g_print ("%s:%d (%s) %s\n", file, line, function, msg); +#endif + + fflush (stdout); + + g_free (msg); + } +} + +/** + * gedit_debug_plugin_message: + * @file: file name. + * @line: line number. + * @function: name of the function that is calling gedit_debug_plugin_message(). + * @message: a message. + * + * If the section %GEDIT_DEBUG_PLUGINS is enabled, then logs the trace + * information @file, @line, and @function along with @message. + * + * This function may be overridden by GObject Introspection language bindings + * to be more language-specific. + * + * Python + * + * A PyGObject override is provided that has the following signature: + * + * + * def debug_plugin_message(format_str, *format_args): + * #... + * + * + * + * It automatically supplies parameters @file, @line, and @function, and it + * formats format_str with the given format arguments. The syntax + * of the format string is the usual Python string formatting syntax described + * by 5.6.2. String Formatting Operations. + * + * Since: 3.4 + */ +void +gedit_debug_plugin_message (const gchar *file, + gint line, + const gchar *function, + const gchar *message) +{ + gedit_debug_message (GEDIT_DEBUG_PLUGINS, file, line, function, "%s", message); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-debug.h b/gedit/gedit-debug.h new file mode 100644 index 0000000..49e5127 --- /dev/null +++ b/gedit/gedit-debug.h @@ -0,0 +1,85 @@ +/* + * gedit-debug.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002 - 2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_DEBUG_H +#define GEDIT_DEBUG_H + +#include + +/** + * GeditDebugSection: + * + * Enumeration of debug sections. + * + * Debugging output for a section is enabled by setting an environment variable + * of the same name. For example, setting the GEDIT_DEBUG_PLUGINS + * environment variable enables all debugging output for the %GEDIT_DEBUG_PLUGINS + * section. Setting the special environment variable GEDIT_DEBUG + * enables output for all sections. + */ +typedef enum { + GEDIT_NO_DEBUG = 0, + GEDIT_DEBUG_VIEW = 1 << 0, + GEDIT_DEBUG_PREFS = 1 << 1, + GEDIT_DEBUG_WINDOW = 1 << 2, + GEDIT_DEBUG_PANEL = 1 << 3, + GEDIT_DEBUG_PLUGINS = 1 << 4, + GEDIT_DEBUG_TAB = 1 << 5, + GEDIT_DEBUG_DOCUMENT = 1 << 6, + GEDIT_DEBUG_COMMANDS = 1 << 7, + GEDIT_DEBUG_APP = 1 << 8, + GEDIT_DEBUG_UTILS = 1 << 9, + GEDIT_DEBUG_METADATA = 1 << 10, +} GeditDebugSection; + +#define DEBUG_VIEW GEDIT_DEBUG_VIEW, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_PREFS GEDIT_DEBUG_PREFS, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_WINDOW GEDIT_DEBUG_WINDOW, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_PANEL GEDIT_DEBUG_PANEL, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_PLUGINS GEDIT_DEBUG_PLUGINS, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_TAB GEDIT_DEBUG_TAB, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_DOCUMENT GEDIT_DEBUG_DOCUMENT,__FILE__, __LINE__, G_STRFUNC +#define DEBUG_COMMANDS GEDIT_DEBUG_COMMANDS,__FILE__, __LINE__, G_STRFUNC +#define DEBUG_APP GEDIT_DEBUG_APP, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_UTILS GEDIT_DEBUG_UTILS, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_METADATA GEDIT_DEBUG_METADATA,__FILE__, __LINE__, G_STRFUNC + +void gedit_debug_init (void); + +void gedit_debug (GeditDebugSection section, + const gchar *file, + gint line, + const gchar *function); + +void gedit_debug_message (GeditDebugSection section, + const gchar *file, + gint line, + const gchar *function, + const gchar *format, ...) G_GNUC_PRINTF(5, 6); + +void gedit_debug_plugin_message (const gchar *file, + gint line, + const gchar *function, + const gchar *message); + +#endif /* GEDIT_DEBUG_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-dirs.c b/gedit/gedit-dirs.c new file mode 100644 index 0000000..81f32c2 --- /dev/null +++ b/gedit/gedit-dirs.c @@ -0,0 +1,176 @@ +/* + * gedit-dirs.c + * This file is part of gedit + * + * Copyright (C) 2008 Ignacio Casal Quinteiro + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-dirs.h" + +#ifdef OS_OSX +#include +#endif + +static gchar *user_config_dir = NULL; +static gchar *user_data_dir = NULL; +static gchar *user_styles_dir = NULL; +static gchar *user_plugins_dir = NULL; +static gchar *gedit_locale_dir = NULL; +static gchar *gedit_lib_dir = NULL; +static gchar *gedit_plugins_dir = NULL; +static gchar *gedit_plugins_data_dir = NULL; + +void +gedit_dirs_init () +{ +#ifdef G_OS_WIN32 + gchar *win32_dir; + + win32_dir = g_win32_get_package_installation_directory_of_module (NULL); + + gedit_locale_dir = g_build_filename (win32_dir, + "share", + "locale", + NULL); + gedit_lib_dir = g_build_filename (win32_dir, + "lib", + "gedit", + NULL); + gedit_plugins_data_dir = g_build_filename (win32_dir, + "share", + "gedit", + "plugins", + NULL); + + g_free (win32_dir); +#endif /* G_OS_WIN32 */ + +#ifdef OS_OSX + if (gtkosx_application_get_bundle_id () != NULL) + { + const gchar *bundle_resource_dir = gtkosx_application_get_resource_path (); + + gedit_locale_dir = g_build_filename (bundle_resource_dir, + "share", + "locale", + NULL); + gedit_lib_dir = g_build_filename (bundle_resource_dir, + "lib", + "gedit", + NULL); + gedit_plugins_data_dir = g_build_filename (bundle_resource_dir, + "share", + "gedit", + "plugins", + NULL); + } +#endif /* OS_OSX */ + + if (gedit_locale_dir == NULL) + { + gedit_locale_dir = g_build_filename (DATADIR, + "locale", + NULL); + gedit_lib_dir = g_build_filename (LIBDIR, + "gedit", + NULL); + gedit_plugins_data_dir = g_build_filename (DATADIR, + "gedit", + "plugins", + NULL); + } + + user_config_dir = g_build_filename (g_get_user_config_dir (), + "gedit", + NULL); + user_data_dir = g_build_filename (g_get_user_data_dir (), + "gedit", + NULL); + user_styles_dir = g_build_filename (user_data_dir, + "styles", + NULL); + user_plugins_dir = g_build_filename (user_data_dir, + "plugins", + NULL); + gedit_plugins_dir = g_build_filename (gedit_lib_dir, + "plugins", + NULL); +} + +void +gedit_dirs_shutdown () +{ + g_clear_pointer (&user_config_dir, g_free); + g_clear_pointer (&user_data_dir, g_free); + g_clear_pointer (&user_styles_dir, g_free); + g_clear_pointer (&user_plugins_dir, g_free); + g_clear_pointer (&gedit_locale_dir, g_free); + g_clear_pointer (&gedit_lib_dir, g_free); + g_clear_pointer (&gedit_plugins_dir, g_free); + g_clear_pointer (&gedit_plugins_data_dir, g_free); +} + +const gchar * +gedit_dirs_get_user_config_dir (void) +{ + return user_config_dir; +} + +const gchar * +gedit_dirs_get_user_data_dir (void) +{ + return user_data_dir; +} + +const gchar * +gedit_dirs_get_user_styles_dir (void) +{ + return user_styles_dir; +} + +const gchar * +gedit_dirs_get_user_plugins_dir (void) +{ + return user_plugins_dir; +} + +const gchar * +gedit_dirs_get_gedit_locale_dir (void) +{ + return gedit_locale_dir; +} + +const gchar * +gedit_dirs_get_gedit_lib_dir (void) +{ + return gedit_lib_dir; +} + +const gchar * +gedit_dirs_get_gedit_plugins_dir (void) +{ + return gedit_plugins_dir; +} + +const gchar * +gedit_dirs_get_gedit_plugins_data_dir (void) +{ + return gedit_plugins_data_dir; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-dirs.h b/gedit/gedit-dirs.h new file mode 100644 index 0000000..3fc7ab5 --- /dev/null +++ b/gedit/gedit-dirs.h @@ -0,0 +1,55 @@ +/* + * gedit-dirs.h + * This file is part of gedit + * + * Copyright (C) 2008 Ignacio Casal Quinteiro + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + + +#ifndef GEDIT_DIRS_H +#define GEDIT_DIRS_H + +#include + +G_BEGIN_DECLS + +/* This function must be called before starting gedit */ +void gedit_dirs_init (void); +/* This function must be called before exiting gedit */ +void gedit_dirs_shutdown (void); + + +const gchar *gedit_dirs_get_user_config_dir (void); + +const gchar *gedit_dirs_get_user_data_dir (void); + +const gchar *gedit_dirs_get_user_styles_dir (void); + +const gchar *gedit_dirs_get_user_plugins_dir (void); + +const gchar *gedit_dirs_get_gedit_locale_dir (void); + +const gchar *gedit_dirs_get_gedit_lib_dir (void); + +const gchar *gedit_dirs_get_gedit_plugins_dir (void); + +const gchar *gedit_dirs_get_gedit_plugins_data_dir (void); + +G_END_DECLS + +#endif /* GEDIT_DIRS_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-document-private.h b/gedit/gedit-document-private.h new file mode 100644 index 0000000..2cec9e3 --- /dev/null +++ b/gedit/gedit-document-private.h @@ -0,0 +1,49 @@ +/* + * gedit-document.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * Copyright (C) 2014 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_DOCUMENT_PRIVATE_H +#define GEDIT_DOCUMENT_PRIVATE_H + +#include "gedit-document.h" + +G_BEGIN_DECLS + +#define GEDIT_METADATA_ATTRIBUTE_POSITION "gedit-position" +#define GEDIT_METADATA_ATTRIBUTE_ENCODING "gedit-encoding" +#define GEDIT_METADATA_ATTRIBUTE_LANGUAGE "gedit-language" + +glong _gedit_document_get_seconds_since_last_save_or_load (GeditDocument *doc); + +gboolean _gedit_document_needs_saving (GeditDocument *doc); + +gboolean _gedit_document_get_empty_search (GeditDocument *doc); + +void _gedit_document_set_create (GeditDocument *doc, + gboolean create); + +gboolean _gedit_document_get_create (GeditDocument *doc); + +G_END_DECLS + +#endif /* GEDIT_DOCUMENT_PRIVATE_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c new file mode 100644 index 0000000..e321bfd --- /dev/null +++ b/gedit/gedit-document.c @@ -0,0 +1,1659 @@ +/* + * gedit-document.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * Copyright (C) 2014-2015 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-document.h" +#include "gedit-document-private.h" + +#include +#include +#include + +#include "gedit-settings.h" +#include "gedit-debug.h" +#include "gedit-utils.h" + +#define NO_LANGUAGE_NAME "_NORMAL_" + +static void gedit_document_loaded_real (GeditDocument *doc); + +static void gedit_document_saved_real (GeditDocument *doc); + +static void set_content_type (GeditDocument *doc, + const gchar *content_type); + +typedef struct +{ + GtkSourceFile *file; + + TeplMetadata *metadata; + + gint untitled_number; + + gchar *content_type; + + GDateTime *time_of_last_save_or_load; + + /* The search context for the incremental search, or the search and + * replace. They are mutually exclusive. + */ + GtkSourceSearchContext *search_context; + + guint user_action; + + guint language_set_by_user : 1; + + /* The search is empty if there is no search context, or if the + * search text is empty. It is used for the sensitivity of some menu + * actions. + */ + guint empty_search : 1; + + /* Create file if location points to a non existing file (for example + * when opened from the command line). + */ + guint create : 1; +} GeditDocumentPrivate; + +enum +{ + PROP_0, + PROP_SHORTNAME, + PROP_CONTENT_TYPE, + PROP_MIME_TYPE, + PROP_EMPTY_SEARCH, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +enum +{ + CURSOR_MOVED, + LOAD, + LOADED, + SAVE, + SAVED, + LAST_SIGNAL +}; + +static guint document_signals[LAST_SIGNAL]; + +static GHashTable *allocated_untitled_numbers = NULL; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditDocument, gedit_document, GTK_SOURCE_TYPE_BUFFER) + +static void +load_metadata_from_metadata_manager (GeditDocument *doc) +{ + GeditDocumentPrivate *priv = gedit_document_get_instance_private (doc); + GFile *location; + + location = gtk_source_file_get_location (priv->file); + + if (location != NULL) + { + TeplMetadataManager *manager; + + manager = tepl_metadata_manager_get_singleton (); + tepl_metadata_manager_copy_from (manager, location, priv->metadata); + } +} + +static void +save_metadata_into_metadata_manager (GeditDocument *doc) +{ + GeditDocumentPrivate *priv = gedit_document_get_instance_private (doc); + GFile *location; + + location = gtk_source_file_get_location (priv->file); + + if (location != NULL) + { + TeplMetadataManager *manager; + + manager = tepl_metadata_manager_get_singleton (); + tepl_metadata_manager_merge_into (manager, location, priv->metadata); + } +} + +static gint +get_untitled_number (void) +{ + gint i = 1; + + if (allocated_untitled_numbers == NULL) + allocated_untitled_numbers = g_hash_table_new (NULL, NULL); + + g_return_val_if_fail (allocated_untitled_numbers != NULL, -1); + + while (TRUE) + { + if (g_hash_table_lookup (allocated_untitled_numbers, GINT_TO_POINTER (i)) == NULL) + { + g_hash_table_insert (allocated_untitled_numbers, + GINT_TO_POINTER (i), + GINT_TO_POINTER (i)); + + return i; + } + + ++i; + } +} + +static void +release_untitled_number (gint n) +{ + g_return_if_fail (allocated_untitled_numbers != NULL); + + g_hash_table_remove (allocated_untitled_numbers, GINT_TO_POINTER (n)); +} + +static void +update_time_of_last_save_or_load (GeditDocument *doc) +{ + GeditDocumentPrivate *priv = gedit_document_get_instance_private (doc); + + if (priv->time_of_last_save_or_load != NULL) + { + g_date_time_unref (priv->time_of_last_save_or_load); + } + + priv->time_of_last_save_or_load = g_date_time_new_now_utc (); +} + +static const gchar * +get_language_string (GeditDocument *doc) +{ + GtkSourceLanguage *lang = gedit_document_get_language (doc); + + return lang != NULL ? gtk_source_language_get_id (lang) : NO_LANGUAGE_NAME; +} + +static void +save_metadata (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + const gchar *language = NULL; + GtkTextIter iter; + gchar *position; + + priv = gedit_document_get_instance_private (doc); + if (priv->language_set_by_user) + { + language = get_language_string (doc); + } + + gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc), + &iter, + gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (doc))); + + position = g_strdup_printf ("%d", gtk_text_iter_get_offset (&iter)); + + if (language == NULL) + { + gedit_document_set_metadata (doc, + GEDIT_METADATA_ATTRIBUTE_POSITION, position, + NULL); + } + else + { + gedit_document_set_metadata (doc, + GEDIT_METADATA_ATTRIBUTE_POSITION, position, + GEDIT_METADATA_ATTRIBUTE_LANGUAGE, language, + NULL); + } + + g_free (position); +} + +static void +gedit_document_dispose (GObject *object) +{ + GeditDocument *doc = GEDIT_DOCUMENT (object); + GeditDocumentPrivate *priv = gedit_document_get_instance_private (doc); + + gedit_debug (DEBUG_DOCUMENT); + + /* Metadata must be saved here and not in finalize because the language + * is gone by the time finalize runs. + */ + if (priv->metadata != NULL) + { + save_metadata (doc); + + g_object_unref (priv->metadata); + priv->metadata = NULL; + } + + g_clear_object (&priv->file); + g_clear_object (&priv->search_context); + + G_OBJECT_CLASS (gedit_document_parent_class)->dispose (object); +} + +static void +gedit_document_finalize (GObject *object) +{ + GeditDocumentPrivate *priv; + + gedit_debug (DEBUG_DOCUMENT); + + priv = gedit_document_get_instance_private (GEDIT_DOCUMENT (object)); + + if (priv->untitled_number > 0) + { + release_untitled_number (priv->untitled_number); + } + + g_free (priv->content_type); + + if (priv->time_of_last_save_or_load != NULL) + { + g_date_time_unref (priv->time_of_last_save_or_load); + } + + G_OBJECT_CLASS (gedit_document_parent_class)->finalize (object); +} + +static void +gedit_document_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditDocument *doc = GEDIT_DOCUMENT (object); + GeditDocumentPrivate *priv; + + priv = gedit_document_get_instance_private (doc); + + switch (prop_id) + { + case PROP_SHORTNAME: + g_value_take_string (value, gedit_document_get_short_name_for_display (doc)); + break; + + case PROP_CONTENT_TYPE: + g_value_take_string (value, gedit_document_get_content_type (doc)); + break; + + case PROP_MIME_TYPE: + g_value_take_string (value, gedit_document_get_mime_type (doc)); + break; + + case PROP_EMPTY_SEARCH: + g_value_set_boolean (value, priv->empty_search); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_document_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditDocument *doc = GEDIT_DOCUMENT (object); + + switch (prop_id) + { + case PROP_CONTENT_TYPE: + set_content_type (doc, g_value_get_string (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_document_begin_user_action (GtkTextBuffer *buffer) +{ + GeditDocumentPrivate *priv; + + priv = gedit_document_get_instance_private (GEDIT_DOCUMENT (buffer)); + + ++priv->user_action; + + if (GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->begin_user_action != NULL) + { + GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->begin_user_action (buffer); + } +} + +static void +gedit_document_end_user_action (GtkTextBuffer *buffer) +{ + GeditDocumentPrivate *priv; + + priv = gedit_document_get_instance_private (GEDIT_DOCUMENT (buffer)); + + --priv->user_action; + + if (GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->end_user_action != NULL) + { + GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->end_user_action (buffer); + } +} + +static void +gedit_document_mark_set (GtkTextBuffer *buffer, + const GtkTextIter *iter, + GtkTextMark *mark) +{ + GeditDocument *doc = GEDIT_DOCUMENT (buffer); + GeditDocumentPrivate *priv; + + priv = gedit_document_get_instance_private (doc); + + if (GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->mark_set != NULL) + { + GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->mark_set (buffer, iter, mark); + } + + if (mark == gtk_text_buffer_get_insert (buffer) && (priv->user_action == 0)) + { + g_signal_emit (doc, document_signals[CURSOR_MOVED], 0); + } +} + +static void +gedit_document_changed (GtkTextBuffer *buffer) +{ + g_signal_emit (GEDIT_DOCUMENT (buffer), document_signals[CURSOR_MOVED], 0); + + GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->changed (buffer); +} + +static void +gedit_document_constructed (GObject *object) +{ + GeditDocument *doc = GEDIT_DOCUMENT (object); + GeditSettings *settings; + GSettings *editor_settings; + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + /* Bind construct properties. */ + g_settings_bind (editor_settings, GEDIT_SETTINGS_ENSURE_TRAILING_NEWLINE, + doc, "implicit-trailing-newline", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY); + + G_OBJECT_CLASS (gedit_document_parent_class)->constructed (object); +} + +static void +gedit_document_class_init (GeditDocumentClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkTextBufferClass *buf_class = GTK_TEXT_BUFFER_CLASS (klass); + + object_class->dispose = gedit_document_dispose; + object_class->finalize = gedit_document_finalize; + object_class->get_property = gedit_document_get_property; + object_class->set_property = gedit_document_set_property; + object_class->constructed = gedit_document_constructed; + + buf_class->begin_user_action = gedit_document_begin_user_action; + buf_class->end_user_action = gedit_document_end_user_action; + buf_class->mark_set = gedit_document_mark_set; + buf_class->changed = gedit_document_changed; + + klass->loaded = gedit_document_loaded_real; + klass->saved = gedit_document_saved_real; + + /** + * GeditDocument:shortname: + * + * The document's short name. + */ + properties[PROP_SHORTNAME] = + g_param_spec_string ("shortname", + "Short Name", + "The document's short name", + NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + /** + * GeditDocument:content-type: + * + * The document's content type. + */ + properties[PROP_CONTENT_TYPE] = + g_param_spec_string ("content-type", + "Content Type", + "The document's Content Type", + NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + + /** + * GeditDocument:mime-type: + * + * The document's MIME type. + */ + properties[PROP_MIME_TYPE] = + g_param_spec_string ("mime-type", + "MIME Type", + "The document's MIME Type", + "text/plain", + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + /** + * GeditDocument:empty-search: + * + * + * The property is used internally by gedit. It must not be used in a + * gedit plugin. The property can be modified or removed at any time. + * + */ + properties[PROP_EMPTY_SEARCH] = + g_param_spec_boolean ("empty-search", + "Empty search", + "Whether the search is empty", + TRUE, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); + + /* This signal is used to update the cursor position in the statusbar, + * it's emitted either when the insert mark is moved explicitely or + * when the buffer changes (insert/delete). + * FIXME When the replace_all was implemented in gedit, this signal was + * not emitted during the replace_all to improve performance. Now the + * replace_all is implemented in GtkSourceView, so the signal is + * emitted. + */ + document_signals[CURSOR_MOVED] = + g_signal_new ("cursor-moved", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditDocumentClass, cursor_moved), + NULL, NULL, NULL, + G_TYPE_NONE, + 0); + + /** + * GeditDocument::load: + * @document: the #GeditDocument. + * + * The "load" signal is emitted at the beginning of a file loading. + * + * Before gedit 3.14 this signal contained parameters to configure the + * file loading (the location, encoding, etc). Plugins should not need + * those parameters. + */ + document_signals[LOAD] = + g_signal_new ("load", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditDocumentClass, load), + NULL, NULL, NULL, + G_TYPE_NONE, 0); + + /** + * GeditDocument::loaded: + * @document: the #GeditDocument. + * + * The "loaded" signal is emitted at the end of a successful file + * loading. + * + * Before gedit 3.14 this signal contained a #GError parameter, and the + * signal was also emitted if an error occurred. Plugins should not need + * the error parameter. + */ + document_signals[LOADED] = + g_signal_new ("loaded", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditDocumentClass, loaded), + NULL, NULL, NULL, + G_TYPE_NONE, 0); + + /** + * GeditDocument::save: + * @document: the #GeditDocument. + * + * The "save" signal is emitted at the beginning of a file saving. + * + * Before gedit 3.14 this signal contained parameters to configure the + * file saving (the location, encoding, etc). Plugins should not need + * those parameters. + */ + document_signals[SAVE] = + g_signal_new ("save", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditDocumentClass, save), + NULL, NULL, NULL, + G_TYPE_NONE, 0); + + /** + * GeditDocument::saved: + * @document: the #GeditDocument. + * + * The "saved" signal is emitted at the end of a successful file saving. + * + * Before gedit 3.14 this signal contained a #GError parameter, and the + * signal was also emitted if an error occurred. To save a document, a + * plugin can use the gedit_commands_save_document_async() function and + * get the result of the operation with + * gedit_commands_save_document_finish(). + */ + document_signals[SAVED] = + g_signal_new ("saved", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditDocumentClass, saved), + NULL, NULL, NULL, + G_TYPE_NONE, 0); +} + +static void +set_language (GeditDocument *doc, + GtkSourceLanguage *lang, + gboolean set_by_user) +{ + GeditDocumentPrivate *priv; + GtkSourceLanguage *old_lang; + + gedit_debug (DEBUG_DOCUMENT); + + priv = gedit_document_get_instance_private (doc); + + old_lang = gtk_source_buffer_get_language (GTK_SOURCE_BUFFER (doc)); + + if (old_lang == lang) + { + return; + } + + gtk_source_buffer_set_language (GTK_SOURCE_BUFFER (doc), lang); + + if (set_by_user) + { + const gchar *language = get_language_string (doc); + + gedit_document_set_metadata (doc, + GEDIT_METADATA_ATTRIBUTE_LANGUAGE, language, + NULL); + } + + priv->language_set_by_user = set_by_user; +} + +static void +save_encoding_metadata (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + const GtkSourceEncoding *encoding; + const gchar *charset; + + gedit_debug (DEBUG_DOCUMENT); + + priv = gedit_document_get_instance_private (doc); + + encoding = gtk_source_file_get_encoding (priv->file); + + if (encoding == NULL) + { + encoding = gtk_source_encoding_get_utf8 (); + } + + charset = gtk_source_encoding_get_charset (encoding); + + gedit_document_set_metadata (doc, + GEDIT_METADATA_ATTRIBUTE_ENCODING, charset, + NULL); +} + +static gchar * +get_default_style_scheme_id (void) +{ + GeditSettings *settings; + GSettings *editor_settings; + GVariant *default_value; + gchar *default_style_scheme_id; + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + default_value = g_settings_get_default_value (editor_settings, GEDIT_SETTINGS_SCHEME); + default_style_scheme_id = g_variant_dup_string (default_value, NULL); + g_variant_unref (default_value); + + return default_style_scheme_id; +} + +static void +update_style_scheme (GeditDocument *doc) +{ + GeditSettings *settings; + GSettings *editor_settings; + gchar *style_scheme_id; + GtkSourceStyleSchemeManager *manager; + GtkSourceStyleScheme *style_scheme = NULL; + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + style_scheme_id = g_settings_get_string (editor_settings, GEDIT_SETTINGS_SCHEME); + + manager = gtk_source_style_scheme_manager_get_default (); + + if (style_scheme_id != NULL) + { + style_scheme = gtk_source_style_scheme_manager_get_scheme (manager, style_scheme_id); + } + + if (style_scheme == NULL) + { + gchar *default_style_scheme_id; + + default_style_scheme_id = get_default_style_scheme_id (); + + g_warning_once ("Style scheme '%s' cannot be found, falling back to '%s' default style scheme.", + style_scheme_id, + default_style_scheme_id); + + style_scheme = gtk_source_style_scheme_manager_get_scheme (manager, default_style_scheme_id); + if (style_scheme == NULL) + { + g_warning_once ("Default style scheme '%s' cannot be found, check your GtkSourceView installation.", + default_style_scheme_id); + } + + g_free (default_style_scheme_id); + } + + gtk_source_buffer_set_style_scheme (GTK_SOURCE_BUFFER (doc), style_scheme); + + g_free (style_scheme_id); +} + +static void +editor_settings_scheme_changed_cb (GSettings *editor_settings, + const gchar *key, + GeditDocument *doc) +{ + update_style_scheme (doc); +} + +static GtkSourceLanguage * +guess_language (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + gchar *data; + GtkSourceLanguageManager *manager = gtk_source_language_manager_get_default (); + GtkSourceLanguage *language = NULL; + + priv = gedit_document_get_instance_private (doc); + + data = gedit_document_get_metadata (doc, GEDIT_METADATA_ATTRIBUTE_LANGUAGE); + + if (data != NULL) + { + gedit_debug_message (DEBUG_DOCUMENT, "Language from metadata: %s", data); + + if (!g_str_equal (data, NO_LANGUAGE_NAME)) + { + language = gtk_source_language_manager_get_language (manager, data); + } + + g_free (data); + } + else + { + GFile *location; + gchar *basename = NULL; + + location = gtk_source_file_get_location (priv->file); + gedit_debug_message (DEBUG_DOCUMENT, "Sniffing Language"); + + if (location != NULL) + { + basename = g_file_get_basename (location); + } + + language = gtk_source_language_manager_guess_language (manager, + basename, + priv->content_type); + + g_free (basename); + } + + return language; +} + +static void +on_content_type_changed (GeditDocument *doc, + GParamSpec *pspec, + gpointer useless) +{ + GeditDocumentPrivate *priv; + + priv = gedit_document_get_instance_private (doc); + + if (!priv->language_set_by_user) + { + GtkSourceLanguage *language = guess_language (doc); + + gedit_debug_message (DEBUG_DOCUMENT, "Language: %s", + language != NULL ? gtk_source_language_get_name (language) : "None"); + + set_language (doc, language, FALSE); + } +} + +static gchar * +get_default_content_type (void) +{ + return g_content_type_from_mime_type ("text/plain"); +} + +static void +on_location_changed (GtkSourceFile *file, + GParamSpec *pspec, + GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFile *location; + + gedit_debug (DEBUG_DOCUMENT); + + priv = gedit_document_get_instance_private (doc); + + load_metadata_from_metadata_manager (doc); + + location = gtk_source_file_get_location (file); + + if (location != NULL && priv->untitled_number > 0) + { + release_untitled_number (priv->untitled_number); + priv->untitled_number = 0; + } + + g_object_notify_by_pspec (G_OBJECT (doc), properties[PROP_SHORTNAME]); +} + +static void +gedit_document_init (GeditDocument *doc) +{ + GeditDocumentPrivate *priv = gedit_document_get_instance_private (doc); + GeditSettings *settings; + GSettings *editor_settings; + + gedit_debug (DEBUG_DOCUMENT); + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + priv->untitled_number = get_untitled_number (); + priv->content_type = get_default_content_type (); + priv->language_set_by_user = FALSE; + priv->empty_search = TRUE; + + update_time_of_last_save_or_load (doc); + + priv->file = gtk_source_file_new (); + priv->metadata = tepl_metadata_new (); + + g_signal_connect_object (priv->file, + "notify::location", + G_CALLBACK (on_location_changed), + doc, + 0); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_MAX_UNDO_ACTIONS, + doc, "max-undo-levels", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_SYNTAX_HIGHLIGHTING, + doc, "highlight-syntax", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_BRACKET_MATCHING, + doc, "highlight-matching-brackets", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY); + + g_signal_connect_object (editor_settings, + "changed::" GEDIT_SETTINGS_SCHEME, + G_CALLBACK (editor_settings_scheme_changed_cb), + doc, + 0); + + update_style_scheme (doc); + + g_signal_connect (doc, + "notify::content-type", + G_CALLBACK (on_content_type_changed), + NULL); +} + +GeditDocument * +gedit_document_new (void) +{ + return g_object_new (GEDIT_TYPE_DOCUMENT, NULL); +} + +static gchar * +get_content_type_from_content (GeditDocument *doc) +{ + gchar *content_type; + gchar *data; + GtkTextBuffer *buffer; + GtkTextIter start; + GtkTextIter end; + + buffer = GTK_TEXT_BUFFER (doc); + + gtk_text_buffer_get_start_iter (buffer, &start); + end = start; + gtk_text_iter_forward_chars (&end, 255); + + data = gtk_text_buffer_get_text (buffer, &start, &end, TRUE); + + content_type = g_content_type_guess (NULL, + (const guchar *)data, + strlen (data), + NULL); + + g_free (data); + + return content_type; +} + +static void +set_content_type_no_guess (GeditDocument *doc, + const gchar *content_type) +{ + GeditDocumentPrivate *priv; + gchar *dupped_content_type; + + gedit_debug (DEBUG_DOCUMENT); + + priv = gedit_document_get_instance_private (doc); + + if (priv->content_type != NULL && + content_type != NULL && + g_str_equal (priv->content_type, content_type)) + { + return; + } + + g_free (priv->content_type); + + /* For compression types, we try to just guess from the content */ + if (gedit_utils_get_compression_type_from_content_type (content_type) != + GTK_SOURCE_COMPRESSION_TYPE_NONE) + { + dupped_content_type = get_content_type_from_content (doc); + } + else + { + dupped_content_type = g_strdup (content_type); + } + + if (dupped_content_type == NULL || + g_content_type_is_unknown (dupped_content_type)) + { + priv->content_type = get_default_content_type (); + g_free (dupped_content_type); + } + else + { + priv->content_type = dupped_content_type; + } + + g_object_notify_by_pspec (G_OBJECT (doc), properties[PROP_CONTENT_TYPE]); +} + +static void +set_content_type (GeditDocument *doc, + const gchar *content_type) +{ + GeditDocumentPrivate *priv; + + gedit_debug (DEBUG_DOCUMENT); + + priv = gedit_document_get_instance_private (doc); + + if (content_type == NULL) + { + GFile *location; + gchar *guessed_type = NULL; + + /* If content type is null, we guess from the filename */ + location = gtk_source_file_get_location (priv->file); + if (location != NULL) + { + gchar *basename; + + basename = g_file_get_basename (location); + guessed_type = g_content_type_guess (basename, NULL, 0, NULL); + + g_free (basename); + } + + set_content_type_no_guess (doc, guessed_type); + g_free (guessed_type); + } + else + { + set_content_type_no_guess (doc, content_type); + } +} + +/** + * gedit_document_get_uri_for_display: + * @doc: a #GeditDocument. + * + * Note: this never returns %NULL. + **/ +gchar * +gedit_document_get_uri_for_display (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFile *location; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), g_strdup ("")); + + priv = gedit_document_get_instance_private (doc); + + location = gtk_source_file_get_location (priv->file); + + if (location == NULL) + { + return g_strdup_printf (_("Untitled Document %d"), + priv->untitled_number); + } + else + { + return g_file_get_parse_name (location); + } +} + +/** + * gedit_document_get_short_name_for_display: + * @doc: a #GeditDocument. + * + * Note: this never returns %NULL. + **/ +gchar * +gedit_document_get_short_name_for_display (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFile *location; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), g_strdup ("")); + + priv = gedit_document_get_instance_private (doc); + + location = gtk_source_file_get_location (priv->file); + + if (location == NULL) + { + return g_strdup_printf (_("Untitled Document %d"), + priv->untitled_number); + } + else + { + return gedit_utils_basename_for_display (location); + } +} + +gchar * +gedit_document_get_content_type (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + + priv = gedit_document_get_instance_private (doc); + + return g_strdup (priv->content_type); +} + +/** + * gedit_document_get_mime_type: + * @doc: a #GeditDocument. + * + * Note: this never returns %NULL. + **/ +gchar * +gedit_document_get_mime_type (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), g_strdup ("text/plain")); + + priv = gedit_document_get_instance_private (doc); + + if (priv->content_type != NULL && + !g_content_type_is_unknown (priv->content_type)) + { + return g_content_type_get_mime_type (priv->content_type); + } + + return g_strdup ("text/plain"); +} + +static void +loaded_query_info_cb (GFile *location, + GAsyncResult *result, + GeditDocument *doc) +{ + GFileInfo *info; + GError *error = NULL; + + info = g_file_query_info_finish (location, result, &error); + + if (error != NULL) + { + /* Ignore not found error as it can happen when opening a + * non-existent file from the command line. + */ + if (error->domain != G_IO_ERROR || + error->code != G_IO_ERROR_NOT_FOUND) + { + g_warning ("Document loading: query info error: %s", error->message); + } + + g_error_free (error); + error = NULL; + } + + if (info != NULL && + g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE)) + { + const gchar *content_type; + + content_type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE); + + set_content_type (doc, content_type); + } + + g_clear_object (&info); + + /* Async operation finished. */ + g_object_unref (doc); +} + +static void +gedit_document_loaded_real (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFile *location; + + priv = gedit_document_get_instance_private (doc); + + if (!priv->language_set_by_user) + { + GtkSourceLanguage *language = guess_language (doc); + + gedit_debug_message (DEBUG_DOCUMENT, "Language: %s", + language != NULL ? gtk_source_language_get_name (language) : "None"); + + set_language (doc, language, FALSE); + } + + update_time_of_last_save_or_load (doc); + set_content_type (doc, NULL); + + location = gtk_source_file_get_location (priv->file); + + if (location != NULL) + { + /* Keep the doc alive during the async operation. */ + g_object_ref (doc); + + g_file_query_info_async (location, + G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," + G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, + G_FILE_QUERY_INFO_NONE, + G_PRIORITY_DEFAULT, + NULL, + (GAsyncReadyCallback) loaded_query_info_cb, + doc); + } +} + +static void +saved_query_info_cb (GFile *location, + GAsyncResult *result, + GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFileInfo *info; + const gchar *content_type = NULL; + GError *error = NULL; + + priv = gedit_document_get_instance_private (doc); + + info = g_file_query_info_finish (location, result, &error); + + if (error != NULL) + { + g_warning ("Document saving: query info error: %s", error->message); + g_error_free (error); + error = NULL; + } + + if (info != NULL && + g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE)) + { + content_type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE); + } + + set_content_type (doc, content_type); + + if (info != NULL) + { + /* content_type (owned by info) is no longer needed. */ + g_object_unref (info); + } + + update_time_of_last_save_or_load (doc); + + priv->create = FALSE; + + save_encoding_metadata (doc); + + /* Async operation finished. */ + g_object_unref (doc); +} + +static void +gedit_document_saved_real (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFile *location; + + priv = gedit_document_get_instance_private (doc); + + location = gtk_source_file_get_location (priv->file); + + /* Keep the doc alive during the async operation. */ + g_object_ref (doc); + + g_file_query_info_async (location, + G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, + G_FILE_QUERY_INFO_NONE, + G_PRIORITY_DEFAULT, + NULL, + (GAsyncReadyCallback) saved_query_info_cb, + doc); +} + +gboolean +gedit_document_is_untouched (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GFile *location; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), TRUE); + + priv = gedit_document_get_instance_private (doc); + + location = gtk_source_file_get_location (priv->file); + + return location == NULL && !gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc)); +} + +gboolean +gedit_document_is_untitled (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), TRUE); + + priv = gedit_document_get_instance_private (doc); + + return gtk_source_file_get_location (priv->file) == NULL; +} + +/* + * Deletion and external modification is only checked for local files. + */ +gboolean +_gedit_document_needs_saving (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + gboolean externally_modified = FALSE; + gboolean deleted = FALSE; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE); + + priv = gedit_document_get_instance_private (doc); + + if (gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc))) + { + return TRUE; + } + + if (gtk_source_file_is_local (priv->file)) + { + gtk_source_file_check_file_on_disk (priv->file); + externally_modified = gtk_source_file_is_externally_modified (priv->file); + deleted = gtk_source_file_is_deleted (priv->file); + } + + return (externally_modified || deleted) && !priv->create; +} + +/** + * gedit_document_goto_line: + * @doc: a #GeditDocument. + * @line: the line number. + * + * Returns: if @line is bigger than the lines of the document, the cursor is moved + * to the last line and %FALSE is returned. + * Deprecated: 3.38: Use tepl_view_goto_line() instead. + */ +gboolean +gedit_document_goto_line (GeditDocument *doc, + gint line) +{ + GtkTextIter iter; + + gedit_debug (DEBUG_DOCUMENT); + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE); + g_return_val_if_fail (line >= -1, FALSE); + + gtk_text_buffer_get_iter_at_line (GTK_TEXT_BUFFER (doc), + &iter, + line); + + gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc), &iter); + + return gtk_text_iter_get_line (&iter) == line; +} + +/** + * gedit_document_goto_line_offset: + * @doc: a #GeditDocument. + * @line: the line. + * @line_offset: the line offset. + * + * Returns: the return value. + * Deprecated: 3.38: Use tepl_view_goto_line_offset() instead. + */ +gboolean +gedit_document_goto_line_offset (GeditDocument *doc, + gint line, + gint line_offset) +{ + GtkTextIter iter; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE); + g_return_val_if_fail (line >= -1, FALSE); + g_return_val_if_fail (line_offset >= -1, FALSE); + + gtk_text_buffer_get_iter_at_line_offset (GTK_TEXT_BUFFER (doc), + &iter, + line, + line_offset); + + gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc), &iter); + + return (gtk_text_iter_get_line (&iter) == line && + gtk_text_iter_get_line_offset (&iter) == line_offset); +} + +/** + * gedit_document_set_language: + * @doc: + * @lang: (allow-none): + **/ +void +gedit_document_set_language (GeditDocument *doc, + GtkSourceLanguage *lang) +{ + g_return_if_fail (GEDIT_IS_DOCUMENT (doc)); + + set_language (doc, lang, TRUE); +} + +/** + * gedit_document_get_language: + * @doc: + * + * Return value: (transfer none): + */ +GtkSourceLanguage * +gedit_document_get_language (GeditDocument *doc) +{ + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + + return gtk_source_buffer_get_language (GTK_SOURCE_BUFFER (doc)); +} + +glong +_gedit_document_get_seconds_since_last_save_or_load (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GDateTime *now; + GTimeSpan n_microseconds; + + gedit_debug (DEBUG_DOCUMENT); + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), -1); + + priv = gedit_document_get_instance_private (doc); + + if (priv->time_of_last_save_or_load == NULL) + { + return -1; + } + + now = g_date_time_new_now_utc (); + if (now == NULL) + { + return -1; + } + + n_microseconds = g_date_time_difference (now, priv->time_of_last_save_or_load); + g_date_time_unref (now); + + return n_microseconds / (1000 * 1000); +} + +/** + * gedit_document_get_metadata: + * @doc: a #GeditDocument + * @key: name of the key + * + * Gets the metadata assigned to @key. + * + * Returns: the value assigned to @key. Free with g_free(). + */ +gchar * +gedit_document_get_metadata (GeditDocument *doc, + const gchar *key) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + g_return_val_if_fail (key != NULL, NULL); + + priv = gedit_document_get_instance_private (doc); + + if (priv->metadata == NULL) + { + return NULL; + } + + return tepl_metadata_get (priv->metadata, key); +} + +/** + * gedit_document_set_metadata: + * @doc: a #GeditDocument + * @first_key: name of the first key to set + * @...: (allow-none): value for the first key, followed optionally by more key/value pairs, + * followed by %NULL. + * + * Sets metadata on a document. + */ +void +gedit_document_set_metadata (GeditDocument *doc, + const gchar *first_key, + ...) +{ + GeditDocumentPrivate *priv; + va_list var_args; + const gchar *key; + + g_return_if_fail (GEDIT_IS_DOCUMENT (doc)); + g_return_if_fail (first_key != NULL); + + priv = gedit_document_get_instance_private (doc); + + if (priv->metadata == NULL) + { + return; + } + + va_start (var_args, first_key); + + for (key = first_key; key != NULL; key = va_arg (var_args, const gchar *)) + { + const gchar *value = va_arg (var_args, const gchar *); + tepl_metadata_set (priv->metadata, key, value); + } + + va_end (var_args); + + save_metadata_into_metadata_manager (doc); +} + +static void +update_empty_search (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + gboolean new_value; + + priv = gedit_document_get_instance_private (doc); + + if (priv->search_context == NULL) + { + new_value = TRUE; + } + else + { + GtkSourceSearchSettings *search_settings; + + search_settings = gtk_source_search_context_get_settings (priv->search_context); + + new_value = gtk_source_search_settings_get_search_text (search_settings) == NULL; + } + + if (priv->empty_search != new_value) + { + priv->empty_search = new_value; + g_object_notify_by_pspec (G_OBJECT (doc), properties[PROP_EMPTY_SEARCH]); + } +} + +static void +connect_search_settings (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + GtkSourceSearchSettings *search_settings; + + priv = gedit_document_get_instance_private (doc); + + search_settings = gtk_source_search_context_get_settings (priv->search_context); + + /* Note: the signal handler is never disconnected. If the search context + * changes its search settings, the old search settings will most + * probably be destroyed, anyway. So it shouldn't cause performance + * problems. + */ + g_signal_connect_object (search_settings, + "notify::search-text", + G_CALLBACK (update_empty_search), + doc, + G_CONNECT_SWAPPED); +} + +/** + * gedit_document_set_search_context: + * @doc: a #GeditDocument + * @search_context: (allow-none): the new #GtkSourceSearchContext + * + * Sets the new search context for the document. Use this function only when the + * search occurrences are highlighted. So this function should not be used for + * background searches. The purpose is to have only one highlighted search + * context at a time in the document. + * + * After using this function, you should unref the @search_context. The @doc + * should be the only owner of the @search_context, so that the Clear Highlight + * action works. If you need the @search_context after calling this function, + * use gedit_document_get_search_context(). + */ +void +gedit_document_set_search_context (GeditDocument *doc, + GtkSourceSearchContext *search_context) +{ + GeditDocumentPrivate *priv; + + g_return_if_fail (GEDIT_IS_DOCUMENT (doc)); + + priv = gedit_document_get_instance_private (doc); + + if (priv->search_context != NULL) + { + g_signal_handlers_disconnect_by_func (priv->search_context, + connect_search_settings, + doc); + + g_object_unref (priv->search_context); + } + + priv->search_context = search_context; + + if (search_context != NULL) + { + GeditSettings *settings; + GSettings *editor_settings; + + g_object_ref (search_context); + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_SEARCH_HIGHLIGHTING, + search_context, "highlight", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY); + + g_signal_connect_object (search_context, + "notify::settings", + G_CALLBACK (connect_search_settings), + doc, + G_CONNECT_SWAPPED); + + connect_search_settings (doc); + } + + update_empty_search (doc); +} + +/** + * gedit_document_get_search_context: + * @doc: a #GeditDocument + * + * Gets the search context. Use this function only if you have used + * gedit_document_set_search_context() before. You should not alter other search + * contexts, so you have to verify that the returned search context is yours. + * One way to verify that is to compare the search settings object, or to mark + * the search context with g_object_set_data(). + * + * Returns: (transfer none): the current search context of the document, or NULL + * if there is no current search context. + */ +GtkSourceSearchContext * +gedit_document_get_search_context (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + + priv = gedit_document_get_instance_private (doc); + + return priv->search_context; +} + +gboolean +_gedit_document_get_empty_search (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), TRUE); + + priv = gedit_document_get_instance_private (doc); + + return priv->empty_search; +} + +/** + * gedit_document_get_file: + * @doc: a #GeditDocument. + * + * Gets the associated #GtkSourceFile. You should use it only for reading + * purposes, not for creating a #GtkSourceFileLoader or #GtkSourceFileSaver, + * because gedit does some extra work when loading or saving a file and + * maintains an internal state. If you use in a plugin a file loader or saver on + * the returned #GtkSourceFile, the internal state of gedit won't be updated. + * + * If you want to save the #GeditDocument to a secondary file, you can create a + * new #GtkSourceFile and use a #GtkSourceFileSaver. + * + * Returns: (transfer none): the associated #GtkSourceFile. + * Since: 3.14 + */ +GtkSourceFile * +gedit_document_get_file (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + + priv = gedit_document_get_instance_private (doc); + + return priv->file; +} + +void +_gedit_document_set_create (GeditDocument *doc, + gboolean create) +{ + GeditDocumentPrivate *priv; + + g_return_if_fail (GEDIT_IS_DOCUMENT (doc)); + + priv = gedit_document_get_instance_private (doc); + + priv->create = create != FALSE; +} + +gboolean +_gedit_document_get_create (GeditDocument *doc) +{ + GeditDocumentPrivate *priv; + + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE); + + priv = gedit_document_get_instance_private (doc); + + return priv->create; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h new file mode 100644 index 0000000..4498dab --- /dev/null +++ b/gedit/gedit-document.h @@ -0,0 +1,97 @@ +/* + * gedit-document.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * Copyright (C) 2014 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_DOCUMENT_H +#define GEDIT_DOCUMENT_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_DOCUMENT (gedit_document_get_type()) + +G_DECLARE_DERIVABLE_TYPE (GeditDocument, gedit_document, GEDIT, DOCUMENT, GtkSourceBuffer) + +struct _GeditDocumentClass +{ + GtkSourceBufferClass parent_class; + + /* Signals */ + void (* cursor_moved) (GeditDocument *document); + + void (* load) (GeditDocument *document); + + void (* loaded) (GeditDocument *document); + + void (* save) (GeditDocument *document); + + void (* saved) (GeditDocument *document); +}; + +GeditDocument *gedit_document_new (void); + +GtkSourceFile *gedit_document_get_file (GeditDocument *doc); + +gchar *gedit_document_get_uri_for_display (GeditDocument *doc); + +gchar *gedit_document_get_short_name_for_display (GeditDocument *doc); + +gchar *gedit_document_get_content_type (GeditDocument *doc); + +gchar *gedit_document_get_mime_type (GeditDocument *doc); + +gboolean gedit_document_is_untouched (GeditDocument *doc); + +gboolean gedit_document_is_untitled (GeditDocument *doc); + +void gedit_document_set_language (GeditDocument *doc, + GtkSourceLanguage *lang); +GtkSourceLanguage + *gedit_document_get_language (GeditDocument *doc); + +gchar *gedit_document_get_metadata (GeditDocument *doc, + const gchar *key); + +void gedit_document_set_metadata (GeditDocument *doc, + const gchar *first_key, + ...); + +void gedit_document_set_search_context (GeditDocument *doc, + GtkSourceSearchContext *search_context); + +GtkSourceSearchContext * + gedit_document_get_search_context (GeditDocument *doc); + +G_DEPRECATED_FOR (tepl_view_goto_line) +gboolean gedit_document_goto_line (GeditDocument *doc, + gint line); + +G_DEPRECATED_FOR (tepl_view_goto_line_offset) +gboolean gedit_document_goto_line_offset (GeditDocument *doc, + gint line, + gint line_offset); + +G_END_DECLS + +#endif /* GEDIT_DOCUMENT_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-documents-panel.c b/gedit/gedit-documents-panel.c new file mode 100644 index 0000000..98d84a9 --- /dev/null +++ b/gedit/gedit-documents-panel.c @@ -0,0 +1,1739 @@ +/* + * gedit-documents-panel.c + * This file is part of gedit + * + * Copyright (C) 2014 - Sébastien Lafargue + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-documents-panel.h" + +#include +#include + +#include "gedit-debug.h" +#include "gedit-document.h" +#include "gedit-multi-notebook.h" +#include "gedit-notebook.h" +#include "gedit-notebook-popup-menu.h" +#include "gedit-tab.h" +#include "gedit-tab-private.h" +#include "gedit-utils.h" +#include "gedit-commands-private.h" + +typedef struct _GeditDocumentsGenericRow GeditDocumentsGenericRow; +typedef struct _GeditDocumentsGenericRow GeditDocumentsGroupRow; +typedef struct _GeditDocumentsGenericRow GeditDocumentsDocumentRow; + +struct _GeditDocumentsGenericRow +{ + GtkListBoxRow parent_instance; + + GeditDocumentsPanel *panel; + GtkWidget *ref; + + GtkWidget *box; + GtkWidget *label; + GtkWidget *close_button; + + /* Not used in GeditDocumentsGroupRow */ + GtkWidget *image; + GtkWidget *status_label; +}; + +#define GEDIT_TYPE_DOCUMENTS_GROUP_ROW (gedit_documents_group_row_get_type ()) +#define GEDIT_DOCUMENTS_GROUP_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_DOCUMENTS_GROUP_ROW, GeditDocumentsGroupRow)) +#define GEDIT_DOCUMENTS_GROUP_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_DOCUMENTS_GROUP_ROW, GeditDocumentsGroupRowClass)) +#define GEDIT_IS_DOCUMENTS_GROUP_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_DOCUMENTS_GROUP_ROW)) +#define GEDIT_IS_DOCUMENTS_GROUP_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_DOCUMENTS_GROUP_ROW)) +#define GEDIT_DOCUMENTS_GROUP_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_DOCUMENTS_GROUP_ROW, GeditDocumentsGroupRowClass)) + +typedef struct _GeditDocumentsGroupRowClass GeditDocumentsGroupRowClass; + +struct _GeditDocumentsGroupRowClass +{ + GtkListBoxRowClass parent_class; +}; + +GType gedit_documents_group_row_get_type (void) G_GNUC_CONST; + +G_DEFINE_TYPE (GeditDocumentsGroupRow, gedit_documents_group_row, GTK_TYPE_LIST_BOX_ROW) + +#define GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW (gedit_documents_document_row_get_type ()) +#define GEDIT_DOCUMENTS_DOCUMENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW, GeditDocumentsDocumentRow)) +#define GEDIT_DOCUMENTS_DOCUMENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW, GeditDocumentsDocumentRowClass)) +#define GEDIT_IS_DOCUMENTS_DOCUMENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW)) +#define GEDIT_IS_DOCUMENTS_DOCUMENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW)) +#define GEDIT_DOCUMENTS_DOCUMENT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW, GeditDocumentsDocumentRowClass)) + +typedef struct _GeditDocumentsDocumentRowClass GeditDocumentsDocumentRowClass; + +struct _GeditDocumentsDocumentRowClass +{ + GtkListBoxRowClass parent_class; +}; + +GType gedit_documents_document_row_get_type (void) G_GNUC_CONST; + +G_DEFINE_TYPE (GeditDocumentsDocumentRow, gedit_documents_document_row, GTK_TYPE_LIST_BOX_ROW) + +static GtkWidget *gedit_documents_document_row_new (GeditDocumentsPanel *panel, + GeditTab *tab); +static GtkWidget *gedit_documents_group_row_new (GeditDocumentsPanel *panel, + GeditNotebook *notebook); + +struct _GeditDocumentsPanel +{ + GtkBox parent_instance; + + GeditWindow *window; + GeditMultiNotebook *mnb; + GtkWidget *listbox; + + guint selection_changed_handler_id; + guint tab_switched_handler_id; + gboolean is_in_tab_switched; + + /* Flag to workaround first GroupRow selection at start ( we don't want to show it ) */ + gboolean first_selection; + GtkWidget *current_selection; + + GtkAdjustment *adjustment; + + guint nb_row_notebook; + guint nb_row_tab; + + GtkTargetList *source_targets; + GtkWidget *dnd_window; + GtkWidget *row_placeholder; + guint row_placeholder_index; + guint row_destination_index; + GtkWidget *drag_document_row; + gint row_source_row_offset; + gint document_row_height; + gint drag_document_row_x; + gint drag_document_row_y; + gint drag_root_x; + gint drag_root_y; + gboolean is_on_drag; +}; + +enum +{ + PROP_0, + PROP_WINDOW, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE (GeditDocumentsPanel, gedit_documents_panel, GTK_TYPE_BOX) + +static const GtkTargetEntry panel_targets [] = { + {"GEDIT_DOCUMENTS_DOCUMENT_ROW", GTK_TARGET_SAME_APP, 0}, +}; + +#define MAX_DOC_NAME_LENGTH 60 + +#define ROW_OUTSIDE_LISTBOX -1 + +static guint +get_nb_visible_rows (GeditDocumentsPanel *panel) +{ + guint nb = 0; + + if (panel->nb_row_notebook > 1) + { + nb += panel->nb_row_notebook; + } + + nb += panel->nb_row_tab; + + return nb; +} + +static guint +get_row_visible_index (GeditDocumentsPanel *panel, + GtkWidget *searched_row) +{ + GList *children; + GList *l; + guint nb_notebook_row = 0; + guint nb_tab_row = 0; + + children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + GtkWidget *row = l->data; + + if (GEDIT_IS_DOCUMENTS_GROUP_ROW (row)) + { + nb_notebook_row += 1; + } + else + { + nb_tab_row += 1; + } + + if (row == searched_row) + { + break; + } + } + + g_list_free (children); + + if (panel->nb_row_notebook == 1) + { + nb_notebook_row = 0; + } + + return nb_tab_row + nb_notebook_row - 1; +} + +/* We do not grab focus on the row, so scroll it into view manually */ +static void +make_row_visible (GeditDocumentsPanel *panel, + GtkWidget *row) +{ + gdouble adjustment_value; + gdouble adjustment_lower; + gdouble adjustment_upper; + gdouble adjustment_page_size; + gdouble nb_visible_rows; + gdouble row_visible_index; + gdouble row_size; + gdouble row_position; + gdouble offset; + gdouble new_adjustment_value; + + adjustment_value = gtk_adjustment_get_value (panel->adjustment); + adjustment_lower = gtk_adjustment_get_lower (panel->adjustment); + adjustment_upper = gtk_adjustment_get_upper (panel->adjustment); + adjustment_page_size = gtk_adjustment_get_page_size (panel->adjustment); + + nb_visible_rows = get_nb_visible_rows (panel); + row_visible_index = get_row_visible_index (panel, GTK_WIDGET (row)); + + row_size = (adjustment_upper - adjustment_lower) / nb_visible_rows; + row_position = row_size * row_visible_index; + + if (row_position < adjustment_value) + { + new_adjustment_value = row_position; + } + else if ((row_position + row_size) > (adjustment_value + adjustment_page_size)) + { + offset = (row_position + row_size) - (adjustment_value + adjustment_page_size); + new_adjustment_value = adjustment_value + offset; + } + else + { + new_adjustment_value = adjustment_value; + } + + gtk_adjustment_set_value (panel->adjustment, new_adjustment_value); +} + +/* This function is a GCompareFunc to use with g_list_find_custom */ +static gint +listbox_search_function (gconstpointer row, + gconstpointer item) +{ + GeditDocumentsGenericRow *generic_row = (GeditDocumentsGenericRow *)row; + gpointer *searched_item = (gpointer *)generic_row->ref; + + return searched_item == item ? 0 : -1; +} + +static GtkListBoxRow * +get_row_from_widget (GeditDocumentsPanel *panel, + GtkWidget *widget) +{ + GList *children; + GList *item; + GtkListBoxRow *row; + + children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + + item = g_list_find_custom (children, widget, listbox_search_function); + row = item ? item->data : NULL; + + g_list_free (children); + + return row; +} + +static void +row_select (GeditDocumentsPanel *panel, + GtkListBox *listbox, + GtkListBoxRow *row) +{ + GtkListBoxRow *selected_row = gtk_list_box_get_selected_row (listbox); + + if (row != selected_row) + { + g_signal_handler_block (listbox, panel->selection_changed_handler_id); + gtk_list_box_select_row (listbox, row); + g_signal_handler_unblock (listbox, panel->selection_changed_handler_id); + } + + panel->current_selection = GTK_WIDGET (row); + make_row_visible (panel, GTK_WIDGET (row)); +} + +static void +insert_row (GeditDocumentsPanel *panel, + GtkListBox *listbox, + GtkWidget *row, + gint position) +{ + g_signal_handler_block (listbox, panel->selection_changed_handler_id); + gtk_list_box_insert (listbox, row, position); + g_signal_handler_unblock (listbox, panel->selection_changed_handler_id); +} + +static void +select_active_tab (GeditDocumentsPanel *panel) +{ + GeditNotebook *notebook; + gboolean have_tabs; + GeditTab *tab; + + notebook = gedit_multi_notebook_get_active_notebook (panel->mnb); + have_tabs = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) > 0; + tab = gedit_multi_notebook_get_active_tab (panel->mnb); + + if (notebook != NULL && tab != NULL && have_tabs) + { + GtkListBoxRow *row = get_row_from_widget (panel, GTK_WIDGET (tab)); + + if (row) + { + row_select (panel, GTK_LIST_BOX (panel->listbox), row); + } + } +} + +static GtkListBoxRow * +get_first_notebook_found (GeditDocumentsPanel *panel) +{ + GList *children; + GList *l; + GtkListBoxRow *row = NULL; + + children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + if (GEDIT_IS_DOCUMENTS_GROUP_ROW (l->data)) + { + row = l->data; + break; + } + } + + g_list_free (children); + + return row; +} + +static void +multi_notebook_tab_switched (GeditMultiNotebook *mnb, + GeditNotebook *old_notebook, + GeditTab *old_tab, + GeditNotebook *new_notebook, + GeditTab *new_tab, + GeditDocumentsPanel *panel) +{ + gedit_debug (DEBUG_PANEL); + + if (!_gedit_window_is_removing_tabs (panel->window) && + panel->is_in_tab_switched == FALSE) + { + GtkListBoxRow *row; + + panel->is_in_tab_switched = TRUE; + + row = get_row_from_widget (panel, GTK_WIDGET (new_tab)); + + if (row) + { + row_select (panel, GTK_LIST_BOX (panel->listbox), row); + } + + panel->is_in_tab_switched = FALSE; + } +} + +static void +group_row_set_notebook_name (GtkWidget *row) +{ + GeditNotebook *notebook; + GeditMultiNotebook *mnb; + guint num; + gchar *name; + GeditDocumentsGroupRow *group_row = GEDIT_DOCUMENTS_GROUP_ROW (row); + + notebook = GEDIT_NOTEBOOK (group_row->ref); + + mnb = group_row->panel->mnb; + num = gedit_multi_notebook_get_notebook_num (mnb, notebook); + + name = g_strdup_printf (_("Tab Group %i"), num + 1); + + gtk_label_set_text (GTK_LABEL (group_row->label), name); + + g_free (name); +} + +static void +group_row_update_names (GeditDocumentsPanel *panel, + GtkWidget *listbox) +{ + GList *children; + GList *l; + GtkWidget *row; + + children = gtk_container_get_children (GTK_CONTAINER (listbox)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + row = l->data; + + if (GEDIT_IS_DOCUMENTS_GROUP_ROW (row)) + { + group_row_set_notebook_name (row); + } + } + + g_list_free (children); +} + +static void +group_row_refresh_visibility (GeditDocumentsPanel *panel) +{ + gboolean notebook_is_unique; + GtkWidget *first_group_row; + + notebook_is_unique = gedit_multi_notebook_get_n_notebooks (panel->mnb) <= 1; + first_group_row = GTK_WIDGET (get_first_notebook_found (panel)); + + gtk_widget_set_no_show_all (first_group_row, notebook_is_unique); + gtk_widget_set_visible (first_group_row, !notebook_is_unique); +} + +static gchar * +doc_get_name (GeditDocument *doc) +{ + gchar *name; + gchar *docname; + + name = gedit_document_get_short_name_for_display (doc); + + /* Truncate the name so it doesn't get insanely wide. */ + docname = tepl_utils_str_middle_truncate (name, MAX_DOC_NAME_LENGTH); + + g_free (name); + + return docname; +} + +static void +document_row_sync_tab_name_and_icon (GeditTab *tab, + GParamSpec *pspec, + GtkWidget *row) +{ + GeditDocumentsDocumentRow *document_row = GEDIT_DOCUMENTS_DOCUMENT_ROW (row); + GeditDocument *doc; + GtkSourceFile *file; + gchar *name; + GdkPixbuf *pixbuf; + + doc = gedit_tab_get_document (tab); + name = doc_get_name (doc); + + if (!gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc))) + { + gtk_label_set_text (GTK_LABEL (document_row->label), name); + } + else + { + gchar *markup; + + markup = g_markup_printf_escaped ("%s", name); + gtk_label_set_markup (GTK_LABEL (document_row->label), markup); + + g_free (markup); + } + + g_free (name); + + file = gedit_document_get_file (doc); + + /* The status has as separate label to prevent ellipsizing */ + if (!gtk_source_file_is_readonly (file)) + { + gtk_widget_hide (GTK_WIDGET (document_row->status_label)); + } + else + { + gchar *status; + + status = g_strdup_printf ("[%s]", _("Read-Only")); + + gtk_label_set_text (GTK_LABEL (document_row->status_label), status); + gtk_widget_show (GTK_WIDGET (document_row->status_label)); + + g_free (status); + } + + /* Update header of the row */ + pixbuf = _gedit_tab_get_icon (tab); + + if (pixbuf) + { + gtk_image_set_from_pixbuf (GTK_IMAGE (document_row->image), pixbuf); + } + else + { + gtk_image_clear (GTK_IMAGE (document_row->image)); + } +} + +static void +refresh_notebook (GeditDocumentsPanel *panel, + GeditNotebook *notebook) +{ + GList *tabs; + GList *l; + + tabs = gtk_container_get_children (GTK_CONTAINER (notebook)); + + for (l = tabs; l != NULL; l = g_list_next (l)) + { + GtkWidget *row; + + row = gedit_documents_document_row_new (panel, GEDIT_TAB (l->data)); + insert_row (panel, GTK_LIST_BOX (panel->listbox), row, -1); + panel->nb_row_tab += 1; + } + + g_list_free (tabs); +} + +static void +refresh_notebook_foreach (GeditNotebook *notebook, + GeditDocumentsPanel *panel) +{ + GtkWidget *row; + + row = gedit_documents_group_row_new (panel, notebook); + insert_row (panel, GTK_LIST_BOX (panel->listbox), row, -1); + panel->nb_row_notebook += 1; + + group_row_refresh_visibility (panel); + refresh_notebook (panel, notebook); +} + +static void +refresh_list (GeditDocumentsPanel *panel) +{ + GList *children; + GList *l; + + /* Clear the listbox */ + children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + GeditDocumentsGenericRow *row = l->data; + + if (GEDIT_IS_DOCUMENTS_DOCUMENT_ROW (row)) + { + GeditTab *tab = GEDIT_TAB (row->ref); + g_signal_handlers_disconnect_matched (tab, + G_SIGNAL_MATCH_FUNC, + 0, + 0, + NULL, + G_CALLBACK (document_row_sync_tab_name_and_icon), + NULL); + } + + gtk_widget_destroy (GTK_WIDGET (row)); + } + + g_list_free (children); + + gedit_multi_notebook_foreach_notebook (panel->mnb, + (GtkCallback)refresh_notebook_foreach, + panel); + select_active_tab (panel); +} + +static void +multi_notebook_tab_removed (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditTab *tab, + GeditDocumentsPanel *panel) +{ + GtkListBoxRow *row; + + gedit_debug (DEBUG_PANEL); + + row = get_row_from_widget (panel, GTK_WIDGET (tab)); + + /* Disconnect before destroy it so document_row_sync_tab_name_and_icon() + * don't get invalid data */ + g_signal_handlers_disconnect_by_func (GEDIT_DOCUMENTS_DOCUMENT_ROW (row)->ref, + G_CALLBACK (document_row_sync_tab_name_and_icon), + row); + + gtk_widget_destroy (GTK_WIDGET (row)); + panel->nb_row_tab -= 1; +} + +static gint +get_dest_position_for_tab (GeditDocumentsPanel *panel, + GeditNotebook *notebook, + GeditTab *tab) +{ + gint page_num; + GList *children; + GList *item; + gint res = -1; + + /* Get tab's position in notebook and notebook's position in GtkListBox + * then return future tab's position in GtkListBox */ + + page_num = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), GTK_WIDGET (tab)); + + children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + item = g_list_find_custom (children, notebook, listbox_search_function); + + if (item) + { + res = 1 + page_num + g_list_position (children, item); + } + + g_list_free (children); + + return res; +} + +static void +multi_notebook_tab_added (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditTab *tab, + GeditDocumentsPanel *panel) +{ + gint position; + GtkWidget *row; + + gedit_debug (DEBUG_PANEL); + + position = get_dest_position_for_tab (panel, notebook, tab); + + if (position == -1) + { + panel->nb_row_tab = 0; + panel->nb_row_notebook = 0; + + refresh_list (panel); + } + else + { + /* Add a new tab's row to the listbox */ + row = gedit_documents_document_row_new (panel, tab); + insert_row (panel, GTK_LIST_BOX (panel->listbox), row, position); + + panel->nb_row_tab += 1; + + if (tab == gedit_multi_notebook_get_active_tab (mnb)) + { + row_select (panel, GTK_LIST_BOX (panel->listbox), GTK_LIST_BOX_ROW (row)); + } + } +} + +static void +multi_notebook_notebook_removed (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditDocumentsPanel *panel) +{ + GtkListBoxRow *row; + + gedit_debug (DEBUG_PANEL); + + row = get_row_from_widget (panel, GTK_WIDGET (notebook)); + gtk_container_remove (GTK_CONTAINER (panel->listbox), GTK_WIDGET (row)); + + panel->nb_row_notebook -= 1; + + group_row_refresh_visibility (panel); + group_row_update_names (panel, panel->listbox); +} + +static void +row_move (GeditDocumentsPanel *panel, + GeditNotebook *notebook, + GtkWidget *tab, + GtkWidget *row) +{ + gint position; + + g_object_ref (row); + + gtk_container_remove (GTK_CONTAINER (panel->listbox), GTK_WIDGET (row)); + position = get_dest_position_for_tab (panel, notebook, GEDIT_TAB (tab)); + + g_signal_handler_block (panel->listbox, panel->selection_changed_handler_id); + + gtk_list_box_insert (GTK_LIST_BOX (panel->listbox), row, position); + g_object_unref (row); + + g_signal_handler_unblock (GTK_LIST_BOX (panel->listbox), panel->selection_changed_handler_id); +} + +static void +multi_notebook_tabs_reordered (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GtkWidget *page, + gint page_num, + GeditDocumentsPanel *panel) +{ + GtkListBoxRow *row; + + gedit_debug (DEBUG_PANEL); + + row = get_row_from_widget (panel, GTK_WIDGET (page)); + + row_move (panel, notebook, page, GTK_WIDGET (row)); + + row_select (panel, GTK_LIST_BOX (panel->listbox), GTK_LIST_BOX_ROW (row)); +} + +static void +set_window (GeditDocumentsPanel *panel, + GeditWindow *window) +{ + panel->window = g_object_ref (window); + panel->mnb = GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (window)); + + g_signal_connect (panel->mnb, + "notebook-removed", + G_CALLBACK (multi_notebook_notebook_removed), + panel); + g_signal_connect (panel->mnb, + "tab-added", + G_CALLBACK (multi_notebook_tab_added), + panel); + g_signal_connect (panel->mnb, + "tab-removed", + G_CALLBACK (multi_notebook_tab_removed), + panel); + g_signal_connect (panel->mnb, + "page-reordered", + G_CALLBACK (multi_notebook_tabs_reordered), + panel); + + panel->tab_switched_handler_id = g_signal_connect (panel->mnb, + "switch-tab", + G_CALLBACK (multi_notebook_tab_switched), + panel); + + panel->first_selection = TRUE; + + refresh_list (panel); + group_row_refresh_visibility (panel); +} + +static void +listbox_selection_changed (GtkListBox *listbox, + GtkListBoxRow *row, + GeditDocumentsPanel *panel) +{ + if (row == NULL) + { + /* No selection on document panel */ + return; + } + + /* When the window is shown, the first notebook row is selected + * and therefore also shown - we don't want this */ + + if (panel->first_selection) + { + panel->first_selection = FALSE; + group_row_refresh_visibility (panel); + } + + g_signal_handler_block (panel->mnb, panel->tab_switched_handler_id); + + if (GEDIT_IS_DOCUMENTS_DOCUMENT_ROW (row)) + { + gedit_multi_notebook_set_active_tab (panel->mnb, + GEDIT_TAB (GEDIT_DOCUMENTS_DOCUMENT_ROW (row)->ref)); + + panel->current_selection = GTK_WIDGET (row); + } + else if (GEDIT_IS_DOCUMENTS_GROUP_ROW (row) && panel->current_selection) + { + row_select (panel, + GTK_LIST_BOX (panel->listbox), + GTK_LIST_BOX_ROW (panel->current_selection)); + + } + else + { + g_assert_not_reached (); + } + + g_signal_handler_unblock (panel->mnb, panel->tab_switched_handler_id); +} + +static void +gedit_documents_panel_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (object); + + switch (prop_id) + { + case PROP_WINDOW: + set_window (panel, g_value_get_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_documents_panel_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (object); + + switch (prop_id) + { + case PROP_WINDOW: + g_value_set_object (value, panel->window); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_documents_panel_finalize (GObject *object) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (object); + + g_signal_handlers_disconnect_by_func (panel->mnb, + G_CALLBACK (multi_notebook_notebook_removed), + panel); + g_signal_handlers_disconnect_by_func (panel->mnb, + G_CALLBACK (multi_notebook_tab_added), + panel); + g_signal_handlers_disconnect_by_func (panel->mnb, + G_CALLBACK (multi_notebook_tab_removed), + panel); + g_signal_handlers_disconnect_by_func (panel->mnb, + G_CALLBACK (multi_notebook_tabs_reordered), + panel); + g_signal_handlers_disconnect_by_func (panel->mnb, + G_CALLBACK (multi_notebook_tab_switched), + panel); + + G_OBJECT_CLASS (gedit_documents_panel_parent_class)->finalize (object); +} + +static void +gedit_documents_panel_dispose (GObject *object) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (object); + + g_clear_object (&panel->window); + + if (panel->source_targets) + { + gtk_target_list_unref (panel->source_targets); + panel->source_targets = NULL; + } + + G_OBJECT_CLASS (gedit_documents_panel_parent_class)->dispose (object); +} + +static GtkWidget * +create_placeholder_row (gint height) +{ + GtkStyleContext *context; + + GtkWidget *placeholder_row = gtk_list_box_row_new (); + + context = gtk_widget_get_style_context (placeholder_row); + gtk_style_context_add_class (context, "gedit-document-panel-placeholder-row"); + + gtk_widget_set_size_request (placeholder_row, -1, height); + + return placeholder_row; +} + +static void +panel_on_drag_begin (GtkWidget *widget, + GdkDragContext *context) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + GtkWidget *drag_document_row; + GtkAllocation allocation; + const gchar *name; + GtkWidget *label; + gint width, height; + GtkWidget *image_box; + GtkWidget *box; + GtkStyleContext *style_context; + + drag_document_row = panel->drag_document_row; + gtk_widget_get_allocation (drag_document_row, &allocation); + gtk_widget_hide (drag_document_row); + + panel->document_row_height = allocation.height; + + name = gtk_label_get_label (GTK_LABEL (GEDIT_DOCUMENTS_DOCUMENT_ROW (drag_document_row)->label)); + + label = gtk_label_new (NULL); + gtk_label_set_markup (GTK_LABEL (label), name); + gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END); + gtk_widget_set_halign (label, GTK_ALIGN_START); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); + + gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height); + image_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_size_request (image_box, width, height); + + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); + + gtk_box_pack_start (GTK_BOX (box), image_box, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0); + + panel->dnd_window = gtk_window_new (GTK_WINDOW_POPUP); + gtk_widget_set_size_request (panel->dnd_window, allocation.width, allocation.height); + gtk_window_set_screen (GTK_WINDOW (panel->dnd_window), + gtk_widget_get_screen (drag_document_row)); + + style_context = gtk_widget_get_style_context (panel->dnd_window); + gtk_style_context_add_class (style_context, "gedit-document-panel-dragged-row"); + + gtk_container_add (GTK_CONTAINER (panel->dnd_window), box); + gtk_widget_show_all (panel->dnd_window); + gtk_widget_set_opacity (panel->dnd_window, 0.8); + + gtk_drag_set_icon_widget (context, + panel->dnd_window, + panel->drag_document_row_x, + panel->drag_document_row_y); +} + +static gboolean +panel_on_drag_motion (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + GeditDocumentsGenericRow *generic_row; + GtkWidget *source_panel; + gint dest_x, dest_y; + gint row_placeholder_index; + gint row_index; + + GdkAtom target = gtk_drag_dest_find_target (widget, context, NULL); + + if (target != gdk_atom_intern_static_string ("GEDIT_DOCUMENTS_DOCUMENT_ROW")) + { + gdk_drag_status (context, 0, time); + return FALSE; + } + + gtk_widget_translate_coordinates (widget, panel->listbox, + x, y, + &dest_x, &dest_y); + + generic_row = (GeditDocumentsGenericRow *)gtk_list_box_get_row_at_y (GTK_LIST_BOX (panel->listbox), dest_y); + source_panel = gtk_drag_get_source_widget (context); + + if (!panel->row_placeholder) + { + if (!generic_row) + { + /* We don't have a row height to use, so use the source one */ + panel->document_row_height = GEDIT_DOCUMENTS_PANEL (source_panel)->document_row_height; + } + else + { + GtkAllocation allocation; + + gtk_widget_get_allocation (GTK_WIDGET (generic_row), &allocation); + panel->document_row_height = allocation.height; + } + + panel->row_placeholder = create_placeholder_row (panel->document_row_height); + gtk_widget_show (panel->row_placeholder); + g_object_ref_sink (panel->row_placeholder); + } + else if (GTK_WIDGET (generic_row) == panel->row_placeholder) + { + /* cursor on placeholder */ + gdk_drag_status (context, GDK_ACTION_MOVE, time); + + return TRUE; + } + + if (!generic_row) + { + /* cursor on empty space => put the placeholder at end of list */ + GList *children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + + row_placeholder_index = g_list_length (children); + g_list_free (children); + } + else + { + row_index = gtk_list_box_row_get_index (GTK_LIST_BOX_ROW (generic_row)); + + gtk_widget_translate_coordinates (widget, GTK_WIDGET (generic_row), + x, y, + &dest_x, &dest_y); + + if (dest_y <= panel->document_row_height / 2 && row_index > 0) + { + row_placeholder_index = row_index; + } + else + { + row_placeholder_index = row_index + 1; + } + } + + if (source_panel == widget) + { + /* Adjustment because of hidden source row */ + gint source_row_index = gtk_list_box_row_get_index (GTK_LIST_BOX_ROW (panel->drag_document_row)); + panel->row_source_row_offset = source_row_index < row_placeholder_index ? -1 : 0; + } + + if (panel->row_placeholder_index != row_placeholder_index) + { + if (panel->row_placeholder_index != ROW_OUTSIDE_LISTBOX) + { + gtk_container_remove (GTK_CONTAINER (panel->listbox), + panel->row_placeholder); + + if (panel->row_placeholder_index < row_placeholder_index) + { + /* Adjustment because of existing placeholder row */ + row_placeholder_index -= 1; + } + } + + panel->row_destination_index = panel->row_placeholder_index = row_placeholder_index; + + gtk_list_box_insert (GTK_LIST_BOX (panel->listbox), + panel->row_placeholder, + panel->row_placeholder_index); + } + + gdk_drag_status (context, GDK_ACTION_MOVE, time); + + return TRUE; +} + +static void +panel_on_drag_leave (GtkWidget *widget, + GdkDragContext *context, + guint time) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + + if (panel->row_placeholder_index != ROW_OUTSIDE_LISTBOX) + { + gtk_container_remove (GTK_CONTAINER (panel->listbox), panel->row_placeholder); + panel->row_placeholder_index = ROW_OUTSIDE_LISTBOX; + } +} + +static gboolean +panel_on_drag_drop (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + + GdkAtom target = gtk_drag_dest_find_target (widget, context, NULL); + GtkWidget *source_widget = gtk_drag_get_source_widget (context); + + if (GEDIT_IS_DOCUMENTS_PANEL (source_widget)) + { + gtk_widget_show (GEDIT_DOCUMENTS_PANEL (source_widget)->drag_document_row); + } + + if (target == gdk_atom_intern_static_string ("GEDIT_DOCUMENTS_DOCUMENT_ROW")) + { + gtk_drag_get_data (widget, context, target, time); + return TRUE; + } + + panel->row_placeholder_index = ROW_OUTSIDE_LISTBOX; + return FALSE; +} + +static void +panel_on_drag_data_get (GtkWidget *widget, + GdkDragContext *context, + GtkSelectionData *data, + guint info, + guint time) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + GdkAtom target = gtk_selection_data_get_target (data); + GdkAtom result; + + if (target == gdk_atom_intern_static_string ("GEDIT_DOCUMENTS_DOCUMENT_ROW")) + { + gtk_selection_data_set (data, + target, + 8, + (void*)&panel->drag_document_row, + sizeof (gpointer)); + return; + } + + result = gtk_drag_dest_find_target (widget, context, panel->source_targets); + + if (result != GDK_NONE) + { + GeditTab *tab; + GeditDocument *doc; + gchar *full_name; + + tab = GEDIT_TAB (GEDIT_DOCUMENTS_DOCUMENT_ROW (panel->drag_document_row)->ref); + doc = gedit_tab_get_document (tab); + + if (!gedit_document_is_untitled (doc)) + { + GtkSourceFile *file = gedit_document_get_file (doc); + GFile *location = gtk_source_file_get_location (file); + full_name = g_file_get_parse_name (location); + + gtk_selection_data_set (data, + target, + 8, + (guchar *)full_name, + strlen (full_name)); + g_free (full_name); + } + } + + gtk_widget_show (panel->drag_document_row); +} + +static GeditNotebook * +get_notebook_and_position_from_document_row (GeditDocumentsPanel *panel, + gint row_index, + gint *position) +{ + GList *l; + gint index = 0; + GeditDocumentsGroupRow *row; + + GList *children = gtk_container_get_children (GTK_CONTAINER (panel->listbox)); + gint nb_elements = g_list_length (children); + + if (nb_elements == 1) + { + row = children->data; + } + else + { + l = g_list_nth (children, row_index - 1); + + while (TRUE) + { + row = l->data; + + if (GEDIT_IS_DOCUMENTS_GROUP_ROW (row)) + { + break; + } + + l = g_list_previous (l); + index += 1; + } + } + + g_list_free (children); + + *position = index; + return GEDIT_NOTEBOOK (row->ref); +} + +static void +panel_on_drag_data_received (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + GtkSelectionData *data, + guint info, + guint time) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + GeditDocumentsPanel *source_panel = NULL; + + GtkWidget *source_widget = gtk_drag_get_source_widget (context); + + if (GEDIT_IS_DOCUMENTS_PANEL (source_widget)) + { + source_panel = GEDIT_DOCUMENTS_PANEL (source_widget); + } + + GtkWidget **source_row = (void*) gtk_selection_data_get_data (data); + + if (source_panel && + gtk_selection_data_get_target (data) == gdk_atom_intern_static_string ("GEDIT_DOCUMENTS_DOCUMENT_ROW")) + { + gint source_index = gtk_list_box_row_get_index (GTK_LIST_BOX_ROW (*source_row)); + + /* And finally, we can move the row */ + if (source_panel != panel || + (panel->row_destination_index != source_index && + panel->row_destination_index != source_index + 1)) + { + GeditNotebook *old_notebook, *new_notebook; + gint position; + + GeditTab *tab = GEDIT_TAB (GEDIT_DOCUMENTS_DOCUMENT_ROW (*source_row)->ref); + + old_notebook = gedit_multi_notebook_get_notebook_for_tab (source_panel->mnb, tab); + new_notebook = get_notebook_and_position_from_document_row (panel, + panel->row_destination_index, + &position); + if (old_notebook == new_notebook) + { + gtk_widget_show (*source_row); + + gtk_notebook_reorder_child (GTK_NOTEBOOK (new_notebook), + GTK_WIDGET (tab), + position + panel->row_source_row_offset); + } + else + { + gedit_notebook_move_tab (old_notebook, new_notebook, tab, position); + } + + if (tab != gedit_multi_notebook_get_active_tab (panel->mnb)) + { + g_signal_handler_block (panel->mnb, panel->tab_switched_handler_id); + gedit_multi_notebook_set_active_tab (panel->mnb, tab); + g_signal_handler_unblock (panel->mnb, panel->tab_switched_handler_id); + } + } + + gtk_drag_finish (context, TRUE, FALSE, time); + } + else + { + gtk_drag_finish (context, FALSE, FALSE, time); + } + + panel->row_destination_index = panel->row_placeholder_index = ROW_OUTSIDE_LISTBOX; + + if (panel->row_placeholder) + { + gtk_widget_destroy (panel->row_placeholder); + panel->row_placeholder = NULL; + } +} + +static void +panel_on_drag_end (GtkWidget *widget, + GdkDragContext *context) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + + panel->drag_document_row = NULL; + panel->is_on_drag = FALSE; + + gtk_widget_destroy (panel->dnd_window); + panel->dnd_window = NULL; +} + +static gboolean +panel_on_drag_failed (GtkWidget *widget, + GdkDragContext *context, + GtkDragResult result) +{ + GtkWidget *source_widget = gtk_drag_get_source_widget (context); + + if (GEDIT_IS_DOCUMENTS_PANEL (source_widget)) + { + gtk_widget_show (GEDIT_DOCUMENTS_PANEL (source_widget)->drag_document_row); + } + + return FALSE; +} + +static gboolean +panel_on_motion_notify (GtkWidget *widget, + GdkEventMotion *event) +{ + GeditDocumentsPanel *panel = GEDIT_DOCUMENTS_PANEL (widget); + + if (panel->drag_document_row == NULL || panel->is_on_drag) + { + return FALSE; + } + + if (!(event->state & GDK_BUTTON1_MASK)) + { + panel->drag_document_row = NULL; + + return FALSE; + } + + if (gtk_drag_check_threshold (widget, + panel->drag_root_x, panel->drag_root_y, + event->x_root, event->y_root)) + { + panel->is_on_drag = TRUE; + + gtk_drag_begin_with_coordinates (widget, panel->source_targets, GDK_ACTION_MOVE, + GDK_BUTTON_PRIMARY, (GdkEvent*)event, + -1, -1); + } + + return FALSE; +} + +static void +gedit_documents_panel_class_init (GeditDocumentsPanelClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->finalize = gedit_documents_panel_finalize; + object_class->dispose = gedit_documents_panel_dispose; + object_class->get_property = gedit_documents_panel_get_property; + object_class->set_property = gedit_documents_panel_set_property; + + widget_class->motion_notify_event = panel_on_motion_notify; + + widget_class->drag_begin = panel_on_drag_begin; + widget_class->drag_end = panel_on_drag_end; + widget_class->drag_failed = panel_on_drag_failed; + widget_class->drag_motion = panel_on_drag_motion; + widget_class->drag_leave = panel_on_drag_leave; + widget_class->drag_drop = panel_on_drag_drop; + widget_class->drag_data_get = panel_on_drag_data_get; + widget_class->drag_data_received = panel_on_drag_data_received; + + properties[PROP_WINDOW] = + g_param_spec_object ("window", + "Window", + "The GeditWindow this GeditDocumentsPanel is associated with", + GEDIT_TYPE_WINDOW, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); +} + +static void +gedit_documents_panel_init (GeditDocumentsPanel *panel) +{ + GtkWidget *sw; + GtkStyleContext *context; + + gedit_debug (DEBUG_PANEL); + + gtk_orientable_set_orientation (GTK_ORIENTABLE (panel), + GTK_ORIENTATION_VERTICAL); + + /* Create the scrolled window */ + sw = gtk_scrolled_window_new (NULL, NULL); + + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), + GTK_POLICY_AUTOMATIC, + GTK_POLICY_AUTOMATIC); + gtk_widget_show (sw); + gtk_box_pack_start (GTK_BOX (panel), sw, TRUE, TRUE, 0); + + /* Create the listbox */ + panel->listbox = gtk_list_box_new (); + + gtk_container_add (GTK_CONTAINER (sw), panel->listbox); + + panel->adjustment = gtk_list_box_get_adjustment (GTK_LIST_BOX (panel->listbox)); + + /* Disable focus so it doesn't steal focus each time from the view */ + gtk_widget_set_can_focus (panel->listbox, FALSE); + + /* Css style */ + context = gtk_widget_get_style_context (panel->listbox); + gtk_style_context_add_class (context, "gedit-document-panel"); + + panel->selection_changed_handler_id = g_signal_connect (panel->listbox, + "row-selected", + G_CALLBACK (listbox_selection_changed), + panel); + panel->is_in_tab_switched = FALSE; + panel->current_selection = NULL; + panel->nb_row_notebook = 0; + panel->nb_row_tab = 0; + + /* Drag and drop support */ + panel->source_targets = gtk_target_list_new (panel_targets, G_N_ELEMENTS (panel_targets)); + gtk_target_list_add_text_targets (panel->source_targets, 0); + + gtk_drag_dest_set (GTK_WIDGET (panel), 0, + panel_targets, G_N_ELEMENTS (panel_targets), + GDK_ACTION_MOVE); + + gtk_drag_dest_set_track_motion (GTK_WIDGET (panel), TRUE); + + panel->drag_document_row = NULL; + panel->row_placeholder = NULL; + panel->row_placeholder_index = ROW_OUTSIDE_LISTBOX; + panel->row_destination_index = ROW_OUTSIDE_LISTBOX; + panel->row_source_row_offset = 0; + panel->is_on_drag = FALSE; +} + +GtkWidget * +gedit_documents_panel_new (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return g_object_new (GEDIT_TYPE_DOCUMENTS_PANEL, + "window", window, + NULL); +} + +static void +row_on_close_button_clicked (GtkWidget *close_button, + GtkWidget *row) +{ + GeditDocumentsGenericRow *generic_row = (GeditDocumentsGenericRow *)row; + GeditWindow *window = generic_row->panel->window; + GtkWidget *ref; + + if (GEDIT_IS_DOCUMENTS_GROUP_ROW (row)) + { + ref = GEDIT_DOCUMENTS_GROUP_ROW (row)->ref; + _gedit_cmd_file_close_notebook (window, GEDIT_NOTEBOOK (ref)); + } + else if (GEDIT_IS_DOCUMENTS_DOCUMENT_ROW (row)) + { + ref = GEDIT_DOCUMENTS_DOCUMENT_ROW (row)->ref; + _gedit_cmd_file_close_tab (GEDIT_TAB (ref), window); + } + else + { + g_assert_not_reached (); + } +} + +static gboolean +row_on_button_pressed (GtkWidget *row_event_box, + GdkEventButton *event, + GtkWidget *row) +{ + if (gdk_event_get_event_type ((GdkEvent *)event) == GDK_BUTTON_PRESS && + GEDIT_IS_DOCUMENTS_DOCUMENT_ROW (row)) + { + GeditDocumentsDocumentRow *document_row = GEDIT_DOCUMENTS_DOCUMENT_ROW (row); + GeditDocumentsPanel *panel = document_row->panel; + + if (event->button == GDK_BUTTON_PRIMARY) + { + /* memorize row and clicked position for possible drag'n drop */ + panel->drag_document_row = row; + panel->drag_document_row_x = (gint)event->x; + panel->drag_document_row_y = (gint)event->y; + + panel->drag_root_x = event->x_root; + panel->drag_root_y = event->y_root; + + return FALSE; + } + + panel->drag_document_row = NULL; + + if (gdk_event_triggers_context_menu ((GdkEvent *)event)) + { + GeditWindow *window = panel->window; + GeditTab *tab = GEDIT_TAB (document_row->ref); + GtkWidget *menu = gedit_notebook_popup_menu_new (window, tab); + + g_signal_connect (menu, + "selection-done", + G_CALLBACK (gtk_widget_destroy), + NULL); + + gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event); + + return TRUE; + } + } + + return FALSE; +} + +static void +document_row_create_header (GtkWidget *row) +{ + GeditDocumentsDocumentRow *document_row = GEDIT_DOCUMENTS_DOCUMENT_ROW (row); + GtkWidget *image_box; + gint width, height; + + gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height); + + image_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_size_request (image_box, width, height); + + document_row->image = gtk_image_new (); + + gtk_container_add (GTK_CONTAINER (image_box), document_row->image); + + gtk_box_pack_start (GTK_BOX (document_row->box), + image_box, FALSE, FALSE, 0); + + /* Set the header on front of all other widget in the row */ + gtk_box_reorder_child (GTK_BOX (document_row->box), + image_box, 0); + + gtk_widget_show_all (image_box); +} + +static GtkWidget * +row_create (GtkWidget *row) +{ + GeditDocumentsGenericRow *generic_row = (GeditDocumentsGenericRow *)row; + GtkWidget *event_box; + GtkStyleContext *context; + GtkWidget *image; + GIcon *icon; + + gedit_debug (DEBUG_PANEL); + + event_box = gtk_event_box_new (); + generic_row->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); + + gtk_container_add (GTK_CONTAINER (event_box), generic_row->box); + + generic_row->label = gtk_label_new (NULL); + gtk_label_set_ellipsize (GTK_LABEL (generic_row->label), PANGO_ELLIPSIZE_END); + gtk_widget_set_halign (generic_row->label, GTK_ALIGN_START); + gtk_widget_set_valign (generic_row->label, GTK_ALIGN_CENTER); + + generic_row->status_label = gtk_label_new (NULL); + gtk_widget_set_halign (generic_row->status_label, GTK_ALIGN_END); + gtk_widget_set_valign (generic_row->status_label, GTK_ALIGN_CENTER); + + generic_row->close_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON, + "relief", GTK_RELIEF_NONE, + "focus-on-click", FALSE, + NULL)); + + context = gtk_widget_get_style_context (generic_row->close_button); + gtk_style_context_add_class (context, "flat"); + gtk_style_context_add_class (context, "small-button"); + + icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic"); + image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU); + gtk_widget_show (image); + g_object_unref (icon); + + gtk_container_add (GTK_CONTAINER (generic_row->close_button), image); + + gtk_box_pack_start (GTK_BOX (generic_row->box), + generic_row->label, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (generic_row->box), + generic_row->status_label, FALSE, FALSE, 0); + + gtk_box_pack_end (GTK_BOX (generic_row->box), + generic_row->close_button, FALSE, FALSE, 0); + + g_signal_connect (event_box, + "button-press-event", + G_CALLBACK (row_on_button_pressed), + row); + g_signal_connect (generic_row->close_button, + "clicked", + G_CALLBACK (row_on_close_button_clicked), + row); + + gtk_widget_set_no_show_all (generic_row->status_label, TRUE); + gtk_widget_show_all (event_box); + + return event_box; +} + +static gboolean +document_row_query_tooltip (GtkWidget *row, + gint x, + gint y, + gboolean keyboard_tip, + GtkTooltip *tooltip) +{ + GeditDocumentsGenericRow *generic_row = (GeditDocumentsGenericRow *)row; + gchar *markup; + + if (!GEDIT_IS_DOCUMENTS_DOCUMENT_ROW (row)) + { + return FALSE; + } + + markup = _gedit_tab_get_tooltip (GEDIT_TAB (generic_row->ref)); + gtk_tooltip_set_markup (tooltip, markup); + + g_free (markup); + + return TRUE; +} + +/* Gedit Document Row */ +static void +gedit_documents_document_row_class_init (GeditDocumentsDocumentRowClass *klass) +{ +} + +static void +gedit_documents_document_row_init (GeditDocumentsDocumentRow *row) +{ + GtkWidget *row_widget; + GtkStyleContext *context; + + gedit_debug (DEBUG_PANEL); + + row_widget = row_create (GTK_WIDGET (row)); + gtk_container_add (GTK_CONTAINER (row), row_widget); + + document_row_create_header (GTK_WIDGET (row)); + + gtk_widget_set_has_tooltip (GTK_WIDGET (row), TRUE); + + /* Css style */ + context = gtk_widget_get_style_context (GTK_WIDGET (row)); + gtk_style_context_add_class (context, "gedit-document-panel-document-row"); + + gtk_widget_show_all (GTK_WIDGET (row)); + + gtk_widget_set_can_focus (GTK_WIDGET (row), FALSE); +} + +/* Gedit Group Row */ +static void +gedit_documents_group_row_class_init (GeditDocumentsGroupRowClass *klass) +{ +} + +static void +gedit_documents_group_row_init (GeditDocumentsGroupRow *row) +{ + GtkWidget *row_widget; + GtkStyleContext *context; + + gedit_debug (DEBUG_PANEL); + + row_widget = row_create (GTK_WIDGET (row)); + gtk_container_add (GTK_CONTAINER (row), row_widget); + + /* Css style */ + context = gtk_widget_get_style_context (GTK_WIDGET (row)); + gtk_style_context_add_class (context, "gedit-document-panel-group-row"); + + gtk_widget_show_all (GTK_WIDGET (row)); + + gtk_widget_set_can_focus (GTK_WIDGET (row), FALSE); +} + +static GtkWidget * +gedit_documents_document_row_new (GeditDocumentsPanel *panel, + GeditTab *tab) +{ + GeditDocumentsDocumentRow *row; + + g_return_val_if_fail (GEDIT_IS_DOCUMENTS_PANEL (panel), NULL); + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + gedit_debug (DEBUG_PANEL); + + row = g_object_new (GEDIT_TYPE_DOCUMENTS_DOCUMENT_ROW, NULL); + row->ref = GTK_WIDGET (tab); + row->panel = panel; + + g_signal_connect (row->ref, + "notify::name", + G_CALLBACK (document_row_sync_tab_name_and_icon), + row); + g_signal_connect (row->ref, + "notify::state", + G_CALLBACK (document_row_sync_tab_name_and_icon), + row); + g_signal_connect (row, + "query-tooltip", + G_CALLBACK (document_row_query_tooltip), + NULL); + + document_row_sync_tab_name_and_icon (GEDIT_TAB (row->ref), NULL, GTK_WIDGET (row)); + + return GTK_WIDGET (row); +} + +static GtkWidget * +gedit_documents_group_row_new (GeditDocumentsPanel *panel, + GeditNotebook *notebook) +{ + GeditDocumentsGroupRow *row; + + g_return_val_if_fail (GEDIT_IS_DOCUMENTS_PANEL (panel), NULL); + g_return_val_if_fail (GEDIT_IS_NOTEBOOK (notebook), NULL); + + gedit_debug (DEBUG_PANEL); + + row = g_object_new (GEDIT_TYPE_DOCUMENTS_GROUP_ROW, NULL); + row->ref = GTK_WIDGET (notebook); + row->panel = panel; + + group_row_set_notebook_name (GTK_WIDGET (row)); + + return GTK_WIDGET (row); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-documents-panel.h b/gedit/gedit-documents-panel.h new file mode 100644 index 0000000..08f0e63 --- /dev/null +++ b/gedit/gedit-documents-panel.h @@ -0,0 +1,40 @@ +/* + * gedit-documents-panel.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_DOCUMENTS_PANEL_H +#define GEDIT_DOCUMENTS_PANEL_H + +#include + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_DOCUMENTS_PANEL (gedit_documents_panel_get_type()) + +G_DECLARE_FINAL_TYPE (GeditDocumentsPanel, gedit_documents_panel, GEDIT, DOCUMENTS_PANEL, GtkBox) + +GtkWidget *gedit_documents_panel_new (GeditWindow *window); + +G_END_DECLS + +#endif /* GEDIT_DOCUMENTS_PANEL_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-encoding-items.c b/gedit/gedit-encoding-items.c new file mode 100644 index 0000000..93bd488 --- /dev/null +++ b/gedit/gedit-encoding-items.c @@ -0,0 +1,108 @@ +/* + * gedit-encoding-items.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-encoding-items.h" + +#include + +#include "gedit-settings.h" + +struct _GeditEncodingItem +{ + const GtkSourceEncoding *encoding; + gchar *name; +}; + +static GeditEncodingItem * +gedit_encoding_item_new (const GtkSourceEncoding *encoding, + gchar *name) +{ + GeditEncodingItem *item = g_slice_new (GeditEncodingItem); + + item->encoding = encoding; + item->name = name; + + return item; +} + +void +gedit_encoding_item_free (GeditEncodingItem *item) +{ + if (item == NULL) + { + return; + } + + g_free (item->name); + g_slice_free (GeditEncodingItem, item); +} + +const GtkSourceEncoding * +gedit_encoding_item_get_encoding (GeditEncodingItem *item) +{ + g_return_val_if_fail (item != NULL, NULL); + + return item->encoding; +} + +const gchar * +gedit_encoding_item_get_name (GeditEncodingItem *item) +{ + g_return_val_if_fail (item != NULL, NULL); + + return item->name; +} + +GSList * +gedit_encoding_items_get (void) +{ + const GtkSourceEncoding *current_encoding; + GSList *encodings; + GSList *items = NULL; + GSList *l; + + encodings = gedit_settings_get_candidate_encodings (NULL); + + current_encoding = gtk_source_encoding_get_current (); + + for (l = encodings; l != NULL; l = l->next) + { + const GtkSourceEncoding *enc = l->data; + gchar *name; + + if (enc == current_encoding) + { + name = g_strdup_printf (_("Current Locale (%s)"), + gtk_source_encoding_get_charset (enc)); + } + else + { + name = gtk_source_encoding_to_string (enc); + } + + items = g_slist_prepend (items, gedit_encoding_item_new (enc, name)); + } + + g_slist_free (encodings); + + return g_slist_reverse (items); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-encoding-items.h b/gedit/gedit-encoding-items.h new file mode 100644 index 0000000..07e3917 --- /dev/null +++ b/gedit/gedit-encoding-items.h @@ -0,0 +1,40 @@ +/* + * gedit-encoding-items.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_ENCODING_ITEMS_H +#define GEDIT_ENCODING_ITEMS_H + +#include + +G_BEGIN_DECLS + +typedef struct _GeditEncodingItem GeditEncodingItem; + +GSList *gedit_encoding_items_get (void); + +void gedit_encoding_item_free (GeditEncodingItem *item); +const GtkSourceEncoding *gedit_encoding_item_get_encoding (GeditEncodingItem *item); +const gchar *gedit_encoding_item_get_name (GeditEncodingItem *item); + +G_END_DECLS + +#endif /* GEDIT_ENCODING_ITEMS_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-encodings-combo-box.c b/gedit/gedit-encodings-combo-box.c new file mode 100644 index 0000000..87b1711 --- /dev/null +++ b/gedit/gedit-encodings-combo-box.c @@ -0,0 +1,445 @@ +/* + * gedit-encodings-combo-box.c + * This file is part of gedit + * + * Copyright (C) 2003-2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-encodings-combo-box.h" + +#include + +#include "gedit-encodings-dialog.h" +#include "gedit-settings.h" +#include "gedit-utils.h" +#include "gedit-encoding-items.h" + +struct _GeditEncodingsComboBox +{ + GtkComboBox parent_instance; + + GtkListStore *store; + glong changed_id; + + guint activated_item; + + guint save_mode : 1; +}; + +enum +{ + COLUMN_NAME, + COLUMN_ENCODING, + COLUMN_CONFIGURE_ROW, /* TRUE for the "Add or Remove..." row. */ + N_COLUMNS +}; + +enum +{ + PROP_0, + PROP_SAVE_MODE, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE (GeditEncodingsComboBox, gedit_encodings_combo_box, GTK_TYPE_COMBO_BOX) + +static void update_menu (GeditEncodingsComboBox *combo_box); + +static void +gedit_encodings_combo_box_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditEncodingsComboBox *combo; + + combo = GEDIT_ENCODINGS_COMBO_BOX (object); + + switch (prop_id) + { + case PROP_SAVE_MODE: + combo->save_mode = g_value_get_boolean (value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_encodings_combo_box_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditEncodingsComboBox *combo; + + combo = GEDIT_ENCODINGS_COMBO_BOX (object); + + switch (prop_id) + { + case PROP_SAVE_MODE: + g_value_set_boolean (value, combo->save_mode); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_encodings_combo_box_dispose (GObject *object) +{ + GeditEncodingsComboBox *combo = GEDIT_ENCODINGS_COMBO_BOX (object); + + g_clear_object (&combo->store); + + G_OBJECT_CLASS (gedit_encodings_combo_box_parent_class)->dispose (object); +} + +static void +gedit_encodings_combo_box_constructed (GObject *object) +{ + GeditEncodingsComboBox *combo = GEDIT_ENCODINGS_COMBO_BOX (object); + GtkCellRenderer *text_renderer; + + G_OBJECT_CLASS (gedit_encodings_combo_box_parent_class)->constructed (object); + + /* Setup up the cells */ + text_renderer = gtk_cell_renderer_text_new (); + gtk_cell_layout_pack_end (GTK_CELL_LAYOUT (combo), + text_renderer, TRUE); + + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), + text_renderer, + "text", + COLUMN_NAME, + NULL); + + update_menu (combo); +} + +static void +gedit_encodings_combo_box_class_init (GeditEncodingsComboBoxClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->set_property = gedit_encodings_combo_box_set_property; + object_class->get_property = gedit_encodings_combo_box_get_property; + object_class->dispose = gedit_encodings_combo_box_dispose; + object_class->constructed = gedit_encodings_combo_box_constructed; + + /** + * GeditEncodingsComboBox:save-mode: + * + * Whether the combo box should be used for saving a content. If + * %FALSE, the combo box is used for loading a content (e.g. a file) + * and the row "Automatically Detected" is added. + */ + /* TODO It'd be clearer if "save-mode" is renamed as "mode" with an + * enum: loading, saving. Or something like that. + */ + properties[PROP_SAVE_MODE] = + g_param_spec_boolean ("save-mode", + "Save Mode", + "Save Mode", + FALSE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); +} + +static void +dialog_response_cb (GtkDialog *dialog, + gint response_id, + GeditEncodingsComboBox *menu) +{ + update_menu (menu); + gtk_widget_destroy (GTK_WIDGET (dialog)); +} + +static void +configure_encodings (GeditEncodingsComboBox *menu) +{ + GtkWidget *dialog; + + GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (menu)); + + if (!gtk_widget_is_toplevel (toplevel)) + { + toplevel = NULL; + } + + g_signal_handler_block (menu, menu->changed_id); + gtk_combo_box_set_active (GTK_COMBO_BOX (menu), + menu->activated_item); + g_signal_handler_unblock (menu, menu->changed_id); + + dialog = gedit_encodings_dialog_new (); + + if (toplevel != NULL) + { + GtkWindowGroup *wg; + + gtk_window_set_transient_for (GTK_WINDOW (dialog), + GTK_WINDOW (toplevel)); + + if (gtk_window_has_group (GTK_WINDOW (toplevel))) + { + wg = gtk_window_get_group (GTK_WINDOW (toplevel)); + } + else + { + wg = gtk_window_group_new (); + gtk_window_group_add_window (wg, GTK_WINDOW (toplevel)); + } + + gtk_window_group_add_window (wg, GTK_WINDOW (dialog)); + } + + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); + + g_signal_connect_after (dialog, + "response", + G_CALLBACK (dialog_response_cb), + menu); + + gtk_widget_show (dialog); +} + +static void +changed_cb (GeditEncodingsComboBox *menu, + GtkTreeModel *model) +{ + GtkTreeIter iter; + gboolean configure = FALSE; + + if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (menu), &iter)) + { + gtk_tree_model_get (model, &iter, + COLUMN_CONFIGURE_ROW, &configure, + -1); + } + + if (configure) + { + configure_encodings (menu); + } + else + { + menu->activated_item = gtk_combo_box_get_active (GTK_COMBO_BOX (menu)); + } +} + +static gboolean +separator_func (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data) +{ + gchar *str; + gboolean ret; + + gtk_tree_model_get (model, iter, COLUMN_NAME, &str, -1); + ret = (str == NULL || str[0] == '\0'); + g_free (str); + + return ret; +} + +static void +add_separator (GtkListStore *store) +{ + GtkTreeIter iter; + + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, + COLUMN_NAME, "", + COLUMN_ENCODING, NULL, + COLUMN_CONFIGURE_ROW, FALSE, + -1); +} + +static void +update_menu (GeditEncodingsComboBox *menu) +{ + GtkListStore *store; + GtkTreeIter iter; + GSList *encodings; + + store = menu->store; + + /* Unset the previous model */ + g_signal_handler_block (menu, menu->changed_id); + gtk_list_store_clear (store); + gtk_combo_box_set_model (GTK_COMBO_BOX (menu), NULL); + + if (!menu->save_mode) + { + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, + COLUMN_NAME, _("Automatically Detected"), + COLUMN_ENCODING, NULL, + COLUMN_CONFIGURE_ROW, FALSE, + -1); + + add_separator (store); + } + + encodings = gedit_encoding_items_get (); + + while (encodings) + { + GeditEncodingItem *item = encodings->data; + + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, + COLUMN_NAME, gedit_encoding_item_get_name (item), + COLUMN_ENCODING, gedit_encoding_item_get_encoding (item), + COLUMN_CONFIGURE_ROW, FALSE, + -1); + + gedit_encoding_item_free (item); + encodings = g_slist_delete_link (encodings, encodings); + } + + add_separator (store); + + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, + COLUMN_NAME, _("Add or Remove…"), + COLUMN_ENCODING, NULL, + COLUMN_CONFIGURE_ROW, TRUE, + -1); + + /* set the model back */ + gtk_combo_box_set_model (GTK_COMBO_BOX (menu), + GTK_TREE_MODEL (menu->store)); + gtk_combo_box_set_active (GTK_COMBO_BOX (menu), 0); + + g_signal_handler_unblock (menu, menu->changed_id); +} + +static void +gedit_encodings_combo_box_init (GeditEncodingsComboBox *menu) +{ + menu->store = gtk_list_store_new (N_COLUMNS, + G_TYPE_STRING, + G_TYPE_POINTER, + G_TYPE_BOOLEAN); + + gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (menu), + separator_func, NULL, + NULL); + + menu->changed_id = g_signal_connect (menu, + "changed", + G_CALLBACK (changed_cb), + menu->store); +} + +/** + * gedit_encodings_combo_box_new: + * @save_mode: whether the combo box is used for saving a content. + * + * Creates a new encodings combo box object. If @save_mode is %FALSE, it means + * that the combo box is used for loading a content (e.g. a file), so the row + * "Automatically Detected" is added. For saving a content, the encoding must be + * provided. + * + * Returns: a new #GeditEncodingsComboBox object. + */ +GtkWidget * +gedit_encodings_combo_box_new (gboolean save_mode) +{ + return g_object_new (GEDIT_TYPE_ENCODINGS_COMBO_BOX, + "save_mode", save_mode, + NULL); +} + +/** + * gedit_encodings_combo_box_get_selected_encoding: + * @menu: a #GeditEncodingsComboBox. + * + * Returns: the selected #GtkSourceEncoding, or %NULL if the encoding should be + * auto-detected (only for loading mode, not for saving). + */ +const GtkSourceEncoding * +gedit_encodings_combo_box_get_selected_encoding (GeditEncodingsComboBox *menu) +{ + GtkTreeIter iter; + + g_return_val_if_fail (GEDIT_IS_ENCODINGS_COMBO_BOX (menu), NULL); + + if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (menu), &iter)) + { + const GtkSourceEncoding *ret; + GtkTreeModel *model; + + model = gtk_combo_box_get_model (GTK_COMBO_BOX (menu)); + + gtk_tree_model_get (model, &iter, + COLUMN_ENCODING, &ret, + -1); + + return ret; + } + + return NULL; +} + +/** + * gedit_encodings_combo_box_set_selected_encoding: + * @menu: a #GeditEncodingsComboBox. + * @encoding: the #GtkSourceEncoding. + * + * Sets the selected encoding. + */ +void +gedit_encodings_combo_box_set_selected_encoding (GeditEncodingsComboBox *menu, + const GtkSourceEncoding *encoding) +{ + GtkTreeIter iter; + GtkTreeModel *model; + gboolean b; + + g_return_if_fail (GEDIT_IS_ENCODINGS_COMBO_BOX (menu)); + + model = gtk_combo_box_get_model (GTK_COMBO_BOX (menu)); + b = gtk_tree_model_get_iter_first (model, &iter); + + while (b) + { + const GtkSourceEncoding *enc; + + gtk_tree_model_get (model, &iter, + COLUMN_ENCODING, &enc, + -1); + + if (enc == encoding) + { + gtk_combo_box_set_active_iter (GTK_COMBO_BOX (menu), &iter); + return; + } + + b = gtk_tree_model_iter_next (model, &iter); + } +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-encodings-combo-box.h b/gedit/gedit-encodings-combo-box.h new file mode 100644 index 0000000..c37f341 --- /dev/null +++ b/gedit/gedit-encodings-combo-box.h @@ -0,0 +1,43 @@ +/* + * gedit-encodings-combo-box.h + * This file is part of gedit + * + * Copyright (C) 2003-2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_ENCODINGS_COMBO_BOX_H +#define GEDIT_ENCODINGS_COMBO_BOX_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_ENCODINGS_COMBO_BOX (gedit_encodings_combo_box_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditEncodingsComboBox, gedit_encodings_combo_box, GEDIT, ENCODINGS_COMBO_BOX, GtkComboBox) + +GtkWidget *gedit_encodings_combo_box_new (gboolean save_mode); + +const GtkSourceEncoding *gedit_encodings_combo_box_get_selected_encoding (GeditEncodingsComboBox *menu); + +void gedit_encodings_combo_box_set_selected_encoding (GeditEncodingsComboBox *menu, + const GtkSourceEncoding *encoding); + +G_END_DECLS + +#endif /* GEDIT_ENCODINGS_COMBO_BOX_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-encodings-dialog.c b/gedit/gedit-encodings-dialog.c new file mode 100644 index 0000000..196690a --- /dev/null +++ b/gedit/gedit-encodings-dialog.c @@ -0,0 +1,884 @@ +/* + * gedit-encodings-dialog.c + * This file is part of gedit + * + * Copyright (C) 2002-2005 Paolo Maggi + * Copyright (C) 2015 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-encodings-dialog.h" + +#include +#include +#include + +#include "gedit-settings.h" + +typedef enum _State +{ + STATE_UNMODIFIED, + STATE_MODIFIED, + STATE_RESET +} State; + +struct _GeditEncodingsDialog +{ + GtkDialog parent_instance; + + GSettings *enc_settings; + + /* Available encodings */ + GtkListStore *liststore_available; + GtkTreeModelSort *sort_available; + GtkTreeView *treeview_available; + GtkWidget *add_button; + + /* Chosen encodings */ + GtkListStore *liststore_chosen; + GtkTreeView *treeview_chosen; + GtkWidget *remove_button; + GtkWidget *up_button; + GtkWidget *down_button; + GtkWidget *reset_button; + + State state; +}; + +enum +{ + COLUMN_NAME, + COLUMN_CHARSET, + COLUMN_ENCODING, + N_COLUMNS +}; + +G_DEFINE_TYPE (GeditEncodingsDialog, gedit_encodings_dialog, GTK_TYPE_DIALOG) + +static void +set_modified (GeditEncodingsDialog *dialog) +{ + dialog->state = STATE_MODIFIED; + gtk_widget_set_sensitive (dialog->reset_button, TRUE); +} + +static void +append_encoding (GtkListStore *liststore, + const GtkSourceEncoding *encoding) +{ + GtkTreeIter iter; + + gtk_list_store_append (liststore, &iter); + gtk_list_store_set (liststore, &iter, + COLUMN_NAME, gtk_source_encoding_get_name (encoding), + COLUMN_ENCODING, encoding, + -1); + + if (encoding == gtk_source_encoding_get_current ()) + { + gchar *charset = g_strdup_printf (_("%s (Current Locale)"), + gtk_source_encoding_get_charset (encoding)); + + gtk_list_store_set (liststore, &iter, + COLUMN_CHARSET, charset, + -1); + + g_free (charset); + } + else + { + gtk_list_store_set (liststore, &iter, + COLUMN_CHARSET, gtk_source_encoding_get_charset (encoding), + -1); + } +} + +static void +init_liststores (GeditEncodingsDialog *dialog, + gboolean reset) +{ + gboolean default_candidates; + GSList *chosen_encodings; + GSList *all_encodings; + GSList *l; + + /* Chosen encodings */ + + if (reset) + { + chosen_encodings = gtk_source_encoding_get_default_candidates (); + default_candidates = TRUE; + } + else + { + chosen_encodings = gedit_settings_get_candidate_encodings (&default_candidates); + } + + gtk_widget_set_sensitive (dialog->reset_button, !default_candidates); + + for (l = chosen_encodings; l != NULL; l = l->next) + { + const GtkSourceEncoding *cur_encoding = l->data; + append_encoding (dialog->liststore_chosen, cur_encoding); + } + + /* Available encodings */ + + all_encodings = gtk_source_encoding_get_all (); + + for (l = chosen_encodings; l != NULL; l = l->next) + { + const GtkSourceEncoding *chosen_encoding = l->data; + all_encodings = g_slist_remove (all_encodings, chosen_encoding); + } + + for (l = all_encodings; l != NULL; l = l->next) + { + const GtkSourceEncoding *cur_encoding = l->data; + append_encoding (dialog->liststore_available, cur_encoding); + } + + g_slist_free (chosen_encodings); + g_slist_free (all_encodings); +} + +static void +reset_dialog_response_cb (GtkDialog *msg_dialog, + gint response, + GeditEncodingsDialog *dialog) +{ + if (response == GTK_RESPONSE_ACCEPT) + { + gtk_list_store_clear (dialog->liststore_available); + gtk_list_store_clear (dialog->liststore_chosen); + + init_liststores (dialog, TRUE); + dialog->state = STATE_RESET; + } + + gtk_widget_destroy (GTK_WIDGET (msg_dialog)); +} + +static void +reset_button_clicked_cb (GtkWidget *button, + GeditEncodingsDialog *dialog) +{ + GtkDialog *msg_dialog; + + msg_dialog = GTK_DIALOG (gtk_message_dialog_new (GTK_WINDOW (dialog), + GTK_DIALOG_DESTROY_WITH_PARENT | + GTK_DIALOG_MODAL, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_NONE, + "%s", + _("Do you really want to reset the " + "character encodings’ preferences?"))); + + gtk_dialog_add_buttons (msg_dialog, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Reset"), GTK_RESPONSE_ACCEPT, + NULL); + + g_signal_connect (msg_dialog, + "response", + G_CALLBACK (reset_dialog_response_cb), + dialog); + + gtk_widget_show_all (GTK_WIDGET (msg_dialog)); +} + +static GSList * +get_chosen_encodings_list (GeditEncodingsDialog *dialog) +{ + GtkTreeModel *model = GTK_TREE_MODEL (dialog->liststore_chosen); + GtkTreeIter iter; + gboolean iter_set; + GSList *ret = NULL; + + iter_set = gtk_tree_model_get_iter_first (model, &iter); + + while (iter_set) + { + const GtkSourceEncoding *encoding = NULL; + + gtk_tree_model_get (model, &iter, + COLUMN_ENCODING, &encoding, + -1); + + ret = g_slist_prepend (ret, (gpointer)encoding); + + iter_set = gtk_tree_model_iter_next (model, &iter); + } + + return g_slist_reverse (ret); +} + +static gchar ** +encoding_list_to_strv (const GSList *enc_list) +{ + GSList *l; + GPtrArray *array; + + array = g_ptr_array_sized_new (g_slist_length ((GSList *)enc_list) + 1); + + for (l = (GSList *)enc_list; l != NULL; l = l->next) + { + const GtkSourceEncoding *enc = l->data; + const gchar *charset = gtk_source_encoding_get_charset (enc); + + g_return_val_if_fail (charset != NULL, NULL); + + g_ptr_array_add (array, g_strdup (charset)); + } + + g_ptr_array_add (array, NULL); + + return (gchar **)g_ptr_array_free (array, FALSE); +} + +static void +apply_settings (GeditEncodingsDialog *dialog) +{ + switch (dialog->state) + { + case STATE_MODIFIED: + { + GSList *enc_list; + gchar **enc_strv; + + enc_list = get_chosen_encodings_list (dialog); + enc_strv = encoding_list_to_strv (enc_list); + + g_settings_set_strv (dialog->enc_settings, + GEDIT_SETTINGS_CANDIDATE_ENCODINGS, + (const gchar * const *)enc_strv); + + g_slist_free (enc_list); + g_strfreev (enc_strv); + break; + } + + case STATE_RESET: + g_settings_reset (dialog->enc_settings, + GEDIT_SETTINGS_CANDIDATE_ENCODINGS); + break; + + case STATE_UNMODIFIED: + /* Do nothing. */ + break; + + default: + g_assert_not_reached (); + + } +} + +static void +gedit_encodings_dialog_response (GtkDialog *gtk_dialog, + gint response_id) +{ + GeditEncodingsDialog *dialog = GEDIT_ENCODINGS_DIALOG (gtk_dialog); + + switch (response_id) + { + case GTK_RESPONSE_APPLY: + apply_settings (dialog); + break; + + case GTK_RESPONSE_CANCEL: + default: + /* Do nothing */ + break; + } +} + +static void +gedit_encodings_dialog_dispose (GObject *object) +{ + GeditEncodingsDialog *dialog = GEDIT_ENCODINGS_DIALOG (object); + + g_clear_object (&dialog->enc_settings); + g_clear_object (&dialog->add_button); + g_clear_object (&dialog->remove_button); + g_clear_object (&dialog->up_button); + g_clear_object (&dialog->down_button); + g_clear_object (&dialog->reset_button); + + G_OBJECT_CLASS (gedit_encodings_dialog_parent_class)->dispose (object); +} + +static void +gedit_encodings_dialog_class_init (GeditEncodingsDialogClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkDialogClass *dialog_class = GTK_DIALOG_CLASS (klass); + + object_class->dispose = gedit_encodings_dialog_dispose; + + dialog_class->response = gedit_encodings_dialog_response; + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-encodings-dialog.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditEncodingsDialog, liststore_available); + gtk_widget_class_bind_template_child (widget_class, GeditEncodingsDialog, liststore_chosen); + gtk_widget_class_bind_template_child (widget_class, GeditEncodingsDialog, sort_available); + gtk_widget_class_bind_template_child (widget_class, GeditEncodingsDialog, treeview_available); + gtk_widget_class_bind_template_child (widget_class, GeditEncodingsDialog, treeview_chosen); + gtk_widget_class_bind_template_child_full (widget_class, "scrolledwindow_available", FALSE, 0); + gtk_widget_class_bind_template_child_full (widget_class, "scrolledwindow_chosen", FALSE, 0); + gtk_widget_class_bind_template_child_full (widget_class, "toolbar_available", FALSE, 0); + gtk_widget_class_bind_template_child_full (widget_class, "toolbar_chosen", FALSE, 0); +} + +static void +update_add_button_sensitivity (GeditEncodingsDialog *dialog) +{ + GtkTreeSelection *selection; + gint count; + + selection = gtk_tree_view_get_selection (dialog->treeview_available); + count = gtk_tree_selection_count_selected_rows (selection); + gtk_widget_set_sensitive (dialog->add_button, count > 0); +} + +static void +update_remove_button_sensitivity (GeditEncodingsDialog *dialog) +{ + const GtkSourceEncoding *utf8_encoding; + const GtkSourceEncoding *current_encoding; + GtkTreeSelection *selection; + GtkTreeModel *model; + GList *selected_rows; + GList *l; + gboolean sensitive; + + utf8_encoding = gtk_source_encoding_get_utf8 (); + current_encoding = gtk_source_encoding_get_current (); + + selection = gtk_tree_view_get_selection (dialog->treeview_chosen); + + selected_rows = gtk_tree_selection_get_selected_rows (selection, &model); + g_return_if_fail (model == GTK_TREE_MODEL (dialog->liststore_chosen)); + + sensitive = FALSE; + for (l = selected_rows; l != NULL; l = l->next) + { + GtkTreePath *path = l->data; + GtkTreeIter iter; + const GtkSourceEncoding *encoding = NULL; + + if (!gtk_tree_model_get_iter (model, &iter, path)) + { + g_warning ("Remove button: invalid path"); + continue; + } + + gtk_tree_model_get (model, &iter, + COLUMN_ENCODING, &encoding, + -1); + + /* If at least one encoding other than UTF-8 or current is + * selected, set the Remove button as sensitive. But if UTF-8 or + * current is selected, it won't be removed. So Ctrl+A works + * fine to remove (almost) all encodings in one go. + */ + if (encoding != utf8_encoding && + encoding != current_encoding) + { + sensitive = TRUE; + break; + } + } + + gtk_widget_set_sensitive (dialog->remove_button, sensitive); + + g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free); +} + +static void +update_up_down_buttons_sensitivity (GeditEncodingsDialog *dialog) +{ + GtkTreeSelection *selection; + gint count; + GList *selected_rows; + GtkTreeModel *model; + GtkTreePath *path; + gint *indices; + gint depth; + gint items_count; + gboolean first_item_selected; + gboolean last_item_selected; + + selection = gtk_tree_view_get_selection (dialog->treeview_chosen); + count = gtk_tree_selection_count_selected_rows (selection); + + if (count != 1) + { + gtk_widget_set_sensitive (dialog->up_button, FALSE); + gtk_widget_set_sensitive (dialog->down_button, FALSE); + return; + } + + selected_rows = gtk_tree_selection_get_selected_rows (selection, &model); + g_assert (g_list_length (selected_rows) == 1); + + path = selected_rows->data; + indices = gtk_tree_path_get_indices_with_depth (path, &depth); + g_assert (depth == 1); + + items_count = gtk_tree_model_iter_n_children (model, NULL); + + first_item_selected = indices[0] == 0; + last_item_selected = indices[0] == (items_count - 1); + + gtk_widget_set_sensitive (dialog->up_button, !first_item_selected); + gtk_widget_set_sensitive (dialog->down_button, !last_item_selected); + + g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free); +} + +static void +update_chosen_buttons_sensitivity (GeditEncodingsDialog *dialog) +{ + update_remove_button_sensitivity (dialog); + update_up_down_buttons_sensitivity (dialog); +} + +/* Removes all @paths from @orig, and append them at the end of @dest in the + * same order. + */ +static void +transfer_encodings (GList *paths, + GtkListStore *orig, + GtkListStore *dest) +{ + GtkTreeModel *model_orig = GTK_TREE_MODEL (orig); + GList *refs = NULL; + GList *l; + + for (l = paths; l != NULL; l = l->next) + { + GtkTreePath *path = l->data; + refs = g_list_prepend (refs, gtk_tree_row_reference_new (model_orig, path)); + } + + refs = g_list_reverse (refs); + + for (l = refs; l != NULL; l = l->next) + { + GtkTreeRowReference *ref = l->data; + GtkTreePath *path; + GtkTreeIter iter; + const GtkSourceEncoding *encoding = NULL; + + path = gtk_tree_row_reference_get_path (ref); + + if (!gtk_tree_model_get_iter (model_orig, &iter, path)) + { + gtk_tree_path_free (path); + g_warning ("Remove encoding: invalid path"); + continue; + } + + /* Transfer encoding */ + gtk_tree_model_get (model_orig, &iter, + COLUMN_ENCODING, &encoding, + -1); + + append_encoding (dest, encoding); + + gtk_list_store_remove (orig, &iter); + + gtk_tree_path_free (path); + } + + g_list_free_full (refs, (GDestroyNotify) gtk_tree_row_reference_free); +} + +static void +add_button_clicked_cb (GtkWidget *button, + GeditEncodingsDialog *dialog) +{ + GtkTreeSelection *selection; + GtkTreeModel *model; + GList *filter_paths; + GList *children_paths = NULL; + GList *l; + + selection = gtk_tree_view_get_selection (dialog->treeview_available); + filter_paths = gtk_tree_selection_get_selected_rows (selection, &model); + + g_return_if_fail (model == GTK_TREE_MODEL (dialog->sort_available)); + + for (l = filter_paths; l != NULL; l = l->next) + { + GtkTreePath *filter_path = l->data; + GtkTreePath *child_path; + + child_path = gtk_tree_model_sort_convert_path_to_child_path (dialog->sort_available, + filter_path); + + children_paths = g_list_prepend (children_paths, child_path); + } + + children_paths = g_list_reverse (children_paths); + + transfer_encodings (children_paths, + dialog->liststore_available, + dialog->liststore_chosen); + + set_modified (dialog); + + /* For the treeview_available, it's more natural to unselect the added + * encodings. + * Note that when removing encodings from treeview_chosen, it is + * desirable to keep a selection, so we can remove several elements in a + * row (if the user doesn't know that several elements can be selected + * at once with Ctrl or Shift). + */ + gtk_tree_selection_unselect_all (selection); + + g_list_free_full (filter_paths, (GDestroyNotify) gtk_tree_path_free); + g_list_free_full (children_paths, (GDestroyNotify) gtk_tree_path_free); +} + +static void +remove_button_clicked_cb (GtkWidget *button, + GeditEncodingsDialog *dialog) +{ + const GtkSourceEncoding *utf8_encoding; + const GtkSourceEncoding *current_encoding; + GtkTreeSelection *selection; + GtkTreeModel *model; + GList *selected_rows; + GList *to_remove = NULL; + GList *l; + + utf8_encoding = gtk_source_encoding_get_utf8 (); + current_encoding = gtk_source_encoding_get_current (); + + selection = gtk_tree_view_get_selection (dialog->treeview_chosen); + selected_rows = gtk_tree_selection_get_selected_rows (selection, &model); + + g_return_if_fail (model == GTK_TREE_MODEL (dialog->liststore_chosen)); + + /* Ensure that UTF-8 and the current locale encodings cannot be removed. */ + for (l = selected_rows; l != NULL; l = l->next) + { + GtkTreePath *path = l->data; + GtkTreeIter iter; + const GtkSourceEncoding *encoding = NULL; + + if (!gtk_tree_model_get_iter (model, &iter, path)) + { + gtk_tree_path_free (path); + g_warning ("Remove button: invalid path"); + continue; + } + + gtk_tree_model_get (model, &iter, + COLUMN_ENCODING, &encoding, + -1); + + if (encoding == utf8_encoding || + encoding == current_encoding) + { + gtk_tree_path_free (path); + } + else + { + to_remove = g_list_prepend (to_remove, path); + } + } + + to_remove = g_list_reverse (to_remove); + + transfer_encodings (to_remove, + dialog->liststore_chosen, + dialog->liststore_available); + + set_modified (dialog); + + g_list_free (selected_rows); + g_list_free_full (to_remove, (GDestroyNotify) gtk_tree_path_free); +} + +static void +up_button_clicked_cb (GtkWidget *button, + GeditEncodingsDialog *dialog) +{ + GtkTreeSelection *selection; + GtkTreeModel *model; + GList *selected_rows; + GtkTreePath *path; + GtkTreeIter iter; + GtkTreeIter prev_iter; + + selection = gtk_tree_view_get_selection (dialog->treeview_chosen); + selected_rows = gtk_tree_selection_get_selected_rows (selection, &model); + + g_return_if_fail (model == GTK_TREE_MODEL (dialog->liststore_chosen)); + g_return_if_fail (g_list_length (selected_rows) == 1); + + path = selected_rows->data; + if (!gtk_tree_model_get_iter (model, &iter, path)) + { + g_return_if_reached (); + } + + prev_iter = iter; + if (!gtk_tree_model_iter_previous (model, &prev_iter)) + { + g_return_if_reached (); + } + + gtk_list_store_move_before (dialog->liststore_chosen, + &iter, + &prev_iter); + + set_modified (dialog); + + update_chosen_buttons_sensitivity (dialog); + + g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free); +} + +static void +down_button_clicked_cb (GtkWidget *button, + GeditEncodingsDialog *dialog) +{ + GtkTreeSelection *selection; + GtkTreeModel *model; + GList *selected_rows; + GtkTreePath *path; + GtkTreeIter iter; + GtkTreeIter next_iter; + + selection = gtk_tree_view_get_selection (dialog->treeview_chosen); + selected_rows = gtk_tree_selection_get_selected_rows (selection, &model); + + g_return_if_fail (model == GTK_TREE_MODEL (dialog->liststore_chosen)); + g_return_if_fail (g_list_length (selected_rows) == 1); + + path = selected_rows->data; + if (!gtk_tree_model_get_iter (model, &iter, path)) + { + g_return_if_reached (); + } + + next_iter = iter; + if (!gtk_tree_model_iter_next (model, &next_iter)) + { + g_return_if_reached (); + } + + gtk_list_store_move_after (dialog->liststore_chosen, + &iter, + &next_iter); + + set_modified (dialog); + + update_chosen_buttons_sensitivity (dialog); + + g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free); +} + +static void +init_toolbar_available (GeditEncodingsDialog *dialog) +{ + GtkWidget *scrolled_window; + GtkToolbar *toolbar; + GtkStyleContext *context; + + scrolled_window = GTK_WIDGET (gtk_widget_get_template_child (GTK_WIDGET (dialog), + GEDIT_TYPE_ENCODINGS_DIALOG, + "scrolledwindow_available")); + + toolbar = GTK_TOOLBAR (gtk_widget_get_template_child (GTK_WIDGET (dialog), + GEDIT_TYPE_ENCODINGS_DIALOG, + "toolbar_available")); + + context = gtk_widget_get_style_context (scrolled_window); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM); + + context = gtk_widget_get_style_context (GTK_WIDGET (toolbar)); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_INLINE_TOOLBAR); + + /* Add button */ + dialog->add_button = GTK_WIDGET (gtk_tool_button_new (NULL, NULL)); + g_object_ref_sink (dialog->add_button); + + gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (dialog->add_button), "list-add-symbolic"); + gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (dialog->add_button), _("Add")); + + gtk_toolbar_insert (toolbar, GTK_TOOL_ITEM (dialog->add_button), -1); + + g_signal_connect_object (dialog->add_button, + "clicked", + G_CALLBACK (add_button_clicked_cb), + dialog, + 0); + + gtk_widget_show_all (GTK_WIDGET (toolbar)); +} + +static void +init_toolbar_chosen (GeditEncodingsDialog *dialog) +{ + GtkWidget *scrolled_window; + GtkToolbar *toolbar; + GtkStyleContext *context; + GtkWidget *left_box; + GtkWidget *right_box; + GtkToolItem *left_group; + GtkToolItem *right_group; + GtkToolItem *separator; + + scrolled_window = GTK_WIDGET (gtk_widget_get_template_child (GTK_WIDGET (dialog), + GEDIT_TYPE_ENCODINGS_DIALOG, + "scrolledwindow_chosen")); + + toolbar = GTK_TOOLBAR (gtk_widget_get_template_child (GTK_WIDGET (dialog), + GEDIT_TYPE_ENCODINGS_DIALOG, + "toolbar_chosen")); + + context = gtk_widget_get_style_context (scrolled_window); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM); + + context = gtk_widget_get_style_context (GTK_WIDGET (toolbar)); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_INLINE_TOOLBAR); + + /* Remove button */ + dialog->remove_button = gtk_button_new_from_icon_name ("list-remove-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + g_object_ref_sink (dialog->remove_button); + gtk_widget_set_tooltip_text (dialog->remove_button, _("Remove")); + + g_signal_connect_object (dialog->remove_button, + "clicked", + G_CALLBACK (remove_button_clicked_cb), + dialog, + 0); + + /* Up button */ + dialog->up_button = gtk_button_new_from_icon_name ("go-up-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + g_object_ref_sink (dialog->up_button); + gtk_widget_set_tooltip_text (dialog->up_button, _("Move to a higher priority")); + + g_signal_connect_object (dialog->up_button, + "clicked", + G_CALLBACK (up_button_clicked_cb), + dialog, + 0); + + /* Down button */ + dialog->down_button = gtk_button_new_from_icon_name ("go-down-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + g_object_ref_sink (dialog->down_button); + gtk_widget_set_tooltip_text (dialog->down_button, _("Move to a lower priority")); + + g_signal_connect_object (dialog->down_button, + "clicked", + G_CALLBACK (down_button_clicked_cb), + dialog, + 0); + + /* Left group (with a trick for rounded borders) */ + left_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + left_group = gtk_tool_item_new (); + gtk_box_pack_start (GTK_BOX (left_box), dialog->remove_button, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (left_box), dialog->up_button, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (left_box), dialog->down_button, FALSE, FALSE, 0); + gtk_container_add (GTK_CONTAINER (left_group), left_box); + gtk_toolbar_insert (toolbar, left_group, -1); + + /* Separator */ + separator = gtk_separator_tool_item_new (); + gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM (separator), FALSE); + gtk_tool_item_set_expand (separator, TRUE); + gtk_toolbar_insert (toolbar, separator, -1); + + /* Reset button */ + dialog->reset_button = gtk_button_new_with_mnemonic (_("_Reset")); + g_object_ref_sink (dialog->reset_button); + + g_signal_connect_object (dialog->reset_button, + "clicked", + G_CALLBACK (reset_button_clicked_cb), + dialog, + 0); + + /* Right group */ + right_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + right_group = gtk_tool_item_new (); + gtk_box_pack_start (GTK_BOX (right_box), dialog->reset_button, FALSE, FALSE, 0); + gtk_container_add (GTK_CONTAINER (right_group), right_box); + gtk_toolbar_insert (toolbar, right_group, -1); + + gtk_widget_show_all (GTK_WIDGET (toolbar)); +} + +static void +gedit_encodings_dialog_init (GeditEncodingsDialog *dialog) +{ + GtkTreeSelection *selection; + + dialog->enc_settings = g_settings_new ("org.gnome.gedit.preferences.encodings"); + + gtk_widget_init_template (GTK_WIDGET (dialog)); + + init_toolbar_available (dialog); + init_toolbar_chosen (dialog); + init_liststores (dialog, FALSE); + dialog->state = STATE_UNMODIFIED; + + /* Available encodings */ + gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (dialog->sort_available), + COLUMN_NAME, + GTK_SORT_ASCENDING); + + selection = gtk_tree_view_get_selection (dialog->treeview_available); + + g_signal_connect_swapped (selection, + "changed", + G_CALLBACK (update_add_button_sensitivity), + dialog); + + update_add_button_sensitivity (dialog); + + /* Chosen encodings */ + selection = gtk_tree_view_get_selection (dialog->treeview_chosen); + + g_signal_connect_swapped (selection, + "changed", + G_CALLBACK (update_chosen_buttons_sensitivity), + dialog); + + update_chosen_buttons_sensitivity (dialog); +} + +GtkWidget * +gedit_encodings_dialog_new (void) +{ + return g_object_new (GEDIT_TYPE_ENCODINGS_DIALOG, + "use-header-bar", TRUE, + NULL); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-encodings-dialog.h b/gedit/gedit-encodings-dialog.h new file mode 100644 index 0000000..4acd17a --- /dev/null +++ b/gedit/gedit-encodings-dialog.h @@ -0,0 +1,37 @@ +/* + * gedit-encodings-dialog.h + * This file is part of gedit + * + * Copyright (C) 2003-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_ENCODINGS_DIALOG_H +#define GEDIT_ENCODINGS_DIALOG_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_ENCODINGS_DIALOG (gedit_encodings_dialog_get_type()) + +G_DECLARE_FINAL_TYPE (GeditEncodingsDialog, gedit_encodings_dialog, GEDIT, ENCODINGS_DIALOG, GtkDialog) + +GtkWidget *gedit_encodings_dialog_new (void); + +G_END_DECLS + +#endif /* GEDIT_ENCODINGS_DIALOG_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-factory.c b/gedit/gedit-factory.c new file mode 100644 index 0000000..409b3be --- /dev/null +++ b/gedit/gedit-factory.c @@ -0,0 +1,50 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-factory.h" +#include "gedit-dirs.h" + +G_DEFINE_TYPE (GeditFactory, gedit_factory, TEPL_TYPE_ABSTRACT_FACTORY) + +static GFile * +gedit_factory_create_metadata_manager_file (TeplAbstractFactory *factory) +{ + return g_file_new_build_filename (gedit_dirs_get_user_data_dir (), + "gedit-metadata.xml", + NULL); +} + +static void +gedit_factory_class_init (GeditFactoryClass *klass) +{ + TeplAbstractFactoryClass *factory_class = TEPL_ABSTRACT_FACTORY_CLASS (klass); + + factory_class->create_metadata_manager_file = gedit_factory_create_metadata_manager_file; +} + +static void +gedit_factory_init (GeditFactory *factory) +{ +} + +GeditFactory * +gedit_factory_new (void) +{ + return g_object_new (GEDIT_TYPE_FACTORY, NULL); +} diff --git a/gedit/gedit-factory.h b/gedit/gedit-factory.h new file mode 100644 index 0000000..05e19f7 --- /dev/null +++ b/gedit/gedit-factory.h @@ -0,0 +1,53 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FACTORY_H +#define GEDIT_FACTORY_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FACTORY (gedit_factory_get_type ()) +#define GEDIT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FACTORY, GeditFactory)) +#define GEDIT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FACTORY, GeditFactoryClass)) +#define GEDIT_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FACTORY)) +#define GEDIT_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FACTORY)) +#define GEDIT_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FACTORY, GeditFactoryClass)) + +typedef struct _GeditFactory GeditFactory; +typedef struct _GeditFactoryClass GeditFactoryClass; + +struct _GeditFactory +{ + TeplAbstractFactory parent; +}; + +struct _GeditFactoryClass +{ + TeplAbstractFactoryClass parent_class; +}; + +GType gedit_factory_get_type (void); + +GeditFactory * gedit_factory_new (void); + +G_END_DECLS + +#endif /* GEDIT_FACTORY_H */ diff --git a/gedit/gedit-file-chooser-dialog-gtk.c b/gedit/gedit-file-chooser-dialog-gtk.c new file mode 100644 index 0000000..4b8b4db --- /dev/null +++ b/gedit/gedit-file-chooser-dialog-gtk.c @@ -0,0 +1,465 @@ +/* + * gedit-file-chooser-dialog-gtk.c + * This file is part of gedit + * + * Copyright (C) 2005-2007 - Paolo Maggi + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +/* TODO: Override set_extra_widget */ +/* TODO: add encoding property */ + +#include "config.h" +#include "gedit-file-chooser-dialog-gtk.h" +#include +#include +#include "gedit-encodings-combo-box.h" +#include "gedit-debug.h" +#include "gedit-enum-types.h" +#include "gedit-settings.h" +#include "gedit-utils.h" +#include "gedit-file-chooser.h" + +struct _GeditFileChooserDialogGtk +{ + GtkFileChooserDialog parent_instance; + + GeditFileChooser *gedit_file_chooser; + + GtkWidget *option_menu; + GtkWidget *extra_widget; + + GtkWidget *newline_label; + GtkWidget *newline_combo; + GtkListStore *newline_store; +}; + +static void gedit_file_chooser_dialog_gtk_chooser_init (gpointer g_iface, gpointer iface_data); + +G_DEFINE_TYPE_EXTENDED (GeditFileChooserDialogGtk, + gedit_file_chooser_dialog_gtk, + GTK_TYPE_FILE_CHOOSER_DIALOG, + 0, + G_IMPLEMENT_INTERFACE (GEDIT_TYPE_FILE_CHOOSER_DIALOG, + gedit_file_chooser_dialog_gtk_chooser_init)) + + +static void +chooser_set_encoding (GeditFileChooserDialog *dialog, + const GtkSourceEncoding *encoding) +{ + GeditFileChooserDialogGtk *dialog_gtk = GEDIT_FILE_CHOOSER_DIALOG_GTK (dialog); + + g_return_if_fail (GEDIT_IS_ENCODINGS_COMBO_BOX (dialog_gtk->option_menu)); + + gedit_encodings_combo_box_set_selected_encoding (GEDIT_ENCODINGS_COMBO_BOX (dialog_gtk->option_menu), + encoding); +} + +static const GtkSourceEncoding * +chooser_get_encoding (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogGtk *dialog_gtk = GEDIT_FILE_CHOOSER_DIALOG_GTK (dialog); + + g_return_val_if_fail (GEDIT_IS_ENCODINGS_COMBO_BOX (dialog_gtk->option_menu), NULL); + g_return_val_if_fail ((gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) == GTK_FILE_CHOOSER_ACTION_OPEN || + gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) == GTK_FILE_CHOOSER_ACTION_SAVE), NULL); + + return gedit_encodings_combo_box_get_selected_encoding ( + GEDIT_ENCODINGS_COMBO_BOX (dialog_gtk->option_menu)); +} + +static void +set_enum_combo (GtkComboBox *combo, + gint value) +{ + GtkTreeIter iter; + GtkTreeModel *model; + + model = gtk_combo_box_get_model (combo); + + if (!gtk_tree_model_get_iter_first (model, &iter)) + { + return; + } + + do + { + gint nt; + + gtk_tree_model_get (model, &iter, 1, &nt, -1); + + if (value == nt) + { + gtk_combo_box_set_active_iter (combo, &iter); + break; + } + } while (gtk_tree_model_iter_next (model, &iter)); +} + +static void +chooser_set_newline_type (GeditFileChooserDialog *dialog, + GtkSourceNewlineType newline_type) +{ + GeditFileChooserDialogGtk *dialog_gtk = GEDIT_FILE_CHOOSER_DIALOG_GTK (dialog); + + g_return_if_fail (gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) == GTK_FILE_CHOOSER_ACTION_SAVE); + + set_enum_combo (GTK_COMBO_BOX (dialog_gtk->newline_combo), newline_type); +} + +static GtkSourceNewlineType +chooser_get_newline_type (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogGtk *dialog_gtk = GEDIT_FILE_CHOOSER_DIALOG_GTK (dialog); + GtkTreeIter iter; + GtkSourceNewlineType newline_type; + + g_return_val_if_fail (gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) == GTK_FILE_CHOOSER_ACTION_SAVE, + GTK_SOURCE_NEWLINE_TYPE_DEFAULT); + + gtk_combo_box_get_active_iter (GTK_COMBO_BOX (dialog_gtk->newline_combo), + &iter); + + gtk_tree_model_get (GTK_TREE_MODEL (dialog_gtk->newline_store), + &iter, + 1, + &newline_type, + -1); + + return newline_type; +} + +static void +chooser_set_current_folder (GeditFileChooserDialog *dialog, + GFile *folder) +{ + gchar *uri = NULL; + + if (folder != NULL) + { + uri = g_file_get_uri (folder); + } + + gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), uri); + g_free (uri); +} + +static void +chooser_set_current_name (GeditFileChooserDialog *dialog, + const gchar *name) +{ + gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), name); +} + +static void +chooser_set_file (GeditFileChooserDialog *dialog, + GFile *file) +{ + gtk_file_chooser_set_file (GTK_FILE_CHOOSER (dialog), file, NULL); +} + +static GFile * +chooser_get_file (GeditFileChooserDialog *dialog) +{ + return gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog)); +} + +static void +chooser_set_do_overwrite_confirmation (GeditFileChooserDialog *dialog, + gboolean overwrite_confirmation) +{ + gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), overwrite_confirmation); +} + +static void +chooser_show (GeditFileChooserDialog *dialog) +{ + gtk_window_present (GTK_WINDOW (dialog)); + gtk_widget_grab_focus (GTK_WIDGET (dialog)); +} + +static void +chooser_destroy (GeditFileChooserDialog *dialog) +{ + gtk_widget_destroy (GTK_WIDGET (dialog)); +} + +static void +chooser_set_modal (GeditFileChooserDialog *dialog, + gboolean is_modal) +{ + gtk_window_set_modal (GTK_WINDOW (dialog), is_modal); +} + +static GtkWindow * +chooser_get_window (GeditFileChooserDialog *dialog) +{ + return GTK_WINDOW (dialog); +} + +static void +gedit_file_chooser_dialog_gtk_chooser_init (gpointer g_iface, + gpointer iface_data) +{ + GeditFileChooserDialogInterface *iface = g_iface; + + iface->set_encoding = chooser_set_encoding; + iface->get_encoding = chooser_get_encoding; + + iface->set_newline_type = chooser_set_newline_type; + iface->get_newline_type = chooser_get_newline_type; + + iface->set_current_folder = chooser_set_current_folder; + iface->set_current_name = chooser_set_current_name; + iface->set_file = chooser_set_file; + iface->get_file = chooser_get_file; + iface->set_do_overwrite_confirmation = chooser_set_do_overwrite_confirmation; + iface->show = chooser_show; + iface->destroy = chooser_destroy; + iface->set_modal = chooser_set_modal; + iface->get_window = chooser_get_window; +} + +static void +gedit_file_chooser_dialog_gtk_dispose (GObject *object) +{ + GeditFileChooserDialogGtk *dialog = GEDIT_FILE_CHOOSER_DIALOG_GTK (object); + + g_clear_object (&dialog->gedit_file_chooser); + + G_OBJECT_CLASS (gedit_file_chooser_dialog_gtk_parent_class)->dispose (object); +} + +static void +gedit_file_chooser_dialog_gtk_class_init (GeditFileChooserDialogGtkClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_file_chooser_dialog_gtk_dispose; +} + +static void +create_option_menu (GeditFileChooserDialogGtk *dialog) +{ + GtkWidget *label; + GtkWidget *menu; + gboolean save_mode; + + label = gtk_label_new_with_mnemonic (_("C_haracter Encoding:")); + gtk_widget_set_halign (label, GTK_ALIGN_START); + + save_mode = TRUE; + menu = gedit_encodings_combo_box_new (save_mode); + + gtk_label_set_mnemonic_widget (GTK_LABEL (label), menu); + + gtk_box_pack_start (GTK_BOX (dialog->extra_widget), + label, + FALSE, + TRUE, + 0); + + gtk_box_pack_start (GTK_BOX (dialog->extra_widget), + menu, + TRUE, + TRUE, + 0); + + gtk_widget_show (label); + gtk_widget_show (menu); + + dialog->option_menu = menu; +} + +static void +update_newline_visibility (GeditFileChooserDialogGtk *dialog) +{ + gboolean visible = gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) == GTK_FILE_CHOOSER_ACTION_SAVE; + + gtk_widget_set_visible (dialog->newline_label, visible); + gtk_widget_set_visible (dialog->newline_combo, visible); +} + +static void +newline_combo_append (GtkComboBox *combo, + GtkListStore *store, + GtkTreeIter *iter, + const gchar *label, + GtkSourceNewlineType newline_type) +{ + gtk_list_store_append (store, iter); + gtk_list_store_set (store, iter, 0, label, 1, newline_type, -1); + + if (newline_type == GTK_SOURCE_NEWLINE_TYPE_DEFAULT) + { + gtk_combo_box_set_active_iter (combo, iter); + } +} + +static void +create_newline_combo (GeditFileChooserDialogGtk *dialog) +{ + GtkWidget *label, *combo; + GtkListStore *store; + GtkCellRenderer *renderer; + GtkTreeIter iter; + + label = gtk_label_new_with_mnemonic (_("L_ine Ending:")); + gtk_widget_set_halign (label, GTK_ALIGN_START); + + store = gtk_list_store_new (2, G_TYPE_STRING, GTK_SOURCE_TYPE_NEWLINE_TYPE); + combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)); + renderer = gtk_cell_renderer_text_new (); + + gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), + renderer, + TRUE); + + gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (combo), + renderer, + "text", + 0); + + newline_combo_append (GTK_COMBO_BOX (combo), + store, + &iter, + gedit_utils_newline_type_to_string (GTK_SOURCE_NEWLINE_TYPE_LF), + GTK_SOURCE_NEWLINE_TYPE_LF); + + newline_combo_append (GTK_COMBO_BOX (combo), + store, + &iter, + gedit_utils_newline_type_to_string (GTK_SOURCE_NEWLINE_TYPE_CR), + GTK_SOURCE_NEWLINE_TYPE_CR); + + newline_combo_append (GTK_COMBO_BOX (combo), + store, + &iter, + gedit_utils_newline_type_to_string (GTK_SOURCE_NEWLINE_TYPE_CR_LF), + GTK_SOURCE_NEWLINE_TYPE_CR_LF); + + gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo); + + gtk_box_pack_start (GTK_BOX (dialog->extra_widget), + label, + FALSE, + TRUE, + 0); + + gtk_box_pack_start (GTK_BOX (dialog->extra_widget), + combo, + TRUE, + TRUE, + 0); + + dialog->newline_combo = combo; + dialog->newline_label = label; + dialog->newline_store = store; + + update_newline_visibility (dialog); +} + +static void +create_extra_widget (GeditFileChooserDialogGtk *dialog) +{ + dialog->extra_widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); + gtk_widget_show (dialog->extra_widget); + + create_option_menu (dialog); + create_newline_combo (dialog); + + gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog), dialog->extra_widget); +} + +static void +action_changed (GeditFileChooserDialogGtk *dialog, + GParamSpec *pspec, + gpointer data) +{ + GtkFileChooserAction action; + + action = gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)); + + switch (action) + { + case GTK_FILE_CHOOSER_ACTION_OPEN: + g_object_set (dialog->option_menu, + "save_mode", FALSE, + NULL); + gtk_widget_show (dialog->option_menu); + break; + case GTK_FILE_CHOOSER_ACTION_SAVE: + g_object_set (dialog->option_menu, + "save_mode", TRUE, + NULL); + gtk_widget_show (dialog->option_menu); + break; + default: + gtk_widget_hide (dialog->option_menu); + } + + update_newline_visibility (dialog); +} + +static void +gedit_file_chooser_dialog_gtk_init (GeditFileChooserDialogGtk *dialog) +{ +} + +GeditFileChooserDialog * +gedit_file_chooser_dialog_gtk_create (const gchar *title, + GtkWindow *parent, + const gchar *accept_label, + const gchar *cancel_label) +{ + GeditFileChooserDialogGtk *result; + + result = g_object_new (GEDIT_TYPE_FILE_CHOOSER_DIALOG_GTK, + "title", title, + "local-only", FALSE, + "action", GTK_FILE_CHOOSER_ACTION_SAVE, + "select-multiple", FALSE, + NULL); + + create_extra_widget (result); + + g_signal_connect (result, + "notify::action", + G_CALLBACK (action_changed), + NULL); + + /* FIXME: attention, there is a ref cycle here. This will be fixed when + * GeditFileChooserSave will be created (and this class removed). + */ + result->gedit_file_chooser = _gedit_file_chooser_new (); + _gedit_file_chooser_set_gtk_file_chooser (result->gedit_file_chooser, + GTK_FILE_CHOOSER (result)); + + if (parent != NULL) + { + gtk_window_set_transient_for (GTK_WINDOW (result), parent); + gtk_window_set_destroy_with_parent (GTK_WINDOW (result), TRUE); + } + + gtk_dialog_add_button (GTK_DIALOG (result), cancel_label, GTK_RESPONSE_CANCEL); + gtk_dialog_add_button (GTK_DIALOG (result), accept_label, GTK_RESPONSE_ACCEPT); + gtk_dialog_set_default_response (GTK_DIALOG (result), GTK_RESPONSE_ACCEPT); + + return GEDIT_FILE_CHOOSER_DIALOG (result); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-file-chooser-dialog-gtk.h b/gedit/gedit-file-chooser-dialog-gtk.h new file mode 100644 index 0000000..0bf6a0d --- /dev/null +++ b/gedit/gedit-file-chooser-dialog-gtk.h @@ -0,0 +1,45 @@ +/* + * gedit-file-chooser-dialog-gtk.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_CHOOSER_DIALOG_GTK_H +#define GEDIT_FILE_CHOOSER_DIALOG_GTK_H + +#include +#include "gedit-file-chooser-dialog.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_CHOOSER_DIALOG_GTK (gedit_file_chooser_dialog_gtk_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditFileChooserDialogGtk, gedit_file_chooser_dialog_gtk, + GEDIT, FILE_CHOOSER_DIALOG_GTK, + GtkFileChooserDialog) + +GeditFileChooserDialog * gedit_file_chooser_dialog_gtk_create (const gchar *title, + GtkWindow *parent, + const gchar *accept_label, + const gchar *cancel_label); + +G_END_DECLS + +#endif /* GEDIT_FILE_CHOOSER_DIALOG_GTK_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-file-chooser-dialog.c b/gedit/gedit-file-chooser-dialog.c new file mode 100644 index 0000000..56edbae --- /dev/null +++ b/gedit/gedit-file-chooser-dialog.c @@ -0,0 +1,258 @@ +/* + * gedit-app-file-chooser-dialog.h + * This file is part of gedit + * + * Copyright (C) 2014 Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" +#include "gedit-file-chooser-dialog.h" +#include "gedit-file-chooser-dialog-gtk.h" + +G_DEFINE_INTERFACE (GeditFileChooserDialog, gedit_file_chooser_dialog, G_TYPE_OBJECT) + +static gboolean +confirm_overwrite_accumulator (GSignalInvocationHint *ihint, + GValue *return_accu, + const GValue *handler_return, + gpointer dummy) +{ + gboolean continue_emission; + GtkFileChooserConfirmation conf; + + conf = g_value_get_enum (handler_return); + g_value_set_enum (return_accu, conf); + continue_emission = (conf == GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM); + + return continue_emission; +} + +static void +gedit_file_chooser_dialog_default_init (GeditFileChooserDialogInterface *iface) +{ + g_signal_new ("response", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + 0, + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + G_TYPE_INT); + + g_signal_new ("confirm-overwrite", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + 0, + confirm_overwrite_accumulator, NULL, NULL, + GTK_TYPE_FILE_CHOOSER_CONFIRMATION, + 0); +} + +GeditFileChooserDialog * +gedit_file_chooser_dialog_create (const gchar *title, + GtkWindow *parent, + const gchar *accept_label, + const gchar *cancel_label) +{ + return gedit_file_chooser_dialog_gtk_create (title, + parent, + accept_label, + cancel_label); +} + +void +gedit_file_chooser_dialog_set_encoding (GeditFileChooserDialog *dialog, + const GtkSourceEncoding *encoding) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_encoding != NULL); + + iface->set_encoding (dialog, encoding); +} + +const GtkSourceEncoding * +gedit_file_chooser_dialog_get_encoding (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogInterface *iface; + + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog), NULL); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_val_if_fail (iface->get_encoding != NULL, NULL); + + return iface->get_encoding (dialog); +} + +void +gedit_file_chooser_dialog_set_newline_type (GeditFileChooserDialog *dialog, + GtkSourceNewlineType newline_type) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_newline_type != NULL); + + iface->set_newline_type (dialog, newline_type); +} + +GtkSourceNewlineType +gedit_file_chooser_dialog_get_newline_type (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogInterface *iface; + + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog), GTK_SOURCE_NEWLINE_TYPE_DEFAULT); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_val_if_fail (iface->get_newline_type != NULL, GTK_SOURCE_NEWLINE_TYPE_DEFAULT); + + return iface->get_newline_type (dialog); +} + + +void +gedit_file_chooser_dialog_set_current_folder (GeditFileChooserDialog *dialog, + GFile *folder) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_current_folder != NULL); + + iface->set_current_folder (dialog, folder); +} + +void +gedit_file_chooser_dialog_set_current_name (GeditFileChooserDialog *dialog, + const gchar *name) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_current_name != NULL); + + iface->set_current_name (dialog, name); +} + +void +gedit_file_chooser_dialog_set_file (GeditFileChooserDialog *dialog, + GFile *file) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + g_return_if_fail (file == NULL || G_IS_FILE (file)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_file != NULL); + + iface->set_file (dialog, file); +} + +GFile * +gedit_file_chooser_dialog_get_file (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogInterface *iface; + + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog), NULL); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_val_if_fail (iface->get_file != NULL, NULL); + + return iface->get_file (dialog); +} + +void +gedit_file_chooser_dialog_set_do_overwrite_confirmation (GeditFileChooserDialog *dialog, + gboolean overwrite_confirmation) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_do_overwrite_confirmation != NULL); + + iface->set_do_overwrite_confirmation (dialog, overwrite_confirmation); +} + +void +gedit_file_chooser_dialog_show (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->show != NULL); + + iface->show (dialog); +} + +void +gedit_file_chooser_dialog_destroy (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->destroy != NULL); + + iface->destroy (dialog); +} + +void +gedit_file_chooser_dialog_set_modal (GeditFileChooserDialog *dialog, + gboolean is_modal) +{ + GeditFileChooserDialogInterface *iface; + + g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog)); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + g_return_if_fail (iface->set_modal != NULL); + + iface->set_modal (dialog, is_modal); +} + +GtkWindow * +gedit_file_chooser_dialog_get_window (GeditFileChooserDialog *dialog) +{ + GeditFileChooserDialogInterface *iface; + + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog), NULL); + + iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog); + + if (iface->get_window) + { + return iface->get_window (dialog); + } + + return NULL; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-file-chooser-dialog.h b/gedit/gedit-file-chooser-dialog.h new file mode 100644 index 0000000..b759c65 --- /dev/null +++ b/gedit/gedit-file-chooser-dialog.h @@ -0,0 +1,123 @@ +/* + * gedit-file-chooser-dialog.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_CHOOSER_DIALOG_H +#define GEDIT_FILE_CHOOSER_DIALOG_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_CHOOSER_DIALOG (gedit_file_chooser_dialog_get_type ()) + +G_DECLARE_INTERFACE (GeditFileChooserDialog, gedit_file_chooser_dialog, + GEDIT, FILE_CHOOSER_DIALOG, + GObject) + +struct _GeditFileChooserDialogInterface +{ + GTypeInterface g_iface; + + /* Virtual public methods */ + void (*set_encoding) (GeditFileChooserDialog *dialog, + const GtkSourceEncoding *encoding); + + const GtkSourceEncoding * + (*get_encoding) (GeditFileChooserDialog *dialog); + + void (*set_newline_type) (GeditFileChooserDialog *dialog, + GtkSourceNewlineType newline_type); + + GtkSourceNewlineType + (*get_newline_type) (GeditFileChooserDialog *dialog); + + void (*set_current_folder) (GeditFileChooserDialog *dialog, + GFile *folder); + + void (*set_current_name) (GeditFileChooserDialog *dialog, + const gchar *name); + + void (*set_file) (GeditFileChooserDialog *dialog, + GFile *file); + + GFile * (*get_file) (GeditFileChooserDialog *dialog); + + void (*set_do_overwrite_confirmation) + (GeditFileChooserDialog *dialog, + gboolean overwrite_confirmation); + + void (*show) (GeditFileChooserDialog *dialog); + + void (*destroy) (GeditFileChooserDialog *dialog); + + void (*set_modal) (GeditFileChooserDialog *dialog, + gboolean is_modal); + + GtkWindow * + (*get_window) (GeditFileChooserDialog *dialog); +}; + +GeditFileChooserDialog * + gedit_file_chooser_dialog_create (const gchar *title, + GtkWindow *parent, + const gchar *accept_label, + const gchar *cancel_label); + +void gedit_file_chooser_dialog_destroy (GeditFileChooserDialog *dialog); + +void gedit_file_chooser_dialog_set_encoding (GeditFileChooserDialog *dialog, + const GtkSourceEncoding *encoding); + +const GtkSourceEncoding * + gedit_file_chooser_dialog_get_encoding (GeditFileChooserDialog *dialog); + +void gedit_file_chooser_dialog_set_newline_type (GeditFileChooserDialog *dialog, + GtkSourceNewlineType newline_type); + +GtkSourceNewlineType + gedit_file_chooser_dialog_get_newline_type (GeditFileChooserDialog *dialog); + +void gedit_file_chooser_dialog_set_current_folder (GeditFileChooserDialog *dialog, + GFile *folder); + +void gedit_file_chooser_dialog_set_current_name (GeditFileChooserDialog *dialog, + const gchar *name); + +void gedit_file_chooser_dialog_set_file (GeditFileChooserDialog *dialog, + GFile *file); + +GFile *gedit_file_chooser_dialog_get_file (GeditFileChooserDialog *dialog); + +void gedit_file_chooser_dialog_set_do_overwrite_confirmation ( + GeditFileChooserDialog *dialog, + gboolean overwrite_confirmation); + +void gedit_file_chooser_dialog_show (GeditFileChooserDialog *dialog); + +void gedit_file_chooser_dialog_set_modal (GeditFileChooserDialog *dialog, + gboolean is_modal); + +GtkWindow *gedit_file_chooser_dialog_get_window (GeditFileChooserDialog *dialog); + +G_END_DECLS + +#endif /* GEDIT_FILE_CHOOSER_DIALOG_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-file-chooser-open-dialog.c b/gedit/gedit-file-chooser-open-dialog.c new file mode 100644 index 0000000..1975f51 --- /dev/null +++ b/gedit/gedit-file-chooser-open-dialog.c @@ -0,0 +1,125 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-file-chooser-open-dialog.h" +#include +#include "gedit-encodings-combo-box.h" + +/* A GtkFileChooserDialog to *open* files. */ + +struct _GeditFileChooserOpenDialogPrivate +{ + GeditEncodingsComboBox *encodings_combo_box; +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditFileChooserOpenDialog, _gedit_file_chooser_open_dialog, GEDIT_TYPE_FILE_CHOOSER_OPEN) + +static void +setup_encoding_extra_widget (GeditFileChooserOpenDialog *chooser, + GtkFileChooser *gtk_chooser) +{ + GtkWidget *label; + GtkWidget *encodings_combo_box; + GtkWidget *hgrid; + + g_assert (chooser->priv->encodings_combo_box == NULL); + + label = gtk_label_new_with_mnemonic (_("C_haracter Encoding:")); + encodings_combo_box = gedit_encodings_combo_box_new (FALSE); + gtk_label_set_mnemonic_widget (GTK_LABEL (label), encodings_combo_box); + + hgrid = gtk_grid_new (); + gtk_grid_set_column_spacing (GTK_GRID (hgrid), 6); + gtk_container_add (GTK_CONTAINER (hgrid), label); + gtk_container_add (GTK_CONTAINER (hgrid), encodings_combo_box); + + chooser->priv->encodings_combo_box = GEDIT_ENCODINGS_COMBO_BOX (encodings_combo_box); + g_object_ref_sink (chooser->priv->encodings_combo_box); + + gtk_widget_show_all (hgrid); + gtk_file_chooser_set_extra_widget (gtk_chooser, hgrid); +} + +static void +_gedit_file_chooser_open_dialog_dispose (GObject *object) +{ + GeditFileChooserOpenDialog *chooser = GEDIT_FILE_CHOOSER_OPEN_DIALOG (object); + + g_clear_object (&chooser->priv->encodings_combo_box); + + G_OBJECT_CLASS (_gedit_file_chooser_open_dialog_parent_class)->dispose (object); +} + +static GtkFileChooser * +chooser_create_gtk_file_chooser (GeditFileChooser *chooser) +{ + GtkWidget *file_chooser; + + /* Translators: "Open Files" is the title of the file chooser window. */ + file_chooser = gtk_file_chooser_dialog_new (C_("window title", "Open Files"), + NULL, + GTK_FILE_CHOOSER_ACTION_OPEN, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Open"), GTK_RESPONSE_ACCEPT, + NULL); + + gtk_dialog_set_default_response (GTK_DIALOG (file_chooser), GTK_RESPONSE_ACCEPT); + + setup_encoding_extra_widget (GEDIT_FILE_CHOOSER_OPEN_DIALOG (chooser), + GTK_FILE_CHOOSER (file_chooser)); + + if (g_object_is_floating (file_chooser)) + { + g_object_ref_sink (file_chooser); + } + + return GTK_FILE_CHOOSER (file_chooser); +} + +static const GtkSourceEncoding * +chooser_get_encoding (GeditFileChooser *_chooser) +{ + GeditFileChooserOpenDialog *chooser = GEDIT_FILE_CHOOSER_OPEN_DIALOG (_chooser); + + return gedit_encodings_combo_box_get_selected_encoding (chooser->priv->encodings_combo_box); +} + +static void +_gedit_file_chooser_open_dialog_class_init (GeditFileChooserOpenDialogClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GeditFileChooserClass *file_chooser_class = GEDIT_FILE_CHOOSER_CLASS (klass); + + object_class->dispose = _gedit_file_chooser_open_dialog_dispose; + + file_chooser_class->create_gtk_file_chooser = chooser_create_gtk_file_chooser; + file_chooser_class->get_encoding = chooser_get_encoding; +} + +static void +_gedit_file_chooser_open_dialog_init (GeditFileChooserOpenDialog *chooser) +{ + chooser->priv = _gedit_file_chooser_open_dialog_get_instance_private (chooser); +} + +GeditFileChooserOpen * +_gedit_file_chooser_open_dialog_new (void) +{ + return g_object_new (GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG, NULL); +} diff --git a/gedit/gedit-file-chooser-open-dialog.h b/gedit/gedit-file-chooser-open-dialog.h new file mode 100644 index 0000000..d7f0d51 --- /dev/null +++ b/gedit/gedit-file-chooser-open-dialog.h @@ -0,0 +1,58 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_CHOOSER_OPEN_DIALOG_H +#define GEDIT_FILE_CHOOSER_OPEN_DIALOG_H + +#include "gedit-file-chooser-open.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG (_gedit_file_chooser_open_dialog_get_type ()) +#define GEDIT_FILE_CHOOSER_OPEN_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG, GeditFileChooserOpenDialog)) +#define GEDIT_FILE_CHOOSER_OPEN_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG, GeditFileChooserOpenDialogClass)) +#define GEDIT_IS_FILE_CHOOSER_OPEN_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG)) +#define GEDIT_IS_FILE_CHOOSER_OPEN_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG)) +#define GEDIT_FILE_CHOOSER_OPEN_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN_DIALOG, GeditFileChooserOpenDialogClass)) + +typedef struct _GeditFileChooserOpenDialog GeditFileChooserOpenDialog; +typedef struct _GeditFileChooserOpenDialogClass GeditFileChooserOpenDialogClass; +typedef struct _GeditFileChooserOpenDialogPrivate GeditFileChooserOpenDialogPrivate; + +struct _GeditFileChooserOpenDialog +{ + GeditFileChooserOpen parent; + + GeditFileChooserOpenDialogPrivate *priv; +}; + +struct _GeditFileChooserOpenDialogClass +{ + GeditFileChooserOpenClass parent_class; +}; + +G_GNUC_INTERNAL +GType _gedit_file_chooser_open_dialog_get_type (void); + +G_GNUC_INTERNAL +GeditFileChooserOpen * _gedit_file_chooser_open_dialog_new (void); + +G_END_DECLS + +#endif /* GEDIT_FILE_CHOOSER_OPEN_DIALOG_H */ diff --git a/gedit/gedit-file-chooser-open-native.c b/gedit/gedit-file-chooser-open-native.c new file mode 100644 index 0000000..3a3ba5a --- /dev/null +++ b/gedit/gedit-file-chooser-open-native.c @@ -0,0 +1,84 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-file-chooser-open-native.h" +#include + +/* A GtkFileChooserNative to *open* files. */ +/* TODO: finish the implementation. */ + +struct _GeditFileChooserOpenNativePrivate +{ + gint something; +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditFileChooserOpenNative, _gedit_file_chooser_open_native, GEDIT_TYPE_FILE_CHOOSER_OPEN) + +#if 0 +static GtkNativeDialog * +get_native_dialog (GeditFileChooserOpenNative *chooser) +{ + return GTK_NATIVE_DIALOG (_gedit_file_chooser_get_gtk_file_chooser (GEDIT_FILE_CHOOSER (chooser))); +} +#endif + +static void +_gedit_file_chooser_open_native_dispose (GObject *object) +{ + + G_OBJECT_CLASS (_gedit_file_chooser_open_native_parent_class)->dispose (object); +} + +static GtkFileChooser * +chooser_create_gtk_file_chooser (GeditFileChooser *chooser) +{ + GtkFileChooserNative *native_chooser; + + /* Translators: "Open Files" is the title of the file chooser window. */ + native_chooser = gtk_file_chooser_native_new (C_("window title", "Open Files"), + NULL, + GTK_FILE_CHOOSER_ACTION_OPEN, + NULL, + NULL); + + return GTK_FILE_CHOOSER (native_chooser); +} + +static void +_gedit_file_chooser_open_native_class_init (GeditFileChooserOpenNativeClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GeditFileChooserClass *chooser_class = GEDIT_FILE_CHOOSER_CLASS (klass); + + object_class->dispose = _gedit_file_chooser_open_native_dispose; + + chooser_class->create_gtk_file_chooser = chooser_create_gtk_file_chooser; +} + +static void +_gedit_file_chooser_open_native_init (GeditFileChooserOpenNative *chooser) +{ + chooser->priv = _gedit_file_chooser_open_native_get_instance_private (chooser); +} + +GeditFileChooserOpen * +_gedit_file_chooser_open_native_new (void) +{ + return g_object_new (GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE, NULL); +} diff --git a/gedit/gedit-file-chooser-open-native.h b/gedit/gedit-file-chooser-open-native.h new file mode 100644 index 0000000..5cac81d --- /dev/null +++ b/gedit/gedit-file-chooser-open-native.h @@ -0,0 +1,58 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_CHOOSER_OPEN_NATIVE_H +#define GEDIT_FILE_CHOOSER_OPEN_NATIVE_H + +#include "gedit-file-chooser-open.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE (_gedit_file_chooser_open_native_get_type ()) +#define GEDIT_FILE_CHOOSER_OPEN_NATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE, GeditFileChooserOpenNative)) +#define GEDIT_FILE_CHOOSER_OPEN_NATIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE, GeditFileChooserOpenNativeClass)) +#define GEDIT_IS_FILE_CHOOSER_OPEN_NATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE)) +#define GEDIT_IS_FILE_CHOOSER_OPEN_NATIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE)) +#define GEDIT_FILE_CHOOSER_OPEN_NATIVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE, GeditFileChooserOpenNativeClass)) + +typedef struct _GeditFileChooserOpenNative GeditFileChooserOpenNative; +typedef struct _GeditFileChooserOpenNativeClass GeditFileChooserOpenNativeClass; +typedef struct _GeditFileChooserOpenNativePrivate GeditFileChooserOpenNativePrivate; + +struct _GeditFileChooserOpenNative +{ + GeditFileChooserOpen parent; + + GeditFileChooserOpenNativePrivate *priv; +}; + +struct _GeditFileChooserOpenNativeClass +{ + GeditFileChooserOpenClass parent_class; +}; + +G_GNUC_INTERNAL +GType _gedit_file_chooser_open_native_get_type (void); + +G_GNUC_INTERNAL +GeditFileChooserOpen * _gedit_file_chooser_open_native_new (void); + +G_END_DECLS + +#endif /* GEDIT_FILE_CHOOSER_OPEN_NATIVE_H */ diff --git a/gedit/gedit-file-chooser-open.c b/gedit/gedit-file-chooser-open.c new file mode 100644 index 0000000..96f0182 --- /dev/null +++ b/gedit/gedit-file-chooser-open.c @@ -0,0 +1,77 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-file-chooser-open.h" +#include "gedit-file-chooser-open-dialog.h" +#include "gedit-file-chooser-open-native.h" + +/* Common code for file choosers that *open* files. */ + +G_DEFINE_TYPE (GeditFileChooserOpen, _gedit_file_chooser_open, GEDIT_TYPE_FILE_CHOOSER) + +static GtkFileChooser * +get_gtk_file_chooser (GeditFileChooserOpen *chooser) +{ + return _gedit_file_chooser_get_gtk_file_chooser (GEDIT_FILE_CHOOSER (chooser)); +} + +static void +_gedit_file_chooser_open_constructed (GObject *object) +{ + GeditFileChooserOpen *chooser = GEDIT_FILE_CHOOSER_OPEN (object); + + if (G_OBJECT_CLASS (_gedit_file_chooser_open_parent_class)->constructed != NULL) + { + G_OBJECT_CLASS (_gedit_file_chooser_open_parent_class)->constructed (object); + } + + gtk_file_chooser_set_select_multiple (get_gtk_file_chooser (chooser), TRUE); +} + +static void +_gedit_file_chooser_open_class_init (GeditFileChooserOpenClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->constructed = _gedit_file_chooser_open_constructed; +} + +static void +_gedit_file_chooser_open_init (GeditFileChooserOpen *chooser) +{ +} + +GeditFileChooserOpen * +_gedit_file_chooser_open_new (void) +{ + if (_gedit_file_chooser_is_native ()) + { + return _gedit_file_chooser_open_native_new (); + } + + return _gedit_file_chooser_open_dialog_new (); +} + +GSList * +_gedit_file_chooser_open_get_files (GeditFileChooserOpen *chooser) +{ + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER_OPEN (chooser), NULL); + + return gtk_file_chooser_get_files (get_gtk_file_chooser (chooser)); +} diff --git a/gedit/gedit-file-chooser-open.h b/gedit/gedit-file-chooser-open.h new file mode 100644 index 0000000..80f1a16 --- /dev/null +++ b/gedit/gedit-file-chooser-open.h @@ -0,0 +1,58 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_CHOOSER_OPEN_H +#define GEDIT_FILE_CHOOSER_OPEN_H + +#include "gedit-file-chooser.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_CHOOSER_OPEN (_gedit_file_chooser_open_get_type ()) +#define GEDIT_FILE_CHOOSER_OPEN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN, GeditFileChooserOpen)) +#define GEDIT_FILE_CHOOSER_OPEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_CHOOSER_OPEN, GeditFileChooserOpenClass)) +#define GEDIT_IS_FILE_CHOOSER_OPEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN)) +#define GEDIT_IS_FILE_CHOOSER_OPEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_CHOOSER_OPEN)) +#define GEDIT_FILE_CHOOSER_OPEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_CHOOSER_OPEN, GeditFileChooserOpenClass)) + +typedef struct _GeditFileChooserOpen GeditFileChooserOpen; +typedef struct _GeditFileChooserOpenClass GeditFileChooserOpenClass; + +struct _GeditFileChooserOpen +{ + GeditFileChooser parent; +}; + +struct _GeditFileChooserOpenClass +{ + GeditFileChooserClass parent_class; +}; + +G_GNUC_INTERNAL +GType _gedit_file_chooser_open_get_type (void); + +G_GNUC_INTERNAL +GeditFileChooserOpen * _gedit_file_chooser_open_new (void); + +G_GNUC_INTERNAL +GSList * _gedit_file_chooser_open_get_files (GeditFileChooserOpen *chooser); + +G_END_DECLS + +#endif /* GEDIT_FILE_CHOOSER_OPEN_H */ diff --git a/gedit/gedit-file-chooser.c b/gedit/gedit-file-chooser.c new file mode 100644 index 0000000..74c0d40 --- /dev/null +++ b/gedit/gedit-file-chooser.c @@ -0,0 +1,781 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-file-chooser.h" +#include +#include "gedit-settings.h" + +/* Common code between the different GeditFileChooser's. */ + +struct _GeditFileChooserPrivate +{ + GtkFileChooser *gtk_chooser; +}; + +enum +{ + SIGNAL_DONE, + N_SIGNALS +}; + +static guint signals[N_SIGNALS]; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditFileChooser, _gedit_file_chooser, G_TYPE_OBJECT) + +#define ALL_FILES _("All Files") +#define ALL_TEXT_FILES _("All Text Files") + +/* Whether to use GtkFileChooserNative or GtkFileChooserDialog. */ +gboolean +_gedit_file_chooser_is_native (void) +{ + /* TODO: finish the implementation of the native variants. */ + return FALSE; +} + +static gboolean +mime_types_are_supported (void) +{ +/* Note that the #ifdef could be moved to where this function is called, to have + * much more code between the #ifdef/#else/#endif. The goal is to always compile + * all the code on all platforms, to catch compilation problems earlier. + */ +#ifdef G_OS_WIN32 + /* See the GtkFileChooserNative documentation, a GtkFileFilter with + * mime-types is not supported on Windows. + */ + return FALSE; +#else + return TRUE; +#endif +} + +/* Returns: (transfer none) (element-type utf8): a list containing "text/plain" + * first and then the list of mime-types unrelated to "text/plain" that + * GtkSourceView supports for the syntax highlighting. + */ +static GSList * +get_supported_mime_types (void) +{ + static GSList *supported_mime_types = NULL; + static gboolean initialized = FALSE; + + GtkSourceLanguageManager *language_manager; + const gchar * const *language_ids; + gint language_num; + + if (initialized) + { + return supported_mime_types; + } + + language_manager = gtk_source_language_manager_get_default (); + language_ids = gtk_source_language_manager_get_language_ids (language_manager); + for (language_num = 0; language_ids != NULL && language_ids[language_num] != NULL; language_num++) + { + const gchar *cur_language_id = language_ids[language_num]; + GtkSourceLanguage *language; + gchar **mime_types; + gint mime_type_num; + + language = gtk_source_language_manager_get_language (language_manager, cur_language_id); + mime_types = gtk_source_language_get_mime_types (language); + + if (mime_types == NULL) + { + continue; + } + + for (mime_type_num = 0; mime_types[mime_type_num] != NULL; mime_type_num++) + { + const gchar *cur_mime_type = mime_types[mime_type_num]; + + if (!g_content_type_is_a (cur_mime_type, "text/plain")) + { + //g_message ("Mime-type '%s' is not related to 'text/plain'", cur_mime_type); + supported_mime_types = g_slist_prepend (supported_mime_types, + g_strdup (cur_mime_type)); + } + } + + g_strfreev (mime_types); + } + + // Note that all "text/*" mime-types are subclasses of "text/plain", see: + // https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#subclassing + supported_mime_types = g_slist_prepend (supported_mime_types, g_strdup ("text/plain")); + + initialized = TRUE; + return supported_mime_types; +} + +static const gchar * const * +get_supported_globs (void) +{ + /* List generated with Tepl's shared-mime-info-list-text-plain-globs + * tool. + * + * TODO: can be improved by including globs from GtkSourceLanguage's. + */ + static const gchar * const supported_globs[] = + { + "*.abw", + "*.adb", + "*.ads", + "*.al", + "*.asc", + "*.asp", + "*.ass", + "*.atom", + "*.automount", + "*.awk", + "*.bib", + "*.build", + "*.c", + "*.c++", + "*.cbl", + "*.cc", + "*.ccmx", + "*.cl", + "*.cls", + "*.cmake", + "*.cob", + "*.coffee", + "*.cpp", + "*.cs", + "*.csh", + "*.css", + "*.csv", + "*.csvs", + "*.cue", + "*.cxx", + "*.d", + "*.dbk", + "*.dcl", + "*.desktop", + "*.device", + "*.di", + "*.dia", + "*.diff", + "*.docbook", + "*.dot", + "*.dsl", + "*.dtd", + "*.dtx", + "*.e", + "*.eif", + "*.el", + "*.eml", + "*.ent", + "*.eps", + "*.epsf", + "*.epsi", + "*.erl", + "*.es", + "*.etx", + "*.f", + "*.f90", + "*.f95", + "*.fb2", + "*.feature", + "*.fl", + "*.flatpakref", + "*.flatpakrepo", + "*.fo", + "*.fodg", + "*.fodp", + "*.fods", + "*.fodt", + "*.for", + "*.gcode", + "*.gcrd", + "*.geojson", + "*.glade", + "*.gml", + "*.gnuplot", + "*.go", + "*.gp", + "*.gpg", + "*.gplt", + "*.gpx", + "*.gradle", + "*.groovy", + "*.gs", + "*.gsf", + "*.gsh", + "*.gv", + "*.gvp", + "*.gvy", + "*.gy", + "*.h", + "*.h++", + "*.hh", + "*.hp", + "*.hpp", + "*.hs", + "*.htm", + "*.html", + "*.hxx", + "*.ica", + "*.ics", + "*.idl", + "*.iges", + "*.igs", + "*.ime", + "*.imy", + "*.ins", + "*.iptables", + "*.ipynb", + "*.it87", + "*.jad", + "*.java", + "*.jnlp", + "*.jrd", + "*.js", + "*.jsm", + "*.json", + "*.jsonld", + "*.json-patch", + "*.kdelnk", + "*.key", + "*.kino", + "*.kml", + "*.la", + "*.latex", + "*.ldif", + "*.lhs", + "*.log", + "*.ltx", + "*.lua", + "*.ly", + "*.lyx", + "*.m", + "*.m1u", + "*.m3u", + "*.m3u8", + "*.m4", + "*.m4u", + "*.mab", + "*.mak", + "*.man", + "*.manifest", + "*.markdown", + "*.mbox", + "*.mc2", + "*.md", + "*.me", + "*.meta4", + "*.metalink", + "*.mgp", + "*.mjs", + "*.mk", + "*.mkd", + "*.ml", + "*.mli", + "*.mm", + "*.mml", + "*.mo", + "*.moc", + "*.mof", + "*.mount", + "*.mrl", + "*.mrml", + "*.ms", + "*.mup", + "*.mxu", + "*.nb", + "*.nfo", + "*.not", + "*.nzb", + "*.ocl", + "*.ooc", + "*.opml", + "*.owl", + "*.owx", + "*.p", + "*.p7s", + "*.pas", + "*.patch", + "*.path", + "*.perl", + "*.pfa", + "*.pfb", + "*.pgn", + "*.pgp", + "*.php", + "*.php3", + "*.php4", + "*.php5", + "*.phps", + "*.pkr", + "*.pl", + "*.pm", + "*.po", + "*.pod", + "*.pot", + "*.ps", + "*.py", + "*.py3", + "*.py3x", + "*.pyx", + "*.qml", + "*.qmlproject", + "*.qmltypes", + "*.qti", + "*.raml", + "*.rb", + "*.rdf", + "*.rdfs", + "*.rej", + "*.rnc", + "*.rng", + "*.roff", + "*.rs", + "*.rss", + "*.rst", + "*.rt", + "*.rtf", + "*.rtx", + "*.sami", + "*.sass", + "*.scala", + "*.scm", + "*.scope", + "*.scss", + "*.sdp", + "*.service", + "*.sgf", + "*.sgm", + "*.sgml", + "*.sh", + "*.shape", + "*.sig", + "*.siv", + "*.skr", + "*.slice", + "*.slk", + "*.smi", + "*.smil", + "*.sml", + "*.socket", + "*.spec", + "*.sql", + "*.src", + "*.srt", + "*.ss", + "*.ssa", + "*.sty", + "*.sub", + "*.sv", + "*.svg", + "*.svh", + "*.swap", + "*.sylk", + "*.t", + "*.t2t", + "*.target", + "*.tcl", + "*.tex", + "*.texi", + "*.texinfo", + "*.theme", + "*.timer", + "*.tk", + "*.toc", + "*.tr", + "*.trig", + "*.ts", + "*.tsv", + "*.ttl", + "*.ttx", + "*.twig", + "*.txt", + "*.ufraw", + "*.ui", + "*.uil", + "*.uue", + "*.v", + "*.vala", + "*.vapi", + "*.vcard", + "*.vcf", + "*.vcs", + "*.vct", + "*.vhd", + "*.vhdl", + "*.vlc", + "*.vrm", + "*.vrml", + "*.vtt", + "*.wml", + "*.wmls", + "*.wrl", + "*.wsgi", + "*.xbel", + "*.xbl", + "*.xht", + "*.xhtml", + "*.xlf", + "*.xliff", + "*.xmi", + "*.xml", + "*.xsd", + "*.xsl", + "*.xslfo", + "*.xslt", + "*.xspf", + "*.xul", + "*.yaml", + "*.yml", + "*.zabw", + NULL + }; + + return supported_globs; +} + +static GtkFileFilter * +create_all_text_files_filter (void) +{ + GtkFileFilter *filter; + + filter = gtk_file_filter_new (); + gtk_file_filter_set_name (filter, ALL_TEXT_FILES); + + if (mime_types_are_supported ()) + { + GSList *supported_mime_types; + GSList *l; + + supported_mime_types = get_supported_mime_types (); + for (l = supported_mime_types; l != NULL; l = l->next) + { + const gchar *mime_type = l->data; + + gtk_file_filter_add_mime_type (filter, mime_type); + } + + /* FIXME: use globs too - Paolo (Aug. 27, 2007). + * + * Yes, use globs too - swilmet (June 2020). Get the list of + * globs from GtkSourceLanguage's, and add them to the filter + * (only those that are not covered by a previously added + * mime-type). Note that the list of extra globs here must be + * computed differently than the list of extra globs for + * get_supported_globs() (see the TODO comment there). + */ + } + else + { + const gchar * const *supported_globs; + gint i; + + supported_globs = get_supported_globs (); + for (i = 0; supported_globs != NULL && supported_globs[i] != NULL; i++) + { + const gchar *glob = supported_globs[i]; + + gtk_file_filter_add_pattern (filter, glob); + } + } + + return filter; +} + +static void +notify_filter_cb (GtkFileChooser *gtk_chooser, + GParamSpec *pspec, + gpointer user_data) +{ + GtkFileFilter *filter; + const gchar *name; + gint id = 0; + GeditSettings *settings; + GSettings *file_chooser_state_settings; + + /* Remember the selected filter. */ + + filter = gtk_file_chooser_get_filter (gtk_chooser); + if (filter == NULL) + { + return; + } + + name = gtk_file_filter_get_name (filter); + if (g_strcmp0 (name, ALL_FILES) == 0) + { + id = 1; + } + + settings = _gedit_settings_get_singleton (); + file_chooser_state_settings = _gedit_settings_peek_file_chooser_state_settings (settings); + g_settings_set_int (file_chooser_state_settings, GEDIT_SETTINGS_ACTIVE_FILE_FILTER, id); +} + +static void +setup_filters (GeditFileChooser *chooser) +{ + GeditSettings *settings; + GSettings *file_chooser_state_settings; + gint active_filter; + GtkFileFilter *filter; + + settings = _gedit_settings_get_singleton (); + file_chooser_state_settings = _gedit_settings_peek_file_chooser_state_settings (settings); + active_filter = g_settings_get_int (file_chooser_state_settings, GEDIT_SETTINGS_ACTIVE_FILE_FILTER); + + /* "All Text Files" filter */ + filter = create_all_text_files_filter (); + + g_object_ref_sink (filter); + gtk_file_chooser_add_filter (chooser->priv->gtk_chooser, filter); + if (active_filter != 1) + { + /* Use this filter if set by user and as default. */ + gtk_file_chooser_set_filter (chooser->priv->gtk_chooser, filter); + } + g_object_unref (filter); + + /* "All Files" filter */ + filter = gtk_file_filter_new (); + gtk_file_filter_set_name (filter, ALL_FILES); + gtk_file_filter_add_pattern (filter, "*"); + + g_object_ref_sink (filter); + gtk_file_chooser_add_filter (chooser->priv->gtk_chooser, filter); + if (active_filter == 1) + { + /* Use this filter if set by user. */ + gtk_file_chooser_set_filter (chooser->priv->gtk_chooser, filter); + } + g_object_unref (filter); + + g_signal_connect (chooser->priv->gtk_chooser, + "notify::filter", + G_CALLBACK (notify_filter_cb), + NULL); +} + +/* Set the dialog as modal. It's a workaround for this bug: + * https://gitlab.gnome.org/GNOME/gtk/issues/2824 + * "GtkNativeDialog: non-modal and gtk_native_dialog_show(), doesn't present the + * window" + * + * - For opening files: drag-and-drop files from the file chooser to the + * GeditWindow: OK, it still works. + * - Other main windows not being "blocked"/insensitive (GtkWindowGroup): OK, + * calling gtk_native_dialog_set_transient_for() does the right thing. + * + * Even if the above GTK bug is fixed, the file chooser can be kept modal, + * except if there was a good reason for not being modal (what reason(s)?). + */ +static void +set_modal (GeditFileChooser *chooser) +{ + if (_gedit_file_chooser_is_native ()) + { + gtk_native_dialog_set_modal (GTK_NATIVE_DIALOG (chooser->priv->gtk_chooser), TRUE); + } + else + { + gtk_window_set_modal (GTK_WINDOW (chooser->priv->gtk_chooser), TRUE); + } +} + +static void +response_cb (GtkFileChooser *gtk_chooser, + gint response_id, + GeditFileChooser *chooser) +{ + gboolean accept; + + accept = response_id == GTK_RESPONSE_ACCEPT; + g_signal_emit (chooser, signals[SIGNAL_DONE], 0, accept); +} + +static void +_gedit_file_chooser_constructed (GObject *object) +{ + GeditFileChooser *chooser = GEDIT_FILE_CHOOSER (object); + GeditFileChooserClass *klass = GEDIT_FILE_CHOOSER_GET_CLASS (chooser); + + if (G_OBJECT_CLASS (_gedit_file_chooser_parent_class)->constructed != NULL) + { + G_OBJECT_CLASS (_gedit_file_chooser_parent_class)->constructed (object); + } + + if (klass->create_gtk_file_chooser != NULL) + { + g_return_if_fail (chooser->priv->gtk_chooser == NULL); + chooser->priv->gtk_chooser = klass->create_gtk_file_chooser (chooser); + + setup_filters (chooser); + set_modal (chooser); + gtk_file_chooser_set_local_only (chooser->priv->gtk_chooser, FALSE); + + g_signal_connect_object (chooser->priv->gtk_chooser, + "response", + G_CALLBACK (response_cb), + chooser, + 0); + } +} + +static void +_gedit_file_chooser_dispose (GObject *object) +{ + GeditFileChooser *chooser = GEDIT_FILE_CHOOSER (object); + + if (chooser->priv->gtk_chooser != NULL) + { + if (_gedit_file_chooser_is_native ()) + { + g_object_unref (chooser->priv->gtk_chooser); + } + else + { + gtk_widget_destroy (GTK_WIDGET (chooser->priv->gtk_chooser)); + } + + chooser->priv->gtk_chooser = NULL; + } + + G_OBJECT_CLASS (_gedit_file_chooser_parent_class)->dispose (object); +} + +static void +_gedit_file_chooser_class_init (GeditFileChooserClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->constructed = _gedit_file_chooser_constructed; + object_class->dispose = _gedit_file_chooser_dispose; + + /* + * GeditFileChooser::done: + * @chooser: the #GeditFileChooser emitting the signal. + * @accept: whether the response code is %GTK_RESPONSE_ACCEPT. + */ + signals[SIGNAL_DONE] = + g_signal_new ("done", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_FIRST, + 0, NULL, NULL, NULL, + G_TYPE_NONE, + 1, G_TYPE_BOOLEAN); +} + +static void +_gedit_file_chooser_init (GeditFileChooser *chooser) +{ + chooser->priv = _gedit_file_chooser_get_instance_private (chooser); +} + +GeditFileChooser * +_gedit_file_chooser_new (void) +{ + return g_object_new (GEDIT_TYPE_FILE_CHOOSER, NULL); +} + +/* TODO: this function will go away. */ +void +_gedit_file_chooser_set_gtk_file_chooser (GeditFileChooser *chooser, + GtkFileChooser *gtk_chooser) +{ + g_return_if_fail (GEDIT_IS_FILE_CHOOSER (chooser)); + g_return_if_fail (GTK_IS_FILE_CHOOSER (gtk_chooser)); + g_return_if_fail (chooser->priv->gtk_chooser == NULL); + + chooser->priv->gtk_chooser = g_object_ref_sink (gtk_chooser); + setup_filters (chooser); +} + +GtkFileChooser * +_gedit_file_chooser_get_gtk_file_chooser (GeditFileChooser *chooser) +{ + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER (chooser), NULL); + return chooser->priv->gtk_chooser; +} + +void +_gedit_file_chooser_set_transient_for (GeditFileChooser *chooser, + GtkWindow *parent) +{ + g_return_if_fail (GEDIT_IS_FILE_CHOOSER (chooser)); + g_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent)); + + if (_gedit_file_chooser_is_native ()) + { + gtk_native_dialog_set_transient_for (GTK_NATIVE_DIALOG (chooser->priv->gtk_chooser), parent); + } + else + { + gtk_window_set_transient_for (GTK_WINDOW (chooser->priv->gtk_chooser), parent); + + if (parent != NULL) + { + gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser->priv->gtk_chooser), TRUE); + } + } +} + +void +_gedit_file_chooser_show (GeditFileChooser *chooser) +{ + g_return_if_fail (GEDIT_IS_FILE_CHOOSER (chooser)); + + if (_gedit_file_chooser_is_native ()) + { + gtk_native_dialog_show (GTK_NATIVE_DIALOG (chooser->priv->gtk_chooser)); + } + else + { + gtk_window_present (GTK_WINDOW (chooser->priv->gtk_chooser)); + } +} + +gchar * +_gedit_file_chooser_get_current_folder_uri (GeditFileChooser *chooser) +{ + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER (chooser), NULL); + + return gtk_file_chooser_get_current_folder_uri (chooser->priv->gtk_chooser); +} + +void +_gedit_file_chooser_set_current_folder_uri (GeditFileChooser *chooser, + const gchar *uri) +{ + g_return_if_fail (GEDIT_IS_FILE_CHOOSER (chooser)); + + gtk_file_chooser_set_current_folder_uri (chooser->priv->gtk_chooser, uri); +} + +const GtkSourceEncoding * +_gedit_file_chooser_get_encoding (GeditFileChooser *chooser) +{ + GeditFileChooserClass *klass; + + g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER (chooser), NULL); + + klass = GEDIT_FILE_CHOOSER_GET_CLASS (chooser); + g_return_val_if_fail (klass->get_encoding != NULL, NULL); + + return klass->get_encoding (chooser); +} diff --git a/gedit/gedit-file-chooser.h b/gedit/gedit-file-chooser.h new file mode 100644 index 0000000..d47cb9f --- /dev/null +++ b/gedit/gedit-file-chooser.h @@ -0,0 +1,91 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2020 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_CHOOSER_H +#define GEDIT_FILE_CHOOSER_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_CHOOSER (_gedit_file_chooser_get_type ()) +#define GEDIT_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_CHOOSER, GeditFileChooser)) +#define GEDIT_FILE_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_CHOOSER, GeditFileChooserClass)) +#define GEDIT_IS_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_CHOOSER)) +#define GEDIT_IS_FILE_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_CHOOSER)) +#define GEDIT_FILE_CHOOSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_CHOOSER, GeditFileChooserClass)) + +typedef struct _GeditFileChooser GeditFileChooser; +typedef struct _GeditFileChooserClass GeditFileChooserClass; +typedef struct _GeditFileChooserPrivate GeditFileChooserPrivate; + +struct _GeditFileChooser +{ + GObject parent; + + GeditFileChooserPrivate *priv; +}; + +struct _GeditFileChooserClass +{ + GObjectClass parent_class; + + /* Returns: (transfer full). */ + GtkFileChooser * (* create_gtk_file_chooser) (GeditFileChooser *chooser); + + const GtkSourceEncoding * (* get_encoding) (GeditFileChooser *chooser); +}; + +G_GNUC_INTERNAL +gboolean _gedit_file_chooser_is_native (void); + +G_GNUC_INTERNAL +GType _gedit_file_chooser_get_type (void); + +G_GNUC_INTERNAL +GeditFileChooser * _gedit_file_chooser_new (void); + +G_GNUC_INTERNAL +void _gedit_file_chooser_set_gtk_file_chooser (GeditFileChooser *chooser, + GtkFileChooser *gtk_chooser); + +G_GNUC_INTERNAL +GtkFileChooser * _gedit_file_chooser_get_gtk_file_chooser (GeditFileChooser *chooser); + +G_GNUC_INTERNAL +void _gedit_file_chooser_set_transient_for (GeditFileChooser *chooser, + GtkWindow *parent); + +G_GNUC_INTERNAL +void _gedit_file_chooser_show (GeditFileChooser *chooser); + +G_GNUC_INTERNAL +gchar * _gedit_file_chooser_get_current_folder_uri (GeditFileChooser *chooser); + +G_GNUC_INTERNAL +void _gedit_file_chooser_set_current_folder_uri (GeditFileChooser *chooser, + const gchar *uri); + +G_GNUC_INTERNAL +const GtkSourceEncoding * + _gedit_file_chooser_get_encoding (GeditFileChooser *chooser); + +G_END_DECLS + +#endif /* GEDIT_FILE_CHOOSER_H */ diff --git a/gedit/gedit-highlight-mode-dialog.c b/gedit/gedit-highlight-mode-dialog.c new file mode 100644 index 0000000..c43776c --- /dev/null +++ b/gedit/gedit-highlight-mode-dialog.c @@ -0,0 +1,104 @@ +/* + * gedit-highlight-mode-dialog.c + * This file is part of gedit + * + * Copyright (C) 2013 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#include "gedit-highlight-mode-dialog.h" + +#include + +struct _GeditHighlightModeDialog +{ + GtkDialog parent_instance; + + GeditHighlightModeSelector *selector; + gulong on_language_selected_id; +}; + +G_DEFINE_TYPE (GeditHighlightModeDialog, gedit_highlight_mode_dialog, GTK_TYPE_DIALOG) + +static void +gedit_highlight_mode_dialog_response (GtkDialog *dialog, + gint response_id) +{ + GeditHighlightModeDialog *dlg = GEDIT_HIGHLIGHT_MODE_DIALOG (dialog); + + if (response_id == GTK_RESPONSE_OK) + { + g_signal_handler_block (dlg->selector, dlg->on_language_selected_id); + gedit_highlight_mode_selector_activate_selected_language (dlg->selector); + g_signal_handler_unblock (dlg->selector, dlg->on_language_selected_id); + } + + gtk_widget_destroy (GTK_WIDGET (dialog)); +} + +static void +on_language_selected (GeditHighlightModeSelector *sel, + GtkSourceLanguage *language, + GeditHighlightModeDialog *dlg) +{ + g_signal_handler_block (dlg->selector, dlg->on_language_selected_id); + gedit_highlight_mode_selector_activate_selected_language (dlg->selector); + g_signal_handler_unblock (dlg->selector, dlg->on_language_selected_id); + + gtk_widget_destroy (GTK_WIDGET (dlg)); +} + +static void +gedit_highlight_mode_dialog_class_init (GeditHighlightModeDialogClass *klass) +{ + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkDialogClass *dialog_class = GTK_DIALOG_CLASS (klass); + + dialog_class->response = gedit_highlight_mode_dialog_response; + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-highlight-mode-dialog.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditHighlightModeDialog, selector); +} + +static void +gedit_highlight_mode_dialog_init (GeditHighlightModeDialog *dlg) +{ + gtk_widget_init_template (GTK_WIDGET (dlg)); + gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_OK); + + dlg->on_language_selected_id = g_signal_connect (dlg->selector, "language-selected", + G_CALLBACK (on_language_selected), dlg); +} + +GtkWidget * +gedit_highlight_mode_dialog_new (GtkWindow *parent) +{ + return GTK_WIDGET (g_object_new (GEDIT_TYPE_HIGHLIGHT_MODE_DIALOG, + "transient-for", parent, + "use-header-bar", TRUE, + NULL)); +} + +GeditHighlightModeSelector * +gedit_highlight_mode_dialog_get_selector (GeditHighlightModeDialog *dlg) +{ + g_return_val_if_fail (GEDIT_IS_HIGHLIGHT_MODE_DIALOG (dlg), NULL); + + return dlg->selector; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-highlight-mode-dialog.h b/gedit/gedit-highlight-mode-dialog.h new file mode 100644 index 0000000..b26d3c9 --- /dev/null +++ b/gedit/gedit-highlight-mode-dialog.h @@ -0,0 +1,42 @@ +/* + * gedit-highlight-mode-dialog.h + * This file is part of gedit + * + * Copyright (C) 2013 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + + +#ifndef GEDIT_HIGHLIGHT_MODE_DIALOG_H +#define GEDIT_HIGHLIGHT_MODE_DIALOG_H + +#include +#include "gedit-highlight-mode-selector.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_HIGHLIGHT_MODE_DIALOG (gedit_highlight_mode_dialog_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditHighlightModeDialog, gedit_highlight_mode_dialog, GEDIT, HIGHLIGHT_MODE_DIALOG, GtkDialog) + +GtkWidget *gedit_highlight_mode_dialog_new (GtkWindow *parent); + +GeditHighlightModeSelector *gedit_highlight_mode_dialog_get_selector (GeditHighlightModeDialog *dlg); + +G_END_DECLS + +#endif /* GEDIT_HIGHLIGHT_MODE_DIALOG_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-highlight-mode-selector.c b/gedit/gedit-highlight-mode-selector.c new file mode 100644 index 0000000..6e91710 --- /dev/null +++ b/gedit/gedit-highlight-mode-selector.c @@ -0,0 +1,378 @@ +/* + * gedit-highlight-mode-selector.c + * This file is part of gedit + * + * Copyright (C) 2013 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#include "gedit-highlight-mode-selector.h" + +#include +#include +#include + +enum +{ + COLUMN_NAME, + COLUMN_LANG, + N_COLUMNS +}; + +struct _GeditHighlightModeSelector +{ + GtkGrid parent_instance; + + GtkWidget *treeview; + GtkWidget *entry; + GtkListStore *liststore; + GtkTreeModelFilter *treemodelfilter; + GtkTreeSelection *treeview_selection; +}; + +/* Signals */ +enum +{ + LANGUAGE_SELECTED, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL] = { 0 }; + +G_DEFINE_TYPE (GeditHighlightModeSelector, gedit_highlight_mode_selector, GTK_TYPE_GRID) + +static void +gedit_highlight_mode_selector_language_selected (GeditHighlightModeSelector *widget, + GtkSourceLanguage *language) +{ +} + +static void +gedit_highlight_mode_selector_class_init (GeditHighlightModeSelectorClass *klass) +{ + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + signals[LANGUAGE_SELECTED] = + g_signal_new_class_handler ("language-selected", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_CALLBACK (gedit_highlight_mode_selector_language_selected), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GTK_SOURCE_TYPE_LANGUAGE); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-highlight-mode-selector.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditHighlightModeSelector, treeview); + gtk_widget_class_bind_template_child (widget_class, GeditHighlightModeSelector, entry); + gtk_widget_class_bind_template_child (widget_class, GeditHighlightModeSelector, liststore); + gtk_widget_class_bind_template_child (widget_class, GeditHighlightModeSelector, treemodelfilter); + gtk_widget_class_bind_template_child (widget_class, GeditHighlightModeSelector, treeview_selection); +} + +static gboolean +visible_func (GtkTreeModel *model, + GtkTreeIter *iter, + GeditHighlightModeSelector *selector) +{ + const gchar *entry_text; + gchar *name; + gchar *name_normalized; + gchar *name_casefolded; + gchar *text_normalized; + gchar *text_casefolded; + gboolean visible = FALSE; + + entry_text = gtk_entry_get_text (GTK_ENTRY (selector->entry)); + + if (*entry_text == '\0') + { + return TRUE; + } + + gtk_tree_model_get (model, iter, COLUMN_NAME, &name, -1); + + name_normalized = g_utf8_normalize (name, -1, G_NORMALIZE_ALL); + g_free (name); + + name_casefolded = g_utf8_casefold (name_normalized, -1); + g_free (name_normalized); + + text_normalized = g_utf8_normalize (entry_text, -1, G_NORMALIZE_ALL); + text_casefolded = g_utf8_casefold (text_normalized, -1); + g_free (text_normalized); + + if (strstr (name_casefolded, text_casefolded) != NULL) + { + visible = TRUE; + } + + g_free (name_casefolded); + g_free (text_casefolded); + + return visible; +} + +static void +on_entry_activate (GtkEntry *entry, + GeditHighlightModeSelector *selector) +{ + gedit_highlight_mode_selector_activate_selected_language (selector); +} + +static void +on_entry_changed (GtkEntry *entry, + GeditHighlightModeSelector *selector) +{ + GtkTreeIter iter; + + gtk_tree_model_filter_refilter (selector->treemodelfilter); + + if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (selector->treemodelfilter), &iter)) + { + gtk_tree_selection_select_iter (selector->treeview_selection, &iter); + } +} + +static gboolean +move_selection (GeditHighlightModeSelector *selector, + gint howmany) +{ + GtkTreeIter iter; + GtkTreePath *path; + gint *indices; + gint ret = FALSE; + + if (!gtk_tree_selection_get_selected (selector->treeview_selection, NULL, &iter) && + !gtk_tree_model_get_iter_first (GTK_TREE_MODEL (selector->treemodelfilter), &iter)) + { + return FALSE; + } + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (selector->treemodelfilter), &iter); + indices = gtk_tree_path_get_indices (path); + + if (indices) + { + gint num; + gint idx; + GtkTreePath *new_path; + + idx = indices[0]; + num = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (selector->treemodelfilter), NULL); + + if ((idx + howmany) < 0) + { + idx = 0; + } + else if ((idx + howmany) >= num) + { + idx = num - 1; + } + else + { + idx = idx + howmany; + } + + new_path = gtk_tree_path_new_from_indices (idx, -1); + gtk_tree_selection_select_path (selector->treeview_selection, new_path); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (selector->treeview), + new_path, NULL, TRUE, 0.5, 0); + gtk_tree_path_free (new_path); + + ret = TRUE; + } + + gtk_tree_path_free (path); + + return ret; +} + +static gboolean +on_entry_key_press_event (GtkWidget *entry, + GdkEventKey *event, + GeditHighlightModeSelector *selector) +{ + if (event->keyval == GDK_KEY_Down) + { + return move_selection (selector, 1); + } + else if (event->keyval == GDK_KEY_Up) + { + return move_selection (selector, -1); + } + else if (event->keyval == GDK_KEY_Page_Down) + { + return move_selection (selector, 5); + } + else if (event->keyval == GDK_KEY_Page_Up) + { + return move_selection (selector, -5); + } + + return FALSE; +} + +static void +on_row_activated (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + GeditHighlightModeSelector *selector) +{ + gedit_highlight_mode_selector_activate_selected_language (selector); +} + +static void +gedit_highlight_mode_selector_init (GeditHighlightModeSelector *selector) +{ + GtkSourceLanguageManager *lm; + const gchar * const *ids; + gint i; + GtkTreeIter iter; + + selector = gedit_highlight_mode_selector_get_instance_private (selector); + + gtk_widget_init_template (GTK_WIDGET (selector)); + + gtk_tree_model_filter_set_visible_func (selector->treemodelfilter, + (GtkTreeModelFilterVisibleFunc)visible_func, + selector, + NULL); + + g_signal_connect (selector->entry, "activate", + G_CALLBACK (on_entry_activate), selector); + g_signal_connect (selector->entry, "changed", + G_CALLBACK (on_entry_changed), selector); + g_signal_connect (selector->entry, "key-press-event", + G_CALLBACK (on_entry_key_press_event), selector); + + g_signal_connect (selector->treeview, "row-activated", + G_CALLBACK (on_row_activated), selector); + + /* Populate tree model */ + gtk_list_store_append (selector->liststore, &iter); + gtk_list_store_set (selector->liststore, &iter, + COLUMN_NAME, _("Plain Text"), + COLUMN_LANG, NULL, + -1); + + lm = gtk_source_language_manager_get_default (); + ids = gtk_source_language_manager_get_language_ids (lm); + + for (i = 0; ids[i] != NULL; i++) + { + GtkSourceLanguage *lang; + + lang = gtk_source_language_manager_get_language (lm, ids[i]); + + if (!gtk_source_language_get_hidden (lang)) + { + gtk_list_store_append (selector->liststore, &iter); + gtk_list_store_set (selector->liststore, &iter, + COLUMN_NAME, gtk_source_language_get_name (lang), + COLUMN_LANG, lang, + -1); + } + } + + /* select first item */ + if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (selector->treemodelfilter), &iter)) + { + gtk_tree_selection_select_iter (selector->treeview_selection, &iter); + } +} + +GeditHighlightModeSelector * +gedit_highlight_mode_selector_new () +{ + return g_object_new (GEDIT_TYPE_HIGHLIGHT_MODE_SELECTOR, NULL); +} + +void +gedit_highlight_mode_selector_select_language (GeditHighlightModeSelector *selector, + GtkSourceLanguage *language) +{ + GtkTreeIter iter; + + g_return_if_fail (GEDIT_IS_HIGHLIGHT_MODE_SELECTOR (selector)); + + if (language == NULL) + { + return; + } + + if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (selector->treemodelfilter), &iter)) + { + do + { + GtkSourceLanguage *lang; + + gtk_tree_model_get (GTK_TREE_MODEL (selector->treemodelfilter), + &iter, + COLUMN_LANG, &lang, + -1); + + if (lang != NULL) + { + gboolean equal = (lang == language); + + g_object_unref (lang); + + if (equal) + { + GtkTreePath *path; + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (selector->treemodelfilter), &iter); + + gtk_tree_selection_select_iter (selector->treeview_selection, &iter); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (selector->treeview), + path, NULL, TRUE, 0.5, 0); + gtk_tree_path_free (path); + break; + } + } + } + while (gtk_tree_model_iter_next (GTK_TREE_MODEL (selector->treemodelfilter), &iter)); + } +} + +void +gedit_highlight_mode_selector_activate_selected_language (GeditHighlightModeSelector *selector) +{ + GtkSourceLanguage *lang; + GtkTreeIter iter; + + g_return_if_fail (GEDIT_IS_HIGHLIGHT_MODE_SELECTOR (selector)); + + if (!gtk_tree_selection_get_selected (selector->treeview_selection, NULL, &iter)) + { + return; + } + + gtk_tree_model_get (GTK_TREE_MODEL (selector->treemodelfilter), &iter, + COLUMN_LANG, &lang, + -1); + + g_signal_emit (G_OBJECT (selector), signals[LANGUAGE_SELECTED], 0, lang); + + if (lang != NULL) + { + g_object_unref (lang); + } +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-highlight-mode-selector.h b/gedit/gedit-highlight-mode-selector.h new file mode 100644 index 0000000..daf8561 --- /dev/null +++ b/gedit/gedit-highlight-mode-selector.h @@ -0,0 +1,46 @@ +/* + * gedit-highlight-mode-selector.h + * This file is part of gedit + * + * Copyright (C) 2013 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#ifndef GEDIT_HIGHLIGHT_MODE_SELECTOR_H +#define GEDIT_HIGHLIGHT_MODE_SELECTOR_H + +#include +#include +#include "gedit-window.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_HIGHLIGHT_MODE_SELECTOR (gedit_highlight_mode_selector_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditHighlightModeSelector, gedit_highlight_mode_selector, GEDIT, HIGHLIGHT_MODE_SELECTOR, GtkGrid) + +GeditHighlightModeSelector *gedit_highlight_mode_selector_new (void); + +void gedit_highlight_mode_selector_select_language (GeditHighlightModeSelector *selector, + GtkSourceLanguage *language); + +void gedit_highlight_mode_selector_activate_selected_language + (GeditHighlightModeSelector *selector); + +G_END_DECLS + +#endif /* GEDIT_HIGHLIGHT_MODE_SELECTOR_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-history-entry.c b/gedit/gedit-history-entry.c new file mode 100644 index 0000000..e241641 --- /dev/null +++ b/gedit/gedit-history-entry.c @@ -0,0 +1,470 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2006 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" +#include "gedit-history-entry.h" +#include +#include + +#define MIN_ITEM_LEN 3 +#define HISTORY_LENGTH_DEFAULT 10 + +struct _GeditHistoryEntry +{ + GtkComboBoxText parent_instance; + + gchar *history_id; + guint history_length; + + GtkEntryCompletion *completion; + + GSettings *settings; +}; + +enum +{ + PROP_0, + PROP_HISTORY_ID, + PROP_HISTORY_LENGTH, + PROP_ENABLE_COMPLETION, + N_PROPERTIES +}; + +static GParamSpec *properties[N_PROPERTIES]; + +G_DEFINE_TYPE (GeditHistoryEntry, gedit_history_entry, GTK_TYPE_COMBO_BOX_TEXT) + +static void +gedit_history_entry_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *spec) +{ + GeditHistoryEntry *entry = GEDIT_HISTORY_ENTRY (object); + + switch (prop_id) + { + case PROP_HISTORY_ID: + entry->history_id = g_value_dup_string (value); + break; + + case PROP_HISTORY_LENGTH: + gedit_history_entry_set_history_length (entry, g_value_get_uint (value)); + break; + + case PROP_ENABLE_COMPLETION: + gedit_history_entry_set_enable_completion (entry, g_value_get_boolean (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, spec); + } +} + +static void +gedit_history_entry_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *spec) +{ + GeditHistoryEntry *entry = GEDIT_HISTORY_ENTRY (object); + + switch (prop_id) + { + case PROP_HISTORY_ID: + g_value_set_string (value, entry->history_id); + break; + + case PROP_HISTORY_LENGTH: + g_value_set_uint (value, gedit_history_entry_get_history_length (entry)); + break; + + case PROP_ENABLE_COMPLETION: + g_value_set_boolean (value, gedit_history_entry_get_enable_completion (entry)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, spec); + } +} + +static void +gedit_history_entry_dispose (GObject *object) +{ + GeditHistoryEntry *entry = GEDIT_HISTORY_ENTRY (object); + + gedit_history_entry_set_enable_completion (entry, FALSE); + + g_clear_object (&entry->settings); + + G_OBJECT_CLASS (gedit_history_entry_parent_class)->dispose (object); +} + +static void +gedit_history_entry_finalize (GObject *object) +{ + GeditHistoryEntry *entry = GEDIT_HISTORY_ENTRY (object); + + g_free (entry->history_id); + + G_OBJECT_CLASS (gedit_history_entry_parent_class)->finalize (object); +} + +static void +gedit_history_entry_load_history (GeditHistoryEntry *entry) +{ + gchar **items; + gsize i; + + items = g_settings_get_strv (entry->settings, entry->history_id); + i = 0; + + gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (entry)); + + /* Now the default value is an empty string so we have to take care + of it to not add the empty string in the search list */ + while (items[i] != NULL && *items[i] != '\0' && + i < entry->history_length) + { + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (entry), items[i]); + i++; + } + + g_strfreev (items); +} + +static void +gedit_history_entry_class_init (GeditHistoryEntryClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->set_property = gedit_history_entry_set_property; + object_class->get_property = gedit_history_entry_get_property; + object_class->dispose = gedit_history_entry_dispose; + object_class->finalize = gedit_history_entry_finalize; + + properties[PROP_HISTORY_ID] = + g_param_spec_string ("history-id", + "history-id", + "", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS); + + properties[PROP_HISTORY_LENGTH] = + g_param_spec_uint ("history-length", + "history-length", + "", + 0, + G_MAXUINT, + HISTORY_LENGTH_DEFAULT, + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS); + + properties[PROP_ENABLE_COMPLETION] = + g_param_spec_boolean ("enable-completion", + "enable-completion", + "", + TRUE, + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, N_PROPERTIES, properties); +} + +static GtkListStore * +get_history_store (GeditHistoryEntry *entry) +{ + GtkTreeModel *store; + + store = gtk_combo_box_get_model (GTK_COMBO_BOX (entry)); + g_return_val_if_fail (GTK_IS_LIST_STORE (store), NULL); + + return (GtkListStore *) store; +} + +static gchar ** +get_history_items (GeditHistoryEntry *entry) +{ + GtkListStore *store; + GtkTreeIter iter; + GPtrArray *array; + gboolean valid; + gint n_children; + gint text_column; + + store = get_history_store (entry); + text_column = gtk_combo_box_get_entry_text_column (GTK_COMBO_BOX (entry)); + + valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), + &iter); + n_children = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (store), + NULL); + + array = g_ptr_array_sized_new (n_children + 1); + + while (valid) + { + gchar *str; + + gtk_tree_model_get (GTK_TREE_MODEL (store), + &iter, + text_column, &str, + -1); + + g_ptr_array_add (array, str); + + valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), + &iter); + } + + g_ptr_array_add (array, NULL); + + return (gchar **)g_ptr_array_free (array, FALSE); +} + +static void +gedit_history_entry_save_history (GeditHistoryEntry *entry) +{ + gchar **items; + + g_return_if_fail (GEDIT_IS_HISTORY_ENTRY (entry)); + + items = get_history_items (entry); + + g_settings_set_strv (entry->settings, + entry->history_id, + (const gchar * const *)items); + + g_strfreev (items); +} + +static gboolean +remove_item (GeditHistoryEntry *entry, + const gchar *text) +{ + GtkListStore *store; + GtkTreeIter iter; + gint text_column; + + g_return_val_if_fail (text != NULL, FALSE); + + store = get_history_store (entry); + text_column = gtk_combo_box_get_entry_text_column (GTK_COMBO_BOX (entry)); + + if (!gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter)) + return FALSE; + + do + { + gchar *item_text; + + gtk_tree_model_get (GTK_TREE_MODEL (store), + &iter, + text_column, + &item_text, + -1); + + if (item_text != NULL && + strcmp (item_text, text) == 0) + { + gtk_list_store_remove (store, &iter); + g_free (item_text); + return TRUE; + } + + g_free (item_text); + + } while (gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter)); + + return FALSE; +} + +static void +clamp_list_store (GtkListStore *store, + guint max) +{ + GtkTreePath *path; + GtkTreeIter iter; + + /* -1 because TreePath counts from 0 */ + path = gtk_tree_path_new_from_indices (max - 1, -1); + + if (gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path)) + { + while (TRUE) + { + if (!gtk_list_store_remove (store, &iter)) + break; + } + } + + gtk_tree_path_free (path); +} + +void +gedit_history_entry_prepend_text (GeditHistoryEntry *entry, + const gchar *text) +{ + GtkListStore *store; + + g_return_if_fail (GEDIT_IS_HISTORY_ENTRY (entry)); + g_return_if_fail (text != NULL); + + if (g_utf8_strlen (text, -1) <= MIN_ITEM_LEN) + { + return; + } + + store = get_history_store (entry); + + if (!remove_item (entry, text)) + { + clamp_list_store (store, entry->history_length - 1); + } + + gtk_combo_box_text_prepend_text (GTK_COMBO_BOX_TEXT (entry), text); + gedit_history_entry_save_history (entry); +} + +static void +gedit_history_entry_init (GeditHistoryEntry *entry) +{ + entry->history_id = NULL; + entry->history_length = HISTORY_LENGTH_DEFAULT; + + entry->completion = NULL; + + entry->settings = g_settings_new ("org.gnome.gedit.state.history-entry"); +} + +void +gedit_history_entry_set_history_length (GeditHistoryEntry *entry, + guint history_length) +{ + g_return_if_fail (GEDIT_IS_HISTORY_ENTRY (entry)); + g_return_if_fail (history_length > 0); + + entry->history_length = history_length; + + /* TODO: update if we currently have more items than max */ +} + +guint +gedit_history_entry_get_history_length (GeditHistoryEntry *entry) +{ + g_return_val_if_fail (GEDIT_IS_HISTORY_ENTRY (entry), 0); + + return entry->history_length; +} + +void +gedit_history_entry_set_enable_completion (GeditHistoryEntry *entry, + gboolean enable) +{ + g_return_if_fail (GEDIT_IS_HISTORY_ENTRY (entry)); + + if (enable) + { + if (entry->completion != NULL) + { + return; + } + + entry->completion = gtk_entry_completion_new (); + gtk_entry_completion_set_model (entry->completion, + GTK_TREE_MODEL (get_history_store (entry))); + + /* Use model column 0 as the text column */ + gtk_entry_completion_set_text_column (entry->completion, 0); + + gtk_entry_completion_set_minimum_key_length (entry->completion, + MIN_ITEM_LEN); + + gtk_entry_completion_set_popup_completion (entry->completion, FALSE); + gtk_entry_completion_set_inline_completion (entry->completion, TRUE); + + /* Assign the completion to the entry */ + gtk_entry_set_completion (GTK_ENTRY (gedit_history_entry_get_entry (entry)), + entry->completion); + } + else + { + if (entry->completion == NULL) + { + return; + } + + gtk_entry_set_completion (GTK_ENTRY (gedit_history_entry_get_entry (entry)), NULL); + g_clear_object (&entry->completion); + } +} + +gboolean +gedit_history_entry_get_enable_completion (GeditHistoryEntry *entry) +{ + g_return_val_if_fail (GEDIT_IS_HISTORY_ENTRY (entry), FALSE); + + return entry->completion != NULL; +} + +GtkWidget * +gedit_history_entry_new (const gchar *history_id, + gboolean enable_completion) +{ + GeditHistoryEntry *entry; + + g_return_val_if_fail (history_id != NULL, NULL); + + enable_completion = (enable_completion != FALSE); + + entry = g_object_new (GEDIT_TYPE_HISTORY_ENTRY, + "has-entry", TRUE, + "entry-text-column", 0, + "id-column", 1, + "history-id", history_id, + "enable-completion", enable_completion, + NULL); + + /* We must load the history after the object has been constructed, + * to ensure that the model is set properly. + */ + gedit_history_entry_load_history (entry); + + return GTK_WIDGET (entry); +} + +/* + * Utility function to get the editable text entry internal widget. + * I would prefer to not expose this implementation detail and + * simply make the GeditHistoryEntry widget implement the + * GtkEditable interface. Unfortunately both GtkEditable and + * GtkComboBox have a "changed" signal and I am not sure how to + * handle the conflict. + */ +GtkWidget * +gedit_history_entry_get_entry (GeditHistoryEntry *entry) +{ + g_return_val_if_fail (GEDIT_IS_HISTORY_ENTRY (entry), NULL); + + return gtk_bin_get_child (GTK_BIN (entry)); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-history-entry.h b/gedit/gedit-history-entry.h new file mode 100644 index 0000000..4d76322 --- /dev/null +++ b/gedit/gedit-history-entry.h @@ -0,0 +1,55 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2006 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_HISTORY_ENTRY_H +#define GEDIT_HISTORY_ENTRY_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_HISTORY_ENTRY (gedit_history_entry_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditHistoryEntry, gedit_history_entry, + GEDIT, HISTORY_ENTRY, + GtkComboBoxText) + +GtkWidget * gedit_history_entry_new (const gchar *history_id, + gboolean enable_completion); + +void gedit_history_entry_prepend_text (GeditHistoryEntry *entry, + const gchar *text); + +void gedit_history_entry_set_history_length (GeditHistoryEntry *entry, + guint max_saved); + +guint gedit_history_entry_get_history_length (GeditHistoryEntry *entry); + +void gedit_history_entry_set_enable_completion (GeditHistoryEntry *entry, + gboolean enable); + +gboolean gedit_history_entry_get_enable_completion (GeditHistoryEntry *entry); + +GtkWidget * gedit_history_entry_get_entry (GeditHistoryEntry *entry); + +G_END_DECLS + +#endif /* GEDIT_HISTORY_ENTRY_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c new file mode 100644 index 0000000..1edbe31 --- /dev/null +++ b/gedit/gedit-io-error-info-bar.c @@ -0,0 +1,870 @@ +/* + * gedit-io-error-info-bar.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +/* + * Verbose error reporting for file I/O operations (load, save, revert, create) + */ + +#include "gedit-io-error-info-bar.h" +#include +#include +#include "gedit-encodings-combo-box.h" + +#define MAX_URI_IN_DIALOG_LENGTH 50 + +static gboolean +is_recoverable_error (const GError *error) +{ + gboolean is_recoverable = FALSE; + + if (error->domain == G_IO_ERROR) + { + switch (error->code) + { + case G_IO_ERROR_PERMISSION_DENIED: + case G_IO_ERROR_NOT_FOUND: + case G_IO_ERROR_HOST_NOT_FOUND: + case G_IO_ERROR_TIMED_OUT: + case G_IO_ERROR_NOT_MOUNTABLE_FILE: + case G_IO_ERROR_NOT_MOUNTED: + case G_IO_ERROR_BUSY: + is_recoverable = TRUE; + break; + default: + break; + } + } + + return is_recoverable; +} + +static gboolean +is_gio_error (const GError *error, + gint code) +{ + return error->domain == G_IO_ERROR && error->code == code; +} + +static void +set_contents (GtkWidget *area, + GtkWidget *contents) +{ + GtkWidget *content_area; + + content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (area)); + gtk_container_add (GTK_CONTAINER (content_area), contents); +} + +static void +set_info_bar_text (GtkWidget *info_bar, + const gchar *primary_text, + const gchar *secondary_text) +{ + GtkWidget *vbox; + gchar *primary_markup; + gchar *secondary_markup; + GtkWidget *primary_label; + GtkWidget *secondary_label; + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); + + primary_markup = g_strdup_printf ("%s", primary_text); + primary_label = gtk_label_new (primary_markup); + g_free (primary_markup); + gtk_box_pack_start (GTK_BOX (vbox), primary_label, TRUE, TRUE, 0); + gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE); + gtk_widget_set_halign (primary_label, GTK_ALIGN_START); + gtk_widget_set_can_focus (primary_label, TRUE); + gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE); + + if (secondary_text != NULL) + { + secondary_markup = g_strdup_printf ("%s", + secondary_text); + secondary_label = gtk_label_new (secondary_markup); + g_free (secondary_markup); + gtk_box_pack_start (GTK_BOX (vbox), secondary_label, TRUE, TRUE, 0); + gtk_widget_set_can_focus (secondary_label, TRUE); + gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE); + gtk_widget_set_halign (secondary_label, GTK_ALIGN_START); + } + + gtk_widget_show_all (vbox); + set_contents (info_bar, vbox); +} + +static GtkWidget * +create_io_loading_error_info_bar (const gchar *primary_text, + const gchar *secondary_text, + gboolean recoverable_error) +{ + GtkWidget *info_bar; + + info_bar = gtk_info_bar_new (); + gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), + GTK_MESSAGE_ERROR); + gtk_info_bar_set_show_close_button (GTK_INFO_BAR (info_bar), TRUE); + + set_info_bar_text (info_bar, + primary_text, + secondary_text); + + if (recoverable_error) + { + gtk_info_bar_add_button (GTK_INFO_BAR (info_bar), + _("_Retry"), + GTK_RESPONSE_OK); + } + + return info_bar; +} + +static gboolean +parse_gio_error (gint code, + gchar **error_message, + gchar **message_details, + GFile *location, + const gchar *uri_for_display) +{ + gboolean ret = TRUE; + + switch (code) + { + case G_IO_ERROR_NOT_FOUND: + case G_IO_ERROR_NOT_DIRECTORY: + *error_message = g_strdup_printf (_("Could not find the file “%s”."), + uri_for_display); + *message_details = g_strdup (_("Please check that you typed the " + "location correctly and try again.")); + break; + + case G_IO_ERROR_NOT_SUPPORTED: + { + gchar *scheme_string = NULL; + gchar *scheme_markup; + + if (location) + { + scheme_string = g_file_get_uri_scheme (location); + } + + if ((scheme_string != NULL) && g_utf8_validate (scheme_string, -1, NULL)) + { + scheme_markup = g_markup_escape_text (scheme_string, -1); + + /* Translators: %s is a URI scheme (like for example http:, ftp:, etc.) */ + *message_details = g_strdup_printf (_("Unable to handle “%s:” locations."), + scheme_markup); + g_free (scheme_markup); + } + else + { + *message_details = g_strdup (_("Unable to handle this location.")); + } + + g_free (scheme_string); + } + break; + + case G_IO_ERROR_NOT_MOUNTABLE_FILE: + case G_IO_ERROR_NOT_MOUNTED: + *message_details = g_strdup (_("The location of the file cannot be accessed.")); + break; + + case G_IO_ERROR_IS_DIRECTORY: + *error_message = g_strdup_printf (_("“%s” is a directory."), + uri_for_display); + *message_details = g_strdup (_("Please check that you typed the " + "location correctly and try again.")); + break; + + case G_IO_ERROR_INVALID_FILENAME: + *error_message = g_strdup_printf (_("“%s” is not a valid location."), + uri_for_display); + *message_details = g_strdup (_("Please check that you typed the " + "location correctly and try again.")); + break; + + case G_IO_ERROR_HOST_NOT_FOUND: + /* This case can be hit for user-typed strings like "foo" due to + * the code that guesses web addresses when there's no initial "/". + * But this case is also hit for legitimate web addresses when + * the proxy is set up wrong. + */ + { + gchar *hn = NULL; + gchar *uri = NULL; + + if (location) + { + uri = g_file_get_uri (location); + } + + if (uri && tepl_utils_decode_uri (uri, NULL, NULL, &hn, NULL, NULL)) + { + if (hn != NULL) + { + gchar *host_markup; + gchar *host_name; + + host_name = g_utf8_make_valid (hn, -1); + g_free (hn); + + host_markup = g_markup_escape_text (host_name, -1); + g_free (host_name); + + *message_details = g_strdup_printf ( + /* Translators: %s is a host name */ + _("Host “%s” could not be found. " + "Please check that your proxy settings " + "are correct and try again."), + host_markup); + + g_free (host_markup); + } + } + + g_free (uri); + + if (!*message_details) + { + /* use the same string as INVALID_HOST */ + *message_details = g_strdup_printf ( + _("Hostname was invalid. " + "Please check that you typed the location " + "correctly and try again.")); + } + } + break; + + case G_IO_ERROR_NOT_REGULAR_FILE: + *message_details = g_strdup_printf (_("“%s” is not a regular file."), + uri_for_display); + break; + + case G_IO_ERROR_TIMED_OUT: + *message_details = g_strdup (_("Connection timed out. Please try again.")); + break; + + default: + ret = FALSE; + break; + } + + return ret; +} + +static void +parse_error (const GError *error, + gchar **error_message, + gchar **message_details, + GFile *location, + const gchar *uri_for_display) +{ + gboolean ret = FALSE; + + if (error->domain == G_IO_ERROR) + { + ret = parse_gio_error (error->code, + error_message, + message_details, + location, + uri_for_display); + } + + if (!ret) + { + g_warning ("Hit unhandled case %d (%s) in %s.", + error->code, error->message, G_STRFUNC); + *message_details = g_strdup_printf (_("Unexpected error: %s"), + error->message); + } +} + +GtkWidget * +gedit_unrecoverable_reverting_error_info_bar_new (GFile *location, + const GError *error) +{ + gchar *error_message = NULL; + gchar *message_details = NULL; + gchar *full_formatted_uri; + gchar *uri_for_display; + gchar *temp_uri_for_display; + GtkWidget *info_bar; + + g_return_val_if_fail (G_IS_FILE (location), NULL); + g_return_val_if_fail (error != NULL, NULL); + g_return_val_if_fail (error->domain == GTK_SOURCE_FILE_LOADER_ERROR || + error->domain == G_IO_ERROR, NULL); + + full_formatted_uri = g_file_get_parse_name (location); + + /* Truncate the URI so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the URI doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + temp_uri_for_display = tepl_utils_str_middle_truncate (full_formatted_uri, + MAX_URI_IN_DIALOG_LENGTH); + g_free (full_formatted_uri); + + uri_for_display = g_markup_escape_text (temp_uri_for_display, -1); + g_free (temp_uri_for_display); + + if (is_gio_error (error, G_IO_ERROR_NOT_FOUND)) + { + message_details = g_strdup (_("Cannot find the requested file. " + "Perhaps it has recently been deleted.")); + } + else + { + parse_error (error, &error_message, &message_details, location, uri_for_display); + } + + if (error_message == NULL) + { + error_message = g_strdup_printf (_("Could not revert the file “%s”."), + uri_for_display); + } + + info_bar = create_io_loading_error_info_bar (error_message, + message_details, + FALSE); + + g_free (uri_for_display); + g_free (error_message); + g_free (message_details); + + return info_bar; +} + +static void +create_combo_box (GtkWidget *info_bar, + GtkWidget *vbox) +{ + GtkWidget *hbox; + GtkWidget *label; + GtkWidget *menu; + gchar *label_markup; + + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); + + label_markup = g_strdup_printf ("%s", + _("Ch_aracter Encoding:")); + label = gtk_label_new_with_mnemonic (label_markup); + g_free (label_markup); + gtk_label_set_use_markup (GTK_LABEL (label), TRUE); + menu = gedit_encodings_combo_box_new (TRUE); + g_object_set_data (G_OBJECT (info_bar), + "gedit-info-bar-encoding-menu", + menu); + + gtk_label_set_mnemonic_widget (GTK_LABEL (label), menu); + gtk_box_pack_start (GTK_BOX (hbox), + label, + FALSE, + FALSE, + 0); + + gtk_box_pack_start (GTK_BOX (hbox), + menu, + FALSE, + FALSE, + 0); + + gtk_widget_show_all (hbox); + gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); +} + +static GtkWidget * +create_conversion_error_info_bar (const gchar *primary_text, + const gchar *secondary_text, + gboolean edit_anyway) +{ + GtkWidget *info_bar; + GtkWidget *hbox_content; + GtkWidget *vbox; + gchar *primary_markup; + gchar *secondary_markup; + GtkWidget *primary_label; + GtkWidget *secondary_label; + + info_bar = gtk_info_bar_new (); + gtk_info_bar_set_show_close_button (GTK_INFO_BAR (info_bar), TRUE); + + gtk_info_bar_add_button (GTK_INFO_BAR (info_bar), + _("_Retry"), + GTK_RESPONSE_OK); + + if (edit_anyway) + { + gtk_info_bar_add_button (GTK_INFO_BAR (info_bar), + /* Translators: the access key chosen for this string should be + different from other main menu access keys (Open, Edit, View...) */ + _("Edit Any_way"), + GTK_RESPONSE_YES); + gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), + GTK_MESSAGE_WARNING); + } + else + { + gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), + GTK_MESSAGE_ERROR); + } + + hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); + gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0); + + primary_markup = g_strdup_printf ("%s", primary_text); + primary_label = gtk_label_new (primary_markup); + g_free (primary_markup); + gtk_box_pack_start (GTK_BOX (vbox), primary_label, TRUE, TRUE, 0); + gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE); + gtk_widget_set_halign (primary_label, GTK_ALIGN_START); + gtk_widget_set_can_focus (primary_label, TRUE); + gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE); + + if (secondary_text != NULL) + { + secondary_markup = g_strdup_printf ("%s", + secondary_text); + secondary_label = gtk_label_new (secondary_markup); + g_free (secondary_markup); + gtk_box_pack_start (GTK_BOX (vbox), secondary_label, TRUE, TRUE, 0); + gtk_widget_set_can_focus (secondary_label, TRUE); + gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE); + gtk_widget_set_halign (secondary_label, GTK_ALIGN_START); + } + + create_combo_box (info_bar, vbox); + gtk_widget_show_all (hbox_content); + set_contents (info_bar, hbox_content); + + return info_bar; +} + +GtkWidget * +gedit_io_loading_error_info_bar_new (GFile *location, + const GtkSourceEncoding *encoding, + const GError *error) +{ + gchar *error_message = NULL; + gchar *message_details = NULL; + gchar *full_formatted_uri; + gchar *uri_for_display; + gchar *temp_uri_for_display; + GtkWidget *info_bar; + gboolean edit_anyway = FALSE; + gboolean convert_error = FALSE; + + g_return_val_if_fail (error != NULL, NULL); + g_return_val_if_fail (error->domain == GTK_SOURCE_FILE_LOADER_ERROR || + error->domain == G_IO_ERROR || + error->domain == G_CONVERT_ERROR, NULL); + + if (location != NULL) + { + full_formatted_uri = g_file_get_parse_name (location); + } + else + { + full_formatted_uri = g_strdup ("stdin"); + } + + /* Truncate the URI so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the URI doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + temp_uri_for_display = tepl_utils_str_middle_truncate (full_formatted_uri, + MAX_URI_IN_DIALOG_LENGTH); + g_free (full_formatted_uri); + + uri_for_display = g_markup_escape_text (temp_uri_for_display, -1); + g_free (temp_uri_for_display); + + if (is_gio_error (error, G_IO_ERROR_TOO_MANY_LINKS)) + { + message_details = g_strdup (_("The number of followed links is limited and the actual file could not be found within this limit.")); + } + else if (is_gio_error (error, G_IO_ERROR_PERMISSION_DENIED)) + { + message_details = g_strdup (_("You do not have the permissions necessary to open the file.")); + } + else if ((is_gio_error (error, G_IO_ERROR_INVALID_DATA) && encoding == NULL) || + (error->domain == GTK_SOURCE_FILE_LOADER_ERROR && + error->code == GTK_SOURCE_FILE_LOADER_ERROR_ENCODING_AUTO_DETECTION_FAILED)) + { + message_details = g_strconcat (_("Unable to detect the character encoding."), "\n", + _("Please check that you are not trying to open a binary file."), "\n", + _("Select a character encoding from the menu and try again."), NULL); + convert_error = TRUE; + } + else if (error->domain == GTK_SOURCE_FILE_LOADER_ERROR && + error->code == GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK) + { + error_message = g_strdup_printf (_("There was a problem opening the file “%s”."), + uri_for_display); + message_details = g_strconcat (_("The file you opened has some invalid characters. " + "If you continue editing this file you could corrupt this " + "document."), "\n", + _("You can also choose another character encoding and try again."), + NULL); + edit_anyway = TRUE; + convert_error = TRUE; + } + else if (is_gio_error (error, G_IO_ERROR_INVALID_DATA) && encoding != NULL) + { + gchar *encoding_name = gtk_source_encoding_to_string (encoding); + + error_message = g_strdup_printf (_("Could not open the file “%s” using the “%s” character encoding."), + uri_for_display, + encoding_name); + message_details = g_strconcat (_("Please check that you are not trying to open a binary file."), "\n", + _("Select a different character encoding from the menu and try again."), NULL); + convert_error = TRUE; + + g_free (encoding_name); + } + else + { + parse_error (error, &error_message, &message_details, location, uri_for_display); + } + + if (error_message == NULL) + { + error_message = g_strdup_printf (_("Could not open the file “%s”."), + uri_for_display); + } + + if (convert_error) + { + info_bar = create_conversion_error_info_bar (error_message, + message_details, + edit_anyway); + } + else + { + info_bar = create_io_loading_error_info_bar (error_message, + message_details, + is_recoverable_error (error)); + } + + g_free (uri_for_display); + g_free (error_message); + g_free (message_details); + + return info_bar; +} + +GtkWidget * +gedit_conversion_error_while_saving_info_bar_new (GFile *location, + const GtkSourceEncoding *encoding, + const GError *error) +{ + gchar *error_message = NULL; + gchar *message_details = NULL; + gchar *full_formatted_uri; + gchar *encoding_name; + gchar *uri_for_display; + gchar *temp_uri_for_display; + GtkWidget *info_bar; + + g_return_val_if_fail (G_IS_FILE (location), NULL); + g_return_val_if_fail (error != NULL, NULL); + g_return_val_if_fail (error->domain == G_CONVERT_ERROR || + error->domain == G_IO_ERROR, NULL); + g_return_val_if_fail (encoding != NULL, NULL); + + full_formatted_uri = g_file_get_parse_name (location); + + /* Truncate the URI so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the URI doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + temp_uri_for_display = tepl_utils_str_middle_truncate (full_formatted_uri, + MAX_URI_IN_DIALOG_LENGTH); + g_free (full_formatted_uri); + + uri_for_display = g_markup_escape_text (temp_uri_for_display, -1); + g_free (temp_uri_for_display); + + encoding_name = gtk_source_encoding_to_string (encoding); + + error_message = g_strdup_printf (_("Could not save the file “%s” using the “%s” character encoding."), + uri_for_display, + encoding_name); + message_details = g_strconcat (_("The document contains one or more characters that cannot be encoded " + "using the specified character encoding."), "\n", + _("Select a different character encoding from the menu and try again."), NULL); + + info_bar = create_conversion_error_info_bar (error_message, + message_details, + FALSE); + + g_free (uri_for_display); + g_free (encoding_name); + g_free (error_message); + g_free (message_details); + + return info_bar; +} + +const GtkSourceEncoding * +gedit_conversion_error_info_bar_get_encoding (GtkWidget *info_bar) +{ + gpointer menu; + + g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL); + + menu = g_object_get_data (G_OBJECT (info_bar), + "gedit-info-bar-encoding-menu"); + if (menu != NULL) + { + return gedit_encodings_combo_box_get_selected_encoding (GEDIT_ENCODINGS_COMBO_BOX (menu)); + } + + return NULL; +} + +GtkWidget * +gedit_externally_modified_saving_error_info_bar_new (GFile *location, + const GError *error) +{ + GtkWidget *info_bar; + GtkWidget *hbox_content; + GtkWidget *vbox; + gchar *primary_markup; + gchar *secondary_markup; + GtkWidget *primary_label; + GtkWidget *secondary_label; + gchar *primary_text; + const gchar *secondary_text; + gchar *full_formatted_uri; + gchar *uri_for_display; + gchar *temp_uri_for_display; + + g_return_val_if_fail (G_IS_FILE (location), NULL); + g_return_val_if_fail (error != NULL, NULL); + g_return_val_if_fail (error->domain == GTK_SOURCE_FILE_SAVER_ERROR, NULL); + g_return_val_if_fail (error->code == GTK_SOURCE_FILE_SAVER_ERROR_EXTERNALLY_MODIFIED, NULL); + + full_formatted_uri = g_file_get_parse_name (location); + + /* Truncate the URI so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the URI doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + temp_uri_for_display = tepl_utils_str_middle_truncate (full_formatted_uri, + MAX_URI_IN_DIALOG_LENGTH); + g_free (full_formatted_uri); + + uri_for_display = g_markup_escape_text (temp_uri_for_display, -1); + g_free (temp_uri_for_display); + + info_bar = gtk_info_bar_new (); + + gtk_info_bar_add_button (GTK_INFO_BAR (info_bar), + _("S_ave Anyway"), + GTK_RESPONSE_YES); + gtk_info_bar_add_button (GTK_INFO_BAR (info_bar), + _("D_on’t Save"), + GTK_RESPONSE_CANCEL); + gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), + GTK_MESSAGE_WARNING); + + hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); + gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0); + + /* FIXME: review this message, it's not clear since for the user the "modification" + * could be interpreted as the changes he made in the document. beside "reading" is + * not accurate (since last load/save) + */ + primary_text = g_strdup_printf (_("The file “%s” has been modified since reading it."), + uri_for_display); + g_free (uri_for_display); + + primary_markup = g_strdup_printf ("%s", primary_text); + g_free (primary_text); + primary_label = gtk_label_new (primary_markup); + g_free (primary_markup); + gtk_box_pack_start (GTK_BOX (vbox), primary_label, TRUE, TRUE, 0); + gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE); + gtk_widget_set_halign (primary_label, GTK_ALIGN_START); + gtk_widget_set_can_focus (primary_label, TRUE); + gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE); + + secondary_text = _("If you save it, all the external changes could be lost. Save it anyway?"); + secondary_markup = g_strdup_printf ("%s", + secondary_text); + secondary_label = gtk_label_new (secondary_markup); + g_free (secondary_markup); + gtk_box_pack_start (GTK_BOX (vbox), secondary_label, TRUE, TRUE, 0); + gtk_widget_set_can_focus (secondary_label, TRUE); + gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE); + gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE); + gtk_widget_set_halign (secondary_label, GTK_ALIGN_START); + + gtk_widget_show_all (hbox_content); + set_contents (info_bar, hbox_content); + + return info_bar; +} + +GtkWidget * +gedit_unrecoverable_saving_error_info_bar_new (GFile *location, + const GError *error) +{ + gchar *error_message = NULL; + gchar *message_details = NULL; + gchar *full_formatted_uri; + gchar *scheme_string; + gchar *scheme_markup; + gchar *uri_for_display; + gchar *temp_uri_for_display; + GtkWidget *info_bar; + + g_return_val_if_fail (G_IS_FILE (location), NULL); + g_return_val_if_fail (error != NULL, NULL); + g_return_val_if_fail (error->domain == GTK_SOURCE_FILE_SAVER_ERROR || + error->domain == G_IO_ERROR, NULL); + + full_formatted_uri = g_file_get_parse_name (location); + + /* Truncate the URI so it doesn't get insanely wide. Note that even + * though the dialog uses wrapped text, if the URI doesn't contain + * white space then the text-wrapping code is too stupid to wrap it. + */ + temp_uri_for_display = tepl_utils_str_middle_truncate (full_formatted_uri, + MAX_URI_IN_DIALOG_LENGTH); + g_free (full_formatted_uri); + + uri_for_display = g_markup_escape_text (temp_uri_for_display, -1); + g_free (temp_uri_for_display); + + if (is_gio_error (error, G_IO_ERROR_NOT_SUPPORTED)) + { + scheme_string = g_file_get_uri_scheme (location); + + if ((scheme_string != NULL) && g_utf8_validate (scheme_string, -1, NULL)) + { + scheme_markup = g_markup_escape_text (scheme_string, -1); + + /* Translators: %s is a URI scheme (like for example http:, ftp:, etc.) */ + message_details = g_strdup_printf (_("Cannot handle “%s:” locations in write mode. " + "Please check that you typed the " + "location correctly and try again."), + scheme_markup); + g_free (scheme_markup); + } + else + { + message_details = g_strdup (_("Cannot handle this location in write mode. " + "Please check that you typed the " + "location correctly and try again.")); + } + + g_free (scheme_string); + } + else if (is_gio_error (error, G_IO_ERROR_INVALID_FILENAME)) + { + message_details = g_strdup_printf (_("“%s” is not a valid location. " + "Please check that you typed the " + "location correctly and try again."), + uri_for_display); + } + else if (is_gio_error (error, G_IO_ERROR_PERMISSION_DENIED)) + { + message_details = g_strdup (_("You do not have the permissions necessary to save the file. " + "Please check that you typed the " + "location correctly and try again.")); + } + else if (is_gio_error (error, G_IO_ERROR_NO_SPACE)) + { + message_details = g_strdup (_("There is not enough disk space to save the file. " + "Please free some disk space and try again.")); + } + else if (is_gio_error (error, G_IO_ERROR_READ_ONLY)) + { + message_details = g_strdup (_("You are trying to save the file on a read-only disk. " + "Please check that you typed the location " + "correctly and try again.")); + } + else if (is_gio_error (error, G_IO_ERROR_EXISTS)) + { + message_details = g_strdup (_("A file with the same name already exists. " + "Please use a different name.")); + } + else if (is_gio_error (error, G_IO_ERROR_FILENAME_TOO_LONG)) + { + message_details = g_strdup (_("The disk where you are trying to save the file has " + "a limitation on length of the file names. " + "Please use a shorter name.")); + } +#if 0 + /* FIXME this error can not occur for a file saving. Either remove the + * code here, or improve the GtkSourceFileSaver so this error can occur. + */ + else if (error->domain == GEDIT_DOCUMENT_ERROR && + error->code == GEDIT_DOCUMENT_ERROR_TOO_BIG) + { + message_details = g_strdup (_("The disk where you are trying to save the file has " + "a limitation on file sizes. Please try saving " + "a smaller file or saving it to a disk that does not " + "have this limitation.")); + } +#endif + else + { + parse_error (error, + &error_message, + &message_details, + location, + uri_for_display); + } + + if (error_message == NULL) + { + error_message = g_strdup_printf (_("Could not save the file “%s”."), + uri_for_display); + } + + info_bar = create_io_loading_error_info_bar (error_message, + message_details, + FALSE); + + g_free (uri_for_display); + g_free (error_message); + g_free (message_details); + + return info_bar; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-io-error-info-bar.h b/gedit/gedit-io-error-info-bar.h new file mode 100644 index 0000000..12780f7 --- /dev/null +++ b/gedit/gedit-io-error-info-bar.h @@ -0,0 +1,52 @@ +/* + * gedit-io-error-info-bar.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_IO_ERROR_INFO_BAR_H +#define GEDIT_IO_ERROR_INFO_BAR_H + +#include + +G_BEGIN_DECLS + +GtkWidget *gedit_io_loading_error_info_bar_new (GFile *location, + const GtkSourceEncoding *encoding, + const GError *error); + +GtkWidget *gedit_unrecoverable_reverting_error_info_bar_new (GFile *location, + const GError *error); + +GtkWidget *gedit_conversion_error_while_saving_info_bar_new (GFile *location, + const GtkSourceEncoding *encoding, + const GError *error); + +const GtkSourceEncoding + *gedit_conversion_error_info_bar_get_encoding (GtkWidget *info_bar); + +GtkWidget *gedit_externally_modified_saving_error_info_bar_new (GFile *location, + const GError *error); + +GtkWidget *gedit_unrecoverable_saving_error_info_bar_new (GFile *location, + const GError *error); + +G_END_DECLS + +#endif /* GEDIT_IO_ERROR_INFO_BAR_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-menu-extension.c b/gedit/gedit-menu-extension.c new file mode 100644 index 0000000..5e937b7 --- /dev/null +++ b/gedit/gedit-menu-extension.c @@ -0,0 +1,187 @@ +/* + * gedit-menu-extension.c + * This file is part of gedit + * + * Copyright (C) 2014 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#include "gedit-menu-extension.h" + +#include + +static guint last_merge_id = 0; + +struct _GeditMenuExtension +{ + GObject parent_instance; + + GMenu *menu; + guint merge_id; + gboolean dispose_has_run; +}; + +enum +{ + PROP_0, + PROP_MENU, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE (GeditMenuExtension, gedit_menu_extension, G_TYPE_OBJECT) + +static void +gedit_menu_extension_dispose (GObject *object) +{ + GeditMenuExtension *menu = GEDIT_MENU_EXTENSION (object); + + if (!menu->dispose_has_run) + { + gedit_menu_extension_remove_items (menu); + menu->dispose_has_run = TRUE; + } + + g_clear_object (&menu->menu); + + G_OBJECT_CLASS (gedit_menu_extension_parent_class)->dispose (object); +} + +static void +gedit_menu_extension_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditMenuExtension *menu = GEDIT_MENU_EXTENSION (object); + + switch (prop_id) + { + case PROP_MENU: + g_value_set_object (value, menu->menu); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_menu_extension_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditMenuExtension *menu = GEDIT_MENU_EXTENSION (object); + + switch (prop_id) + { + case PROP_MENU: + menu->menu = g_value_dup_object (value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_menu_extension_class_init (GeditMenuExtensionClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_menu_extension_dispose; + object_class->get_property = gedit_menu_extension_get_property; + object_class->set_property = gedit_menu_extension_set_property; + + properties[PROP_MENU] = + g_param_spec_object ("menu", + "Menu", + "The main menu", + G_TYPE_MENU, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); +} + +static void +gedit_menu_extension_init (GeditMenuExtension *menu) +{ + menu->merge_id = ++last_merge_id; +} + +GeditMenuExtension * +gedit_menu_extension_new (GMenu *menu) +{ + return g_object_new (GEDIT_TYPE_MENU_EXTENSION, "menu", menu, NULL); +} + +void +gedit_menu_extension_append_menu_item (GeditMenuExtension *menu, + GMenuItem *item) +{ + g_return_if_fail (GEDIT_IS_MENU_EXTENSION (menu)); + g_return_if_fail (G_IS_MENU_ITEM (item)); + + if (menu->menu != NULL) + { + g_menu_item_set_attribute (item, "gedit-merge-id", "u", menu->merge_id); + g_menu_append_item (menu->menu, item); + } +} + +void +gedit_menu_extension_prepend_menu_item (GeditMenuExtension *menu, + GMenuItem *item) +{ + g_return_if_fail (GEDIT_IS_MENU_EXTENSION (menu)); + g_return_if_fail (G_IS_MENU_ITEM (item)); + + if (menu->menu != NULL) + { + g_menu_item_set_attribute (item, "gedit-merge-id", "u", menu->merge_id); + g_menu_prepend_item (menu->menu, item); + } +} + +void +gedit_menu_extension_remove_items (GeditMenuExtension *menu) +{ + gint i, n_items; + + g_return_if_fail (GEDIT_IS_MENU_EXTENSION (menu)); + + n_items = g_menu_model_get_n_items (G_MENU_MODEL (menu->menu)); + i = 0; + while (i < n_items) + { + guint id = 0; + + if (g_menu_model_get_item_attribute (G_MENU_MODEL (menu->menu), + i, "gedit-merge-id", "u", &id) && + id == menu->merge_id) + { + g_menu_remove (menu->menu, i); + n_items--; + } + else + { + i++; + } + } +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-menu-extension.h b/gedit/gedit-menu-extension.h new file mode 100644 index 0000000..1803b3b --- /dev/null +++ b/gedit/gedit-menu-extension.h @@ -0,0 +1,47 @@ +/* + * gedit-menu-extension.h + * This file is part of gedit + * + * Copyright (C) 2014 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#ifndef GEDIT_MENU_EXTENSION_H +#define GEDIT_MENU_EXTENSION_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_MENU_EXTENSION (gedit_menu_extension_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditMenuExtension, gedit_menu_extension, GEDIT, MENU_EXTENSION, GObject) + +GeditMenuExtension *gedit_menu_extension_new (GMenu *menu); + +void gedit_menu_extension_append_menu_item (GeditMenuExtension *menu, + GMenuItem *item); + +void gedit_menu_extension_prepend_menu_item (GeditMenuExtension *menu, + GMenuItem *item); + +void gedit_menu_extension_remove_items (GeditMenuExtension *menu); + +G_END_DECLS + +#endif /* GEDIT_MENU_EXTENSION_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-menu-stack-switcher.c b/gedit/gedit-menu-stack-switcher.c new file mode 100644 index 0000000..4c4315c --- /dev/null +++ b/gedit/gedit-menu-stack-switcher.c @@ -0,0 +1,420 @@ +/* + * gedit-menu-stack-switcher.c + * This file is part of gedit + * + * Copyright (C) 2014 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-menu-stack-switcher.h" + +#include +#include +#include + +struct _GeditMenuStackSwitcher +{ + GtkMenuButton parent_instance; + + GtkStack *stack; + GtkWidget *label; + GtkWidget *button_box; + GtkWidget *popover; + GHashTable *buttons; + gboolean in_child_changed; +}; + +enum { + PROP_0, + PROP_STACK, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE (GeditMenuStackSwitcher, gedit_menu_stack_switcher, GTK_TYPE_MENU_BUTTON) + +static void +gedit_menu_stack_switcher_init (GeditMenuStackSwitcher *switcher) +{ + GtkWidget *box; + GtkWidget *arrow; + GtkStyleContext *context; + + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); + + arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON); + gtk_box_pack_end (GTK_BOX (box), arrow, FALSE, TRUE, 0); + gtk_widget_set_valign (arrow, GTK_ALIGN_BASELINE); + + switcher->label = gtk_label_new (NULL); + gtk_widget_set_valign (switcher->label, GTK_ALIGN_BASELINE); + gtk_box_pack_start (GTK_BOX (box), switcher->label, TRUE, TRUE, 6); + + // FIXME: this is not correct if this widget becomes more generic + // and used also outside the header bar, but for now we just want + // the same style as title labels + context = gtk_widget_get_style_context (switcher->label); + gtk_style_context_add_class (context, "title"); + + gtk_widget_show_all (box); + gtk_container_add (GTK_CONTAINER (switcher), box); + + switcher->popover = gtk_popover_new (GTK_WIDGET (switcher)); + gtk_popover_set_position (GTK_POPOVER (switcher->popover), GTK_POS_BOTTOM); + context = gtk_widget_get_style_context (switcher->popover); + gtk_style_context_add_class (context, "gedit-menu-stack-switcher"); + + switcher->button_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); + + gtk_widget_show (switcher->button_box); + + gtk_container_add (GTK_CONTAINER (switcher->popover), switcher->button_box); + + gtk_menu_button_set_popover (GTK_MENU_BUTTON (switcher), switcher->popover); + + switcher->buttons = g_hash_table_new (g_direct_hash, g_direct_equal); +} + +static void +clear_popover (GeditMenuStackSwitcher *switcher) +{ + gtk_container_foreach (GTK_CONTAINER (switcher->button_box), (GtkCallback) gtk_widget_destroy, switcher); +} + +static void +on_button_clicked (GtkWidget *widget, + GeditMenuStackSwitcher *switcher) +{ + GtkWidget *child; + + if (!switcher->in_child_changed) + { + child = g_object_get_data (G_OBJECT (widget), "stack-child"); + gtk_stack_set_visible_child (switcher->stack, child); + gtk_widget_hide (switcher->popover); + } +} + +static void +update_button (GeditMenuStackSwitcher *switcher, + GtkWidget *widget, + GtkWidget *button) +{ + GList *children; + + /* We get spurious notifications while the stack is being + * destroyed, so for now check the child actually exists + */ + children = gtk_container_get_children (GTK_CONTAINER (switcher->stack)); + if (g_list_index (children, widget) >= 0) + { + gchar *title; + + gtk_container_child_get (GTK_CONTAINER (switcher->stack), widget, + "title", &title, + NULL); + + gtk_button_set_label (GTK_BUTTON (button), title); + gtk_widget_set_visible (button, gtk_widget_get_visible (widget) && (title != NULL)); + gtk_widget_set_size_request (button, 100, -1); + + if (widget == gtk_stack_get_visible_child (switcher->stack)) + { + gtk_label_set_label (GTK_LABEL (switcher->label), title); + } + + g_free (title); + } + + g_list_free (children); +} + +static void +on_title_icon_visible_updated (GtkWidget *widget, + GParamSpec *pspec, + GeditMenuStackSwitcher *switcher) +{ + GtkWidget *button; + + button = g_hash_table_lookup (switcher->buttons, widget); + update_button (switcher, widget, button); +} + +static void +on_position_updated (GtkWidget *widget, + GParamSpec *pspec, + GeditMenuStackSwitcher *switcher) +{ + GtkWidget *button; + gint position; + + button = g_hash_table_lookup (switcher->buttons, widget); + + gtk_container_child_get (GTK_CONTAINER (switcher->stack), widget, + "position", &position, + NULL); + + gtk_box_reorder_child (GTK_BOX (switcher->button_box), button, position); +} + +static void +add_child (GeditMenuStackSwitcher *switcher, + GtkWidget *widget) +{ + GtkWidget *button; + GList *group; + + button = gtk_radio_button_new (NULL); + gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (button), FALSE); + gtk_widget_set_valign (button, GTK_ALIGN_CENTER); + + update_button (switcher, widget, button); + + group = gtk_container_get_children (GTK_CONTAINER (switcher->button_box)); + if (group != NULL) + { + gtk_radio_button_join_group (GTK_RADIO_BUTTON (button), GTK_RADIO_BUTTON (group->data)); + g_list_free (group); + } + + gtk_container_add (GTK_CONTAINER (switcher->button_box), button); + + g_object_set_data (G_OBJECT (button), "stack-child", widget); + g_signal_connect (button, "clicked", G_CALLBACK (on_button_clicked), switcher); + g_signal_connect (widget, "notify::visible", G_CALLBACK (on_title_icon_visible_updated), switcher); + g_signal_connect (widget, "child-notify::title", G_CALLBACK (on_title_icon_visible_updated), switcher); + g_signal_connect (widget, "child-notify::icon-name", G_CALLBACK (on_title_icon_visible_updated), switcher); + g_signal_connect (widget, "child-notify::position", G_CALLBACK (on_position_updated), switcher); + + g_hash_table_insert (switcher->buttons, widget, button); +} + +static void +foreach_stack (GtkWidget *widget, + GeditMenuStackSwitcher *switcher) +{ + add_child (switcher, widget); +} + +static void +populate_popover (GeditMenuStackSwitcher *switcher) +{ + gtk_container_foreach (GTK_CONTAINER (switcher->stack), (GtkCallback)foreach_stack, switcher); +} + +static void +on_child_changed (GtkWidget *widget, + GParamSpec *pspec, + GeditMenuStackSwitcher *switcher) +{ + GtkWidget *child; + GtkWidget *button; + + child = gtk_stack_get_visible_child (GTK_STACK (widget)); + if (child) + { + gchar *title; + + gtk_container_child_get (GTK_CONTAINER (switcher->stack), child, + "title", &title, + NULL); + + gtk_label_set_label (GTK_LABEL (switcher->label), title); + g_free (title); + } + + button = g_hash_table_lookup (switcher->buttons, child); + if (button != NULL) + { + switcher->in_child_changed = TRUE; + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); + switcher->in_child_changed = FALSE; + } +} + +static void +on_stack_child_added (GtkStack *stack, + GtkWidget *widget, + GeditMenuStackSwitcher *switcher) +{ + add_child (switcher, widget); +} + +static void +on_stack_child_removed (GtkStack *stack, + GtkWidget *widget, + GeditMenuStackSwitcher *switcher) +{ + GtkWidget *button; + + g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, switcher); + g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, switcher); + g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, switcher); + g_signal_handlers_disconnect_by_func (widget, on_position_updated, switcher); + + button = g_hash_table_lookup (switcher->buttons, widget); + gtk_container_remove (GTK_CONTAINER (switcher->button_box), button); + g_hash_table_remove (switcher->buttons, widget); +} + +static void +disconnect_stack_signals (GeditMenuStackSwitcher *switcher) +{ + g_signal_handlers_disconnect_by_func (switcher->stack, on_stack_child_added, switcher); + g_signal_handlers_disconnect_by_func (switcher->stack, on_stack_child_removed, switcher); + g_signal_handlers_disconnect_by_func (switcher->stack, on_child_changed, switcher); + g_signal_handlers_disconnect_by_func (switcher->stack, disconnect_stack_signals, switcher); +} + +static void +connect_stack_signals (GeditMenuStackSwitcher *switcher) +{ + g_signal_connect (switcher->stack, "add", + G_CALLBACK (on_stack_child_added), switcher); + g_signal_connect (switcher->stack, "remove", + G_CALLBACK (on_stack_child_removed), switcher); + g_signal_connect (switcher->stack, "notify::visible-child", + G_CALLBACK (on_child_changed), switcher); + g_signal_connect_swapped (switcher->stack, "destroy", + G_CALLBACK (disconnect_stack_signals), switcher); +} + +void +gedit_menu_stack_switcher_set_stack (GeditMenuStackSwitcher *switcher, + GtkStack *stack) +{ + g_return_if_fail (GEDIT_IS_MENU_STACK_SWITCHER (switcher)); + g_return_if_fail (stack == NULL || GTK_IS_STACK (stack)); + + if (switcher->stack == stack) + return; + + if (switcher->stack) + { + disconnect_stack_signals (switcher); + clear_popover (switcher); + g_clear_object (&switcher->stack); + } + + if (stack) + { + switcher->stack = g_object_ref (stack); + populate_popover (switcher); + connect_stack_signals (switcher); + } + + gtk_widget_queue_resize (GTK_WIDGET (switcher)); + + g_object_notify_by_pspec (G_OBJECT (switcher), properties[PROP_STACK]); +} + +GtkStack * +gedit_menu_stack_switcher_get_stack (GeditMenuStackSwitcher *switcher) +{ + g_return_val_if_fail (GEDIT_IS_MENU_STACK_SWITCHER (switcher), NULL); + + return switcher->stack; +} + +static void +gedit_menu_stack_switcher_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditMenuStackSwitcher *switcher = GEDIT_MENU_STACK_SWITCHER (object); + + switch (prop_id) + { + case PROP_STACK: + g_value_set_object (value, switcher->stack); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_menu_stack_switcher_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditMenuStackSwitcher *switcher = GEDIT_MENU_STACK_SWITCHER (object); + + switch (prop_id) + { + case PROP_STACK: + gedit_menu_stack_switcher_set_stack (switcher, g_value_get_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_menu_stack_switcher_dispose (GObject *object) +{ + GeditMenuStackSwitcher *switcher = GEDIT_MENU_STACK_SWITCHER (object); + + gedit_menu_stack_switcher_set_stack (switcher, NULL); + + G_OBJECT_CLASS (gedit_menu_stack_switcher_parent_class)->dispose (object); +} + +static void +gedit_menu_stack_switcher_finalize (GObject *object) +{ + GeditMenuStackSwitcher *switcher = GEDIT_MENU_STACK_SWITCHER (object); + + g_hash_table_destroy (switcher->buttons); + + G_OBJECT_CLASS (gedit_menu_stack_switcher_parent_class)->finalize (object); +} + +static void +gedit_menu_stack_switcher_class_init (GeditMenuStackSwitcherClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->get_property = gedit_menu_stack_switcher_get_property; + object_class->set_property = gedit_menu_stack_switcher_set_property; + object_class->dispose = gedit_menu_stack_switcher_dispose; + object_class->finalize = gedit_menu_stack_switcher_finalize; + + properties[PROP_STACK] = + g_param_spec_object ("stack", + "Stack", + "Stack", + GTK_TYPE_STACK, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); +} + +GtkWidget * +gedit_menu_stack_switcher_new (void) +{ + return g_object_new (GEDIT_TYPE_MENU_STACK_SWITCHER, NULL); +} + +/* ex:set ts=2 sw=2 et: */ diff --git a/gedit/gedit-menu-stack-switcher.h b/gedit/gedit-menu-stack-switcher.h new file mode 100644 index 0000000..4a4e3b1 --- /dev/null +++ b/gedit/gedit-menu-stack-switcher.h @@ -0,0 +1,43 @@ +/* + * gedit-menu-stack-switcher.h + * This file is part of gedit + * + * Copyright (C) 2014 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_MENU_STACK_SWITCHER_H +#define GEDIT_MENU_STACK_SWITCHER_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_MENU_STACK_SWITCHER (gedit_menu_stack_switcher_get_type()) + +G_DECLARE_FINAL_TYPE (GeditMenuStackSwitcher, gedit_menu_stack_switcher, GEDIT, MENU_STACK_SWITCHER, GtkMenuButton) + +GtkWidget * gedit_menu_stack_switcher_new (void); + +void gedit_menu_stack_switcher_set_stack (GeditMenuStackSwitcher *switcher, + GtkStack *stack); + +GtkStack * gedit_menu_stack_switcher_get_stack (GeditMenuStackSwitcher *switcher); + +G_END_DECLS + +#endif /* GEDIT_MENU_STACK_SWITCHER_H */ + +/* ex:set ts=2 sw=2 et: */ diff --git a/gedit/gedit-message-bus.c b/gedit/gedit-message-bus.c new file mode 100644 index 0000000..a5ed195 --- /dev/null +++ b/gedit/gedit-message-bus.c @@ -0,0 +1,1259 @@ +/* + * gedit-message-bus.h + * This file is part of gedit + * + * Copyright (C) 2008-2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "gedit-message-bus.h" + +#include +#include +#include + +/** + * GeditMessageCallback: + * @bus: the #GeditMessageBus on which the message was sent + * @message: the #GeditMessage which was sent + * @user_data: the supplied user data when connecting the callback + * + * Callback signature used for connecting callback functions to be called + * when a message is received (see gedit_message_bus_connect()). + * + */ + +/** + * SECTION:gedit-message-bus + * @short_description: internal message communication bus + * @include: gedit/gedit-message-bus.h + * + * gedit has a communication bus very similar to DBus. Its primary use is to + * allow easy communication between plugins, but it can also be used to expose + * gedit functionality to external applications by providing DBus bindings for + * the internal gedit message bus. + * + * There are two different communication busses available. The default bus + * (see gedit_message_bus_get_default()) is an application wide communication + * bus. In addition, each #GeditWindow has a separate, private bus + * (see gedit_window_get_message_bus()). This makes it easier for plugins to + * communicate to other plugins in the same window. + * + * The concept of the message bus is very simple. You can register a message + * type on the bus, specified as a Method at a specific Object Path with a + * certain set of Method Arguments. You can then connect callback functions + * for this message type on the bus. Whenever a message with the Object Path + * and Method for which callbacks are connected is sent over the bus, the + * callbacks are called. There is no distinction between Methods and Signals + * (signals are simply messages where sender and receiver have switched places). + * + * + * Registering a message type + * + * GeditMessageBus *bus = gedit_message_bus_get_default (); + * + * // Register 'method' at '/plugins/example' with one required + * // string argument 'arg1' + * gedit_message_bus_register (bus, EXAMPLE_TYPE_METHOD_MESSAGE, + * "/plugins/example", "method"); + * + * + * + * Connecting a callback + * + * static void + * example_method_cb (GeditMessageBus *bus, + * GeditMessage *message, + * gpointer user_data) + * { + * gchar *arg1 = NULL; + * + * gedit_message_get (message, "arg1", &arg1, NULL); + * g_message ("Evoked /plugins/example.method with: %s", arg1); + * g_free (arg1); + * } + * + * GeditMessageBus *bus = gedit_message_bus_get_default (); + * + * guint id = gedit_message_bus_connect (bus, + * "/plugins/example", "method", + * example_method_cb, + * NULL, + * NULL); + * + * + * + * + * Sending a message + * + * GeditMessageBus *bus = gedit_message_bus_get_default (); + * + * gedit_message_bus_send (bus, + * "/plugins/example", "method", + * "arg1", "Hello World", + * NULL); + * + * + */ + +typedef struct +{ + gchar *object_path; + gchar *method; + + gchar *identifier; +} MessageIdentifier; + +typedef struct +{ + MessageIdentifier *identifier; + + GList *listeners; +} Message; + +typedef struct +{ + guint id; + gboolean blocked; + + GDestroyNotify destroy_data; + GeditMessageCallback callback; + gpointer user_data; +} Listener; + +typedef struct +{ + Message *message; + GList *listener; +} IdMap; + +struct _GeditMessageBusPrivate +{ + GHashTable *messages; + GHashTable *idmap; + + GList *message_queue; + guint idle_id; + + guint next_id; + + GHashTable *types; /* mapping from identifier to GeditMessageType */ +}; + +/* signals */ +enum +{ + DISPATCH, + REGISTERED, + UNREGISTERED, + LAST_SIGNAL +}; + +static guint message_bus_signals[LAST_SIGNAL]; + +static void gedit_message_bus_dispatch_real (GeditMessageBus *bus, + GeditMessage *message); + +G_DEFINE_TYPE_WITH_PRIVATE (GeditMessageBus, gedit_message_bus, G_TYPE_OBJECT) + +static MessageIdentifier * +message_identifier_new (const gchar *object_path, + const gchar *method) +{ + MessageIdentifier *ret; + + ret = g_slice_new (MessageIdentifier); + + ret->object_path = g_strdup (object_path); + ret->method = g_strdup (method); + + ret->identifier = gedit_message_type_identifier (object_path, method); + + return ret; +} + +static void +message_identifier_free (MessageIdentifier *identifier) +{ + g_free (identifier->object_path); + g_free (identifier->method); + g_free (identifier->identifier); + + g_slice_free (MessageIdentifier, identifier); +} + +static guint +message_identifier_hash (gconstpointer id) +{ + return g_str_hash (((MessageIdentifier *)id)->identifier); +} + +static gboolean +message_identifier_equal (gconstpointer id1, + gconstpointer id2) +{ + return g_str_equal (((MessageIdentifier *)id1)->identifier, + ((MessageIdentifier *)id2)->identifier); +} + +static void +listener_free (Listener *listener) +{ + if (listener->destroy_data) + { + listener->destroy_data (listener->user_data); + } + + g_slice_free (Listener, listener); +} + +static void +message_free (Message *message) +{ + message_identifier_free (message->identifier); + + g_list_free_full (message->listeners, (GDestroyNotify) listener_free); + g_slice_free (Message, message); +} + +static void +message_queue_free (GList *queue) +{ + g_list_free_full (queue, g_object_unref); +} + +static void +gedit_message_bus_finalize (GObject *object) +{ + GeditMessageBus *bus = GEDIT_MESSAGE_BUS (object); + + if (bus->priv->idle_id != 0) + { + g_source_remove (bus->priv->idle_id); + } + + message_queue_free (bus->priv->message_queue); + + g_hash_table_destroy (bus->priv->messages); + g_hash_table_destroy (bus->priv->idmap); + g_hash_table_destroy (bus->priv->types); + + G_OBJECT_CLASS (gedit_message_bus_parent_class)->finalize (object); +} + +static void +gedit_message_bus_class_init (GeditMessageBusClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->finalize = gedit_message_bus_finalize; + + klass->dispatch = gedit_message_bus_dispatch_real; + + /** + * GeditMessageBus::dispatch: + * @bus: a #GeditMessageBus + * @message: the #GeditMessage to dispatch + * + * The "dispatch" signal is emitted when a message is to be dispatched. + * The message is dispatched in the default handler of this signal. + * Primary use of this signal is to customize the dispatch of a message + * (for instance to automatically dispatch all messages over DBus). + * + */ + message_bus_signals[DISPATCH] = + g_signal_new ("dispatch", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditMessageBusClass, dispatch), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_MESSAGE); + + /** + * GeditMessageBus::registered: + * @bus: a #GeditMessageBus + * @object_path: the registered object path. + * @method: the registered method + * + * The "registered" signal is emitted when a message has been registered + * on the bus. + * + */ + message_bus_signals[REGISTERED] = + g_signal_new ("registered", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditMessageBusClass, registered), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + G_TYPE_STRING, + G_TYPE_STRING); + + /** + * GeditMessageBus::unregistered: + * @bus: a #GeditMessageBus + * @object_path: the unregistered object path. + * @method: the unregistered method + * + * The "unregistered" signal is emitted when a message has been + * unregistered from the bus. + * + */ + message_bus_signals[UNREGISTERED] = + g_signal_new ("unregistered", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditMessageBusClass, unregistered), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + G_TYPE_STRING, + G_TYPE_STRING); +} + +static Message * +message_new (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method) +{ + Message *message = g_slice_new (Message); + + message->identifier = message_identifier_new (object_path, method); + message->listeners = NULL; + + g_hash_table_insert (bus->priv->messages, + message->identifier, + message); + + return message; +} + +static Message * +lookup_message (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + gboolean create) +{ + MessageIdentifier *identifier; + Message *message; + + identifier = message_identifier_new (object_path, method); + message = g_hash_table_lookup (bus->priv->messages, identifier); + message_identifier_free (identifier); + + if (!message && !create) + { + return NULL; + } + + if (!message) + { + message = message_new (bus, object_path, method); + } + + return message; +} + +static guint +add_listener (GeditMessageBus *bus, + Message *message, + GeditMessageCallback callback, + gpointer user_data, + GDestroyNotify destroy_data) +{ + Listener *listener; + IdMap *idmap; + + listener = g_slice_new (Listener); + listener->id = ++bus->priv->next_id; + listener->callback = callback; + listener->user_data = user_data; + listener->blocked = FALSE; + listener->destroy_data = destroy_data; + + message->listeners = g_list_append (message->listeners, listener); + + idmap = g_new (IdMap, 1); + idmap->message = message; + idmap->listener = g_list_last (message->listeners); + + g_hash_table_insert (bus->priv->idmap, GINT_TO_POINTER (listener->id), idmap); + + return listener->id; +} + +static void +remove_listener (GeditMessageBus *bus, + Message *message, + GList *listener) +{ + Listener *lst; + + lst = (Listener *)listener->data; + + /* remove from idmap */ + g_hash_table_remove (bus->priv->idmap, GINT_TO_POINTER (lst->id)); + listener_free (lst); + + /* remove from list of listeners */ + message->listeners = g_list_delete_link (message->listeners, listener); + + if (!message->listeners) + { + /* remove message because it does not have any listeners */ + g_hash_table_remove (bus->priv->messages, message->identifier); + } +} + +static void +block_listener (GeditMessageBus *bus, + Message *message, + GList *listener) +{ + Listener *lst; + + lst = listener->data; + lst->blocked = TRUE; +} + +static void +unblock_listener (GeditMessageBus *bus, + Message *message, + GList *listener) +{ + Listener *lst; + + lst = listener->data; + lst->blocked = FALSE; +} + +static void +dispatch_message_real (GeditMessageBus *bus, + Message *msg, + GeditMessage *message) +{ + GList *item; + + for (item = msg->listeners; item; item = item->next) + { + Listener *listener = (Listener *)item->data; + + if (!listener->blocked) + { + listener->callback (bus, message, listener->user_data); + } + } +} + +static void +gedit_message_bus_dispatch_real (GeditMessageBus *bus, + GeditMessage *message) +{ + const gchar *object_path; + const gchar *method; + Message *msg; + + object_path = gedit_message_get_object_path (message); + method = gedit_message_get_method (message); + + g_return_if_fail (object_path != NULL); + g_return_if_fail (method != NULL); + + msg = lookup_message (bus, object_path, method, FALSE); + + if (msg) + { + dispatch_message_real (bus, msg, message); + } +} + +static void +dispatch_message (GeditMessageBus *bus, + GeditMessage *message) +{ + g_signal_emit (bus, message_bus_signals[DISPATCH], 0, message); +} + +static gboolean +idle_dispatch (GeditMessageBus *bus) +{ + GList *list; + GList *item; + + /* make sure to set idle_id to 0 first so that any new async messages + will be queued properly */ + bus->priv->idle_id = 0; + + /* reverse queue to get correct delivery order */ + list = g_list_reverse (bus->priv->message_queue); + bus->priv->message_queue = NULL; + + for (item = list; item; item = item->next) + { + GeditMessage *msg = GEDIT_MESSAGE (item->data); + + dispatch_message (bus, msg); + } + + message_queue_free (list); + return FALSE; +} + +typedef void (*MatchCallback) (GeditMessageBus *, Message *, GList *); + +static void +process_by_id (GeditMessageBus *bus, + guint id, + MatchCallback processor) +{ + IdMap *idmap; + + idmap = (IdMap *)g_hash_table_lookup (bus->priv->idmap, GINT_TO_POINTER (id)); + + if (idmap == NULL) + { + g_warning ("No handler registered with id `%d'", id); + return; + } + + processor (bus, idmap->message, idmap->listener); +} + +static void +process_by_match (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data, + MatchCallback processor) +{ + Message *message; + GList *item; + + message = lookup_message (bus, object_path, method, FALSE); + + if (!message) + { + g_warning ("No such handler registered for %s.%s", object_path, method); + return; + } + + for (item = message->listeners; item; item = item->next) + { + Listener *listener = (Listener *)item->data; + + if (listener->callback == callback && + listener->user_data == user_data) + { + processor (bus, message, item); + return; + } + } + + g_warning ("No such handler registered for %s.%s", object_path, method); +} + +static void +free_type (gpointer data) +{ + g_slice_free (GType, data); +} + +static void +gedit_message_bus_init (GeditMessageBus *self) +{ + self->priv = gedit_message_bus_get_instance_private (self); + + self->priv->messages = g_hash_table_new_full (message_identifier_hash, + message_identifier_equal, + NULL, + (GDestroyNotify) message_free); + + self->priv->idmap = g_hash_table_new_full (g_direct_hash, + g_direct_equal, + NULL, + (GDestroyNotify) g_free); + + self->priv->types = g_hash_table_new_full (message_identifier_hash, + message_identifier_equal, + (GDestroyNotify) message_identifier_free, + (GDestroyNotify) free_type); +} + +/** + * gedit_message_bus_get_default: + * + * Get the default application #GeditMessageBus. + * + * Return value: (transfer none): the default #GeditMessageBus + * + */ +GeditMessageBus * +gedit_message_bus_get_default (void) +{ + static GeditMessageBus *default_bus = NULL; + + if (G_UNLIKELY (default_bus == NULL)) + { + default_bus = g_object_new (GEDIT_TYPE_MESSAGE_BUS, NULL); + + g_object_add_weak_pointer (G_OBJECT (default_bus), + (gpointer) &default_bus); + } + + return default_bus; +} + +/** + * gedit_message_bus_new: + * + * Create a new message bus. Use gedit_message_bus_get_default() to get the + * default, application wide, message bus. Creating a new bus is useful for + * associating a specific bus with for instance a #GeditWindow. + * + * Return value: a new #GeditMessageBus + * + */ +GeditMessageBus * +gedit_message_bus_new (void) +{ + return GEDIT_MESSAGE_BUS (g_object_new (GEDIT_TYPE_MESSAGE_BUS, NULL)); +} + +/** + * gedit_message_bus_lookup: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * + * Get the registered #GeditMessageType for @method at @object_path. The + * returned #GeditMessageType is owned by the bus and should not be unreffed. + * + * Return value: the registered #GeditMessageType or %NULL if no message type + * is registered for @method at @object_path + * + */ +GType +gedit_message_bus_lookup (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method) +{ + MessageIdentifier *identifier; + GType *message_type; + + g_return_val_if_fail (GEDIT_IS_MESSAGE_BUS (bus), G_TYPE_INVALID); + g_return_val_if_fail (object_path != NULL, G_TYPE_INVALID); + g_return_val_if_fail (method != NULL, G_TYPE_INVALID); + + identifier = message_identifier_new (object_path, method); + message_type = g_hash_table_lookup (bus->priv->types, identifier); + message_identifier_free (identifier); + + if (!message_type) + { + return G_TYPE_INVALID; + } + else + { + return *message_type; + } +} + +/** + * gedit_message_bus_register: + * @bus: a #GeditMessageBus + * @message_type: the message type + * @object_path: the object path + * @method: the method to register + * + * Register a message on the bus. A message must be registered on the bus before + * it can be send. This function registers the type for @method at + * @object_path. + * + * This function emits a #GeditMessageBus::registered signal. + * + */ +void +gedit_message_bus_register (GeditMessageBus *bus, + GType message_type, + const gchar *object_path, + const gchar *method) +{ + MessageIdentifier *identifier; + GType *ntype; + + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + g_return_if_fail (gedit_message_is_valid_object_path (object_path)); + g_return_if_fail (g_type_is_a (message_type, GEDIT_TYPE_MESSAGE)); + + if (gedit_message_bus_is_registered (bus, object_path, method)) + { + g_warning ("Message type for '%s.%s' is already registered", + object_path, + method); + } + + identifier = message_identifier_new (object_path, method); + ntype = g_slice_new (GType); + + *ntype = message_type; + + g_hash_table_insert (bus->priv->types, + identifier, + ntype); + + g_signal_emit (bus, + message_bus_signals[REGISTERED], + 0, + object_path, + method); +} + +static void +gedit_message_bus_unregister_real (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + gboolean remove_from_store) +{ + MessageIdentifier *identifier; + + identifier = message_identifier_new (object_path, method); + + if (!remove_from_store || g_hash_table_remove (bus->priv->types, + identifier)) + { + g_signal_emit (bus, + message_bus_signals[UNREGISTERED], + 0, + object_path, + method); + } + + message_identifier_free (identifier); +} + +/** + * gedit_message_bus_unregister: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * + * Unregisters a previously registered message type. This is especially useful + * for plugins which should unregister message types when they are deactivated. + * + * This function emits the #GeditMessageBus::unregistered signal. + * + */ +void +gedit_message_bus_unregister (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + g_return_if_fail (object_path != NULL); + g_return_if_fail (method != NULL); + + gedit_message_bus_unregister_real (bus, + object_path, + method, + TRUE); +} + +typedef struct +{ + GeditMessageBus *bus; + const gchar *object_path; +} UnregisterInfo; + +static gboolean +unregister_each (MessageIdentifier *identifier, + GType *gtype, + UnregisterInfo *info) +{ + if (g_strcmp0 (identifier->object_path, info->object_path) == 0) + { + gedit_message_bus_unregister_real (info->bus, + identifier->object_path, + identifier->method, + FALSE); + + return TRUE; + } + + return FALSE; +} + +/** + * gedit_message_bus_unregister_all: + * @bus: a #GeditMessageBus + * @object_path: the object path + * + * Unregisters all message types for @object_path. This is especially useful for + * plugins which should unregister message types when they are deactivated. + * + * This function emits the #GeditMessageBus::unregistered signal for all + * unregistered message types. + * + */ +void +gedit_message_bus_unregister_all (GeditMessageBus *bus, + const gchar *object_path) +{ + UnregisterInfo info = {bus, object_path}; + + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + g_return_if_fail (object_path != NULL); + + g_hash_table_foreach_remove (bus->priv->types, + (GHRFunc)unregister_each, + &info); +} + +/** + * gedit_message_bus_is_registered: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * + * Check whether a message type @method at @object_path is registered on the + * bus. + * + * Return value: %TRUE if the @method at @object_path is a registered message + * type on the bus + * + */ +gboolean +gedit_message_bus_is_registered (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method) +{ + MessageIdentifier *identifier; + gboolean ret; + + g_return_val_if_fail (GEDIT_IS_MESSAGE_BUS (bus), FALSE); + g_return_val_if_fail (object_path != NULL, FALSE); + g_return_val_if_fail (method != NULL, FALSE); + + identifier = message_identifier_new (object_path, method); + ret = g_hash_table_lookup (bus->priv->types, identifier) != NULL; + message_identifier_free (identifier); + + return ret; +} + +typedef struct +{ + GeditMessageBusForeach func; + gpointer user_data; +} ForeachInfo; + +static void +foreach_type (MessageIdentifier *identifier, + GType *message_type, + ForeachInfo *info) +{ + info->func (identifier->object_path, + identifier->method, + info->user_data); +} + +/** + * gedit_message_bus_foreach: + * @bus: the #GeditMessageBus + * @func: (scope call): the callback function + * @user_data: the user data to supply to the callback function + * + * Calls @func for each message type registered on the bus + * + */ +void +gedit_message_bus_foreach (GeditMessageBus *bus, + GeditMessageBusForeach func, + gpointer user_data) +{ + ForeachInfo info = {func, user_data}; + + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + g_return_if_fail (func != NULL); + + g_hash_table_foreach (bus->priv->types, (GHFunc)foreach_type, &info); +} + +/** + * gedit_message_bus_connect: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * @callback: function to be called when message @method at @object_path is sent + * @user_data: (allow-none): user_data to use for the callback + * @destroy_data: (allow-none): function to evoke with @user_data as argument when @user_data + * needs to be freed + * + * Connect a callback handler to be evoked when message @method at @object_path + * is sent over the bus. + * + * Return value: the callback identifier + * + */ +guint +gedit_message_bus_connect (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data, + GDestroyNotify destroy_data) +{ + Message *message; + + g_return_val_if_fail (GEDIT_IS_MESSAGE_BUS (bus), 0); + g_return_val_if_fail (object_path != NULL, 0); + g_return_val_if_fail (method != NULL, 0); + g_return_val_if_fail (callback != NULL, 0); + + /* lookup the message and create if it does not exist yet */ + message = lookup_message (bus, object_path, method, TRUE); + + return add_listener (bus, message, callback, user_data, destroy_data); +} + +/** + * gedit_message_bus_disconnect: + * @bus: a #GeditMessageBus + * @id: the callback id as returned by gedit_message_bus_connect() + * + * Disconnects a previously connected message callback. + * + */ +void +gedit_message_bus_disconnect (GeditMessageBus *bus, + guint id) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + + process_by_id (bus, id, remove_listener); +} + +/** + * gedit_message_bus_disconnect_by_func: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * @callback: (scope call): the connected callback + * @user_data: the user_data with which the callback was connected + * + * Disconnects a previously connected message callback by matching the + * provided callback function and user_data. See also + * gedit_message_bus_disconnect(). + * + */ +void +gedit_message_bus_disconnect_by_func (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + + process_by_match (bus, + object_path, + method, + callback, + user_data, + remove_listener); +} + +/** + * gedit_message_bus_block: + * @bus: a #GeditMessageBus + * @id: the callback id + * + * Blocks evoking the callback specified by @id. Unblock the callback by + * using gedit_message_bus_unblock(). + * + */ +void +gedit_message_bus_block (GeditMessageBus *bus, + guint id) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + + process_by_id (bus, id, block_listener); +} + +/** + * gedit_message_bus_block_by_func: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * @callback: (scope call): the callback to block + * @user_data: the user_data with which the callback was connected + * + * Blocks evoking the callback that matches provided @callback and @user_data. + * Unblock the callback using gedit_message_bus_unblock_by_func(). + * + */ +void +gedit_message_bus_block_by_func (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + + process_by_match (bus, + object_path, + method, + callback, + user_data, + block_listener); +} + +/** + * gedit_message_bus_unblock: + * @bus: a #GeditMessageBus + * @id: the callback id + * + * Unblocks the callback specified by @id. + * + */ +void +gedit_message_bus_unblock (GeditMessageBus *bus, + guint id) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + + process_by_id (bus, id, unblock_listener); +} + +/** + * gedit_message_bus_unblock_by_func: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * @callback: (scope call): the callback to block + * @user_data: the user_data with which the callback was connected + * + * Unblocks the callback that matches provided @callback and @user_data. + * + */ +void +gedit_message_bus_unblock_by_func (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + + process_by_match (bus, + object_path, + method, + callback, + user_data, + unblock_listener); +} + +static void +send_message_real (GeditMessageBus *bus, + GeditMessage *message) +{ + bus->priv->message_queue = g_list_prepend (bus->priv->message_queue, + g_object_ref (message)); + + if (bus->priv->idle_id == 0) + { + bus->priv->idle_id = g_idle_add_full (G_PRIORITY_HIGH, + (GSourceFunc)idle_dispatch, + bus, + NULL); + } +} + +/** + * gedit_message_bus_send_message: + * @bus: a #GeditMessageBus + * @message: the message to send + * + * This sends the provided @message asynchronously over the bus. To send + * a message synchronously, use gedit_message_bus_send_message_sync(). The + * convenience function gedit_message_bus_send() can be used to easily send + * a message without constructing the message object explicitly first. + * + */ +void +gedit_message_bus_send_message (GeditMessageBus *bus, + GeditMessage *message) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + g_return_if_fail (GEDIT_IS_MESSAGE (message)); + + send_message_real (bus, message); +} + +/** + * gedit_message_bus_send_message_sync: + * @bus: a #GeditMessageBus + * @message: the message to send + * + * This sends the provided @message synchronously over the bus. To send + * a message asynchronously, use gedit_message_bus_send_message(). The + * convenience function gedit_message_bus_send_sync() can be used to easily send + * a message without constructing the message object explicitly first. + * + */ +void +gedit_message_bus_send_message_sync (GeditMessageBus *bus, + GeditMessage *message) +{ + g_return_if_fail (GEDIT_IS_MESSAGE_BUS (bus)); + g_return_if_fail (GEDIT_IS_MESSAGE (message)); + + dispatch_message (bus, message); +} + +static GeditMessage * +create_message (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + const gchar *first_property, + va_list var_args) +{ + GType message_type; + GeditMessage *msg; + + message_type = gedit_message_bus_lookup (bus, object_path, method); + + if (message_type == G_TYPE_INVALID) + { + g_warning ("Could not find message type for '%s.%s'", + object_path, + method); + + return NULL; + } + + msg = GEDIT_MESSAGE (g_object_new_valist (message_type, + first_property, + var_args)); + + if (msg) + { + g_object_set (msg, + "object_path", + object_path, + "method", + method, + NULL); + } + + return msg; +} + +/** + * gedit_message_bus_send: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * @first_property: the first property + * @...: NULL terminated list of key/value pairs + * + * This provides a convenient way to quickly send a message @method at + * @object_path asynchronously over the bus. The variable argument list + * specifies key (string) value pairs used to construct the message arguments. + * To send a message synchronously use gedit_message_bus_send_sync(). + */ +void +gedit_message_bus_send (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + const gchar *first_property, + ...) +{ + va_list var_args; + GeditMessage *message; + + va_start (var_args, first_property); + + message = create_message (bus, + object_path, + method, + first_property, + var_args); + + if (message) + { + send_message_real (bus, message); + g_object_unref (message); + } + else + { + g_warning ("Could not instantiate message"); + } + + va_end (var_args); +} + +/** + * gedit_message_bus_send_sync: + * @bus: a #GeditMessageBus + * @object_path: the object path + * @method: the method + * @first_property: the first property + * @...: (allow-none): %NULL terminated list of key/value pairs + * + * This provides a convenient way to quickly send a message @method at + * @object_path synchronously over the bus. The variable argument list + * specifies key (string) value pairs used to construct the message + * arguments. To send a message asynchronously use gedit_message_bus_send(). + * + * Return value: (allow-none) (transfer full): the constructed #GeditMessage. + * The caller owns a reference to the #GeditMessage and should + * call g_object_unref() when it is no longer needed. + */ +GeditMessage * +gedit_message_bus_send_sync (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + const gchar *first_property, + ...) +{ + va_list var_args; + GeditMessage *message; + + va_start (var_args, first_property); + message = create_message (bus, + object_path, + method, + first_property, + var_args); + + if (message) + { + dispatch_message (bus, message); + } + + va_end (var_args); + + return message; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-message-bus.h b/gedit/gedit-message-bus.h new file mode 100644 index 0000000..e8403e0 --- /dev/null +++ b/gedit/gedit-message-bus.h @@ -0,0 +1,154 @@ +/* + * gedit-message-bus.h + * This file is part of gedit + * + * Copyright (C) 2008-2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_MESSAGE_BUS_H +#define GEDIT_MESSAGE_BUS_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_MESSAGE_BUS (gedit_message_bus_get_type ()) +#define GEDIT_MESSAGE_BUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_MESSAGE_BUS, GeditMessageBus)) +#define GEDIT_MESSAGE_BUS_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_MESSAGE_BUS, GeditMessageBus const)) +#define GEDIT_MESSAGE_BUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_MESSAGE_BUS, GeditMessageBusClass)) +#define GEDIT_IS_MESSAGE_BUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_MESSAGE_BUS)) +#define GEDIT_IS_MESSAGE_BUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_MESSAGE_BUS)) +#define GEDIT_MESSAGE_BUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_MESSAGE_BUS, GeditMessageBusClass)) + +typedef struct _GeditMessageBus GeditMessageBus; +typedef struct _GeditMessageBusClass GeditMessageBusClass; +typedef struct _GeditMessageBusPrivate GeditMessageBusPrivate; + +struct _GeditMessageBus +{ + GObject parent; + + GeditMessageBusPrivate *priv; +}; + +struct _GeditMessageBusClass +{ + GObjectClass parent_class; + + void (*dispatch) (GeditMessageBus *bus, + GeditMessage *message); + void (*registered) (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method); + void (*unregistered) (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method); +}; + +typedef void (* GeditMessageCallback) (GeditMessageBus *bus, + GeditMessage *message, + gpointer user_data); + +typedef void (* GeditMessageBusForeach) (gchar const *object_path, + gchar const *method, + gpointer user_data); + +GType gedit_message_bus_get_type (void) G_GNUC_CONST; + +GeditMessageBus *gedit_message_bus_get_default (void); +GeditMessageBus *gedit_message_bus_new (void); + +GType gedit_message_bus_lookup (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method); + +void gedit_message_bus_register (GeditMessageBus *bus, + GType message_type, + const gchar *object_path, + const gchar *method); + +void gedit_message_bus_unregister (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method); + +void gedit_message_bus_unregister_all (GeditMessageBus *bus, + const gchar *object_path); + +gboolean gedit_message_bus_is_registered (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method); + +void gedit_message_bus_foreach (GeditMessageBus *bus, + GeditMessageBusForeach func, + gpointer user_data); + +guint gedit_message_bus_connect (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data, + GDestroyNotify destroy_data); + +void gedit_message_bus_disconnect (GeditMessageBus *bus, + guint id); + +void gedit_message_bus_disconnect_by_func (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data); + +void gedit_message_bus_block (GeditMessageBus *bus, + guint id); +void gedit_message_bus_block_by_func (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data); + +void gedit_message_bus_unblock (GeditMessageBus *bus, + guint id); +void gedit_message_bus_unblock_by_func (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditMessageCallback callback, + gpointer user_data); + +void gedit_message_bus_send_message (GeditMessageBus *bus, + GeditMessage *message); +void gedit_message_bus_send_message_sync (GeditMessageBus *bus, + GeditMessage *message); + +void gedit_message_bus_send (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + const gchar *first_property, + ...) G_GNUC_NULL_TERMINATED; + +GeditMessage *gedit_message_bus_send_sync (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + const gchar *first_property, + ...) G_GNUC_NULL_TERMINATED; + +G_END_DECLS + +#endif /* GEDIT_MESSAGE_BUS_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-message.c b/gedit/gedit-message.c new file mode 100644 index 0000000..e015b5b --- /dev/null +++ b/gedit/gedit-message.c @@ -0,0 +1,321 @@ +/* + * gedit-message.c + * This file is part of gedit + * + * Copyright (C) 2008, 2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "gedit-message.h" + +#include + +/** + * SECTION:gedit-message + * @short_description: message bus message object + * @include: gedit/gedit-message.h + * + * Communication on a #GeditMessageBus is done through messages. Messages are + * sent over the bus and received by connecting callbacks on the message bus. + * A #GeditMessage is an instantiation of a #GeditMessageType, containing + * values for the arguments as specified in the message type. + * + * A message can be seen as a method call, or signal emission depending on + * who is the sender and who is the receiver. There is no explicit distinction + * between methods and signals. + */ + +struct _GeditMessagePrivate +{ + gchar *object_path; + gchar *method; +}; + +enum +{ + PROP_0, + PROP_OBJECT_PATH, + PROP_METHOD, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditMessage, gedit_message, G_TYPE_OBJECT) + +static void +gedit_message_finalize (GObject *object) +{ + GeditMessage *message = GEDIT_MESSAGE (object); + + g_free (message->priv->object_path); + g_free (message->priv->method); + + G_OBJECT_CLASS (gedit_message_parent_class)->finalize (object); +} + +static void +gedit_message_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditMessage *msg = GEDIT_MESSAGE (object); + + switch (prop_id) + { + case PROP_OBJECT_PATH: + g_value_set_string (value, + msg->priv->object_path); + break; + case PROP_METHOD: + g_value_set_string (value, + msg->priv->method); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_message_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditMessage *msg = GEDIT_MESSAGE (object); + + switch (prop_id) + { + case PROP_OBJECT_PATH: + g_free (msg->priv->object_path); + msg->priv->object_path = g_value_dup_string (value); + break; + case PROP_METHOD: + g_free (msg->priv->method); + msg->priv->method = g_value_dup_string (value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_message_class_init (GeditMessageClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_message_finalize; + + object_class->get_property = gedit_message_get_property; + object_class->set_property = gedit_message_set_property; + + /** + * GeditMessage:object_path: + * + * The messages object path (e.g. /gedit/object/path). + * + */ + properties[PROP_OBJECT_PATH] = + g_param_spec_string ("object-path", + "OBJECT_PATH", + "The message object path", + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); + + /** + * GeditMessage:method: + * + * The messages method. + * + */ + properties[PROP_METHOD] = + g_param_spec_string ("method", + "METHOD", + "The message method", + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); +} + +static void +gedit_message_init (GeditMessage *self) +{ + self->priv = gedit_message_get_instance_private (self); +} + +/** + * gedit_message_get_method: + * @message: the #GeditMessage + * + * Get the message method. + * + * Return value: the message method + * + */ +const gchar * +gedit_message_get_method (GeditMessage *message) +{ + g_return_val_if_fail (GEDIT_IS_MESSAGE (message), NULL); + + return message->priv->method; +} + +/** + * gedit_message_get_object_path: + * @message: the #GeditMessage + * + * Get the message object path. + * + * Return value: the message object path + * + */ +const gchar * +gedit_message_get_object_path (GeditMessage *message) +{ + g_return_val_if_fail (GEDIT_IS_MESSAGE (message), NULL); + + return message->priv->object_path; +} + +/** + * gedit_message_is_valid_object_path: + * @object_path: (allow-none): the object path + * + * Returns whether @object_path is a valid object path + * + * Return value: %TRUE if @object_path is a valid object path + * + */ +gboolean +gedit_message_is_valid_object_path (const gchar *object_path) +{ + if (!object_path) + { + return FALSE; + } + + /* needs to start with / */ + if (*object_path != '/') + { + return FALSE; + } + + while (*object_path) + { + if (*object_path == '/') + { + ++object_path; + + if (!*object_path || !(g_ascii_isalpha (*object_path) || *object_path == '_')) + { + return FALSE; + } + } + else if (!(g_ascii_isalnum (*object_path) || *object_path == '_')) + { + return FALSE; + } + + ++object_path; + } + + return TRUE; +} + +/** + * gedit_message_type_identifier: + * @object_path: (allow-none): the object path + * @method: (allow-none): the method + * + * Get the string identifier for @method at @object_path. + * + * Return value: the identifier for @method at @object_path + * + */ +gchar * +gedit_message_type_identifier (const gchar *object_path, + const gchar *method) +{ + return g_strconcat (object_path, ".", method, NULL); +} + +/** + * gedit_message_has: + * @message: the #GeditMessage + * @propname: the property name + * + * Check if a message has a certain property. + * + * Return Value: %TRUE if message has @propname, %FALSE otherwise + * + */ +gboolean +gedit_message_has (GeditMessage *message, + const gchar *propname) +{ + GObjectClass *klass; + + g_return_val_if_fail (GEDIT_IS_MESSAGE (message), FALSE); + g_return_val_if_fail (propname != NULL, FALSE); + + klass = G_OBJECT_GET_CLASS (G_OBJECT (message)); + + return g_object_class_find_property (klass, propname) != NULL; +} + +gboolean +gedit_message_type_has (GType gtype, + const gchar *propname) +{ + GObjectClass *klass; + gboolean ret; + + g_return_val_if_fail (g_type_is_a (gtype, GEDIT_TYPE_MESSAGE), FALSE); + g_return_val_if_fail (propname != NULL, FALSE); + + klass = g_type_class_ref (gtype); + ret = g_object_class_find_property (klass, propname) != NULL; + g_type_class_unref (klass); + + return ret; +} + +gboolean +gedit_message_type_check (GType gtype, + const gchar *propname, + GType value_type) +{ + GObjectClass *klass; + gboolean ret; + GParamSpec *spec; + + g_return_val_if_fail (g_type_is_a (gtype, GEDIT_TYPE_MESSAGE), FALSE); + g_return_val_if_fail (propname != NULL, FALSE); + + klass = g_type_class_ref (gtype); + spec = g_object_class_find_property (klass, propname); + ret = spec != NULL && spec->value_type == value_type; + g_type_class_unref (klass); + + return ret; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-message.h b/gedit/gedit-message.h new file mode 100644 index 0000000..8f15734 --- /dev/null +++ b/gedit/gedit-message.h @@ -0,0 +1,77 @@ +/* + * gedit-message.h + * This file is part of gedit + * + * Copyright (C) 2008, 2010 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_MESSAGE_H +#define GEDIT_MESSAGE_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_MESSAGE (gedit_message_get_type ()) +#define GEDIT_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_MESSAGE, GeditMessage)) +#define GEDIT_MESSAGE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_MESSAGE, GeditMessage const)) +#define GEDIT_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_MESSAGE, GeditMessageClass)) +#define GEDIT_IS_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_MESSAGE)) +#define GEDIT_IS_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_MESSAGE)) +#define GEDIT_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_MESSAGE, GeditMessageClass)) + +typedef struct _GeditMessage GeditMessage; +typedef struct _GeditMessageClass GeditMessageClass; +typedef struct _GeditMessagePrivate GeditMessagePrivate; + +struct _GeditMessage +{ + GObject parent; + + GeditMessagePrivate *priv; +}; + +struct _GeditMessageClass +{ + GObjectClass parent_class; +}; + +GType gedit_message_get_type (void) G_GNUC_CONST; + +const gchar *gedit_message_get_object_path (GeditMessage *message); +const gchar *gedit_message_get_method (GeditMessage *message); + +gboolean gedit_message_type_has (GType gtype, + const gchar *propname); + +gboolean gedit_message_type_check (GType gtype, + const gchar *propname, + GType value_type); + +gboolean gedit_message_has (GeditMessage *message, + const gchar *propname); + +gboolean gedit_message_is_valid_object_path (const gchar *object_path); +gchar *gedit_message_type_identifier (const gchar *object_path, + const gchar *method); + +G_END_DECLS + +#endif /* GEDIT_MESSAGE_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-multi-notebook.c b/gedit/gedit-multi-notebook.c new file mode 100644 index 0000000..46d75ed --- /dev/null +++ b/gedit/gedit-multi-notebook.c @@ -0,0 +1,1125 @@ +/* + * gedit-multi-notebook.c + * This file is part of gedit + * + * Copyright (C) 2010 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "gedit-multi-notebook.h" + +#include "gedit-enum-types-private.h" +#include "gedit-settings.h" +#include "gedit-tab-private.h" +#include "gedit-tab.h" + +struct _GeditMultiNotebookPrivate +{ + GtkWidget *active_notebook; + GList *notebooks; + gint total_tabs; + + GeditTab *active_tab; + + GeditNotebookShowTabsModeType show_tabs_mode; + GSettings *ui_settings; + + guint show_tabs : 1; + guint removing_notebook : 1; +}; + +enum +{ + PROP_0, + PROP_ACTIVE_NOTEBOOK, + PROP_ACTIVE_TAB, + PROP_SHOW_TABS_MODE, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +enum +{ + NOTEBOOK_ADDED, + NOTEBOOK_REMOVED, + TAB_ADDED, + TAB_REMOVED, + SWITCH_TAB, + TAB_CLOSE_REQUEST, + CREATE_WINDOW, + PAGE_REORDERED, + SHOW_POPUP_MENU, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditMultiNotebook, gedit_multi_notebook, GTK_TYPE_GRID) + +static void remove_notebook (GeditMultiNotebook *mnb, + GtkWidget *notebook); + +static void update_tabs_visibility (GeditMultiNotebook *mnb); + +static void +gedit_multi_notebook_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditMultiNotebook *mnb = GEDIT_MULTI_NOTEBOOK (object); + + switch (prop_id) + { + case PROP_ACTIVE_NOTEBOOK: + g_value_set_object (value, + mnb->priv->active_notebook); + break; + case PROP_ACTIVE_TAB: + g_value_set_object (value, + mnb->priv->active_tab); + break; + case PROP_SHOW_TABS_MODE: + g_value_set_enum (value, + mnb->priv->show_tabs_mode); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_multi_notebook_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditMultiNotebook *mnb = GEDIT_MULTI_NOTEBOOK (object); + + switch (prop_id) + { + case PROP_SHOW_TABS_MODE: + mnb->priv->show_tabs_mode = g_value_get_enum (value); + update_tabs_visibility (mnb); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_multi_notebook_dispose (GObject *object) +{ + GeditMultiNotebook *mnb = GEDIT_MULTI_NOTEBOOK (object); + + g_clear_object (&mnb->priv->ui_settings); + + G_OBJECT_CLASS (gedit_multi_notebook_parent_class)->dispose (object); +} + +static void +gedit_multi_notebook_finalize (GObject *object) +{ + GeditMultiNotebook *mnb = GEDIT_MULTI_NOTEBOOK (object); + + g_list_free (mnb->priv->notebooks); + + G_OBJECT_CLASS (gedit_multi_notebook_parent_class)->finalize (object); +} + +static void +gedit_multi_notebook_class_init (GeditMultiNotebookClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_multi_notebook_dispose; + object_class->finalize = gedit_multi_notebook_finalize; + object_class->get_property = gedit_multi_notebook_get_property; + object_class->set_property = gedit_multi_notebook_set_property; + + properties[PROP_ACTIVE_NOTEBOOK] = + g_param_spec_object ("active-notebook", + "Active Notebook", + "The Active Notebook", + GEDIT_TYPE_NOTEBOOK, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + properties[PROP_ACTIVE_TAB] = + g_param_spec_object ("active-tab", + "Active Tab", + "The Active Tab", + GEDIT_TYPE_TAB, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + properties[PROP_SHOW_TABS_MODE] = + g_param_spec_enum ("show-tabs-mode", + "Show Tabs Mode", + "When tabs should be shown", + GEDIT_TYPE_NOTEBOOK_SHOW_TABS_MODE_TYPE, + GEDIT_NOTEBOOK_SHOW_TABS_ALWAYS, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); + + signals[NOTEBOOK_ADDED] = + g_signal_new ("notebook-added", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, notebook_added), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_NOTEBOOK); + signals[NOTEBOOK_REMOVED] = + g_signal_new ("notebook-removed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, notebook_removed), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_NOTEBOOK); + signals[TAB_ADDED] = + g_signal_new ("tab-added", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, tab_added), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + GEDIT_TYPE_NOTEBOOK, + GEDIT_TYPE_TAB); + signals[TAB_REMOVED] = + g_signal_new ("tab-removed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, tab_removed), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + GEDIT_TYPE_NOTEBOOK, + GEDIT_TYPE_TAB); + signals[SWITCH_TAB] = + g_signal_new ("switch-tab", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, switch_tab), + NULL, NULL, NULL, + G_TYPE_NONE, + 4, + GEDIT_TYPE_NOTEBOOK, + GEDIT_TYPE_TAB, + GEDIT_TYPE_NOTEBOOK, + GEDIT_TYPE_TAB); + signals[TAB_CLOSE_REQUEST] = + g_signal_new ("tab-close-request", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, tab_close_request), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + GEDIT_TYPE_NOTEBOOK, + GEDIT_TYPE_TAB); + signals[CREATE_WINDOW] = + g_signal_new ("create-window", + G_TYPE_FROM_CLASS (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, create_window), + NULL, NULL, NULL, + GTK_TYPE_NOTEBOOK, 4, + GEDIT_TYPE_NOTEBOOK, GTK_TYPE_WIDGET, + G_TYPE_INT, G_TYPE_INT); + signals[PAGE_REORDERED] = + g_signal_new ("page-reordered", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, page_reordered), + NULL, NULL, NULL, + G_TYPE_NONE, + 3, + GEDIT_TYPE_NOTEBOOK, GTK_TYPE_WIDGET, + G_TYPE_INT); + signals[SHOW_POPUP_MENU] = + g_signal_new ("show-popup-menu", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditMultiNotebookClass, show_popup_menu), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE, + GEDIT_TYPE_TAB); +} + +static void +notebook_show_popup_menu (GtkNotebook *notebook, + GdkEvent *event, + GeditTab *tab, + GeditMultiNotebook *mnb) +{ + g_signal_emit (G_OBJECT (mnb), signals[SHOW_POPUP_MENU], 0, event, tab); +} + +static void +notebook_tab_close_request (GeditNotebook *notebook, + GeditTab *tab, + GeditMultiNotebook *mnb) +{ + g_signal_emit (G_OBJECT (mnb), signals[TAB_CLOSE_REQUEST], 0, + notebook, tab); +} + +static GtkNotebook * +notebook_create_window (GeditNotebook *notebook, + GtkWidget *child, + gint x, + gint y, + GeditMultiNotebook *mnb) +{ + GtkNotebook *dest_notebook; + + g_signal_emit (G_OBJECT (mnb), signals[CREATE_WINDOW], 0, + notebook, child, x, y, &dest_notebook); + + return dest_notebook; +} + +static void +notebook_page_reordered (GeditNotebook *notebook, + GtkWidget *child, + guint page_num, + GeditMultiNotebook *mnb) +{ + g_signal_emit (G_OBJECT (mnb), signals[PAGE_REORDERED], 0, notebook, + child, page_num); +} + +static void +set_active_tab (GeditMultiNotebook *mnb, + GeditTab *tab) +{ + mnb->priv->active_tab = tab; + g_object_notify_by_pspec (G_OBJECT (mnb), properties[PROP_ACTIVE_TAB]); +} + +static void +notebook_page_removed (GtkNotebook *notebook, + GtkWidget *child, + guint page_num, + GeditMultiNotebook *mnb) +{ + GeditTab *tab = GEDIT_TAB (child); + guint num_tabs; + gboolean last_notebook; + + --mnb->priv->total_tabs; + num_tabs = gtk_notebook_get_n_pages (notebook); + last_notebook = (mnb->priv->notebooks->next == NULL); + + if (mnb->priv->total_tabs == 0) + { + set_active_tab (mnb, NULL); + } + + g_signal_emit (G_OBJECT (mnb), signals[TAB_REMOVED], 0, notebook, tab); + + /* Not last notebook but last tab of the notebook, this means we have + to remove the current notebook */ + if (num_tabs == 0 && !mnb->priv->removing_notebook && + !last_notebook) + { + remove_notebook (mnb, GTK_WIDGET (notebook)); + } + + update_tabs_visibility (mnb); +} + +static void +notebook_page_added (GtkNotebook *notebook, + GtkWidget *child, + guint page_num, + GeditMultiNotebook *mnb) +{ + GeditTab *tab = GEDIT_TAB (child); + + ++mnb->priv->total_tabs; + + update_tabs_visibility (mnb); + + g_signal_emit (G_OBJECT (mnb), signals[TAB_ADDED], 0, notebook, tab); +} + +static void +notebook_switch_page (GtkNotebook *book, + GtkWidget *pg, + gint page_num, + GeditMultiNotebook *mnb) +{ + GeditTab *tab; + + /* When we switch a tab from a notebook that it is not the active one + the switch page is emitted before the set focus, so we do this check + and we avoid to call switch page twice */ + if (GTK_WIDGET (book) != mnb->priv->active_notebook) + return; + + /* CHECK: I don't know why but it seems notebook_switch_page is called + two times every time the user change the active tab */ + tab = GEDIT_TAB (gtk_notebook_get_nth_page (book, page_num)); + if (tab != mnb->priv->active_tab) + { + GeditTab *old_tab; + + old_tab = mnb->priv->active_tab; + set_active_tab (mnb, tab); + g_signal_emit (G_OBJECT (mnb), signals[SWITCH_TAB], 0, + mnb->priv->active_notebook, old_tab, + book, tab); + } +} + +/* We need to figure out if the any of the internal widget of the notebook + has got the focus to set the active notebook */ +static void +notebook_set_focus (GtkContainer *container, + GtkWidget *widget, + GeditMultiNotebook *mnb) +{ + if (GEDIT_IS_NOTEBOOK (container) && + GTK_WIDGET (container) != mnb->priv->active_notebook) + { + gint page_num; + + mnb->priv->active_notebook = GTK_WIDGET (container); + + page_num = gtk_notebook_get_current_page (GTK_NOTEBOOK (container)); + notebook_switch_page (GTK_NOTEBOOK (container), NULL, + page_num, mnb); + + g_object_notify_by_pspec (G_OBJECT (mnb), properties[PROP_ACTIVE_NOTEBOOK]); + } +} + +static void +show_tabs_changed (GObject *object, + GParamSpec *pspec, + gpointer *data) +{ + update_tabs_visibility (GEDIT_MULTI_NOTEBOOK (data)); +} + +static void +update_tabs_visibility (GeditMultiNotebook *mnb) +{ + gboolean show_tabs; + GList *l; + + if (mnb->priv->notebooks == NULL) + return; + + if (!mnb->priv->show_tabs) + { + show_tabs = FALSE; + } + else if (mnb->priv->notebooks->next == NULL) /* only one notebook */ + { + switch (mnb->priv->show_tabs_mode) + { + case GEDIT_NOTEBOOK_SHOW_TABS_NEVER: + show_tabs = FALSE; + break; + case GEDIT_NOTEBOOK_SHOW_TABS_AUTO: + show_tabs = gtk_notebook_get_n_pages (GTK_NOTEBOOK (mnb->priv->notebooks->data)) > 1; + break; + case GEDIT_NOTEBOOK_SHOW_TABS_ALWAYS: + default: + show_tabs = TRUE; + break; + } + } + else + { + show_tabs = (mnb->priv->show_tabs_mode != GEDIT_NOTEBOOK_SHOW_TABS_NEVER); + } + + g_signal_handlers_block_by_func (mnb, show_tabs_changed, NULL); + + for (l = mnb->priv->notebooks; l != NULL; l = l->next) + { + gtk_notebook_set_show_tabs (GTK_NOTEBOOK (l->data), show_tabs); + } + + g_signal_handlers_unblock_by_func (mnb, show_tabs_changed, NULL); +} + +static void +connect_notebook_signals (GeditMultiNotebook *mnb, + GtkWidget *notebook) +{ + g_signal_connect (notebook, + "set-focus-child", + G_CALLBACK (notebook_set_focus), + mnb); + g_signal_connect (notebook, + "page-added", + G_CALLBACK (notebook_page_added), + mnb); + g_signal_connect (notebook, + "page-removed", + G_CALLBACK (notebook_page_removed), + mnb); + g_signal_connect (notebook, + "switch-page", + G_CALLBACK (notebook_switch_page), + mnb); + g_signal_connect (notebook, + "page-reordered", + G_CALLBACK (notebook_page_reordered), + mnb); + g_signal_connect (notebook, + "create-window", + G_CALLBACK (notebook_create_window), + mnb); + g_signal_connect (notebook, + "tab-close-request", + G_CALLBACK (notebook_tab_close_request), + mnb); + g_signal_connect (notebook, + "show-popup-menu", + G_CALLBACK (notebook_show_popup_menu), + mnb); + g_signal_connect (notebook, + "notify::show-tabs", + G_CALLBACK (show_tabs_changed), + mnb); +} + +static void +disconnect_notebook_signals (GeditMultiNotebook *mnb, + GtkWidget *notebook) +{ + g_signal_handlers_disconnect_by_func (notebook, notebook_set_focus, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_switch_page, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_page_added, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_page_removed, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_page_reordered, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_create_window, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_tab_close_request, + mnb); + g_signal_handlers_disconnect_by_func (notebook, notebook_show_popup_menu, + mnb); + g_signal_handlers_disconnect_by_func (notebook, show_tabs_changed, + mnb); +} + +static void +add_notebook (GeditMultiNotebook *mnb, + GtkWidget *notebook, + gboolean main_container) +{ + gtk_widget_set_hexpand (notebook, TRUE); + gtk_widget_set_vexpand (notebook, TRUE); + + if (main_container) + { + gtk_container_add (GTK_CONTAINER (mnb), notebook); + + mnb->priv->notebooks = g_list_append (mnb->priv->notebooks, + notebook); + } + else + { + GtkWidget *paned; + GtkWidget *parent; + GtkAllocation allocation; + GtkWidget *active_notebook = mnb->priv->active_notebook; + gint active_nb_pos; + + paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); + gtk_widget_show (paned); + + /* First we remove the active container from its parent to make + this we add a ref to it*/ + g_object_ref (active_notebook); + parent = gtk_widget_get_parent (active_notebook); + gtk_widget_get_allocation (active_notebook, &allocation); + + gtk_container_remove (GTK_CONTAINER (parent), active_notebook); + gtk_container_add (GTK_CONTAINER (parent), paned); + + gtk_paned_pack1 (GTK_PANED (paned), active_notebook, TRUE, FALSE); + g_object_unref (active_notebook); + + gtk_paned_pack2 (GTK_PANED (paned), notebook, FALSE, FALSE); + + /* We need to set the new paned in the right place */ + gtk_paned_set_position (GTK_PANED (paned), + allocation.width / 2); + + active_nb_pos = g_list_index (mnb->priv->notebooks, + active_notebook); + mnb->priv->notebooks = g_list_insert (mnb->priv->notebooks, + notebook, + active_nb_pos + 1); + } + + gtk_widget_show (notebook); + + connect_notebook_signals (mnb, notebook); + + g_signal_emit (G_OBJECT (mnb), signals[NOTEBOOK_ADDED], 0, notebook); +} + +static void +remove_notebook (GeditMultiNotebook *mnb, + GtkWidget *notebook) +{ + GtkWidget *parent; + GtkWidget *grandpa; + GList *children; + GtkWidget *new_notebook; + GList *current; + + if (mnb->priv->notebooks->next == NULL) + { + g_warning ("You are trying to remove the main notebook"); + return; + } + + current = g_list_find (mnb->priv->notebooks, + notebook); + + if (current->next != NULL) + { + new_notebook = GTK_WIDGET (current->next->data); + } + else + { + new_notebook = GTK_WIDGET (mnb->priv->notebooks->data); + } + + parent = gtk_widget_get_parent (notebook); + + /* Now we destroy the widget, we get the children of parent and we destroy + parent too as the parent is an useless paned. Finally we add the child + into the grand parent */ + g_object_ref (notebook); + mnb->priv->removing_notebook = TRUE; + + gtk_widget_destroy (notebook); + + mnb->priv->notebooks = g_list_remove (mnb->priv->notebooks, + notebook); + + mnb->priv->removing_notebook = FALSE; + + children = gtk_container_get_children (GTK_CONTAINER (parent)); + if (children->next != NULL) + { + g_warning ("The parent is not a paned"); + return; + } + grandpa = gtk_widget_get_parent (parent); + + g_object_ref (children->data); + gtk_container_remove (GTK_CONTAINER (parent), + GTK_WIDGET (children->data)); + gtk_widget_destroy (parent); + gtk_container_add (GTK_CONTAINER (grandpa), + GTK_WIDGET (children->data)); + g_object_unref (children->data); + g_list_free (children); + + disconnect_notebook_signals (mnb, notebook); + + g_signal_emit (G_OBJECT (mnb), signals[NOTEBOOK_REMOVED], 0, notebook); + g_object_unref (notebook); + + /* Let's make the active notebook grab the focus */ + gtk_widget_grab_focus (new_notebook); +} + +static void +gedit_multi_notebook_init (GeditMultiNotebook *mnb) +{ + GeditMultiNotebookPrivate *priv; + + mnb->priv = gedit_multi_notebook_get_instance_private (mnb); + priv = mnb->priv; + + priv->removing_notebook = FALSE; + + gtk_orientable_set_orientation (GTK_ORIENTABLE (mnb), + GTK_ORIENTATION_VERTICAL); + + priv->show_tabs_mode = GEDIT_NOTEBOOK_SHOW_TABS_ALWAYS; + priv->show_tabs = TRUE; + + priv->ui_settings = g_settings_new ("org.gnome.gedit.preferences.ui"); + g_settings_bind (priv->ui_settings, + GEDIT_SETTINGS_SHOW_TABS_MODE, + mnb, + "show-tabs-mode", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + + priv->active_notebook = gedit_notebook_new (); + add_notebook (mnb, priv->active_notebook, TRUE); +} + +GeditMultiNotebook * +gedit_multi_notebook_new () +{ + return g_object_new (GEDIT_TYPE_MULTI_NOTEBOOK, NULL); +} + +GeditNotebook * +gedit_multi_notebook_get_active_notebook (GeditMultiNotebook *mnb) +{ + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), NULL); + + return GEDIT_NOTEBOOK (mnb->priv->active_notebook); +} + +gint +gedit_multi_notebook_get_n_notebooks (GeditMultiNotebook *mnb) +{ + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), 0); + + return g_list_length (mnb->priv->notebooks); +} + +GeditNotebook * +gedit_multi_notebook_get_nth_notebook (GeditMultiNotebook *mnb, + gint notebook_num) +{ + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), NULL); + + return g_list_nth_data (mnb->priv->notebooks, notebook_num); +} + +GeditNotebook * +gedit_multi_notebook_get_notebook_for_tab (GeditMultiNotebook *mnb, + GeditTab *tab) +{ + GList *l; + gint page_num; + + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), NULL); + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + l = mnb->priv->notebooks; + + do + { + page_num = gtk_notebook_page_num (GTK_NOTEBOOK (l->data), + GTK_WIDGET (tab)); + if (page_num != -1) + break; + + l = g_list_next (l); + } while (l != NULL && page_num == -1); + + g_return_val_if_fail (page_num != -1, NULL); + + return GEDIT_NOTEBOOK (l->data); +} + +gint +gedit_multi_notebook_get_notebook_num (GeditMultiNotebook *mnb, + GeditNotebook *notebook) +{ + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), -1); + g_return_val_if_fail (GEDIT_IS_NOTEBOOK (notebook), -1); + + return g_list_index (mnb->priv->notebooks, notebook); +} + +gint +gedit_multi_notebook_get_n_tabs (GeditMultiNotebook *mnb) +{ + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), 0); + + return mnb->priv->total_tabs; +} + +gint +gedit_multi_notebook_get_page_num (GeditMultiNotebook *mnb, + GeditTab *tab) +{ + GList *l; + gint real_page_num = 0; + + for (l = mnb->priv->notebooks; l != NULL; l = g_list_next (l)) + { + gint page_num; + + page_num = gtk_notebook_page_num (GTK_NOTEBOOK (l->data), + GTK_WIDGET (tab)); + + if (page_num != -1) + { + real_page_num += page_num; + break; + } + + real_page_num += gtk_notebook_get_n_pages (GTK_NOTEBOOK (l->data)); + } + + return real_page_num; +} + +GeditTab * +gedit_multi_notebook_get_active_tab (GeditMultiNotebook *mnb) +{ + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), NULL); + + return (mnb->priv->active_tab == NULL) ? + NULL : GEDIT_TAB (mnb->priv->active_tab); +} + +void +gedit_multi_notebook_set_active_tab (GeditMultiNotebook *mnb, + GeditTab *tab) +{ + GList *l; + gint page_num; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + g_return_if_fail (GEDIT_IS_TAB (tab) || tab == NULL); + + /* use plain C cast since the active tab can be null */ + if (tab == (GeditTab *) mnb->priv->active_tab) + { + return; + } + + if (tab == NULL) + { + set_active_tab (mnb, NULL); + return; + } + + l = mnb->priv->notebooks; + + do + { + page_num = gtk_notebook_page_num (GTK_NOTEBOOK (l->data), + GTK_WIDGET (tab)); + if (page_num != -1) + break; + + l = g_list_next (l); + } while (l != NULL && page_num == -1); + + g_return_if_fail (page_num != -1); + + gtk_notebook_set_current_page (GTK_NOTEBOOK (l->data), page_num); + + if (GTK_WIDGET (l->data) != mnb->priv->active_notebook) + { + gtk_widget_grab_focus (GTK_WIDGET (l->data)); + } +} + +void +gedit_multi_notebook_set_current_page (GeditMultiNotebook *mnb, + gint page_num) +{ + GList *l; + gint pages = 0; + gint single_num = page_num; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + for (l = mnb->priv->notebooks; l != NULL; l = g_list_next (l)) + { + gint p; + + p = gtk_notebook_get_n_pages (GTK_NOTEBOOK (l->data)); + pages += p; + + if ((pages - 1) >= page_num) + break; + + single_num -= p; + } + + if (l == NULL) + return; + + if (GTK_WIDGET (l->data) != mnb->priv->active_notebook) + { + gtk_widget_grab_focus (GTK_WIDGET (l->data)); + } + + gtk_notebook_set_current_page (GTK_NOTEBOOK (l->data), single_num); +} + +GList * +gedit_multi_notebook_get_all_tabs (GeditMultiNotebook *mnb) +{ + GList *nbs; + GList *ret = NULL; + + g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), NULL); + + for (nbs = mnb->priv->notebooks; nbs != NULL; nbs = g_list_next (nbs)) + { + GList *l, *children; + + children = gtk_container_get_children (GTK_CONTAINER (nbs->data)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + ret = g_list_prepend (ret, l->data); + } + + g_list_free (children); + } + + ret = g_list_reverse (ret); + + return ret; +} + +void +gedit_multi_notebook_close_tabs (GeditMultiNotebook *mnb, + const GList *tabs) +{ + GList *l; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + for (l = (GList *)tabs; l != NULL; l = g_list_next (l)) + { + GList *nbs; + + for (nbs = mnb->priv->notebooks; nbs != NULL; nbs = g_list_next (nbs)) + { + gint n; + + n = gtk_notebook_page_num (GTK_NOTEBOOK (nbs->data), + GTK_WIDGET (l->data)); + + if (n != -1) + { + gtk_container_remove (GTK_CONTAINER (nbs->data), + GTK_WIDGET (l->data)); + break; + } + } + } +} + +/** + * gedit_multi_notebook_close_all_tabs: + * @mnb: a #GeditMultiNotebook + * + * Closes all opened tabs. + */ +void +gedit_multi_notebook_close_all_tabs (GeditMultiNotebook *mnb) +{ + GList *nbs, *l; + + g_return_if_fail (GEDIT_MULTI_NOTEBOOK (mnb)); + + /* We copy the list because the main one is going to have the items + removed */ + nbs = g_list_copy (mnb->priv->notebooks); + + for (l = nbs; l != NULL; l = g_list_next (l)) + { + gedit_notebook_remove_all_tabs (GEDIT_NOTEBOOK (l->data)); + } + + g_list_free (nbs); +} + +void +gedit_multi_notebook_add_new_notebook (GeditMultiNotebook *mnb) +{ + GtkWidget *notebook; + GeditTab *tab; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + notebook = gedit_notebook_new (); + add_notebook (mnb, notebook, FALSE); + + tab = _gedit_tab_new (); + gtk_widget_show (GTK_WIDGET (tab)); + + /* When gtk_notebook_insert_page is called the focus is set in + the notebook, we don't want this to happen until the page is added. + Also we don't want to call switch_page when we add the tab + but when we switch the notebook. */ + g_signal_handlers_block_by_func (notebook, notebook_set_focus, mnb); + g_signal_handlers_block_by_func (notebook, notebook_switch_page, mnb); + + gedit_notebook_add_tab (GEDIT_NOTEBOOK (notebook), + tab, + -1, + TRUE); + + g_signal_handlers_unblock_by_func (notebook, notebook_switch_page, mnb); + g_signal_handlers_unblock_by_func (notebook, notebook_set_focus, mnb); + + notebook_set_focus (GTK_CONTAINER (notebook), NULL, mnb); +} + +void +gedit_multi_notebook_add_new_notebook_with_tab (GeditMultiNotebook *mnb, + GeditTab *tab) +{ + GtkWidget *notebook; + GeditNotebook *old_notebook; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + g_return_if_fail (GEDIT_IS_TAB (tab)); + + notebook = gedit_notebook_new (); + add_notebook (mnb, notebook, FALSE); + + old_notebook = gedit_multi_notebook_get_notebook_for_tab (mnb, tab); + + /* When gtk_notebook_insert_page is called the focus is set in + the notebook, we don't want this to happen until the page is added. + Also we don't want to call switch_page when we add the tab + but when we switch the notebook. */ + g_signal_handlers_block_by_func (old_notebook, notebook_set_focus, mnb); + g_signal_handlers_block_by_func (old_notebook, notebook_switch_page, mnb); + + gedit_notebook_move_tab (old_notebook, + GEDIT_NOTEBOOK (notebook), + tab, + -1); + + g_signal_handlers_unblock_by_func (old_notebook, notebook_switch_page, mnb); + g_signal_handlers_unblock_by_func (old_notebook, notebook_set_focus, mnb); + + notebook_set_focus (GTK_CONTAINER (notebook), NULL, mnb); +} + +void +gedit_multi_notebook_remove_active_notebook (GeditMultiNotebook *mnb) +{ + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + gedit_notebook_remove_all_tabs (GEDIT_NOTEBOOK (mnb->priv->active_notebook)); +} + +void +gedit_multi_notebook_previous_notebook (GeditMultiNotebook *mnb) +{ + GList *current; + GtkWidget *notebook; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + current = g_list_find (mnb->priv->notebooks, + mnb->priv->active_notebook); + + if (current->prev != NULL) + notebook = GTK_WIDGET (current->prev->data); + else + notebook = GTK_WIDGET (g_list_last (mnb->priv->notebooks)->data); + + gtk_widget_grab_focus (notebook); +} + +void +gedit_multi_notebook_next_notebook (GeditMultiNotebook *mnb) +{ + GList *current; + GtkWidget *notebook; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + current = g_list_find (mnb->priv->notebooks, + mnb->priv->active_notebook); + + if (current->next != NULL) + notebook = GTK_WIDGET (current->next->data); + else + notebook = GTK_WIDGET (mnb->priv->notebooks->data); + + gtk_widget_grab_focus (notebook); +} + +void +gedit_multi_notebook_foreach_notebook (GeditMultiNotebook *mnb, + GtkCallback callback, + gpointer callback_data) +{ + GList *l; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + for (l = mnb->priv->notebooks; l != NULL; l = g_list_next (l)) + { + callback (GTK_WIDGET (l->data), callback_data); + } +} + +void +gedit_multi_notebook_foreach_tab (GeditMultiNotebook *mnb, + GtkCallback callback, + gpointer callback_data) +{ + GList *nb; + + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + for (nb = mnb->priv->notebooks; nb != NULL; nb = g_list_next (nb)) + { + GList *l, *children; + + children = gtk_container_get_children (GTK_CONTAINER (nb->data)); + + for (l = children; l != NULL; l = g_list_next (l)) + { + callback (GTK_WIDGET (l->data), callback_data); + } + + g_list_free (children); + } +} + +/* We only use this to hide tabs in fullscreen mode so for now + * we do not have a real property etc. + */ +void +_gedit_multi_notebook_set_show_tabs (GeditMultiNotebook *mnb, + gboolean show) +{ + g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb)); + + mnb->priv->show_tabs = show != FALSE; + + update_tabs_visibility (mnb); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-multi-notebook.h b/gedit/gedit-multi-notebook.h new file mode 100644 index 0000000..2022bd8 --- /dev/null +++ b/gedit/gedit-multi-notebook.h @@ -0,0 +1,148 @@ +/* + * gedit-multi-notebook.h + * This file is part of gedit + * + * Copyright (C) 2010 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#ifndef GEDIT_MULTI_NOTEBOOK_H +#define GEDIT_MULTI_NOTEBOOK_H + +#include + +#include "gedit-tab.h" +#include "gedit-notebook.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_MULTI_NOTEBOOK (gedit_multi_notebook_get_type ()) +#define GEDIT_MULTI_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_MULTI_NOTEBOOK, GeditMultiNotebook)) +#define GEDIT_MULTI_NOTEBOOK_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_MULTI_NOTEBOOK, GeditMultiNotebook const)) +#define GEDIT_MULTI_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_MULTI_NOTEBOOK, GeditMultiNotebookClass)) +#define GEDIT_IS_MULTI_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_MULTI_NOTEBOOK)) +#define GEDIT_IS_MULTI_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_MULTI_NOTEBOOK)) +#define GEDIT_MULTI_NOTEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_MULTI_NOTEBOOK, GeditMultiNotebookClass)) + +typedef struct _GeditMultiNotebook GeditMultiNotebook; +typedef struct _GeditMultiNotebookClass GeditMultiNotebookClass; +typedef struct _GeditMultiNotebookPrivate GeditMultiNotebookPrivate; + +struct _GeditMultiNotebook +{ + GtkGrid parent; + + GeditMultiNotebookPrivate *priv; +}; + +struct _GeditMultiNotebookClass +{ + GtkGridClass parent_class; + + /* Signals */ + void (* notebook_added) (GeditMultiNotebook *mnb, + GeditNotebook *notebook); + void (* notebook_removed) (GeditMultiNotebook *mnb, + GeditNotebook *notebook); + void (* tab_added) (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditTab *tab); + void (* tab_removed) (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditTab *tab); + void (* switch_tab) (GeditMultiNotebook *mnb, + GeditNotebook *old_notebook, + GeditTab *old_tab, + GeditNotebook *new_notebook, + GeditTab *new_tab); + void (* tab_close_request) (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditTab *tab); + GtkNotebook * (* create_window) (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GtkWidget *page, + gint x, + gint y); + void (* page_reordered) (GeditMultiNotebook *mnb); + void (* show_popup_menu) (GeditMultiNotebook *mnb, + GdkEvent *event, + GeditTab *tab); +}; + +GType gedit_multi_notebook_get_type (void) G_GNUC_CONST; + +GeditMultiNotebook *gedit_multi_notebook_new (void); + +GeditNotebook *gedit_multi_notebook_get_active_notebook (GeditMultiNotebook *mnb); + +gint gedit_multi_notebook_get_n_notebooks (GeditMultiNotebook *mnb); + +GeditNotebook *gedit_multi_notebook_get_nth_notebook (GeditMultiNotebook *mnb, + gint notebook_num); + +GeditNotebook *gedit_multi_notebook_get_notebook_for_tab (GeditMultiNotebook *mnb, + GeditTab *tab); + +gint gedit_multi_notebook_get_notebook_num (GeditMultiNotebook *mnb, + GeditNotebook *notebook); + +gint gedit_multi_notebook_get_n_tabs (GeditMultiNotebook *mnb); + +gint gedit_multi_notebook_get_page_num (GeditMultiNotebook *mnb, + GeditTab *tab); + +GeditTab *gedit_multi_notebook_get_active_tab (GeditMultiNotebook *mnb); +void gedit_multi_notebook_set_active_tab (GeditMultiNotebook *mnb, + GeditTab *tab); + +void gedit_multi_notebook_set_current_page (GeditMultiNotebook *mnb, + gint page_num); + +GList *gedit_multi_notebook_get_all_tabs (GeditMultiNotebook *mnb); + +void gedit_multi_notebook_close_tabs (GeditMultiNotebook *mnb, + const GList *tabs); + +void gedit_multi_notebook_close_all_tabs (GeditMultiNotebook *mnb); + +void gedit_multi_notebook_add_new_notebook (GeditMultiNotebook *mnb); + +void gedit_multi_notebook_add_new_notebook_with_tab (GeditMultiNotebook *mnb, + GeditTab *tab); + +void gedit_multi_notebook_remove_active_notebook (GeditMultiNotebook *mnb); + +void gedit_multi_notebook_previous_notebook (GeditMultiNotebook *mnb); +void gedit_multi_notebook_next_notebook (GeditMultiNotebook *mnb); + +void gedit_multi_notebook_foreach_notebook (GeditMultiNotebook *mnb, + GtkCallback callback, + gpointer callback_data); + +void gedit_multi_notebook_foreach_tab (GeditMultiNotebook *mnb, + GtkCallback callback, + gpointer callback_data); + +void _gedit_multi_notebook_set_show_tabs (GeditMultiNotebook *mnb, + gboolean show); + +G_END_DECLS + +#endif /* GEDIT_MULTI_NOTEBOOK_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-notebook-popup-menu.c b/gedit/gedit-notebook-popup-menu.c new file mode 100644 index 0000000..95ef458 --- /dev/null +++ b/gedit/gedit-notebook-popup-menu.c @@ -0,0 +1,297 @@ +/* + * gedit-notebook-popup-menu.c + * This file is part of gedit + * + * Copyright (C) 2011 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#include "gedit-notebook-popup-menu.h" + +#include + +#include "gedit-app.h" +#include "gedit-app-private.h" +#include "gedit-commands-private.h" +#include "gedit-multi-notebook.h" + +struct _GeditNotebookPopupMenu +{ + GtkMenu parent_instance; + + GeditWindow *window; + GeditTab *tab; + + GSimpleActionGroup *action_group; +}; + +enum +{ + PROP_0, + PROP_WINDOW, + PROP_TAB, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +G_DEFINE_TYPE (GeditNotebookPopupMenu, gedit_notebook_popup_menu, GTK_TYPE_MENU) + +static void +gedit_notebook_popup_menu_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (object); + + switch (prop_id) + { + case PROP_WINDOW: + menu->window = GEDIT_WINDOW (g_value_get_object (value)); + break; + + case PROP_TAB: + menu->tab = GEDIT_TAB (g_value_get_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_notebook_popup_menu_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (object); + + switch (prop_id) + { + case PROP_WINDOW: + g_value_set_object (value, menu->window); + break; + + case PROP_TAB: + g_value_set_object (value, menu->tab); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +update_sensitivity (GeditNotebookPopupMenu *menu) +{ + GeditTabState state; + GeditMultiNotebook *mnb; + GtkNotebook *notebook; + gint page_num; + gint n_pages; + guint n_tabs; + GAction *action; + + state = gedit_tab_get_state (menu->tab); + + mnb = GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (menu->window)); + + notebook = GTK_NOTEBOOK (gedit_multi_notebook_get_notebook_for_tab (mnb, menu->tab)); + n_pages = gtk_notebook_get_n_pages (notebook); + n_tabs = gedit_multi_notebook_get_n_tabs(mnb); + page_num = gtk_notebook_page_num (notebook, GTK_WIDGET (menu->tab)); + + action = g_action_map_lookup_action (G_ACTION_MAP (menu->action_group), + "close"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state != GEDIT_TAB_STATE_CLOSING) && + (state != GEDIT_TAB_STATE_SAVING) && + (state != GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) && + (state != GEDIT_TAB_STATE_PRINTING) && + (state != GEDIT_TAB_STATE_SAVING_ERROR)); + + action = g_action_map_lookup_action (G_ACTION_MAP (menu->action_group), + "move-to-new-window"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), n_tabs > 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (menu->action_group), + "move-to-new-tab-group"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), n_pages > 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (menu->action_group), + "move-left"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), page_num > 0); + + action = g_action_map_lookup_action (G_ACTION_MAP (menu->action_group), + "move-right"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), page_num < n_pages - 1); +} + +static void +gedit_notebook_popup_menu_constructed (GObject *object) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (object); + + update_sensitivity (menu); + + G_OBJECT_CLASS (gedit_notebook_popup_menu_parent_class)->constructed (object); +} + +static void +gedit_notebook_popup_menu_class_init (GeditNotebookPopupMenuClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->get_property = gedit_notebook_popup_menu_get_property; + object_class->set_property = gedit_notebook_popup_menu_set_property; + object_class->constructed = gedit_notebook_popup_menu_constructed; + + properties[PROP_WINDOW] = + g_param_spec_object ("window", + "Window", + "The GeditWindow", + GEDIT_TYPE_WINDOW, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + + properties[PROP_TAB] = + g_param_spec_object ("tab", + "Tab", + "The GeditTab", + GEDIT_TYPE_TAB, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); +} + +static void +on_move_left_activate (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (user_data); + GeditMultiNotebook *mnb; + GtkNotebook *notebook; + gint page_num; + + mnb = GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (menu->window)); + + notebook = GTK_NOTEBOOK (gedit_multi_notebook_get_notebook_for_tab (mnb, menu->tab)); + page_num = gtk_notebook_page_num (notebook, GTK_WIDGET (menu->tab)); + + if (page_num > 0) + { + gtk_notebook_reorder_child (notebook, + GTK_WIDGET (menu->tab), + page_num - 1); + } +} + +static void +on_move_right_activate (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (user_data); + GeditMultiNotebook *mnb; + GtkNotebook *notebook; + gint page_num; + gint n_pages; + + mnb = GEDIT_MULTI_NOTEBOOK (_gedit_window_get_multi_notebook (menu->window)); + + notebook = GTK_NOTEBOOK (gedit_multi_notebook_get_notebook_for_tab (mnb, menu->tab)); + n_pages = gtk_notebook_get_n_pages (notebook); + page_num = gtk_notebook_page_num (notebook, GTK_WIDGET (menu->tab)); + + if (page_num < (n_pages - 1)) + { + gtk_notebook_reorder_child (notebook, + GTK_WIDGET (menu->tab), + page_num + 1); + } +} + +static void +on_move_to_new_window_activate (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (user_data); + + _gedit_window_move_tab_to_new_window (menu->window, menu->tab); +} + +static void +on_move_to_new_tab_group_activate (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (user_data); + + _gedit_window_move_tab_to_new_tab_group (menu->window, menu->tab); +} + +static void +on_close_activate (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditNotebookPopupMenu *menu = GEDIT_NOTEBOOK_POPUP_MENU (user_data); + + _gedit_cmd_file_close_tab (menu->tab, menu->window); +} + +static GActionEntry action_entries[] = { + { "move-left", on_move_left_activate }, + { "move-right", on_move_right_activate }, + { "move-to-new-window", on_move_to_new_window_activate }, + { "move-to-new-tab-group", on_move_to_new_tab_group_activate }, + { "close", on_close_activate } +}; + +static void +gedit_notebook_popup_menu_init (GeditNotebookPopupMenu *menu) +{ + gtk_menu_shell_bind_model (GTK_MENU_SHELL (menu), + _gedit_app_get_notebook_menu (GEDIT_APP (g_application_get_default ())), + "popup", + TRUE); + + menu->action_group = g_simple_action_group_new (); + g_action_map_add_action_entries (G_ACTION_MAP (menu->action_group), + action_entries, + G_N_ELEMENTS (action_entries), + menu); + + gtk_widget_insert_action_group (GTK_WIDGET (menu), + "popup", + G_ACTION_GROUP (menu->action_group)); +} + +GtkWidget * +gedit_notebook_popup_menu_new (GeditWindow *window, + GeditTab *tab) +{ + return g_object_new (GEDIT_TYPE_NOTEBOOK_POPUP_MENU, + "window", window, + "tab", tab, + NULL); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-notebook-popup-menu.h b/gedit/gedit-notebook-popup-menu.h new file mode 100644 index 0000000..10b3c6a --- /dev/null +++ b/gedit/gedit-notebook-popup-menu.h @@ -0,0 +1,39 @@ +/* + * gedit-notebook-popup-menu.h + * This file is part of gedit + * + * Copyright (C) 2011 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + + +#ifndef GEDIT_NOTEBOOK_POPUP_MENU_H +#define GEDIT_NOTEBOOK_POPUP_MENU_H + +#include +#include "gedit-window.h" +#include "gedit-tab.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_NOTEBOOK_POPUP_MENU (gedit_notebook_popup_menu_get_type ()) +G_DECLARE_FINAL_TYPE (GeditNotebookPopupMenu, gedit_notebook_popup_menu, GEDIT, NOTEBOOK_POPUP_MENU, GtkMenu) + +GtkWidget *gedit_notebook_popup_menu_new (GeditWindow *window, + GeditTab *tab); + +G_END_DECLS + +#endif /* GEDIT_NOTEBOOK_POPUP_MENU_H */ diff --git a/gedit/gedit-notebook-stack-switcher.c b/gedit/gedit-notebook-stack-switcher.c new file mode 100644 index 0000000..ecb661a --- /dev/null +++ b/gedit/gedit-notebook-stack-switcher.c @@ -0,0 +1,362 @@ +/* + * gedit-notebook-stack-switcher.h + * This file is part of gedit + * + * Copyright (C) 2014 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-notebook-stack-switcher.h" + +#include +#include +#include + +/* + * This widget is a rather ugly kludge: it uses a GtkNotebook full of empty + * pages to create a stack switcher for the bottom pane. This is needed + * because we want to expose GtkStack in the API but we want the tabs styled + * as notebook tabs. Hopefully Gtk itself will grow a "tabs" stack switcher... + */ + +struct _GeditNotebookStackSwitcherPrivate +{ + GtkWidget *notebook; + GtkStack *stack; +}; + +enum { + PROP_0, + PROP_STACK +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditNotebookStackSwitcher, gedit_notebook_stack_switcher, GTK_TYPE_BIN) + +static void +gedit_notebook_stack_switcher_init (GeditNotebookStackSwitcher *switcher) +{ + GeditNotebookStackSwitcherPrivate *priv; + + priv = gedit_notebook_stack_switcher_get_instance_private (switcher); + switcher->priv = priv; + + priv->notebook = gtk_notebook_new (); + + gtk_notebook_set_tab_pos (GTK_NOTEBOOK (priv->notebook), GTK_POS_BOTTOM); + gtk_notebook_set_scrollable (GTK_NOTEBOOK (priv->notebook), TRUE); + gtk_notebook_set_show_border (GTK_NOTEBOOK (priv->notebook), FALSE); + gtk_container_set_border_width (GTK_CONTAINER (priv->notebook), 0); + + gtk_widget_show (priv->notebook); + gtk_container_add (GTK_CONTAINER (switcher), priv->notebook); +} + +static GtkWidget * +find_notebook_child (GeditNotebookStackSwitcher *switcher, + GtkWidget *stack_child) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + GList *pages; + GList *p; + GtkWidget *ret = NULL; + + if (stack_child == NULL) + { + return NULL; + } + + pages = gtk_container_get_children (GTK_CONTAINER (priv->notebook)); + for (p = pages; p != NULL; p = p->next) + { + GtkWidget *child; + + child = g_object_get_data (p->data, "stack-child"); + if (stack_child == child) + { + ret = p->data; + break; + } + } + + g_list_free (pages); + + return ret; +} + +static void +sync_label (GeditNotebookStackSwitcher *switcher, + GtkWidget *stack_child, + GtkWidget *notebook_child) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + + if (stack_child != NULL && notebook_child != NULL) + { + gchar *title; + + gtk_widget_set_visible (notebook_child, + gtk_widget_get_visible (stack_child)); + + gtk_container_child_get (GTK_CONTAINER (priv->stack), stack_child, + "title", &title, + NULL); + + gtk_notebook_set_tab_label_text (GTK_NOTEBOOK (priv->notebook), + notebook_child, + title); + + g_free (title); + } +} + +static void +on_child_prop_changed (GtkWidget *widget, + GParamSpec *pspec, + GeditNotebookStackSwitcher *switcher) +{ + GtkWidget *nb_child; + + nb_child = find_notebook_child (switcher, widget); + sync_label (switcher, widget, nb_child); +} + +static void +on_child_changed (GtkWidget *widget, + GParamSpec *pspec, + GeditNotebookStackSwitcher *switcher) +{ + GtkNotebook *notebook; + GtkWidget *child; + GtkWidget *nb_child; + gint nb_page; + + notebook = GTK_NOTEBOOK (switcher->priv->notebook); + + child = gtk_stack_get_visible_child (GTK_STACK (widget)); + nb_child = find_notebook_child (switcher, child); + + nb_page = gtk_notebook_page_num (notebook, nb_child); + + g_signal_handlers_block_by_func (widget, on_child_prop_changed, switcher); + gtk_notebook_set_current_page (notebook, nb_page); + g_signal_handlers_unblock_by_func (widget, on_child_prop_changed, switcher); + + sync_label (switcher, child, nb_child); +} + +static void +on_stack_child_added (GtkStack *stack, + GtkWidget *widget, + GeditNotebookStackSwitcher *switcher) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + GtkWidget *dummy; + + dummy = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + g_object_set_data (G_OBJECT (dummy), "stack-child", widget); + gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), + dummy, + NULL); + + g_signal_connect (widget, "notify::visible", + G_CALLBACK (on_child_prop_changed), switcher); + g_signal_connect (widget, "child-notify::title", + G_CALLBACK (on_child_prop_changed), switcher); + + sync_label (switcher, widget, dummy); +} + +static void +on_stack_child_removed (GtkStack *stack, + GtkWidget *widget, + GeditNotebookStackSwitcher *switcher) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + GtkWidget *nb_child; + + g_signal_handlers_disconnect_by_func (widget, on_child_prop_changed, switcher); + + nb_child = find_notebook_child (switcher, widget); + gtk_container_remove (GTK_CONTAINER (priv->notebook), nb_child); +} + +static void +on_notebook_switch_page (GtkNotebook *notebook, + GtkWidget *page, + guint page_num, + GeditNotebookStackSwitcher *switcher) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + GtkWidget *child; + + child = g_object_get_data (G_OBJECT (page), "stack-child"); + + /* NOTE: we make the assumption here that if there is no visible child + * it means that the child does not contain any child already, this is + * to avoid an assertion when closing gedit, since the remove signal + * runs first on the stack handler so we try to set a visible child + * when the stack already does not handle that child + */ + if (child != NULL && gtk_stack_get_visible_child (priv->stack) != NULL) + { + gtk_stack_set_visible_child (priv->stack, child); + } +} + +static void +disconnect_signals (GeditNotebookStackSwitcher *switcher) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + + g_signal_handlers_disconnect_by_func (priv->stack, on_stack_child_added, switcher); + g_signal_handlers_disconnect_by_func (priv->stack, on_stack_child_removed, switcher); + g_signal_handlers_disconnect_by_func (priv->stack, on_child_changed, switcher); + g_signal_handlers_disconnect_by_func (priv->stack, disconnect_signals, switcher); + g_signal_handlers_disconnect_by_func (priv->notebook, on_notebook_switch_page, switcher); +} + +static void +connect_signals (GeditNotebookStackSwitcher *switcher) +{ + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + + g_signal_connect (priv->stack, "add", + G_CALLBACK (on_stack_child_added), switcher); + g_signal_connect (priv->stack, "remove", + G_CALLBACK (on_stack_child_removed), switcher); + g_signal_connect (priv->stack, "notify::visible-child", + G_CALLBACK (on_child_changed), switcher); + g_signal_connect_swapped (priv->stack, "destroy", + G_CALLBACK (disconnect_signals), switcher); + g_signal_connect (priv->notebook, "switch-page", + G_CALLBACK (on_notebook_switch_page), switcher); +} + +void +gedit_notebook_stack_switcher_set_stack (GeditNotebookStackSwitcher *switcher, + GtkStack *stack) +{ + GeditNotebookStackSwitcherPrivate *priv; + + g_return_if_fail (GEDIT_IS_NOTEBOOK_STACK_SWITCHER (switcher)); + g_return_if_fail (stack == NULL || GTK_IS_STACK (stack)); + + priv = switcher->priv; + + if (priv->stack == stack) + return; + + if (priv->stack) + { + disconnect_signals (switcher); + g_clear_object (&priv->stack); + } + + if (stack) + { + priv->stack = g_object_ref (stack); + connect_signals (switcher); + } + + g_object_notify (G_OBJECT (switcher), "stack"); +} + +GtkStack * +gedit_notebook_stack_switcher_get_stack (GeditNotebookStackSwitcher *switcher) +{ + g_return_val_if_fail (GEDIT_IS_NOTEBOOK_STACK_SWITCHER (switcher), NULL); + + return switcher->priv->stack; +} + +static void +gedit_notebook_stack_switcher_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditNotebookStackSwitcher *switcher = GEDIT_NOTEBOOK_STACK_SWITCHER (object); + GeditNotebookStackSwitcherPrivate *priv = switcher->priv; + + switch (prop_id) + { + case PROP_STACK: + g_value_set_object (value, priv->stack); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_notebook_stack_switcher_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditNotebookStackSwitcher *switcher = GEDIT_NOTEBOOK_STACK_SWITCHER (object); + + switch (prop_id) + { + case PROP_STACK: + gedit_notebook_stack_switcher_set_stack (switcher, g_value_get_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_notebook_stack_switcher_dispose (GObject *object) +{ + GeditNotebookStackSwitcher *switcher = GEDIT_NOTEBOOK_STACK_SWITCHER (object); + + gedit_notebook_stack_switcher_set_stack (switcher, NULL); + + G_OBJECT_CLASS (gedit_notebook_stack_switcher_parent_class)->dispose (object); +} + +static void +gedit_notebook_stack_switcher_class_init (GeditNotebookStackSwitcherClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->get_property = gedit_notebook_stack_switcher_get_property; + object_class->set_property = gedit_notebook_stack_switcher_set_property; + object_class->dispose = gedit_notebook_stack_switcher_dispose; + + g_object_class_install_property (object_class, + PROP_STACK, + g_param_spec_object ("stack", + "Stack", + "Stack", + GTK_TYPE_STACK, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT)); +} + +GtkWidget * +gedit_notebook_stack_switcher_new (void) +{ + return g_object_new (GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER, NULL); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-notebook-stack-switcher.h b/gedit/gedit-notebook-stack-switcher.h new file mode 100644 index 0000000..ec3f929 --- /dev/null +++ b/gedit/gedit-notebook-stack-switcher.h @@ -0,0 +1,71 @@ +/* + * gedit-notebook-stack-switcher.h + * This file is part of gedit + * + * Copyright (C) 2014 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_NOTEBOOK_STACK_SWITCHER_H +#define GEDIT_NOTEBOOK_STACK_SWITCHER_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER (gedit_notebook_stack_switcher_get_type()) +#define GEDIT_NOTEBOOK_STACK_SWITCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER, GeditNotebookStackSwitcher)) +#define GEDIT_NOTEBOOK_STACK_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER, GeditNotebookStackSwitcherClass)) +#define GEDIT_IS_NOTEBOOK_STACK_SWITCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER)) +#define GEDIT_IS_NOTEBOOK_STACK_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER)) +#define GEDIT_NOTEBOOK_STACK_SWITCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GEDIT_TYPE_NOTEBOOK_STACK_SWITCHER, GeditNotebookStackSwitcherClass)) + +typedef struct _GeditNotebookStackSwitcher GeditNotebookStackSwitcher; +typedef struct _GeditNotebookStackSwitcherClass GeditNotebookStackSwitcherClass; +typedef struct _GeditNotebookStackSwitcherPrivate GeditNotebookStackSwitcherPrivate; + +struct _GeditNotebookStackSwitcher +{ + GtkBin parent; + + /*< private >*/ + GeditNotebookStackSwitcherPrivate *priv; +}; + +struct _GeditNotebookStackSwitcherClass +{ + GtkBinClass parent_class; + + /* Padding for future expansion */ + void (*_gedit_reserved1) (void); + void (*_gedit_reserved2) (void); + void (*_gedit_reserved3) (void); + void (*_gedit_reserved4) (void); +}; + +GType gedit_notebook_stack_switcher_get_type (void) G_GNUC_CONST; + +GtkWidget *gedit_notebook_stack_switcher_new (void); + +void gedit_notebook_stack_switcher_set_stack (GeditNotebookStackSwitcher *switcher, + GtkStack *stack); + +GtkStack *gedit_notebook_stack_switcher_get_stack (GeditNotebookStackSwitcher *switcher); + +G_END_DECLS + +#endif /* GEDIT_NOTEBOOK_STACK_SWITCHER_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c new file mode 100644 index 0000000..d06dd49 --- /dev/null +++ b/gedit/gedit-notebook.c @@ -0,0 +1,672 @@ +/* + * gedit-notebook.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * Copyright (C) 2015 - Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +/* This file is a modified version of the epiphany file ephy-notebook.c + * Here the relevant copyright: + * + * Copyright (C) 2002 Christophe Fergeau + * Copyright (C) 2003 Marco Pesenti Gritti + * Copyright (C) 2003, 2004 Christian Persch + */ + +#include "gedit-notebook.h" +#include "gedit-tab-label.h" + +#define GEDIT_NOTEBOOK_GROUP_NAME "GeditNotebookGroup" + +/* The DND targets defined in GeditView start at 100. + * Those defined in GtkSourceView start at 200. + */ +#define TARGET_TAB 150 + +struct _GeditNotebookPrivate +{ + /* History of focused pages. The first element contains the most recent + * one. + */ + GList *focused_pages; + + guint ignore_focused_page_update : 1; +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditNotebook, gedit_notebook, GTK_TYPE_NOTEBOOK) + +enum +{ + TAB_CLOSE_REQUEST, + SHOW_POPUP_MENU, + CHANGE_TO_PAGE, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL] = { 0 }; + +static void +gedit_notebook_finalize (GObject *object) +{ + GeditNotebook *notebook = GEDIT_NOTEBOOK (object); + + g_list_free (notebook->priv->focused_pages); + + G_OBJECT_CLASS (gedit_notebook_parent_class)->finalize (object); +} + +static void +gedit_notebook_grab_focus (GtkWidget *widget) +{ + GtkNotebook *notebook = GTK_NOTEBOOK (widget); + gint current_page; + GtkWidget *tab; + + current_page = gtk_notebook_get_current_page (notebook); + tab = gtk_notebook_get_nth_page (notebook, current_page); + + if (tab != NULL) + { + gtk_widget_grab_focus (tab); + } +} + +static gint +find_tab_num_at_pos (GtkNotebook *notebook, + gint screen_x, + gint screen_y) +{ + GtkPositionType tab_pos; + GtkAllocation tab_allocation; + gint page_num; + + tab_pos = gtk_notebook_get_tab_pos (notebook); + + for (page_num = 0; ; page_num++) + { + GtkWidget *page; + GtkWidget *tab_label; + gint max_x, max_y, x_root, y_root; + + page = gtk_notebook_get_nth_page (notebook, page_num); + + if (page == NULL) + { + break; + } + + tab_label = gtk_notebook_get_tab_label (notebook, page); + g_return_val_if_fail (tab_label != NULL, -1); + + if (!gtk_widget_get_mapped (tab_label)) + { + continue; + } + + gdk_window_get_origin (gtk_widget_get_window (tab_label), &x_root, &y_root); + + gtk_widget_get_allocation (tab_label, &tab_allocation); + max_x = x_root + tab_allocation.x + tab_allocation.width; + max_y = y_root + tab_allocation.y + tab_allocation.height; + + if ((tab_pos == GTK_POS_TOP || tab_pos == GTK_POS_BOTTOM) && + screen_x <= max_x) + { + return page_num; + } + + if ((tab_pos == GTK_POS_LEFT || tab_pos == GTK_POS_RIGHT) && + screen_y <= max_y) + { + return page_num; + } + } + + return -1; +} + +static gboolean +gedit_notebook_button_press_event (GtkWidget *widget, + GdkEventButton *event) +{ + GtkNotebook *notebook = GTK_NOTEBOOK (widget); + + if (event->type == GDK_BUTTON_PRESS && + (event->state & gtk_accelerator_get_default_mod_mask ()) == 0) + { + gint tab_clicked; + + tab_clicked = find_tab_num_at_pos (notebook, event->x_root, event->y_root); + if (tab_clicked >= 0) + { + GtkWidget *tab; + + tab = gtk_notebook_get_nth_page (notebook, tab_clicked); + switch (event->button) + { + case GDK_BUTTON_SECONDARY: + g_signal_emit (G_OBJECT (widget), signals[SHOW_POPUP_MENU], 0, event, tab); + return GDK_EVENT_STOP; + + case GDK_BUTTON_MIDDLE: + g_signal_emit (G_OBJECT (notebook), signals[TAB_CLOSE_REQUEST], 0, tab); + return GDK_EVENT_STOP; + + default: + break; + } + } + } + + return GTK_WIDGET_CLASS (gedit_notebook_parent_class)->button_press_event (widget, event); +} + +/* + * We need to override this because when we don't show the tabs, like in + * fullscreen we need to have wrap around too + */ +static gboolean +gedit_notebook_change_current_page (GtkNotebook *notebook, + gint offset) +{ + gint current; + + current = gtk_notebook_get_current_page (notebook); + + if (current != -1) + { + gint target; + gboolean wrap_around; + + target = current + offset; + + g_object_get (gtk_widget_get_settings (GTK_WIDGET (notebook)), + "gtk-keynav-wrap-around", &wrap_around, + NULL); + + if (wrap_around) + { + if (target < 0) + { + target = gtk_notebook_get_n_pages (notebook) - 1; + } + else if (target >= gtk_notebook_get_n_pages (notebook)) + { + target = 0; + } + } + + gtk_notebook_set_current_page (notebook, target); + } + else + { + gtk_widget_error_bell (GTK_WIDGET (notebook)); + } + + return TRUE; +} + +static void +gedit_notebook_switch_page (GtkNotebook *notebook, + GtkWidget *page, + guint page_num) +{ + GeditNotebookPrivate *priv = GEDIT_NOTEBOOK (notebook)->priv; + + GTK_NOTEBOOK_CLASS (gedit_notebook_parent_class)->switch_page (notebook, page, page_num); + + if (!priv->ignore_focused_page_update) + { + gint page_num; + + /* Get again page_num and page, the signal handler may have + * changed them. + */ + page_num = gtk_notebook_get_current_page (notebook); + if (page_num != -1) + { + GtkWidget *page = gtk_notebook_get_nth_page (notebook, page_num); + g_assert (page != NULL); + + /* Remove the old page, we dont want to grow unnecessarily + * the list. + */ + priv->focused_pages = g_list_remove (priv->focused_pages, page); + + priv->focused_pages = g_list_prepend (priv->focused_pages, page); + } + } + + /* give focus to the tab */ + gtk_widget_grab_focus (page); +} + +static void +close_button_clicked_cb (GeditTabLabel *tab_label, + GeditNotebook *notebook) +{ + GeditTab *tab; + + tab = gedit_tab_label_get_tab (tab_label); + g_signal_emit (notebook, signals[TAB_CLOSE_REQUEST], 0, tab); +} + +static void +switch_to_last_focused_page (GeditNotebook *notebook, + GeditTab *tab) +{ + if (notebook->priv->focused_pages != NULL) + { + GList *node; + GtkWidget *page; + gint page_num; + + node = notebook->priv->focused_pages; + page = GTK_WIDGET (node->data); + + page_num = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), page); + g_return_if_fail (page_num != -1); + + gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), page_num); + } +} + +static void +drag_data_received_cb (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + GtkSelectionData *selection_data, + guint info, + guint timestamp) +{ + GtkWidget *notebook; + GtkWidget *new_notebook; + GtkWidget *page; + + if (info != TARGET_TAB) + { + return; + } + + notebook = gtk_drag_get_source_widget (context); + + if (!GTK_IS_WIDGET (notebook)) + { + return; + } + + page = *(GtkWidget **) gtk_selection_data_get_data (selection_data); + g_return_if_fail (page != NULL); + + /* We need to iterate and get the notebook of the target view + * because we can have several notebooks per window. + */ + new_notebook = gtk_widget_get_ancestor (widget, GEDIT_TYPE_NOTEBOOK); + g_return_if_fail (new_notebook != NULL); + + if (notebook != new_notebook) + { + gedit_notebook_move_tab (GEDIT_NOTEBOOK (notebook), + GEDIT_NOTEBOOK (new_notebook), + GEDIT_TAB (page), + 0); + } + + gtk_drag_finish (context, TRUE, TRUE, timestamp); +} + +static void +gedit_notebook_page_removed (GtkNotebook *notebook, + GtkWidget *page, + guint page_num) +{ + GeditNotebookPrivate *priv = GEDIT_NOTEBOOK (notebook)->priv; + gboolean current_page; + + /* The page removed was the current page. */ + current_page = (priv->focused_pages != NULL && + priv->focused_pages->data == page); + + priv->focused_pages = g_list_remove (priv->focused_pages, page); + + if (current_page) + { + switch_to_last_focused_page (GEDIT_NOTEBOOK (notebook), + GEDIT_TAB (page)); + } +} + +static void +gedit_notebook_page_added (GtkNotebook *notebook, + GtkWidget *page, + guint page_num) +{ + GtkWidget *tab_label; + GeditView *view; + + g_return_if_fail (GEDIT_IS_TAB (page)); + + tab_label = gtk_notebook_get_tab_label (notebook, page); + g_return_if_fail (GEDIT_IS_TAB_LABEL (tab_label)); + + /* For a DND from one notebook to another, the same tab_label can be + * used, so we need to connect the signal here. + * More precisely, the same tab_label is used when the drop zone is in + * the tab labels (not the GeditView), that is, when the DND is handled + * by the GtkNotebook implementation. + */ + g_signal_connect (tab_label, + "close-clicked", + G_CALLBACK (close_button_clicked_cb), + notebook); + + view = gedit_tab_get_view (GEDIT_TAB (page)); + g_signal_connect (view, + "drag-data-received", + G_CALLBACK (drag_data_received_cb), + NULL); +} + +static void +gedit_notebook_remove (GtkContainer *container, + GtkWidget *widget) +{ + GtkNotebook *notebook = GTK_NOTEBOOK (container); + GeditNotebookPrivate *priv = GEDIT_NOTEBOOK (container)->priv; + GtkWidget *tab_label; + GeditView *view; + + g_return_if_fail (GEDIT_IS_TAB (widget)); + + tab_label = gtk_notebook_get_tab_label (notebook, widget); + g_return_if_fail (GEDIT_IS_TAB_LABEL (tab_label)); + + /* For a DND from one notebook to another, the same tab_label can be + * used, so we need to disconnect the signal. + */ + g_signal_handlers_disconnect_by_func (tab_label, + G_CALLBACK (close_button_clicked_cb), + notebook); + + view = gedit_tab_get_view (GEDIT_TAB (widget)); + g_signal_handlers_disconnect_by_func (view, drag_data_received_cb, NULL); + + /* This is where GtkNotebook will remove the page. By doing so, it + * will also switch to a new page, messing up our focus list. So we + * set a flag here to ignore the switch temporarily. + */ + priv->ignore_focused_page_update = TRUE; + + if (GTK_CONTAINER_CLASS (gedit_notebook_parent_class)->remove != NULL) + { + GTK_CONTAINER_CLASS (gedit_notebook_parent_class)->remove (container, + widget); + } + + priv->ignore_focused_page_update = FALSE; +} + +static gboolean +gedit_notebook_change_to_page (GeditNotebook *notebook, + gint page_num) +{ + gint n_pages; + + n_pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)); + + if (page_num >= n_pages) + { + return FALSE; + } + + gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), + page_num); + + return TRUE; +} + +static void +gedit_notebook_class_init (GeditNotebookClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass); + GtkNotebookClass *notebook_class = GTK_NOTEBOOK_CLASS (klass); + GtkBindingSet *binding_set; + gint i; + + object_class->finalize = gedit_notebook_finalize; + + widget_class->grab_focus = gedit_notebook_grab_focus; + widget_class->button_press_event = gedit_notebook_button_press_event; + + container_class->remove = gedit_notebook_remove; + + notebook_class->change_current_page = gedit_notebook_change_current_page; + notebook_class->switch_page = gedit_notebook_switch_page; + notebook_class->page_removed = gedit_notebook_page_removed; + notebook_class->page_added = gedit_notebook_page_added; + + klass->change_to_page = gedit_notebook_change_to_page; + + signals[TAB_CLOSE_REQUEST] = + g_signal_new ("tab-close-request", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditNotebookClass, tab_close_request), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_TAB); + + signals[SHOW_POPUP_MENU] = + g_signal_new ("show-popup-menu", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditNotebookClass, show_popup_menu), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE, + GEDIT_TYPE_TAB); + + signals[CHANGE_TO_PAGE] = + g_signal_new ("change-to-page", + G_TYPE_FROM_CLASS (object_class), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_STRUCT_OFFSET (GeditNotebookClass, change_to_page), + NULL, NULL, NULL, + G_TYPE_BOOLEAN, 1, + G_TYPE_INT); + + binding_set = gtk_binding_set_by_class (klass); + for (i = 1; i < 10; i++) + { + gtk_binding_entry_add_signal (binding_set, + GDK_KEY_0 + i, GDK_MOD1_MASK, + "change-to-page", 1, + G_TYPE_INT, i - 1); + } +} + +/** + * gedit_notebook_new: + * + * Creates a new #GeditNotebook object. + * + * Returns: a new #GeditNotebook + */ +GtkWidget * +gedit_notebook_new (void) +{ + return GTK_WIDGET (g_object_new (GEDIT_TYPE_NOTEBOOK, NULL)); +} + +static void +gedit_notebook_init (GeditNotebook *notebook) +{ + notebook->priv = gedit_notebook_get_instance_private (notebook); + + gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE); + gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE); + gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), TRUE); + gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook), + GEDIT_NOTEBOOK_GROUP_NAME); + gtk_container_set_border_width (GTK_CONTAINER (notebook), 0); +} + +/** + * gedit_notebook_add_tab: + * @notebook: a #GeditNotebook + * @tab: a #GeditTab + * @position: the position where the @tab should be added + * @jump_to: %TRUE to set the @tab as active + * + * Adds the specified @tab to the @notebook. + */ +void +gedit_notebook_add_tab (GeditNotebook *notebook, + GeditTab *tab, + gint position, + gboolean jump_to) +{ + GtkWidget *tab_label; + GeditView *view; + GtkTargetList *target_list; + + g_return_if_fail (GEDIT_IS_NOTEBOOK (notebook)); + g_return_if_fail (GEDIT_IS_TAB (tab)); + + tab_label = gedit_tab_label_new (tab); + + gtk_notebook_insert_page (GTK_NOTEBOOK (notebook), + GTK_WIDGET (tab), + tab_label, + position); + + gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (notebook), + GTK_WIDGET (tab), + TRUE); + + gtk_notebook_set_tab_detachable (GTK_NOTEBOOK (notebook), + GTK_WIDGET (tab), + TRUE); + + gtk_container_child_set (GTK_CONTAINER (notebook), + GTK_WIDGET (tab), + "tab-expand", TRUE, + NULL); + + /* Drag and drop support: move a tab to another notebook, with the drop + * zone in the GeditView. The drop zone in the tab labels is already + * implemented by GtkNotebook. + */ + view = gedit_tab_get_view (tab); + target_list = gtk_drag_dest_get_target_list (GTK_WIDGET (view)); + + if (target_list != NULL) + { + gtk_target_list_add (target_list, + gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB"), + GTK_TARGET_SAME_APP, + TARGET_TAB); + } + + /* The signal handler may have reordered the tabs */ + position = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), + GTK_WIDGET (tab)); + + if (jump_to) + { + gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), position); + gtk_widget_grab_focus (GTK_WIDGET (tab)); + } +} + +/** + * gedit_notebook_move_tab: + * @src: a #GeditNotebook + * @dest: a #GeditNotebook + * @tab: a #GeditTab + * @dest_position: the position for @tab + * + * Moves @tab from @src to @dest. + * If @dest_position is greater than or equal to the number of tabs + * of the destination nootebook or negative, tab will be moved to the + * end of the tabs. + */ +void +gedit_notebook_move_tab (GeditNotebook *src, + GeditNotebook *dest, + GeditTab *tab, + gint dest_position) +{ + g_return_if_fail (GEDIT_IS_NOTEBOOK (src)); + g_return_if_fail (GEDIT_IS_NOTEBOOK (dest)); + g_return_if_fail (src != dest); + g_return_if_fail (GEDIT_IS_TAB (tab)); + + /* Make sure the tab isn't destroyed while we move it. */ + g_object_ref (tab); + + /* Make sure the @src notebook isn't destroyed during the tab + * detachment, to prevent a crash in gtk_notebook_detach_tab(). In fact, + * if @tab is the last tab of @src, and if @src is not the last notebook + * of the GeditMultiNotebook, then @src will be destroyed when + * gtk_container_remove() is called by gtk_notebook_detach_tab(). + */ + g_object_ref (src); + gtk_notebook_detach_tab (GTK_NOTEBOOK (src), GTK_WIDGET (tab)); + g_object_unref (src); + + gedit_notebook_add_tab (dest, tab, dest_position, TRUE); + + g_object_unref (tab); +} + +/** + * gedit_notebook_remove_all_tabs: + * @notebook: a #GeditNotebook + * + * Removes all #GeditTab from @notebook. + */ +void +gedit_notebook_remove_all_tabs (GeditNotebook *notebook) +{ + GList *tabs; + GList *t; + + g_return_if_fail (GEDIT_IS_NOTEBOOK (notebook)); + + g_list_free (notebook->priv->focused_pages); + notebook->priv->focused_pages = NULL; + + /* Remove tabs in reverse order since it is faster + * due to how GtkNotebook works. + */ + tabs = gtk_container_get_children (GTK_CONTAINER (notebook)); + for (t = g_list_last (tabs); t != NULL; t = t->prev) + { + GtkWidget *tab = t->data; + gtk_container_remove (GTK_CONTAINER (notebook), tab); + } + + g_list_free (tabs); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-notebook.h b/gedit/gedit-notebook.h new file mode 100644 index 0000000..e4a3e6b --- /dev/null +++ b/gedit/gedit-notebook.h @@ -0,0 +1,100 @@ +/* + * gedit-notebook.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +/* This file is a modified version of the epiphany file ephy-notebook.h + * Here the relevant copyright: + * + * Copyright (C) 2002 Christophe Fergeau + * Copyright (C) 2003 Marco Pesenti Gritti + * Copyright (C) 2003, 2004 Christian Persch + * + */ + +#ifndef GEDIT_NOTEBOOK_H +#define GEDIT_NOTEBOOK_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_NOTEBOOK (gedit_notebook_get_type ()) +#define GEDIT_NOTEBOOK(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_NOTEBOOK, GeditNotebook)) +#define GEDIT_NOTEBOOK_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_NOTEBOOK, GeditNotebookClass)) +#define GEDIT_IS_NOTEBOOK(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_NOTEBOOK)) +#define GEDIT_IS_NOTEBOOK_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_NOTEBOOK)) +#define GEDIT_NOTEBOOK_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_NOTEBOOK, GeditNotebookClass)) + +typedef struct _GeditNotebook GeditNotebook; +typedef struct _GeditNotebookClass GeditNotebookClass; +typedef struct _GeditNotebookPrivate GeditNotebookPrivate; + +/* This is now used in multi-notebook but we keep the same enum for + * backward compatibility since it is used in the gsettings schema */ +typedef enum +{ + GEDIT_NOTEBOOK_SHOW_TABS_NEVER, + GEDIT_NOTEBOOK_SHOW_TABS_AUTO, + GEDIT_NOTEBOOK_SHOW_TABS_ALWAYS +} GeditNotebookShowTabsModeType; + +struct _GeditNotebook +{ + GtkNotebook notebook; + + /*< private >*/ + GeditNotebookPrivate *priv; +}; + +struct _GeditNotebookClass +{ + GtkNotebookClass parent_class; + + /* Signals */ + void (* tab_close_request) (GeditNotebook *notebook, + GeditTab *tab); + void (* show_popup_menu) (GeditNotebook *notebook, + GdkEvent *event, + GeditTab *tab); + gboolean(* change_to_page) (GeditNotebook *notebook, + gint page_num); +}; + +GType gedit_notebook_get_type (void) G_GNUC_CONST; + +GtkWidget *gedit_notebook_new (void); + +void gedit_notebook_add_tab (GeditNotebook *nb, + GeditTab *tab, + gint position, + gboolean jump_to); + +void gedit_notebook_move_tab (GeditNotebook *src, + GeditNotebook *dest, + GeditTab *tab, + gint dest_position); + +void gedit_notebook_remove_all_tabs (GeditNotebook *nb); + +G_END_DECLS + +#endif /* GEDIT_NOTEBOOK_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-pango.c b/gedit/gedit-pango.c new file mode 100644 index 0000000..149d657 --- /dev/null +++ b/gedit/gedit-pango.c @@ -0,0 +1,204 @@ +/* gedit-pango.c + * + * This file is a copy of libdazzle dzl-pango.c + * + * Copyright (C) 2014-2017 Christian Hergert + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#define G_LOG_DOMAIN "gedit-pango" + +#include "config.h" + +#include +#include +#include + +#include "gedit-pango.h" + +#define FONT_FAMILY "font-family" +#define FONT_VARIANT "font-variant" +#define FONT_STRETCH "font-stretch" +#define FONT_WEIGHT "font-weight" +#define FONT_SIZE "font-size" + +/** + * gedit_pango_font_description_to_css: + * + * This function will generate CSS suitable for Gtk's CSS engine + * based on the properties of the #PangoFontDescription. + * + * Returns: (transfer full): A newly allocated string containing the + * CSS describing the font description. + */ +gchar * +gedit_pango_font_description_to_css (const PangoFontDescription *font_desc) +{ + PangoFontMask mask; + GString *str; + +#define ADD_KEYVAL(key,fmt) \ + g_string_append(str,key":"fmt";") +#define ADD_KEYVAL_PRINTF(key,fmt,...) \ + g_string_append_printf(str,key":"fmt";", __VA_ARGS__) + + g_return_val_if_fail (font_desc, NULL); + + str = g_string_new (NULL); + + mask = pango_font_description_get_set_fields (font_desc); + + if ((mask & PANGO_FONT_MASK_FAMILY) != 0) + { + const gchar *family; + + family = pango_font_description_get_family (font_desc); + ADD_KEYVAL_PRINTF (FONT_FAMILY, "\"%s\"", family); + } + + if ((mask & PANGO_FONT_MASK_STYLE) != 0) + { + PangoVariant variant; + + variant = pango_font_description_get_variant (font_desc); + + switch (variant) + { + case PANGO_VARIANT_NORMAL: + ADD_KEYVAL (FONT_VARIANT, "normal"); + break; + + case PANGO_VARIANT_SMALL_CAPS: + ADD_KEYVAL (FONT_VARIANT, "small-caps"); + break; + + default: + break; + } + } + + if ((mask & PANGO_FONT_MASK_WEIGHT)) + { + gint weight; + + weight = pango_font_description_get_weight (font_desc); + + /* + * WORKAROUND: + * + * font-weight with numbers does not appear to be working as expected + * right now. So for the common (bold/normal), let's just use the string + * and let gtk warn for the other values, which shouldn't really be + * used for this. + */ + + switch (weight) + { + case PANGO_WEIGHT_SEMILIGHT: + /* + * 350 is not actually a valid css font-weight, so we will just round + * up to 400. + */ + case PANGO_WEIGHT_NORMAL: + ADD_KEYVAL (FONT_WEIGHT, "normal"); + break; + + case PANGO_WEIGHT_BOLD: + ADD_KEYVAL (FONT_WEIGHT, "bold"); + break; + + case PANGO_WEIGHT_THIN: + case PANGO_WEIGHT_ULTRALIGHT: + case PANGO_WEIGHT_LIGHT: + case PANGO_WEIGHT_BOOK: + case PANGO_WEIGHT_MEDIUM: + case PANGO_WEIGHT_SEMIBOLD: + case PANGO_WEIGHT_ULTRABOLD: + case PANGO_WEIGHT_HEAVY: + case PANGO_WEIGHT_ULTRAHEAVY: + default: + /* round to nearest hundred */ + weight = round (weight / 100.0) * 100; + ADD_KEYVAL_PRINTF ("font-weight", "%d", weight); + break; + } + } + +#ifndef GDK_WINDOWING_QUARTZ + /* + * We seem to get "Condensed" for fonts on the Quartz backend, + * which is rather annoying as it results in us always hitting + * fallback (stretch) paths. So let's cheat and just disable + * stretch support for now on Quartz. + */ + if ((mask & PANGO_FONT_MASK_STRETCH)) + { + switch (pango_font_description_get_stretch (font_desc)) + { + case PANGO_STRETCH_ULTRA_CONDENSED: + ADD_KEYVAL (FONT_STRETCH, "untra-condensed"); + break; + + case PANGO_STRETCH_EXTRA_CONDENSED: + ADD_KEYVAL (FONT_STRETCH, "extra-condensed"); + break; + + case PANGO_STRETCH_CONDENSED: + ADD_KEYVAL (FONT_STRETCH, "condensed"); + break; + + case PANGO_STRETCH_SEMI_CONDENSED: + ADD_KEYVAL (FONT_STRETCH, "semi-condensed"); + break; + + case PANGO_STRETCH_NORMAL: + ADD_KEYVAL (FONT_STRETCH, "normal"); + break; + + case PANGO_STRETCH_SEMI_EXPANDED: + ADD_KEYVAL (FONT_STRETCH, "semi-expanded"); + break; + + case PANGO_STRETCH_EXPANDED: + ADD_KEYVAL (FONT_STRETCH, "expanded"); + break; + + case PANGO_STRETCH_EXTRA_EXPANDED: + ADD_KEYVAL (FONT_STRETCH, "extra-expanded"); + break; + + case PANGO_STRETCH_ULTRA_EXPANDED: + ADD_KEYVAL (FONT_STRETCH, "untra-expanded"); + break; + + default: + break; + } + } +#endif + + if ((mask & PANGO_FONT_MASK_SIZE)) + { + gint font_size; + + font_size = pango_font_description_get_size (font_desc) / PANGO_SCALE; + ADD_KEYVAL_PRINTF ("font-size", "%dpt", font_size); + } + + return g_string_free (str, FALSE); + +#undef ADD_KEYVAL +#undef ADD_KEYVAL_PRINTF +} diff --git a/gedit/gedit-pango.h b/gedit/gedit-pango.h new file mode 100644 index 0000000..022edc5 --- /dev/null +++ b/gedit/gedit-pango.h @@ -0,0 +1,32 @@ +/* gedit-pango.h + * + * This file is a copy of libdazzle dzl-pango.h + * + * Copyright (C) 2014 Christian Hergert + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef GEDIT_PANGO_H +#define GEDIT_PANGO_H + +#include + +G_BEGIN_DECLS + +gchar *gedit_pango_font_description_to_css (const PangoFontDescription *font_desc); + +G_END_DECLS + +#endif /* GEDIT_PANGO_H */ diff --git a/gedit/gedit-plugins-engine.c b/gedit/gedit-plugins-engine.c new file mode 100644 index 0000000..28e6096 --- /dev/null +++ b/gedit/gedit-plugins-engine.c @@ -0,0 +1,136 @@ +/* + * gedit-plugins-engine.c + * This file is part of gedit + * + * Copyright (C) 2002-2005 Paolo Maggi + * Copyright (C) 2010 Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-plugins-engine.h" + +#include +#include +#include +#include "gedit-debug.h" +#include "gedit-dirs.h" +#include "gedit-settings.h" + +struct _GeditPluginsEngine +{ + PeasEngine parent_instance; + + GSettings *plugin_settings; +}; + +G_DEFINE_TYPE (GeditPluginsEngine, gedit_plugins_engine, PEAS_TYPE_ENGINE) + +static GeditPluginsEngine *default_engine = NULL; + +static void +gedit_plugins_engine_init (GeditPluginsEngine *engine) +{ + gchar *typelib_dir; + GError *error = NULL; + + gedit_debug (DEBUG_PLUGINS); + + peas_engine_enable_loader (PEAS_ENGINE (engine), "python3"); + + engine->plugin_settings = g_settings_new ("org.gnome.gedit.plugins"); + + /* Require gedit's typelib. */ + typelib_dir = g_build_filename (gedit_dirs_get_gedit_lib_dir (), + "girepository-1.0", + NULL); + + if (!g_irepository_require_private (g_irepository_get_default (), + typelib_dir, "Gedit", "3.0", 0, &error)) + { + g_warning ("Could not load Gedit repository: %s", error->message); + g_error_free (error); + error = NULL; + } + + g_free (typelib_dir); + + /* This should be moved to libpeas */ + if (!g_irepository_require (g_irepository_get_default (), + "Peas", "1.0", 0, &error)) + { + g_warning ("Could not load Peas repository: %s", error->message); + g_error_free (error); + error = NULL; + } + + if (!g_irepository_require (g_irepository_get_default (), + "PeasGtk", "1.0", 0, &error)) + { + g_warning ("Could not load PeasGtk repository: %s", error->message); + g_error_free (error); + error = NULL; + } + + peas_engine_add_search_path (PEAS_ENGINE (engine), + gedit_dirs_get_user_plugins_dir (), + gedit_dirs_get_user_plugins_dir ()); + + peas_engine_add_search_path (PEAS_ENGINE (engine), + gedit_dirs_get_gedit_plugins_dir (), + gedit_dirs_get_gedit_plugins_data_dir ()); + + g_settings_bind (engine->plugin_settings, + GEDIT_SETTINGS_ACTIVE_PLUGINS, + engine, + "loaded-plugins", + G_SETTINGS_BIND_DEFAULT); +} + +static void +gedit_plugins_engine_dispose (GObject *object) +{ + GeditPluginsEngine *engine = GEDIT_PLUGINS_ENGINE (object); + + g_clear_object (&engine->plugin_settings); + + G_OBJECT_CLASS (gedit_plugins_engine_parent_class)->dispose (object); +} + +static void +gedit_plugins_engine_class_init (GeditPluginsEngineClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_plugins_engine_dispose; +} + +GeditPluginsEngine * +gedit_plugins_engine_get_default (void) +{ + if (default_engine == NULL) + { + default_engine = GEDIT_PLUGINS_ENGINE (g_object_new (GEDIT_TYPE_PLUGINS_ENGINE, + NULL)); + + g_object_add_weak_pointer (G_OBJECT (default_engine), + (gpointer) &default_engine); + } + + return default_engine; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-plugins-engine.h b/gedit/gedit-plugins-engine.h new file mode 100644 index 0000000..124937b --- /dev/null +++ b/gedit/gedit-plugins-engine.h @@ -0,0 +1,39 @@ +/* + * gedit-plugins-engine.h + * This file is part of gedit + * + * Copyright (C) 2002-2005 - Paolo Maggi + * Copyright (C) 2010 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_PLUGINS_ENGINE_H +#define GEDIT_PLUGINS_ENGINE_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_PLUGINS_ENGINE (gedit_plugins_engine_get_type ()) +G_DECLARE_FINAL_TYPE(GeditPluginsEngine, gedit_plugins_engine, GEDIT, PLUGINS_ENGINE, PeasEngine) + +GeditPluginsEngine *gedit_plugins_engine_get_default (void); + +G_END_DECLS + +#endif /* GEDIT_PLUGINS_ENGINE_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-preferences-dialog.c b/gedit/gedit-preferences-dialog.c new file mode 100644 index 0000000..ce6c0e2 --- /dev/null +++ b/gedit/gedit-preferences-dialog.c @@ -0,0 +1,873 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * gedit-preferences-dialog.c + * This file is part of gedit + * + * Copyright (C) 2001-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-preferences-dialog.h" + +#include +#include +#include +#include + +#include "gedit-debug.h" +#include "gedit-dirs.h" +#include "gedit-settings.h" + +/* + * gedit-preferences dialog is a singleton since we don't + * want two dialogs showing an inconsistent state of the + * preferences. + * When gedit_show_preferences_dialog is called and there + * is already a prefs dialog dialog open, it is reparented + * and shown. + */ + +static GtkWidget *preferences_dialog = NULL; + +#define GEDIT_SCHEME_ROW_ID_KEY "gedit-scheme-row-id" + +#define GEDIT_TYPE_PREFERENCES_DIALOG (gedit_preferences_dialog_get_type()) + +G_DECLARE_FINAL_TYPE (GeditPreferencesDialog, gedit_preferences_dialog, GEDIT, PREFERENCES_DIALOG, GtkWindow) + +enum +{ + ID_COLUMN = 0, + NAME_COLUMN, + DESC_COLUMN, + NUM_COLUMNS +}; + +enum +{ + CLOSE, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +struct _GeditPreferencesDialog +{ + GtkWindow parent_instance; + + GSettings *editor; + GSettings *uisettings; /* unfortunately our settings are split for historical reasons */ + + GtkWidget *notebook; + + /* Font */ + GtkWidget *default_font_checkbutton; + GtkWidget *font_button; + GtkWidget *font_grid; + + /* Style Scheme */ + GtkWidget *schemes_list; + GtkWidget *install_scheme_button; + GtkWidget *uninstall_scheme_button; + GtkWidget *schemes_toolbar; + GtkFileChooserNative * + install_scheme_file_chooser; + + /* Tabs */ + GtkWidget *tabs_width_spinbutton; + GtkWidget *insert_spaces_checkbutton; + + /* Auto indentation */ + GtkWidget *auto_indent_checkbutton; + + /* Text Wrapping */ + GtkWidget *wrap_text_checkbutton; + GtkWidget *split_checkbutton; + + /* File Saving */ + GtkWidget *backup_copy_checkbutton; + GtkWidget *auto_save_checkbutton; + GtkWidget *auto_save_spinbutton; + + GtkWidget *display_line_numbers_checkbutton; + GtkWidget *display_statusbar_checkbutton; + GtkWidget *display_grid_checkbutton; + + /* Right margin */ + GtkWidget *right_margin_checkbutton; + GtkWidget *right_margin_position_grid; + GtkWidget *right_margin_position_spinbutton; + + /* Highlighting */ + GtkWidget *highlight_current_line_checkbutton; + GtkWidget *bracket_matching_checkbutton; + + /* Plugin manager */ + GtkWidget *plugin_manager; +}; + +G_DEFINE_TYPE (GeditPreferencesDialog, gedit_preferences_dialog, GTK_TYPE_WINDOW) + +static void +gedit_preferences_dialog_dispose (GObject *object) +{ + GeditPreferencesDialog *dlg = GEDIT_PREFERENCES_DIALOG (object); + + g_clear_object (&dlg->editor); + g_clear_object (&dlg->uisettings); + + G_OBJECT_CLASS (gedit_preferences_dialog_parent_class)->dispose (object); +} + +static void +gedit_preferences_dialog_close (GeditPreferencesDialog *dialog) +{ + gtk_window_close (GTK_WINDOW (dialog)); +} + +static void +gedit_preferences_dialog_class_init (GeditPreferencesDialogClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkBindingSet *binding_set; + + /* Otherwise libpeas-gtk might not be linked */ + g_type_ensure (PEAS_GTK_TYPE_PLUGIN_MANAGER); + + object_class->dispose = gedit_preferences_dialog_dispose; + + signals[CLOSE] = + g_signal_new_class_handler ("close", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_CALLBACK (gedit_preferences_dialog_close), + NULL, NULL, NULL, + G_TYPE_NONE, + 0); + + binding_set = gtk_binding_set_by_class (klass); + gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0, "close", 0); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-preferences-dialog.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, notebook); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, display_line_numbers_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, display_statusbar_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, display_grid_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, right_margin_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, right_margin_position_grid); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, right_margin_position_spinbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, highlight_current_line_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, bracket_matching_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, wrap_text_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, split_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, tabs_width_spinbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, insert_spaces_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, auto_indent_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, backup_copy_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, auto_save_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, auto_save_spinbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, default_font_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, font_button); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, font_grid); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, schemes_list); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, install_scheme_button); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, uninstall_scheme_button); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, schemes_toolbar); + gtk_widget_class_bind_template_child (widget_class, GeditPreferencesDialog, plugin_manager); +} + +static void +setup_editor_page (GeditPreferencesDialog *dlg) +{ + gedit_debug (DEBUG_PREFS); + + /* Connect signal */ + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_TABS_SIZE, + dlg->tabs_width_spinbutton, + "value", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_INSERT_SPACES, + dlg->insert_spaces_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_AUTO_INDENT, + dlg->auto_indent_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_CREATE_BACKUP_COPY, + dlg->backup_copy_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_BRACKET_MATCHING, + dlg->bracket_matching_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_AUTO_SAVE_INTERVAL, + dlg->auto_save_spinbutton, + "value", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_AUTO_SAVE, + dlg->auto_save_spinbutton, + "sensitive", + G_SETTINGS_BIND_GET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_AUTO_SAVE, + dlg->auto_save_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); +} + +static void +wrap_mode_checkbutton_toggled (GtkToggleButton *button, + GeditPreferencesDialog *dlg) +{ + GtkWrapMode mode; + + if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dlg->wrap_text_checkbutton))) + { + mode = GTK_WRAP_NONE; + + gtk_widget_set_sensitive (dlg->split_checkbutton, + FALSE); + gtk_toggle_button_set_inconsistent ( + GTK_TOGGLE_BUTTON (dlg->split_checkbutton), TRUE); + } + else + { + gtk_widget_set_sensitive (dlg->split_checkbutton, + TRUE); + + gtk_toggle_button_set_inconsistent ( + GTK_TOGGLE_BUTTON (dlg->split_checkbutton), FALSE); + + + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dlg->split_checkbutton))) + { + g_settings_set_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE, + GTK_WRAP_WORD); + + mode = GTK_WRAP_WORD; + } + else + { + g_settings_set_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE, + GTK_WRAP_CHAR); + + mode = GTK_WRAP_CHAR; + } + } + + g_settings_set_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_MODE, + mode); +} + +static void +grid_checkbutton_toggled (GtkToggleButton *button, + GeditPreferencesDialog *dlg) +{ + GtkSourceBackgroundPatternType background_type; + + background_type = gtk_toggle_button_get_active (button) ? + GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID : + GTK_SOURCE_BACKGROUND_PATTERN_TYPE_NONE; + g_settings_set_enum (dlg->editor, + GEDIT_SETTINGS_BACKGROUND_PATTERN, + background_type); +} + +static void +setup_view_page (GeditPreferencesDialog *dlg) +{ + GtkWrapMode wrap_mode; + GtkWrapMode last_split_mode; + GtkSourceBackgroundPatternType background_pattern; + gboolean display_right_margin; + guint right_margin_position; + + gedit_debug (DEBUG_PREFS); + + /* Get values */ + display_right_margin = g_settings_get_boolean (dlg->editor, + GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN); + g_settings_get (dlg->editor, GEDIT_SETTINGS_RIGHT_MARGIN_POSITION, + "u", &right_margin_position); + background_pattern = g_settings_get_enum (dlg->editor, + GEDIT_SETTINGS_BACKGROUND_PATTERN); + + wrap_mode = g_settings_get_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_MODE); + + /* Set initial state */ + switch (wrap_mode) + { + case GTK_WRAP_WORD: + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->wrap_text_checkbutton), TRUE); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->split_checkbutton), TRUE); + + g_settings_set_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE, + GTK_WRAP_WORD); + break; + case GTK_WRAP_CHAR: + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->wrap_text_checkbutton), TRUE); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->split_checkbutton), FALSE); + + g_settings_set_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE, + GTK_WRAP_CHAR); + break; + default: + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->wrap_text_checkbutton), FALSE); + + last_split_mode = g_settings_get_enum (dlg->editor, + GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dlg->split_checkbutton), + last_split_mode == GTK_WRAP_WORD); + + gtk_toggle_button_set_inconsistent ( + GTK_TOGGLE_BUTTON (dlg->split_checkbutton), TRUE); + } + + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->right_margin_checkbutton), + display_right_margin); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (dlg->display_grid_checkbutton), + background_pattern == GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID); + + /* Set widgets sensitivity */ + gtk_widget_set_sensitive (dlg->split_checkbutton, + (wrap_mode != GTK_WRAP_NONE)); + + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_DISPLAY_LINE_NUMBERS, + dlg->display_line_numbers_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_HIGHLIGHT_CURRENT_LINE, + dlg->highlight_current_line_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->uisettings, + GEDIT_SETTINGS_STATUSBAR_VISIBLE, + dlg->display_statusbar_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN, + dlg->right_margin_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN, + dlg->right_margin_position_grid, + "sensitive", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_RIGHT_MARGIN_POSITION, + dlg->right_margin_position_spinbutton, + "value", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_AUTO_SAVE_INTERVAL, + dlg->auto_save_spinbutton, + "value", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_signal_connect (dlg->wrap_text_checkbutton, + "toggled", + G_CALLBACK (wrap_mode_checkbutton_toggled), + dlg); + g_signal_connect (dlg->split_checkbutton, + "toggled", + G_CALLBACK (wrap_mode_checkbutton_toggled), + dlg); + g_signal_connect (dlg->display_grid_checkbutton, + "toggled", + G_CALLBACK (grid_checkbutton_toggled), + dlg); +} + +static void +setup_font_colors_page_font_section (GeditPreferencesDialog *dlg) +{ + GeditSettings *settings; + gchar *system_font = NULL; + gchar *label; + + gedit_debug (DEBUG_PREFS); + + gtk_widget_set_tooltip_text (dlg->font_button, + _("Click on this button to select the font to be used by the editor")); + + /* Get values */ + settings = _gedit_settings_get_singleton (); + system_font = gedit_settings_get_system_font (settings); + + label = g_strdup_printf(_("_Use the system fixed width font (%s)"), + system_font); + gtk_button_set_label (GTK_BUTTON (dlg->default_font_checkbutton), + label); + g_free (system_font); + g_free (label); + + /* Bind settings */ + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_USE_DEFAULT_FONT, + dlg->default_font_checkbutton, + "active", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_USE_DEFAULT_FONT, + dlg->font_grid, + "sensitive", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET | G_SETTINGS_BIND_INVERT_BOOLEAN); + g_settings_bind (dlg->editor, + GEDIT_SETTINGS_EDITOR_FONT, + dlg->font_button, + "font-name", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); +} + +static void +update_style_scheme_buttons_sensisitivity (GeditPreferencesDialog *dlg) +{ + GtkSourceStyleScheme *selected_style_scheme; + gboolean editable = FALSE; + + selected_style_scheme = gtk_source_style_scheme_chooser_get_style_scheme (GTK_SOURCE_STYLE_SCHEME_CHOOSER (dlg->schemes_list)); + + if (selected_style_scheme != NULL) + { + const gchar *filename; + + filename = gtk_source_style_scheme_get_filename (selected_style_scheme); + if (filename != NULL) + { + editable = g_str_has_prefix (filename, gedit_dirs_get_user_styles_dir ()); + } + } + + gtk_widget_set_sensitive (dlg->uninstall_scheme_button, editable); +} + +static void +style_scheme_notify_cb (GtkSourceStyleSchemeChooser *chooser, + GParamSpec *pspec, + GeditPreferencesDialog *dlg) +{ + update_style_scheme_buttons_sensisitivity (dlg); +} + +static GFile * +get_user_style_scheme_destination_file (GFile *src_file) +{ + gchar *basename; + const gchar *styles_dir; + GFile *dest_file; + + basename = g_file_get_basename (src_file); + g_return_val_if_fail (basename != NULL, NULL); + + styles_dir = gedit_dirs_get_user_styles_dir (); + dest_file = g_file_new_build_filename (styles_dir, basename, NULL); + + g_free (basename); + return dest_file; +} + +/* Returns: whether @src_file has been correctly copied to @dest_file. */ +static gboolean +copy_file (GFile *src_file, + GFile *dest_file, + GError **error) +{ + if (g_file_equal (src_file, dest_file)) + { + return FALSE; + } + + if (!tepl_utils_create_parent_directories (dest_file, NULL, error)) + { + return FALSE; + } + + return g_file_copy (src_file, + dest_file, + G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, + NULL, /* cancellable */ + NULL, NULL, /* progress callback */ + error); +} + +/* Get the style scheme ID of @user_style_scheme_file if it has been correctly + * installed and @user_style_scheme_file is a valid style scheme file. + */ +static const gchar * +get_style_scheme_id_after_installing_user_style_scheme (GFile *user_style_scheme_file) +{ + GtkSourceStyleSchemeManager *manager; + const gchar * const *scheme_ids; + gint i; + + manager = gtk_source_style_scheme_manager_get_default (); + gtk_source_style_scheme_manager_force_rescan (manager); + + scheme_ids = gtk_source_style_scheme_manager_get_scheme_ids (manager); + + for (i = 0; scheme_ids != NULL && scheme_ids[i] != NULL; i++) + { + const gchar *cur_scheme_id = scheme_ids[i]; + GtkSourceStyleScheme *scheme; + const gchar *filename; + GFile *scheme_file; + + scheme = gtk_source_style_scheme_manager_get_scheme (manager, cur_scheme_id); + filename = gtk_source_style_scheme_get_filename (scheme); + if (filename == NULL) + { + continue; + } + + scheme_file = g_file_new_for_path (filename); + if (g_file_equal (scheme_file, user_style_scheme_file)) + { + g_object_unref (scheme_file); + return cur_scheme_id; + } + + g_object_unref (scheme_file); + } + + return NULL; +} + +/* Returns: (nullable): the installed style scheme ID, or %NULL on failure. */ +static const gchar * +install_style_scheme (GFile *src_file, + GError **error) +{ + GFile *dest_file; + gboolean copied; + const gchar *installed_style_scheme_id = NULL; + GError *my_error = NULL; + + g_return_val_if_fail (G_IS_FILE (src_file), NULL); + g_return_val_if_fail (error == NULL || *error == NULL, NULL); + + dest_file = get_user_style_scheme_destination_file (src_file); + g_return_val_if_fail (dest_file != NULL, NULL); + + copied = copy_file (src_file, dest_file, &my_error); + if (my_error != NULL) + { + g_propagate_error (error, my_error); + g_object_unref (dest_file); + return NULL; + } + + installed_style_scheme_id = get_style_scheme_id_after_installing_user_style_scheme (dest_file); + + if (installed_style_scheme_id == NULL && copied) + { + /* The style scheme has not been correctly installed. */ + g_file_delete (dest_file, NULL, &my_error); + if (my_error != NULL) + { + gchar *dest_file_parse_name = g_file_get_parse_name (dest_file); + + g_warning ("Failed to delete the file “%s”: %s", + dest_file_parse_name, + my_error->message); + + g_free (dest_file_parse_name); + g_clear_error (&my_error); + } + } + + g_object_unref (dest_file); + return installed_style_scheme_id; +} + +/* + * uninstall_style_scheme: + * @scheme: a #GtkSourceStyleScheme + * + * Uninstall a user scheme. + * + * Returns: %TRUE on success, %FALSE otherwise. + */ +static gboolean +uninstall_style_scheme (GtkSourceStyleScheme *scheme) +{ + GtkSourceStyleSchemeManager *manager; + const gchar *filename; + + g_return_val_if_fail (GTK_SOURCE_IS_STYLE_SCHEME (scheme), FALSE); + + manager = gtk_source_style_scheme_manager_get_default (); + + filename = gtk_source_style_scheme_get_filename (scheme); + if (filename == NULL) + return FALSE; + + if (g_unlink (filename) == -1) + return FALSE; + + /* Reload the available style schemes */ + gtk_source_style_scheme_manager_force_rescan (manager); + + return TRUE; +} + +static void +add_scheme_chooser_response_cb (GtkFileChooserNative *chooser, + gint response_id, + GeditPreferencesDialog *dialog) +{ + GFile *file; + const gchar *scheme_id; + GeditSettings *settings; + GSettings *editor_settings; + GError *error = NULL; + + if (response_id != GTK_RESPONSE_ACCEPT) + { + return; + } + + file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (chooser)); + if (file == NULL) + { + return; + } + + scheme_id = install_style_scheme (file, &error); + g_object_unref (file); + + if (scheme_id == NULL) + { + if (error != NULL) + { + tepl_utils_show_warning_dialog (GTK_WINDOW (dialog), + _("The selected color scheme cannot be installed: %s"), + error->message); + } + else + { + tepl_utils_show_warning_dialog (GTK_WINDOW (dialog), + _("The selected color scheme cannot be installed.")); + } + + g_clear_error (&error); + return; + } + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + g_settings_set_string (editor_settings, GEDIT_SETTINGS_SCHEME, scheme_id); +} + +static void +install_scheme_clicked (GtkButton *button, + GeditPreferencesDialog *dialog) +{ + GtkFileChooserNative *chooser; + GtkFileFilter *scheme_filter; + GtkFileFilter *all_filter; + + if (dialog->install_scheme_file_chooser != NULL) + { + gtk_native_dialog_show (GTK_NATIVE_DIALOG (dialog->install_scheme_file_chooser)); + return; + } + + chooser = gtk_file_chooser_native_new (_("Add Color Scheme"), + GTK_WINDOW (dialog), + GTK_FILE_CHOOSER_ACTION_OPEN, + _("_Add Scheme"), + _("_Cancel")); + + /* Filters */ + scheme_filter = gtk_file_filter_new (); + gtk_file_filter_set_name (scheme_filter, _("Color Scheme Files")); + gtk_file_filter_add_pattern (scheme_filter, "*.xml"); + gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), scheme_filter); + + all_filter = gtk_file_filter_new (); + gtk_file_filter_set_name (all_filter, _("All Files")); + gtk_file_filter_add_pattern (all_filter, "*"); + gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), all_filter); + + gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (chooser), scheme_filter); + + g_signal_connect (chooser, + "response", + G_CALLBACK (add_scheme_chooser_response_cb), + dialog); + + g_set_weak_pointer (&dialog->install_scheme_file_chooser, chooser); + + gtk_native_dialog_show (GTK_NATIVE_DIALOG (chooser)); +} + +static void +uninstall_scheme_clicked (GtkButton *button, + GeditPreferencesDialog *dlg) +{ + GtkSourceStyleScheme *scheme; + GtkSourceStyleScheme *new_selected_scheme; + + scheme = gtk_source_style_scheme_chooser_get_style_scheme (GTK_SOURCE_STYLE_SCHEME_CHOOSER (dlg->schemes_list)); + + if (scheme == NULL) + { + return; + } + + if (!uninstall_style_scheme (scheme)) + { + tepl_utils_show_warning_dialog (GTK_WINDOW (dlg), + _("Could not remove color scheme “%s”."), + gtk_source_style_scheme_get_name (scheme)); + return; + } + + new_selected_scheme = gtk_source_style_scheme_chooser_get_style_scheme (GTK_SOURCE_STYLE_SCHEME_CHOOSER (dlg->schemes_list)); + if (new_selected_scheme == NULL) + { + GeditSettings *settings; + GSettings *editor_settings; + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + g_settings_reset (editor_settings, GEDIT_SETTINGS_SCHEME); + } +} + +static void +setup_font_colors_page_style_scheme_section (GeditPreferencesDialog *dlg) +{ + GtkStyleContext *context; + GeditSettings *settings; + GSettings *editor_settings; + + gedit_debug (DEBUG_PREFS); + + /* junction between the schemes list and the toolbar */ + context = gtk_widget_get_style_context (dlg->schemes_list); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM); + context = gtk_widget_get_style_context (dlg->schemes_toolbar); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP); + + /* Connect signals */ + g_signal_connect (dlg->schemes_list, + "notify::style-scheme", + G_CALLBACK (style_scheme_notify_cb), + dlg); + g_signal_connect (dlg->install_scheme_button, + "clicked", + G_CALLBACK (install_scheme_clicked), + dlg); + g_signal_connect (dlg->uninstall_scheme_button, + "clicked", + G_CALLBACK (uninstall_scheme_clicked), + dlg); + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + g_settings_bind (editor_settings, GEDIT_SETTINGS_SCHEME, + dlg->schemes_list, "tepl-style-scheme-id", + G_SETTINGS_BIND_DEFAULT); + + update_style_scheme_buttons_sensisitivity (dlg); +} + +static void +setup_font_colors_page (GeditPreferencesDialog *dlg) +{ + setup_font_colors_page_font_section (dlg); + setup_font_colors_page_style_scheme_section (dlg); +} + +static void +setup_plugins_page (GeditPreferencesDialog *dlg) +{ + gtk_widget_show_all (dlg->plugin_manager); +} + +static void +gedit_preferences_dialog_init (GeditPreferencesDialog *dlg) +{ + gedit_debug (DEBUG_PREFS); + + dlg->editor = g_settings_new ("org.gnome.gedit.preferences.editor"); + dlg->uisettings = g_settings_new ("org.gnome.gedit.preferences.ui"); + + gtk_widget_init_template (GTK_WIDGET (dlg)); + + setup_editor_page (dlg); + setup_view_page (dlg); + setup_font_colors_page (dlg); + setup_plugins_page (dlg); +} + +void +gedit_show_preferences_dialog (GeditWindow *parent) +{ + gedit_debug (DEBUG_PREFS); + + if (preferences_dialog == NULL) + { + preferences_dialog = GTK_WIDGET (g_object_new (GEDIT_TYPE_PREFERENCES_DIALOG, + "application", g_application_get_default (), + NULL)); + g_signal_connect (preferences_dialog, + "destroy", + G_CALLBACK (gtk_widget_destroyed), + &preferences_dialog); + } + + if (GTK_WINDOW (parent) != gtk_window_get_transient_for (GTK_WINDOW (preferences_dialog))) + { + gtk_window_set_transient_for (GTK_WINDOW (preferences_dialog), + GTK_WINDOW (parent)); + } + + gtk_window_present (GTK_WINDOW (preferences_dialog)); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-preferences-dialog.h b/gedit/gedit-preferences-dialog.h new file mode 100644 index 0000000..1d35559 --- /dev/null +++ b/gedit/gedit-preferences-dialog.h @@ -0,0 +1,35 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * gedit-preferences-dialog.c + * This file is part of gedit + * + * Copyright (C) 2001-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_PREFERENCES_DIALOG_H +#define GEDIT_PREFERENCES_DIALOG_H + +#include "gedit-window.h" + +G_BEGIN_DECLS + +void gedit_show_preferences_dialog (GeditWindow *parent); + +G_END_DECLS + +#endif /* GEDIT_PREFERENCES_DIALOG_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-print-job.c b/gedit/gedit-print-job.c new file mode 100644 index 0000000..6b07525 --- /dev/null +++ b/gedit/gedit-print-job.c @@ -0,0 +1,823 @@ +/* + * gedit-print-job.c + * This file is part of gedit + * + * Copyright (C) 2000-2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2008 Paolo Maggi + * Copyright (C) 2015 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-print-job.h" + +#include +#include + +#include "gedit-debug.h" +#include "gedit-print-preview.h" +#include "gedit-utils.h" +#include "gedit-dirs.h" +#include "gedit-settings.h" + +struct _GeditPrintJob +{ + GObject parent_instance; + + GSettings *gsettings; + + GeditView *view; + + GtkPrintOperation *operation; + GtkSourcePrintCompositor *compositor; + + GtkWidget *preview; + + gchar *status_string; + gdouble progress; + + /* Widgets part of the custom print preferences widget. + * These pointers are valid just when the dialog is displayed. + */ + GtkToggleButton *syntax_checkbutton; + GtkToggleButton *page_header_checkbutton; + GtkToggleButton *line_numbers_checkbutton; + GtkSpinButton *line_numbers_spinbutton; + GtkToggleButton *text_wrapping_checkbutton; + GtkToggleButton *do_not_split_checkbutton; + GtkFontButton *body_fontbutton; + GtkFontButton *headers_fontbutton; + GtkFontButton *numbers_fontbutton; + + guint is_preview : 1; +}; + +enum +{ + PROP_0, + PROP_VIEW, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +enum +{ + PRINTING, + SHOW_PREVIEW, + DONE, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +G_DEFINE_TYPE (GeditPrintJob, gedit_print_job, G_TYPE_OBJECT) + +static void +gedit_print_job_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditPrintJob *job = GEDIT_PRINT_JOB (object); + + switch (prop_id) + { + case PROP_VIEW: + g_value_set_object (value, job->view); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_print_job_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditPrintJob *job = GEDIT_PRINT_JOB (object); + + switch (prop_id) + { + case PROP_VIEW: + job->view = g_value_get_object (value); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_print_job_dispose (GObject *object) +{ + GeditPrintJob *job = GEDIT_PRINT_JOB (object); + + g_clear_object (&job->gsettings); + g_clear_object (&job->operation); + g_clear_object (&job->compositor); + g_clear_object (&job->preview); + + G_OBJECT_CLASS (gedit_print_job_parent_class)->dispose (object); +} + +static void +gedit_print_job_finalize (GObject *object) +{ + GeditPrintJob *job = GEDIT_PRINT_JOB (object); + + g_free (job->status_string); + + G_OBJECT_CLASS (gedit_print_job_parent_class)->finalize (object); +} + +static void +gedit_print_job_printing (GeditPrintJob *job, + GeditPrintJobStatus status) +{ +} + +static void +gedit_print_job_show_preview (GeditPrintJob *job, + GtkWidget *preview) +{ +} + +static void +gedit_print_job_done (GeditPrintJob *job, + GeditPrintJobResult result, + const GError *error) +{ +} + +static void +gedit_print_job_class_init (GeditPrintJobClass *klass) +{ + GObjectClass *object_class; + + object_class = G_OBJECT_CLASS (klass); + + object_class->get_property = gedit_print_job_get_property; + object_class->set_property = gedit_print_job_set_property; + object_class->dispose = gedit_print_job_dispose; + object_class->finalize = gedit_print_job_finalize; + + properties[PROP_VIEW] = + g_param_spec_object ("view", + "Gedit View", + "Gedit View to print", + GEDIT_TYPE_VIEW, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY); + + g_object_class_install_properties (object_class, LAST_PROP, properties); + + signals[PRINTING] = + g_signal_new_class_handler ("printing", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + G_CALLBACK (gedit_print_job_printing), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + G_TYPE_UINT); + + signals[SHOW_PREVIEW] = + g_signal_new_class_handler ("show-preview", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + G_CALLBACK (gedit_print_job_show_preview), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GTK_TYPE_WIDGET); + + signals[DONE] = + g_signal_new_class_handler ("done", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + G_CALLBACK (gedit_print_job_done), + NULL, NULL, NULL, + G_TYPE_NONE, + 2, + G_TYPE_UINT, + G_TYPE_POINTER); +} + +static void +gedit_print_job_init (GeditPrintJob *job) +{ + job->gsettings = g_settings_new ("org.gnome.gedit.preferences.print"); + + job->status_string = g_strdup (_("Preparing…")); +} + +static void +restore_button_clicked (GtkButton *button, + GeditPrintJob *job) + +{ + g_settings_reset (job->gsettings, GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO); + g_settings_reset (job->gsettings, GEDIT_SETTINGS_PRINT_FONT_HEADER_PANGO); + g_settings_reset (job->gsettings, GEDIT_SETTINGS_PRINT_FONT_NUMBERS_PANGO); +} + +static GObject * +create_custom_widget_cb (GtkPrintOperation *operation, + GeditPrintJob *job) +{ + GtkBuilder *builder; + GtkWidget *contents; + GtkWidget *line_numbers_hbox; + GtkWidget *restore_button; + guint line_numbers; + GtkWrapMode wrap_mode; + + gchar *root_objects[] = { + "adjustment1", + "contents", + NULL + }; + + builder = gtk_builder_new (); + gtk_builder_add_objects_from_resource (builder, "/org/gnome/gedit/ui/gedit-print-preferences.ui", + root_objects, NULL); + contents = GTK_WIDGET (gtk_builder_get_object (builder, "contents")); + g_object_ref (contents); + job->syntax_checkbutton = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, "syntax_checkbutton")); + job->line_numbers_checkbutton = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, "line_numbers_checkbutton")); + line_numbers_hbox = GTK_WIDGET (gtk_builder_get_object (builder, "line_numbers_hbox")); + job->line_numbers_spinbutton = GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "line_numbers_spinbutton")); + job->page_header_checkbutton = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, "page_header_checkbutton")); + job->text_wrapping_checkbutton = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, "text_wrapping_checkbutton")); + job->do_not_split_checkbutton = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, "do_not_split_checkbutton")); + job->body_fontbutton = GTK_FONT_BUTTON (gtk_builder_get_object (builder, "body_fontbutton")); + job->headers_fontbutton = GTK_FONT_BUTTON (gtk_builder_get_object (builder, "headers_fontbutton")); + job->numbers_fontbutton = GTK_FONT_BUTTON (gtk_builder_get_object (builder, "numbers_fontbutton")); + restore_button = GTK_WIDGET (gtk_builder_get_object (builder, "restore_button")); + g_object_unref (builder); + + /* Syntax highlighting */ + g_settings_bind (job->gsettings, GEDIT_SETTINGS_PRINT_SYNTAX_HIGHLIGHTING, + job->syntax_checkbutton, "active", + G_SETTINGS_BIND_GET); + + /* Print header */ + g_settings_bind (job->gsettings, GEDIT_SETTINGS_PRINT_HEADER, + job->page_header_checkbutton, "active", + G_SETTINGS_BIND_GET); + + /* Line numbers */ + g_settings_get (job->gsettings, GEDIT_SETTINGS_PRINT_LINE_NUMBERS, + "u", &line_numbers); + + if (line_numbers > 0) + { + gtk_spin_button_set_value (job->line_numbers_spinbutton, line_numbers); + } + else + { + gtk_spin_button_set_value (job->line_numbers_spinbutton, 1); + } + + gtk_toggle_button_set_active (job->line_numbers_checkbutton, + line_numbers > 0); + + g_object_bind_property (job->line_numbers_checkbutton, "active", + line_numbers_hbox, "sensitive", + G_BINDING_SYNC_CREATE); + + /* Fonts */ + g_settings_bind (job->gsettings, GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO, + job->body_fontbutton, "font-name", + G_SETTINGS_BIND_GET); + + g_settings_bind (job->gsettings, GEDIT_SETTINGS_PRINT_FONT_HEADER_PANGO, + job->headers_fontbutton, "font-name", + G_SETTINGS_BIND_GET); + + g_settings_bind (job->gsettings, GEDIT_SETTINGS_PRINT_FONT_NUMBERS_PANGO, + job->numbers_fontbutton, "font-name", + G_SETTINGS_BIND_GET); + + /* Wrap mode */ + wrap_mode = g_settings_get_enum (job->gsettings, GEDIT_SETTINGS_PRINT_WRAP_MODE); + + switch (wrap_mode) + { + case GTK_WRAP_WORD: + gtk_toggle_button_set_active (job->text_wrapping_checkbutton, TRUE); + gtk_toggle_button_set_active (job->do_not_split_checkbutton, TRUE); + break; + + case GTK_WRAP_CHAR: + gtk_toggle_button_set_active (job->text_wrapping_checkbutton, TRUE); + gtk_toggle_button_set_active (job->do_not_split_checkbutton, FALSE); + break; + + default: + gtk_toggle_button_set_active (job->text_wrapping_checkbutton, FALSE); + break; + } + + g_object_bind_property (job->text_wrapping_checkbutton, "active", + job->do_not_split_checkbutton, "sensitive", + G_BINDING_SYNC_CREATE); + + g_object_bind_property (job->text_wrapping_checkbutton, "active", + job->do_not_split_checkbutton, "inconsistent", + G_BINDING_INVERT_BOOLEAN | G_BINDING_SYNC_CREATE); + + /* Restore */ + g_signal_connect (restore_button, + "clicked", + G_CALLBACK (restore_button_clicked), + job); + + return G_OBJECT (contents); +} + +static void +custom_widget_apply_cb (GtkPrintOperation *operation, + GtkWidget *widget, + GeditPrintJob *job) +{ + gboolean syntax; + gboolean page_header; + const gchar *body_font; + const gchar *header_font; + const gchar *numbers_font; + GtkWrapMode wrap_mode; + + syntax = gtk_toggle_button_get_active (job->syntax_checkbutton); + page_header = gtk_toggle_button_get_active (job->page_header_checkbutton); + body_font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (job->body_fontbutton)); + header_font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (job->headers_fontbutton)); + numbers_font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (job->numbers_fontbutton)); + + g_settings_set_boolean (job->gsettings, + GEDIT_SETTINGS_PRINT_SYNTAX_HIGHLIGHTING, + syntax); + + g_settings_set_boolean (job->gsettings, + GEDIT_SETTINGS_PRINT_HEADER, + page_header); + + g_settings_set_string (job->gsettings, + GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO, + body_font); + + g_settings_set_string (job->gsettings, + GEDIT_SETTINGS_PRINT_FONT_HEADER_PANGO, + header_font); + + g_settings_set_string (job->gsettings, + GEDIT_SETTINGS_PRINT_FONT_NUMBERS_PANGO, + numbers_font); + + if (gtk_toggle_button_get_active (job->line_numbers_checkbutton)) + { + gint num; + + num = gtk_spin_button_get_value_as_int (job->line_numbers_spinbutton); + + g_settings_set (job->gsettings, + GEDIT_SETTINGS_PRINT_LINE_NUMBERS, + "u", MAX (1, num)); + } + else + { + g_settings_set (job->gsettings, + GEDIT_SETTINGS_PRINT_LINE_NUMBERS, + "u", 0); + } + + if (gtk_toggle_button_get_active (job->text_wrapping_checkbutton)) + { + if (gtk_toggle_button_get_active (job->do_not_split_checkbutton)) + { + wrap_mode = GTK_WRAP_WORD; + } + else + { + wrap_mode = GTK_WRAP_CHAR; + } + } + else + { + wrap_mode = GTK_WRAP_NONE; + } + + g_settings_set_enum (job->gsettings, + GEDIT_SETTINGS_PRINT_WRAP_MODE, + wrap_mode); +} + +static void +preview_ready (GtkPrintOperationPreview *gtk_preview, + GtkPrintContext *context, + GeditPrintJob *job) +{ + job->is_preview = TRUE; + + g_signal_emit (job, signals[SHOW_PREVIEW], 0, job->preview); + + g_clear_object (&job->preview); +} + +static gboolean +preview_cb (GtkPrintOperation *op, + GtkPrintOperationPreview *gtk_preview, + GtkPrintContext *context, + GtkWindow *parent, + GeditPrintJob *job) +{ + g_clear_object (&job->preview); + job->preview = gedit_print_preview_new (op, gtk_preview, context); + g_object_ref_sink (job->preview); + + g_signal_connect_after (gtk_preview, + "ready", + G_CALLBACK (preview_ready), + job); + + return TRUE; +} + +static void +create_compositor (GeditPrintJob *job) +{ + GtkSourceBuffer *buf; + gchar *print_font_body; + gchar *print_font_header; + gchar *print_font_numbers; + gboolean syntax_hl; + GtkWrapMode wrap_mode; + guint print_line_numbers; + gboolean print_header; + guint tab_width; + gdouble margin; + + buf = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (job->view))); + + print_font_body = g_settings_get_string (job->gsettings, + GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO); + + print_font_header = g_settings_get_string (job->gsettings, + GEDIT_SETTINGS_PRINT_FONT_HEADER_PANGO); + + print_font_numbers = g_settings_get_string (job->gsettings, + GEDIT_SETTINGS_PRINT_FONT_NUMBERS_PANGO); + + g_settings_get (job->gsettings, + GEDIT_SETTINGS_PRINT_LINE_NUMBERS, + "u", &print_line_numbers); + + print_header = g_settings_get_boolean (job->gsettings, + GEDIT_SETTINGS_PRINT_HEADER); + + wrap_mode = g_settings_get_enum (job->gsettings, + GEDIT_SETTINGS_PRINT_WRAP_MODE); + + syntax_hl = g_settings_get_boolean (job->gsettings, + GEDIT_SETTINGS_PRINT_SYNTAX_HIGHLIGHTING); + + syntax_hl &= gtk_source_buffer_get_highlight_syntax (buf); + + tab_width = gtk_source_view_get_tab_width (GTK_SOURCE_VIEW (job->view)); + + job->compositor = GTK_SOURCE_PRINT_COMPOSITOR ( + g_object_new (GTK_SOURCE_TYPE_PRINT_COMPOSITOR, + "buffer", buf, + "tab-width", tab_width, + "highlight-syntax", syntax_hl, + "wrap-mode", wrap_mode, + "print-line-numbers", print_line_numbers, + "print-header", print_header, + "print-footer", FALSE, + "body-font-name", print_font_body, + "line-numbers-font-name", print_font_numbers, + "header-font-name", print_font_header, + NULL)); + + margin = g_settings_get_double (job->gsettings, GEDIT_SETTINGS_PRINT_MARGIN_LEFT); + gtk_source_print_compositor_set_left_margin (job->compositor, margin, GTK_UNIT_MM); + + margin = g_settings_get_double (job->gsettings, GEDIT_SETTINGS_PRINT_MARGIN_TOP); + gtk_source_print_compositor_set_top_margin (job->compositor, margin, GTK_UNIT_MM); + + margin = g_settings_get_double (job->gsettings, GEDIT_SETTINGS_PRINT_MARGIN_RIGHT); + gtk_source_print_compositor_set_right_margin (job->compositor, margin, GTK_UNIT_MM); + + margin = g_settings_get_double (job->gsettings, GEDIT_SETTINGS_PRINT_MARGIN_BOTTOM); + gtk_source_print_compositor_set_bottom_margin (job->compositor, margin, GTK_UNIT_MM); + + if (print_header) + { + gchar *doc_name; + gchar *name_to_display; + gchar *left; + + doc_name = gedit_document_get_uri_for_display (GEDIT_DOCUMENT (buf)); + name_to_display = tepl_utils_str_middle_truncate (doc_name, 60); + + left = g_strdup_printf (_("File: %s"), name_to_display); + + gtk_source_print_compositor_set_header_format (job->compositor, + TRUE, + left, + NULL, + /* Translators: %N is the current page number, %Q is the total + * number of pages (ex. Page 2 of 10) + */ + _("Page %N of %Q")); + + g_free (doc_name); + g_free (name_to_display); + g_free (left); + } + + g_free (print_font_body); + g_free (print_font_header); + g_free (print_font_numbers); +} + +static void +begin_print_cb (GtkPrintOperation *operation, + GtkPrintContext *context, + GeditPrintJob *job) +{ + create_compositor (job); + + job->progress = 0.0; + + g_signal_emit (job, + signals[PRINTING], + 0, + GEDIT_PRINT_JOB_STATUS_PAGINATING); +} + +static gboolean +paginate_cb (GtkPrintOperation *operation, + GtkPrintContext *context, + GeditPrintJob *job) +{ + gboolean finished; + + finished = gtk_source_print_compositor_paginate (job->compositor, context); + + if (finished) + { + gint n_pages; + + n_pages = gtk_source_print_compositor_get_n_pages (job->compositor); + gtk_print_operation_set_n_pages (job->operation, n_pages); + } + + job->progress = gtk_source_print_compositor_get_pagination_progress (job->compositor); + + /* When previewing, the progress is just for pagination, when printing + * it's split between pagination and rendering. + */ + if (!job->is_preview) + { + job->progress /= 2.0; + } + + g_signal_emit (job, + signals[PRINTING], + 0, + GEDIT_PRINT_JOB_STATUS_PAGINATING); + + return finished; +} + +static void +draw_page_cb (GtkPrintOperation *operation, + GtkPrintContext *context, + gint page_nr, + GeditPrintJob *job) +{ + /* In preview, pages are drawn on the fly, so rendering is + * not part of the progress. + */ + if (!job->is_preview) + { + gint n_pages; + + n_pages = gtk_source_print_compositor_get_n_pages (job->compositor); + + g_free (job->status_string); + job->status_string = g_strdup_printf (_("Rendering page %d of %d…"), page_nr + 1, n_pages); + + job->progress = page_nr / (2.0 * n_pages) + 0.5; + + g_signal_emit (job, + signals[PRINTING], + 0, + GEDIT_PRINT_JOB_STATUS_DRAWING); + } + + gtk_source_print_compositor_draw_page (job->compositor, context, page_nr); +} + +static void +end_print_cb (GtkPrintOperation *operation, + GtkPrintContext *context, + GeditPrintJob *job) +{ + g_clear_object (&job->compositor); +} + +static void +done_cb (GtkPrintOperation *operation, + GtkPrintOperationResult result, + GeditPrintJob *job) +{ + GError *error = NULL; + GeditPrintJobResult print_result; + + switch (result) + { + case GTK_PRINT_OPERATION_RESULT_CANCEL: + print_result = GEDIT_PRINT_JOB_RESULT_CANCEL; + break; + + case GTK_PRINT_OPERATION_RESULT_APPLY: + print_result = GEDIT_PRINT_JOB_RESULT_OK; + break; + + case GTK_PRINT_OPERATION_RESULT_ERROR: + print_result = GEDIT_PRINT_JOB_RESULT_ERROR; + gtk_print_operation_get_error (operation, &error); + break; + + default: + g_return_if_reached (); + } + + /* Avoid that job is destroyed in the handler of the "done" message. */ + g_object_ref (job); + g_signal_emit (job, signals[DONE], 0, print_result, error); + g_object_unref (job); +} + +GeditPrintJob * +gedit_print_job_new (GeditView *view) +{ + g_return_val_if_fail (GEDIT_IS_VIEW (view), NULL); + + return g_object_new (GEDIT_TYPE_PRINT_JOB, + "view", view, + NULL); +} + +/* Note that gedit_print_job_print() can only be called once on a given + * GeditPrintJob. + */ +GtkPrintOperationResult +gedit_print_job_print (GeditPrintJob *job, + GtkPrintOperationAction action, + GtkPageSetup *page_setup, + GtkPrintSettings *settings, + GtkWindow *parent, + GError **error) +{ + GeditDocument *doc; + gchar *job_name; + + g_return_val_if_fail (job->operation == NULL, GTK_PRINT_OPERATION_RESULT_ERROR); + g_return_val_if_fail (job->compositor == NULL, GTK_PRINT_OPERATION_RESULT_ERROR); + + job->operation = gtk_print_operation_new (); + + job->is_preview = action == GTK_PRINT_OPERATION_ACTION_PREVIEW; + + if (settings != NULL) + { + gtk_print_operation_set_print_settings (job->operation, + settings); + } + + if (page_setup != NULL) + { + gtk_print_operation_set_default_page_setup (job->operation, + page_setup); + } + + doc = GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (job->view))); + job_name = gedit_document_get_short_name_for_display (doc); + gtk_print_operation_set_job_name (job->operation, job_name); + g_free (job_name); + + gtk_print_operation_set_embed_page_setup (job->operation, TRUE); + + gtk_print_operation_set_custom_tab_label (job->operation, _("Text Editor")); + + gtk_print_operation_set_allow_async (job->operation, TRUE); + + g_signal_connect (job->operation, + "create-custom-widget", + G_CALLBACK (create_custom_widget_cb), + job); + + g_signal_connect (job->operation, + "custom-widget-apply", + G_CALLBACK (custom_widget_apply_cb), + job); + + g_signal_connect (job->operation, + "preview", + G_CALLBACK (preview_cb), + job); + + g_signal_connect (job->operation, + "begin-print", + G_CALLBACK (begin_print_cb), + job); + + g_signal_connect (job->operation, + "paginate", + G_CALLBACK (paginate_cb), + job); + + g_signal_connect (job->operation, + "draw-page", + G_CALLBACK (draw_page_cb), + job); + + g_signal_connect_object (job->operation, + "end-print", + G_CALLBACK (end_print_cb), + job, + 0); + + g_signal_connect_object (job->operation, + "done", + G_CALLBACK (done_cb), + job, + 0); + + return gtk_print_operation_run (job->operation, + action, + parent, + error); +} + +void +gedit_print_job_cancel (GeditPrintJob *job) +{ + g_return_if_fail (GEDIT_IS_PRINT_JOB (job)); + + gtk_print_operation_cancel (job->operation); +} + +const gchar * +gedit_print_job_get_status_string (GeditPrintJob *job) +{ + g_return_val_if_fail (GEDIT_IS_PRINT_JOB (job), NULL); + g_return_val_if_fail (job->status_string != NULL, NULL); + + return job->status_string; +} + +gdouble +gedit_print_job_get_progress (GeditPrintJob *job) +{ + g_return_val_if_fail (GEDIT_IS_PRINT_JOB (job), 0.0); + + return job->progress; +} + +GtkPrintSettings * +gedit_print_job_get_print_settings (GeditPrintJob *job) +{ + g_return_val_if_fail (GEDIT_IS_PRINT_JOB (job), NULL); + + return gtk_print_operation_get_print_settings (job->operation); +} + +GtkPageSetup * +gedit_print_job_get_page_setup (GeditPrintJob *job) +{ + g_return_val_if_fail (GEDIT_IS_PRINT_JOB (job), NULL); + + return gtk_print_operation_get_default_page_setup (job->operation); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-print-job.h b/gedit/gedit-print-job.h new file mode 100644 index 0000000..f95563c --- /dev/null +++ b/gedit/gedit-print-job.h @@ -0,0 +1,70 @@ +/* + * gedit-print-job.h + * This file is part of gedit + * + * Copyright (C) 2000-2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2008 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_PRINT_JOB_H +#define GEDIT_PRINT_JOB_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_PRINT_JOB (gedit_print_job_get_type()) + +G_DECLARE_FINAL_TYPE (GeditPrintJob, gedit_print_job, GEDIT, PRINT_JOB, GObject) + +typedef enum +{ + GEDIT_PRINT_JOB_STATUS_PAGINATING, + GEDIT_PRINT_JOB_STATUS_DRAWING +} GeditPrintJobStatus; + +typedef enum +{ + GEDIT_PRINT_JOB_RESULT_OK, + GEDIT_PRINT_JOB_RESULT_CANCEL, + GEDIT_PRINT_JOB_RESULT_ERROR +} GeditPrintJobResult; + +GeditPrintJob *gedit_print_job_new (GeditView *view); + +GtkPrintOperationResult gedit_print_job_print (GeditPrintJob *job, + GtkPrintOperationAction action, + GtkPageSetup *page_setup, + GtkPrintSettings *settings, + GtkWindow *parent, + GError **error); + +void gedit_print_job_cancel (GeditPrintJob *job); + +const gchar *gedit_print_job_get_status_string (GeditPrintJob *job); + +gdouble gedit_print_job_get_progress (GeditPrintJob *job); + +GtkPrintSettings *gedit_print_job_get_print_settings (GeditPrintJob *job); + +GtkPageSetup *gedit_print_job_get_page_setup (GeditPrintJob *job); + +G_END_DECLS + +#endif /* GEDIT_PRINT_JOB_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-print-preview.c b/gedit/gedit-print-preview.c new file mode 100644 index 0000000..0ef4a9e --- /dev/null +++ b/gedit/gedit-print-preview.c @@ -0,0 +1,1158 @@ +/* + * gedit-print-preview.c + * + * Copyright (C) 2008 Paolo Borelli + * Copyright (C) 2015 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-print-preview.h" + +#include +#include +#include +#include +#include + +#define PRINTER_DPI (72.0) +#define TOOLTIP_THRESHOLD 20 +#define PAGE_PAD 12 +#define PAGE_SHADOW_OFFSET 5 +#define ZOOM_IN_FACTOR (1.2) +#define ZOOM_OUT_FACTOR (1.0 / ZOOM_IN_FACTOR) + +struct _GeditPrintPreview +{ + GtkGrid parent_instance; + + GtkPrintOperation *operation; + GtkPrintContext *context; + GtkPrintOperationPreview *gtk_preview; + + GtkButton *prev_button; + GtkButton *next_button; + GtkEntry *page_entry; + GtkLabel *last_page_label; + GtkButton *multi_pages_button; + GtkButton *zoom_one_button; + GtkButton *zoom_fit_button; + GtkButton *zoom_in_button; + GtkButton *zoom_out_button; + GtkButton *close_button; + + /* The GtkLayout is where the pages are drawn. The layout should have + * the focus, because key-press-events and scroll-events are handled on + * the layout. It is AFAIK not easily possible to handle those events on + * the GeditPrintPreview itself because when a toolbar item has the + * focus, some key presses (like the arrows) moves the focus to a + * sibling toolbar item instead. + */ + GtkLayout *layout; + + gdouble scale; + + /* multipage support */ + gint n_columns; + + /* FIXME: handle correctly page selection (e.g. print only + * page 1-3, 7 and 12. + */ + guint cur_page; /* starts at 0 */ + + gint cursor_x; + gint cursor_y; + + guint has_tooltip : 1; +}; + +G_DEFINE_TYPE (GeditPrintPreview, gedit_print_preview, GTK_TYPE_GRID) + +static void +gedit_print_preview_dispose (GObject *object) +{ + GeditPrintPreview *preview = GEDIT_PRINT_PREVIEW (object); + + if (preview->gtk_preview != NULL) + { + GtkPrintOperationPreview *gtk_preview; + + /* Set preview->gtk_preview to NULL because when calling + * end_preview() this dispose() function can be run a second + * time. + */ + gtk_preview = preview->gtk_preview; + preview->gtk_preview = NULL; + + gtk_print_operation_preview_end_preview (gtk_preview); + + g_object_unref (gtk_preview); + } + + g_clear_object (&preview->operation); + g_clear_object (&preview->context); + + G_OBJECT_CLASS (gedit_print_preview_parent_class)->dispose (object); +} + +static void +gedit_print_preview_grab_focus (GtkWidget *widget) +{ + GeditPrintPreview *preview = GEDIT_PRINT_PREVIEW (widget); + + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +gedit_print_preview_class_init (GeditPrintPreviewClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->dispose = gedit_print_preview_dispose; + + widget_class->grab_focus = gedit_print_preview_grab_focus; + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-print-preview.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, prev_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, next_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, page_entry); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, last_page_label); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, multi_pages_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, zoom_one_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, zoom_fit_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, zoom_in_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, zoom_out_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, close_button); + gtk_widget_class_bind_template_child (widget_class, GeditPrintPreview, layout); +} + +static gint +get_n_pages (GeditPrintPreview *preview) +{ + gint n_pages; + + g_object_get (preview->operation, "n-pages", &n_pages, NULL); + + return n_pages; +} + +static gdouble +get_screen_dpi (GeditPrintPreview *preview) +{ + GdkScreen *screen; + gdouble dpi; + static gboolean warning_shown = FALSE; + + screen = gtk_widget_get_screen (GTK_WIDGET (preview)); + + if (screen == NULL) + { + return PRINTER_DPI; + } + + dpi = gdk_screen_get_resolution (screen); + if (dpi < 30.0 || 600.0 < dpi) + { + if (!warning_shown) + { + g_warning ("Invalid the x-resolution for the screen, assuming 96dpi"); + warning_shown = TRUE; + } + + dpi = 96.0; + } + + return dpi; +} + +/* Get the paper size in points: these must be used only + * after the widget has been mapped and the dpi is known. + */ +static gdouble +get_paper_width (GeditPrintPreview *preview) +{ + GtkPageSetup *page_setup; + gdouble paper_width; + + page_setup = gtk_print_context_get_page_setup (preview->context); + paper_width = gtk_page_setup_get_paper_width (page_setup, GTK_UNIT_INCH); + + return paper_width * get_screen_dpi (preview); +} + +static gdouble +get_paper_height (GeditPrintPreview *preview) +{ + GtkPageSetup *page_setup; + gdouble paper_height; + + page_setup = gtk_print_context_get_page_setup (preview->context); + paper_height = gtk_page_setup_get_paper_height (page_setup, GTK_UNIT_INCH); + + return paper_height * get_screen_dpi (preview); +} + +/* The tile size is the size in pixels of the area where a page will be + * drawn, including the padding. The size is independent of the + * orientation. + */ +static void +get_tile_size (GeditPrintPreview *preview, + gint *tile_width, + gint *tile_height) +{ + if (tile_width != NULL) + { + *tile_width = 2 * PAGE_PAD + round (preview->scale * get_paper_width (preview)); + } + + if (tile_height != NULL) + { + *tile_height = 2 * PAGE_PAD + round (preview->scale * get_paper_height (preview)); + } +} + +static void +get_adjustments (GeditPrintPreview *preview, + GtkAdjustment **hadj, + GtkAdjustment **vadj) +{ + *hadj = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (preview->layout)); + *vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (preview->layout)); +} + +static void +update_layout_size (GeditPrintPreview *preview) +{ + gint tile_width; + gint tile_height; + + get_tile_size (preview, &tile_width, &tile_height); + + /* force size of the drawing area to make the scrolled window work */ + gtk_layout_set_size (preview->layout, + tile_width * preview->n_columns, + tile_height); + + gtk_widget_queue_draw (GTK_WIDGET (preview->layout)); +} + +/* Zoom should always be set with one of these two function + * so that the tile size is properly updated. + */ + +static void +set_zoom_factor (GeditPrintPreview *preview, + gdouble zoom) +{ + preview->scale = zoom; + update_layout_size (preview); +} + +static void +set_zoom_fit_to_size (GeditPrintPreview *preview) +{ + GtkAdjustment *hadj, *vadj; + gdouble width, height; + gdouble paper_width, paper_height; + gdouble zoomx, zoomy; + + get_adjustments (preview, &hadj, &vadj); + + width = gtk_adjustment_get_page_size (hadj); + height = gtk_adjustment_get_page_size (vadj); + + width /= preview->n_columns; + + paper_width = get_paper_width (preview); + paper_height = get_paper_height (preview); + + zoomx = MAX (1, width - 2 * PAGE_PAD) / paper_width; + zoomy = MAX (1, height - 2 * PAGE_PAD) / paper_height; + + set_zoom_factor (preview, zoomx <= zoomy ? zoomx : zoomy); +} + +static void +zoom_in (GeditPrintPreview *preview) +{ + set_zoom_factor (preview, preview->scale * ZOOM_IN_FACTOR); +} + +static void +zoom_out (GeditPrintPreview *preview) +{ + set_zoom_factor (preview, preview->scale * ZOOM_OUT_FACTOR); +} + +static void +goto_page (GeditPrintPreview *preview, + gint page) +{ + gchar *page_str; + gint n_pages; + + page_str = g_strdup_printf ("%d", page + 1); + gtk_entry_set_text (preview->page_entry, page_str); + g_free (page_str); + + n_pages = get_n_pages (preview); + + gtk_widget_set_sensitive (GTK_WIDGET (preview->prev_button), + page > 0 && + n_pages > 1); + + gtk_widget_set_sensitive (GTK_WIDGET (preview->next_button), + page < (n_pages - 1) && + n_pages > 1); + + if (page != preview->cur_page) + { + preview->cur_page = page; + if (n_pages > 0) + { + gtk_widget_queue_draw (GTK_WIDGET (preview->layout)); + } + } +} + +static void +prev_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + GdkEvent *event; + gint page; + + event = gtk_get_current_event (); + + if (event->button.state & GDK_SHIFT_MASK) + { + page = 0; + } + else + { + page = preview->cur_page - preview->n_columns; + } + + goto_page (preview, MAX (page, 0)); + + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); + + gdk_event_free (event); +} + +static void +next_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + GdkEvent *event; + gint page; + gint n_pages = get_n_pages (preview); + + event = gtk_get_current_event (); + + if (event->button.state & GDK_SHIFT_MASK) + { + page = n_pages - 1; + } + else + { + page = preview->cur_page + preview->n_columns; + } + + goto_page (preview, MIN (page, n_pages - 1)); + + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); + + gdk_event_free (event); +} + +static void +page_entry_activated (GtkEntry *entry, + GeditPrintPreview *preview) +{ + const gchar *text; + gint page; + gint n_pages = get_n_pages (preview); + + text = gtk_entry_get_text (entry); + + page = CLAMP (atoi (text), 1, n_pages) - 1; + goto_page (preview, page); + + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +page_entry_insert_text (GtkEditable *editable, + const gchar *text, + gint length, + gint *position) +{ + const gchar *end; + const gchar *p; + + end = text + length; + + for (p = text; p < end; p = g_utf8_next_char (p)) + { + if (!g_unichar_isdigit (g_utf8_get_char (p))) + { + g_signal_stop_emission_by_name (editable, "insert-text"); + break; + } + } +} + +static gboolean +page_entry_focus_out (GtkEntry *entry, + GdkEventFocus *event, + GeditPrintPreview *preview) +{ + const gchar *text; + gint page; + + text = gtk_entry_get_text (entry); + page = atoi (text) - 1; + + /* Reset the page number only if really needed */ + if (page != preview->cur_page) + { + gchar *str; + + str = g_strdup_printf ("%d", preview->cur_page + 1); + gtk_entry_set_text (entry, str); + g_free (str); + } + + return GDK_EVENT_PROPAGATE; +} + +static void +on_1x1_clicked (GtkMenuItem *item, + GeditPrintPreview *preview) +{ + preview->n_columns = 1; + update_layout_size (preview); + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +on_1x2_clicked (GtkMenuItem *item, + GeditPrintPreview *preview) +{ + preview->n_columns = 2; + set_zoom_fit_to_size (preview); + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +multi_pages_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + GtkWidget *menu; + GtkWidget *item; + + menu = gtk_menu_new (); + gtk_widget_show (menu); + g_signal_connect (menu, + "selection-done", + G_CALLBACK (gtk_widget_destroy), + NULL); + + item = gtk_menu_item_new_with_label ("1x1"); + gtk_widget_show (item); + gtk_menu_attach (GTK_MENU (menu), item, 0, 1, 0, 1); + g_signal_connect (item, "activate", G_CALLBACK (on_1x1_clicked), preview); + + item = gtk_menu_item_new_with_label ("1x2"); + gtk_widget_show (item); + gtk_menu_attach (GTK_MENU (menu), item, 1, 2, 0, 1); + g_signal_connect (item, "activate", G_CALLBACK (on_1x2_clicked), preview); + + gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL); +} + +static void +zoom_one_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + set_zoom_factor (preview, 1); + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +zoom_fit_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + set_zoom_fit_to_size (preview); + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +zoom_in_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + zoom_in (preview); + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +zoom_out_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + zoom_out (preview); + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +close_button_clicked (GtkWidget *button, + GeditPrintPreview *preview) +{ + gtk_widget_destroy (GTK_WIDGET (preview)); +} + +static gboolean +scroll_event_activated (GtkWidget *widget, + GdkEventScroll *event, + GeditPrintPreview *preview) +{ + if (event->state & GDK_CONTROL_MASK) + { + if ((event->direction == GDK_SCROLL_UP) || + (event->direction == GDK_SCROLL_SMOOTH && + event->delta_y < 0)) + { + zoom_in (preview); + } + else if ((event->direction == GDK_SCROLL_DOWN) || + (event->direction == GDK_SCROLL_SMOOTH && + event->delta_y > 0)) + { + zoom_out (preview); + } + + return GDK_EVENT_STOP; + } + + return GDK_EVENT_PROPAGATE; +} + +static gint +get_first_page_displayed (GeditPrintPreview *preview) +{ + return preview->cur_page - (preview->cur_page % preview->n_columns); +} + +/* Returns the page number (starting from 0) or -1 if no page. */ +static gint +get_page_at_coords (GeditPrintPreview *preview, + gint x, + gint y) +{ + gint tile_width, tile_height; + GtkAdjustment *hadj, *vadj; + gint col, page; + + get_tile_size (preview, &tile_width, &tile_height); + + if (tile_height <= 0 || tile_width <= 0) + { + return -1; + } + + get_adjustments (preview, &hadj, &vadj); + + x += gtk_adjustment_get_value (hadj); + y += gtk_adjustment_get_value (vadj); + + col = x / tile_width; + + if (col >= preview->n_columns || y > tile_height) + { + return -1; + } + + page = get_first_page_displayed (preview) + col; + + if (page >= get_n_pages (preview)) + { + return -1; + } + + /* FIXME: we could try to be picky and check if we actually are inside + * the page (i.e. not in the padding or shadow). + */ + return page; +} + +static gboolean +on_preview_layout_motion_notify (GtkWidget *widget, + GdkEvent *event, + GeditPrintPreview *preview) +{ + gint temp_x; + gint temp_y; + gint diff_x; + gint diff_y; + + temp_x = ((GdkEventMotion*)event)->x; + temp_y = ((GdkEventMotion*)event)->y; + diff_x = abs (temp_x - preview->cursor_x); + diff_y = abs (temp_y - preview->cursor_y); + + if ((diff_x >= TOOLTIP_THRESHOLD) || (diff_y >= TOOLTIP_THRESHOLD)) + { + preview->has_tooltip = FALSE; + preview->cursor_x = temp_x; + preview->cursor_y = temp_y; + } + else + { + preview->has_tooltip = TRUE; + } + + return GDK_EVENT_STOP; +} + +static gboolean +preview_layout_query_tooltip (GtkWidget *widget, + gint x, + gint y, + gboolean keyboard_tip, + GtkTooltip *tooltip, + GeditPrintPreview *preview) +{ + if (preview->has_tooltip) + { + gint page; + gchar *tip; + + page = get_page_at_coords (preview, x, y); + if (page < 0) + { + return FALSE; + } + + tip = g_strdup_printf (_("Page %d of %d"), + page + 1, + get_n_pages (preview)); + + gtk_tooltip_set_text (tooltip, tip); + g_free (tip); + + return TRUE; + } + else + { + preview->has_tooltip = TRUE; + return FALSE; + } +} + +static gint +preview_layout_key_press (GtkWidget *widget, + GdkEventKey *event, + GeditPrintPreview *preview) +{ + GtkAdjustment *hadj, *vadj; + gdouble x, y; + gdouble hlower, vlower; + gdouble hupper, vupper; + gdouble visible_width, visible_height; + gdouble hstep, vstep; + gint n_pages; + gboolean do_move = FALSE; + + get_adjustments (preview, &hadj, &vadj); + + x = gtk_adjustment_get_value (hadj); + y = gtk_adjustment_get_value (vadj); + + hlower = gtk_adjustment_get_lower (hadj); + vlower = gtk_adjustment_get_lower (vadj); + + hupper = gtk_adjustment_get_upper (hadj); + vupper = gtk_adjustment_get_upper (vadj); + + visible_width = gtk_adjustment_get_page_size (hadj); + visible_height = gtk_adjustment_get_page_size (vadj); + + hstep = 10; + vstep = 10; + + n_pages = get_n_pages (preview); + + switch (event->keyval) + { + case '1': + set_zoom_fit_to_size (preview); + break; + + case '+': + case '=': + case GDK_KEY_KP_Add: + zoom_in (preview); + break; + + case '-': + case '_': + case GDK_KEY_KP_Subtract: + zoom_out (preview); + break; + + case GDK_KEY_KP_Right: + case GDK_KEY_Right: + if (event->state & GDK_SHIFT_MASK) + x = hupper - visible_width; + else + x = MIN (hupper - visible_width, x + hstep); + do_move = TRUE; + break; + + case GDK_KEY_KP_Left: + case GDK_KEY_Left: + if (event->state & GDK_SHIFT_MASK) + x = hlower; + else + x = MAX (hlower, x - hstep); + do_move = TRUE; + break; + + case GDK_KEY_KP_Up: + case GDK_KEY_Up: + if (event->state & GDK_SHIFT_MASK) + goto page_up; + + y = MAX (vlower, y - vstep); + do_move = TRUE; + break; + + case GDK_KEY_KP_Down: + case GDK_KEY_Down: + if (event->state & GDK_SHIFT_MASK) + goto page_down; + + y = MIN (vupper - visible_height, y + vstep); + do_move = TRUE; + break; + + case GDK_KEY_KP_Page_Up: + case GDK_KEY_Page_Up: + case GDK_KEY_Delete: + case GDK_KEY_KP_Delete: + case GDK_KEY_BackSpace: + page_up: + if (y <= vlower) + { + if (preview->cur_page > 0) + { + goto_page (preview, preview->cur_page - 1); + y = (vupper - visible_height); + } + } + else + { + y = vlower; + } + do_move = TRUE; + break; + + case GDK_KEY_KP_Page_Down: + case GDK_KEY_Page_Down: + case ' ': + page_down: + if (y >= (vupper - visible_height)) + { + if (preview->cur_page < n_pages - 1) + { + goto_page (preview, preview->cur_page + 1); + y = vlower; + } + } + else + { + y = (vupper - visible_height); + } + do_move = TRUE; + break; + + case GDK_KEY_KP_Home: + case GDK_KEY_Home: + goto_page (preview, 0); + y = vlower; + do_move = TRUE; + break; + + case GDK_KEY_KP_End: + case GDK_KEY_End: + goto_page (preview, n_pages - 1); + y = vlower; + do_move = TRUE; + break; + + case GDK_KEY_Escape: + gtk_widget_destroy (GTK_WIDGET (preview)); + break; + + case 'p': + if (event->state & GDK_MOD1_MASK) + { + gtk_widget_grab_focus (GTK_WIDGET (preview->page_entry)); + } + break; + + default: + return GDK_EVENT_PROPAGATE; + } + + if (do_move) + { + gtk_adjustment_set_value (hadj, x); + gtk_adjustment_set_value (vadj, y); + } + + return GDK_EVENT_STOP; +} + +static void +gedit_print_preview_init (GeditPrintPreview *preview) +{ + preview->cur_page = 0; + preview->scale = 1.0; + preview->n_columns = 1; + preview->cursor_x = 0; + preview->cursor_y = 0; + preview->has_tooltip = TRUE; + + gtk_widget_init_template (GTK_WIDGET (preview)); + + g_signal_connect (preview->prev_button, + "clicked", + G_CALLBACK (prev_button_clicked), + preview); + + g_signal_connect (preview->next_button, + "clicked", + G_CALLBACK (next_button_clicked), + preview); + + g_signal_connect (preview->page_entry, + "activate", + G_CALLBACK (page_entry_activated), + preview); + + g_signal_connect (preview->page_entry, + "insert-text", + G_CALLBACK (page_entry_insert_text), + NULL); + + g_signal_connect (preview->page_entry, + "focus-out-event", + G_CALLBACK (page_entry_focus_out), + preview); + + g_signal_connect (preview->multi_pages_button, + "clicked", + G_CALLBACK (multi_pages_button_clicked), + preview); + + g_signal_connect (preview->zoom_one_button, + "clicked", + G_CALLBACK (zoom_one_button_clicked), + preview); + + g_signal_connect (preview->zoom_fit_button, + "clicked", + G_CALLBACK (zoom_fit_button_clicked), + preview); + + g_signal_connect (preview->zoom_in_button, + "clicked", + G_CALLBACK (zoom_in_button_clicked), + preview); + + g_signal_connect (preview->zoom_out_button, + "clicked", + G_CALLBACK (zoom_out_button_clicked), + preview); + + g_signal_connect (preview->close_button, + "clicked", + G_CALLBACK (close_button_clicked), + preview); + + g_signal_connect (preview->layout, + "query-tooltip", + G_CALLBACK (preview_layout_query_tooltip), + preview); + + g_signal_connect (preview->layout, + "key-press-event", + G_CALLBACK (preview_layout_key_press), + preview); + + g_signal_connect (preview->layout, + "scroll-event", + G_CALLBACK (scroll_event_activated), + preview); + + /* hide the tooltip once we move the cursor, since gtk does not do it for us */ + g_signal_connect (preview->layout, + "motion-notify-event", + G_CALLBACK (on_preview_layout_motion_notify), + preview); + + gtk_widget_grab_focus (GTK_WIDGET (preview->layout)); +} + +static void +draw_page_content (cairo_t *cr, + gint page_number, + GeditPrintPreview *preview) +{ + gdouble dpi; + + /* scale to the desired size */ + cairo_scale (cr, preview->scale, preview->scale); + + dpi = get_screen_dpi (preview); + gtk_print_context_set_cairo_context (preview->context, cr, dpi, dpi); + + gtk_print_operation_preview_render_page (preview->gtk_preview, + page_number); +} + +/* For the frame, we scale and rotate manually, since + * the line width should not depend on the zoom and + * the drop shadow should be on the bottom right no matter + * the orientation. + */ +static void +draw_page_frame (cairo_t *cr, + GeditPrintPreview *preview) +{ + gdouble width; + gdouble height; + + width = get_paper_width (preview) * preview->scale; + height = get_paper_height (preview) * preview->scale; + + /* drop shadow */ + cairo_set_source_rgb (cr, 0, 0, 0); + cairo_rectangle (cr, + PAGE_SHADOW_OFFSET, PAGE_SHADOW_OFFSET, + width, height); + cairo_fill (cr); + + /* page frame */ + cairo_set_source_rgb (cr, 1, 1, 1); + cairo_rectangle (cr, + 0, 0, + width, height); + cairo_fill_preserve (cr); + cairo_set_source_rgb (cr, 0, 0, 0); + cairo_set_line_width (cr, 1); + cairo_stroke (cr); +} + +static void +draw_page (cairo_t *cr, + gdouble x, + gdouble y, + gint page_number, + GeditPrintPreview *preview) +{ + cairo_save (cr); + + /* move to the page top left corner */ + cairo_translate (cr, x + PAGE_PAD, y + PAGE_PAD); + + draw_page_frame (cr, preview); + draw_page_content (cr, page_number, preview); + + cairo_restore (cr); +} + +static gboolean +preview_draw (GtkWidget *widget, + cairo_t *cr, + GeditPrintPreview *preview) +{ + GdkWindow *bin_window; + gint tile_width; + gint page_num; + gint n_pages; + gint col; + + bin_window = gtk_layout_get_bin_window (preview->layout); + + if (!gtk_cairo_should_draw_window (cr, bin_window)) + { + return GDK_EVENT_STOP; + } + + cairo_save (cr); + + gtk_cairo_transform_to_window (cr, widget, bin_window); + + get_tile_size (preview, &tile_width, NULL); + n_pages = get_n_pages (preview); + + col = 0; + page_num = get_first_page_displayed (preview); + + while (col < preview->n_columns && page_num < n_pages) + { + if (!gtk_print_operation_preview_is_selected (preview->gtk_preview, page_num)) + { + page_num++; + continue; + } + + draw_page (cr, + col * tile_width, + 0, + page_num, + preview); + + col++; + page_num++; + } + + cairo_restore (cr); + + return GDK_EVENT_STOP; +} + +static void +init_last_page_label (GeditPrintPreview *preview) +{ + gchar *str; + + str = g_strdup_printf ("%d", get_n_pages (preview)); + gtk_label_set_text (preview->last_page_label, str); + g_free (str); +} + +static void +preview_ready (GtkPrintOperationPreview *gtk_preview, + GtkPrintContext *context, + GeditPrintPreview *preview) +{ + init_last_page_label (preview); + goto_page (preview, 0); + + set_zoom_factor (preview, 1.0); + + /* let the default gtklayout handler clear the background */ + g_signal_connect_after (preview->layout, + "draw", + G_CALLBACK (preview_draw), + preview); + + gtk_widget_queue_draw (GTK_WIDGET (preview->layout)); +} + +/* HACK: we need a dummy surface to paginate... can we use something simpler? */ + +static cairo_status_t +dummy_write_func (G_GNUC_UNUSED gpointer closure, + G_GNUC_UNUSED const guchar *data, + G_GNUC_UNUSED guint length) +{ + return CAIRO_STATUS_SUCCESS; +} + +static cairo_surface_t * +create_preview_surface_platform (GtkPaperSize *paper_size, + gdouble *dpi_x, + gdouble *dpi_y) +{ + gdouble width, height; + + width = gtk_paper_size_get_width (paper_size, GTK_UNIT_POINTS); + height = gtk_paper_size_get_height (paper_size, GTK_UNIT_POINTS); + + *dpi_x = *dpi_y = PRINTER_DPI; + + return cairo_pdf_surface_create_for_stream (dummy_write_func, NULL, + width, height); +} + +static cairo_surface_t * +create_preview_surface (GeditPrintPreview *preview, + gdouble *dpi_x, + gdouble *dpi_y) +{ + GtkPageSetup *page_setup; + GtkPaperSize *paper_size; + + page_setup = gtk_print_context_get_page_setup (preview->context); + + /* Note: gtk_page_setup_get_paper_size() swaps width and height for + * landscape. + */ + paper_size = gtk_page_setup_get_paper_size (page_setup); + + return create_preview_surface_platform (paper_size, dpi_x, dpi_y); +} + +GtkWidget * +gedit_print_preview_new (GtkPrintOperation *operation, + GtkPrintOperationPreview *gtk_preview, + GtkPrintContext *context) +{ + GeditPrintPreview *preview; + cairo_surface_t *surface; + cairo_t *cr; + gdouble dpi_x, dpi_y; + + g_return_val_if_fail (GTK_IS_PRINT_OPERATION (operation), NULL); + g_return_val_if_fail (GTK_IS_PRINT_OPERATION_PREVIEW (gtk_preview), NULL); + + preview = g_object_new (GEDIT_TYPE_PRINT_PREVIEW, NULL); + + preview->operation = g_object_ref (operation); + preview->gtk_preview = g_object_ref (gtk_preview); + preview->context = g_object_ref (context); + + /* FIXME: is this legal?? */ + gtk_print_operation_set_unit (operation, GTK_UNIT_POINTS); + + g_signal_connect_object (gtk_preview, + "ready", + G_CALLBACK (preview_ready), + preview, + 0); + + /* FIXME: we need a cr to paginate... but we can't get the drawing + * area surface because it's not there yet... for now I create + * a dummy pdf surface. + * gtk_print_context_set_cairo_context() should be called in the + * got-page-size handler. + */ + surface = create_preview_surface (preview, &dpi_x, &dpi_y); + cr = cairo_create (surface); + gtk_print_context_set_cairo_context (context, cr, dpi_x, dpi_y); + cairo_destroy (cr); + cairo_surface_destroy (surface); + + return GTK_WIDGET (preview); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-print-preview.h b/gedit/gedit-print-preview.h new file mode 100644 index 0000000..40d85c8 --- /dev/null +++ b/gedit/gedit-print-preview.h @@ -0,0 +1,39 @@ +/* + * gedit-print-preview.h + * + * Copyright (C) 2008 Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_PRINT_PREVIEW_H +#define GEDIT_PRINT_PREVIEW_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_PRINT_PREVIEW (gedit_print_preview_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditPrintPreview, gedit_print_preview, GEDIT, PRINT_PREVIEW, GtkGrid) + +GtkWidget *gedit_print_preview_new (GtkPrintOperation *operation, + GtkPrintOperationPreview *gtk_preview, + GtkPrintContext *context); + +G_END_DECLS + +#endif /* GEDIT_PRINT_PREVIEW_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-progress-info-bar.c b/gedit/gedit-progress-info-bar.c new file mode 100644 index 0000000..d547189 --- /dev/null +++ b/gedit/gedit-progress-info-bar.c @@ -0,0 +1,177 @@ +/* + * gedit-progress-info-bar.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-progress-info-bar.h" +#include + +enum { + PROP_0, + PROP_HAS_CANCEL_BUTTON, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +struct _GeditProgressInfoBar +{ + GtkInfoBar parent_instance; + + GtkWidget *image; + GtkWidget *label; + GtkWidget *progress; +}; + +G_DEFINE_TYPE (GeditProgressInfoBar, gedit_progress_info_bar, GTK_TYPE_INFO_BAR) + +static void +gedit_progress_info_bar_set_has_cancel_button (GeditProgressInfoBar *bar, + gboolean has_button) +{ + if (has_button) + { + gtk_info_bar_add_button (GTK_INFO_BAR (bar), _("_Cancel"), GTK_RESPONSE_CANCEL); + } +} + +static void +gedit_progress_info_bar_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditProgressInfoBar *bar; + + bar = GEDIT_PROGRESS_INFO_BAR (object); + + switch (prop_id) + { + case PROP_HAS_CANCEL_BUTTON: + gedit_progress_info_bar_set_has_cancel_button (bar, + g_value_get_boolean (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_progress_info_bar_class_init (GeditProgressInfoBarClass *klass) +{ + GObjectClass *gobject_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + gobject_class->set_property = gedit_progress_info_bar_set_property; + + properties[PROP_HAS_CANCEL_BUTTON] = + g_param_spec_boolean ("has-cancel-button", + "Has Cancel Button", + "If the message bar has a cancel button", + TRUE, + G_PARAM_WRITABLE | + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (gobject_class, LAST_PROP, properties); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-progress-info-bar.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditProgressInfoBar, image); + gtk_widget_class_bind_template_child (widget_class, GeditProgressInfoBar, label); + gtk_widget_class_bind_template_child (widget_class, GeditProgressInfoBar, progress); +} + +static void +gedit_progress_info_bar_init (GeditProgressInfoBar *bar) +{ + gtk_widget_init_template (GTK_WIDGET (bar)); +} + +GtkWidget * +gedit_progress_info_bar_new (const gchar *icon_name, + const gchar *markup, + gboolean has_cancel) +{ + GeditProgressInfoBar *bar; + + g_return_val_if_fail (icon_name != NULL, NULL); + g_return_val_if_fail (markup != NULL, NULL); + + bar = GEDIT_PROGRESS_INFO_BAR (g_object_new (GEDIT_TYPE_PROGRESS_INFO_BAR, + "has-cancel-button", has_cancel, + NULL)); + + gedit_progress_info_bar_set_icon_name (bar, icon_name); + gedit_progress_info_bar_set_markup (bar, markup); + + return GTK_WIDGET (bar); +} + +void +gedit_progress_info_bar_set_icon_name (GeditProgressInfoBar *bar, + const gchar *icon_name) +{ + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (bar)); + g_return_if_fail (icon_name != NULL); + + gtk_image_set_from_icon_name (GTK_IMAGE (bar->image), + icon_name, + GTK_ICON_SIZE_SMALL_TOOLBAR); +} + +void +gedit_progress_info_bar_set_markup (GeditProgressInfoBar *bar, + const gchar *markup) +{ + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (bar)); + g_return_if_fail (markup != NULL); + + gtk_label_set_markup (GTK_LABEL (bar->label), markup); +} + +void +gedit_progress_info_bar_set_text (GeditProgressInfoBar *bar, + const gchar *text) +{ + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (bar)); + g_return_if_fail (text != NULL); + + gtk_label_set_text (GTK_LABEL (bar->label), text); +} + +void +gedit_progress_info_bar_set_fraction (GeditProgressInfoBar *bar, + gdouble fraction) +{ + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (bar)); + + gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (bar->progress), fraction); +} + +void +gedit_progress_info_bar_pulse (GeditProgressInfoBar *bar) +{ + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (bar)); + + gtk_progress_bar_pulse (GTK_PROGRESS_BAR (bar->progress)); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-progress-info-bar.h b/gedit/gedit-progress-info-bar.h new file mode 100644 index 0000000..0d820d8 --- /dev/null +++ b/gedit/gedit-progress-info-bar.h @@ -0,0 +1,53 @@ +/* + * gedit-progress-info-bar.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_PROGRESS_INFO_BAR_H +#define GEDIT_PROGRESS_INFO_BAR_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_PROGRESS_INFO_BAR (gedit_progress_info_bar_get_type ()) +G_DECLARE_FINAL_TYPE (GeditProgressInfoBar, gedit_progress_info_bar, GEDIT, PROGRESS_INFO_BAR, GtkInfoBar) + +GtkWidget *gedit_progress_info_bar_new (const gchar *icon_name, + const gchar *markup, + gboolean has_cancel); + +void gedit_progress_info_bar_set_icon_name (GeditProgressInfoBar *bar, + const gchar *icon_name); + +void gedit_progress_info_bar_set_markup (GeditProgressInfoBar *bar, + const gchar *markup); + +void gedit_progress_info_bar_set_text (GeditProgressInfoBar *bar, + const gchar *text); + +void gedit_progress_info_bar_set_fraction (GeditProgressInfoBar *bar, + gdouble fraction); + +void gedit_progress_info_bar_pulse (GeditProgressInfoBar *bar); + +G_END_DECLS + +#endif /* GEDIT_PROGRESS_INFO_BAR_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-recent.c b/gedit/gedit-recent.c new file mode 100644 index 0000000..9cf5937 --- /dev/null +++ b/gedit/gedit-recent.c @@ -0,0 +1,324 @@ +/* + * gedit-recent.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * Copyright (C) 2014 - Paolo Borelli + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-recent.h" + +#include +#include +#include + +#include "gedit-settings.h" + +void +gedit_recent_add_document (GeditDocument *document) +{ + GtkSourceFile *file; + GFile *location; + GtkRecentManager *recent_manager; + GtkRecentData recent_data; + gchar *uri; + static gchar *groups[2]; + + g_return_if_fail (GEDIT_IS_DOCUMENT (document)); + + file = gedit_document_get_file (document); + location = gtk_source_file_get_location (file); + + if (location == NULL) + { + return; + } + + recent_manager = gtk_recent_manager_get_default (); + + groups[0] = (gchar *) g_get_application_name (); + groups[1] = NULL; + + recent_data.display_name = NULL; + recent_data.description = NULL; + recent_data.mime_type = gedit_document_get_mime_type (document); + recent_data.app_name = (gchar *) g_get_application_name (); + recent_data.app_exec = g_strjoin (" ", g_get_prgname (), "%u", NULL); + recent_data.groups = groups; + recent_data.is_private = FALSE; + + uri = g_file_get_uri (location); + + if (!gtk_recent_manager_add_full (recent_manager, uri, &recent_data)) + { + g_warning ("Failed to add uri '%s' to the recent manager.", uri); + } + + g_free (uri); + g_free (recent_data.app_exec); + g_free (recent_data.mime_type); +} + +void +gedit_recent_remove_if_local (GFile *location) +{ + g_return_if_fail (G_IS_FILE (location)); + + /* If a file is local chances are that if load/save fails the file has + * beed removed and the failure is permanent so we remove it from the + * list of recent files. For remote files the failure may be just + * transitory and we keep the file in the list. + */ + if (g_file_has_uri_scheme (location, "file")) + { + GtkRecentManager *recent_manager; + gchar *uri; + + recent_manager = gtk_recent_manager_get_default (); + + uri = g_file_get_uri (location); + gtk_recent_manager_remove_item (recent_manager, uri, NULL); + g_free (uri); + } +} + +static gint +sort_recent_items_mru (GtkRecentInfo *a, + GtkRecentInfo *b, + gpointer unused) +{ + g_assert (a != NULL && b != NULL); + return gtk_recent_info_get_modified (b) - gtk_recent_info_get_modified (a); +} + +static void +populate_filter_info (GtkRecentInfo *info, + GtkRecentFilterInfo *filter_info, + GtkRecentFilterFlags needed) +{ + filter_info->uri = gtk_recent_info_get_uri (info); + filter_info->mime_type = gtk_recent_info_get_mime_type (info); + + filter_info->contains = GTK_RECENT_FILTER_URI | GTK_RECENT_FILTER_MIME_TYPE; + + if (needed & GTK_RECENT_FILTER_DISPLAY_NAME) + { + filter_info->display_name = gtk_recent_info_get_display_name (info); + filter_info->contains |= GTK_RECENT_FILTER_DISPLAY_NAME; + } + else + { + filter_info->uri = NULL; + } + + if (needed & GTK_RECENT_FILTER_APPLICATION) + { + filter_info->applications = (const gchar **) gtk_recent_info_get_applications (info, NULL); + filter_info->contains |= GTK_RECENT_FILTER_APPLICATION; + } + else + { + filter_info->applications = NULL; + } + + if (needed & GTK_RECENT_FILTER_GROUP) + { + filter_info->groups = (const gchar **) gtk_recent_info_get_groups (info, NULL); + filter_info->contains |= GTK_RECENT_FILTER_GROUP; + } + else + { + filter_info->groups = NULL; + } + + if (needed & GTK_RECENT_FILTER_AGE) + { + filter_info->age = gtk_recent_info_get_age (info); + filter_info->contains |= GTK_RECENT_FILTER_AGE; + } + else + { + filter_info->age = -1; + } +} + +/* The GeditRecentConfiguration struct is allocated and owned by the caller */ +void +gedit_recent_configuration_init_default (GeditRecentConfiguration *config) +{ + config->manager = gtk_recent_manager_get_default (); + + if (config->filter != NULL) + { + g_object_unref (config->filter); + } + + config->filter = gtk_recent_filter_new (); + gtk_recent_filter_add_application (config->filter, g_get_application_name ()); + gtk_recent_filter_add_mime_type (config->filter, "text/plain"); + g_object_ref_sink (config->filter); + + config->limit = 5; + config->show_not_found = TRUE; + config->show_private = FALSE; + config->local_only = FALSE; + + config->substring_filter = NULL; +} + +/* The GeditRecentConfiguration struct is owned and destroyed by the caller */ +void +gedit_recent_configuration_destroy (GeditRecentConfiguration *config) +{ + g_clear_object (&config->filter); + config->manager = NULL; + + g_clear_pointer (&config->substring_filter, (GDestroyNotify)g_free); +} + +GList * +gedit_recent_get_items (GeditRecentConfiguration *config) +{ + GtkRecentFilterFlags needed; + GList *items; + GList *retitems = NULL; + gint length; + char *substring_filter = NULL; + + if (config->limit == 0) + { + return NULL; + } + + items = gtk_recent_manager_get_items (config->manager); + + if (!items) + { + return NULL; + } + + needed = gtk_recent_filter_get_needed (config->filter); + if (config->substring_filter && *config->substring_filter != '\0') + { + gchar *filter_normalized; + + filter_normalized = g_utf8_normalize (config->substring_filter, -1, G_NORMALIZE_ALL); + substring_filter = g_utf8_casefold (filter_normalized, -1); + g_free (filter_normalized); + } + + while (items) + { + GtkRecentInfo *info; + GtkRecentFilterInfo filter_info; + gboolean is_filtered; + + info = items->data; + is_filtered = FALSE; + + if (config->local_only && !gtk_recent_info_is_local (info)) + { + is_filtered = TRUE; + } + else if (!config->show_private && gtk_recent_info_get_private_hint (info)) + { + is_filtered = TRUE; + } + else if (!config->show_not_found && !gtk_recent_info_exists (info)) + { + is_filtered = TRUE; + } + else + { + if (substring_filter) + { + gchar *uri_normalized; + gchar *uri_casefolded; + + uri_normalized = g_utf8_normalize (gtk_recent_info_get_uri_display (info), -1, G_NORMALIZE_ALL); + uri_casefolded = g_utf8_casefold (uri_normalized, -1); + g_free (uri_normalized); + + if (strstr (uri_casefolded, substring_filter) == NULL) + { + is_filtered = TRUE; + } + + g_free (uri_casefolded); + } + + if (!is_filtered) + { + populate_filter_info (info, &filter_info, needed); + is_filtered = !gtk_recent_filter_filter (config->filter, &filter_info); + + /* these we own */ + if (filter_info.applications) + { + g_strfreev ((gchar **) filter_info.applications); + } + + if (filter_info.groups) + { + g_strfreev ((gchar **) filter_info.groups); + } + } + } + + if (!is_filtered) + { + retitems = g_list_prepend (retitems, info); + } + else + { + gtk_recent_info_unref (info); + } + + items = g_list_delete_link (items, items); + } + + g_free (substring_filter); + + if (!retitems) + { + return NULL; + } + + retitems = g_list_sort_with_data (retitems, (GCompareDataFunc) sort_recent_items_mru, NULL); + length = g_list_length (retitems); + + if ((config->limit != -1) && (length > config->limit)) + { + GList *clamp, *l; + + clamp = g_list_nth (retitems, config->limit - 1); + + if (!clamp) + { + return retitems; + } + + l = clamp->next; + clamp->next = NULL; + + g_list_free_full (l, (GDestroyNotify) gtk_recent_info_unref); + } + + return retitems; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-recent.h b/gedit/gedit-recent.h new file mode 100644 index 0000000..ca27bf6 --- /dev/null +++ b/gedit/gedit-recent.h @@ -0,0 +1,56 @@ +/* + * gedit-recent.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * Copyright (C) 2014 - Paolo Borelli + * Copyright (C) 2014 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANWINDOWILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_RECENT_H +#define GEDIT_RECENT_H + +#include +#include + +G_BEGIN_DECLS + +typedef struct +{ + GtkRecentManager *manager; + GtkRecentFilter *filter; + + gint limit; + gchar *substring_filter; + + guint show_private : 1; + guint show_not_found : 1; + guint local_only : 1; +} GeditRecentConfiguration; + +void gedit_recent_add_document (GeditDocument *document); + +void gedit_recent_remove_if_local (GFile *location); + +void gedit_recent_configuration_init_default (GeditRecentConfiguration *config); +void gedit_recent_configuration_destroy (GeditRecentConfiguration *config); +GList *gedit_recent_get_items (GeditRecentConfiguration *config); + +G_END_DECLS + +#endif /* GEDIT_RECENT_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-replace-dialog.c b/gedit/gedit-replace-dialog.c new file mode 100644 index 0000000..3197ae1 --- /dev/null +++ b/gedit/gedit-replace-dialog.c @@ -0,0 +1,819 @@ +/* + * gedit-replace-dialog.c + * This file is part of gedit + * + * Copyright (C) 2005 Paolo Maggi + * Copyright (C) 2013 Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-replace-dialog.h" + +#include +#include +#include + +#include "gedit-history-entry.h" +#include "gedit-document.h" + +#define GEDIT_SEARCH_CONTEXT_KEY "gedit-search-context-key" + +struct _GeditReplaceDialog +{ + GtkDialog parent_instance; + + GtkWidget *grid; + GtkWidget *search_label; + GtkWidget *search_entry; + GtkWidget *search_text_entry; + GtkWidget *replace_label; + GtkWidget *replace_entry; + GtkWidget *replace_text_entry; + GtkWidget *match_case_checkbutton; + GtkWidget *entire_word_checkbutton; + GtkWidget *regex_checkbutton; + GtkWidget *backwards_checkbutton; + GtkWidget *wrap_around_checkbutton; + GtkWidget *close_button; + + GeditDocument *active_document; + + guint idle_update_sensitivity_id; +}; + +G_DEFINE_TYPE (GeditReplaceDialog, gedit_replace_dialog, GTK_TYPE_DIALOG) + +static GtkSourceSearchContext * +get_search_context (GeditReplaceDialog *dialog, + GeditDocument *doc) +{ + GtkSourceSearchContext *search_context; + + if (doc == NULL) + { + return NULL; + } + + search_context = gedit_document_get_search_context (doc); + + if (search_context != NULL && + g_object_get_data (G_OBJECT (search_context), GEDIT_SEARCH_CONTEXT_KEY) == dialog) + { + return search_context; + } + + return NULL; +} + +/* The search settings between the dialog's widgets (checkbuttons and the text + * entry) and the SearchSettings object are not bound. Instead, this function is + * called to set the search settings from the widgets to the SearchSettings + * object. + * + * The reason: the search and replace dialog is not an incremental search. You + * have to press the buttons to have an effect. The SearchContext is created + * only when a button is pressed, not before. If the SearchContext was created + * directly when the dialog window is shown, or when the document tab is + * switched, there would be a problem. When we switch betweeen tabs to find on + * which tab(s) we want to do the search, we may have older searches (still + * highlighted) that we don't want to lose, and we don't want the new search to + * appear on each tab that we open. Only when we press a button. So when the + * SearchContext is not already created, this is not an incremental search. Once + * the SearchContext is created, it's better to be consistent, and therefore we + * don't want the incremental search: we have to always press a button to + * execute the search. + * + * Likewise, each created SearchContext (from the GeditReplaceDialog) contains a + * different SearchSettings. When set_search_settings() is called for one + * document tab (and thus one SearchSettings), it doesn't have an effect on the + * other tabs. But the dialog widgets don't change. + */ +static void +set_search_settings (GeditReplaceDialog *dialog) +{ + GtkSourceSearchContext *search_context; + GtkSourceSearchSettings *search_settings; + gboolean case_sensitive; + gboolean at_word_boundaries; + gboolean regex_enabled; + gboolean wrap_around; + const gchar *search_text; + + search_context = get_search_context (dialog, dialog->active_document); + + if (search_context == NULL) + { + return; + } + + search_settings = gtk_source_search_context_get_settings (search_context); + + case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->match_case_checkbutton)); + gtk_source_search_settings_set_case_sensitive (search_settings, case_sensitive); + + at_word_boundaries = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->entire_word_checkbutton)); + gtk_source_search_settings_set_at_word_boundaries (search_settings, at_word_boundaries); + + regex_enabled = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->regex_checkbutton)); + gtk_source_search_settings_set_regex_enabled (search_settings, regex_enabled); + + wrap_around = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->wrap_around_checkbutton)); + gtk_source_search_settings_set_wrap_around (search_settings, wrap_around); + + search_text = gtk_entry_get_text (GTK_ENTRY (dialog->search_text_entry)); + + if (regex_enabled) + { + gtk_source_search_settings_set_search_text (search_settings, search_text); + } + else + { + gchar *unescaped_search_text = gtk_source_utils_unescape_search_text (search_text); + gtk_source_search_settings_set_search_text (search_settings, unescaped_search_text); + g_free (unescaped_search_text); + } +} + +static GeditWindow * +get_gedit_window (GeditReplaceDialog *dialog) +{ + GtkWindow *transient_for = gtk_window_get_transient_for (GTK_WINDOW (dialog)); + + return transient_for != NULL ? GEDIT_WINDOW (transient_for) : NULL; +} + +static GeditDocument * +get_active_document (GeditReplaceDialog *dialog) +{ + GeditWindow *window = get_gedit_window (dialog); + + return window != NULL ? gedit_window_get_active_document (window) : NULL; +} + +void +gedit_replace_dialog_present_with_time (GeditReplaceDialog *dialog, + guint32 timestamp) +{ + g_return_if_fail (GEDIT_REPLACE_DIALOG (dialog)); + + gtk_window_present_with_time (GTK_WINDOW (dialog), timestamp); + + gtk_widget_grab_focus (dialog->search_text_entry); +} + +static gboolean +gedit_replace_dialog_delete_event (GtkWidget *widget, + GdkEventAny *event) +{ + /* prevent destruction */ + return TRUE; +} + +static void +set_error (GtkEntry *entry, + const gchar *error_msg) +{ + if (error_msg == NULL || error_msg[0] == '\0') + { + gtk_entry_set_icon_from_gicon (entry, GTK_ENTRY_ICON_SECONDARY, NULL); + gtk_entry_set_icon_tooltip_text (entry, GTK_ENTRY_ICON_SECONDARY, NULL); + } + else + { + GIcon *icon = g_themed_icon_new_with_default_fallbacks ("dialog-error-symbolic"); + + gtk_entry_set_icon_from_gicon (entry, GTK_ENTRY_ICON_SECONDARY, icon); + gtk_entry_set_icon_tooltip_text (entry, GTK_ENTRY_ICON_SECONDARY, error_msg); + + g_object_unref (icon); + } +} + +static void +set_search_error (GeditReplaceDialog *dialog, + const gchar *error_msg) +{ + set_error (GTK_ENTRY (dialog->search_text_entry), error_msg); +} + +void +gedit_replace_dialog_set_replace_error (GeditReplaceDialog *dialog, + const gchar *error_msg) +{ + set_error (GTK_ENTRY (dialog->replace_text_entry), error_msg); +} + +static gboolean +has_search_error (GeditReplaceDialog *dialog) +{ + GIcon *icon; + + icon = gtk_entry_get_icon_gicon (GTK_ENTRY (dialog->search_text_entry), + GTK_ENTRY_ICON_SECONDARY); + + return icon != NULL; +} + +static gboolean +has_replace_error (GeditReplaceDialog *dialog) +{ + GIcon *icon; + + icon = gtk_entry_get_icon_gicon (GTK_ENTRY (dialog->replace_text_entry), + GTK_ENTRY_ICON_SECONDARY); + + return icon != NULL; +} + +static void +update_regex_error (GeditReplaceDialog *dialog) +{ + GtkSourceSearchContext *search_context; + GError *regex_error; + + set_search_error (dialog, NULL); + + search_context = get_search_context (dialog, dialog->active_document); + + if (search_context == NULL) + { + return; + } + + regex_error = gtk_source_search_context_get_regex_error (search_context); + + if (regex_error != NULL) + { + set_search_error (dialog, regex_error->message); + g_error_free (regex_error); + } +} + +static gboolean +update_replace_response_sensitivity_cb (GeditReplaceDialog *dialog) +{ + GtkSourceSearchContext *search_context; + GtkTextIter start; + GtkTextIter end; + gint pos; + + if (has_replace_error (dialog)) + { + gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), + GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE, + FALSE); + + dialog->idle_update_sensitivity_id = 0; + return G_SOURCE_REMOVE; + } + + search_context = get_search_context (dialog, dialog->active_document); + + if (search_context == NULL) + { + dialog->idle_update_sensitivity_id = 0; + return G_SOURCE_REMOVE; + } + + gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (dialog->active_document), + &start, + &end); + + pos = gtk_source_search_context_get_occurrence_position (search_context, + &start, + &end); + + if (pos < 0) + { + return G_SOURCE_CONTINUE; + } + + gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), + GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE, + pos > 0); + + dialog->idle_update_sensitivity_id = 0; + return G_SOURCE_REMOVE; +} + +static void +install_idle_update_sensitivity (GeditReplaceDialog *dialog) +{ + if (dialog->idle_update_sensitivity_id != 0) + { + return; + } + + dialog->idle_update_sensitivity_id = + g_idle_add ((GSourceFunc)update_replace_response_sensitivity_cb, + dialog); +} + +static void +mark_set_cb (GtkTextBuffer *buffer, + GtkTextIter *location, + GtkTextMark *mark, + GeditReplaceDialog *dialog) +{ + GtkTextMark *insert; + GtkTextMark *selection_bound; + + insert = gtk_text_buffer_get_insert (buffer); + selection_bound = gtk_text_buffer_get_selection_bound (buffer); + + if (mark == insert || mark == selection_bound) + { + install_idle_update_sensitivity (dialog); + } +} + +static void +update_responses_sensitivity (GeditReplaceDialog *dialog) +{ + const gchar *search_text; + gboolean sensitive = TRUE; + + install_idle_update_sensitivity (dialog); + + search_text = gtk_entry_get_text (GTK_ENTRY (dialog->search_text_entry)); + + if (search_text[0] == '\0') + { + gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), + GEDIT_REPLACE_DIALOG_FIND_RESPONSE, + FALSE); + + gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), + GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE, + FALSE); + + return; + } + + sensitive = !has_search_error (dialog); + + gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), + GEDIT_REPLACE_DIALOG_FIND_RESPONSE, + sensitive); + + if (has_replace_error (dialog)) + { + sensitive = FALSE; + } + + gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), + GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE, + sensitive); +} + +static void +regex_error_notify_cb (GeditReplaceDialog *dialog) +{ + update_regex_error (dialog); + update_responses_sensitivity (dialog); +} + +static void +disconnect_document (GeditReplaceDialog *dialog) +{ + GtkSourceSearchContext *search_context; + + if (dialog->active_document == NULL) + { + return; + } + + search_context = get_search_context (dialog, dialog->active_document); + + if (search_context != NULL) + { + g_signal_handlers_disconnect_by_func (search_context, + regex_error_notify_cb, + dialog); + } + + g_signal_handlers_disconnect_by_func (dialog->active_document, + mark_set_cb, + dialog); + + g_clear_object (&dialog->active_document); +} + +static void +connect_active_document (GeditReplaceDialog *dialog) +{ + GeditDocument *doc; + GtkSourceSearchContext *search_context; + + disconnect_document (dialog); + + doc = get_active_document (dialog); + + if (doc == NULL) + { + return; + } + + dialog->active_document = g_object_ref (doc); + + search_context = get_search_context (dialog, doc); + + if (search_context == NULL) + { + GtkSourceSearchSettings *settings = gtk_source_search_settings_new (); + + search_context = gtk_source_search_context_new (GTK_SOURCE_BUFFER (doc), + settings); + + /* Mark the search context that it comes from the search and + * replace dialog. Search contexts can be created also from the + * GeditViewFrame. + */ + g_object_set_data (G_OBJECT (search_context), + GEDIT_SEARCH_CONTEXT_KEY, + dialog); + + gedit_document_set_search_context (doc, search_context); + + g_object_unref (settings); + g_object_unref (search_context); + } + + g_signal_connect_object (search_context, + "notify::regex-error", + G_CALLBACK (regex_error_notify_cb), + dialog, + G_CONNECT_SWAPPED); + + g_signal_connect_object (doc, + "mark-set", + G_CALLBACK (mark_set_cb), + dialog, + 0); + + update_regex_error (dialog); + update_responses_sensitivity (dialog); +} + +static void +response_cb (GtkDialog *dialog, + gint response_id) +{ + GeditReplaceDialog *dlg = GEDIT_REPLACE_DIALOG (dialog); + const gchar *str; + + switch (response_id) + { + case GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE: + case GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE: + str = gtk_entry_get_text (GTK_ENTRY (dlg->replace_text_entry)); + if (*str != '\0') + { + gedit_history_entry_prepend_text + (GEDIT_HISTORY_ENTRY (dlg->replace_entry), + str); + } + /* fall through, so that we also save the find entry */ + case GEDIT_REPLACE_DIALOG_FIND_RESPONSE: + str = gtk_entry_get_text (GTK_ENTRY (dlg->search_text_entry)); + if (*str != '\0') + { + gedit_history_entry_prepend_text + (GEDIT_HISTORY_ENTRY (dlg->search_entry), + str); + } + } + + switch (response_id) + { + case GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE: + case GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE: + case GEDIT_REPLACE_DIALOG_FIND_RESPONSE: + connect_active_document (GEDIT_REPLACE_DIALOG (dialog)); + set_search_settings (GEDIT_REPLACE_DIALOG (dialog)); + } +} + +static void +gedit_replace_dialog_dispose (GObject *object) +{ + GeditReplaceDialog *dialog = GEDIT_REPLACE_DIALOG (object); + + g_clear_object (&dialog->active_document); + + if (dialog->idle_update_sensitivity_id != 0) + { + g_source_remove (dialog->idle_update_sensitivity_id); + dialog->idle_update_sensitivity_id = 0; + } + + G_OBJECT_CLASS (gedit_replace_dialog_parent_class)->dispose (object); +} + +static void +gedit_replace_dialog_class_init (GeditReplaceDialogClass *klass) +{ + GObjectClass *gobject_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + gobject_class->dispose = gedit_replace_dialog_dispose; + widget_class->delete_event = gedit_replace_dialog_delete_event; + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-replace-dialog.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, grid); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, search_label); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, replace_label); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, match_case_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, entire_word_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, regex_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, backwards_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, wrap_around_checkbutton); + gtk_widget_class_bind_template_child (widget_class, GeditReplaceDialog, close_button); +} + +static void +search_text_entry_changed (GtkEditable *editable, + GeditReplaceDialog *dialog) +{ + set_search_error (dialog, NULL); + + update_responses_sensitivity (dialog); +} + +static void +replace_text_entry_changed (GtkEditable *editable, + GeditReplaceDialog *dialog) +{ + gedit_replace_dialog_set_replace_error (dialog, NULL); + + update_responses_sensitivity (dialog); +} + +static void +regex_checkbutton_toggled (GtkToggleButton *checkbutton, + GeditReplaceDialog *dialog) +{ + if (!gtk_toggle_button_get_active (checkbutton)) + { + /* Remove the regex error state so the user can search again */ + set_search_error (dialog, NULL); + update_responses_sensitivity (dialog); + } +} + +/* TODO: move in gedit-document.c and share it with gedit-view-frame */ +static gboolean +get_selected_text (GtkTextBuffer *doc, + gchar **selected_text, + gint *len) +{ + GtkTextIter start, end; + + g_return_val_if_fail (selected_text != NULL, FALSE); + g_return_val_if_fail (*selected_text == NULL, FALSE); + + if (!gtk_text_buffer_get_selection_bounds (doc, &start, &end)) + { + if (len != NULL) + { + len = 0; + } + + return FALSE; + } + + *selected_text = gtk_text_buffer_get_slice (doc, &start, &end, TRUE); + + if (len != NULL) + { + *len = g_utf8_strlen (*selected_text, -1); + } + + return TRUE; +} + +static void +show_cb (GeditReplaceDialog *dialog) +{ + GeditWindow *window; + GeditDocument *doc; + gboolean selection_exists; + gchar *selection = NULL; + gint selection_length; + + window = get_gedit_window (dialog); + + if (window == NULL) + { + return; + } + + doc = get_active_document (dialog); + + if (doc == NULL) + { + return; + } + + selection_exists = get_selected_text (GTK_TEXT_BUFFER (doc), + &selection, + &selection_length); + + if (selection_exists && selection != NULL && selection_length < 80) + { + gboolean regex_enabled; + gchar *escaped_selection; + + regex_enabled = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->regex_checkbutton)); + + if (regex_enabled) + { + escaped_selection = g_regex_escape_string (selection, -1); + } + else + { + escaped_selection = gtk_source_utils_escape_search_text (selection); + } + + gtk_entry_set_text (GTK_ENTRY (dialog->search_text_entry), + escaped_selection); + + g_free (escaped_selection); + } + + g_free (selection); +} + +static void +hide_cb (GeditReplaceDialog *dialog) +{ + disconnect_document (dialog); +} + +static void +gedit_replace_dialog_init (GeditReplaceDialog *dlg) +{ + gtk_widget_init_template (GTK_WIDGET (dlg)); + + dlg->search_entry = gedit_history_entry_new ("search-for-entry", TRUE); + gtk_widget_set_size_request (dlg->search_entry, 300, -1); + gtk_widget_set_hexpand (GTK_WIDGET (dlg->search_entry), TRUE); + dlg->search_text_entry = gedit_history_entry_get_entry (GEDIT_HISTORY_ENTRY (dlg->search_entry)); + gtk_entry_set_activates_default (GTK_ENTRY (dlg->search_text_entry), TRUE); + gtk_grid_attach_next_to (GTK_GRID (dlg->grid), + dlg->search_entry, + dlg->search_label, + GTK_POS_RIGHT, 1, 1); + gtk_widget_show_all (dlg->search_entry); + + dlg->replace_entry = gedit_history_entry_new ("replace-with-entry", TRUE); + gtk_widget_set_hexpand (GTK_WIDGET (dlg->replace_entry), TRUE); + dlg->replace_text_entry = gedit_history_entry_get_entry (GEDIT_HISTORY_ENTRY (dlg->replace_entry)); + gtk_entry_set_placeholder_text (GTK_ENTRY (dlg->replace_text_entry), _("Nothing")); + gtk_entry_set_activates_default (GTK_ENTRY (dlg->replace_text_entry), TRUE); + gtk_grid_attach_next_to (GTK_GRID (dlg->grid), + dlg->replace_entry, + dlg->replace_label, + GTK_POS_RIGHT, 1, 1); + gtk_widget_show_all (dlg->replace_entry); + + gtk_label_set_mnemonic_widget (GTK_LABEL (dlg->search_label), + dlg->search_entry); + gtk_label_set_mnemonic_widget (GTK_LABEL (dlg->replace_label), + dlg->replace_entry); + + gtk_dialog_set_default_response (GTK_DIALOG (dlg), + GEDIT_REPLACE_DIALOG_FIND_RESPONSE); + + /* insensitive by default */ + gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), + GEDIT_REPLACE_DIALOG_FIND_RESPONSE, + FALSE); + gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), + GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE, + FALSE); + gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), + GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE, + FALSE); + + g_signal_connect (dlg->search_text_entry, + "changed", + G_CALLBACK (search_text_entry_changed), + dlg); + + g_signal_connect (dlg->replace_text_entry, + "changed", + G_CALLBACK (replace_text_entry_changed), + dlg); + + g_signal_connect (dlg->regex_checkbutton, + "toggled", + G_CALLBACK (regex_checkbutton_toggled), + dlg); + + g_signal_connect (dlg, + "show", + G_CALLBACK (show_cb), + NULL); + + g_signal_connect (dlg, + "hide", + G_CALLBACK (hide_cb), + NULL); + + /* We connect here to make sure this handler runs before the others so + * that the search context is created. + */ + g_signal_connect (dlg, + "response", + G_CALLBACK (response_cb), + NULL); +} + +GtkWidget * +gedit_replace_dialog_new (GeditWindow *window) +{ + GeditReplaceDialog *dialog; + gboolean use_header; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + dialog = g_object_new (GEDIT_TYPE_REPLACE_DIALOG, + "transient-for", window, + "destroy-with-parent", TRUE, + "use-header-bar", FALSE, + NULL); + + /* We want the Find/Replace/ReplaceAll buttons at the bottom, + * so we turn off the automatic header bar, but we check the + * setting and if a header bar should be used, we create it + * manually and use it for the close button. + */ + g_object_get (gtk_settings_get_default (), + "gtk-dialogs-use-header", &use_header, + NULL); + + if (use_header) + { + GtkWidget *header_bar; + + header_bar = gtk_header_bar_new (); + gtk_header_bar_set_title (GTK_HEADER_BAR (header_bar), _("Find and Replace")); + gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (header_bar), TRUE); + gtk_widget_show (header_bar); + gtk_window_set_titlebar (GTK_WINDOW (dialog), header_bar); + } + else + { + gtk_widget_set_no_show_all (dialog->close_button, FALSE); + gtk_widget_show (dialog->close_button); + } + + return GTK_WIDGET (dialog); +} + +const gchar * +gedit_replace_dialog_get_replace_text (GeditReplaceDialog *dialog) +{ + g_return_val_if_fail (GEDIT_IS_REPLACE_DIALOG (dialog), NULL); + + return gtk_entry_get_text (GTK_ENTRY (dialog->replace_text_entry)); +} + +gboolean +gedit_replace_dialog_get_backwards (GeditReplaceDialog *dialog) +{ + g_return_val_if_fail (GEDIT_IS_REPLACE_DIALOG (dialog), FALSE); + + return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->backwards_checkbutton)); +} + +/* This function returns the original search text. The search text from the + * search settings has been unescaped, and the escape function is not + * reciprocal. So to avoid bugs, we have to deal with the original search text. + */ +const gchar * +gedit_replace_dialog_get_search_text (GeditReplaceDialog *dialog) +{ + g_return_val_if_fail (GEDIT_IS_REPLACE_DIALOG (dialog), NULL); + + return gtk_entry_get_text (GTK_ENTRY (dialog->search_text_entry)); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-replace-dialog.h b/gedit/gedit-replace-dialog.h new file mode 100644 index 0000000..235b587 --- /dev/null +++ b/gedit/gedit-replace-dialog.h @@ -0,0 +1,58 @@ +/* + * gedit-replace-dialog.h + * This file is part of gedit + * + * Copyright (C) 2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_REPLACE_DIALOG_H +#define GEDIT_REPLACE_DIALOG_H + +#include +#include +#include "gedit-window.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_REPLACE_DIALOG (gedit_replace_dialog_get_type ()) +G_DECLARE_FINAL_TYPE (GeditReplaceDialog, gedit_replace_dialog, GEDIT, REPLACE_DIALOG, GtkDialog) + +enum +{ + GEDIT_REPLACE_DIALOG_FIND_RESPONSE = 100, + GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE, + GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE +}; + +GtkWidget *gedit_replace_dialog_new (GeditWindow *window); + +void gedit_replace_dialog_present_with_time (GeditReplaceDialog *dialog, + guint32 timestamp); + +const gchar *gedit_replace_dialog_get_search_text (GeditReplaceDialog *dialog); + +const gchar *gedit_replace_dialog_get_replace_text (GeditReplaceDialog *dialog); + +gboolean gedit_replace_dialog_get_backwards (GeditReplaceDialog *dialog); + +void gedit_replace_dialog_set_replace_error (GeditReplaceDialog *dialog, + const gchar *error_msg); + +G_END_DECLS + +#endif /* GEDIT_REPLACE_DIALOG_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-settings.c b/gedit/gedit-settings.c new file mode 100644 index 0000000..5083e1e --- /dev/null +++ b/gedit/gedit-settings.c @@ -0,0 +1,440 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2002-2005 - Paolo Maggi + * Copyright (C) 2009 - Ignacio Casal Quinteiro + * Copyright (C) 2020 - Sébastien Wilmet + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "gedit-settings.h" +#include +#include "gedit-app.h" +#include "gedit-view.h" + +#define GEDIT_SETTINGS_SYSTEM_FONT "monospace-font-name" + +struct _GeditSettings +{ + GObject parent_instance; + + GSettings *settings_interface; + GSettings *settings_editor; + GSettings *settings_ui; + GSettings *settings_file_chooser_state; +}; + +/* GeditSettings is a singleton. */ +static GeditSettings *singleton = NULL; + +G_DEFINE_TYPE (GeditSettings, gedit_settings, G_TYPE_OBJECT) + +static void +gedit_settings_dispose (GObject *object) +{ + GeditSettings *self = GEDIT_SETTINGS (object); + + g_clear_object (&self->settings_interface); + g_clear_object (&self->settings_editor); + g_clear_object (&self->settings_ui); + g_clear_object (&self->settings_file_chooser_state); + + G_OBJECT_CLASS (gedit_settings_parent_class)->dispose (object); +} + +static void +gedit_settings_finalize (GObject *object) +{ + GeditSettings *self = GEDIT_SETTINGS (object); + + if (singleton == self) + { + singleton = NULL; + } + + G_OBJECT_CLASS (gedit_settings_parent_class)->finalize (object); +} + +static void +set_font (GeditSettings *self, + const gchar *font) +{ + guint tabs_size; + GList *views; + GList *l; + + tabs_size = g_settings_get_uint (self->settings_editor, GEDIT_SETTINGS_TABS_SIZE); + + views = gedit_app_get_views (GEDIT_APP (g_application_get_default ())); + + for (l = views; l != NULL; l = l->next) + { + /* Note: we use def=FALSE to avoid GeditView to query dconf. */ + gedit_view_set_font (GEDIT_VIEW (l->data), FALSE, font); + + /* FIXME: setting the tab width seems unrelated to set_font(). */ + gtk_source_view_set_tab_width (GTK_SOURCE_VIEW (l->data), tabs_size); + } + + g_list_free (views); +} + +static void +on_system_font_changed (GSettings *settings, + const gchar *key, + GeditSettings *self) +{ + + gboolean use_default_font; + + use_default_font = g_settings_get_boolean (self->settings_editor, GEDIT_SETTINGS_USE_DEFAULT_FONT); + + if (use_default_font) + { + gchar *font; + + font = g_settings_get_string (settings, key); + set_font (self, font); + g_free (font); + } +} + +static void +on_use_default_font_changed (GSettings *settings, + const gchar *key, + GeditSettings *self) +{ + gboolean use_default_font; + gchar *font; + + use_default_font = g_settings_get_boolean (settings, key); + + if (use_default_font) + { + font = g_settings_get_string (self->settings_interface, GEDIT_SETTINGS_SYSTEM_FONT); + } + else + { + font = g_settings_get_string (self->settings_editor, GEDIT_SETTINGS_EDITOR_FONT); + } + + set_font (self, font); + + g_free (font); +} + +static void +on_editor_font_changed (GSettings *settings, + const gchar *key, + GeditSettings *self) +{ + gboolean use_default_font; + + use_default_font = g_settings_get_boolean (self->settings_editor, GEDIT_SETTINGS_USE_DEFAULT_FONT); + + if (!use_default_font) + { + gchar *font; + + font = g_settings_get_string (settings, key); + set_font (self, font); + g_free (font); + } +} + +static void +on_auto_save_changed (GSettings *settings, + const gchar *key, + GeditSettings *self) +{ + gboolean auto_save; + GList *docs; + GList *l; + + auto_save = g_settings_get_boolean (settings, key); + + docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ())); + + for (l = docs; l != NULL; l = l->next) + { + GeditTab *tab = gedit_tab_get_from_document (GEDIT_DOCUMENT (l->data)); + gedit_tab_set_auto_save_enabled (tab, auto_save); + } + + g_list_free (docs); +} + +static void +on_auto_save_interval_changed (GSettings *settings, + const gchar *key, + GeditSettings *self) +{ + guint auto_save_interval; + GList *docs; + GList *l; + + auto_save_interval = g_settings_get_uint (settings, key); + + docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ())); + + for (l = docs; l != NULL; l = l->next) + { + GeditTab *tab = gedit_tab_get_from_document (GEDIT_DOCUMENT (l->data)); + gedit_tab_set_auto_save_interval (tab, auto_save_interval); + } + + g_list_free (docs); +} + +static void +on_syntax_highlighting_changed (GSettings *settings, + const gchar *key, + GeditSettings *self) +{ + gboolean enable; + GList *docs; + GList *windows; + GList *l; + + enable = g_settings_get_boolean (settings, key); + + docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ())); + + for (l = docs; l != NULL; l = l->next) + { + GtkSourceBuffer *buffer = GTK_SOURCE_BUFFER (l->data); + gtk_source_buffer_set_highlight_syntax (buffer, enable); + } + + g_list_free (docs); + + /* update the sensitivity of the Higlight Mode menu item */ + windows = gedit_app_get_main_windows (GEDIT_APP (g_application_get_default ())); + + for (l = windows; l != NULL; l = l->next) + { + GAction *action; + + action = g_action_map_lookup_action (G_ACTION_MAP (l->data), "highlight-mode"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enable); + } + + g_list_free (windows); +} + +static void +gedit_settings_class_init (GeditSettingsClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_settings_dispose; + object_class->finalize = gedit_settings_finalize; +} + +static void +gedit_settings_init (GeditSettings *self) +{ + self->settings_editor = g_settings_new ("org.gnome.gedit.preferences.editor"); + self->settings_ui = g_settings_new ("org.gnome.gedit.preferences.ui"); + self->settings_file_chooser_state = g_settings_new ("org.gnome.gedit.state.file-chooser"); + + self->settings_interface = g_settings_new ("org.gnome.desktop.interface"); + + g_signal_connect (self->settings_interface, + "changed::monospace-font-name", + G_CALLBACK (on_system_font_changed), + self); + + /* editor changes */ + + g_signal_connect (self->settings_editor, + "changed::use-default-font", + G_CALLBACK (on_use_default_font_changed), + self); + + g_signal_connect (self->settings_editor, + "changed::editor-font", + G_CALLBACK (on_editor_font_changed), + self); + + g_signal_connect (self->settings_editor, + "changed::auto-save", + G_CALLBACK (on_auto_save_changed), + self); + + g_signal_connect (self->settings_editor, + "changed::auto-save-interval", + G_CALLBACK (on_auto_save_interval_changed), + self); + + g_signal_connect (self->settings_editor, + "changed::syntax-highlighting", + G_CALLBACK (on_syntax_highlighting_changed), + self); +} + +GeditSettings * +_gedit_settings_get_singleton (void) +{ + if (singleton == NULL) + { + singleton = g_object_new (GEDIT_TYPE_SETTINGS, NULL); + } + + return singleton; +} + +void +gedit_settings_unref_singleton (void) +{ + if (singleton != NULL) + { + g_object_unref (singleton); + } + + /* singleton is not set to NULL here, it is set to NULL in + * gedit_settings_finalize() (i.e. when we are sure that the ref count + * reaches 0). + */ +} + +GSettings * +_gedit_settings_peek_editor_settings (GeditSettings *self) +{ + g_return_val_if_fail (GEDIT_IS_SETTINGS (self), NULL); + + return self->settings_editor; +} + +GSettings * +_gedit_settings_peek_file_chooser_state_settings (GeditSettings *self) +{ + g_return_val_if_fail (GEDIT_IS_SETTINGS (self), NULL); + + return self->settings_file_chooser_state; +} + +gchar * +gedit_settings_get_system_font (GeditSettings *self) +{ + g_return_val_if_fail (GEDIT_IS_SETTINGS (self), NULL); + + return g_settings_get_string (self->settings_interface, "monospace-font-name"); +} + +static gboolean +strv_is_empty (gchar **strv) +{ + if (strv == NULL || strv[0] == NULL) + { + return TRUE; + } + + /* Contains one empty string. */ + if (strv[1] == NULL && strv[0][0] == '\0') + { + return TRUE; + } + + return FALSE; +} + +static GSList * +encoding_strv_to_list (const gchar * const *encoding_strv) +{ + GSList *list = NULL; + gchar **p; + + for (p = (gchar **)encoding_strv; p != NULL && *p != NULL; p++) + { + const gchar *charset = *p; + const GtkSourceEncoding *encoding; + + encoding = gtk_source_encoding_get_from_charset (charset); + + if (encoding != NULL && + g_slist_find (list, encoding) == NULL) + { + list = g_slist_prepend (list, (gpointer)encoding); + } + } + + return g_slist_reverse (list); +} + +/* Take in priority the candidate encodings from GSettings. If the gsetting is + * empty, take the default candidates of GtkSourceEncoding. + * Also, ensure that UTF-8 and the current locale encoding are present. + * Returns: a list of GtkSourceEncodings. Free with g_slist_free(). + */ +GSList * +gedit_settings_get_candidate_encodings (gboolean *default_candidates) +{ + const GtkSourceEncoding *utf8_encoding; + const GtkSourceEncoding *current_encoding; + GSettings *settings; + gchar **settings_strv; + GSList *candidates; + + utf8_encoding = gtk_source_encoding_get_utf8 (); + current_encoding = gtk_source_encoding_get_current (); + + settings = g_settings_new ("org.gnome.gedit.preferences.encodings"); + + settings_strv = g_settings_get_strv (settings, GEDIT_SETTINGS_CANDIDATE_ENCODINGS); + + if (strv_is_empty (settings_strv)) + { + if (default_candidates != NULL) + { + *default_candidates = TRUE; + } + + candidates = gtk_source_encoding_get_default_candidates (); + } + else + { + if (default_candidates != NULL) + { + *default_candidates = FALSE; + } + + candidates = encoding_strv_to_list ((const gchar * const *) settings_strv); + + /* Ensure that UTF-8 is present. */ + if (utf8_encoding != current_encoding && + g_slist_find (candidates, utf8_encoding) == NULL) + { + candidates = g_slist_prepend (candidates, (gpointer)utf8_encoding); + } + + /* Ensure that the current locale encoding is present (if not + * present, it must be the first encoding). + */ + if (g_slist_find (candidates, current_encoding) == NULL) + { + candidates = g_slist_prepend (candidates, (gpointer)current_encoding); + } + } + + g_object_unref (settings); + g_strfreev (settings_strv); + return candidates; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-settings.h b/gedit/gedit-settings.h new file mode 100644 index 0000000..82a8853 --- /dev/null +++ b/gedit/gedit-settings.h @@ -0,0 +1,108 @@ +/* + * This file is part of gedit + * + * Copyright (C) 2002 - Paolo Maggi + * Copyright (C) 2009 - Ignacio Casal Quinteiro + * Copyright (C) 2020 - Sébastien Wilmet + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_SETTINGS_H +#define GEDIT_SETTINGS_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_SETTINGS (gedit_settings_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditSettings, gedit_settings, GEDIT, SETTINGS, GObject) + +G_GNUC_INTERNAL +GeditSettings * _gedit_settings_get_singleton (void); + +void gedit_settings_unref_singleton (void); + +G_GNUC_INTERNAL +GSettings * _gedit_settings_peek_editor_settings (GeditSettings *self); + +G_GNUC_INTERNAL +GSettings * _gedit_settings_peek_file_chooser_state_settings (GeditSettings *self); + +gchar * gedit_settings_get_system_font (GeditSettings *self); + +GSList * gedit_settings_get_candidate_encodings (gboolean *default_candidates); + +/* key constants */ +#define GEDIT_SETTINGS_USE_DEFAULT_FONT "use-default-font" +#define GEDIT_SETTINGS_EDITOR_FONT "editor-font" +#define GEDIT_SETTINGS_SCHEME "scheme" +#define GEDIT_SETTINGS_CREATE_BACKUP_COPY "create-backup-copy" +#define GEDIT_SETTINGS_AUTO_SAVE "auto-save" +#define GEDIT_SETTINGS_AUTO_SAVE_INTERVAL "auto-save-interval" +#define GEDIT_SETTINGS_MAX_UNDO_ACTIONS "max-undo-actions" +#define GEDIT_SETTINGS_WRAP_MODE "wrap-mode" +#define GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE "wrap-last-split-mode" +#define GEDIT_SETTINGS_TABS_SIZE "tabs-size" +#define GEDIT_SETTINGS_INSERT_SPACES "insert-spaces" +#define GEDIT_SETTINGS_AUTO_INDENT "auto-indent" +#define GEDIT_SETTINGS_DISPLAY_LINE_NUMBERS "display-line-numbers" +#define GEDIT_SETTINGS_HIGHLIGHT_CURRENT_LINE "highlight-current-line" +#define GEDIT_SETTINGS_BRACKET_MATCHING "bracket-matching" +#define GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN "display-right-margin" +#define GEDIT_SETTINGS_RIGHT_MARGIN_POSITION "right-margin-position" +#define GEDIT_SETTINGS_SMART_HOME_END "smart-home-end" +#define GEDIT_SETTINGS_RESTORE_CURSOR_POSITION "restore-cursor-position" +#define GEDIT_SETTINGS_SYNTAX_HIGHLIGHTING "syntax-highlighting" +#define GEDIT_SETTINGS_SEARCH_HIGHLIGHTING "search-highlighting" +#define GEDIT_SETTINGS_BACKGROUND_PATTERN "background-pattern" +#define GEDIT_SETTINGS_STATUSBAR_VISIBLE "statusbar-visible" +#define GEDIT_SETTINGS_SIDE_PANEL_VISIBLE "side-panel-visible" +#define GEDIT_SETTINGS_BOTTOM_PANEL_VISIBLE "bottom-panel-visible" +#define GEDIT_SETTINGS_PRINT_SYNTAX_HIGHLIGHTING "print-syntax-highlighting" +#define GEDIT_SETTINGS_PRINT_HEADER "print-header" +#define GEDIT_SETTINGS_PRINT_WRAP_MODE "print-wrap-mode" +#define GEDIT_SETTINGS_PRINT_LINE_NUMBERS "print-line-numbers" +#define GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO "print-font-body-pango" +#define GEDIT_SETTINGS_PRINT_FONT_HEADER_PANGO "print-font-header-pango" +#define GEDIT_SETTINGS_PRINT_FONT_NUMBERS_PANGO "print-font-numbers-pango" +#define GEDIT_SETTINGS_PRINT_MARGIN_LEFT "margin-left" +#define GEDIT_SETTINGS_PRINT_MARGIN_TOP "margin-top" +#define GEDIT_SETTINGS_PRINT_MARGIN_RIGHT "margin-right" +#define GEDIT_SETTINGS_PRINT_MARGIN_BOTTOM "margin-bottom" +#define GEDIT_SETTINGS_CANDIDATE_ENCODINGS "candidate-encodings" +#define GEDIT_SETTINGS_ACTIVE_PLUGINS "active-plugins" +#define GEDIT_SETTINGS_ENSURE_TRAILING_NEWLINE "ensure-trailing-newline" + +/* window state keys */ +#define GEDIT_SETTINGS_WINDOW_STATE "state" +#define GEDIT_SETTINGS_WINDOW_SIZE "size" +#define GEDIT_SETTINGS_SHOW_TABS_MODE "show-tabs-mode" +#define GEDIT_SETTINGS_SIDE_PANEL_SIZE "side-panel-size" +#define GEDIT_SETTINGS_SIDE_PANEL_ACTIVE_PAGE "side-panel-active-page" +#define GEDIT_SETTINGS_BOTTOM_PANEL_SIZE "bottom-panel-size" +#define GEDIT_SETTINGS_BOTTOM_PANEL_ACTIVE_PAGE "bottom-panel-active-page" + +/* file chooser state keys */ +#define GEDIT_SETTINGS_ACTIVE_FILE_FILTER "filter-id" +#define GEDIT_SETTINGS_FILE_CHOOSER_OPEN_RECENT "open-recent" + +G_END_DECLS + +#endif /* GEDIT_SETTINGS_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-status-menu-button.c b/gedit/gedit-status-menu-button.c new file mode 100644 index 0000000..3f46a48 --- /dev/null +++ b/gedit/gedit-status-menu-button.c @@ -0,0 +1,163 @@ +/* + * gedit-status-menu-button.c + * This file is part of gedit + * + * Copyright (C) 2008 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-status-menu-button.h" + +struct _GeditStatusMenuButton +{ + GtkMenuButton parent_instance; + + GtkWidget *label; +}; + +typedef struct +{ + GtkCssProvider *css; +} GeditStatusMenuButtonClassPrivate; + +enum +{ + PROP_0, + PROP_LABEL, + LAST_PROP +}; + +G_DEFINE_TYPE_WITH_CODE (GeditStatusMenuButton, + gedit_status_menu_button, + GTK_TYPE_MENU_BUTTON, + g_type_add_class_private (g_define_type_id, sizeof (GeditStatusMenuButtonClassPrivate))) + +static void +gedit_status_menu_button_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditStatusMenuButton *obj = GEDIT_STATUS_MENU_BUTTON (object); + + switch (prop_id) + { + case PROP_LABEL: + g_value_set_string (value, gedit_status_menu_button_get_label (obj)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_status_menu_button_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditStatusMenuButton *obj = GEDIT_STATUS_MENU_BUTTON (object); + + switch (prop_id) + { + case PROP_LABEL: + gedit_status_menu_button_set_label (obj, g_value_get_string (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_status_menu_button_class_init (GeditStatusMenuButtonClass *klass) +{ + static const gchar style[] = + "* {\n" + "padding: 1px 8px 2px 4px;\n" + "border: 0;\n" + "outline-width: 0;\n" + "}"; + + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GeditStatusMenuButtonClassPrivate *class_priv; + + object_class->get_property = gedit_status_menu_button_get_property; + object_class->set_property = gedit_status_menu_button_set_property; + + g_object_class_override_property (object_class, PROP_LABEL, "label"); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-status-menu-button.ui"); + gtk_widget_class_bind_template_child_internal (widget_class, GeditStatusMenuButton, label); + + /* Store the CSS provider in the class private data so it is shared among all instances */ + class_priv = G_TYPE_CLASS_GET_PRIVATE (klass, GEDIT_TYPE_STATUS_MENU_BUTTON, GeditStatusMenuButtonClassPrivate); + class_priv->css = gtk_css_provider_new (); + gtk_css_provider_load_from_data (class_priv->css, style, -1, NULL); +} + +static void +gedit_status_menu_button_init (GeditStatusMenuButton *self) +{ + GtkStyleContext *context; + GeditStatusMenuButtonClassPrivate *class_priv; + + gtk_widget_init_template (GTK_WIDGET (self)); + + /* make it as small as possible */ + context = gtk_widget_get_style_context (GTK_WIDGET (self)); + class_priv = G_TYPE_CLASS_GET_PRIVATE (G_TYPE_INSTANCE_GET_CLASS (self, GEDIT_TYPE_STATUS_MENU_BUTTON, GeditStatusMenuButtonClass), + GEDIT_TYPE_STATUS_MENU_BUTTON, + GeditStatusMenuButtonClassPrivate); + gtk_style_context_add_provider (context, + GTK_STYLE_PROVIDER (class_priv->css), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); +} + +/** + * gedit_status_menu_button_new: + * @label: (allow-none): + */ +GtkWidget * +gedit_status_menu_button_new (void) +{ + return g_object_new (GEDIT_TYPE_STATUS_MENU_BUTTON, NULL); +} + +/* we cannot rely on gtk_button_set_label since it manually replaces + * the internal child instead of just setting the property :( */ + +void +gedit_status_menu_button_set_label (GeditStatusMenuButton *button, + const gchar *label) +{ + g_return_if_fail (GEDIT_IS_STATUS_MENU_BUTTON (button)); + + gtk_label_set_markup (GTK_LABEL (button->label), label); +} + +const gchar * +gedit_status_menu_button_get_label (GeditStatusMenuButton *button) +{ + g_return_val_if_fail (GEDIT_IS_STATUS_MENU_BUTTON (button), NULL); + + return gtk_label_get_label (GTK_LABEL (button->label)); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-status-menu-button.h b/gedit/gedit-status-menu-button.h new file mode 100644 index 0000000..baeaa53 --- /dev/null +++ b/gedit/gedit-status-menu-button.h @@ -0,0 +1,43 @@ +/* + * gedit-status-menu-button.h + * This file is part of gedit + * + * Copyright (C) 2008 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_STATUS_MENU_BUTTON_H +#define GEDIT_STATUS_MENU_BUTTON_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_STATUS_MENU_BUTTON (gedit_status_menu_button_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditStatusMenuButton, gedit_status_menu_button, GEDIT, STATUS_MENU_BUTTON, GtkMenuButton) + +GtkWidget *gedit_status_menu_button_new (void); + +void gedit_status_menu_button_set_label (GeditStatusMenuButton *button, + const gchar *label); + +const gchar *gedit_status_menu_button_get_label (GeditStatusMenuButton *button); + +G_END_DECLS + +#endif /* GEDIT_STATUS_MENU_BUTTON_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-statusbar.c b/gedit/gedit-statusbar.c new file mode 100644 index 0000000..2572f76 --- /dev/null +++ b/gedit/gedit-statusbar.c @@ -0,0 +1,258 @@ +/* + * gedit-statusbar.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-statusbar.h" + +#include +#include +#include + +#include "gedit-app.h" +#include "gedit-status-menu-button.h" + +struct _GeditStatusbar +{ + GtkStatusbar parent_instance; + + GtkWidget *error_frame; + GtkWidget *error_image; + GtkWidget *state_frame; + GtkWidget *load_image; + GtkWidget *save_image; + GtkWidget *print_image; + GtkWidget *overwrite_mode_label; + + /* tmp flash timeout data */ + guint flash_timeout; + guint flash_context_id; + guint flash_message_id; +}; + +G_DEFINE_TYPE (GeditStatusbar, gedit_statusbar, GTK_TYPE_STATUSBAR) + +static gchar * +get_overwrite_mode_string (gboolean overwrite) +{ + /* Use spaces to leave padding proportional to the font size */ + return g_strdup_printf (" %s ", overwrite ? _("OVR") : _("INS")); +} + +static gint +get_overwrite_mode_length (void) +{ + return 4 + MAX (g_utf8_strlen (_("OVR"), -1), g_utf8_strlen (_("INS"), -1)); +} + +static void +gedit_statusbar_dispose (GObject *object) +{ + GeditStatusbar *statusbar = GEDIT_STATUSBAR (object); + + if (statusbar->flash_timeout > 0) + { + g_source_remove (statusbar->flash_timeout); + statusbar->flash_timeout = 0; + } + + G_OBJECT_CLASS (gedit_statusbar_parent_class)->dispose (object); +} + +static void +gedit_statusbar_class_init (GeditStatusbarClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->dispose = gedit_statusbar_dispose; + + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-statusbar.ui"); + + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, error_frame); + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, error_image); + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, state_frame); + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, load_image); + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, save_image); + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, print_image); + gtk_widget_class_bind_template_child (widget_class, GeditStatusbar, overwrite_mode_label); +} + +static void +gedit_statusbar_init (GeditStatusbar *statusbar) +{ + gtk_widget_init_template (GTK_WIDGET (statusbar)); + + gtk_label_set_width_chars (GTK_LABEL (statusbar->overwrite_mode_label), + get_overwrite_mode_length ()); +} + +/** + * gedit_statusbar_new: + * + * Creates a new #GeditStatusbar. + * + * Return value: the new #GeditStatusbar object + **/ +GtkWidget * +gedit_statusbar_new (void) +{ + return GTK_WIDGET (g_object_new (GEDIT_TYPE_STATUSBAR, NULL)); +} + +/** + * gedit_statusbar_set_overwrite: + * @statusbar: a #GeditStatusbar + * @overwrite: if the overwrite mode is set + * + * Sets the overwrite mode on the statusbar. + **/ +void +gedit_statusbar_set_overwrite (GeditStatusbar *statusbar, + gboolean overwrite) +{ + gchar *msg; + + g_return_if_fail (GEDIT_IS_STATUSBAR (statusbar)); + + msg = get_overwrite_mode_string (overwrite); + gtk_label_set_text (GTK_LABEL (statusbar->overwrite_mode_label), msg); + g_free (msg); +} + +void +gedit_statusbar_clear_overwrite (GeditStatusbar *statusbar) +{ + g_return_if_fail (GEDIT_IS_STATUSBAR (statusbar)); + + gtk_label_set_text (GTK_LABEL (statusbar->overwrite_mode_label), NULL); +} + +static gboolean +remove_message_timeout (GeditStatusbar *statusbar) +{ + gtk_statusbar_remove (GTK_STATUSBAR (statusbar), + statusbar->flash_context_id, + statusbar->flash_message_id); + + /* remove the timeout */ + statusbar->flash_timeout = 0; + return FALSE; +} + +/* FIXME this is an issue for introspection */ +/** + * gedit_statusbar_flash_message: + * @statusbar: a #GeditStatusbar + * @context_id: message context_id + * @format: message to flash on the statusbar + * @...: the arguments to insert in @format + * + * Flash a temporary message on the statusbar. + */ +void +gedit_statusbar_flash_message (GeditStatusbar *statusbar, + guint context_id, + const gchar *format, + ...) +{ + const guint32 flash_length = 3000; /* three seconds */ + va_list args; + gchar *msg; + + g_return_if_fail (GEDIT_IS_STATUSBAR (statusbar)); + g_return_if_fail (format != NULL); + + va_start (args, format); + msg = g_strdup_vprintf (format, args); + va_end (args); + + /* remove a currently ongoing flash message */ + if (statusbar->flash_timeout > 0) + { + g_source_remove (statusbar->flash_timeout); + statusbar->flash_timeout = 0; + + gtk_statusbar_remove (GTK_STATUSBAR (statusbar), + statusbar->flash_context_id, + statusbar->flash_message_id); + } + + statusbar->flash_context_id = context_id; + statusbar->flash_message_id = gtk_statusbar_push (GTK_STATUSBAR (statusbar), + context_id, + msg); + + statusbar->flash_timeout = g_timeout_add (flash_length, + (GSourceFunc) remove_message_timeout, + statusbar); + + g_free (msg); +} + +void +gedit_statusbar_set_window_state (GeditStatusbar *statusbar, + GeditWindowState state, + gint num_of_errors) +{ + g_return_if_fail (GEDIT_IS_STATUSBAR (statusbar)); + + gtk_widget_hide (statusbar->state_frame); + gtk_widget_hide (statusbar->save_image); + gtk_widget_hide (statusbar->load_image); + gtk_widget_hide (statusbar->print_image); + + if (state & GEDIT_WINDOW_STATE_SAVING) + { + gtk_widget_show (statusbar->state_frame); + gtk_widget_show (statusbar->save_image); + } + if (state & GEDIT_WINDOW_STATE_LOADING) + { + gtk_widget_show (statusbar->state_frame); + gtk_widget_show (statusbar->load_image); + } + if (state & GEDIT_WINDOW_STATE_PRINTING) + { + gtk_widget_show (statusbar->state_frame); + gtk_widget_show (statusbar->print_image); + } + if (state & GEDIT_WINDOW_STATE_ERROR) + { + gchar *tip; + + tip = g_strdup_printf (ngettext("There is a tab with errors", + "There are %d tabs with errors", + num_of_errors), + num_of_errors); + + gtk_widget_set_tooltip_text (statusbar->error_image, tip); + g_free (tip); + + gtk_widget_show (statusbar->error_frame); + } + else + { + gtk_widget_hide (statusbar->error_frame); + } +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-statusbar.h b/gedit/gedit-statusbar.h new file mode 100644 index 0000000..0044842 --- /dev/null +++ b/gedit/gedit-statusbar.h @@ -0,0 +1,53 @@ +/* + * gedit-statusbar.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_STATUSBAR_H +#define GEDIT_STATUSBAR_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_STATUSBAR (gedit_statusbar_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditStatusbar, gedit_statusbar, GEDIT, STATUSBAR, GtkStatusbar) + +GtkWidget *gedit_statusbar_new (void); + +void gedit_statusbar_set_window_state (GeditStatusbar *statusbar, + GeditWindowState state, + gint num_of_errors); + +void gedit_statusbar_set_overwrite (GeditStatusbar *statusbar, + gboolean overwrite); + +void gedit_statusbar_clear_overwrite (GeditStatusbar *statusbar); + +void gedit_statusbar_flash_message (GeditStatusbar *statusbar, + guint context_id, + const gchar *format, + ...) G_GNUC_PRINTF(3, 4); + +G_END_DECLS + +#endif + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-tab-label.c b/gedit/gedit-tab-label.c new file mode 100644 index 0000000..d24b2e5 --- /dev/null +++ b/gedit/gedit-tab-label.c @@ -0,0 +1,295 @@ +/* + * gedit-tab-label.c + * This file is part of gedit + * + * Copyright (C) 2010 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-tab-label.h" +#include "gedit-tab-private.h" + +struct _GeditTabLabel +{ + GtkBox parent_instance; + + GeditTab *tab; + + GtkWidget *spinner; + GtkWidget *icon; + GtkWidget *label; + GtkWidget *close_button; +}; + +enum +{ + PROP_0, + PROP_TAB, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +enum +{ + CLOSE_CLICKED, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +G_DEFINE_TYPE (GeditTabLabel, gedit_tab_label, GTK_TYPE_BOX) + +static void +gedit_tab_label_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditTabLabel *tab_label = GEDIT_TAB_LABEL (object); + + switch (prop_id) + { + case PROP_TAB: + g_return_if_fail (tab_label->tab == NULL); + tab_label->tab = GEDIT_TAB (g_value_get_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_tab_label_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditTabLabel *tab_label = GEDIT_TAB_LABEL (object); + + switch (prop_id) + { + case PROP_TAB: + g_value_set_object (value, tab_label->tab); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +close_button_clicked_cb (GtkWidget *widget, + GeditTabLabel *tab_label) +{ + g_signal_emit (tab_label, signals[CLOSE_CLICKED], 0, NULL); +} + +static void +sync_tooltip (GeditTab *tab, + GeditTabLabel *tab_label) +{ + gchar *str; + + str = _gedit_tab_get_tooltip (tab); + g_return_if_fail (str != NULL); + + gtk_widget_set_tooltip_markup (GTK_WIDGET (tab_label), str); + g_free (str); +} + +static void +sync_name (GeditTab *tab, + GParamSpec *pspec, + GeditTabLabel *tab_label) +{ + gchar *str; + + g_return_if_fail (tab == tab_label->tab); + + str = _gedit_tab_get_name (tab); + g_return_if_fail (str != NULL); + + gtk_label_set_text (GTK_LABEL (tab_label->label), str); + g_free (str); + + sync_tooltip (tab, tab_label); +} + +static void +update_close_button_sensitivity (GeditTabLabel *tab_label) +{ + GeditTabState state = gedit_tab_get_state (tab_label->tab); + + gtk_widget_set_sensitive (tab_label->close_button, + (state != GEDIT_TAB_STATE_CLOSING) && + (state != GEDIT_TAB_STATE_SAVING) && + (state != GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) && + (state != GEDIT_TAB_STATE_PRINTING) && + (state != GEDIT_TAB_STATE_SAVING_ERROR)); +} + +static void +sync_state (GeditTab *tab, + GParamSpec *pspec, + GeditTabLabel *tab_label) +{ + GeditTabState state; + + g_return_if_fail (tab == tab_label->tab); + + update_close_button_sensitivity (tab_label); + + state = gedit_tab_get_state (tab); + + if ((state == GEDIT_TAB_STATE_LOADING) || + (state == GEDIT_TAB_STATE_SAVING) || + (state == GEDIT_TAB_STATE_REVERTING)) + { + gtk_widget_hide (tab_label->icon); + + gtk_widget_show (tab_label->spinner); + gtk_spinner_start (GTK_SPINNER (tab_label->spinner)); + } + else + { + GdkPixbuf *pixbuf; + + pixbuf = _gedit_tab_get_icon (tab); + + if (pixbuf != NULL) + { + gtk_image_set_from_pixbuf (GTK_IMAGE (tab_label->icon), + pixbuf); + + g_clear_object (&pixbuf); + + gtk_widget_show (tab_label->icon); + } + else + { + gtk_widget_hide (tab_label->icon); + } + + gtk_spinner_stop (GTK_SPINNER (tab_label->spinner)); + gtk_widget_hide (tab_label->spinner); + } + + /* sync tip since encoding is known only after load/save end */ + sync_tooltip (tab, tab_label); +} + +static void +gedit_tab_label_constructed (GObject *object) +{ + GeditTabLabel *tab_label = GEDIT_TAB_LABEL (object); + + if (tab_label->tab == NULL) + { + g_critical ("The tab label was not properly constructed"); + return; + } + + sync_name (tab_label->tab, NULL, tab_label); + sync_state (tab_label->tab, NULL, tab_label); + + g_signal_connect_object (tab_label->tab, + "notify::name", + G_CALLBACK (sync_name), + tab_label, + 0); + + g_signal_connect_object (tab_label->tab, + "notify::state", + G_CALLBACK (sync_state), + tab_label, + 0); + + G_OBJECT_CLASS (gedit_tab_label_parent_class)->constructed (object); +} + +static void +gedit_tab_label_close_clicked (GeditTabLabel *tab_label) +{ +} + +static void +gedit_tab_label_class_init (GeditTabLabelClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->set_property = gedit_tab_label_set_property; + object_class->get_property = gedit_tab_label_get_property; + object_class->constructed = gedit_tab_label_constructed; + + properties[PROP_TAB] = + g_param_spec_object ("tab", + "Tab", + "The GeditTab", + GEDIT_TYPE_TAB, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + + g_object_class_install_properties (object_class, LAST_PROP, properties); + + signals[CLOSE_CLICKED] = + g_signal_new_class_handler ("close-clicked", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + G_CALLBACK (gedit_tab_label_close_clicked), + NULL, NULL, NULL, + G_TYPE_NONE, + 0); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-tab-label.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditTabLabel, spinner); + gtk_widget_class_bind_template_child (widget_class, GeditTabLabel, icon); + gtk_widget_class_bind_template_child (widget_class, GeditTabLabel, label); + gtk_widget_class_bind_template_child (widget_class, GeditTabLabel, close_button); +} + +static void +gedit_tab_label_init (GeditTabLabel *tab_label) +{ + gtk_widget_init_template (GTK_WIDGET (tab_label)); + + g_signal_connect (tab_label->close_button, + "clicked", + G_CALLBACK (close_button_clicked_cb), + tab_label); +} + +GeditTab * +gedit_tab_label_get_tab (GeditTabLabel *tab_label) +{ + g_return_val_if_fail (GEDIT_IS_TAB_LABEL (tab_label), NULL); + + return tab_label->tab; +} + +GtkWidget * +gedit_tab_label_new (GeditTab *tab) +{ + return g_object_new (GEDIT_TYPE_TAB_LABEL, + "tab", tab, + NULL); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-tab-label.h b/gedit/gedit-tab-label.h new file mode 100644 index 0000000..df54eae --- /dev/null +++ b/gedit/gedit-tab-label.h @@ -0,0 +1,41 @@ +/* + * gedit-tab-label.h + * This file is part of gedit + * + * Copyright (C) 2010 - Paolo Borelli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_TAB_LABEL_H +#define GEDIT_TAB_LABEL_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_TAB_LABEL (gedit_tab_label_get_type ()) + +G_DECLARE_FINAL_TYPE (GeditTabLabel, gedit_tab_label, GEDIT, TAB_LABEL, GtkBox) + +GtkWidget *gedit_tab_label_new (GeditTab *tab); + +GeditTab *gedit_tab_label_get_tab (GeditTabLabel *tab_label); + +G_END_DECLS + +#endif /* GEDIT_TAB_LABEL_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-tab-private.h b/gedit/gedit-tab-private.h new file mode 100644 index 0000000..1b84f13 --- /dev/null +++ b/gedit/gedit-tab-private.h @@ -0,0 +1,81 @@ +/* + * gedit-tab.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_TAB_PRIVATE_H +#define GEDIT_TAB_PRIVATE_H + +#include "gedit-tab.h" +#include "gedit-view-frame.h" + +G_BEGIN_DECLS + +GeditTab *_gedit_tab_new (void); + +gchar *_gedit_tab_get_name (GeditTab *tab); + +gchar *_gedit_tab_get_tooltip (GeditTab *tab); + +GdkPixbuf *_gedit_tab_get_icon (GeditTab *tab); + +void _gedit_tab_load (GeditTab *tab, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean create); + +void _gedit_tab_load_stream (GeditTab *tab, + GInputStream *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos); + +void _gedit_tab_revert (GeditTab *tab); + +void _gedit_tab_save_async (GeditTab *tab, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean _gedit_tab_save_finish (GeditTab *tab, + GAsyncResult *result); + +void _gedit_tab_save_as_async (GeditTab *tab, + GFile *location, + const GtkSourceEncoding *encoding, + GtkSourceNewlineType newline_type, + GtkSourceCompressionType compression_type, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +void _gedit_tab_print (GeditTab *tab); + +void _gedit_tab_mark_for_closing (GeditTab *tab); + +gboolean _gedit_tab_get_can_close (GeditTab *tab); + +GeditViewFrame *_gedit_tab_get_view_frame (GeditTab *tab); + +G_END_DECLS + +#endif /* GEDIT_TAB_PRIVATE_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c new file mode 100644 index 0000000..75f0097 --- /dev/null +++ b/gedit/gedit-tab.c @@ -0,0 +1,3059 @@ +/* + * gedit-tab.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * Copyright (C) 2014, 2015 - Sébastien Wilmet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-tab.h" +#include "gedit-tab-private.h" + +#include +#include +#include + +#include "gedit-app.h" +#include "gedit-app-private.h" +#include "gedit-recent.h" +#include "gedit-utils.h" +#include "gedit-io-error-info-bar.h" +#include "gedit-print-job.h" +#include "gedit-print-preview.h" +#include "gedit-progress-info-bar.h" +#include "gedit-debug.h" +#include "gedit-document.h" +#include "gedit-document-private.h" +#include "gedit-enum-types.h" +#include "gedit-settings.h" +#include "gedit-view-frame.h" + +#define GEDIT_TAB_KEY "GEDIT_TAB_KEY" + +struct _GeditTab +{ + GtkBox parent_instance; + + GeditTabState state; + + GSettings *editor_settings; + + GeditViewFrame *frame; + + GtkWidget *info_bar; + GtkWidget *info_bar_hidden; + + GeditPrintJob *print_job; + GtkWidget *print_preview; + + GtkSourceFileSaverFlags save_flags; + + guint idle_scroll; + + gint auto_save_interval; + guint auto_save_timeout; + + GCancellable *cancellable; + + guint editable : 1; + guint auto_save : 1; + + guint ask_if_externally_modified : 1; +}; + +typedef struct _SaverData SaverData; +typedef struct _LoaderData LoaderData; + +struct _SaverData +{ + GtkSourceFileSaver *saver; + + GTimer *timer; + + /* Notes about the create_backup saver flag: + * - At the beginning of a new file saving, force_no_backup is FALSE. + * The create_backup flag is set to the saver if it is enabled in + * GSettings and if it isn't an auto-save. + * - If creating the backup gives an error, and if the user wants to + * save the file without the backup, force_no_backup is set to TRUE + * and the create_backup flag is removed from the saver. + * force_no_backup as TRUE means that the create_backup flag should + * never be added again to the saver (for the current file saving). + * - When another error occurs and if the user explicitly retry again + * the file saving, the create_backup flag is added to the saver if + * (1) it is enabled in GSettings, (2) if force_no_backup is FALSE. + * - The create_backup flag is added when the user expressed his or her + * willing to save the file, by pressing a button for example. For an + * auto-save, the create_backup flag is thus not added initially, but + * can be added later when an error occurs and the user clicks on a + * button in the info bar to retry the file saving. + */ + guint force_no_backup : 1; +}; + +struct _LoaderData +{ + GeditTab *tab; + GtkSourceFileLoader *loader; + GTimer *timer; + gint line_pos; + gint column_pos; + guint user_requested_encoding : 1; +}; + +G_DEFINE_TYPE (GeditTab, gedit_tab, GTK_TYPE_BOX) + +enum +{ + PROP_0, + PROP_NAME, + PROP_STATE, + PROP_AUTO_SAVE, + PROP_AUTO_SAVE_INTERVAL, + PROP_CAN_CLOSE, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +enum +{ + DROP_URIS, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +static gboolean gedit_tab_auto_save (GeditTab *tab); + +static void launch_loader (GTask *loading_task, + const GtkSourceEncoding *encoding); + +static void launch_saver (GTask *saving_task); + +static SaverData * +saver_data_new (void) +{ + return g_slice_new0 (SaverData); +} + +static void +saver_data_free (SaverData *data) +{ + if (data != NULL) + { + if (data->saver != NULL) + { + g_object_unref (data->saver); + } + + if (data->timer != NULL) + { + g_timer_destroy (data->timer); + } + + g_slice_free (SaverData, data); + } +} + +static LoaderData * +loader_data_new (void) +{ + return g_slice_new0 (LoaderData); +} + +static void +loader_data_free (LoaderData *data) +{ + if (data != NULL) + { + if (data->loader != NULL) + { + g_object_unref (data->loader); + } + + if (data->timer != NULL) + { + g_timer_destroy (data->timer); + } + + g_slice_free (LoaderData, data); + } +} + +static void +set_editable (GeditTab *tab, + gboolean editable) +{ + GeditView *view; + gboolean val; + + tab->editable = editable != FALSE; + + view = gedit_tab_get_view (tab); + + val = (tab->state == GEDIT_TAB_STATE_NORMAL && + tab->editable); + + gtk_text_view_set_editable (GTK_TEXT_VIEW (view), val); +} + +static void +install_auto_save_timeout (GeditTab *tab) +{ + if (tab->auto_save_timeout == 0) + { + g_return_if_fail (tab->auto_save_interval > 0); + + tab->auto_save_timeout = g_timeout_add_seconds (tab->auto_save_interval * 60, + (GSourceFunc) gedit_tab_auto_save, + tab); + } +} + +static void +remove_auto_save_timeout (GeditTab *tab) +{ + gedit_debug (DEBUG_TAB); + + if (tab->auto_save_timeout > 0) + { + g_source_remove (tab->auto_save_timeout); + tab->auto_save_timeout = 0; + } +} + +static void +update_auto_save_timeout (GeditTab *tab) +{ + GeditDocument *doc; + GtkSourceFile *file; + + gedit_debug (DEBUG_TAB); + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + if (tab->state == GEDIT_TAB_STATE_NORMAL && + tab->auto_save && + !gedit_document_is_untitled (doc) && + !gtk_source_file_is_readonly (file)) + { + install_auto_save_timeout (tab); + } + else + { + remove_auto_save_timeout (tab); + } +} + +static void +gedit_tab_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditTab *tab = GEDIT_TAB (object); + + switch (prop_id) + { + case PROP_NAME: + g_value_take_string (value, _gedit_tab_get_name (tab)); + break; + + case PROP_STATE: + g_value_set_enum (value, gedit_tab_get_state (tab)); + break; + + case PROP_AUTO_SAVE: + g_value_set_boolean (value, gedit_tab_get_auto_save_enabled (tab)); + break; + + case PROP_AUTO_SAVE_INTERVAL: + g_value_set_int (value, gedit_tab_get_auto_save_interval (tab)); + break; + + case PROP_CAN_CLOSE: + g_value_set_boolean (value, _gedit_tab_get_can_close (tab)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_tab_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditTab *tab = GEDIT_TAB (object); + + switch (prop_id) + { + case PROP_AUTO_SAVE: + gedit_tab_set_auto_save_enabled (tab, g_value_get_boolean (value)); + break; + + case PROP_AUTO_SAVE_INTERVAL: + gedit_tab_set_auto_save_interval (tab, g_value_get_int (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_tab_dispose (GObject *object) +{ + GeditTab *tab = GEDIT_TAB (object); + + g_clear_object (&tab->editor_settings); + g_clear_object (&tab->print_job); + g_clear_object (&tab->print_preview); + + remove_auto_save_timeout (tab); + + if (tab->idle_scroll != 0) + { + g_source_remove (tab->idle_scroll); + tab->idle_scroll = 0; + } + + if (tab->cancellable != NULL) + { + g_cancellable_cancel (tab->cancellable); + g_clear_object (&tab->cancellable); + } + + G_OBJECT_CLASS (gedit_tab_parent_class)->dispose (object); +} + +static void +gedit_tab_grab_focus (GtkWidget *widget) +{ + GeditTab *tab = GEDIT_TAB (widget); + + GTK_WIDGET_CLASS (gedit_tab_parent_class)->grab_focus (widget); + + if (tab->info_bar != NULL) + { + gtk_widget_grab_focus (tab->info_bar); + } + else + { + GeditView *view = gedit_tab_get_view (tab); + gtk_widget_grab_focus (GTK_WIDGET (view)); + } +} + +static void +gedit_tab_drop_uris (GeditTab *tab, + gchar **uri_list) +{ + gedit_debug (DEBUG_TAB); +} + +static void +gedit_tab_class_init (GeditTabClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass); + + object_class->dispose = gedit_tab_dispose; + object_class->get_property = gedit_tab_get_property; + object_class->set_property = gedit_tab_set_property; + + gtkwidget_class->grab_focus = gedit_tab_grab_focus; + + properties[PROP_NAME] = + g_param_spec_string ("name", + "Name", + "The tab's name", + NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + properties[PROP_STATE] = + g_param_spec_enum ("state", + "State", + "The tab's state", + GEDIT_TYPE_TAB_STATE, + GEDIT_TAB_STATE_NORMAL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + properties[PROP_AUTO_SAVE] = + g_param_spec_boolean ("autosave", + "Autosave", + "Autosave feature", + TRUE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + + properties[PROP_AUTO_SAVE_INTERVAL] = + g_param_spec_int ("autosave-interval", + "AutosaveInterval", + "Time between two autosaves", + 0, + G_MAXINT, + 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + + properties[PROP_CAN_CLOSE] = + g_param_spec_boolean ("can-close", + "Can close", + "Whether the tab can be closed", + TRUE, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); + + signals[DROP_URIS] = + g_signal_new_class_handler ("drop-uris", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_CALLBACK (gedit_tab_drop_uris), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + G_TYPE_STRV); +} + +/** + * gedit_tab_get_state: + * @tab: a #GeditTab + * + * Gets the #GeditTabState of @tab. + * + * Returns: the #GeditTabState of @tab + */ +GeditTabState +gedit_tab_get_state (GeditTab *tab) +{ + g_return_val_if_fail (GEDIT_IS_TAB (tab), GEDIT_TAB_STATE_NORMAL); + + return tab->state; +} + +static void +set_cursor_according_to_state (GtkTextView *view, + GeditTabState state) +{ + GdkDisplay *display; + GdkCursor *cursor; + GdkWindow *text_window; + GdkWindow *left_window; + + display = gtk_widget_get_display (GTK_WIDGET (view)); + + text_window = gtk_text_view_get_window (view, GTK_TEXT_WINDOW_TEXT); + left_window = gtk_text_view_get_window (view, GTK_TEXT_WINDOW_LEFT); + + if ((state == GEDIT_TAB_STATE_LOADING) || + (state == GEDIT_TAB_STATE_REVERTING) || + (state == GEDIT_TAB_STATE_SAVING) || + (state == GEDIT_TAB_STATE_PRINTING) || + (state == GEDIT_TAB_STATE_CLOSING)) + { + cursor = gdk_cursor_new_from_name (display, "progress"); + + if (text_window != NULL) + gdk_window_set_cursor (text_window, cursor); + if (left_window != NULL) + gdk_window_set_cursor (left_window, cursor); + + g_clear_object (&cursor); + } + else + { + cursor = gdk_cursor_new_from_name (display, "text"); + + if (text_window != NULL) + gdk_window_set_cursor (text_window, cursor); + if (left_window != NULL) + gdk_window_set_cursor (left_window, NULL); + + g_clear_object (&cursor); + } +} + +static void +view_realized (GtkTextView *view, + GeditTab *tab) +{ + set_cursor_according_to_state (view, tab->state); +} + +static void +set_view_properties_according_to_state (GeditTab *tab, + GeditTabState state) +{ + GeditView *view; + gboolean val; + gboolean hl_current_line; + + hl_current_line = g_settings_get_boolean (tab->editor_settings, + GEDIT_SETTINGS_HIGHLIGHT_CURRENT_LINE); + + view = gedit_tab_get_view (tab); + + val = ((state == GEDIT_TAB_STATE_NORMAL) && + tab->editable); + gtk_text_view_set_editable (GTK_TEXT_VIEW (view), val); + + val = ((state != GEDIT_TAB_STATE_LOADING) && + (state != GEDIT_TAB_STATE_CLOSING)); + gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), val); + + val = ((state != GEDIT_TAB_STATE_LOADING) && + (state != GEDIT_TAB_STATE_CLOSING) && + (hl_current_line)); + gtk_source_view_set_highlight_current_line (GTK_SOURCE_VIEW (view), val); +} + +static void +gedit_tab_set_state (GeditTab *tab, + GeditTabState state) +{ + g_return_if_fail ((state >= 0) && (state < GEDIT_TAB_NUM_OF_STATES)); + + if (tab->state == state) + { + return; + } + + tab->state = state; + + set_view_properties_according_to_state (tab, state); + + /* Hide or show the document. + * For GEDIT_TAB_STATE_LOADING_ERROR, tab->frame is either shown or + * hidden, depending on the error. + */ + if (state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) + { + gtk_widget_hide (GTK_WIDGET (tab->frame)); + } + else if (state != GEDIT_TAB_STATE_LOADING_ERROR) + { + gtk_widget_show (GTK_WIDGET (tab->frame)); + } + + set_cursor_according_to_state (GTK_TEXT_VIEW (gedit_tab_get_view (tab)), + state); + + update_auto_save_timeout (tab); + + g_object_notify_by_pspec (G_OBJECT (tab), properties[PROP_STATE]); + g_object_notify_by_pspec (G_OBJECT (tab), properties[PROP_CAN_CLOSE]); +} + +static void +document_location_notify_handler (GtkSourceFile *file, + GParamSpec *pspec, + GeditTab *tab) +{ + gedit_debug (DEBUG_TAB); + + /* Notify the change in the location */ + g_object_notify_by_pspec (G_OBJECT (tab), properties[PROP_NAME]); +} + +static void +document_shortname_notify_handler (GeditDocument *document, + GParamSpec *pspec, + GeditTab *tab) +{ + gedit_debug (DEBUG_TAB); + + /* Notify the change in the shortname */ + g_object_notify_by_pspec (G_OBJECT (tab), properties[PROP_NAME]); +} + +static void +document_modified_changed (GtkTextBuffer *document, + GeditTab *tab) +{ + g_object_notify_by_pspec (G_OBJECT (tab), properties[PROP_NAME]); + g_object_notify_by_pspec (G_OBJECT (tab), properties[PROP_CAN_CLOSE]); +} + +static void +set_info_bar (GeditTab *tab, + GtkWidget *info_bar, + GtkResponseType default_response) +{ + gedit_debug (DEBUG_TAB); + + if (tab->info_bar == info_bar) + { + return; + } + + if (info_bar == NULL) + { + /* Don't destroy the old info_bar right away, + we want the hide animation. */ + if (tab->info_bar_hidden != NULL) + { + gtk_widget_destroy (tab->info_bar_hidden); + } + + tab->info_bar_hidden = tab->info_bar; + gtk_widget_hide (tab->info_bar_hidden); + + tab->info_bar = NULL; + } + else + { + if (tab->info_bar != NULL) + { + gedit_debug_message (DEBUG_TAB, "Replacing existing notification"); + gtk_widget_destroy (tab->info_bar); + } + + /* Make sure to stop a possibly still ongoing hiding animation. */ + if (tab->info_bar_hidden != NULL) + { + gtk_widget_destroy (tab->info_bar_hidden); + tab->info_bar_hidden = NULL; + } + + tab->info_bar = info_bar; + gtk_box_pack_start (GTK_BOX (tab), info_bar, FALSE, FALSE, 0); + + /* Note this must be done after the info bar is added to the window */ + if (default_response != GTK_RESPONSE_NONE) + { + gtk_info_bar_set_default_response (GTK_INFO_BAR (info_bar), + default_response); + } + + gtk_widget_show (info_bar); + } +} + +static void +remove_tab (GeditTab *tab) +{ + GtkWidget *notebook; + + notebook = gtk_widget_get_parent (GTK_WIDGET (tab)); + gtk_container_remove (GTK_CONTAINER (notebook), GTK_WIDGET (tab)); +} + +static void +io_loading_error_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GFile *location; + const GtkSourceEncoding *encoding; + + location = gtk_source_file_loader_get_location (data->loader); + + switch (response_id) + { + case GTK_RESPONSE_OK: + encoding = gedit_conversion_error_info_bar_get_encoding (GTK_WIDGET (info_bar)); + + set_info_bar (data->tab, NULL, GTK_RESPONSE_NONE); + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_LOADING); + + launch_loader (loading_task, encoding); + break; + + case GTK_RESPONSE_YES: + /* This means that we want to edit the document anyway */ + set_editable (data->tab, TRUE); + set_info_bar (data->tab, NULL, GTK_RESPONSE_NONE); + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_NORMAL); + + g_task_return_boolean (loading_task, TRUE); + g_object_unref (loading_task); + break; + + default: + if (location != NULL) + { + gedit_recent_remove_if_local (location); + } + + remove_tab (data->tab); + + g_task_return_boolean (loading_task, FALSE); + g_object_unref (loading_task); + break; + } +} + +static void +file_already_open_warning_info_bar_response (GtkWidget *info_bar, + gint response_id, + GeditTab *tab) +{ + GeditView *view = gedit_tab_get_view (tab); + + if (response_id == GTK_RESPONSE_YES) + { + set_editable (tab, TRUE); + } + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + gtk_widget_grab_focus (GTK_WIDGET (view)); +} + +static void +load_cancelled (GtkWidget *bar, + gint response_id, + GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (data->tab->info_bar)); + + g_cancellable_cancel (g_task_get_cancellable (loading_task)); + remove_tab (data->tab); +} + +static void +unrecoverable_reverting_error_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GeditView *view; + + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_NORMAL); + + set_info_bar (data->tab, NULL, GTK_RESPONSE_NONE); + + view = gedit_tab_get_view (data->tab); + gtk_widget_grab_focus (GTK_WIDGET (view)); + + g_task_return_boolean (loading_task, FALSE); + g_object_unref (loading_task); +} + +#define MAX_MSG_LENGTH 100 + +static void +show_loading_info_bar (GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GtkWidget *bar; + GeditDocument *doc; + gchar *name; + gchar *dirname = NULL; + gchar *msg = NULL; + gchar *name_markup; + gchar *dirname_markup; + gint len; + + if (data->tab->info_bar != NULL) + { + return; + } + + gedit_debug (DEBUG_TAB); + + doc = gedit_tab_get_document (data->tab); + + name = gedit_document_get_short_name_for_display (doc); + len = g_utf8_strlen (name, -1); + + /* if the name is awfully long, truncate it and be done with it, + * otherwise also show the directory (ellipsized if needed) + */ + if (len > MAX_MSG_LENGTH) + { + gchar *str; + + str = tepl_utils_str_middle_truncate (name, MAX_MSG_LENGTH); + g_free (name); + name = str; + } + else + { + GtkSourceFile *file = gedit_document_get_file (doc); + GFile *location = gtk_source_file_get_location (file); + + if (location != NULL) + { + gchar *str = gedit_utils_location_get_dirname_for_display (location); + + /* use the remaining space for the dir, but use a min of 20 chars + * so that we do not end up with a dirname like "(a...b)". + * This means that in the worst case when the filename is long 99 + * we have a title long 99 + 20, but I think it's a rare enough + * case to be acceptable. It's justa darn title afterall :) + */ + dirname = tepl_utils_str_middle_truncate (str, + MAX (20, MAX_MSG_LENGTH - len)); + g_free (str); + } + } + + name_markup = g_markup_printf_escaped ("%s", name); + + if (data->tab->state == GEDIT_TAB_STATE_REVERTING) + { + if (dirname != NULL) + { + dirname_markup = g_markup_printf_escaped ("%s", dirname); + + /* Translators: the first %s is a file name (e.g. test.txt) the second one + is a directory (e.g. ssh://master.gnome.org/home/users/paolo) */ + msg = g_strdup_printf (_("Reverting %s from %s"), + name_markup, + dirname_markup); + g_free (dirname_markup); + } + else + { + msg = g_strdup_printf (_("Reverting %s"), name_markup); + } + + bar = gedit_progress_info_bar_new ("document-revert", msg, TRUE); + } + else + { + if (dirname != NULL) + { + dirname_markup = g_markup_printf_escaped ("%s", dirname); + + /* Translators: the first %s is a file name (e.g. test.txt) the second one + is a directory (e.g. ssh://master.gnome.org/home/users/paolo) */ + msg = g_strdup_printf (_("Loading %s from %s"), + name_markup, + dirname_markup); + g_free (dirname_markup); + } + else + { + msg = g_strdup_printf (_("Loading %s"), name_markup); + } + + bar = gedit_progress_info_bar_new ("document-open", msg, TRUE); + } + + g_signal_connect_object (bar, + "response", + G_CALLBACK (load_cancelled), + loading_task, + 0); + + set_info_bar (data->tab, bar, GTK_RESPONSE_NONE); + + g_free (msg); + g_free (name); + g_free (name_markup); + g_free (dirname); +} + +static void +show_saving_info_bar (GTask *saving_task) +{ + GeditTab *tab = g_task_get_source_object (saving_task); + GtkWidget *bar; + GeditDocument *doc; + gchar *short_name; + gchar *from; + gchar *to = NULL; + gchar *from_markup; + gchar *to_markup; + gchar *msg = NULL; + gint len; + + if (tab->info_bar != NULL) + { + return; + } + + gedit_debug (DEBUG_TAB); + + doc = gedit_tab_get_document (tab); + + short_name = gedit_document_get_short_name_for_display (doc); + + len = g_utf8_strlen (short_name, -1); + + /* if the name is awfully long, truncate it and be done with it, + * otherwise also show the directory (ellipsized if needed) + */ + if (len > MAX_MSG_LENGTH) + { + from = tepl_utils_str_middle_truncate (short_name, MAX_MSG_LENGTH); + g_free (short_name); + } + else + { + gchar *str; + SaverData *data; + GFile *location; + + data = g_task_get_task_data (saving_task); + location = gtk_source_file_saver_get_location (data->saver); + + from = short_name; + to = g_file_get_parse_name (location); + str = tepl_utils_str_middle_truncate (to, MAX (20, MAX_MSG_LENGTH - len)); + g_free (to); + + to = str; + } + + from_markup = g_markup_printf_escaped ("%s", from); + + if (to != NULL) + { + to_markup = g_markup_printf_escaped ("%s", to); + + /* Translators: the first %s is a file name (e.g. test.txt) the second one + is a directory (e.g. ssh://master.gnome.org/home/users/paolo) */ + msg = g_strdup_printf (_("Saving %s to %s"), from_markup, to_markup); + g_free (to_markup); + } + else + { + msg = g_strdup_printf (_("Saving %s"), from_markup); + } + + bar = gedit_progress_info_bar_new ("document-save", msg, FALSE); + + set_info_bar (tab, bar, GTK_RESPONSE_NONE); + + g_free (msg); + g_free (to); + g_free (from); + g_free (from_markup); +} + +static void +info_bar_set_progress (GeditTab *tab, + goffset size, + goffset total_size) +{ + GeditProgressInfoBar *progress_info_bar; + + if (tab->info_bar == NULL) + { + return; + } + + gedit_debug_message (DEBUG_TAB, "%" G_GOFFSET_FORMAT "/%" G_GOFFSET_FORMAT, size, total_size); + + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->info_bar)); + + progress_info_bar = GEDIT_PROGRESS_INFO_BAR (tab->info_bar); + + if (total_size != 0) + { + gdouble frac = (gdouble)size / (gdouble)total_size; + + gedit_progress_info_bar_set_fraction (progress_info_bar, frac); + } + else if (size != 0) + { + gedit_progress_info_bar_pulse (progress_info_bar); + } + else + { + gedit_progress_info_bar_set_fraction (progress_info_bar, 0); + } +} + +/* Returns whether progress info should be shown. */ +static gboolean +should_show_progress_info (GTimer **timer, + goffset size, + goffset total_size) +{ + gdouble elapsed_time; + gdouble total_time; + gdouble remaining_time; + + g_assert (timer != NULL); + + if (*timer == NULL) + { + return TRUE; + } + + elapsed_time = g_timer_elapsed (*timer, NULL); + + /* Wait a little, because at the very beginning it's maybe not very + * accurate (it takes initially more time for the first bytes, the + * following chunks should arrive more quickly, as a rough guess). + */ + if (elapsed_time < 0.5) + { + return FALSE; + } + + /* elapsed_time / total_time = size / total_size */ + total_time = (elapsed_time * total_size) / size; + + remaining_time = total_time - elapsed_time; + + /* Approximately more than 3 seconds remaining. */ + if (remaining_time > 3.0) + { + /* Once the progress info bar is shown, it must remain + * shown until the end, so we don't need the timer + * anymore. + */ + g_timer_destroy (*timer); + *timer = NULL; + + return TRUE; + } + + return FALSE; +} + +static gboolean +scroll_to_cursor (GeditTab *tab) +{ + GeditView *view; + + view = gedit_tab_get_view (tab); + tepl_view_scroll_to_cursor (TEPL_VIEW (view)); + + tab->idle_scroll = 0; + return G_SOURCE_REMOVE; +} + +static void +unrecoverable_saving_error_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *saving_task) +{ + GeditTab *tab = g_task_get_source_object (saving_task); + GeditView *view; + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_NORMAL); + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + view = gedit_tab_get_view (tab); + gtk_widget_grab_focus (GTK_WIDGET (view)); + + g_task_return_boolean (saving_task, FALSE); + g_object_unref (saving_task); +} + +/* Sets the save flags after an info bar response. */ +static void +response_set_save_flags (GTask *saving_task, + GtkSourceFileSaverFlags save_flags) +{ + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + gboolean create_backup; + + create_backup = g_settings_get_boolean (tab->editor_settings, + GEDIT_SETTINGS_CREATE_BACKUP_COPY); + + /* If we are here, it means that the user expressed his or her willing + * to save the file, by pressing a button in the info bar. So even if + * the file saving was initially an auto-save, we set the create_backup + * flag (if the conditions are met). + */ + if (create_backup && !data->force_no_backup) + { + save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_CREATE_BACKUP; + } + else + { + save_flags &= ~GTK_SOURCE_FILE_SAVER_FLAGS_CREATE_BACKUP; + } + + gtk_source_file_saver_set_flags (data->saver, save_flags); +} + +static void +invalid_character_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *saving_task) +{ + if (response_id == GTK_RESPONSE_YES) + { + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + GtkSourceFileSaverFlags save_flags; + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + /* Don't bug the user again with this... */ + tab->save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_INVALID_CHARS; + + save_flags = gtk_source_file_saver_get_flags (data->saver); + save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_INVALID_CHARS; + response_set_save_flags (saving_task, save_flags); + + /* Force saving */ + launch_saver (saving_task); + } + else + { + unrecoverable_saving_error_info_bar_response (info_bar, response_id, saving_task); + } +} + +static void +cant_create_backup_error_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *saving_task) +{ + if (response_id == GTK_RESPONSE_YES) + { + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + GtkSourceFileSaverFlags save_flags; + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + data->force_no_backup = TRUE; + save_flags = gtk_source_file_saver_get_flags (data->saver); + response_set_save_flags (saving_task, save_flags); + + /* Force saving */ + launch_saver (saving_task); + } + else + { + unrecoverable_saving_error_info_bar_response (info_bar, response_id, saving_task); + } +} + +static void +externally_modified_error_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *saving_task) +{ + if (response_id == GTK_RESPONSE_YES) + { + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + GtkSourceFileSaverFlags save_flags; + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + /* ignore_modification_time should not be persisted in save + * flags across saves (i.e. tab->save_flags is not modified). + */ + save_flags = gtk_source_file_saver_get_flags (data->saver); + save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME; + response_set_save_flags (saving_task, save_flags); + + /* Force saving */ + launch_saver (saving_task); + } + else + { + unrecoverable_saving_error_info_bar_response (info_bar, response_id, saving_task); + } +} + +static void +recoverable_saving_error_info_bar_response (GtkWidget *info_bar, + gint response_id, + GTask *saving_task) +{ + if (response_id == GTK_RESPONSE_OK) + { + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + const GtkSourceEncoding *encoding; + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + encoding = gedit_conversion_error_info_bar_get_encoding (GTK_WIDGET (info_bar)); + g_return_if_fail (encoding != NULL); + + gtk_source_file_saver_set_encoding (data->saver, encoding); + launch_saver (saving_task); + } + else + { + unrecoverable_saving_error_info_bar_response (info_bar, response_id, saving_task); + } +} + +static void +externally_modified_notification_info_bar_response (GtkWidget *info_bar, + gint response_id, + GeditTab *tab) +{ + GeditView *view; + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + view = gedit_tab_get_view (tab); + + if (response_id == GTK_RESPONSE_OK) + { + _gedit_tab_revert (tab); + } + else + { + tab->ask_if_externally_modified = FALSE; + + /* go back to normal state */ + gedit_tab_set_state (tab, GEDIT_TAB_STATE_NORMAL); + } + + gtk_widget_grab_focus (GTK_WIDGET (view)); +} + +static void +display_externally_modified_notification (GeditTab *tab) +{ + TeplInfoBar *info_bar; + GeditDocument *doc; + GtkSourceFile *file; + GFile *location; + gboolean document_modified; + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + /* we're here because the file we're editing changed on disk */ + location = gtk_source_file_get_location (file); + g_return_if_fail (location != NULL); + + document_modified = gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc)); + info_bar = tepl_io_error_info_bar_externally_modified (location, document_modified); + + set_info_bar (tab, GTK_WIDGET (info_bar), GTK_RESPONSE_OK); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (externally_modified_notification_info_bar_response), + tab); +} + +static gboolean +view_focused_in (GtkWidget *widget, + GdkEventFocus *event, + GeditTab *tab) +{ + GeditDocument *doc; + GtkSourceFile *file; + + g_return_val_if_fail (GEDIT_IS_TAB (tab), GDK_EVENT_PROPAGATE); + + /* we try to detect file changes only in the normal state */ + if (tab->state != GEDIT_TAB_STATE_NORMAL) + { + return GDK_EVENT_PROPAGATE; + } + + /* we already asked, don't bug the user again */ + if (!tab->ask_if_externally_modified) + { + return GDK_EVENT_PROPAGATE; + } + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + /* If file was never saved or is remote we do not check */ + if (gtk_source_file_is_local (file)) + { + gtk_source_file_check_file_on_disk (file); + + if (gtk_source_file_is_externally_modified (file)) + { + gedit_tab_set_state (tab, GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION); + + display_externally_modified_notification (tab); + } + } + + return GDK_EVENT_PROPAGATE; +} + +static void +on_drop_uris (GeditView *view, + gchar **uri_list, + GeditTab *tab) +{ + g_signal_emit (G_OBJECT (tab), signals[DROP_URIS], 0, uri_list); +} + +static void +gedit_tab_init (GeditTab *tab) +{ + gboolean auto_save; + gint auto_save_interval; + GeditDocument *doc; + GeditView *view; + GtkSourceFile *file; + + tab->state = GEDIT_TAB_STATE_NORMAL; + + tab->editor_settings = g_settings_new ("org.gnome.gedit.preferences.editor"); + + tab->editable = TRUE; + + tab->ask_if_externally_modified = TRUE; + + gtk_orientable_set_orientation (GTK_ORIENTABLE (tab), + GTK_ORIENTATION_VERTICAL); + + /* Manage auto save data */ + auto_save = g_settings_get_boolean (tab->editor_settings, + GEDIT_SETTINGS_AUTO_SAVE); + g_settings_get (tab->editor_settings, GEDIT_SETTINGS_AUTO_SAVE_INTERVAL, + "u", &auto_save_interval); + tab->auto_save = auto_save != FALSE; + tab->auto_save_interval = auto_save_interval; + + /* Create the frame */ + tab->frame = gedit_view_frame_new (); + gtk_widget_show (GTK_WIDGET (tab->frame)); + + gtk_box_pack_end (GTK_BOX (tab), GTK_WIDGET (tab->frame), TRUE, TRUE, 0); + + doc = gedit_tab_get_document (tab); + g_object_set_data (G_OBJECT (doc), GEDIT_TAB_KEY, tab); + + file = gedit_document_get_file (doc); + + g_signal_connect_object (file, + "notify::location", + G_CALLBACK (document_location_notify_handler), + tab, + 0); + + g_signal_connect (doc, + "notify::shortname", + G_CALLBACK (document_shortname_notify_handler), + tab); + + g_signal_connect (doc, + "modified_changed", + G_CALLBACK (document_modified_changed), + tab); + + view = gedit_tab_get_view (tab); + + g_signal_connect_after (view, + "focus-in-event", + G_CALLBACK (view_focused_in), + tab); + + g_signal_connect_after (view, + "realize", + G_CALLBACK (view_realized), + tab); + + g_signal_connect (view, + "drop-uris", + G_CALLBACK (on_drop_uris), + tab); +} + +GeditTab * +_gedit_tab_new (void) +{ + return g_object_new (GEDIT_TYPE_TAB, NULL); +} + +/** + * gedit_tab_get_view: + * @tab: a #GeditTab + * + * Gets the #GeditView inside @tab. + * + * Returns: (transfer none): the #GeditView inside @tab + */ +GeditView * +gedit_tab_get_view (GeditTab *tab) +{ + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + return gedit_view_frame_get_view (tab->frame); +} + +/** + * gedit_tab_get_document: + * @tab: a #GeditTab + * + * Gets the #GeditDocument associated to @tab. + * + * Returns: (transfer none): the #GeditDocument associated to @tab + */ +GeditDocument * +gedit_tab_get_document (GeditTab *tab) +{ + GeditView *view; + + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + view = gedit_view_frame_get_view (tab->frame); + + return GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view))); +} + +#define MAX_DOC_NAME_LENGTH 40 + +gchar * +_gedit_tab_get_name (GeditTab *tab) +{ + GeditDocument *doc; + gchar *name; + gchar *docname; + gchar *tab_name; + + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + doc = gedit_tab_get_document (tab); + + name = gedit_document_get_short_name_for_display (doc); + + /* Truncate the name so it doesn't get insanely wide. */ + docname = tepl_utils_str_middle_truncate (name, MAX_DOC_NAME_LENGTH); + + if (gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc))) + { + tab_name = g_strdup_printf ("*%s", docname); + } + else + { + tab_name = g_strdup (docname); + } + + g_free (docname); + g_free (name); + + return tab_name; +} + +gchar * +_gedit_tab_get_tooltip (GeditTab *tab) +{ + GeditDocument *doc; + gchar *tip; + gchar *uri; + gchar *ruri; + gchar *ruri_markup; + + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + doc = gedit_tab_get_document (tab); + + uri = gedit_document_get_uri_for_display (doc); + g_return_val_if_fail (uri != NULL, NULL); + + ruri = tepl_utils_replace_home_dir_with_tilde (uri); + g_free (uri); + + ruri_markup = g_markup_printf_escaped ("%s", ruri); + + switch (tab->state) + { + gchar *content_type; + gchar *mime_type; + gchar *content_description; + gchar *content_full_description; + gchar *encoding; + GtkSourceFile *file; + const GtkSourceEncoding *enc; + + case GEDIT_TAB_STATE_LOADING_ERROR: + tip = g_strdup_printf (_("Error opening file %s"), + ruri_markup); + break; + + case GEDIT_TAB_STATE_REVERTING_ERROR: + tip = g_strdup_printf (_("Error reverting file %s"), + ruri_markup); + break; + + case GEDIT_TAB_STATE_SAVING_ERROR: + tip = g_strdup_printf (_("Error saving file %s"), + ruri_markup); + break; + default: + content_type = gedit_document_get_content_type (doc); + mime_type = gedit_document_get_mime_type (doc); + content_description = g_content_type_get_description (content_type); + + if (content_description == NULL) + content_full_description = g_strdup (mime_type); + else + content_full_description = g_strdup_printf ("%s (%s)", + content_description, mime_type); + + g_free (content_type); + g_free (mime_type); + g_free (content_description); + + file = gedit_document_get_file (doc); + enc = gtk_source_file_get_encoding (file); + + if (enc == NULL) + { + enc = gtk_source_encoding_get_utf8 (); + } + + encoding = gtk_source_encoding_to_string (enc); + + tip = g_markup_printf_escaped ("%s %s\n\n" + "%s %s\n" + "%s %s", + _("Name:"), ruri, + _("MIME Type:"), content_full_description, + _("Encoding:"), encoding); + + g_free (encoding); + g_free (content_full_description); + break; + } + + g_free (ruri); + g_free (ruri_markup); + + return tip; +} + +GdkPixbuf * +_gedit_tab_get_icon (GeditTab *tab) +{ + const gchar *icon_name; + GdkPixbuf *pixbuf = NULL; + + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + + switch (tab->state) + { + case GEDIT_TAB_STATE_PRINTING: + icon_name = "printer-printing-symbolic"; + break; + + case GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW: + icon_name = "printer-symbolic"; + break; + + case GEDIT_TAB_STATE_LOADING_ERROR: + case GEDIT_TAB_STATE_REVERTING_ERROR: + case GEDIT_TAB_STATE_SAVING_ERROR: + case GEDIT_TAB_STATE_GENERIC_ERROR: + icon_name = "dialog-error-symbolic"; + break; + + case GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION: + icon_name = "dialog-warning-symbolic"; + break; + + default: + icon_name = NULL; + } + + if (icon_name != NULL) + { + GdkScreen *screen; + GtkIconTheme *theme; + gint icon_size; + + screen = gtk_widget_get_screen (GTK_WIDGET (tab)); + theme = gtk_icon_theme_get_for_screen (screen); + g_return_val_if_fail (theme != NULL, NULL); + + gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &icon_size); + + pixbuf = gtk_icon_theme_load_icon (theme, icon_name, icon_size, 0, NULL); + } + + return pixbuf; +} + +/** + * gedit_tab_get_from_document: + * @doc: a #GeditDocument + * + * Gets the #GeditTab associated with @doc. + * + * Returns: (transfer none): the #GeditTab associated with @doc + */ +GeditTab * +gedit_tab_get_from_document (GeditDocument *doc) +{ + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + + return g_object_get_data (G_OBJECT (doc), GEDIT_TAB_KEY); +} + +static void +loader_progress_cb (goffset size, + goffset total_size, + GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + + g_return_if_fail (data->tab->state == GEDIT_TAB_STATE_LOADING || + data->tab->state == GEDIT_TAB_STATE_REVERTING); + + if (should_show_progress_info (&data->timer, size, total_size)) + { + show_loading_info_bar (loading_task); + info_bar_set_progress (data->tab, size, total_size); + } +} + +static void +goto_line (GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GeditDocument *doc = gedit_tab_get_document (data->tab); + GtkTextIter iter; + + /* Move the cursor at the requested line if any. */ + if (data->line_pos > 0) + { + TeplView *view = TEPL_VIEW (gedit_tab_get_view (data->tab)); + + tepl_view_goto_line_offset (view, + data->line_pos - 1, + MAX (0, data->column_pos - 1)); + return; + } + + /* If enabled, move to the position stored in the metadata. */ + if (g_settings_get_boolean (data->tab->editor_settings, GEDIT_SETTINGS_RESTORE_CURSOR_POSITION)) + { + gchar *pos; + gint offset; + + pos = gedit_document_get_metadata (doc, GEDIT_METADATA_ATTRIBUTE_POSITION); + + offset = pos != NULL ? atoi (pos) : 0; + g_free (pos); + + gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (doc), + &iter, + MAX (0, offset)); + + /* make sure it's a valid position, if the file + * changed we may have ended up in the middle of + * a utf8 character cluster */ + if (!gtk_text_iter_is_cursor_position (&iter)) + { + gtk_text_iter_set_line_offset (&iter, 0); + } + } + + /* Otherwise to the top. */ + else + { + gtk_text_buffer_get_start_iter (GTK_TEXT_BUFFER (doc), &iter); + } + + gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc), &iter); +} + +static gboolean +file_already_opened (GeditDocument *doc, + GFile *location) +{ + GList *all_documents; + GList *l; + gboolean already_opened = FALSE; + + if (location == NULL) + { + return FALSE; + } + + all_documents = gedit_app_get_documents (GEDIT_APP (g_application_get_default ())); + + for (l = all_documents; l != NULL; l = l->next) + { + GeditDocument *cur_doc = l->data; + GtkSourceFile *cur_file; + GFile *cur_location; + + if (cur_doc == doc) + { + continue; + } + + cur_file = gedit_document_get_file (cur_doc); + cur_location = gtk_source_file_get_location (cur_file); + + if (cur_location != NULL && + g_file_equal (location, cur_location)) + { + already_opened = TRUE; + break; + } + } + + g_list_free (all_documents); + + return already_opened; +} + +static void +successful_load (GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GeditDocument *doc = gedit_tab_get_document (data->tab); + GtkSourceFile *file = gedit_document_get_file (doc); + GFile *location; + + if (data->user_requested_encoding) + { + const GtkSourceEncoding *encoding = gtk_source_file_loader_get_encoding (data->loader); + const gchar *charset = gtk_source_encoding_get_charset (encoding); + + gedit_document_set_metadata (doc, + GEDIT_METADATA_ATTRIBUTE_ENCODING, charset, + NULL); + } + + goto_line (loading_task); + + /* Scroll to the cursor when the document is loaded, we need to do it in + * an idle as after the document is loaded the textview is still + * redrawing and relocating its internals. + */ + if (data->tab->idle_scroll == 0) + { + data->tab->idle_scroll = g_idle_add ((GSourceFunc)scroll_to_cursor, data->tab); + } + + location = gtk_source_file_loader_get_location (data->loader); + + /* If the document is readonly we don't care how many times the file + * is opened. + */ + if (!gtk_source_file_is_readonly (file) && + file_already_opened (doc, location)) + { + TeplInfoBar *info_bar; + + set_editable (data->tab, FALSE); + + info_bar = tepl_io_error_info_bar_file_already_open (location); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (file_already_open_warning_info_bar_response), + data->tab); + + set_info_bar (data->tab, GTK_WIDGET (info_bar), GTK_RESPONSE_CANCEL); + } + + /* When loading from stdin, the contents may not be saved, so set the + * buffer as modified. + */ + if (location == NULL) + { + gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (doc), TRUE); + } + + data->tab->ask_if_externally_modified = TRUE; + + g_signal_emit_by_name (doc, "loaded"); +} + +static void +load_cb (GtkSourceFileLoader *loader, + GAsyncResult *result, + GTask *loading_task) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GeditDocument *doc; + GFile *location = gtk_source_file_loader_get_location (loader); + gboolean create_named_new_doc; + GError *error = NULL; + + g_clear_pointer (&data->timer, g_timer_destroy); + + gtk_source_file_loader_load_finish (loader, result, &error); + + if (error != NULL) + { + gedit_debug_message (DEBUG_TAB, "File loading error: %s", error->message); + + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + { + g_task_return_boolean (loading_task, FALSE); + g_object_unref (loading_task); + + g_error_free (error); + return; + } + } + + doc = gedit_tab_get_document (data->tab); + + g_return_if_fail (data->tab->state == GEDIT_TAB_STATE_LOADING || + data->tab->state == GEDIT_TAB_STATE_REVERTING); + + set_info_bar (data->tab, NULL, GTK_RESPONSE_NONE); + + /* Special case creating a named new doc. */ + create_named_new_doc = (_gedit_document_get_create (doc) && + g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) && + g_file_has_uri_scheme (location, "file")); + + if (create_named_new_doc) + { + g_error_free (error); + error = NULL; + } + + if (g_error_matches (error, + GTK_SOURCE_FILE_LOADER_ERROR, + GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK)) + { + GtkWidget *info_bar; + const GtkSourceEncoding *encoding; + + /* Set the tab as not editable as we have an error, the user can + * decide to make it editable again. + */ + set_editable (data->tab, FALSE); + + encoding = gtk_source_file_loader_get_encoding (loader); + + info_bar = gedit_io_loading_error_info_bar_new (location, encoding, error); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (io_loading_error_info_bar_response), + loading_task); + + set_info_bar (data->tab, info_bar, GTK_RESPONSE_CANCEL); + + if (data->tab->state == GEDIT_TAB_STATE_LOADING) + { + gtk_widget_show (GTK_WIDGET (data->tab->frame)); + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_LOADING_ERROR); + } + else + { + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_REVERTING_ERROR); + } + + /* The loading was successful, despite some invalid characters. */ + successful_load (loading_task); + gedit_recent_add_document (doc); + + g_error_free (error); + return; + } + + if (error != NULL) + { + GtkWidget *info_bar; + + if (data->tab->state == GEDIT_TAB_STATE_LOADING) + { + gtk_widget_hide (GTK_WIDGET (data->tab->frame)); + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_LOADING_ERROR); + } + else + { + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_REVERTING_ERROR); + } + + if (location != NULL) + { + gedit_recent_remove_if_local (location); + } + + if (data->tab->state == GEDIT_TAB_STATE_LOADING_ERROR) + { + const GtkSourceEncoding *encoding; + + encoding = gtk_source_file_loader_get_encoding (loader); + + info_bar = gedit_io_loading_error_info_bar_new (location, encoding, error); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (io_loading_error_info_bar_response), + loading_task); + } + else + { + g_return_if_fail (data->tab->state == GEDIT_TAB_STATE_REVERTING_ERROR); + + info_bar = gedit_unrecoverable_reverting_error_info_bar_new (location, error); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (unrecoverable_reverting_error_info_bar_response), + loading_task); + } + + set_info_bar (data->tab, info_bar, GTK_RESPONSE_CANCEL); + + g_error_free (error); + return; + } + + g_assert (error == NULL); + + gedit_tab_set_state (data->tab, GEDIT_TAB_STATE_NORMAL); + successful_load (loading_task); + + if (!create_named_new_doc) + { + gedit_recent_add_document (doc); + } + + g_task_return_boolean (loading_task, TRUE); + g_object_unref (loading_task); +} + +/* The returned list may contain duplicated encodings. Only the first occurrence + * of a duplicated encoding should be kept, like it is done by + * gtk_source_file_loader_set_candidate_encodings(). + */ +static GSList * +get_candidate_encodings (GeditTab *tab) +{ + GSList *candidates = NULL; + GeditDocument *doc; + GtkSourceFile *file; + gchar *metadata_charset; + const GtkSourceEncoding *file_encoding; + + candidates = gedit_settings_get_candidate_encodings (NULL); + + /* Prepend the encoding stored in the metadata. */ + doc = gedit_tab_get_document (tab); + metadata_charset = gedit_document_get_metadata (doc, GEDIT_METADATA_ATTRIBUTE_ENCODING); + + if (metadata_charset != NULL) + { + const GtkSourceEncoding *metadata_enc; + + metadata_enc = gtk_source_encoding_get_from_charset (metadata_charset); + + if (metadata_enc != NULL) + { + candidates = g_slist_prepend (candidates, (gpointer)metadata_enc); + } + } + + /* Finally prepend the GtkSourceFile's encoding, if previously set by a + * file loader or file saver. + */ + file = gedit_document_get_file (doc); + file_encoding = gtk_source_file_get_encoding (file); + + if (file_encoding != NULL) + { + candidates = g_slist_prepend (candidates, (gpointer)file_encoding); + } + + g_free (metadata_charset); + return candidates; +} + +static void +launch_loader (GTask *loading_task, + const GtkSourceEncoding *encoding) +{ + LoaderData *data = g_task_get_task_data (loading_task); + GSList *candidate_encodings = NULL; + GeditDocument *doc; + + if (encoding != NULL) + { + data->user_requested_encoding = TRUE; + candidate_encodings = g_slist_append (NULL, (gpointer) encoding); + } + else + { + data->user_requested_encoding = FALSE; + candidate_encodings = get_candidate_encodings (data->tab); + } + + gtk_source_file_loader_set_candidate_encodings (data->loader, candidate_encodings); + g_slist_free (candidate_encodings); + + doc = gedit_tab_get_document (data->tab); + g_signal_emit_by_name (doc, "load"); + + if (data->timer != NULL) + { + g_timer_destroy (data->timer); + } + + data->timer = g_timer_new (); + + gtk_source_file_loader_load_async (data->loader, + G_PRIORITY_DEFAULT, + g_task_get_cancellable (loading_task), + (GFileProgressCallback) loader_progress_cb, + loading_task, + NULL, + (GAsyncReadyCallback) load_cb, + loading_task); +} + +static void +load_async (GeditTab *tab, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean create, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GeditDocument *doc; + GtkSourceFile *file; + GTask *loading_task; + LoaderData *data; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (G_IS_FILE (location)); + g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable)); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_LOADING); + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + gtk_source_file_set_location (file, location); + + loading_task = g_task_new (NULL, cancellable, callback, user_data); + + data = loader_data_new (); + g_task_set_task_data (loading_task, data, (GDestroyNotify) loader_data_free); + + data->tab = tab; + data->loader = gtk_source_file_loader_new (GTK_SOURCE_BUFFER (doc), file); + data->line_pos = line_pos; + data->column_pos = column_pos; + + _gedit_document_set_create (doc, create); + + launch_loader (loading_task, encoding); +} + +static gboolean +load_finish (GeditTab *tab, + GAsyncResult *result) +{ + g_return_val_if_fail (g_task_is_valid (result, tab), FALSE); + + return g_task_propagate_boolean (G_TASK (result), NULL); +} + +void +_gedit_tab_load (GeditTab *tab, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean create) +{ + if (tab->cancellable != NULL) + { + g_cancellable_cancel (tab->cancellable); + g_object_unref (tab->cancellable); + } + + tab->cancellable = g_cancellable_new (); + + load_async (tab, + location, + encoding, + line_pos, + column_pos, + create, + tab->cancellable, + (GAsyncReadyCallback) load_finish, + NULL); +} + +static void +load_stream_async (GeditTab *tab, + GInputStream *stream, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GeditDocument *doc; + GtkSourceFile *file; + GTask *loading_task; + LoaderData *data; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (G_IS_INPUT_STREAM (stream)); + g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable)); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_LOADING); + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + gtk_source_file_set_location (file, NULL); + + loading_task = g_task_new (NULL, cancellable, callback, user_data); + + data = loader_data_new (); + g_task_set_task_data (loading_task, data, (GDestroyNotify) loader_data_free); + + data->tab = tab; + data->loader = gtk_source_file_loader_new_from_stream (GTK_SOURCE_BUFFER (doc), + file, + stream); + data->line_pos = line_pos; + data->column_pos = column_pos; + + _gedit_document_set_create (doc, FALSE); + + launch_loader (loading_task, encoding); +} + +void +_gedit_tab_load_stream (GeditTab *tab, + GInputStream *stream, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos) +{ + if (tab->cancellable != NULL) + { + g_cancellable_cancel (tab->cancellable); + g_object_unref (tab->cancellable); + } + + tab->cancellable = g_cancellable_new (); + + load_stream_async (tab, + stream, + encoding, + line_pos, + column_pos, + tab->cancellable, + (GAsyncReadyCallback) load_finish, + NULL); +} + +static void +revert_async (GeditTab *tab, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GeditDocument *doc; + GtkSourceFile *file; + GFile *location; + GTask *loading_task; + LoaderData *data; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable)); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL || + tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION); + + if (tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION) + { + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + } + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + location = gtk_source_file_get_location (file); + g_return_if_fail (location != NULL); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_REVERTING); + + loading_task = g_task_new (NULL, cancellable, callback, user_data); + + data = loader_data_new (); + g_task_set_task_data (loading_task, data, (GDestroyNotify) loader_data_free); + + data->tab = tab; + data->loader = gtk_source_file_loader_new (GTK_SOURCE_BUFFER (doc), file); + data->line_pos = 0; + data->column_pos = 0; + + launch_loader (loading_task, NULL); +} + +void +_gedit_tab_revert (GeditTab *tab) +{ + if (tab->cancellable != NULL) + { + g_cancellable_cancel (tab->cancellable); + g_object_unref (tab->cancellable); + } + + tab->cancellable = g_cancellable_new (); + + revert_async (tab, + tab->cancellable, + (GAsyncReadyCallback) load_finish, + NULL); +} + +static void +close_printing (GeditTab *tab) +{ + if (tab->print_preview != NULL) + { + gtk_widget_destroy (tab->print_preview); + } + + g_clear_object (&tab->print_job); + g_clear_object (&tab->print_preview); + + /* destroy the info bar */ + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_NORMAL); +} + +static void +saver_progress_cb (goffset size, + goffset total_size, + GTask *saving_task) +{ + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + + g_return_if_fail (tab->state == GEDIT_TAB_STATE_SAVING); + + if (should_show_progress_info (&data->timer, size, total_size)) + { + show_saving_info_bar (saving_task); + info_bar_set_progress (tab, size, total_size); + } +} + +static void +save_cb (GtkSourceFileSaver *saver, + GAsyncResult *result, + GTask *saving_task) +{ + GeditTab *tab = g_task_get_source_object (saving_task); + SaverData *data = g_task_get_task_data (saving_task); + GeditDocument *doc = gedit_tab_get_document (tab); + GFile *location = gtk_source_file_saver_get_location (saver); + GError *error = NULL; + + g_return_if_fail (tab->state == GEDIT_TAB_STATE_SAVING); + + gtk_source_file_saver_save_finish (saver, result, &error); + + if (error != NULL) + { + gedit_debug_message (DEBUG_TAB, "File saving error: %s", error->message); + } + + if (data->timer != NULL) + { + g_timer_destroy (data->timer); + data->timer = NULL; + } + + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + if (error != NULL) + { + GtkWidget *info_bar; + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_SAVING_ERROR); + + if (error->domain == GTK_SOURCE_FILE_SAVER_ERROR && + error->code == GTK_SOURCE_FILE_SAVER_ERROR_EXTERNALLY_MODIFIED) + { + /* This error is recoverable */ + info_bar = gedit_externally_modified_saving_error_info_bar_new (location, error); + g_return_if_fail (info_bar != NULL); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (externally_modified_error_info_bar_response), + saving_task); + } + else if (error->domain == G_IO_ERROR && + error->code == G_IO_ERROR_CANT_CREATE_BACKUP) + { + /* This error is recoverable */ + info_bar = GTK_WIDGET (tepl_io_error_info_bar_cant_create_backup (location, error)); + g_return_if_fail (info_bar != NULL); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (cant_create_backup_error_info_bar_response), + saving_task); + } + else if (error->domain == GTK_SOURCE_FILE_SAVER_ERROR && + error->code == GTK_SOURCE_FILE_SAVER_ERROR_INVALID_CHARS) + { + /* If we have any invalid char in the document we must warn the user + * as it can make the document useless if it is saved. + */ + info_bar = GTK_WIDGET (tepl_io_error_info_bar_invalid_characters (location)); + g_return_if_fail (info_bar != NULL); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (invalid_character_info_bar_response), + saving_task); + } + else if (error->domain == GTK_SOURCE_FILE_SAVER_ERROR || + (error->domain == G_IO_ERROR && + error->code != G_IO_ERROR_INVALID_DATA && + error->code != G_IO_ERROR_PARTIAL_INPUT)) + { + /* These errors are _NOT_ recoverable */ + gedit_recent_remove_if_local (location); + + info_bar = gedit_unrecoverable_saving_error_info_bar_new (location, error); + g_return_if_fail (info_bar != NULL); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (unrecoverable_saving_error_info_bar_response), + saving_task); + } + else + { + const GtkSourceEncoding *encoding; + + /* This error is recoverable */ + g_return_if_fail (error->domain == G_CONVERT_ERROR || + error->domain == G_IO_ERROR); + + encoding = gtk_source_file_saver_get_encoding (saver); + + info_bar = gedit_conversion_error_while_saving_info_bar_new (location, encoding, error); + g_return_if_fail (info_bar != NULL); + + g_signal_connect (info_bar, + "response", + G_CALLBACK (recoverable_saving_error_info_bar_response), + saving_task); + } + + set_info_bar (tab, info_bar, GTK_RESPONSE_CANCEL); + } + else + { + gedit_recent_add_document (doc); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_NORMAL); + + tab->ask_if_externally_modified = TRUE; + + g_signal_emit_by_name (doc, "saved"); + g_task_return_boolean (saving_task, TRUE); + g_object_unref (saving_task); + } + + if (error != NULL) + { + g_error_free (error); + } +} + +static void +launch_saver (GTask *saving_task) +{ + GeditTab *tab = g_task_get_source_object (saving_task); + GeditDocument *doc = gedit_tab_get_document (tab); + SaverData *data = g_task_get_task_data (saving_task); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_SAVING); + + g_signal_emit_by_name (doc, "save"); + + if (data->timer != NULL) + { + g_timer_destroy (data->timer); + } + + data->timer = g_timer_new (); + + gtk_source_file_saver_save_async (data->saver, + G_PRIORITY_DEFAULT, + g_task_get_cancellable (saving_task), + (GFileProgressCallback) saver_progress_cb, + saving_task, + NULL, + (GAsyncReadyCallback) save_cb, + saving_task); +} + +/* Gets the initial save flags, when launching a new FileSaver. */ +static GtkSourceFileSaverFlags +get_initial_save_flags (GeditTab *tab, + gboolean auto_save) +{ + GtkSourceFileSaverFlags save_flags; + gboolean create_backup; + + save_flags = tab->save_flags; + + create_backup = g_settings_get_boolean (tab->editor_settings, + GEDIT_SETTINGS_CREATE_BACKUP_COPY); + + /* In case of autosaving, we need to preserve the backup that was produced + * the last time the user "manually" saved the file. So we don't set the + * CREATE_BACKUP flag for an automatic file saving. + */ + if (create_backup && !auto_save) + { + save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_CREATE_BACKUP; + } + + return save_flags; +} + +void +_gedit_tab_save_async (GeditTab *tab, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GTask *saving_task; + SaverData *data; + GeditDocument *doc; + GtkSourceFile *file; + GtkSourceFileSaverFlags save_flags; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL || + tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION || + tab->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW); + + /* The Save and Save As window actions are insensitive when the print + * preview is shown, but it's still possible to save several documents + * at once (with the Save All action or when quitting gedit). In that + * case, the print preview is simply closed. Handling correctly the + * document saving when the print preview is shown is more complicated + * and error-prone, it doesn't worth the effort. (the print preview + * would need to be updated when the filename changes, dealing with file + * saving errors is also more complicated, etc). + */ + if (tab->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) + { + close_printing (tab); + } + + doc = gedit_tab_get_document (tab); + g_return_if_fail (!gedit_document_is_untitled (doc)); + + saving_task = g_task_new (tab, cancellable, callback, user_data); + + data = saver_data_new (); + g_task_set_task_data (saving_task, data, (GDestroyNotify) saver_data_free); + + save_flags = get_initial_save_flags (tab, FALSE); + + if (tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION) + { + /* We already told the user about the external modification: + * hide the message bar and set the save flag. + */ + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME; + } + + file = gedit_document_get_file (doc); + + data->saver = gtk_source_file_saver_new (GTK_SOURCE_BUFFER (doc), file); + + gtk_source_file_saver_set_flags (data->saver, save_flags); + + launch_saver (saving_task); +} + +gboolean +_gedit_tab_save_finish (GeditTab *tab, + GAsyncResult *result) +{ + g_return_val_if_fail (g_task_is_valid (result, tab), FALSE); + + return g_task_propagate_boolean (G_TASK (result), NULL); +} + +static void +auto_save_finished_cb (GeditTab *tab, + GAsyncResult *result, + gpointer user_data) +{ + _gedit_tab_save_finish (tab, result); +} + +static gboolean +gedit_tab_auto_save (GeditTab *tab) +{ + GTask *saving_task; + SaverData *data; + GeditDocument *doc; + GtkSourceFile *file; + GtkSourceFileSaverFlags save_flags; + + gedit_debug (DEBUG_TAB); + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + g_return_val_if_fail (!gedit_document_is_untitled (doc), G_SOURCE_REMOVE); + g_return_val_if_fail (!gtk_source_file_is_readonly (file), G_SOURCE_REMOVE); + + if (!gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc))) + { + gedit_debug_message (DEBUG_TAB, "Document not modified"); + + return G_SOURCE_CONTINUE; + } + + if (tab->state != GEDIT_TAB_STATE_NORMAL) + { + gedit_debug_message (DEBUG_TAB, "Retry after 30 seconds"); + + tab->auto_save_timeout = g_timeout_add_seconds (30, + (GSourceFunc) gedit_tab_auto_save, + tab); + + /* Destroy the old timeout. */ + return G_SOURCE_REMOVE; + } + + /* Set auto_save_timeout to 0 since the timeout is going to be destroyed */ + tab->auto_save_timeout = 0; + + saving_task = g_task_new (tab, + NULL, + (GAsyncReadyCallback) auto_save_finished_cb, + NULL); + + data = saver_data_new (); + g_task_set_task_data (saving_task, data, (GDestroyNotify) saver_data_free); + + data->saver = gtk_source_file_saver_new (GTK_SOURCE_BUFFER (doc), file); + + save_flags = get_initial_save_flags (tab, TRUE); + gtk_source_file_saver_set_flags (data->saver, save_flags); + + launch_saver (saving_task); + + return G_SOURCE_REMOVE; +} + +/* Call _gedit_tab_save_finish() in @callback, there is no + * _gedit_tab_save_as_finish(). + */ +void +_gedit_tab_save_as_async (GeditTab *tab, + GFile *location, + const GtkSourceEncoding *encoding, + GtkSourceNewlineType newline_type, + GtkSourceCompressionType compression_type, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GTask *saving_task; + SaverData *data; + GeditDocument *doc; + GtkSourceFile *file; + GtkSourceFileSaverFlags save_flags; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL || + tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION || + tab->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW); + g_return_if_fail (G_IS_FILE (location)); + g_return_if_fail (encoding != NULL); + + /* See note at _gedit_tab_save_async(). */ + if (tab->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) + { + close_printing (tab); + } + + saving_task = g_task_new (tab, cancellable, callback, user_data); + + data = saver_data_new (); + g_task_set_task_data (saving_task, data, (GDestroyNotify) saver_data_free); + + doc = gedit_tab_get_document (tab); + + /* reset the save flags, when saving as */ + tab->save_flags = GTK_SOURCE_FILE_SAVER_FLAGS_NONE; + + save_flags = get_initial_save_flags (tab, FALSE); + + if (tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION) + { + /* We already told the user about the external modification: + * hide the message bar and set the save flag. + */ + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME; + } + + file = gedit_document_get_file (doc); + + data->saver = gtk_source_file_saver_new_with_target (GTK_SOURCE_BUFFER (doc), + file, + location); + + gtk_source_file_saver_set_encoding (data->saver, encoding); + gtk_source_file_saver_set_newline_type (data->saver, newline_type); + gtk_source_file_saver_set_compression_type (data->saver, compression_type); + gtk_source_file_saver_set_flags (data->saver, save_flags); + + launch_saver (saving_task); +} + +#define GEDIT_PAGE_SETUP_KEY "gedit-page-setup-key" +#define GEDIT_PRINT_SETTINGS_KEY "gedit-print-settings-key" + +static GtkPageSetup * +get_page_setup (GeditTab *tab) +{ + gpointer data; + GeditDocument *doc; + + doc = gedit_tab_get_document (tab); + + data = g_object_get_data (G_OBJECT (doc), + GEDIT_PAGE_SETUP_KEY); + + if (data == NULL) + { + return _gedit_app_get_default_page_setup (GEDIT_APP (g_application_get_default ())); + } + else + { + return gtk_page_setup_copy (GTK_PAGE_SETUP (data)); + } +} + +static GtkPrintSettings * +get_print_settings (GeditTab *tab) +{ + gpointer data; + GeditDocument *doc; + GtkPrintSettings *settings; + gchar *name; + + doc = gedit_tab_get_document (tab); + + data = g_object_get_data (G_OBJECT (doc), + GEDIT_PRINT_SETTINGS_KEY); + + if (data == NULL) + { + settings = _gedit_app_get_default_print_settings (GEDIT_APP (g_application_get_default ())); + } + else + { + settings = gtk_print_settings_copy (GTK_PRINT_SETTINGS (data)); + } + + /* Be sure the OUTPUT_URI is unset, because otherwise the + * OUTPUT_BASENAME is not taken into account. + */ + gtk_print_settings_set (settings, GTK_PRINT_SETTINGS_OUTPUT_URI, NULL); + + name = gedit_document_get_short_name_for_display (doc); + gtk_print_settings_set (settings, GTK_PRINT_SETTINGS_OUTPUT_BASENAME, name); + + g_free (name); + + return settings; +} + +/* FIXME: show the info bar only if the operation will be "long" */ +static void +printing_cb (GeditPrintJob *job, + GeditPrintJobStatus status, + GeditTab *tab) +{ + g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->info_bar)); + + gtk_widget_show (tab->info_bar); + + gedit_progress_info_bar_set_text (GEDIT_PROGRESS_INFO_BAR (tab->info_bar), + gedit_print_job_get_status_string (job)); + + gedit_progress_info_bar_set_fraction (GEDIT_PROGRESS_INFO_BAR (tab->info_bar), + gedit_print_job_get_progress (job)); +} + +static void +store_print_settings (GeditTab *tab, + GeditPrintJob *job) +{ + GeditDocument *doc; + GtkPrintSettings *settings; + GtkPageSetup *page_setup; + + doc = gedit_tab_get_document (tab); + + settings = gedit_print_job_get_print_settings (job); + + /* clear n-copies settings since we do not want to + * persist that one */ + gtk_print_settings_unset (settings, + GTK_PRINT_SETTINGS_N_COPIES); + + /* remember settings for this document */ + g_object_set_data_full (G_OBJECT (doc), + GEDIT_PRINT_SETTINGS_KEY, + g_object_ref (settings), + (GDestroyNotify)g_object_unref); + + /* make them the default */ + _gedit_app_set_default_print_settings (GEDIT_APP (g_application_get_default ()), + settings); + + page_setup = gedit_print_job_get_page_setup (job); + + /* remember page setup for this document */ + g_object_set_data_full (G_OBJECT (doc), + GEDIT_PAGE_SETUP_KEY, + g_object_ref (page_setup), + (GDestroyNotify)g_object_unref); + + /* make it the default */ + _gedit_app_set_default_page_setup (GEDIT_APP (g_application_get_default ()), + page_setup); +} + +static void +done_printing_cb (GeditPrintJob *job, + GeditPrintJobResult result, + GError *error, + GeditTab *tab) +{ + GeditView *view; + + g_return_if_fail (tab->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW || + tab->state == GEDIT_TAB_STATE_PRINTING); + + if (result == GEDIT_PRINT_JOB_RESULT_OK) + { + store_print_settings (tab, job); + } + + /* TODO Show the error in an info bar. */ + if (error != NULL) + { + g_warning ("Printing error: %s", error->message); + g_error_free (error); + error = NULL; + } + + close_printing (tab); + + view = gedit_tab_get_view (tab); + gtk_widget_grab_focus (GTK_WIDGET (view)); +} + +static void +show_preview_cb (GeditPrintJob *job, + GeditPrintPreview *preview, + GeditTab *tab) +{ + g_return_if_fail (tab->print_preview == NULL); + + /* destroy the info bar */ + set_info_bar (tab, NULL, GTK_RESPONSE_NONE); + + tab->print_preview = GTK_WIDGET (preview); + g_object_ref_sink (tab->print_preview); + + gtk_box_pack_end (GTK_BOX (tab), tab->print_preview, TRUE, TRUE, 0); + + gtk_widget_show (tab->print_preview); + gtk_widget_grab_focus (tab->print_preview); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW); +} + +static void +print_cancelled (GtkWidget *bar, + gint response_id, + GeditTab *tab) +{ + gedit_debug (DEBUG_TAB); + + if (tab->print_job != NULL) + { + gedit_print_job_cancel (tab->print_job); + } +} + +static void +add_printing_info_bar (GeditTab *tab) +{ + GtkWidget *bar; + + bar = gedit_progress_info_bar_new ("document-print", + "", + TRUE); + + g_signal_connect (bar, + "response", + G_CALLBACK (print_cancelled), + tab); + + set_info_bar (tab, bar, GTK_RESPONSE_NONE); + + /* hide until we start printing */ + gtk_widget_hide (bar); +} + +void +_gedit_tab_print (GeditTab *tab) +{ + GeditView *view; + GtkPageSetup *setup; + GtkPrintSettings *settings; + GtkPrintOperationResult res; + GError *error = NULL; + + g_return_if_fail (GEDIT_IS_TAB (tab)); + + /* FIXME: currently we can have just one printoperation going on at a + * given time, so before starting the print we close the preview. + * Would be nice to handle it properly though. + */ + if (tab->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) + { + close_printing (tab); + } + + g_return_if_fail (tab->print_job == NULL); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL); + + view = gedit_tab_get_view (tab); + + tab->print_job = gedit_print_job_new (view); + + add_printing_info_bar (tab); + + g_signal_connect_object (tab->print_job, + "printing", + G_CALLBACK (printing_cb), + tab, + 0); + + g_signal_connect_object (tab->print_job, + "show-preview", + G_CALLBACK (show_preview_cb), + tab, + 0); + + g_signal_connect_object (tab->print_job, + "done", + G_CALLBACK (done_printing_cb), + tab, + 0); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_PRINTING); + + setup = get_page_setup (tab); + settings = get_print_settings (tab); + + res = gedit_print_job_print (tab->print_job, + GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, + setup, + settings, + GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (tab))), + &error); + + /* TODO: manage res in the correct way */ + if (res == GTK_PRINT_OPERATION_RESULT_ERROR) + { + /* FIXME: go in error state */ + g_warning ("Async print preview failed (%s)", error->message); + g_error_free (error); + + close_printing (tab); + } + + g_object_unref (setup); + g_object_unref (settings); +} + +void +_gedit_tab_mark_for_closing (GeditTab *tab) +{ + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (tab->state == GEDIT_TAB_STATE_NORMAL); + + gedit_tab_set_state (tab, GEDIT_TAB_STATE_CLOSING); +} + +gboolean +_gedit_tab_get_can_close (GeditTab *tab) +{ + GeditDocument *doc; + + g_return_val_if_fail (GEDIT_IS_TAB (tab), FALSE); + + /* if we are loading or reverting, the tab can be closed */ + if (tab->state == GEDIT_TAB_STATE_LOADING || + tab->state == GEDIT_TAB_STATE_LOADING_ERROR || + tab->state == GEDIT_TAB_STATE_REVERTING || + tab->state == GEDIT_TAB_STATE_REVERTING_ERROR) /* CHECK: I'm not sure this is the right behavior for REVERTING ERROR */ + { + return TRUE; + } + + /* Do not close tab with saving errors */ + if (tab->state == GEDIT_TAB_STATE_SAVING_ERROR) + { + return FALSE; + } + + doc = gedit_tab_get_document (tab); + + if (_gedit_document_needs_saving (doc)) + { + return FALSE; + } + + return TRUE; +} + +/** + * gedit_tab_get_auto_save_enabled: + * @tab: a #GeditTab + * + * Gets the current state for the autosave feature + * + * Return value: %TRUE if the autosave is enabled, else %FALSE + **/ +gboolean +gedit_tab_get_auto_save_enabled (GeditTab *tab) +{ + gedit_debug (DEBUG_TAB); + + g_return_val_if_fail (GEDIT_IS_TAB (tab), FALSE); + + return tab->auto_save; +} + +/** + * gedit_tab_set_auto_save_enabled: + * @tab: a #GeditTab + * @enable: enable (%TRUE) or disable (%FALSE) auto save + * + * Enables or disables the autosave feature. It does not install an + * autosave timeout if the document is new or is read-only + **/ +void +gedit_tab_set_auto_save_enabled (GeditTab *tab, + gboolean enable) +{ + gedit_debug (DEBUG_TAB); + + g_return_if_fail (GEDIT_IS_TAB (tab)); + + enable = enable != FALSE; + + if (tab->auto_save != enable) + { + tab->auto_save = enable; + update_auto_save_timeout (tab); + return; + } +} + +/** + * gedit_tab_get_auto_save_interval: + * @tab: a #GeditTab + * + * Gets the current interval for the autosaves + * + * Return value: the value of the autosave + **/ +gint +gedit_tab_get_auto_save_interval (GeditTab *tab) +{ + gedit_debug (DEBUG_TAB); + + g_return_val_if_fail (GEDIT_IS_TAB (tab), 0); + + return tab->auto_save_interval; +} + +/** + * gedit_tab_set_auto_save_interval: + * @tab: a #GeditTab + * @interval: the new interval + * + * Sets the interval for the autosave feature. + */ +void +gedit_tab_set_auto_save_interval (GeditTab *tab, + gint interval) +{ + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (interval > 0); + + gedit_debug (DEBUG_TAB); + + if (tab->auto_save_interval != interval) + { + tab->auto_save_interval = interval; + remove_auto_save_timeout (tab); + update_auto_save_timeout (tab); + } +} + +void +gedit_tab_set_info_bar (GeditTab *tab, + GtkWidget *info_bar) +{ + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail (info_bar == NULL || GTK_IS_WIDGET (info_bar)); + + /* FIXME: this can cause problems with the tab state machine */ + set_info_bar (tab, info_bar, GTK_RESPONSE_NONE); +} + +GeditViewFrame * +_gedit_tab_get_view_frame (GeditTab *tab) +{ + return tab->frame; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-tab.h b/gedit/gedit-tab.h new file mode 100644 index 0000000..e3d67d7 --- /dev/null +++ b/gedit/gedit-tab.h @@ -0,0 +1,77 @@ +/* + * gedit-tab.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_TAB_H +#define GEDIT_TAB_H + +#include +#include +#include + +G_BEGIN_DECLS + +typedef enum +{ + GEDIT_TAB_STATE_NORMAL = 0, + GEDIT_TAB_STATE_LOADING, + GEDIT_TAB_STATE_REVERTING, + GEDIT_TAB_STATE_SAVING, + GEDIT_TAB_STATE_PRINTING, + GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW, + GEDIT_TAB_STATE_LOADING_ERROR, + GEDIT_TAB_STATE_REVERTING_ERROR, + GEDIT_TAB_STATE_SAVING_ERROR, + GEDIT_TAB_STATE_GENERIC_ERROR, + GEDIT_TAB_STATE_CLOSING, + GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION, + GEDIT_TAB_NUM_OF_STATES /* This is not a valid state */ +} GeditTabState; + +#define GEDIT_TYPE_TAB (gedit_tab_get_type()) + +G_DECLARE_FINAL_TYPE (GeditTab, gedit_tab, GEDIT, TAB, GtkBox) + +GeditView *gedit_tab_get_view (GeditTab *tab); + +/* This is only an helper function */ +GeditDocument *gedit_tab_get_document (GeditTab *tab); + +GeditTab *gedit_tab_get_from_document (GeditDocument *doc); + +GeditTabState gedit_tab_get_state (GeditTab *tab); + +gboolean gedit_tab_get_auto_save_enabled (GeditTab *tab); + +void gedit_tab_set_auto_save_enabled (GeditTab *tab, + gboolean enable); + +gint gedit_tab_get_auto_save_interval (GeditTab *tab); + +void gedit_tab_set_auto_save_interval (GeditTab *tab, + gint interval); + +void gedit_tab_set_info_bar (GeditTab *tab, + GtkWidget *info_bar); + +G_END_DECLS + +#endif /* GEDIT_TAB_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c new file mode 100644 index 0000000..744b4d8 --- /dev/null +++ b/gedit/gedit-utils.c @@ -0,0 +1,620 @@ +/* + * gedit-utils.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2002 Chema Celorio, Paolo Maggi + * Copyright (C) 2003-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-utils.h" +#include +#include +#include +#include "gedit-debug.h" + +gboolean +gedit_utils_menu_position_under_tree_view (GtkTreeView *tree_view, + GdkRectangle *rect) +{ + GtkTreeSelection *selection; + GtkTreeModel *model; + gint count_rows; + GList *rows; + gint widget_x, widget_y; + + model = gtk_tree_view_get_model (tree_view); + g_return_val_if_fail (model != NULL, FALSE); + + selection = gtk_tree_view_get_selection (tree_view); + g_return_val_if_fail (selection != NULL, FALSE); + + count_rows = gtk_tree_selection_count_selected_rows (selection); + if (count_rows != 1) + return FALSE; + + rows = gtk_tree_selection_get_selected_rows (selection, &model); + gtk_tree_view_get_cell_area (tree_view, (GtkTreePath *)(rows->data), + gtk_tree_view_get_column (tree_view, 0), + rect); + + gtk_tree_view_convert_bin_window_to_widget_coords (tree_view, rect->x, rect->y, &widget_x, &widget_y); + rect->x = widget_x; + rect->y = widget_y; + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); + return TRUE; +} + +/** + * gedit_utils_set_atk_name_description: + * @widget: The Gtk widget for which name/description to be set + * @name: Atk name string + * @description: Atk description string + * + * This function sets up name and description + * for a specified gtk widget. + */ +void +gedit_utils_set_atk_name_description (GtkWidget *widget, + const gchar *name, + const gchar *description) +{ + AtkObject *aobj; + + aobj = gtk_widget_get_accessible (widget); + + if (!(GTK_IS_ACCESSIBLE (aobj))) + return; + + if (name) + atk_object_set_name (aobj, name); + + if (description) + atk_object_set_description (aobj, description); +} + +/** + * gedit_warning: + * @parent: + * @format: + * @...: + * + * Deprecated: 3.38: Use tepl_utils_show_warning_dialog() instead. + */ +void +gedit_warning (GtkWindow *parent, const gchar *format, ...) +{ + va_list args; + gchar *str; + GtkWidget *dialog; + GtkWindowGroup *wg = NULL; + + g_return_if_fail (format != NULL); + + if (parent != NULL) + wg = gtk_window_get_group (parent); + + va_start (args, format); + str = g_strdup_vprintf (format, args); + va_end (args); + + dialog = gtk_message_dialog_new_with_markup ( + parent, + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + "%s", str); + + g_free (str); + + if (wg != NULL) + gtk_window_group_add_window (wg, GTK_WINDOW (dialog)); + + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); + + gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + + g_signal_connect (G_OBJECT (dialog), + "response", + G_CALLBACK (gtk_widget_destroy), + NULL); + + gtk_widget_show (dialog); +} + +static gchar * +uri_get_dirname (const gchar *uri) +{ + gchar *res; + gchar *str; + + g_return_val_if_fail (uri != NULL, NULL); + + /* CHECK: does it work with uri chaining? - Paolo */ + str = g_path_get_dirname (uri); + g_return_val_if_fail (str != NULL, g_strdup (".")); + + if ((strlen (str) == 1) && (*str == '.')) + { + g_free (str); + + return NULL; + } + + res = tepl_utils_replace_home_dir_with_tilde (str); + + g_free (str); + + return res; +} + +/** + * gedit_utils_location_get_dirname_for_display: + * @location: the location + * + * Returns a string suitable to be displayed in the UI indicating + * the name of the directory where the file is located. + * For remote files it may also contain the hostname etc. + * For local files it tries to replace the home dir with ~. + * + * Returns: (transfer full): a string to display the dirname + */ +gchar * +gedit_utils_location_get_dirname_for_display (GFile *location) +{ + gchar *uri; + gchar *res; + GMount *mount; + + g_return_val_if_fail (location != NULL, NULL); + + /* we use the parse name, that is either the local path + * or an uri but which is utf8 safe */ + uri = g_file_get_parse_name (location); + + /* FIXME: this is sync... is it a problem? */ + mount = g_file_find_enclosing_mount (location, NULL, NULL); + if (mount != NULL) + { + gchar *mount_name; + gchar *path = NULL; + gchar *dirname; + + mount_name = g_mount_get_name (mount); + g_object_unref (mount); + + /* obtain the "path" part of the uri */ + tepl_utils_decode_uri (uri, + NULL, NULL, + NULL, NULL, + &path); + + if (path == NULL) + { + dirname = uri_get_dirname (uri); + } + else + { + dirname = uri_get_dirname (path); + } + + if (dirname == NULL || strcmp (dirname, ".") == 0) + { + res = mount_name; + } + else + { + res = g_strdup_printf ("%s %s", mount_name, dirname); + g_free (mount_name); + } + + g_free (path); + g_free (dirname); + } + else + { + /* fallback for local files or uris without mounts */ + res = uri_get_dirname (uri); + } + + g_free (uri); + + return res; +} + +static gboolean +is_valid_scheme_character (gchar c) +{ + return g_ascii_isalnum (c) || c == '+' || c == '-' || c == '.'; +} + +static gboolean +has_valid_scheme (const gchar *uri) +{ + const gchar *p; + + p = uri; + + if (!is_valid_scheme_character (*p)) + { + return FALSE; + } + + do + { + p++; + } while (is_valid_scheme_character (*p)); + + return *p == ':'; +} + +gboolean +gedit_utils_is_valid_location (GFile *location) +{ + const guchar *p; + gchar *uri; + gboolean is_valid; + + if (location == NULL) + return FALSE; + + uri = g_file_get_uri (location); + + if (!has_valid_scheme (uri)) + { + g_free (uri); + return FALSE; + } + + is_valid = TRUE; + + /* We expect to have a fully valid set of characters */ + for (p = (const guchar *)uri; *p; p++) { + if (*p == '%') + { + ++p; + if (!g_ascii_isxdigit (*p)) + { + is_valid = FALSE; + break; + } + + ++p; + if (!g_ascii_isxdigit (*p)) + { + is_valid = FALSE; + break; + } + } + else + { + if (*p <= 32 || *p >= 128) + { + is_valid = FALSE; + break; + } + } + } + + g_free (uri); + + return is_valid; +} + + +static gchar * +make_canonical_uri_from_shell_arg (const gchar *str) +{ + GFile *gfile; + gchar *uri; + + g_return_val_if_fail (str != NULL, NULL); + g_return_val_if_fail (*str != '\0', NULL); + + /* Note for the future: + * FIXME: is still still relevant? + * + * paolo: and flame whoever tells + * you that file:///gnome/test_files/hëllò + * doesn't work --- that's not a valid URI + * + * federico: well, another solution that + * does not requires patch to _from_shell_args + * is to check that the string returned by it + * contains only ASCII chars + * paolo: hmmmm, isn't there + * gnome_vfs_is_uri_valid() or something? + * : I will use gedit_utils_is_valid_uri () + * + */ + + gfile = g_file_new_for_commandline_arg (str); + + if (gedit_utils_is_valid_location (gfile)) + { + uri = g_file_get_uri (gfile); + g_object_unref (gfile); + return uri; + } + + g_object_unref (gfile); + return NULL; +} + + +/** + * gedit_utils_basename_for_display: + * @location: location for which the basename should be displayed + * + * Returns: (transfer full): the basename of a file suitable for display to users. + */ +gchar * +gedit_utils_basename_for_display (GFile *location) +{ + gchar *name; + gchar *hn; + gchar *uri; + + g_return_val_if_fail (G_IS_FILE (location), NULL); + + uri = g_file_get_uri (location); + + /* First, try to query the display name, but only on local files */ + if (g_file_has_uri_scheme (location, "file")) + { + GFileInfo *info; + + info = g_file_query_info (location, + G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, + G_FILE_QUERY_INFO_NONE, + NULL, + NULL); + + if (info) + { + /* Simply get the display name to use as the basename */ + name = g_strdup (g_file_info_get_display_name (info)); + g_object_unref (info); + } + else + { + /* This is a local file, and therefore we will use + * g_filename_display_basename on the local path */ + gchar *local_path; + + local_path = g_file_get_path (location); + name = g_filename_display_basename (local_path); + g_free (local_path); + } + } + else if (g_file_has_parent (location, NULL) || + !tepl_utils_decode_uri (uri, NULL, NULL, &hn, NULL, NULL)) + { + /* For remote files with a parent (so not just http://foo.com) + or remote file for which the decoding of the host name fails, + use the _parse_name and take basename of that */ + gchar *parse_name; + gchar *base; + + parse_name = g_file_get_parse_name (location); + base = g_filename_display_basename (parse_name); + name = g_uri_unescape_string (base, NULL); + + g_free (base); + g_free (parse_name); + } + else + { + /* display '/ on ' using the decoded host */ + gchar *hn_utf8; + + if (hn != NULL) + { + hn_utf8 = g_utf8_make_valid (hn, -1); + } + else + { + /* we should never get here */ + hn_utf8 = g_strdup ("?"); + } + + /* Translators: '/ on ' */ + name = g_strdup_printf (_("/ on %s"), hn_utf8); + + g_free (hn_utf8); + g_free (hn); + } + + g_free (uri); + + return name; +} + +/** + * gedit_utils_drop_get_uris: + * @selection_data: the #GtkSelectionData from drag_data_received + * + * Create a list of valid uri's from a uri-list drop. + * + * Returns: (transfer full): a string array which will hold the uris or + * %NULL if there were no valid uris. g_strfreev should be used when + * the string array is no longer used + */ +gchar ** +gedit_utils_drop_get_uris (GtkSelectionData *selection_data) +{ + gchar **uris; + gint i; + gint p = 0; + gchar **uri_list; + + uris = g_uri_list_extract_uris ((gchar *) gtk_selection_data_get_data (selection_data)); + uri_list = g_new0(gchar *, g_strv_length (uris) + 1); + + for (i = 0; uris[i] != NULL; i++) + { + gchar *uri; + + uri = make_canonical_uri_from_shell_arg (uris[i]); + + /* Silently ignore malformed URI/filename */ + if (uri != NULL) + uri_list[p++] = uri; + } + + if (*uri_list == NULL) + { + g_free(uri_list); + g_strfreev (uris); + return NULL; + } + + g_strfreev (uris); + return uri_list; +} + +/** + * gedit_utils_decode_uri: + * @uri: the uri to decode + * @scheme: (out) (allow-none): return value pointer for the uri's + * scheme (e.g. http, sftp, ...), or %NULL + * @user: (out) (allow-none): return value pointer for the uri user info, or %NULL + * @port: (out) (allow-none): return value pointer for the uri port, or %NULL + * @host: (out) (allow-none): return value pointer for the uri host, or %NULL + * @path: (out) (allow-none): return value pointer for the uri path, or %NULL + * + * Parse and break an uri apart in its individual components like the uri + * scheme, user info, port, host and path. The return value pointer can be + * %NULL to ignore certain parts of the uri. If the function returns %TRUE, then + * all return value pointers should be freed using g_free + * + * Return value: %TRUE if the uri could be properly decoded, %FALSE otherwise. + * Deprecated: 3.38: Use tepl_utils_decode_uri() instead. + */ +gboolean +gedit_utils_decode_uri (const gchar *uri, + gchar **scheme, + gchar **user, + gchar **host, + gchar **port, + gchar **path) +{ + return tepl_utils_decode_uri (uri, scheme, user, host, port, path); +} + +GtkSourceCompressionType +gedit_utils_get_compression_type_from_content_type (const gchar *content_type) +{ + if (content_type == NULL) + { + return GTK_SOURCE_COMPRESSION_TYPE_NONE; + } + + if (g_content_type_is_a (content_type, "application/x-gzip")) + { + return GTK_SOURCE_COMPRESSION_TYPE_GZIP; + } + + return GTK_SOURCE_COMPRESSION_TYPE_NONE; +} + +/* Copied from nautilus */ +static gchar * +get_direct_save_filename (GdkDragContext *context) +{ + guchar *prop_text; + gint prop_len; + + if (!gdk_property_get (gdk_drag_context_get_source_window (context), gdk_atom_intern ("XdndDirectSave0", FALSE), + gdk_atom_intern ("text/plain", FALSE), 0, 1024, FALSE, NULL, NULL, + &prop_len, &prop_text) && prop_text != NULL) { + return NULL; + } + + /* Zero-terminate the string */ + prop_text = g_realloc (prop_text, prop_len + 1); + prop_text[prop_len] = '\0'; + + /* Verify that the file name provided by the source is valid */ + if (*prop_text == '\0' || + strchr ((const gchar *) prop_text, G_DIR_SEPARATOR) != NULL) { + gedit_debug_message (DEBUG_UTILS, "Invalid filename provided by XDS drag site"); + g_free (prop_text); + return NULL; + } + + return (gchar *)prop_text; +} + +gchar * +gedit_utils_set_direct_save_filename (GdkDragContext *context) +{ + gchar *uri; + gchar *filename; + + uri = NULL; + filename = get_direct_save_filename (context); + + if (filename != NULL) + { + gchar *tempdir; + gchar *path; + + tempdir = g_dir_make_tmp ("gedit-drop-XXXXXX", NULL); + if (tempdir == NULL) + { + tempdir = g_strdup (g_get_tmp_dir ()); + } + + path = g_build_filename (tempdir, + filename, + NULL); + + uri = g_filename_to_uri (path, NULL, NULL); + + /* Change the property */ + gdk_property_change (gdk_drag_context_get_source_window (context), + gdk_atom_intern ("XdndDirectSave0", FALSE), + gdk_atom_intern ("text/plain", FALSE), 8, + GDK_PROP_MODE_REPLACE, (const guchar *) uri, + strlen (uri)); + + g_free (tempdir); + g_free (path); + g_free (filename); + } + + return uri; +} + +const gchar * +gedit_utils_newline_type_to_string (GtkSourceNewlineType newline_type) +{ + switch (newline_type) + { + case GTK_SOURCE_NEWLINE_TYPE_LF: + return _("Unix/Linux"); + case GTK_SOURCE_NEWLINE_TYPE_CR: + return _("Mac OS Classic"); + case GTK_SOURCE_NEWLINE_TYPE_CR_LF: + return _("Windows"); + } + + return NULL; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h new file mode 100644 index 0000000..9869ab6 --- /dev/null +++ b/gedit/gedit-utils.h @@ -0,0 +1,69 @@ +/* + * gedit-utils.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002 - 2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_UTILS_H +#define GEDIT_UTILS_H + +#include + +G_BEGIN_DECLS + +gboolean gedit_utils_menu_position_under_tree_view (GtkTreeView *tree_view, + GdkRectangle *rect); + +void gedit_utils_set_atk_name_description (GtkWidget *widget, + const gchar *name, + const gchar *description); + +gchar *gedit_utils_location_get_dirname_for_display (GFile *location); + +gboolean gedit_utils_is_valid_location (GFile *location); + +gchar *gedit_utils_basename_for_display (GFile *location); + +/* Turns data from a drop into a list of well formatted uris */ +gchar **gedit_utils_drop_get_uris (GtkSelectionData *selection_data); + +gchar *gedit_utils_set_direct_save_filename (GdkDragContext *context); + +GtkSourceCompressionType gedit_utils_get_compression_type_from_content_type (const gchar *content_type); + +const gchar *gedit_utils_newline_type_to_string (GtkSourceNewlineType newline_type); + +G_DEPRECATED_FOR (tepl_utils_show_warning_dialog) +void gedit_warning (GtkWindow *parent, + const gchar *format, + ...) G_GNUC_PRINTF(2, 3); + +G_DEPRECATED_FOR (tepl_utils_decode_uri) +gboolean gedit_utils_decode_uri (const gchar *uri, + gchar **scheme, + gchar **user, + gchar **host, + gchar **port, + gchar **path); + +G_END_DECLS + +#endif /* GEDIT_UTILS_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-view-activatable.c b/gedit/gedit-view-activatable.c new file mode 100644 index 0000000..7ec2876 --- /dev/null +++ b/gedit/gedit-view-activatable.c @@ -0,0 +1,96 @@ +/* + * gedit-view-activatable.h + * This file is part of gedit + * + * Copyright (C) 2010 Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-view-activatable.h" + +#include "gedit-view.h" + +/** + * SECTION:gedit-view-activatable + * @short_description: Interface for activatable extensions on views + * @see_also: #PeasExtensionSet + * + * #GeditViewActivatable is an interface which should be implemented by + * extensions that should be activated on a gedit view. + **/ + +G_DEFINE_INTERFACE(GeditViewActivatable, gedit_view_activatable, G_TYPE_OBJECT) + +static void +gedit_view_activatable_default_init (GeditViewActivatableInterface *iface) +{ + /** + * GeditViewActivatable:view: + * + * The window property contains the gedit window for this + * #GeditViewActivatable instance. + */ + g_object_interface_install_property (iface, + g_param_spec_object ("view", + "view", + "A gedit view", + GEDIT_TYPE_VIEW, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS)); +} + +/** + * gedit_view_activatable_activate: + * @activatable: A #GeditViewActivatable. + * + * Activates the extension on the window property. + */ +void +gedit_view_activatable_activate (GeditViewActivatable *activatable) +{ + GeditViewActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_VIEW_ACTIVATABLE (activatable)); + + iface = GEDIT_VIEW_ACTIVATABLE_GET_IFACE (activatable); + if (iface->activate != NULL) + { + iface->activate (activatable); + } +} + +/** + * gedit_view_activatable_deactivate: + * @activatable: A #GeditViewActivatable. + * + * Deactivates the extension on the window property. + */ +void +gedit_view_activatable_deactivate (GeditViewActivatable *activatable) +{ + GeditViewActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_VIEW_ACTIVATABLE (activatable)); + + iface = GEDIT_VIEW_ACTIVATABLE_GET_IFACE (activatable); + if (iface->deactivate != NULL) + { + iface->deactivate (activatable); + } +} + diff --git a/gedit/gedit-view-activatable.h b/gedit/gedit-view-activatable.h new file mode 100644 index 0000000..77799ea --- /dev/null +++ b/gedit/gedit-view-activatable.h @@ -0,0 +1,47 @@ +/* + * gedit-view-activatable.h + * This file is part of gedit + * + * Copyright (C) 2010 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_VIEW_ACTIVATABLE_H +#define GEDIT_VIEW_ACTIVATABLE_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_VIEW_ACTIVATABLE (gedit_view_activatable_get_type ()) + +G_DECLARE_INTERFACE (GeditViewActivatable, gedit_view_activatable, GEDIT, VIEW_ACTIVATABLE, GObject) + +struct _GeditViewActivatableInterface +{ + GTypeInterface g_iface; + + /* Virtual public methods */ + void (*activate) (GeditViewActivatable *activatable); + void (*deactivate) (GeditViewActivatable *activatable); +}; + +void gedit_view_activatable_activate (GeditViewActivatable *activatable); +void gedit_view_activatable_deactivate (GeditViewActivatable *activatable); + +G_END_DECLS + +#endif /* GEDIT_VIEW_ACTIVATABLE_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c new file mode 100644 index 0000000..f41734c --- /dev/null +++ b/gedit/gedit-view-frame.c @@ -0,0 +1,1592 @@ +/* + * gedit-view-frame.c + * This file is part of gedit + * + * Copyright (C) 2010 - Ignacio Casal Quinteiro + * Copyright (C) 2013, 2019 - Sébastien Wilmet + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "gedit-view-frame.h" + +#include +#include +#include +#include + +#include "gedit-debug.h" +#include "gedit-utils.h" +#include "gedit-settings.h" +#include "libgd/gd.h" + +#define FLUSH_TIMEOUT_DURATION 30 /* in seconds */ + +#define SEARCH_POPUP_MARGIN 12 + +typedef enum +{ + GOTO_LINE, + SEARCH +} SearchMode; + +typedef enum +{ + SEARCH_STATE_NORMAL, + SEARCH_STATE_NOT_FOUND +} SearchState; + +struct _GeditViewFrame +{ + GtkOverlay parent_instance; + + GeditView *view; + + SearchMode search_mode; + + /* Where the search has started. When the user presses escape in the + * search entry (to cancel the search), we return to the start_mark. + */ + GtkTextMark *start_mark; + + GtkRevealer *revealer; + GdTaggedEntry *search_entry; + GdTaggedEntryTag *entry_tag; + GtkWidget *go_up_button; + GtkWidget *go_down_button; + + guint flush_timeout_id; + guint idle_update_entry_tag_id; + guint remove_entry_tag_timeout_id; + gulong view_scroll_event_id; + gulong search_entry_focus_out_id; + gulong search_entry_changed_id; + + GtkSourceSearchSettings *search_settings; + + /* Used to restore the search state if an incremental search is + * cancelled. + */ + GtkSourceSearchSettings *old_search_settings; + + /* The original search texts. In search_settings and + * old_search_settings, the search text is unescaped. Since the escape + * function is not reciprocal, we need to store the original search + * texts. + */ + gchar *search_text; + gchar *old_search_text; +}; + +G_DEFINE_TYPE (GeditViewFrame, gedit_view_frame, GTK_TYPE_OVERLAY) + +static GeditDocument * +get_document (GeditViewFrame *frame) +{ + return GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view))); +} + +static void +get_iter_at_start_mark (GeditViewFrame *frame, + GtkTextIter *iter) +{ + GtkTextBuffer *buffer; + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + if (frame->start_mark != NULL) + { + gtk_text_buffer_get_iter_at_mark (buffer, iter, frame->start_mark); + } + else + { + g_warn_if_reached (); + gtk_text_buffer_get_start_iter (buffer, iter); + } +} + +static void +gedit_view_frame_dispose (GObject *object) +{ + GeditViewFrame *frame = GEDIT_VIEW_FRAME (object); + GtkTextBuffer *buffer = NULL; + + if (frame->view != NULL) + { + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + } + + if (frame->start_mark != NULL && buffer != NULL) + { + gtk_text_buffer_delete_mark (buffer, frame->start_mark); + frame->start_mark = NULL; + } + + if (frame->flush_timeout_id != 0) + { + g_source_remove (frame->flush_timeout_id); + frame->flush_timeout_id = 0; + } + + if (frame->idle_update_entry_tag_id != 0) + { + g_source_remove (frame->idle_update_entry_tag_id); + frame->idle_update_entry_tag_id = 0; + } + + if (frame->remove_entry_tag_timeout_id != 0) + { + g_source_remove (frame->remove_entry_tag_timeout_id); + frame->remove_entry_tag_timeout_id = 0; + } + + if (buffer != NULL) + { + GtkSourceFile *file = gedit_document_get_file (GEDIT_DOCUMENT (buffer)); + gtk_source_file_set_mount_operation_factory (file, NULL, NULL, NULL); + } + + g_clear_object (&frame->entry_tag); + g_clear_object (&frame->search_settings); + g_clear_object (&frame->old_search_settings); + + G_OBJECT_CLASS (gedit_view_frame_parent_class)->dispose (object); +} + +static void +gedit_view_frame_finalize (GObject *object) +{ + GeditViewFrame *frame = GEDIT_VIEW_FRAME (object); + + g_free (frame->search_text); + g_free (frame->old_search_text); + + G_OBJECT_CLASS (gedit_view_frame_parent_class)->finalize (object); +} + +static void +hide_search_widget (GeditViewFrame *frame, + gboolean cancel) +{ + GtkTextBuffer *buffer; + + if (!gtk_revealer_get_reveal_child (frame->revealer)) + { + return; + } + + if (frame->view_scroll_event_id != 0) + { + g_signal_handler_disconnect (frame->view, + frame->view_scroll_event_id); + frame->view_scroll_event_id = 0; + } + + if (frame->flush_timeout_id != 0) + { + g_source_remove (frame->flush_timeout_id); + frame->flush_timeout_id = 0; + } + + gtk_revealer_set_reveal_child (frame->revealer, FALSE); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + if (cancel && frame->start_mark != NULL) + { + GtkTextIter iter; + + gtk_text_buffer_get_iter_at_mark (buffer, &iter, + frame->start_mark); + gtk_text_buffer_place_cursor (buffer, &iter); + + tepl_view_scroll_to_cursor (TEPL_VIEW (frame->view)); + } + + if (frame->start_mark != NULL) + { + gtk_text_buffer_delete_mark (buffer, frame->start_mark); + frame->start_mark = NULL; + } +} + +static gboolean +search_entry_flush_timeout (GeditViewFrame *frame) +{ + frame->flush_timeout_id = 0; + hide_search_widget (frame, FALSE); + + return G_SOURCE_REMOVE; +} + +static void +renew_flush_timeout (GeditViewFrame *frame) +{ + if (frame->flush_timeout_id != 0) + { + g_source_remove (frame->flush_timeout_id); + } + + frame->flush_timeout_id = + g_timeout_add_seconds (FLUSH_TIMEOUT_DURATION, + (GSourceFunc)search_entry_flush_timeout, + frame); +} + +static GtkSourceSearchContext * +get_search_context (GeditViewFrame *frame) +{ + GeditDocument *doc; + GtkSourceSearchContext *search_context; + GtkSourceSearchSettings *search_settings; + + doc = get_document (frame); + search_context = gedit_document_get_search_context (doc); + + if (search_context == NULL) + { + return NULL; + } + + search_settings = gtk_source_search_context_get_settings (search_context); + + if (search_settings == frame->search_settings) + { + return search_context; + } + + return NULL; +} + +static void +set_search_state (GeditViewFrame *frame, + SearchState state) +{ + GtkStyleContext *context; + + context = gtk_widget_get_style_context (GTK_WIDGET (frame->search_entry)); + + if (state == SEARCH_STATE_NOT_FOUND) + { + gtk_style_context_add_class (context, GTK_STYLE_CLASS_ERROR); + } + else + { + gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ERROR); + } +} + +static void +finish_search (GeditViewFrame *frame, + gboolean found) +{ + const gchar *entry_text = gtk_entry_get_text (GTK_ENTRY (frame->search_entry)); + + if (found || (entry_text[0] == '\0')) + { + tepl_view_scroll_to_cursor (TEPL_VIEW (frame->view)); + + set_search_state (frame, SEARCH_STATE_NORMAL); + } + else + { + set_search_state (frame, SEARCH_STATE_NOT_FOUND); + } +} + +static void +start_search_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditViewFrame *frame) +{ + GtkTextIter match_start; + GtkTextIter match_end; + gboolean found; + GtkSourceBuffer *buffer; + + found = gtk_source_search_context_forward_finish (search_context, + result, + &match_start, + &match_end, + NULL, + NULL); + + buffer = gtk_source_search_context_get_buffer (search_context); + + if (found) + { + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &match_start, + &match_end); + } + else if (frame->start_mark != NULL) + { + GtkTextIter start_at; + + gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (buffer), + &start_at, + frame->start_mark); + + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &start_at, + &start_at); + } + + finish_search (frame, found); +} + +static void +start_search (GeditViewFrame *frame) +{ + GtkSourceSearchContext *search_context; + GtkTextIter start_at; + + g_return_if_fail (frame->search_mode == SEARCH); + + search_context = get_search_context (frame); + + if (search_context == NULL) + { + return; + } + + get_iter_at_start_mark (frame, &start_at); + + gtk_source_search_context_forward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)start_search_finished, + frame); +} + +static void +forward_search_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditViewFrame *frame) +{ + GtkTextIter match_start; + GtkTextIter match_end; + gboolean found; + + found = gtk_source_search_context_forward_finish (search_context, + result, + &match_start, + &match_end, + NULL, + NULL); + + if (found) + { + GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + gtk_text_buffer_select_range (buffer, + &match_start, + &match_end); + } + + finish_search (frame, found); +} + +static void +forward_search (GeditViewFrame *frame) +{ + GtkTextIter start_at; + GtkTextBuffer *buffer; + GtkSourceSearchContext *search_context; + + g_return_if_fail (frame->search_mode == SEARCH); + + search_context = get_search_context (frame); + + if (search_context == NULL) + { + return; + } + + renew_flush_timeout (frame); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + gtk_text_buffer_get_selection_bounds (buffer, NULL, &start_at); + + gtk_source_search_context_forward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)forward_search_finished, + frame); +} + +static void +backward_search_finished (GtkSourceSearchContext *search_context, + GAsyncResult *result, + GeditViewFrame *frame) +{ + GtkTextIter match_start; + GtkTextIter match_end; + gboolean found; + GtkSourceBuffer *buffer; + + found = gtk_source_search_context_backward_finish (search_context, + result, + &match_start, + &match_end, + NULL, + NULL); + + buffer = gtk_source_search_context_get_buffer (search_context); + + if (found) + { + gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), + &match_start, + &match_end); + } + + finish_search (frame, found); +} + +static void +backward_search (GeditViewFrame *frame) +{ + GtkTextIter start_at; + GtkTextBuffer *buffer; + GtkSourceSearchContext *search_context; + + g_return_if_fail (frame->search_mode == SEARCH); + + search_context = get_search_context (frame); + + if (search_context == NULL) + { + return; + } + + renew_flush_timeout (frame); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + gtk_text_buffer_get_selection_bounds (buffer, &start_at, NULL); + + gtk_source_search_context_backward_async (search_context, + &start_at, + NULL, + (GAsyncReadyCallback)backward_search_finished, + frame); +} + +static gboolean +search_widget_scroll_event (GtkWidget *widget, + GdkEventScroll *event, + GeditViewFrame *frame) +{ + if (frame->search_mode == GOTO_LINE) + { + return GDK_EVENT_PROPAGATE; + } + + if (event->state & GDK_CONTROL_MASK) + { + if (event->direction == GDK_SCROLL_UP) + { + backward_search (frame); + return GDK_EVENT_STOP; + } + else if (event->direction == GDK_SCROLL_DOWN) + { + forward_search (frame); + return GDK_EVENT_STOP; + } + } + + return GDK_EVENT_PROPAGATE; +} + +static GtkSourceSearchSettings * +copy_search_settings (GtkSourceSearchSettings *settings) +{ + GtkSourceSearchSettings *new_settings = gtk_source_search_settings_new (); + gboolean val; + const gchar *text; + + if (settings == NULL) + { + return new_settings; + } + + val = gtk_source_search_settings_get_case_sensitive (settings); + gtk_source_search_settings_set_case_sensitive (new_settings, val); + + val = gtk_source_search_settings_get_wrap_around (settings); + gtk_source_search_settings_set_wrap_around (new_settings, val); + + val = gtk_source_search_settings_get_at_word_boundaries (settings); + gtk_source_search_settings_set_at_word_boundaries (new_settings, val); + + val = gtk_source_search_settings_get_regex_enabled (settings); + gtk_source_search_settings_set_regex_enabled (new_settings, val); + + text = gtk_source_search_settings_get_search_text (settings); + gtk_source_search_settings_set_search_text (new_settings, text); + + return new_settings; +} + +static gboolean +search_widget_key_press_event (GtkWidget *widget, + GdkEventKey *event, + GeditViewFrame *frame) +{ + /* Close window */ + if (event->keyval == GDK_KEY_Tab) + { + hide_search_widget (frame, FALSE); + gtk_widget_grab_focus (GTK_WIDGET (frame->view)); + + return GDK_EVENT_STOP; + } + + if (frame->search_mode == GOTO_LINE) + { + return GDK_EVENT_PROPAGATE; + } + + /* SEARCH mode */ + + /* select previous matching iter */ + if (event->keyval == GDK_KEY_Up || event->keyval == GDK_KEY_KP_Up) + { + backward_search (frame); + return GDK_EVENT_STOP; + } + + /* select next matching iter */ + if (event->keyval == GDK_KEY_Down || event->keyval == GDK_KEY_KP_Down) + { + forward_search (frame); + return GDK_EVENT_STOP; + } + + return GDK_EVENT_PROPAGATE; +} + +static gboolean +remove_entry_tag_timeout_cb (GeditViewFrame *frame) +{ + frame->remove_entry_tag_timeout_id = 0; + + gd_tagged_entry_remove_tag (frame->search_entry, + frame->entry_tag); + + return G_SOURCE_REMOVE; +} + +static void +update_entry_tag (GeditViewFrame *frame) +{ + GtkSourceSearchContext *search_context; + GtkTextBuffer *buffer; + GtkTextIter select_start; + GtkTextIter select_end; + gint count; + gint pos; + gchar *label; + + if (frame->search_mode == GOTO_LINE) + { + gd_tagged_entry_remove_tag (frame->search_entry, + frame->entry_tag); + return; + } + + search_context = get_search_context (frame); + + if (search_context == NULL) + { + return; + } + + count = gtk_source_search_context_get_occurrences_count (search_context); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + gtk_text_buffer_get_selection_bounds (buffer, &select_start, &select_end); + + pos = gtk_source_search_context_get_occurrence_position (search_context, + &select_start, + &select_end); + + if (count == -1 || pos == -1) + { + /* The buffer is not fully scanned. Remove the tag after a short + * delay. If we don't remove the tag at all, the information can + * be outdated during a too long time (for big buffers). And if + * the tag is removed directly, there is some flashing for small + * buffers: the tag disappears and reappear after a really short + * time. + */ + + if (frame->remove_entry_tag_timeout_id == 0) + { + frame->remove_entry_tag_timeout_id = + g_timeout_add (500, + (GSourceFunc)remove_entry_tag_timeout_cb, + frame); + } + + return; + } + + if (count == 0 || pos == 0) + { + gd_tagged_entry_remove_tag (frame->search_entry, + frame->entry_tag); + return; + } + + if (frame->remove_entry_tag_timeout_id != 0) + { + g_source_remove (frame->remove_entry_tag_timeout_id); + frame->remove_entry_tag_timeout_id = 0; + } + + /* Translators: the first %d is the position of the current search + * occurrence, and the second %d is the total number of search + * occurrences. + */ + label = g_strdup_printf (_("%d of %d"), pos, count); + + gd_tagged_entry_tag_set_label (frame->entry_tag, label); + + gd_tagged_entry_add_tag (frame->search_entry, + frame->entry_tag); + + g_free (label); +} + +static gboolean +update_entry_tag_idle_cb (GeditViewFrame *frame) +{ + frame->idle_update_entry_tag_id = 0; + + update_entry_tag (frame); + + return G_SOURCE_REMOVE; +} + +static void +install_update_entry_tag_idle (GeditViewFrame *frame) +{ + if (frame->idle_update_entry_tag_id == 0) + { + frame->idle_update_entry_tag_id = g_idle_add ((GSourceFunc)update_entry_tag_idle_cb, + frame); + } +} + +static void +update_search_text (GeditViewFrame *frame) +{ + const gchar *entry_text = gtk_entry_get_text (GTK_ENTRY (frame->search_entry)); + + g_free (frame->search_text); + frame->search_text = g_strdup (entry_text); + + if (gtk_source_search_settings_get_regex_enabled (frame->search_settings)) + { + gtk_source_search_settings_set_search_text (frame->search_settings, + entry_text); + } + else + { + gchar *unescaped_entry_text = gtk_source_utils_unescape_search_text (entry_text); + + gtk_source_search_settings_set_search_text (frame->search_settings, + unescaped_entry_text); + + g_free (unescaped_entry_text); + } +} + +static void +regex_toggled_cb (GtkCheckMenuItem *menu_item, + GeditViewFrame *frame) +{ + gtk_source_search_settings_set_regex_enabled (frame->search_settings, + gtk_check_menu_item_get_active (menu_item)); + + start_search (frame); +} + +static void +at_word_boundaries_toggled_cb (GtkCheckMenuItem *menu_item, + GeditViewFrame *frame) +{ + gtk_source_search_settings_set_at_word_boundaries (frame->search_settings, + gtk_check_menu_item_get_active (menu_item)); + + start_search (frame); +} + +static void +case_sensitive_toggled_cb (GtkCheckMenuItem *menu_item, + GeditViewFrame *frame) +{ + gtk_source_search_settings_set_case_sensitive (frame->search_settings, + gtk_check_menu_item_get_active (menu_item)); + + start_search (frame); +} + +static void +add_popup_menu_items (GeditViewFrame *frame, + GtkWidget *menu) +{ + GtkWidget *menu_item; + gboolean val; + + /* create "Wrap Around" menu item. */ + menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Wrap Around")); + + gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menu_item); + gtk_widget_show (menu_item); + + g_object_bind_property (frame->search_settings, "wrap-around", + menu_item, "active", + G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); + + /* create "Match as Regular Expression" menu item. */ + menu_item = gtk_check_menu_item_new_with_mnemonic (_("Match as _Regular Expression")); + + gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menu_item); + gtk_widget_show (menu_item); + + val = gtk_source_search_settings_get_regex_enabled (frame->search_settings); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), val); + + g_signal_connect (menu_item, + "toggled", + G_CALLBACK (regex_toggled_cb), + frame); + + /* create "Match Entire Word Only" menu item. */ + menu_item = gtk_check_menu_item_new_with_mnemonic (_("Match _Entire Word Only")); + + gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menu_item); + gtk_widget_show (menu_item); + + val = gtk_source_search_settings_get_at_word_boundaries (frame->search_settings); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), val); + + g_signal_connect (menu_item, + "toggled", + G_CALLBACK (at_word_boundaries_toggled_cb), + frame); + + /* create "Match Case" menu item. */ + menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Match Case")); + + gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menu_item); + gtk_widget_show (menu_item); + + val = gtk_source_search_settings_get_case_sensitive (frame->search_settings); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), val); + + g_signal_connect (menu_item, + "toggled", + G_CALLBACK (case_sensitive_toggled_cb), + frame); +} + +static void +popup_menu_hide_cb (GeditViewFrame *frame) +{ + renew_flush_timeout (frame); + + g_signal_handler_unblock (frame->search_entry, + frame->search_entry_focus_out_id); +} + +static void +setup_popup_menu (GeditViewFrame *frame, + GtkWidget *menu) +{ + if (frame->flush_timeout_id != 0) + { + g_source_remove (frame->flush_timeout_id); + frame->flush_timeout_id = 0; + } + + g_signal_handler_block (frame->search_entry, + frame->search_entry_focus_out_id); + + g_signal_connect_swapped (menu, + "hide", + G_CALLBACK (popup_menu_hide_cb), + frame); +} + +static void +search_entry_escaped (GtkSearchEntry *entry, + GeditViewFrame *frame) +{ + GtkSourceSearchContext *search_context = get_search_context (frame); + + if (frame->search_mode == SEARCH && + search_context != NULL) + { + GtkSourceSearchContext *search_context; + GtkTextBuffer *buffer; + + g_clear_object (&frame->search_settings); + frame->search_settings = copy_search_settings (frame->old_search_settings); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + search_context = gtk_source_search_context_new (GTK_SOURCE_BUFFER (buffer), + frame->search_settings); + gedit_document_set_search_context (GEDIT_DOCUMENT (buffer), search_context); + g_object_unref (search_context); + + g_free (frame->search_text); + frame->search_text = NULL; + + if (frame->old_search_text != NULL) + { + frame->search_text = g_strdup (frame->old_search_text); + } + } + + hide_search_widget (frame, TRUE); + gtk_widget_grab_focus (GTK_WIDGET (frame->view)); +} + +static void +search_entry_previous_match (GtkSearchEntry *entry, + GeditViewFrame *frame) +{ + backward_search (frame); +} + +static void +search_entry_next_match (GtkSearchEntry *entry, + GeditViewFrame *frame) +{ + forward_search (frame); +} + +static void +search_entry_populate_popup (GtkEntry *entry, + GtkMenu *menu, + GeditViewFrame *frame) +{ + GtkWidget *menu_item; + + if (frame->search_mode == GOTO_LINE) + { + return; + } + + setup_popup_menu (frame, GTK_WIDGET (menu)); + + /* separator */ + menu_item = gtk_separator_menu_item_new (); + gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menu_item); + gtk_widget_show (menu_item); + + add_popup_menu_items (frame, GTK_WIDGET (menu)); +} + +static void +search_entry_icon_release (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + GdkEventButton *event, + GeditViewFrame *frame) +{ + GtkWidget *menu; + + if (frame->search_mode == GOTO_LINE || + icon_pos != GTK_ENTRY_ICON_PRIMARY) + { + return; + } + + menu = gtk_menu_new (); + gtk_widget_show (menu); + + setup_popup_menu (frame, menu); + add_popup_menu_items (frame, menu); + + g_signal_connect (menu, + "selection-done", + G_CALLBACK (gtk_widget_destroy), + NULL); + + gtk_menu_popup_at_widget (GTK_MENU (menu), GTK_WIDGET (entry), GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL); +} + +static void +search_entry_activate (GtkEntry *entry, + GeditViewFrame *frame) +{ + hide_search_widget (frame, FALSE); + gtk_widget_grab_focus (GTK_WIDGET (frame->view)); +} + +static void +search_entry_insert_text (GtkEditable *editable, + const gchar *text, + gint length, + gint *position, + GeditViewFrame *frame) +{ + gunichar c; + const gchar *p; + const gchar *end; + const gchar *next; + + if (frame->search_mode == SEARCH) + { + return; + } + + p = text; + end = text + length; + + if (p == end) + { + return; + } + + c = g_utf8_get_char (p); + + if (((c == '-' || c == '+') && *position == 0) || + (c == ':' && *position != 0)) + { + gchar *s = NULL; + + if (c == ':') + { + s = gtk_editable_get_chars (editable, 0, -1); + s = g_utf8_strchr (s, -1, ':'); + } + + if (s == NULL || s == p) + { + next = g_utf8_next_char (p); + p = next; + } + + g_free (s); + } + + while (p != end) + { + next = g_utf8_next_char (p); + + c = g_utf8_get_char (p); + + if (!g_unichar_isdigit (c)) + { + g_signal_stop_emission_by_name (editable, "insert_text"); + gtk_widget_error_bell (GTK_WIDGET (frame->search_entry)); + break; + } + + p = next; + } +} + +static void +customize_for_search_mode (GeditViewFrame *frame) +{ + GIcon *icon; + gint width_request; + + if (frame->search_mode == SEARCH) + { + icon = g_themed_icon_new_with_default_fallbacks ("edit-find-symbolic"); + + width_request = 260; + + gtk_widget_set_tooltip_text (GTK_WIDGET (frame->search_entry), + _("String you want to search for")); + + gtk_widget_show (frame->go_up_button); + gtk_widget_show (frame->go_down_button); + } + else + { + icon = g_themed_icon_new_with_default_fallbacks ("go-jump-symbolic"); + + width_request = 160; + + gtk_widget_set_tooltip_text (GTK_WIDGET (frame->search_entry), + _("Line you want to move the cursor to")); + + gtk_widget_hide (frame->go_up_button); + gtk_widget_hide (frame->go_down_button); + } + + gtk_entry_set_icon_from_gicon (GTK_ENTRY (frame->search_entry), + GTK_ENTRY_ICON_PRIMARY, + icon); + + gtk_widget_set_size_request (GTK_WIDGET (frame->search_entry), + width_request, + -1); + + g_object_unref (icon); +} + +static void +update_goto_line (GeditViewFrame *frame) +{ + const gchar *entry_text; + gboolean moved; + gboolean moved_offset; + gint line; + gint offset_line = 0; + gint line_offset = 0; + gchar **split_text = NULL; + const gchar *text; + GtkTextIter iter; + + entry_text = gtk_entry_get_text (GTK_ENTRY (frame->search_entry)); + + if (entry_text[0] == '\0') + { + return; + } + + get_iter_at_start_mark (frame, &iter); + + split_text = g_strsplit (entry_text, ":", -1); + + if (g_strv_length (split_text) > 1) + { + text = split_text[0]; + } + else + { + text = entry_text; + } + + if (text[0] == '-') + { + gint cur_line = gtk_text_iter_get_line (&iter); + + if (text[1] != '\0') + { + offset_line = MAX (atoi (text + 1), 0); + } + + line = MAX (cur_line - offset_line, 0); + } + else if (entry_text[0] == '+') + { + gint cur_line = gtk_text_iter_get_line (&iter); + + if (text[1] != '\0') + { + offset_line = MAX (atoi (text + 1), 0); + } + + line = cur_line + offset_line; + } + else + { + line = MAX (atoi (text) - 1, 0); + } + + if (split_text[1] != NULL) + { + line_offset = atoi (split_text[1]); + } + + g_strfreev (split_text); + + moved = tepl_view_goto_line (TEPL_VIEW (frame->view), line); + moved_offset = tepl_view_goto_line_offset (TEPL_VIEW (frame->view), line, line_offset); + + if (!moved || !moved_offset) + { + set_search_state (frame, SEARCH_STATE_NOT_FOUND); + } + else + { + set_search_state (frame, SEARCH_STATE_NORMAL); + } +} + +static void +search_entry_changed_cb (GtkEntry *entry, + GeditViewFrame *frame) +{ + renew_flush_timeout (frame); + + if (frame->search_mode == SEARCH) + { + update_search_text (frame); + start_search (frame); + } + else + { + update_goto_line (frame); + } +} + +static gboolean +search_entry_focus_out_event (GtkWidget *widget, + GdkEventFocus *event, + GeditViewFrame *frame) +{ + hide_search_widget (frame, FALSE); + return GDK_EVENT_PROPAGATE; +} + +static void +mark_set_cb (GtkTextBuffer *buffer, + GtkTextIter *location, + GtkTextMark *mark, + GeditViewFrame *frame) +{ + GtkTextMark *insert; + GtkTextMark *selection_bound; + + insert = gtk_text_buffer_get_insert (buffer); + selection_bound = gtk_text_buffer_get_selection_bound (buffer); + + if (mark == insert || mark == selection_bound) + { + install_update_entry_tag_idle (frame); + } +} + +static gboolean +get_selected_text (GtkTextBuffer *doc, + gchar **selected_text, + gint *len) +{ + GtkTextIter start; + GtkTextIter end; + + g_return_val_if_fail (selected_text != NULL, FALSE); + g_return_val_if_fail (*selected_text == NULL, FALSE); + + if (!gtk_text_buffer_get_selection_bounds (doc, &start, &end)) + { + if (len != NULL) + { + *len = 0; + } + + return FALSE; + } + + *selected_text = gtk_text_buffer_get_slice (doc, &start, &end, TRUE); + + if (len != NULL) + { + *len = g_utf8_strlen (*selected_text, -1); + } + + return TRUE; +} + +static void +init_search_entry (GeditViewFrame *frame) +{ + if (frame->search_mode == GOTO_LINE) + { + gint line; + gchar *line_str; + GtkTextIter iter; + + get_iter_at_start_mark (frame, &iter); + + line = gtk_text_iter_get_line (&iter); + + line_str = g_strdup_printf ("%d", line + 1); + + gtk_entry_set_text (GTK_ENTRY (frame->search_entry), line_str); + + gtk_editable_select_region (GTK_EDITABLE (frame->search_entry), + 0, -1); + + g_free (line_str); + } + else + { + /* SEARCH mode */ + GtkTextBuffer *buffer; + gboolean selection_exists; + gchar *search_text = NULL; + gint selection_len = 0; + GtkSourceSearchContext *search_context; + + if (frame->search_settings == NULL) + { + frame->search_settings = gtk_source_search_settings_new (); + gtk_source_search_settings_set_wrap_around (frame->search_settings, TRUE); + } + + g_clear_object (&frame->old_search_settings); + frame->old_search_settings = copy_search_settings (frame->search_settings); + + g_free (frame->old_search_text); + frame->old_search_text = NULL; + + if (frame->search_text != NULL) + { + frame->old_search_text = g_strdup (frame->search_text); + } + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + search_context = get_search_context (frame); + + if (search_context == NULL) + { + search_context = gtk_source_search_context_new (GTK_SOURCE_BUFFER (buffer), + frame->search_settings); + + gedit_document_set_search_context (GEDIT_DOCUMENT (buffer), + search_context); + + g_signal_connect_swapped (search_context, + "notify::occurrences-count", + G_CALLBACK (install_update_entry_tag_idle), + frame); + + g_object_unref (search_context); + } + + selection_exists = get_selected_text (buffer, + &search_text, + &selection_len); + + if (selection_exists && (search_text != NULL) && (selection_len <= 160)) + { + gchar *search_text_escaped; + + if (gtk_source_search_settings_get_regex_enabled (frame->search_settings)) + { + search_text_escaped = g_regex_escape_string (search_text, -1); + } + else + { + search_text_escaped = gtk_source_utils_escape_search_text (search_text); + } + + if (g_strcmp0 (search_text_escaped, frame->search_text) == 0) + { + /* The search text is the same, no need to + * trigger the search again. We prefer to select + * the text in the search entry, so the user can + * easily search something else. + */ + g_signal_handler_block (frame->search_entry, + frame->search_entry_changed_id); + + gtk_entry_set_text (GTK_ENTRY (frame->search_entry), + search_text_escaped); + + gtk_editable_select_region (GTK_EDITABLE (frame->search_entry), + 0, -1); + + g_signal_handler_unblock (frame->search_entry, + frame->search_entry_changed_id); + } + else + { + /* search_text_escaped is new, so we trigger the + * search (by not blocking the signal), and we + * don't select the text in the search entry + * because the user wants to search for + * search_text_escaped, not for something else. + */ + gtk_entry_set_text (GTK_ENTRY (frame->search_entry), + search_text_escaped); + + gtk_editable_set_position (GTK_EDITABLE (frame->search_entry), -1); + } + + g_free (search_text_escaped); + } + else if (frame->search_text != NULL) + { + g_signal_handler_block (frame->search_entry, + frame->search_entry_changed_id); + + gtk_entry_set_text (GTK_ENTRY (frame->search_entry), + frame->search_text); + + gtk_editable_select_region (GTK_EDITABLE (frame->search_entry), + 0, -1); + + g_signal_handler_unblock (frame->search_entry, + frame->search_entry_changed_id); + } + + g_free (search_text); + } +} + +static void +start_interactive_search_real (GeditViewFrame *frame, + SearchMode request_search_mode) +{ + GtkTextBuffer *buffer; + GtkTextIter iter; + + if (gtk_revealer_get_reveal_child (frame->revealer)) + { + if (frame->search_mode != request_search_mode) + { + hide_search_widget (frame, TRUE); + } + else + { + gtk_editable_select_region (GTK_EDITABLE (frame->search_entry), + 0, -1); + return; + } + } + + frame->search_mode = request_search_mode; + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (frame->view)); + + if (frame->search_mode == SEARCH) + { + gtk_text_buffer_get_selection_bounds (buffer, &iter, NULL); + } + else + { + GtkTextMark *mark = gtk_text_buffer_get_insert (buffer); + gtk_text_buffer_get_iter_at_mark (buffer, &iter, mark); + } + + if (frame->start_mark != NULL) + { + gtk_text_buffer_delete_mark (buffer, frame->start_mark); + } + + frame->start_mark = gtk_text_buffer_create_mark (buffer, NULL, &iter, FALSE); + + gtk_revealer_set_reveal_child (frame->revealer, TRUE); + + /* NOTE: we must be very careful here to not have any text before + focusing the entry because when the entry is focused the text is + selected, and gtk+ doesn't allow us to have more than one selection + active */ + g_signal_handler_block (frame->search_entry, + frame->search_entry_changed_id); + + gtk_entry_set_text (GTK_ENTRY (frame->search_entry), ""); + + g_signal_handler_unblock (frame->search_entry, + frame->search_entry_changed_id); + + gtk_widget_grab_focus (GTK_WIDGET (frame->search_entry)); + + customize_for_search_mode (frame); + init_search_entry (frame); + + /* Manage the scroll also for the view */ + frame->view_scroll_event_id = + g_signal_connect (frame->view, "scroll-event", + G_CALLBACK (search_widget_scroll_event), + frame); + + renew_flush_timeout (frame); + + install_update_entry_tag_idle (frame); +} + +static void +gedit_view_frame_class_init (GeditViewFrameClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->dispose = gedit_view_frame_dispose; + object_class->finalize = gedit_view_frame_finalize; + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-view-frame.ui"); + gtk_widget_class_bind_template_child (widget_class, GeditViewFrame, view); + gtk_widget_class_bind_template_child (widget_class, GeditViewFrame, revealer); + gtk_widget_class_bind_template_child (widget_class, GeditViewFrame, search_entry); + gtk_widget_class_bind_template_child (widget_class, GeditViewFrame, go_up_button); + gtk_widget_class_bind_template_child (widget_class, GeditViewFrame, go_down_button); +} + +static GMountOperation * +view_frame_mount_operation_factory (GtkSourceFile *file, + gpointer user_data) +{ + GtkWidget *view_frame = user_data; + GtkWidget *window = gtk_widget_get_toplevel (view_frame); + + return gtk_mount_operation_new (GTK_WINDOW (window)); +} + +static void +gedit_view_frame_init (GeditViewFrame *frame) +{ + GeditDocument *doc; + GtkSourceFile *file; + + gedit_debug (DEBUG_WINDOW); + + gtk_widget_init_template (GTK_WIDGET (frame)); + + doc = get_document (frame); + file = gedit_document_get_file (doc); + + gtk_source_file_set_mount_operation_factory (file, + view_frame_mount_operation_factory, + frame, + NULL); + + frame->entry_tag = gd_tagged_entry_tag_new (""); + + gd_tagged_entry_tag_set_style (frame->entry_tag, + "gedit-search-entry-occurrences-tag"); + + gd_tagged_entry_tag_set_has_close_button (frame->entry_tag, FALSE); + + gtk_widget_set_margin_end (GTK_WIDGET (frame->revealer), + SEARCH_POPUP_MARGIN); + + g_signal_connect (doc, + "mark-set", + G_CALLBACK (mark_set_cb), + frame); + + g_signal_connect (frame->revealer, + "key-press-event", + G_CALLBACK (search_widget_key_press_event), + frame); + + g_signal_connect (frame->revealer, + "scroll-event", + G_CALLBACK (search_widget_scroll_event), + frame); + + g_signal_connect (frame->search_entry, + "populate-popup", + G_CALLBACK (search_entry_populate_popup), + frame); + + g_signal_connect (frame->search_entry, + "icon-release", + G_CALLBACK (search_entry_icon_release), + frame); + + g_signal_connect (frame->search_entry, + "activate", + G_CALLBACK (search_entry_activate), + frame); + + g_signal_connect (frame->search_entry, + "insert-text", + G_CALLBACK (search_entry_insert_text), + frame); + + g_signal_connect (frame->search_entry, + "stop-search", + G_CALLBACK (search_entry_escaped), + frame); + + g_signal_connect (frame->search_entry, + "next-match", + G_CALLBACK (search_entry_next_match), + frame); + + g_signal_connect (frame->search_entry, + "previous-match", + G_CALLBACK (search_entry_previous_match), + frame); + + frame->search_entry_changed_id = + g_signal_connect (frame->search_entry, + "changed", + G_CALLBACK (search_entry_changed_cb), + frame); + + frame->search_entry_focus_out_id = + g_signal_connect (frame->search_entry, + "focus-out-event", + G_CALLBACK (search_entry_focus_out_event), + frame); + + g_signal_connect_swapped (frame->go_up_button, + "clicked", + G_CALLBACK (backward_search), + frame); + + g_signal_connect_swapped (frame->go_down_button, + "clicked", + G_CALLBACK (forward_search), + frame); +} + +GeditViewFrame * +gedit_view_frame_new (void) +{ + return g_object_new (GEDIT_TYPE_VIEW_FRAME, NULL); +} + +GeditView * +gedit_view_frame_get_view (GeditViewFrame *frame) +{ + g_return_val_if_fail (GEDIT_IS_VIEW_FRAME (frame), NULL); + + return frame->view; +} + +void +gedit_view_frame_popup_search (GeditViewFrame *frame) +{ + g_return_if_fail (GEDIT_IS_VIEW_FRAME (frame)); + + start_interactive_search_real (frame, SEARCH); +} + +void +gedit_view_frame_popup_goto_line (GeditViewFrame *frame) +{ + g_return_if_fail (GEDIT_IS_VIEW_FRAME (frame)); + + start_interactive_search_real (frame, GOTO_LINE); +} + +void +gedit_view_frame_clear_search (GeditViewFrame *frame) +{ + g_return_if_fail (GEDIT_IS_VIEW_FRAME (frame)); + + g_signal_handler_block (frame->search_entry, + frame->search_entry_changed_id); + + gtk_entry_set_text (GTK_ENTRY (frame->search_entry), ""); + + g_signal_handler_unblock (frame->search_entry, + frame->search_entry_changed_id); + + gtk_widget_grab_focus (GTK_WIDGET (frame->view)); +} diff --git a/gedit/gedit-view-frame.h b/gedit/gedit-view-frame.h new file mode 100644 index 0000000..78ac469 --- /dev/null +++ b/gedit/gedit-view-frame.h @@ -0,0 +1,45 @@ +/* + * gedit-view-frame.h + * This file is part of gedit + * + * Copyright (C) 2010 - Ignacio Casal Quinteiro + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit. If not, see . + */ + +#ifndef GEDIT_VIEW_FRAME_H +#define GEDIT_VIEW_FRAME_H + +#include +#include "gedit-document.h" +#include "gedit-view.h" + +G_BEGIN_DECLS + +#define GEDIT_TYPE_VIEW_FRAME (gedit_view_frame_get_type ()) +G_DECLARE_FINAL_TYPE (GeditViewFrame, gedit_view_frame, GEDIT, VIEW_FRAME, GtkOverlay) + +GeditViewFrame *gedit_view_frame_new (void); + +GeditView *gedit_view_frame_get_view (GeditViewFrame *frame); + +void gedit_view_frame_popup_search (GeditViewFrame *frame); + +void gedit_view_frame_popup_goto_line (GeditViewFrame *frame); + +void gedit_view_frame_clear_search (GeditViewFrame *frame); + +G_END_DECLS + +#endif /* GEDIT_VIEW_FRAME_H */ diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c new file mode 100644 index 0000000..f1698f0 --- /dev/null +++ b/gedit/gedit-view.c @@ -0,0 +1,918 @@ +/* + * gedit-view.c + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2002 Chema Celorio, Paolo Maggi + * Copyright (C) 2003-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-view.h" + +#include +#include + +#include "gedit-view-activatable.h" +#include "gedit-plugins-engine.h" +#include "gedit-debug.h" +#include "gedit-pango.h" +#include "gedit-utils.h" +#include "gedit-settings.h" + +enum +{ + TARGET_URI_LIST = 100, + TARGET_XDNDDIRECTSAVE +}; + +struct _GeditViewPrivate +{ + GtkTextBuffer *current_buffer; + PeasExtensionSet *extensions; + gchar *direct_save_uri; + + GtkCssProvider *css_provider; + PangoFontDescription *font_desc; +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditView, gedit_view, TEPL_TYPE_VIEW) + +enum +{ + DROP_URIS, + LAST_SIGNAL +}; + +static guint view_signals[LAST_SIGNAL] = { 0 }; + +static void +file_read_only_notify_handler (GtkSourceFile *file, + GParamSpec *pspec, + GeditView *view) +{ + gedit_debug (DEBUG_VIEW); + + gtk_text_view_set_editable (GTK_TEXT_VIEW (view), + !gtk_source_file_is_readonly (file)); +} + +static void +current_buffer_removed (GeditView *view) +{ + if (view->priv->current_buffer != NULL) + { + GtkSourceFile *file; + + file = gedit_document_get_file (GEDIT_DOCUMENT (view->priv->current_buffer)); + + g_signal_handlers_disconnect_by_func (file, + file_read_only_notify_handler, + view); + + g_object_unref (view->priv->current_buffer); + view->priv->current_buffer = NULL; + } +} + +static void +on_notify_buffer_cb (GeditView *view, + GParamSpec *pspec, + gpointer userdata) +{ + GtkTextBuffer *buffer; + GtkSourceFile *file; + + current_buffer_removed (view); + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); + + if (!GEDIT_IS_DOCUMENT (buffer)) + { + return; + } + + file = gedit_document_get_file (GEDIT_DOCUMENT (buffer)); + + view->priv->current_buffer = g_object_ref (buffer); + g_signal_connect_object (file, + "notify::read-only", + G_CALLBACK (file_read_only_notify_handler), + view, + 0); + + gtk_text_view_set_editable (GTK_TEXT_VIEW (view), + !gtk_source_file_is_readonly (file)); +} + +static void +gedit_view_init (GeditView *view) +{ + GtkTargetList *target_list; + GtkStyleContext *context; + + gedit_debug (DEBUG_VIEW); + + view->priv = gedit_view_get_instance_private (view); + + /* Drag and drop support */ + view->priv->direct_save_uri = NULL; + target_list = gtk_drag_dest_get_target_list (GTK_WIDGET (view)); + + if (target_list != NULL) + { + gtk_target_list_add (target_list, + gdk_atom_intern ("XdndDirectSave0", FALSE), + 0, + TARGET_XDNDDIRECTSAVE); + gtk_target_list_add_uri_targets (target_list, TARGET_URI_LIST); + } + + view->priv->extensions = + peas_extension_set_new (PEAS_ENGINE (gedit_plugins_engine_get_default ()), + GEDIT_TYPE_VIEW_ACTIVATABLE, + "view", view, + NULL); + + /* Act on buffer change */ + g_signal_connect (view, + "notify::buffer", + G_CALLBACK (on_notify_buffer_cb), + NULL); + + view->priv->css_provider = gtk_css_provider_new (); + context = gtk_widget_get_style_context (GTK_WIDGET (view)); + gtk_style_context_add_class (context, "gedit-view"); + + gtk_style_context_add_provider (context, + GTK_STYLE_PROVIDER (view->priv->css_provider), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); +} + +static void +gedit_view_dispose (GObject *object) +{ + GeditView *view = GEDIT_VIEW (object); + + g_clear_object (&view->priv->extensions); + + current_buffer_removed (view); + + /* Disconnect notify buffer because the destroy of the textview will set + * the buffer to NULL, and we call get_buffer in the notify which would + * reinstate a buffer which we don't want. + * There is no problem calling g_signal_handlers_disconnect_by_func() + * several times (if dispose() is called several times). + */ + g_signal_handlers_disconnect_by_func (view, on_notify_buffer_cb, NULL); + + g_clear_object (&view->priv->css_provider); + g_clear_pointer (&view->priv->font_desc, pango_font_description_free); + + G_OBJECT_CLASS (gedit_view_parent_class)->dispose (object); +} + +static void +gedit_view_constructed (GObject *object) +{ + GeditView *view = GEDIT_VIEW (object); + GeditSettings *settings; + GSettings *editor_settings; + gboolean use_default_font; + + G_OBJECT_CLASS (gedit_view_parent_class)->constructed (object); + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + use_default_font = g_settings_get_boolean (editor_settings, GEDIT_SETTINGS_USE_DEFAULT_FONT); + + if (use_default_font) + { + gedit_view_set_font (view, TRUE, NULL); + } + else + { + gchar *editor_font; + + editor_font = g_settings_get_string (editor_settings, GEDIT_SETTINGS_EDITOR_FONT); + gedit_view_set_font (view, FALSE, editor_font); + g_free (editor_font); + } + + g_settings_bind (editor_settings, GEDIT_SETTINGS_DISPLAY_LINE_NUMBERS, + view, "show-line-numbers", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_AUTO_INDENT, + view, "auto-indent", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_TABS_SIZE, + view, "tab-width", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_INSERT_SPACES, + view, "insert-spaces-instead-of-tabs", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN, + view, "show-right-margin", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_BACKGROUND_PATTERN, + view, "background-pattern", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_RIGHT_MARGIN_POSITION, + view, "right-margin-position", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_HIGHLIGHT_CURRENT_LINE, + view, "highlight-current-line", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_WRAP_MODE, + view, "wrap-mode", + G_SETTINGS_BIND_GET); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_SMART_HOME_END, + view, "smart-home-end", + G_SETTINGS_BIND_GET); +} + +static GdkAtom +drag_get_uri_target (GtkWidget *widget, + GdkDragContext *context) +{ + GdkAtom target; + GtkTargetList *target_list; + + target_list = gtk_target_list_new (NULL, 0); + gtk_target_list_add_uri_targets (target_list, 0); + + target = gtk_drag_dest_find_target (widget, context, target_list); + gtk_target_list_unref (target_list); + + return target; +} + +static gboolean +gedit_view_drag_motion (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint timestamp) +{ + gboolean drop_zone; + + /* Chain up to allow textview to scroll and position dnd mark, note + * that this needs to be checked if gtksourceview or gtktextview + * changes drag_motion behaviour. + */ + drop_zone = GTK_WIDGET_CLASS (gedit_view_parent_class)->drag_motion (widget, + context, + x, y, + timestamp); + + /* If this is a URL, deal with it here */ + if (drag_get_uri_target (widget, context) != GDK_NONE) + { + gdk_drag_status (context, + gdk_drag_context_get_suggested_action (context), + timestamp); + drop_zone = TRUE; + } + + return drop_zone; +} + +static void +gedit_view_drag_data_received (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + GtkSelectionData *selection_data, + guint info, + guint timestamp) +{ + /* If this is an URL emit DROP_URIS, otherwise chain up the signal */ + switch (info) + { + case TARGET_URI_LIST: + { + gchar **uri_list; + + uri_list = gedit_utils_drop_get_uris (selection_data); + + if (uri_list != NULL) + { + g_signal_emit (widget, view_signals[DROP_URIS], 0, uri_list); + g_strfreev (uri_list); + + gtk_drag_finish (context, TRUE, FALSE, timestamp); + } + + break; + + } + case TARGET_XDNDDIRECTSAVE: + { + GeditView *view; + + view = GEDIT_VIEW (widget); + + /* Indicate that we don't provide "F" fallback */ + if (gtk_selection_data_get_format (selection_data) == 8 && + gtk_selection_data_get_length (selection_data) == 1 && + gtk_selection_data_get_data (selection_data)[0] == 'F') + { + gdk_property_change (gdk_drag_context_get_source_window (context), + gdk_atom_intern ("XdndDirectSave0", FALSE), + gdk_atom_intern ("text/plain", FALSE), 8, + GDK_PROP_MODE_REPLACE, (const guchar *) "", 0); + } + else if (gtk_selection_data_get_format (selection_data) == 8 && + gtk_selection_data_get_length (selection_data) == 1 && + gtk_selection_data_get_data (selection_data)[0] == 'S' && + view->priv->direct_save_uri != NULL) + { + gchar **uris; + + uris = g_new (gchar *, 2); + uris[0] = view->priv->direct_save_uri; + uris[1] = NULL; + g_signal_emit (widget, view_signals[DROP_URIS], 0, uris); + g_free (uris); + } + + g_free (view->priv->direct_save_uri); + view->priv->direct_save_uri = NULL; + + gtk_drag_finish (context, TRUE, FALSE, timestamp); + + break; + } + default: + { + GTK_WIDGET_CLASS (gedit_view_parent_class)->drag_data_received (widget, + context, + x, y, + selection_data, + info, + timestamp); + break; + } + } +} + +static gboolean +gedit_view_drag_drop (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint timestamp) +{ + gboolean drop_zone; + GdkAtom target; + guint info; + gboolean found; + GtkTargetList *target_list; + + target_list = gtk_drag_dest_get_target_list (widget); + target = gtk_drag_dest_find_target (widget, context, target_list); + found = gtk_target_list_find (target_list, target, &info); + + if (found && (info == TARGET_URI_LIST || info == TARGET_XDNDDIRECTSAVE)) + { + if (info == TARGET_XDNDDIRECTSAVE) + { + gchar *uri; + uri = gedit_utils_set_direct_save_filename (context); + + if (uri != NULL) + { + GeditView *view = GEDIT_VIEW (widget); + g_free (view->priv->direct_save_uri); + view->priv->direct_save_uri = uri; + } + } + + gtk_drag_get_data (widget, context, target, timestamp); + drop_zone = TRUE; + } + else + { + /* Chain up */ + drop_zone = GTK_WIDGET_CLASS (gedit_view_parent_class)->drag_drop (widget, + context, + x, y, + timestamp); + } + + return drop_zone; +} + +static void +show_line_numbers_menu (GeditView *view, + GdkEventButton *event) +{ + GtkWidget *menu; + GtkWidget *item; + GeditSettings *settings; + GSettings *editor_settings; + + menu = gtk_menu_new (); + + item = gtk_check_menu_item_new_with_mnemonic (_("_Display line numbers")); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), + gtk_source_view_get_show_line_numbers (GTK_SOURCE_VIEW (view))); + + settings = _gedit_settings_get_singleton (); + editor_settings = _gedit_settings_peek_editor_settings (settings); + + g_settings_bind (editor_settings, GEDIT_SETTINGS_DISPLAY_LINE_NUMBERS, + item, "active", + G_SETTINGS_BIND_SET); + + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + + g_signal_connect (menu, + "selection-done", + G_CALLBACK (gtk_widget_destroy), + NULL); + + gtk_widget_show_all (menu); + gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event); +} + +static gboolean +gedit_view_button_press_event (GtkWidget *widget, + GdkEventButton *event) +{ + if ((event->type == GDK_BUTTON_PRESS) && + (event->button == GDK_BUTTON_SECONDARY) && + (event->window == gtk_text_view_get_window (GTK_TEXT_VIEW (widget), + GTK_TEXT_WINDOW_LEFT))) + { + show_line_numbers_menu (GEDIT_VIEW (widget), event); + + return GDK_EVENT_STOP; + } + + return GTK_WIDGET_CLASS (gedit_view_parent_class)->button_press_event (widget, event); +} + +static void +extension_added (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditView *view) +{ + gedit_view_activatable_activate (GEDIT_VIEW_ACTIVATABLE (exten)); +} + +static void +extension_removed (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditView *view) +{ + gedit_view_activatable_deactivate (GEDIT_VIEW_ACTIVATABLE (exten)); +} + +static void +gedit_view_realize (GtkWidget *widget) +{ + GeditView *view = GEDIT_VIEW (widget); + + GTK_WIDGET_CLASS (gedit_view_parent_class)->realize (widget); + + g_signal_connect (view->priv->extensions, + "extension-added", + G_CALLBACK (extension_added), + view); + + g_signal_connect (view->priv->extensions, + "extension-removed", + G_CALLBACK (extension_removed), + view); + + /* We only activate the extensions when the view is realized, + * because most plugins will expect this behaviour, and we won't + * change the buffer later anyway. + */ + peas_extension_set_foreach (view->priv->extensions, + (PeasExtensionSetForeachFunc) extension_added, + view); +} + +static void +gedit_view_unrealize (GtkWidget *widget) +{ + GeditView *view = GEDIT_VIEW (widget); + + g_signal_handlers_disconnect_by_func (view->priv->extensions, extension_added, view); + g_signal_handlers_disconnect_by_func (view->priv->extensions, extension_removed, view); + + /* We need to deactivate the extension on unrealize because it is not + * mandatory that a view has been realized when we dispose it, leading + * to deactivating the plugin without being activated. + */ + peas_extension_set_foreach (view->priv->extensions, + (PeasExtensionSetForeachFunc) extension_removed, + view); + + GTK_WIDGET_CLASS (gedit_view_parent_class)->unrealize (widget); +} + +static void +delete_line (GtkTextView *text_view, + gint count) +{ + GtkTextIter start; + GtkTextIter end; + GtkTextBuffer *buffer; + + buffer = gtk_text_view_get_buffer (text_view); + + gtk_text_view_reset_im_context (text_view); + + /* If there is a selection delete the selected lines and ignore count. */ + if (gtk_text_buffer_get_selection_bounds (buffer, &start, &end)) + { + gtk_text_iter_order (&start, &end); + + if (gtk_text_iter_starts_line (&end)) + { + /* Do not delete the line with the cursor if the cursor + * is at the beginning of the line. + */ + count = 0; + } + else + { + count = 1; + } + } + + gtk_text_iter_set_line_offset (&start, 0); + + if (count > 0) + { + gtk_text_iter_forward_lines (&end, count); + + if (gtk_text_iter_is_end (&end)) + { + if (gtk_text_iter_backward_line (&start) && + !gtk_text_iter_ends_line (&start)) + { + gtk_text_iter_forward_to_line_end (&start); + } + } + } + else if (count < 0) + { + if (!gtk_text_iter_ends_line (&end)) + { + gtk_text_iter_forward_to_line_end (&end); + } + + while (count < 0) + { + if (!gtk_text_iter_backward_line (&start)) + { + break; + } + + count++; + } + + if (count == 0) + { + if (!gtk_text_iter_ends_line (&start)) + { + gtk_text_iter_forward_to_line_end (&start); + } + } + else + { + gtk_text_iter_forward_line (&end); + } + } + + if (!gtk_text_iter_equal (&start, &end)) + { + GtkTextIter cur = start; + gtk_text_iter_set_line_offset (&cur, 0); + + gtk_text_buffer_begin_user_action (buffer); + + gtk_text_buffer_place_cursor (buffer, &cur); + + gtk_text_buffer_delete_interactive (buffer, + &start, + &end, + gtk_text_view_get_editable (text_view)); + + gtk_text_buffer_end_user_action (buffer); + + gtk_text_view_scroll_mark_onscreen (text_view, + gtk_text_buffer_get_insert (buffer)); + } + else + { + gtk_widget_error_bell (GTK_WIDGET (text_view)); + } +} + +static void +gedit_view_delete_from_cursor (GtkTextView *text_view, + GtkDeleteType type, + gint count) +{ + /* We override the standard handler for delete_from_cursor since + * the GTK_DELETE_PARAGRAPHS case is not implemented as we like (i.e. it + * does not remove the carriage return in the previous line). + */ + switch (type) + { + case GTK_DELETE_PARAGRAPHS: + delete_line (text_view, count); + break; + + default: + GTK_TEXT_VIEW_CLASS (gedit_view_parent_class)->delete_from_cursor(text_view, type, count); + break; + } +} + +static GtkTextBuffer * +gedit_view_create_buffer (GtkTextView *text_view) +{ + return GTK_TEXT_BUFFER (gedit_document_new ()); +} + +static void +gedit_view_class_init (GeditViewClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkTextViewClass *text_view_class = GTK_TEXT_VIEW_CLASS (klass); + GtkBindingSet *binding_set; + + object_class->dispose = gedit_view_dispose; + object_class->constructed = gedit_view_constructed; + + /* Override the gtk_text_view_drag_motion and drag_drop + * functions to get URIs + * + * If the mime type is text/uri-list, then we will accept + * the potential drop, or request the data (depending on the + * function). + * + * If the drag context has any other mime type, then pass the + * information onto the GtkTextView's standard handlers. + * + * See bug #89881 for details + */ + widget_class->drag_motion = gedit_view_drag_motion; + widget_class->drag_data_received = gedit_view_drag_data_received; + widget_class->drag_drop = gedit_view_drag_drop; + + widget_class->button_press_event = gedit_view_button_press_event; + widget_class->realize = gedit_view_realize; + widget_class->unrealize = gedit_view_unrealize; + + text_view_class->delete_from_cursor = gedit_view_delete_from_cursor; + text_view_class->create_buffer = gedit_view_create_buffer; + + /** + * GeditView::drop-uris: + * @view: a #GeditView. + * @uri_list: a %NULL-terminated list of URIs. + * + * The #GeditView::drop-uris signal allows plugins to intercept the + * default drag-and-drop behaviour of 'text/uri-list'. #GeditView + * handles drag-and-drop in the default handlers of + * #GtkWidget::drag-drop, #GtkWidget::drag-motion and + * #GtkWidget::drag-data-received. The view emits the + * #GeditView::drop-uris signal from #GtkWidget::drag-data-received if + * valid URIs have been dropped. Plugins should connect to + * #GtkWidget::drag-motion, #GtkWidget::drag-drop and + * #GtkWidget::drag-data-received to change this default behaviour. They + * should NOT use this signal because this will not prevent gedit from + * loading the URI. + */ + view_signals[DROP_URIS] = + g_signal_new ("drop-uris", + G_TYPE_FROM_CLASS (object_class), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_STRUCT_OFFSET (GeditViewClass, drop_uris), + NULL, NULL, NULL, + G_TYPE_NONE, 1, G_TYPE_STRV); + + binding_set = gtk_binding_set_by_class (klass); + + gtk_binding_entry_add_signal (binding_set, + GDK_KEY_d, + GDK_CONTROL_MASK, + "delete_from_cursor", 2, + G_TYPE_ENUM, GTK_DELETE_PARAGRAPHS, + G_TYPE_INT, 1); + + gtk_binding_entry_add_signal (binding_set, + GDK_KEY_u, + GDK_CONTROL_MASK, + "change_case", 1, + G_TYPE_ENUM, GTK_SOURCE_CHANGE_CASE_UPPER); + + gtk_binding_entry_add_signal (binding_set, + GDK_KEY_l, + GDK_CONTROL_MASK, + "change_case", 1, + G_TYPE_ENUM, GTK_SOURCE_CHANGE_CASE_LOWER); + + gtk_binding_entry_add_signal (binding_set, + GDK_KEY_asciitilde, + GDK_CONTROL_MASK, + "change_case", 1, + G_TYPE_ENUM, GTK_SOURCE_CHANGE_CASE_TOGGLE); +} + +/** + * gedit_view_new: + * @doc: a #GeditDocument + * + * Creates a new #GeditView object displaying the @doc document. + * @doc cannot be %NULL. + * + * Returns: a new #GeditView. + */ +GtkWidget * +gedit_view_new (GeditDocument *doc) +{ + g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL); + + return g_object_new (GEDIT_TYPE_VIEW, + "buffer", doc, + NULL); +} + +/** + * gedit_view_cut_clipboard: + * @view: a #GeditView. + * + * Deprecated: 3.38: Use tepl_view_cut_clipboard() instead. + */ +void +gedit_view_cut_clipboard (GeditView *view) +{ + g_return_if_fail (GEDIT_IS_VIEW (view)); + tepl_view_cut_clipboard (TEPL_VIEW (view)); +} + +/** + * gedit_view_copy_clipboard: + * @view: a #GeditView. + * + * Deprecated: 3.38: Use tepl_view_copy_clipboard() instead. + */ +void +gedit_view_copy_clipboard (GeditView *view) +{ + g_return_if_fail (GEDIT_IS_VIEW (view)); + tepl_view_copy_clipboard (TEPL_VIEW (view)); +} + +/** + * gedit_view_paste_clipboard: + * @view: a #GeditView. + * + * Deprecated: 3.38: Use tepl_view_paste_clipboard() instead. + */ +void +gedit_view_paste_clipboard (GeditView *view) +{ + g_return_if_fail (GEDIT_IS_VIEW (view)); + tepl_view_paste_clipboard (TEPL_VIEW (view)); +} + +/** + * gedit_view_delete_selection: + * @view: a #GeditView + * + * Deletes the text currently selected in the #GtkTextBuffer associated + * to the view and scroll to the cursor position. + * + * Deprecated: 3.38: use tepl_view_delete_selection() instead. + */ +void +gedit_view_delete_selection (GeditView *view) +{ + g_return_if_fail (GEDIT_IS_VIEW (view)); + tepl_view_delete_selection (TEPL_VIEW (view)); +} + +/** + * gedit_view_select_all: + * @view: a #GeditView + * + * Selects all the text. + * + * Deprecated: 3.38: use tepl_view_select_all() instead. + */ +void +gedit_view_select_all (GeditView *view) +{ + g_return_if_fail (GEDIT_IS_VIEW (view)); + tepl_view_select_all (TEPL_VIEW (view)); +} + +/** + * gedit_view_scroll_to_cursor: + * @view: a #GeditView + * + * Scrolls the @view to the cursor position. + * + * Deprecated: 3.38: Use tepl_view_scroll_to_cursor() instead. + */ +void +gedit_view_scroll_to_cursor (GeditView *view) +{ + g_return_if_fail (GEDIT_IS_VIEW (view)); + tepl_view_scroll_to_cursor (TEPL_VIEW (view)); +} + +static void +update_css_provider (GeditView *view) +{ + gchar *str; + gchar *css; + + g_assert (GEDIT_IS_VIEW (view)); + g_assert (view->priv->font_desc != NULL); + + str = gedit_pango_font_description_to_css (view->priv->font_desc); + css = g_strdup_printf ("textview { %s }", str ? str : ""); + gtk_css_provider_load_from_data (view->priv->css_provider, css, -1, NULL); + + g_free (css); + g_free (str); +} + +/** + * gedit_view_set_font: + * @view: a #GeditView + * @default_font: whether to reset to the default font + * @font_name: the name of the font to use + * + * If @default_font is #TRUE, resets the font of the @view to the default font. + * Otherwise sets it to @font_name. + */ +void +gedit_view_set_font (GeditView *view, + gboolean default_font, + const gchar *font_name) +{ + gedit_debug (DEBUG_VIEW); + + g_return_if_fail (GEDIT_IS_VIEW (view)); + + g_clear_pointer (&view->priv->font_desc, pango_font_description_free); + + if (default_font) + { + GeditSettings *settings; + gchar *font; + + settings = _gedit_settings_get_singleton (); + font = gedit_settings_get_system_font (settings); + + view->priv->font_desc = pango_font_description_from_string (font); + g_free (font); + } + else + { + g_return_if_fail (font_name != NULL); + + view->priv->font_desc = pango_font_description_from_string (font_name); + } + + g_return_if_fail (view->priv->font_desc != NULL); + + update_css_provider (view); +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-view.h b/gedit/gedit-view.h new file mode 100644 index 0000000..36935f9 --- /dev/null +++ b/gedit/gedit-view.h @@ -0,0 +1,90 @@ +/* + * gedit-view.h + * This file is part of gedit + * + * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence + * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_VIEW_H +#define GEDIT_VIEW_H + +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_VIEW (gedit_view_get_type ()) +#define GEDIT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GEDIT_TYPE_VIEW, GeditView)) +#define GEDIT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GEDIT_TYPE_VIEW, GeditViewClass)) +#define GEDIT_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GEDIT_TYPE_VIEW)) +#define GEDIT_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_VIEW)) +#define GEDIT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GEDIT_TYPE_VIEW, GeditViewClass)) + +typedef struct _GeditView GeditView; +typedef struct _GeditViewClass GeditViewClass; +typedef struct _GeditViewPrivate GeditViewPrivate; + +struct _GeditView +{ + TeplView view; + + /*< private >*/ + GeditViewPrivate *priv; +}; + +struct _GeditViewClass +{ + TeplViewClass parent_class; + + void (*drop_uris) (GeditView *view, + gchar **uri_list); + + gpointer padding; +}; + +GType gedit_view_get_type (void); + +GtkWidget * gedit_view_new (GeditDocument *doc); + +void gedit_view_set_font (GeditView *view, + gboolean default_font, + const gchar *font_name); + +G_DEPRECATED_FOR (tepl_view_cut_clipboard) +void gedit_view_cut_clipboard (GeditView *view); + +G_DEPRECATED_FOR (tepl_view_copy_clipboard) +void gedit_view_copy_clipboard (GeditView *view); + +G_DEPRECATED_FOR (tepl_view_paste_clipboard) +void gedit_view_paste_clipboard (GeditView *view); + +G_DEPRECATED_FOR (tepl_view_delete_selection) +void gedit_view_delete_selection (GeditView *view); + +G_DEPRECATED_FOR (tepl_view_select_all) +void gedit_view_select_all (GeditView *view); + +G_DEPRECATED_FOR (tepl_view_scroll_to_cursor) +void gedit_view_scroll_to_cursor (GeditView *view); + +G_END_DECLS + +#endif /* GEDIT_VIEW_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-window-activatable.c b/gedit/gedit-window-activatable.c new file mode 100644 index 0000000..37a6170 --- /dev/null +++ b/gedit/gedit-window-activatable.c @@ -0,0 +1,120 @@ +/* + * gedit-window-activatable.h + * This file is part of gedit + * + * Copyright (C) 2010 Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-window-activatable.h" + +#include + +#include "gedit-window.h" + +/** + * SECTION:gedit-window-activatable + * @short_description: Interface for activatable extensions on windows + * @see_also: #PeasExtensionSet + * + * #GeditWindowActivatable is an interface which should be implemented by + * extensions that should be activated on a gedit main window. + **/ + +G_DEFINE_INTERFACE(GeditWindowActivatable, gedit_window_activatable, G_TYPE_OBJECT) + +static void +gedit_window_activatable_default_init (GeditWindowActivatableInterface *iface) +{ + /** + * GeditWindowActivatable:window: + * + * The window property contains the gedit window for this + * #GeditWindowActivatable instance. + */ + g_object_interface_install_property (iface, + g_param_spec_object ("window", + "Window", + "The gedit window", + GEDIT_TYPE_WINDOW, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS)); +} + +/** + * gedit_window_activatable_activate: + * @activatable: A #GeditWindowActivatable. + * + * Activates the extension on the window property. + */ +void +gedit_window_activatable_activate (GeditWindowActivatable *activatable) +{ + GeditWindowActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_WINDOW_ACTIVATABLE (activatable)); + + iface = GEDIT_WINDOW_ACTIVATABLE_GET_IFACE (activatable); + if (iface->activate != NULL) + { + iface->activate (activatable); + } +} + +/** + * gedit_window_activatable_deactivate: + * @activatable: A #GeditWindowActivatable. + * + * Deactivates the extension on the window property. + */ +void +gedit_window_activatable_deactivate (GeditWindowActivatable *activatable) +{ + GeditWindowActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_WINDOW_ACTIVATABLE (activatable)); + + iface = GEDIT_WINDOW_ACTIVATABLE_GET_IFACE (activatable); + if (iface->deactivate != NULL) + { + iface->deactivate (activatable); + } +} + +/** + * gedit_window_activatable_update_state: + * @activatable: A #GeditWindowActivatable. + * + * Triggers an update of the extension internal state to take into account + * state changes in the window, due to some event or user action. + */ +void +gedit_window_activatable_update_state (GeditWindowActivatable *activatable) +{ + GeditWindowActivatableInterface *iface; + + g_return_if_fail (GEDIT_IS_WINDOW_ACTIVATABLE (activatable)); + + iface = GEDIT_WINDOW_ACTIVATABLE_GET_IFACE (activatable); + if (iface->update_state != NULL) + { + iface->update_state (activatable); + } +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-window-activatable.h b/gedit/gedit-window-activatable.h new file mode 100644 index 0000000..e0ab35f --- /dev/null +++ b/gedit/gedit-window-activatable.h @@ -0,0 +1,49 @@ +/* + * gedit-window-activatable.h + * This file is part of gedit + * + * Copyright (C) 2010 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_WINDOW_ACTIVATABLE_H +#define GEDIT_WINDOW_ACTIVATABLE_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_WINDOW_ACTIVATABLE (gedit_window_activatable_get_type ()) + +G_DECLARE_INTERFACE (GeditWindowActivatable, gedit_window_activatable, GEDIT, WINDOW_ACTIVATABLE, GObject) + +struct _GeditWindowActivatableInterface +{ + GTypeInterface g_iface; + + /* Virtual public methods */ + void (*activate) (GeditWindowActivatable *activatable); + void (*deactivate) (GeditWindowActivatable *activatable); + void (*update_state) (GeditWindowActivatable *activatable); +}; + +void gedit_window_activatable_activate (GeditWindowActivatable *activatable); +void gedit_window_activatable_deactivate (GeditWindowActivatable *activatable); +void gedit_window_activatable_update_state (GeditWindowActivatable *activatable); + +G_END_DECLS + +#endif /* GEDIT_WINDOW_ACTIVATABLE_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-window-private.h b/gedit/gedit-window-private.h new file mode 100644 index 0000000..60f8ba7 --- /dev/null +++ b/gedit/gedit-window-private.h @@ -0,0 +1,118 @@ +/* + * gedit-window-private.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANWINDOWILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_WINDOW_PRIVATE_H +#define GEDIT_WINDOW_PRIVATE_H + +#include + +#include "gedit/gedit-window.h" +#include "gedit-message-bus.h" +#include "gedit-settings.h" +#include "gedit-multi-notebook.h" + +G_BEGIN_DECLS + +/* WindowPrivate is in a separate .h so that we can access it from gedit-commands */ + +struct _GeditWindowPrivate +{ + GSettings *editor_settings; + GSettings *ui_settings; + GSettings *window_settings; + + GeditMultiNotebook *multi_notebook; + + GtkWidget *side_panel; + GtkWidget *side_stack_switcher; + GtkWidget *side_panel_inline_stack_switcher; + GtkWidget *bottom_panel_box; + GtkWidget *bottom_panel; + + GtkWidget *hpaned; + GtkWidget *vpaned; + + GeditMessageBus *message_bus; + PeasExtensionSet *extensions; + + /* Widgets for fullscreen mode */ + GtkWidget *fullscreen_eventbox; + GtkRevealer *fullscreen_revealer; + GtkWidget *fullscreen_headerbar; + GtkWidget *fullscreen_new_button; + GtkMenuButton *fullscreen_gear_button; + GtkMenuButton *fullscreen_open_recent_button; + + /* statusbar and context ids for statusbar messages */ + GtkWidget *statusbar; + GtkWidget *line_col_button; + GtkWidget *tab_width_button; + GtkWidget *language_button; + GtkWidget *language_button_label; + GtkWidget *language_popover; + guint generic_message_cid; + guint tip_message_cid; + guint bracket_match_message_cid; + guint tab_width_id; + guint language_changed_id; + guint wrap_mode_changed_id; + + /* Headerbars */ + GtkWidget *titlebar_paned; + GtkWidget *side_headerbar; + GtkWidget *headerbar; + + GtkWidget *new_button; + + GtkMenuButton *gear_button; + + gint num_tabs_with_error; + + gint width; + gint height; + GdkWindowState window_state; + + gint side_panel_size; + gint bottom_panel_size; + + GeditWindowState state; + + guint inhibition_cookie; + + gint bottom_panel_item_removed_handler_id; + + GtkWindowGroup *window_group; + + gchar *file_chooser_folder_uri; + + gchar *direct_save_uri; + + GSList *closed_docs_stack; + + guint removing_tabs : 1; + guint dispose_has_run : 1; + + guint in_fullscreen_eventbox : 1; +}; + +G_END_DECLS + +#endif /* GEDIT_WINDOW_PRIVATE_H */ +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c new file mode 100644 index 0000000..a5ab1ce --- /dev/null +++ b/gedit/gedit-window.c @@ -0,0 +1,3592 @@ +/* + * gedit-window.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-window.h" + +#include +#include +#include + +#include +#include +#include + +#include "gedit-window-private.h" +#include "gedit-app.h" +#include "gedit-app-private.h" +#include "gedit-notebook.h" +#include "gedit-notebook-popup-menu.h" +#include "gedit-multi-notebook.h" +#include "gedit-statusbar.h" +#include "gedit-tab.h" +#include "gedit-tab-private.h" +#include "gedit-view-frame.h" +#include "gedit-utils.h" +#include "gedit-commands.h" +#include "gedit-commands-private.h" +#include "gedit-debug.h" +#include "gedit-document.h" +#include "gedit-document-private.h" +#include "gedit-documents-panel.h" +#include "gedit-plugins-engine.h" +#include "gedit-window-activatable.h" +#include "gedit-enum-types.h" +#include "gedit-dirs.h" +#include "gedit-status-menu-button.h" +#include "gedit-settings.h" +#include "gedit-menu-stack-switcher.h" +#include "gedit-highlight-mode-selector.h" + +enum +{ + PROP_0, + PROP_STATE, + LAST_PROP +}; + +static GParamSpec *properties[LAST_PROP]; + +enum +{ + TAB_ADDED, + TAB_REMOVED, + TABS_REORDERED, + ACTIVE_TAB_CHANGED, + ACTIVE_TAB_STATE_CHANGED, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +enum +{ + TARGET_URI_LIST = 100, + TARGET_XDNDDIRECTSAVE +}; + +static const GtkTargetEntry drop_types [] = { + { "XdndDirectSave0", 0, TARGET_XDNDDIRECTSAVE }, /* XDS Protocol Type */ + { "text/uri-list", 0, TARGET_URI_LIST} +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GeditWindow, gedit_window, GTK_TYPE_APPLICATION_WINDOW) + +/* Prototypes */ +static void remove_actions (GeditWindow *window); + +static void +gedit_window_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditWindow *window = GEDIT_WINDOW (object); + + switch (prop_id) + { + case PROP_STATE: + g_value_set_flags (value, + gedit_window_get_state (window)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +save_panels_state (GeditWindow *window) +{ + const gchar *panel_page; + + gedit_debug (DEBUG_WINDOW); + + if (window->priv->side_panel_size > 0) + { + g_settings_set_int (window->priv->window_settings, + GEDIT_SETTINGS_SIDE_PANEL_SIZE, + window->priv->side_panel_size); + } + + panel_page = gtk_stack_get_visible_child_name (GTK_STACK (window->priv->side_panel)); + if (panel_page != NULL) + { + g_settings_set_string (window->priv->window_settings, + GEDIT_SETTINGS_SIDE_PANEL_ACTIVE_PAGE, + panel_page); + } + + if (window->priv->bottom_panel_size > 0) + { + g_settings_set_int (window->priv->window_settings, + GEDIT_SETTINGS_BOTTOM_PANEL_SIZE, + window->priv->bottom_panel_size); + } + + panel_page = gtk_stack_get_visible_child_name (GTK_STACK (window->priv->bottom_panel)); + if (panel_page != NULL) + { + g_settings_set_string (window->priv->window_settings, + GEDIT_SETTINGS_BOTTOM_PANEL_ACTIVE_PAGE, + panel_page); + } + + g_settings_apply (window->priv->window_settings); +} + +static void +save_window_state (GtkWidget *widget) +{ + GeditWindow *window = GEDIT_WINDOW (widget); + + if ((window->priv->window_state & + (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) == 0) + { + gtk_window_get_size (GTK_WINDOW (widget), &window->priv->width, &window->priv->height); + + g_settings_set (window->priv->window_settings, GEDIT_SETTINGS_WINDOW_SIZE, + "(ii)", window->priv->width, window->priv->height); + } +} + +static void +gedit_window_dispose (GObject *object) +{ + GeditWindow *window; + + gedit_debug (DEBUG_WINDOW); + + window = GEDIT_WINDOW (object); + + /* Stop tracking removal of panels otherwise we always + * end up with thinking we had no panel active, since they + * should all be removed below */ + if (window->priv->bottom_panel_item_removed_handler_id != 0) + { + g_signal_handler_disconnect (window->priv->bottom_panel, + window->priv->bottom_panel_item_removed_handler_id); + window->priv->bottom_panel_item_removed_handler_id = 0; + } + + /* First of all, force collection so that plugins + * really drop some of the references. + */ + peas_engine_garbage_collect (PEAS_ENGINE (gedit_plugins_engine_get_default ())); + + /* save the panels position and make sure to deactivate plugins + * for this window, but only once */ + if (!window->priv->dispose_has_run) + { + save_window_state (GTK_WIDGET (window)); + save_panels_state (window); + + /* Note that unreffing the extensions will automatically remove + all extensions which in turn will deactivate the extension */ + g_object_unref (window->priv->extensions); + + peas_engine_garbage_collect (PEAS_ENGINE (gedit_plugins_engine_get_default ())); + + window->priv->dispose_has_run = TRUE; + } + + g_clear_object (&window->priv->message_bus); + g_clear_object (&window->priv->window_group); + + /* We must free the settings after saving the panels */ + g_clear_object (&window->priv->editor_settings); + g_clear_object (&window->priv->ui_settings); + g_clear_object (&window->priv->window_settings); + + /* Now that there have broken some reference loops, + * force collection again. + */ + peas_engine_garbage_collect (PEAS_ENGINE (gedit_plugins_engine_get_default ())); + + g_clear_object (&window->priv->side_stack_switcher); + + /* GTK+/GIO unref the action map in an idle. For the last GeditWindow, + * the application quits before the idle, so the action map is not + * unreffed, and some objects are not finalized on application shutdown + * (GeditView for example). + * So this is just for making the debugging of object references a bit + * nicer. + */ + remove_actions (window); + + window->priv->fullscreen_open_recent_button = NULL; + + G_OBJECT_CLASS (gedit_window_parent_class)->dispose (object); +} + +static void +gedit_window_finalize (GObject *object) +{ + GeditWindow *window = GEDIT_WINDOW (object); + + g_free (window->priv->file_chooser_folder_uri); + g_slist_free_full (window->priv->closed_docs_stack, (GDestroyNotify)g_object_unref); + + G_OBJECT_CLASS (gedit_window_parent_class)->finalize (object); +} + +static void +update_fullscreen (GeditWindow *window, + gboolean is_fullscreen) +{ + GAction *fullscreen_action; + + _gedit_multi_notebook_set_show_tabs (window->priv->multi_notebook, !is_fullscreen); + + if (is_fullscreen) + { + gtk_widget_hide (window->priv->statusbar); + } + else + { + if (g_settings_get_boolean (window->priv->ui_settings, "statusbar-visible")) + { + gtk_widget_show (window->priv->statusbar); + } + } + +#ifndef OS_OSX + if (is_fullscreen) + { + gtk_widget_show_all (window->priv->fullscreen_eventbox); + } + else + { + gtk_widget_hide (window->priv->fullscreen_eventbox); + } +#endif + + fullscreen_action = g_action_map_lookup_action (G_ACTION_MAP (window), + "fullscreen"); + + g_simple_action_set_state (G_SIMPLE_ACTION (fullscreen_action), + g_variant_new_boolean (is_fullscreen)); +} + +static gboolean +gedit_window_window_state_event (GtkWidget *widget, + GdkEventWindowState *event) +{ + GeditWindow *window = GEDIT_WINDOW (widget); + + window->priv->window_state = event->new_window_state; + + g_settings_set_int (window->priv->window_settings, GEDIT_SETTINGS_WINDOW_STATE, + window->priv->window_state); + + if ((event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) != 0) + { + update_fullscreen (window, (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) != 0); + } + + return GTK_WIDGET_CLASS (gedit_window_parent_class)->window_state_event (widget, event); +} + +static gboolean +gedit_window_configure_event (GtkWidget *widget, + GdkEventConfigure *event) +{ + GeditWindow *window = GEDIT_WINDOW (widget); + + if (gtk_widget_get_realized (widget) && + (window->priv->window_state & + (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) == 0) + { + save_window_state (widget); + } + + return GTK_WIDGET_CLASS (gedit_window_parent_class)->configure_event (widget, event); +} + +/* + * GtkWindow catches keybindings for the menu items _before_ passing them to + * the focused widget. This is unfortunate and means that pressing ctrl+V + * in an entry on a panel ends up pasting text in the TextView. + * Here we override GtkWindow's handler to do the same things that it + * does, but in the opposite order and then we chain up to the grand + * parent handler, skipping gtk_window_key_press_event. + */ +static gboolean +gedit_window_key_press_event (GtkWidget *widget, + GdkEventKey *event) +{ + static gpointer grand_parent_class = NULL; + + GtkWindow *window = GTK_WINDOW (widget); + gboolean handled = FALSE; + + if (grand_parent_class == NULL) + { + grand_parent_class = g_type_class_peek_parent (gedit_window_parent_class); + } + + /* handle focus widget key events */ + if (!handled) + { + handled = gtk_window_propagate_key_event (window, event); + } + + /* handle mnemonics and accelerators */ + if (!handled) + { + handled = gtk_window_activate_key (window, event); + } + + /* Chain up, invokes binding set on window */ + if (!handled) + { + handled = GTK_WIDGET_CLASS (grand_parent_class)->key_press_event (widget, event); + } + + if (!handled) + { + return gedit_app_process_window_event (GEDIT_APP (g_application_get_default ()), + GEDIT_WINDOW (widget), + (GdkEvent *)event); + } + + return TRUE; +} + +static void +gedit_window_tab_removed (GeditWindow *window, + GeditTab *tab) +{ + peas_engine_garbage_collect (PEAS_ENGINE (gedit_plugins_engine_get_default ())); +} + +static void +gedit_window_class_init (GeditWindowClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + klass->tab_removed = gedit_window_tab_removed; + + object_class->dispose = gedit_window_dispose; + object_class->finalize = gedit_window_finalize; + object_class->get_property = gedit_window_get_property; + + widget_class->window_state_event = gedit_window_window_state_event; + widget_class->configure_event = gedit_window_configure_event; + widget_class->key_press_event = gedit_window_key_press_event; + + properties[PROP_STATE] = + g_param_spec_flags ("state", + "State", + "The window's state", + GEDIT_TYPE_WINDOW_STATE, + GEDIT_WINDOW_STATE_NORMAL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + + g_object_class_install_properties (object_class, LAST_PROP, properties); + + signals[TAB_ADDED] = + g_signal_new ("tab-added", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditWindowClass, tab_added), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_TAB); + signals[TAB_REMOVED] = + g_signal_new ("tab-removed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditWindowClass, tab_removed), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_TAB); + signals[TABS_REORDERED] = + g_signal_new ("tabs-reordered", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditWindowClass, tabs_reordered), + NULL, NULL, NULL, + G_TYPE_NONE, + 0); + signals[ACTIVE_TAB_CHANGED] = + g_signal_new ("active-tab-changed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditWindowClass, active_tab_changed), + NULL, NULL, NULL, + G_TYPE_NONE, + 1, + GEDIT_TYPE_TAB); + signals[ACTIVE_TAB_STATE_CHANGED] = + g_signal_new ("active-tab-state-changed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (GeditWindowClass, active_tab_state_changed), + NULL, NULL, NULL, + G_TYPE_NONE, + 0); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/ui/gedit-window.ui"); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, titlebar_paned); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, side_headerbar); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, headerbar); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, new_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, gear_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, hpaned); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, side_panel); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, side_panel_inline_stack_switcher); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, vpaned); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, multi_notebook); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, bottom_panel_box); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, bottom_panel); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, statusbar); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, language_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, tab_width_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, line_col_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, fullscreen_eventbox); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, fullscreen_revealer); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, fullscreen_headerbar); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, fullscreen_new_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditWindow, fullscreen_gear_button); +} + +static void +received_clipboard_contents (GtkClipboard *clipboard, + GtkSelectionData *selection_data, + GeditWindow *window) +{ + GeditTab *tab; + gboolean enabled; + GAction *action; + + /* getting clipboard contents is async, so we need to + * get the current tab and its state */ + + tab = gedit_window_get_active_tab (window); + + if (tab != NULL) + { + GeditTabState state; + gboolean state_normal; + + state = gedit_tab_get_state (tab); + state_normal = (state == GEDIT_TAB_STATE_NORMAL); + + enabled = state_normal && + gtk_selection_data_targets_include_text (selection_data); + } + else + { + enabled = FALSE; + } + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "paste"); + + /* Since this is emitted async, the disposal of the actions may have + * already happened. Ensure that we have an action before setting the + * state. + */ + if (action != NULL) + { + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enabled); + } + + g_object_unref (window); +} + +static void +set_paste_sensitivity_according_to_clipboard (GeditWindow *window, + GtkClipboard *clipboard) +{ + GdkDisplay *display; + + display = gtk_clipboard_get_display (clipboard); + + if (gdk_display_supports_selection_notification (display)) + { + gtk_clipboard_request_contents (clipboard, + gdk_atom_intern_static_string ("TARGETS"), + (GtkClipboardReceivedFunc) received_clipboard_contents, + g_object_ref (window)); + } + else + { + GAction *action; + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "paste"); + /* XFIXES extension not availbale, make + * Paste always sensitive */ + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + } +} + +static void +extension_update_state (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditWindow *window) +{ + gedit_window_activatable_update_state (GEDIT_WINDOW_ACTIVATABLE (exten)); +} + +static void +update_actions_sensitivity (GeditWindow *window) +{ + GeditNotebook *notebook; + GeditTab *tab; + gint num_notebooks; + gint num_tabs; + GeditTabState state = GEDIT_TAB_STATE_NORMAL; + GeditDocument *doc = NULL; + GtkSourceFile *file = NULL; + GeditView *view = NULL; + gint tab_number = -1; + GAction *action; + gboolean editable = FALSE; + gboolean empty_search = FALSE; + GtkClipboard *clipboard; + gboolean enable_syntax_highlighting; + + gedit_debug (DEBUG_WINDOW); + + notebook = gedit_multi_notebook_get_active_notebook (window->priv->multi_notebook); + tab = gedit_multi_notebook_get_active_tab (window->priv->multi_notebook); + num_notebooks = gedit_multi_notebook_get_n_notebooks (window->priv->multi_notebook); + num_tabs = gedit_multi_notebook_get_n_tabs (window->priv->multi_notebook); + + if (notebook != NULL && tab != NULL) + { + state = gedit_tab_get_state (tab); + view = gedit_tab_get_view (tab); + doc = GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view))); + file = gedit_document_get_file (doc); + tab_number = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), GTK_WIDGET (tab)); + editable = gtk_text_view_get_editable (GTK_TEXT_VIEW (view)); + empty_search = _gedit_document_get_empty_search (doc); + } + + clipboard = gtk_widget_get_clipboard (GTK_WIDGET (window), GDK_SELECTION_CLIPBOARD); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "save"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (file != NULL) && !gtk_source_file_is_readonly (file)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "save-as"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_SAVING_ERROR) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "revert"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL) && !gedit_document_is_untitled (doc)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "reopen-closed-tab"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), (window->priv->closed_docs_stack != NULL)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "print"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW)) && + (doc != NULL)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "close"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state != GEDIT_TAB_STATE_CLOSING) && + (state != GEDIT_TAB_STATE_SAVING) && + (state != GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) && + (state != GEDIT_TAB_STATE_PRINTING) && + (state != GEDIT_TAB_STATE_SAVING_ERROR)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "undo"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state == GEDIT_TAB_STATE_NORMAL) && + (doc != NULL) && gtk_source_buffer_can_undo (GTK_SOURCE_BUFFER (doc))); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "redo"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state == GEDIT_TAB_STATE_NORMAL) && + (doc != NULL) && gtk_source_buffer_can_redo (GTK_SOURCE_BUFFER (doc))); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "cut"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state == GEDIT_TAB_STATE_NORMAL) && + editable && + (doc != NULL) && gtk_text_buffer_get_has_selection (GTK_TEXT_BUFFER (doc))); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "copy"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL) && gtk_text_buffer_get_has_selection (GTK_TEXT_BUFFER (doc))); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "paste"); + if (num_tabs > 0 && (state == GEDIT_TAB_STATE_NORMAL) && editable) + { + set_paste_sensitivity_according_to_clipboard (window, clipboard); + } + else + { + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + } + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "delete"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state == GEDIT_TAB_STATE_NORMAL) && + editable && + (doc != NULL) && gtk_text_buffer_get_has_selection (GTK_TEXT_BUFFER (doc))); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "overwrite-mode"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), doc != NULL); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "find"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "replace"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state == GEDIT_TAB_STATE_NORMAL) && + (doc != NULL) && editable); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "find-next"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL) && !empty_search); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "find-prev"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL) && !empty_search); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "clear-highlight"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL) && !empty_search); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "goto-line"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + ((state == GEDIT_TAB_STATE_NORMAL) || + (state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION)) && + (doc != NULL)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "highlight-mode"); + enable_syntax_highlighting = g_settings_get_boolean (window->priv->editor_settings, + GEDIT_SETTINGS_SYNTAX_HIGHLIGHTING); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + (state != GEDIT_TAB_STATE_CLOSING) && + (doc != NULL) && enable_syntax_highlighting); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "move-to-new-window"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + num_tabs > 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), + "previous-document"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + tab_number > 0); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), + "next-document"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + tab_number >= 0 && + tab_number < gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) - 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "new-tab-group"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + num_tabs > 0); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "previous-tab-group"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + num_notebooks > 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "next-tab-group"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + num_notebooks > 1); + + /* We disable File->Quit/SaveAll/CloseAll while printing to avoid to have two + operations (save and print/print preview) that uses the message area at + the same time (may be we can remove this limitation in the future) */ + /* We disable File->Quit/CloseAll if state is saving since saving cannot be + cancelled (may be we can remove this limitation in the future) */ + action = g_action_map_lookup_action (G_ACTION_MAP (g_application_get_default ()), + "quit"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + !(window->priv->state & GEDIT_WINDOW_STATE_SAVING) && + !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING)); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "save-all"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING) && + num_tabs > 0); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "close-all"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + num_tabs > 0 && + !(window->priv->state & GEDIT_WINDOW_STATE_SAVING) && + !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING) && + num_tabs > 0); + + peas_extension_set_foreach (window->priv->extensions, + (PeasExtensionSetForeachFunc) extension_update_state, + window); +} + +static void +on_language_selector_shown (GeditHighlightModeSelector *sel, + GeditWindow *window) +{ + GeditDocument *doc; + + doc = gedit_window_get_active_document (window); + if (doc) + { + gedit_highlight_mode_selector_select_language (sel, + gedit_document_get_language (doc)); + } +} + +static void +on_language_selected (GeditHighlightModeSelector *sel, + GtkSourceLanguage *language, + GeditWindow *window) +{ + GeditDocument *doc; + + doc = gedit_window_get_active_document (window); + if (doc) + { + gedit_document_set_language (doc, language); + } + + gtk_widget_hide (GTK_WIDGET (window->priv->language_popover)); +} + +static void +setup_statusbar (GeditWindow *window) +{ + GeditHighlightModeSelector *sel; + + gedit_debug (DEBUG_WINDOW); + + window->priv->generic_message_cid = gtk_statusbar_get_context_id + (GTK_STATUSBAR (window->priv->statusbar), "generic_message"); + window->priv->tip_message_cid = gtk_statusbar_get_context_id + (GTK_STATUSBAR (window->priv->statusbar), "tip_message"); + window->priv->bracket_match_message_cid = gtk_statusbar_get_context_id + (GTK_STATUSBAR (window->priv->statusbar), "bracket_match_message"); + + g_settings_bind (window->priv->ui_settings, + "statusbar-visible", + window->priv->statusbar, + "visible", + G_SETTINGS_BIND_GET); + + /* Line Col button */ + gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (window->priv->line_col_button), + _gedit_app_get_line_col_menu (GEDIT_APP (g_application_get_default ()))); + + /* Tab Width button */ + gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (window->priv->tab_width_button), + _gedit_app_get_tab_width_menu (GEDIT_APP (g_application_get_default ()))); + + /* Language button */ + window->priv->language_popover = gtk_popover_new (window->priv->language_button); + gtk_menu_button_set_popover (GTK_MENU_BUTTON (window->priv->language_button), + window->priv->language_popover); + + sel = gedit_highlight_mode_selector_new (); + g_signal_connect (sel, + "show", + G_CALLBACK (on_language_selector_shown), + window); + g_signal_connect (sel, + "language-selected", + G_CALLBACK (on_language_selected), + window); + + gtk_container_add (GTK_CONTAINER (window->priv->language_popover), GTK_WIDGET (sel)); + gtk_widget_show (GTK_WIDGET (sel)); +} + +static GeditWindow * +clone_window (GeditWindow *origin) +{ + GeditWindow *window; + GdkScreen *screen; + GeditApp *app; + const gchar *panel_page; + + gedit_debug (DEBUG_WINDOW); + + app = GEDIT_APP (g_application_get_default ()); + + screen = gtk_window_get_screen (GTK_WINDOW (origin)); + window = gedit_app_create_window (app, screen); + + gtk_window_set_default_size (GTK_WINDOW (window), + origin->priv->width, + origin->priv->height); + + if ((origin->priv->window_state & GDK_WINDOW_STATE_MAXIMIZED) != 0) + gtk_window_maximize (GTK_WINDOW (window)); + else + gtk_window_unmaximize (GTK_WINDOW (window)); + + if ((origin->priv->window_state & GDK_WINDOW_STATE_STICKY) != 0) + gtk_window_stick (GTK_WINDOW (window)); + else + gtk_window_unstick (GTK_WINDOW (window)); + + /* set the panels size, the paned position will be set when + * they are mapped */ + window->priv->side_panel_size = origin->priv->side_panel_size; + window->priv->bottom_panel_size = origin->priv->bottom_panel_size; + + panel_page = gtk_stack_get_visible_child_name (GTK_STACK (origin->priv->side_panel)); + + if (panel_page) + { + gtk_stack_set_visible_child_name (GTK_STACK (window->priv->side_panel), panel_page); + } + + panel_page = gtk_stack_get_visible_child_name (GTK_STACK (origin->priv->bottom_panel)); + + if (panel_page) + { + gtk_stack_set_visible_child_name (GTK_STACK (window->priv->bottom_panel), panel_page); + } + + gtk_widget_set_visible (window->priv->side_panel, + gtk_widget_get_visible (origin->priv->side_panel)); + gtk_widget_set_visible (window->priv->bottom_panel, + gtk_widget_get_visible (origin->priv->bottom_panel)); + + return window; +} + +static void +bracket_matched_cb (GtkSourceBuffer *buffer, + GtkTextIter *iter, + GtkSourceBracketMatchType result, + GeditWindow *window) +{ + if (buffer != GTK_SOURCE_BUFFER (gedit_window_get_active_document (window))) + return; + + switch (result) + { + case GTK_SOURCE_BRACKET_MATCH_NONE: + gtk_statusbar_pop (GTK_STATUSBAR (window->priv->statusbar), + window->priv->bracket_match_message_cid); + break; + case GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE: + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->bracket_match_message_cid, + _("Bracket match is out of range")); + break; + case GTK_SOURCE_BRACKET_MATCH_NOT_FOUND: + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->bracket_match_message_cid, + _("Bracket match not found")); + break; + case GTK_SOURCE_BRACKET_MATCH_FOUND: + gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->bracket_match_message_cid, + _("Bracket match found on line: %d"), + gtk_text_iter_get_line (iter) + 1); + break; + default: + g_assert_not_reached (); + } +} + +static void +update_cursor_position_statusbar (GtkTextBuffer *buffer, + GeditWindow *window) +{ + gint line, col; + GtkTextIter iter; + GeditView *view; + gchar *msg = NULL; + + gedit_debug (DEBUG_WINDOW); + + if (buffer != GTK_TEXT_BUFFER (gedit_window_get_active_document (window))) + return; + + view = gedit_window_get_active_view (window); + + gtk_text_buffer_get_iter_at_mark (buffer, + &iter, + gtk_text_buffer_get_insert (buffer)); + + line = 1 + gtk_text_iter_get_line (&iter); + col = 1 + gtk_source_view_get_visual_column (GTK_SOURCE_VIEW (view), &iter); + + if ((line >= 0) || (col >= 0)) + { + /* Translators: "Ln" is an abbreviation for "Line", Col is an abbreviation for "Column". Please, + use abbreviations if possible to avoid space problems. */ + msg = g_strdup_printf (_(" Ln %d, Col %d"), line, col); + } + + gedit_status_menu_button_set_label (GEDIT_STATUS_MENU_BUTTON (window->priv->line_col_button), msg); + + g_free (msg); +} + +static void +set_overwrite_mode (GeditWindow *window, + gboolean overwrite) +{ + GAction *action; + + gedit_statusbar_set_overwrite (GEDIT_STATUSBAR (window->priv->statusbar), overwrite); + + action = g_action_map_lookup_action (G_ACTION_MAP (window), "overwrite-mode"); + g_simple_action_set_state (G_SIMPLE_ACTION (action), g_variant_new_boolean (overwrite)); +} + +static void +overwrite_mode_changed (GtkTextView *view, + GParamSpec *pspec, + GeditWindow *window) +{ + if (view != GTK_TEXT_VIEW (gedit_window_get_active_view (window))) + return; + + set_overwrite_mode (window, gtk_text_view_get_overwrite (view)); +} + +#define MAX_TITLE_LENGTH 100 + +static void +set_title (GeditWindow *window) +{ + GeditTab *tab; + GeditDocument *doc = NULL; + GtkSourceFile *file; + gchar *name; + gchar *dirname = NULL; + gchar *main_title = NULL; + gchar *title = NULL; + gchar *subtitle = NULL; + gint len; + + tab = gedit_window_get_active_tab (window); + + if (tab == NULL) + { + gedit_app_set_window_title (GEDIT_APP (g_application_get_default ()), + window, + "gedit"); + gtk_header_bar_set_title (GTK_HEADER_BAR (window->priv->headerbar), + "gedit"); + gtk_header_bar_set_subtitle (GTK_HEADER_BAR (window->priv->headerbar), + NULL); + gtk_header_bar_set_title (GTK_HEADER_BAR (window->priv->fullscreen_headerbar), + "gedit"); + gtk_header_bar_set_subtitle (GTK_HEADER_BAR (window->priv->fullscreen_headerbar), + NULL); + return; + } + + doc = gedit_tab_get_document (tab); + g_return_if_fail (doc != NULL); + + file = gedit_document_get_file (doc); + + name = gedit_document_get_short_name_for_display (doc); + + len = g_utf8_strlen (name, -1); + + /* if the name is awfully long, truncate it and be done with it, + * otherwise also show the directory (ellipsized if needed) + */ + if (len > MAX_TITLE_LENGTH) + { + gchar *tmp; + + tmp = tepl_utils_str_middle_truncate (name, + MAX_TITLE_LENGTH); + g_free (name); + name = tmp; + } + else + { + GFile *location = gtk_source_file_get_location (file); + + if (location != NULL) + { + gchar *str = gedit_utils_location_get_dirname_for_display (location); + + /* use the remaining space for the dir, but use a min of 20 chars + * so that we do not end up with a dirname like "(a...b)". + * This means that in the worst case when the filename is long 99 + * we have a title long 99 + 20, but I think it's a rare enough + * case to be acceptable. It's justa darn title afterall :) + */ + dirname = tepl_utils_str_middle_truncate (str, + MAX (20, MAX_TITLE_LENGTH - len)); + g_free (str); + } + } + + if (gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc))) + { + gchar *tmp_name; + + tmp_name = g_strdup_printf ("*%s", name); + g_free (name); + + name = tmp_name; + } + + if (gtk_source_file_is_readonly (file)) + { + title = g_strdup_printf ("%s [%s]", + name, _("Read-Only")); + + if (dirname != NULL) + { + main_title = g_strdup_printf ("%s [%s] (%s) - gedit", + name, + _("Read-Only"), + dirname); + subtitle = dirname; + } + else + { + main_title = g_strdup_printf ("%s [%s] - gedit", + name, + _("Read-Only")); + } + } + else + { + title = g_strdup (name); + + if (dirname != NULL) + { + main_title = g_strdup_printf ("%s (%s) - gedit", + name, + dirname); + subtitle = dirname; + } + else + { + main_title = g_strdup_printf ("%s - gedit", + name); + } + } + + gedit_app_set_window_title (GEDIT_APP (g_application_get_default ()), + window, + main_title); + + gtk_header_bar_set_title (GTK_HEADER_BAR (window->priv->headerbar), + title); + gtk_header_bar_set_subtitle (GTK_HEADER_BAR (window->priv->headerbar), + subtitle); + gtk_header_bar_set_title (GTK_HEADER_BAR (window->priv->fullscreen_headerbar), + title); + gtk_header_bar_set_subtitle (GTK_HEADER_BAR (window->priv->fullscreen_headerbar), + subtitle); + + g_free (dirname); + g_free (name); + g_free (title); + g_free (main_title); +} + +#undef MAX_TITLE_LENGTH + +static void +tab_width_changed (GObject *object, + GParamSpec *pspec, + GeditWindow *window) +{ + guint new_tab_width; + gchar *label; + + new_tab_width = gtk_source_view_get_tab_width (GTK_SOURCE_VIEW (object)); + + label = g_strdup_printf (_("Tab Width: %u"), new_tab_width); + gedit_status_menu_button_set_label (GEDIT_STATUS_MENU_BUTTON (window->priv->tab_width_button), label); + g_free (label); +} + +static void +language_changed (GObject *object, + GParamSpec *pspec, + GeditWindow *window) +{ + GtkSourceLanguage *new_language; + const gchar *label; + + new_language = gtk_source_buffer_get_language (GTK_SOURCE_BUFFER (object)); + + if (new_language) + label = gtk_source_language_get_name (new_language); + else + label = _("Plain Text"); + + gedit_status_menu_button_set_label (GEDIT_STATUS_MENU_BUTTON (window->priv->language_button), label); + + peas_extension_set_foreach (window->priv->extensions, + (PeasExtensionSetForeachFunc) extension_update_state, + window); +} + +static void +update_statusbar_wrap_mode_checkbox_from_view (GeditWindow *window, + GeditView *view) +{ + GtkWrapMode wrap_mode; + GSimpleAction *simple_action; + + wrap_mode = gtk_text_view_get_wrap_mode (GTK_TEXT_VIEW (view)); + + simple_action = G_SIMPLE_ACTION (g_action_map_lookup_action (G_ACTION_MAP (window), "wrap-mode")); + g_simple_action_set_state (simple_action, g_variant_new_boolean (wrap_mode != GTK_WRAP_NONE)); +} +static void +on_view_wrap_mode_changed (GObject *object, + GParamSpec *pspec, + GeditWindow *window) +{ + GeditView *view = gedit_window_get_active_view (window); + + update_statusbar_wrap_mode_checkbox_from_view (window, view); +} + +static void +_gedit_window_text_wrapping_change_state (GSimpleAction *simple, + GVariant *value, + gpointer window) +{ + gboolean result; + GeditView *view; + GtkWrapMode wrap_mode; + GtkWrapMode current_wrap_mode; + + g_simple_action_set_state (simple, value); + + wrap_mode = g_settings_get_enum (GEDIT_WINDOW (window)->priv->editor_settings, + GEDIT_SETTINGS_WRAP_MODE); + + current_wrap_mode = wrap_mode; + result = g_variant_get_boolean (value); + + if (result && wrap_mode == GTK_WRAP_NONE) + { + current_wrap_mode = g_settings_get_enum (GEDIT_WINDOW (window)->priv->editor_settings, + GEDIT_SETTINGS_WRAP_LAST_SPLIT_MODE); + } + else if (!result) + { + current_wrap_mode = GTK_WRAP_NONE; + } + + view = gedit_window_get_active_view (GEDIT_WINDOW (window)); + + g_signal_handler_block (view, GEDIT_WINDOW (window)->priv->wrap_mode_changed_id); + gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), current_wrap_mode); + g_signal_handler_unblock (view, GEDIT_WINDOW (window)->priv->wrap_mode_changed_id); +} + +static GActionEntry text_wrapping_entrie[] = { + {"wrap-mode", NULL, NULL, "false", _gedit_window_text_wrapping_change_state}, +}; + +static void +remove_actions (GeditWindow *window) +{ + g_action_map_remove_action (G_ACTION_MAP (window), "auto-indent"); + g_action_map_remove_action (G_ACTION_MAP (window), "tab-width"); + g_action_map_remove_action (G_ACTION_MAP (window), "use-spaces"); + g_action_map_remove_action (G_ACTION_MAP (window), "show-line-numbers"); + g_action_map_remove_action (G_ACTION_MAP (window), "display-right-margin"); + g_action_map_remove_action (G_ACTION_MAP (window), "highlight-current-line"); + g_action_map_remove_action (G_ACTION_MAP (window), "wrap-mode"); +} + +static void +sync_current_tab_actions (GeditWindow *window, + GeditView *old_view, + GeditView *new_view) +{ + if (old_view != NULL) + { + remove_actions (window); + + g_signal_handler_disconnect (old_view, window->priv->wrap_mode_changed_id); + } + + if (new_view != NULL) + { + GPropertyAction *action; + + action = g_property_action_new ("auto-indent", new_view, "auto-indent"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); + + action = g_property_action_new ("tab-width", new_view, "tab-width"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); + + action = g_property_action_new ("use-spaces", new_view, "insert-spaces-instead-of-tabs"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); + + action = g_property_action_new ("show-line-numbers", new_view, "show-line-numbers"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); + + action = g_property_action_new ("display-right-margin", new_view, "show-right-margin"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); + + action = g_property_action_new ("highlight-current-line", new_view, "highlight-current-line"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); + + g_action_map_add_action_entries (G_ACTION_MAP (window), + text_wrapping_entrie, + G_N_ELEMENTS (text_wrapping_entrie), + window); + + update_statusbar_wrap_mode_checkbox_from_view (window, new_view); + + window->priv->wrap_mode_changed_id = g_signal_connect (new_view, + "notify::wrap-mode", + G_CALLBACK (on_view_wrap_mode_changed), + window); + } +} + +static void +update_statusbar (GeditWindow *window, + GeditView *old_view, + GeditView *new_view) +{ + if (old_view) + { + if (window->priv->tab_width_id) + { + g_signal_handler_disconnect (old_view, + window->priv->tab_width_id); + + window->priv->tab_width_id = 0; + } + + if (window->priv->language_changed_id) + { + g_signal_handler_disconnect (gtk_text_view_get_buffer (GTK_TEXT_VIEW (old_view)), + window->priv->language_changed_id); + + window->priv->language_changed_id = 0; + } + } + + if (new_view) + { + GeditDocument *doc; + + doc = GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (new_view))); + + /* sync the statusbar */ + update_cursor_position_statusbar (GTK_TEXT_BUFFER (doc), + window); + + set_overwrite_mode (window, gtk_text_view_get_overwrite (GTK_TEXT_VIEW (new_view))); + + gtk_widget_show (window->priv->line_col_button); + gtk_widget_show (window->priv->tab_width_button); + gtk_widget_show (window->priv->language_button); + + window->priv->tab_width_id = g_signal_connect (new_view, + "notify::tab-width", + G_CALLBACK (tab_width_changed), + window); + + window->priv->language_changed_id = g_signal_connect (doc, + "notify::language", + G_CALLBACK (language_changed), + window); + + /* call it for the first time */ + tab_width_changed (G_OBJECT (new_view), NULL, window); + language_changed (G_OBJECT (doc), NULL, window); + } +} + +static void +tab_switched (GeditMultiNotebook *mnb, + GeditNotebook *old_notebook, + GeditTab *old_tab, + GeditNotebook *new_notebook, + GeditTab *new_tab, + GeditWindow *window) +{ + GeditView *old_view, *new_view; + + old_view = old_tab ? gedit_tab_get_view (old_tab) : NULL; + new_view = new_tab ? gedit_tab_get_view (new_tab) : NULL; + + sync_current_tab_actions (window, old_view, new_view); + update_statusbar (window, old_view, new_view); + + if (new_tab == NULL || window->priv->dispose_has_run) + return; + + set_title (window); + update_actions_sensitivity (window); + + g_signal_emit (G_OBJECT (window), + signals[ACTIVE_TAB_CHANGED], + 0, + new_tab); +} + +static void +analyze_tab_state (GeditTab *tab, + GeditWindow *window) +{ + GeditTabState ts; + + ts = gedit_tab_get_state (tab); + + switch (ts) + { + case GEDIT_TAB_STATE_LOADING: + case GEDIT_TAB_STATE_REVERTING: + window->priv->state |= GEDIT_WINDOW_STATE_LOADING; + break; + + case GEDIT_TAB_STATE_SAVING: + window->priv->state |= GEDIT_WINDOW_STATE_SAVING; + break; + + case GEDIT_TAB_STATE_PRINTING: + window->priv->state |= GEDIT_WINDOW_STATE_PRINTING; + break; + + case GEDIT_TAB_STATE_LOADING_ERROR: + case GEDIT_TAB_STATE_REVERTING_ERROR: + case GEDIT_TAB_STATE_SAVING_ERROR: + case GEDIT_TAB_STATE_GENERIC_ERROR: + window->priv->state |= GEDIT_WINDOW_STATE_ERROR; + ++window->priv->num_tabs_with_error; + default: + /* NOP */ + break; + } +} + +static void +update_window_state (GeditWindow *window) +{ + GeditWindowState old_ws; + gint old_num_of_errors; + + gedit_debug_message (DEBUG_WINDOW, "Old state: %x", window->priv->state); + + old_ws = window->priv->state; + old_num_of_errors = window->priv->num_tabs_with_error; + + window->priv->state = 0; + window->priv->num_tabs_with_error = 0; + + gedit_multi_notebook_foreach_tab (window->priv->multi_notebook, + (GtkCallback)analyze_tab_state, + window); + + gedit_debug_message (DEBUG_WINDOW, "New state: %x", window->priv->state); + + if (old_ws != window->priv->state) + { + update_actions_sensitivity (window); + + gedit_statusbar_set_window_state (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->state, + window->priv->num_tabs_with_error); + + g_object_notify_by_pspec (G_OBJECT (window), properties[PROP_STATE]); + } + else if (old_num_of_errors != window->priv->num_tabs_with_error) + { + gedit_statusbar_set_window_state (GEDIT_STATUSBAR (window->priv->statusbar), + window->priv->state, + window->priv->num_tabs_with_error); + } +} + +static void +update_can_close (GeditWindow *window) +{ + GeditWindowPrivate *priv = window->priv; + GList *tabs; + GList *l; + gboolean can_close = TRUE; + + gedit_debug (DEBUG_WINDOW); + + tabs = gedit_multi_notebook_get_all_tabs (priv->multi_notebook); + + for (l = tabs; l != NULL; l = g_list_next (l)) + { + GeditTab *tab = l->data; + + if (!_gedit_tab_get_can_close (tab)) + { + can_close = FALSE; + break; + } + } + + if (can_close && (priv->inhibition_cookie != 0)) + { + gtk_application_uninhibit (GTK_APPLICATION (g_application_get_default ()), + priv->inhibition_cookie); + priv->inhibition_cookie = 0; + } + else if (!can_close && (priv->inhibition_cookie == 0)) + { + priv->inhibition_cookie = gtk_application_inhibit (GTK_APPLICATION (g_application_get_default ()), + GTK_WINDOW (window), + GTK_APPLICATION_INHIBIT_LOGOUT, + _("There are unsaved documents")); + } + + g_list_free (tabs); +} + +static void +sync_state (GeditTab *tab, + GParamSpec *pspec, + GeditWindow *window) +{ + gedit_debug (DEBUG_WINDOW); + + update_window_state (window); + + if (tab == gedit_window_get_active_tab (window)) + { + update_actions_sensitivity (window); + + g_signal_emit (G_OBJECT (window), signals[ACTIVE_TAB_STATE_CHANGED], 0); + } +} + +static void +sync_name (GeditTab *tab, + GParamSpec *pspec, + GeditWindow *window) +{ + if (tab == gedit_window_get_active_tab (window)) + { + set_title (window); + update_actions_sensitivity (window); + } +} + +static void +sync_can_close (GeditTab *tab, + GParamSpec *pspec, + GeditWindow *window) +{ + update_can_close (window); +} + +static GeditWindow * +get_drop_window (GtkWidget *widget) +{ + GtkWidget *target_window; + + target_window = gtk_widget_get_toplevel (widget); + g_return_val_if_fail (GEDIT_IS_WINDOW (target_window), NULL); + + return GEDIT_WINDOW (target_window); +} + +static void +load_uris_from_drop (GeditWindow *window, + gchar **uri_list) +{ + GSList *locations = NULL; + gint i; + GSList *loaded; + + if (uri_list == NULL) + return; + + for (i = 0; uri_list[i] != NULL; ++i) + { + locations = g_slist_prepend (locations, g_file_new_for_uri (uri_list[i])); + } + + locations = g_slist_reverse (locations); + loaded = gedit_commands_load_locations (window, + locations, + NULL, + 0, + 0); + + g_slist_free (loaded); + g_slist_free_full (locations, g_object_unref); +} + +/* Handle drops on the GeditWindow */ +static void +drag_data_received_cb (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + GtkSelectionData *selection_data, + guint info, + guint timestamp, + gpointer data) +{ + GeditWindow *window; + gchar **uri_list; + + window = get_drop_window (widget); + + if (window == NULL) + return; + + switch (info) + { + case TARGET_URI_LIST: + uri_list = gedit_utils_drop_get_uris(selection_data); + load_uris_from_drop (window, uri_list); + g_strfreev (uri_list); + + gtk_drag_finish (context, TRUE, FALSE, timestamp); + + break; + + case TARGET_XDNDDIRECTSAVE: + /* Indicate that we don't provide "F" fallback */ + if (gtk_selection_data_get_format (selection_data) == 8 && + gtk_selection_data_get_length (selection_data) == 1 && + gtk_selection_data_get_data (selection_data)[0] == 'F') + { + gdk_property_change (gdk_drag_context_get_source_window (context), + gdk_atom_intern ("XdndDirectSave0", FALSE), + gdk_atom_intern ("text/plain", FALSE), 8, + GDK_PROP_MODE_REPLACE, (const guchar *) "", 0); + } + else if (gtk_selection_data_get_format (selection_data) == 8 && + gtk_selection_data_get_length (selection_data) == 1 && + gtk_selection_data_get_data (selection_data)[0] == 'S' && + window->priv->direct_save_uri != NULL) + { + gchar **uris; + + uris = g_new (gchar *, 2); + uris[0] = window->priv->direct_save_uri; + uris[1] = NULL; + + load_uris_from_drop (window, uris); + g_free (uris); + } + + g_free (window->priv->direct_save_uri); + window->priv->direct_save_uri = NULL; + + gtk_drag_finish (context, TRUE, FALSE, timestamp); + + break; + } +} + +static void +drag_drop_cb (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time, + gpointer user_data) +{ + GeditWindow *window; + GtkTargetList *target_list; + GdkAtom target; + + window = get_drop_window (widget); + + target_list = gtk_drag_dest_get_target_list (widget); + target = gtk_drag_dest_find_target (widget, context, target_list); + + if (target != GDK_NONE) + { + guint info; + gboolean found; + + found = gtk_target_list_find (target_list, target, &info); + g_assert (found); + + if (info == TARGET_XDNDDIRECTSAVE) + { + gchar *uri; + uri = gedit_utils_set_direct_save_filename (context); + + if (uri != NULL) + { + g_free (window->priv->direct_save_uri); + window->priv->direct_save_uri = uri; + } + } + + gtk_drag_get_data (GTK_WIDGET (widget), context, + target, time); + } +} + +/* Handle drops on the GeditView */ +static void +drop_uris_cb (GtkWidget *widget, + gchar **uri_list, + GeditWindow *window) +{ + load_uris_from_drop (window, uri_list); +} + +static void +update_fullscreen_revealer_state (GeditWindow *window) +{ + gboolean open_recent_menu_is_active; + gboolean hamburger_menu_is_active; + + open_recent_menu_is_active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (window->priv->fullscreen_open_recent_button)); + hamburger_menu_is_active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (window->priv->fullscreen_gear_button)); + + gtk_revealer_set_reveal_child (window->priv->fullscreen_revealer, + (window->priv->in_fullscreen_eventbox || + open_recent_menu_is_active || + hamburger_menu_is_active)); +} + +static gboolean +on_fullscreen_eventbox_enter_notify_event (GtkWidget *fullscreen_eventbox, + GdkEventCrossing *event, + GeditWindow *window) +{ + window->priv->in_fullscreen_eventbox = TRUE; + update_fullscreen_revealer_state (window); + + return GDK_EVENT_PROPAGATE; +} + +static gboolean +on_fullscreen_eventbox_leave_notify_event (GtkWidget *fullscreen_eventbox, + GdkEventCrossing *event, + GeditWindow *window) +{ + if (-1.0 <= event->y && event->y <= 0.0) + { + /* Ignore the event. + * + * Leave notify events are received with -1 <= y <= 0 + * coordinates, although the GeditWindow is in fullscreen mode + * and when there are no screens above (it's maybe a bug in an + * underlying library). + * If we hide the headerbar when those events happen, then it + * makes the headerbar to be shown/hidden a lot of time in a + * short period of time, i.e. a "stuttering". In other words + * lots of leave/enter events are received when moving the mouse + * upwards on the screen when the mouse is already at the top. + * The expected leave event has a positive event->y value being + * >= to the height of the headerbar (approximately + * 40 <= y <= 50). So clearly when we receive a leave event with + * event->y <= 0, it means that the mouse has left the eventbox + * on the wrong side. + * The -1.0 <= event->y is there (instead of just <= 0.0) in the + * case that there is another screen *above*, even if this + * heuristic/workaround is not perfect in that case. But that + * case is quite rare, so it's probably a good enough solution. + * + * Note that apparently the "stuttering" occurs only on an Xorg + * session, not on Wayland (tested with GNOME). + * + * If you see a better solution... + */ + return GDK_EVENT_PROPAGATE; + } + + window->priv->in_fullscreen_eventbox = FALSE; + update_fullscreen_revealer_state (window); + + return GDK_EVENT_PROPAGATE; +} + +static void +setup_fullscreen_eventbox (GeditWindow *window) +{ + gtk_widget_set_size_request (window->priv->fullscreen_eventbox, -1, 1); + gtk_widget_hide (window->priv->fullscreen_eventbox); + + g_signal_connect (window->priv->fullscreen_eventbox, + "enter-notify-event", + G_CALLBACK (on_fullscreen_eventbox_enter_notify_event), + window); + + g_signal_connect (window->priv->fullscreen_eventbox, + "leave-notify-event", + G_CALLBACK (on_fullscreen_eventbox_leave_notify_event), + window); +} + +static void +empty_search_notify_cb (GeditDocument *doc, + GParamSpec *pspec, + GeditWindow *window) +{ + if (doc == gedit_window_get_active_document (window)) + { + update_actions_sensitivity (window); + } +} + +static void +can_undo (GeditDocument *doc, + GParamSpec *pspec, + GeditWindow *window) +{ + if (doc == gedit_window_get_active_document (window)) + { + update_actions_sensitivity (window); + } +} + +static void +can_redo (GeditDocument *doc, + GParamSpec *pspec, + GeditWindow *window) +{ + if (doc == gedit_window_get_active_document (window)) + { + update_actions_sensitivity (window); + } +} + +static void +selection_changed (GeditDocument *doc, + GParamSpec *pspec, + GeditWindow *window) +{ + if (doc == gedit_window_get_active_document (window)) + { + update_actions_sensitivity (window); + } +} + +static void +readonly_changed (GtkSourceFile *file, + GParamSpec *pspec, + GeditWindow *window) +{ + update_actions_sensitivity (window); + + sync_name (gedit_window_get_active_tab (window), NULL, window); + + peas_extension_set_foreach (window->priv->extensions, + (PeasExtensionSetForeachFunc) extension_update_state, + window); +} + +static void +editable_changed (GeditView *view, + GParamSpec *arg1, + GeditWindow *window) +{ + peas_extension_set_foreach (window->priv->extensions, + (PeasExtensionSetForeachFunc) extension_update_state, + window); +} + +static void +on_tab_added (GeditMultiNotebook *multi, + GeditNotebook *notebook, + GeditTab *tab, + GeditWindow *window) +{ + GeditView *view; + GeditDocument *doc; + GtkSourceFile *file; + + gedit_debug (DEBUG_WINDOW); + + update_actions_sensitivity (window); + + view = gedit_tab_get_view (tab); + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + + /* IMPORTANT: remember to disconnect the signal in notebook_tab_removed + * if a new signal is connected here */ + + g_signal_connect (tab, + "notify::name", + G_CALLBACK (sync_name), + window); + g_signal_connect (tab, + "notify::state", + G_CALLBACK (sync_state), + window); + g_signal_connect (tab, + "notify::can-close", + G_CALLBACK (sync_can_close), + window); + g_signal_connect (tab, + "drop_uris", + G_CALLBACK (drop_uris_cb), + window); + g_signal_connect (doc, + "bracket-matched", + G_CALLBACK (bracket_matched_cb), + window); + g_signal_connect (doc, + "cursor-moved", + G_CALLBACK (update_cursor_position_statusbar), + window); + g_signal_connect (doc, + "notify::empty-search", + G_CALLBACK (empty_search_notify_cb), + window); + g_signal_connect (doc, + "notify::can-undo", + G_CALLBACK (can_undo), + window); + g_signal_connect (doc, + "notify::can-redo", + G_CALLBACK (can_redo), + window); + g_signal_connect (doc, + "notify::has-selection", + G_CALLBACK (selection_changed), + window); + g_signal_connect (view, + "notify::overwrite", + G_CALLBACK (overwrite_mode_changed), + window); + g_signal_connect (view, + "notify::editable", + G_CALLBACK (editable_changed), + window); + g_signal_connect (file, + "notify::read-only", + G_CALLBACK (readonly_changed), + window); + + update_window_state (window); + update_can_close (window); + + g_signal_emit (G_OBJECT (window), signals[TAB_ADDED], 0, tab); +} + +static void +push_last_closed_doc (GeditWindow *window, + GeditDocument *doc) +{ + GeditWindowPrivate *priv = window->priv; + GtkSourceFile *file = gedit_document_get_file (doc); + GFile *location = gtk_source_file_get_location (file); + + if (location != NULL) + { + priv->closed_docs_stack = g_slist_prepend (priv->closed_docs_stack, location); + g_object_ref (location); + } +} + +GFile * +_gedit_window_pop_last_closed_doc (GeditWindow *window) +{ + GeditWindowPrivate *priv = window->priv; + GFile *f = NULL; + + if (window->priv->closed_docs_stack != NULL) + { + f = priv->closed_docs_stack->data; + priv->closed_docs_stack = g_slist_remove (priv->closed_docs_stack, f); + } + + return f; +} + +static void +on_tab_removed (GeditMultiNotebook *multi, + GeditNotebook *notebook, + GeditTab *tab, + GeditWindow *window) +{ + GeditView *view; + GeditDocument *doc; + gint num_tabs; + + gedit_debug (DEBUG_WINDOW); + + num_tabs = gedit_multi_notebook_get_n_tabs (multi); + + view = gedit_tab_get_view (tab); + doc = gedit_tab_get_document (tab); + + g_signal_handlers_disconnect_by_func (tab, + G_CALLBACK (sync_name), + window); + g_signal_handlers_disconnect_by_func (tab, + G_CALLBACK (sync_state), + window); + g_signal_handlers_disconnect_by_func (tab, + G_CALLBACK (sync_can_close), + window); + g_signal_handlers_disconnect_by_func (tab, + G_CALLBACK (drop_uris_cb), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (bracket_matched_cb), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (update_cursor_position_statusbar), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (empty_search_notify_cb), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (can_undo), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (can_redo), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (selection_changed), + window); + g_signal_handlers_disconnect_by_func (doc, + G_CALLBACK (readonly_changed), + window); + g_signal_handlers_disconnect_by_func (view, + G_CALLBACK (overwrite_mode_changed), + window); + g_signal_handlers_disconnect_by_func (view, + G_CALLBACK (editable_changed), + window); + + if (tab == gedit_multi_notebook_get_active_tab (multi)) + { + if (window->priv->tab_width_id) + { + g_signal_handler_disconnect (view, window->priv->tab_width_id); + window->priv->tab_width_id = 0; + } + + if (window->priv->language_changed_id) + { + g_signal_handler_disconnect (doc, window->priv->language_changed_id); + window->priv->language_changed_id = 0; + } + + gedit_multi_notebook_set_active_tab (multi, NULL); + } + + g_return_if_fail (num_tabs >= 0); + if (num_tabs == 0) + { + set_title (window); + + gedit_statusbar_clear_overwrite ( + GEDIT_STATUSBAR (window->priv->statusbar)); + + /* hide the combos */ + gtk_widget_hide (window->priv->line_col_button); + gtk_widget_hide (window->priv->tab_width_button); + gtk_widget_hide (window->priv->language_button); + } + + if (!window->priv->dispose_has_run) + { + push_last_closed_doc (window, doc); + + if ((!window->priv->removing_tabs && + gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) > 0) || + num_tabs == 0) + { + update_actions_sensitivity (window); + } + } + + update_window_state (window); + update_can_close (window); + + g_signal_emit (G_OBJECT (window), signals[TAB_REMOVED], 0, tab); +} + +static void +on_page_reordered (GeditMultiNotebook *multi, + GeditNotebook *notebook, + GtkWidget *page, + gint page_num, + GeditWindow *window) +{ + update_actions_sensitivity (window); + + g_signal_emit (G_OBJECT (window), signals[TABS_REORDERED], 0); +} + +static GtkNotebook * +on_notebook_create_window (GeditMultiNotebook *mnb, + GtkNotebook *notebook, + GtkWidget *page, + gint x, + gint y, + GeditWindow *window) +{ + GeditWindow *new_window; + GtkWidget *new_notebook; + + new_window = clone_window (window); + + gtk_window_move (GTK_WINDOW (new_window), x, y); + gtk_widget_show (GTK_WIDGET (new_window)); + + new_notebook = _gedit_window_get_notebook (GEDIT_WINDOW (new_window)); + + return GTK_NOTEBOOK (new_notebook); +} + +static void +on_tab_close_request (GeditMultiNotebook *multi, + GeditNotebook *notebook, + GeditTab *tab, + GtkWindow *window) +{ + /* Note: we are destroying the tab before the default handler + * seems to be ok, but we need to keep an eye on this. */ + _gedit_cmd_file_close_tab (tab, GEDIT_WINDOW (window)); +} + +static void +on_show_popup_menu (GeditMultiNotebook *multi, + GdkEventButton *event, + GeditTab *tab, + GeditWindow *window) +{ + GtkWidget *menu; + + if (event == NULL) + { + return; + } + + menu = gedit_notebook_popup_menu_new (window, tab); + + g_signal_connect (menu, + "selection-done", + G_CALLBACK (gtk_widget_destroy), + NULL); + + gtk_widget_show (menu); + gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event); +} + +static void +on_notebook_changed (GeditMultiNotebook *mnb, + GParamSpec *pspec, + GeditWindow *window) +{ + update_actions_sensitivity (window); +} + +static void +on_notebook_removed (GeditMultiNotebook *mnb, + GeditNotebook *notebook, + GeditWindow *window) +{ + update_actions_sensitivity (window); +} + +static void +on_fullscreen_toggle_button_toggled (GtkToggleButton *fullscreen_toggle_button, + GeditWindow *window) +{ + update_fullscreen_revealer_state (window); +} + +static void +side_panel_size_allocate (GtkWidget *widget, + GtkAllocation *allocation, + GeditWindow *window) +{ + window->priv->side_panel_size = allocation->width; +} + +static void +bottom_panel_size_allocate (GtkWidget *widget, + GtkAllocation *allocation, + GeditWindow *window) +{ + window->priv->bottom_panel_size = allocation->height; +} + +static void +hpaned_restore_position (GtkWidget *widget, + GeditWindow *window) +{ + gint pos; + + gedit_debug_message (DEBUG_WINDOW, + "Restoring hpaned position: side panel size %d", + window->priv->side_panel_size); + + pos = MAX (100, window->priv->side_panel_size); + gtk_paned_set_position (GTK_PANED (window->priv->hpaned), pos); + + /* start monitoring the size */ + g_signal_connect (window->priv->side_panel, + "size-allocate", + G_CALLBACK (side_panel_size_allocate), + window); + + /* run this only once */ + g_signal_handlers_disconnect_by_func (widget, hpaned_restore_position, window); +} + +static void +vpaned_restore_position (GtkWidget *widget, + GeditWindow *window) +{ + gint pos; + GtkAllocation allocation; + + gedit_debug_message (DEBUG_WINDOW, + "Restoring vpaned position: bottom panel size %d", + window->priv->bottom_panel_size); + + gtk_widget_get_allocation (widget, &allocation); + pos = allocation.height - + MAX (50, window->priv->bottom_panel_size); + gtk_paned_set_position (GTK_PANED (window->priv->vpaned), pos); + + /* start monitoring the size */ + g_signal_connect (window->priv->bottom_panel, + "size-allocate", + G_CALLBACK (bottom_panel_size_allocate), + window); + + /* run this only once */ + g_signal_handlers_disconnect_by_func (widget, vpaned_restore_position, window); +} + +static void +side_panel_visibility_changed (GtkWidget *panel, + GParamSpec *pspec, + GeditWindow *window) +{ + gboolean visible; + GAction *action; + gchar *layout_desc; + + visible = gtk_widget_get_visible (panel); + + g_settings_set_boolean (window->priv->ui_settings, + GEDIT_SETTINGS_SIDE_PANEL_VISIBLE, + visible); + + /* sync the action state if the panel visibility was changed programmatically */ + action = g_action_map_lookup_action (G_ACTION_MAP (window), "side-panel"); + g_simple_action_set_state (G_SIMPLE_ACTION (action), g_variant_new_boolean (visible)); + + /* focus the right widget and set the right styles */ + if (visible) + { + gtk_widget_grab_focus (window->priv->side_panel); + } + else + { + gtk_widget_grab_focus (GTK_WIDGET (window->priv->multi_notebook)); + } + + g_object_get (gtk_settings_get_default (), + "gtk-decoration-layout", &layout_desc, + NULL); + if (visible) + { + gchar **tokens; + + tokens = g_strsplit (layout_desc, ":", 2); + if (tokens) + { + gchar *layout_headerbar; + + layout_headerbar = g_strdup_printf ("%c%s", ':', tokens[1]); + gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (window->priv->headerbar), layout_headerbar); + gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (window->priv->side_headerbar), tokens[0]); + + g_free (layout_headerbar); + g_strfreev (tokens); + } + } + else + { + gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (window->priv->headerbar), layout_desc); + gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (window->priv->side_headerbar), NULL); + } + + g_free (layout_desc); +} + +static void +on_side_panel_stack_children_number_changed (GtkStack *stack, + GtkWidget *widget, + GeditWindow *window) +{ + GeditWindowPrivate *priv = window->priv; + GList *children; + + children = gtk_container_get_children (GTK_CONTAINER (priv->side_panel)); + + if (children != NULL && children->next != NULL) + { + gtk_widget_show (priv->side_stack_switcher); + +#ifndef OS_OSX + gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->side_headerbar), priv->side_stack_switcher); +#endif + } + else + { + /* side_stack_switcher can get NULL in dispose, before stack children + are being removed */ + if (priv->side_stack_switcher != NULL) + { + gtk_widget_hide (priv->side_stack_switcher); + } + +#ifndef OS_OSX + gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->side_headerbar), NULL); +#endif + } + + g_list_free (children); +} + +static void +setup_side_panel (GeditWindow *window) +{ + GeditWindowPrivate *priv = window->priv; + GtkWidget *documents_panel; + + gedit_debug (DEBUG_WINDOW); + + g_signal_connect_after (priv->side_panel, + "notify::visible", + G_CALLBACK (side_panel_visibility_changed), + window); + +#ifdef OS_OSX + priv->side_stack_switcher = priv->side_panel_inline_stack_switcher; +#else + priv->side_stack_switcher = gedit_menu_stack_switcher_new (); +#endif + + gtk_button_set_relief (GTK_BUTTON (priv->side_stack_switcher), GTK_RELIEF_NONE); + g_object_ref_sink (priv->side_stack_switcher); + + gedit_utils_set_atk_name_description (priv->side_stack_switcher, _("Change side panel page"), NULL); + + gedit_menu_stack_switcher_set_stack (GEDIT_MENU_STACK_SWITCHER (priv->side_stack_switcher), + GTK_STACK (priv->side_panel)); + + g_signal_connect (priv->side_panel, + "add", + G_CALLBACK (on_side_panel_stack_children_number_changed), + window); + + g_signal_connect (priv->side_panel, + "remove", + G_CALLBACK (on_side_panel_stack_children_number_changed), + window); + + documents_panel = gedit_documents_panel_new (window); + gtk_widget_show_all (documents_panel); + gtk_stack_add_titled (GTK_STACK (priv->side_panel), + documents_panel, + "GeditWindowDocumentsPanel", + _("Documents")); +} + +static void +bottom_panel_visibility_changed (GtkWidget *panel_box, + GParamSpec *pspec, + GeditWindow *window) +{ + gboolean visible; + GAction *action; + + visible = gtk_widget_get_visible (panel_box); + + g_settings_set_boolean (window->priv->ui_settings, + GEDIT_SETTINGS_BOTTOM_PANEL_VISIBLE, + visible); + + /* sync the action state if the panel visibility was changed programmatically */ + action = g_action_map_lookup_action (G_ACTION_MAP (window), "bottom-panel"); + g_simple_action_set_state (G_SIMPLE_ACTION (action), g_variant_new_boolean (visible)); + + /* focus the right widget */ + if (visible) + { + gtk_widget_grab_focus (window->priv->side_panel); + } + else + { + gtk_widget_grab_focus (GTK_WIDGET (window->priv->multi_notebook)); + } +} + +static void +bottom_panel_item_removed (GtkStack *panel, + GtkWidget *item, + GeditWindow *window) +{ + gtk_widget_set_visible (window->priv->bottom_panel, + gtk_stack_get_visible_child (panel) != NULL); + + update_actions_sensitivity (window); +} + +static void +bottom_panel_item_added (GtkStack *panel, + GtkWidget *item, + GeditWindow *window) +{ + GList *children; + int n_children; + + children = gtk_container_get_children (GTK_CONTAINER (panel)); + n_children = g_list_length (children); + g_list_free (children); + + /* First item added. */ + if (n_children == 1) + { + gboolean show; + + show = g_settings_get_boolean (window->priv->ui_settings, + "bottom-panel-visible"); + if (show) + { + gtk_widget_show (window->priv->bottom_panel); + } + + update_actions_sensitivity (window); + } +} + +static void +setup_bottom_panel (GeditWindow *window) +{ + gedit_debug (DEBUG_WINDOW); + + g_signal_connect_after (window->priv->bottom_panel, + "notify::visible", + G_CALLBACK (bottom_panel_visibility_changed), + window); +} + +static void +init_panels_visibility (GeditWindow *window) +{ + gchar *panel_page; + GtkWidget *panel_child; + gboolean side_panel_visible; + gboolean bottom_panel_visible; + + gedit_debug (DEBUG_WINDOW); + + /* side panel */ + panel_page = g_settings_get_string (window->priv->window_settings, + GEDIT_SETTINGS_SIDE_PANEL_ACTIVE_PAGE); + panel_child = gtk_stack_get_child_by_name (GTK_STACK (window->priv->side_panel), + panel_page); + if (panel_child != NULL) + { + gtk_stack_set_visible_child (GTK_STACK (window->priv->side_panel), + panel_child); + } + + g_free (panel_page); + + side_panel_visible = g_settings_get_boolean (window->priv->ui_settings, + GEDIT_SETTINGS_SIDE_PANEL_VISIBLE); + bottom_panel_visible = g_settings_get_boolean (window->priv->ui_settings, + GEDIT_SETTINGS_BOTTOM_PANEL_VISIBLE); + + if (side_panel_visible) + { + gtk_widget_show (window->priv->side_panel); + } + + /* bottom pane, it can be empty */ + if (gtk_stack_get_visible_child (GTK_STACK (window->priv->bottom_panel)) != NULL) + { + panel_page = g_settings_get_string (window->priv->window_settings, + GEDIT_SETTINGS_BOTTOM_PANEL_ACTIVE_PAGE); + panel_child = gtk_stack_get_child_by_name (GTK_STACK (window->priv->side_panel), + panel_page); + if (panel_child) + { + gtk_stack_set_visible_child (GTK_STACK (window->priv->bottom_panel), + panel_child); + } + + if (bottom_panel_visible) + { + gtk_widget_show (window->priv->bottom_panel); + } + + g_free (panel_page); + } + + /* start track sensitivity after the initial state is set */ + window->priv->bottom_panel_item_removed_handler_id = + g_signal_connect (window->priv->bottom_panel, + "remove", + G_CALLBACK (bottom_panel_item_removed), + window); + + g_signal_connect_after (window->priv->bottom_panel, + "add", + G_CALLBACK (bottom_panel_item_added), + window); +} + +static void +clipboard_owner_change (GtkClipboard *clipboard, + GdkEventOwnerChange *event, + GeditWindow *window) +{ + set_paste_sensitivity_according_to_clipboard (window, + clipboard); +} + +static void +window_realized (GtkWidget *window, + gpointer *data) +{ + GtkClipboard *clipboard; + + clipboard = gtk_widget_get_clipboard (window, + GDK_SELECTION_CLIPBOARD); + + g_signal_connect (clipboard, + "owner_change", + G_CALLBACK (clipboard_owner_change), + window); +} + +static void +window_unrealized (GtkWidget *window, + gpointer *data) +{ + GtkClipboard *clipboard; + + clipboard = gtk_widget_get_clipboard (window, + GDK_SELECTION_CLIPBOARD); + + g_signal_handlers_disconnect_by_func (clipboard, + G_CALLBACK (clipboard_owner_change), + window); +} + +static void +extension_added (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditWindow *window) +{ + gedit_window_activatable_activate (GEDIT_WINDOW_ACTIVATABLE (exten)); +} + +static void +extension_removed (PeasExtensionSet *extensions, + PeasPluginInfo *info, + PeasExtension *exten, + GeditWindow *window) +{ + gedit_window_activatable_deactivate (GEDIT_WINDOW_ACTIVATABLE (exten)); +} + +static GActionEntry win_entries[] = { + { "new-tab", _gedit_cmd_file_new }, + { "open", _gedit_cmd_file_open }, + { "revert", _gedit_cmd_file_revert }, + { "reopen-closed-tab", _gedit_cmd_file_reopen_closed_tab }, + { "save", _gedit_cmd_file_save }, + { "save-as", _gedit_cmd_file_save_as }, + { "save-all", _gedit_cmd_file_save_all }, + { "close", _gedit_cmd_file_close }, + { "close-all", _gedit_cmd_file_close_all }, + { "print", _gedit_cmd_file_print }, + { "focus-active-view", NULL, NULL, "false", _gedit_cmd_view_focus_active }, + { "side-panel", NULL, NULL, "false", _gedit_cmd_view_toggle_side_panel }, + { "bottom-panel", NULL, NULL, "false", _gedit_cmd_view_toggle_bottom_panel }, + { "fullscreen", NULL, NULL, "false", _gedit_cmd_view_toggle_fullscreen_mode }, + { "leave-fullscreen", _gedit_cmd_view_leave_fullscreen_mode }, + { "find", _gedit_cmd_search_find }, + { "find-next", _gedit_cmd_search_find_next }, + { "find-prev", _gedit_cmd_search_find_prev }, + { "replace", _gedit_cmd_search_replace }, + { "clear-highlight", _gedit_cmd_search_clear_highlight }, + { "goto-line", _gedit_cmd_search_goto_line }, + { "new-tab-group", _gedit_cmd_documents_new_tab_group }, + { "previous-tab-group", _gedit_cmd_documents_previous_tab_group }, + { "next-tab-group", _gedit_cmd_documents_next_tab_group }, + { "previous-document", _gedit_cmd_documents_previous_document }, + { "next-document", _gedit_cmd_documents_next_document }, + { "move-to-new-window", _gedit_cmd_documents_move_to_new_window }, + { "undo", _gedit_cmd_edit_undo }, + { "redo", _gedit_cmd_edit_redo }, + { "cut", _gedit_cmd_edit_cut }, + { "copy", _gedit_cmd_edit_copy }, + { "paste", _gedit_cmd_edit_paste }, + { "delete", _gedit_cmd_edit_delete }, + { "select-all", _gedit_cmd_edit_select_all }, + { "highlight-mode", _gedit_cmd_view_highlight_mode }, + { "overwrite-mode", NULL, NULL, "false", _gedit_cmd_edit_overwrite_mode } +}; + +static void +sync_fullscreen_actions (GeditWindow *window, + gboolean fullscreen) +{ + GtkMenuButton *button; + GPropertyAction *action; + + button = fullscreen ? window->priv->fullscreen_gear_button : window->priv->gear_button; + g_action_map_remove_action (G_ACTION_MAP (window), "hamburger-menu"); + action = g_property_action_new ("hamburger-menu", button, "active"); + g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (action)); + g_object_unref (action); +} + +static void +init_amtk_application_window (GeditWindow *gedit_window) +{ + AmtkApplicationWindow *amtk_window; + + amtk_window = amtk_application_window_get_from_gtk_application_window (GTK_APPLICATION_WINDOW (gedit_window)); + amtk_application_window_set_statusbar (amtk_window, GTK_STATUSBAR (gedit_window->priv->statusbar)); +} + +static GtkWidget * +create_open_buttons (GeditWindow *window, + GtkMenuButton **open_recent_button) +{ + GtkWidget *hbox; + GtkStyleContext *style_context; + GtkWidget *open_dialog_button; + GtkWidget *my_open_recent_button; + AmtkApplicationWindow *amtk_window; + GtkWidget *recent_menu; + + /* It currently needs to be a GtkBox, not a GtkGrid, because GtkGrid and + * GTK_STYLE_CLASS_LINKED doesn't work as expected in a RTL locale. + * Probably a GtkGrid bug. + */ + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + style_context = gtk_widget_get_style_context (hbox); + gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_LINKED); + + open_dialog_button = gtk_button_new_with_mnemonic (_("_Open")); + gtk_widget_set_tooltip_text (open_dialog_button, _("Open a file")); + gtk_actionable_set_action_name (GTK_ACTIONABLE (open_dialog_button), "win.open"); + + my_open_recent_button = gtk_menu_button_new (); + gtk_widget_set_tooltip_text (my_open_recent_button, _("Open a recently used file")); + + amtk_window = amtk_application_window_get_from_gtk_application_window (GTK_APPLICATION_WINDOW (window)); + recent_menu = amtk_application_window_create_open_recent_menu (amtk_window); + gtk_menu_button_set_popup (GTK_MENU_BUTTON (my_open_recent_button), recent_menu); + + gtk_container_add (GTK_CONTAINER (hbox), open_dialog_button); + gtk_container_add (GTK_CONTAINER (hbox), my_open_recent_button); + gtk_widget_show_all (hbox); + + if (open_recent_button != NULL) + { + *open_recent_button = GTK_MENU_BUTTON (my_open_recent_button); + } + + return hbox; +} + +static void +init_open_buttons (GeditWindow *window) +{ + gtk_container_add_with_properties (GTK_CONTAINER (window->priv->headerbar), + create_open_buttons (window, NULL), + "position", 0, /* The first on the left. */ + NULL); + + gtk_container_add_with_properties (GTK_CONTAINER (window->priv->fullscreen_headerbar), + create_open_buttons (window, &(window->priv->fullscreen_open_recent_button)), + "position", 0, /* The first on the left. */ + NULL); + + g_signal_connect (GTK_TOGGLE_BUTTON (window->priv->fullscreen_open_recent_button), + "toggled", + G_CALLBACK (on_fullscreen_toggle_button_toggled), + window); +} + +static void +gedit_window_init (GeditWindow *window) +{ + GtkTargetList *tl; + GMenuModel *hamburger_menu; + + gedit_debug (DEBUG_WINDOW); + + window->priv = gedit_window_get_instance_private (window); + + window->priv->removing_tabs = FALSE; + window->priv->state = GEDIT_WINDOW_STATE_NORMAL; + window->priv->inhibition_cookie = 0; + window->priv->dispose_has_run = FALSE; + window->priv->direct_save_uri = NULL; + window->priv->closed_docs_stack = NULL; + window->priv->editor_settings = g_settings_new ("org.gnome.gedit.preferences.editor"); + window->priv->ui_settings = g_settings_new ("org.gnome.gedit.preferences.ui"); + + /* window settings are applied only once the window is closed. We do not + want to keep writing to disk when the window is dragged around */ + window->priv->window_settings = g_settings_new ("org.gnome.gedit.state.window"); + g_settings_delay (window->priv->window_settings); + + window->priv->message_bus = gedit_message_bus_new (); + + gtk_widget_init_template (GTK_WIDGET (window)); + init_amtk_application_window (window); + init_open_buttons (window); + + g_action_map_add_action_entries (G_ACTION_MAP (window), + win_entries, + G_N_ELEMENTS (win_entries), + window); + + window->priv->window_group = gtk_window_group_new (); + gtk_window_group_add_window (window->priv->window_group, GTK_WINDOW (window)); + + setup_fullscreen_eventbox (window); + sync_fullscreen_actions (window, FALSE); + + hamburger_menu = _gedit_app_get_hamburger_menu (GEDIT_APP (g_application_get_default ())); + if (hamburger_menu) + { + gtk_menu_button_set_menu_model (window->priv->gear_button, hamburger_menu); + gtk_menu_button_set_menu_model (window->priv->fullscreen_gear_button, hamburger_menu); + } + else + { + gtk_widget_hide (GTK_WIDGET (window->priv->gear_button)); + gtk_widget_hide (GTK_WIDGET (window->priv->fullscreen_gear_button)); + gtk_widget_set_no_show_all (GTK_WIDGET (window->priv->gear_button), TRUE); + gtk_widget_set_no_show_all (GTK_WIDGET (window->priv->fullscreen_gear_button), TRUE); + } + + g_signal_connect (GTK_TOGGLE_BUTTON (window->priv->fullscreen_gear_button), + "toggled", + G_CALLBACK (on_fullscreen_toggle_button_toggled), + window); + + /* Setup status bar */ + setup_statusbar (window); + + /* Setup main area */ + g_signal_connect (window->priv->multi_notebook, + "notebook-removed", + G_CALLBACK (on_notebook_removed), + window); + g_signal_connect (window->priv->multi_notebook, + "notify::active-notebook", + G_CALLBACK (on_notebook_changed), + window); + + g_signal_connect (window->priv->multi_notebook, + "tab-added", + G_CALLBACK (on_tab_added), + window); + + g_signal_connect (window->priv->multi_notebook, + "tab-removed", + G_CALLBACK (on_tab_removed), + window); + + g_signal_connect (window->priv->multi_notebook, + "switch-tab", + G_CALLBACK (tab_switched), + window); + + g_signal_connect (window->priv->multi_notebook, + "tab-close-request", + G_CALLBACK (on_tab_close_request), + window); + + g_signal_connect (window->priv->multi_notebook, + "page-reordered", + G_CALLBACK (on_page_reordered), + window); + + g_signal_connect (window->priv->multi_notebook, + "create-window", + G_CALLBACK (on_notebook_create_window), + window); + + g_signal_connect (window->priv->multi_notebook, + "show-popup-menu", + G_CALLBACK (on_show_popup_menu), + window); + + /* side and bottom panels */ + setup_side_panel (window); + setup_bottom_panel (window); + + /* panels' state must be restored after panels have been mapped, + * since the bottom panel position depends on the size of the vpaned. */ + window->priv->side_panel_size = g_settings_get_int (window->priv->window_settings, + GEDIT_SETTINGS_SIDE_PANEL_SIZE); + window->priv->bottom_panel_size = g_settings_get_int (window->priv->window_settings, + GEDIT_SETTINGS_BOTTOM_PANEL_SIZE); + + g_signal_connect_after (window->priv->hpaned, + "map", + G_CALLBACK (hpaned_restore_position), + window); + g_signal_connect_after (window->priv->vpaned, + "map", + G_CALLBACK (vpaned_restore_position), + window); + + /* Drag and drop support */ + gtk_drag_dest_set (GTK_WIDGET (window), + GTK_DEST_DEFAULT_MOTION | + GTK_DEST_DEFAULT_HIGHLIGHT | + GTK_DEST_DEFAULT_DROP, + drop_types, + G_N_ELEMENTS (drop_types), + GDK_ACTION_COPY); + + /* Add uri targets */ + tl = gtk_drag_dest_get_target_list (GTK_WIDGET (window)); + + if (tl == NULL) + { + tl = gtk_target_list_new (drop_types, G_N_ELEMENTS (drop_types)); + gtk_drag_dest_set_target_list (GTK_WIDGET (window), tl); + gtk_target_list_unref (tl); + } + + gtk_target_list_add_uri_targets (tl, TARGET_URI_LIST); + + /* connect instead of override, so that we can + * share the cb code with the view */ + g_signal_connect (window, + "drag_data_received", + G_CALLBACK (drag_data_received_cb), + NULL); + g_signal_connect (window, + "drag_drop", + G_CALLBACK (drag_drop_cb), + NULL); + + /* we can get the clipboard only after the widget + * is realized */ + g_signal_connect (window, + "realize", + G_CALLBACK (window_realized), + NULL); + g_signal_connect (window, + "unrealize", + G_CALLBACK (window_unrealized), + NULL); + + gedit_debug_message (DEBUG_WINDOW, "Update plugins ui"); + + window->priv->extensions = peas_extension_set_new (PEAS_ENGINE (gedit_plugins_engine_get_default ()), + GEDIT_TYPE_WINDOW_ACTIVATABLE, + "window", window, + NULL); + g_signal_connect (window->priv->extensions, + "extension-added", + G_CALLBACK (extension_added), + window); + g_signal_connect (window->priv->extensions, + "extension-removed", + G_CALLBACK (extension_removed), + window); + peas_extension_set_foreach (window->priv->extensions, + (PeasExtensionSetForeachFunc) extension_added, + window); + + /* set visibility of panels. + * This needs to be done after plugins activatation */ + init_panels_visibility (window); + + update_actions_sensitivity (window); + + gedit_debug_message (DEBUG_WINDOW, "END"); +} + +/** + * gedit_window_get_active_view: + * @window: a #GeditWindow + * + * Gets the active #GeditView. + * + * Returns: (transfer none): the active #GeditView + */ +GeditView * +gedit_window_get_active_view (GeditWindow *window) +{ + GeditTab *tab; + GeditView *view; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + tab = gedit_window_get_active_tab (window); + + if (tab == NULL) + return NULL; + + view = gedit_tab_get_view (tab); + + return view; +} + +/** + * gedit_window_get_active_document: + * @window: a #GeditWindow + * + * Gets the active #GeditDocument. + * + * Returns: (transfer none): the active #GeditDocument + */ +GeditDocument * +gedit_window_get_active_document (GeditWindow *window) +{ + GeditView *view; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + view = gedit_window_get_active_view (window); + if (view == NULL) + return NULL; + + return GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view))); +} + +GtkWidget * +_gedit_window_get_multi_notebook (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return GTK_WIDGET (window->priv->multi_notebook); +} + +GtkWidget * +_gedit_window_get_notebook (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return GTK_WIDGET (gedit_multi_notebook_get_active_notebook (window->priv->multi_notebook)); +} + +static GeditTab * +process_create_tab (GeditWindow *window, + GtkWidget *notebook, + GeditTab *tab, + gboolean jump_to) +{ + if (tab == NULL) + { + return NULL; + } + + gedit_debug (DEBUG_WINDOW); + + gtk_widget_show (GTK_WIDGET (tab)); + gedit_notebook_add_tab (GEDIT_NOTEBOOK (notebook), + tab, + -1, + jump_to); + + if (!gtk_widget_get_visible (GTK_WIDGET (window))) + { + gtk_window_present (GTK_WINDOW (window)); + } + + return tab; +} + +/** + * gedit_window_create_tab: + * @window: a #GeditWindow + * @jump_to: %TRUE to set the new #GeditTab as active + * + * Creates a new #GeditTab and adds the new tab to the #GtkNotebook. + * In case @jump_to is %TRUE the #GtkNotebook switches to that new #GeditTab. + * + * Returns: (transfer none): a new #GeditTab + */ +GeditTab * +gedit_window_create_tab (GeditWindow *window, + gboolean jump_to) +{ + GtkWidget *notebook; + GeditTab *tab; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + gedit_debug (DEBUG_WINDOW); + + notebook = _gedit_window_get_notebook (window); + tab = _gedit_tab_new (); + gtk_widget_show (GTK_WIDGET (tab)); + + return process_create_tab (window, notebook, tab, jump_to); +} + +/** + * gedit_window_create_tab_from_location: + * @window: a #GeditWindow + * @location: the location of the document + * @encoding: (allow-none): a #GtkSourceEncoding, or %NULL + * @line_pos: the line position to visualize + * @column_pos: the column position to visualize + * @create: %TRUE to create a new document in case @uri does exist + * @jump_to: %TRUE to set the new #GeditTab as active + * + * Creates a new #GeditTab loading the document specified by @uri. + * In case @jump_to is %TRUE the #GtkNotebook swithes to that new #GeditTab. + * Whether @create is %TRUE, creates a new empty document if location does + * not refer to an existing file + * + * Returns: (transfer none): a new #GeditTab + */ +GeditTab * +gedit_window_create_tab_from_location (GeditWindow *window, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean create, + gboolean jump_to) +{ + GtkWidget *notebook; + GeditTab *tab; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + g_return_val_if_fail (G_IS_FILE (location), NULL); + + gedit_debug (DEBUG_WINDOW); + + tab = _gedit_tab_new (); + + _gedit_tab_load (tab, + location, + encoding, + line_pos, + column_pos, + create); + + notebook = _gedit_window_get_notebook (window); + + return process_create_tab (window, notebook, tab, jump_to); +} + +/** + * gedit_window_create_tab_from_stream: + * @window: a #GeditWindow + * @stream: a #GInputStream + * @encoding: (allow-none): a #GtkSourceEncoding, or %NULL + * @line_pos: the line position to visualize + * @column_pos: the column position to visualize + * @jump_to: %TRUE to set the new #GeditTab as active + * + * Returns: (transfer none): a new #GeditTab + */ +GeditTab * +gedit_window_create_tab_from_stream (GeditWindow *window, + GInputStream *stream, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean jump_to) +{ + GtkWidget *notebook; + GeditTab *tab; + + gedit_debug (DEBUG_WINDOW); + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + g_return_val_if_fail (G_IS_INPUT_STREAM (stream), NULL); + + tab = _gedit_tab_new (); + + _gedit_tab_load_stream (tab, + stream, + encoding, + line_pos, + column_pos); + + notebook = _gedit_window_get_notebook (window); + + return process_create_tab (window, notebook, tab, jump_to); +} + +/** + * gedit_window_get_active_tab: + * @window: a GeditWindow + * + * Gets the active #GeditTab in the @window. + * + * Returns: (transfer none): the active #GeditTab in the @window. + */ +GeditTab * +gedit_window_get_active_tab (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return (window->priv->multi_notebook == NULL) ? NULL : + gedit_multi_notebook_get_active_tab (window->priv->multi_notebook); +} + +static void +add_document (GeditTab *tab, + GList **res) +{ + GeditDocument *doc; + + doc = gedit_tab_get_document (tab); + + *res = g_list_prepend (*res, doc); +} + +/** + * gedit_window_get_documents: + * @window: a #GeditWindow + * + * Gets a newly allocated list with all the documents in the window. + * This list must be freed. + * + * Returns: (element-type Gedit.Document) (transfer container): a newly + * allocated list with all the documents in the window + */ +GList * +gedit_window_get_documents (GeditWindow *window) +{ + GList *res = NULL; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + gedit_multi_notebook_foreach_tab (window->priv->multi_notebook, + (GtkCallback)add_document, + &res); + + res = g_list_reverse (res); + + return res; +} + +static void +add_view (GeditTab *tab, + GList **res) +{ + GeditView *view; + + view = gedit_tab_get_view (tab); + + *res = g_list_prepend (*res, view); +} + +/** + * gedit_window_get_views: + * @window: a #GeditWindow + * + * Gets a list with all the views in the window. This list must be freed. + * + * Returns: (element-type Gedit.View) (transfer container): a newly allocated + * list with all the views in the window + */ +GList * +gedit_window_get_views (GeditWindow *window) +{ + GList *res = NULL; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + gedit_multi_notebook_foreach_tab (window->priv->multi_notebook, + (GtkCallback)add_view, + &res); + + res = g_list_reverse (res); + + return res; +} + +/** + * gedit_window_close_tab: + * @window: a #GeditWindow + * @tab: the #GeditTab to close + * + * Closes the @tab. + */ +void +gedit_window_close_tab (GeditWindow *window, + GeditTab *tab) +{ + GList *tabs = NULL; + + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (GEDIT_IS_TAB (tab)); + g_return_if_fail ((gedit_tab_get_state (tab) != GEDIT_TAB_STATE_SAVING) && + (gedit_tab_get_state (tab) != GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW)); + + tabs = g_list_append (tabs, tab); + gedit_multi_notebook_close_tabs (window->priv->multi_notebook, tabs); + g_list_free (tabs); +} + +/** + * gedit_window_close_all_tabs: + * @window: a #GeditWindow + * + * Closes all opened tabs. + */ +void +gedit_window_close_all_tabs (GeditWindow *window) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (!(window->priv->state & GEDIT_WINDOW_STATE_SAVING)); + + window->priv->removing_tabs = TRUE; + + gedit_multi_notebook_close_all_tabs (window->priv->multi_notebook); + + window->priv->removing_tabs = FALSE; +} + +/** + * gedit_window_close_tabs: + * @window: a #GeditWindow + * @tabs: (element-type Gedit.Tab): a list of #GeditTab + * + * Closes all tabs specified by @tabs. + */ +void +gedit_window_close_tabs (GeditWindow *window, + const GList *tabs) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (!(window->priv->state & GEDIT_WINDOW_STATE_SAVING)); + + window->priv->removing_tabs = TRUE; + + gedit_multi_notebook_close_tabs (window->priv->multi_notebook, tabs); + + window->priv->removing_tabs = FALSE; +} + +GeditWindow * +_gedit_window_move_tab_to_new_window (GeditWindow *window, + GeditTab *tab) +{ + GeditWindow *new_window; + GeditNotebook *old_notebook; + GeditNotebook *new_notebook; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL); + g_return_val_if_fail (gedit_multi_notebook_get_n_notebooks ( + window->priv->multi_notebook) > 1 || + gedit_multi_notebook_get_n_tabs ( + window->priv->multi_notebook) > 1, + NULL); + + new_window = clone_window (window); + + old_notebook = GEDIT_NOTEBOOK (gtk_widget_get_parent (GTK_WIDGET (tab))); + new_notebook = gedit_multi_notebook_get_active_notebook (new_window->priv->multi_notebook); + + gedit_notebook_move_tab (old_notebook, + new_notebook, + tab, + -1); + + gtk_widget_show (GTK_WIDGET (new_window)); + + return new_window; +} + +void +_gedit_window_move_tab_to_new_tab_group (GeditWindow *window, + GeditTab *tab) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail (GEDIT_IS_TAB (tab)); + + gedit_multi_notebook_add_new_notebook_with_tab (window->priv->multi_notebook, + tab); +} + +/** + * gedit_window_set_active_tab: + * @window: a #GeditWindow + * @tab: a #GeditTab + * + * Switches to the tab that matches with @tab. + */ +void +gedit_window_set_active_tab (GeditWindow *window, + GeditTab *tab) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + gedit_multi_notebook_set_active_tab (window->priv->multi_notebook, + tab); +} + +/** + * gedit_window_get_group: + * @window: a #GeditWindow + * + * Gets the #GtkWindowGroup in which @window resides. + * + * Returns: (transfer none): the #GtkWindowGroup + */ +GtkWindowGroup * +gedit_window_get_group (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return window->priv->window_group; +} + +gboolean +_gedit_window_is_removing_tabs (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), FALSE); + + return window->priv->removing_tabs; +} + +/** + * gedit_window_get_side_panel: + * @window: a #GeditWindow + * + * Gets the side panel of the @window. + * + * Returns: (transfer none): the side panel's #GtkStack. + */ +GtkWidget * +gedit_window_get_side_panel (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return window->priv->side_panel; +} + +/** + * gedit_window_get_bottom_panel: + * @window: a #GeditWindow + * + * Gets the bottom panel of the @window. + * + * Returns: (transfer none): the bottom panel's #GtkStack. + */ +GtkWidget * +gedit_window_get_bottom_panel (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return window->priv->bottom_panel; +} + +/** + * gedit_window_get_statusbar: + * @window: a #GeditWindow + * + * Gets the #GeditStatusbar of the @window. + * + * Returns: (transfer none): the #GeditStatusbar of the @window. + */ +GtkWidget * +gedit_window_get_statusbar (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), 0); + + return window->priv->statusbar; +} + +/** + * gedit_window_get_state: + * @window: a #GeditWindow + * + * Retrieves the state of the @window. + * + * Returns: the current #GeditWindowState of the @window. + */ +GeditWindowState +gedit_window_get_state (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), GEDIT_WINDOW_STATE_NORMAL); + + return window->priv->state; +} + +const gchar * +_gedit_window_get_file_chooser_folder_uri (GeditWindow *window, + GtkFileChooserAction action) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + g_return_val_if_fail ((action == GTK_FILE_CHOOSER_ACTION_OPEN) || + (action == GTK_FILE_CHOOSER_ACTION_SAVE), NULL); + + if (action == GTK_FILE_CHOOSER_ACTION_OPEN) + { + GeditSettings *settings; + GSettings *file_chooser_state_settings; + + settings = _gedit_settings_get_singleton (); + file_chooser_state_settings = _gedit_settings_peek_file_chooser_state_settings (settings); + + if (g_settings_get_boolean (file_chooser_state_settings, + GEDIT_SETTINGS_FILE_CHOOSER_OPEN_RECENT)) + { + return NULL; + } + } + + return window->priv->file_chooser_folder_uri; +} + +void +_gedit_window_set_file_chooser_folder_uri (GeditWindow *window, + GtkFileChooserAction action, + const gchar *folder_uri) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + g_return_if_fail ((action == GTK_FILE_CHOOSER_ACTION_OPEN) || + (action == GTK_FILE_CHOOSER_ACTION_SAVE)); + + if (action == GTK_FILE_CHOOSER_ACTION_OPEN) + { + GeditSettings *settings; + GSettings *file_chooser_state_settings; + gboolean open_recent = folder_uri == NULL; + + settings = _gedit_settings_get_singleton (); + file_chooser_state_settings = _gedit_settings_peek_file_chooser_state_settings (settings); + + g_settings_set_boolean (file_chooser_state_settings, + GEDIT_SETTINGS_FILE_CHOOSER_OPEN_RECENT, + open_recent); + + if (open_recent) + { + /* Do not set window->priv->file_chooser_folder_uri to + * NULL, to not lose the folder for the Save action. + */ + return; + } + } + + g_free (window->priv->file_chooser_folder_uri); + window->priv->file_chooser_folder_uri = g_strdup (folder_uri); +} + +static void +add_unsaved_doc (GeditTab *tab, + GList **res) +{ + if (!_gedit_tab_get_can_close (tab)) + { + GeditDocument *doc; + + doc = gedit_tab_get_document (tab); + *res = g_list_prepend (*res, doc); + } +} + +/** + * gedit_window_get_unsaved_documents: + * @window: a #GeditWindow + * + * Gets the list of documents that need to be saved before closing the window. + * + * Returns: (element-type Gedit.Document) (transfer container): a list of + * #GeditDocument that need to be saved before closing the window + */ +GList * +gedit_window_get_unsaved_documents (GeditWindow *window) +{ + GList *res = NULL; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + gedit_multi_notebook_foreach_tab (window->priv->multi_notebook, + (GtkCallback)add_unsaved_doc, + &res); + + return g_list_reverse (res); +} + +GList * +_gedit_window_get_all_tabs (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return gedit_multi_notebook_get_all_tabs (window->priv->multi_notebook); +} + +void +_gedit_window_fullscreen (GeditWindow *window) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + if (_gedit_window_is_fullscreen (window)) + return; + + sync_fullscreen_actions (window, TRUE); + + /* Go to fullscreen mode and hide bars */ + gtk_window_fullscreen (GTK_WINDOW (&window->window)); +} + +void +_gedit_window_unfullscreen (GeditWindow *window) +{ + g_return_if_fail (GEDIT_IS_WINDOW (window)); + + if (!_gedit_window_is_fullscreen (window)) + return; + + sync_fullscreen_actions (window, FALSE); + + /* Unfullscreen and show bars */ + gtk_window_unfullscreen (GTK_WINDOW (&window->window)); +} + +gboolean +_gedit_window_is_fullscreen (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), FALSE); + + return window->priv->window_state & GDK_WINDOW_STATE_FULLSCREEN; +} + +/** + * gedit_window_get_tab_from_location: + * @window: a #GeditWindow + * @location: a #GFile + * + * Gets the #GeditTab that matches with the given @location. + * + * Returns: (transfer none): the #GeditTab that matches with the given @location. + */ +GeditTab * +gedit_window_get_tab_from_location (GeditWindow *window, + GFile *location) +{ + GList *tabs; + GList *l; + GeditTab *ret = NULL; + + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + g_return_val_if_fail (G_IS_FILE (location), NULL); + + tabs = gedit_multi_notebook_get_all_tabs (window->priv->multi_notebook); + + for (l = tabs; l != NULL; l = g_list_next (l)) + { + GeditDocument *doc; + GtkSourceFile *file; + GeditTab *tab; + GFile *cur_location; + + tab = GEDIT_TAB (l->data); + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + cur_location = gtk_source_file_get_location (file); + + if (cur_location != NULL) + { + gboolean found = g_file_equal (location, cur_location); + + if (found) + { + ret = tab; + break; + } + } + } + + g_list_free (tabs); + + return ret; +} + +/** + * gedit_window_get_message_bus: + * @window: a #GeditWindow + * + * Gets the #GeditMessageBus associated with @window. The returned reference + * is owned by the window and should not be unreffed. + * + * Return value: (transfer none): the #GeditMessageBus associated with @window + */ +GeditMessageBus * +gedit_window_get_message_bus (GeditWindow *window) +{ + g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL); + + return window->priv->message_bus; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit-window.h b/gedit/gedit-window.h new file mode 100644 index 0000000..74195c1 --- /dev/null +++ b/gedit/gedit-window.h @@ -0,0 +1,178 @@ +/* + * gedit-window.h + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANWINDOWILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_WINDOW_H +#define GEDIT_WINDOW_H + +#include +#include +#include + +#include +#include + +G_BEGIN_DECLS + +typedef enum +{ + GEDIT_WINDOW_STATE_NORMAL = 0, + GEDIT_WINDOW_STATE_SAVING = 1 << 1, + GEDIT_WINDOW_STATE_PRINTING = 1 << 2, + GEDIT_WINDOW_STATE_LOADING = 1 << 3, + GEDIT_WINDOW_STATE_ERROR = 1 << 4 +} GeditWindowState; + +#define GEDIT_TYPE_WINDOW (gedit_window_get_type()) +#define GEDIT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GEDIT_TYPE_WINDOW, GeditWindow)) +#define GEDIT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GEDIT_TYPE_WINDOW, GeditWindowClass)) +#define GEDIT_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GEDIT_TYPE_WINDOW)) +#define GEDIT_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_WINDOW)) +#define GEDIT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GEDIT_TYPE_WINDOW, GeditWindowClass)) + +typedef struct _GeditWindow GeditWindow; +typedef struct _GeditWindowClass GeditWindowClass; +typedef struct _GeditWindowPrivate GeditWindowPrivate; + +struct _GeditWindow +{ + GtkApplicationWindow window; + + /*< private > */ + GeditWindowPrivate *priv; +}; + +struct _GeditWindowClass +{ + GtkApplicationWindowClass parent_class; + + /* Signals */ + void (* tab_added) (GeditWindow *window, + GeditTab *tab); + void (* tab_removed) (GeditWindow *window, + GeditTab *tab); + void (* tabs_reordered) (GeditWindow *window); + void (* active_tab_changed) (GeditWindow *window, + GeditTab *tab); + void (* active_tab_state_changed) + (GeditWindow *window); +}; + +/* Public methods */ +GType gedit_window_get_type (void) G_GNUC_CONST; + +GeditTab *gedit_window_create_tab (GeditWindow *window, + gboolean jump_to); + +GeditTab *gedit_window_create_tab_from_location (GeditWindow *window, + GFile *location, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean create, + gboolean jump_to); + +GeditTab *gedit_window_create_tab_from_stream (GeditWindow *window, + GInputStream *stream, + const GtkSourceEncoding *encoding, + gint line_pos, + gint column_pos, + gboolean jump_to); + +void gedit_window_close_tab (GeditWindow *window, + GeditTab *tab); + +void gedit_window_close_all_tabs (GeditWindow *window); + +void gedit_window_close_tabs (GeditWindow *window, + const GList *tabs); + +GeditTab *gedit_window_get_active_tab (GeditWindow *window); + +void gedit_window_set_active_tab (GeditWindow *window, + GeditTab *tab); + +/* Helper functions */ +GeditView *gedit_window_get_active_view (GeditWindow *window); +GeditDocument *gedit_window_get_active_document (GeditWindow *window); + +/* Returns a newly allocated list with all the documents in the window */ +GList *gedit_window_get_documents (GeditWindow *window); + +/* Returns a newly allocated list with all the documents that need to be + saved before closing the window */ +GList *gedit_window_get_unsaved_documents (GeditWindow *window); + +/* Returns a newly allocated list with all the views in the window */ +GList *gedit_window_get_views (GeditWindow *window); + +GtkWindowGroup *gedit_window_get_group (GeditWindow *window); + +GtkWidget *gedit_window_get_side_panel (GeditWindow *window); + +GtkWidget *gedit_window_get_bottom_panel (GeditWindow *window); + +GtkWidget *gedit_window_get_statusbar (GeditWindow *window); + +GeditWindowState gedit_window_get_state (GeditWindow *window); + +GeditTab *gedit_window_get_tab_from_location (GeditWindow *window, + GFile *location); + +/* Message bus */ +GeditMessageBus *gedit_window_get_message_bus (GeditWindow *window); + +/* + * Non exported functions + */ +GtkWidget *_gedit_window_get_multi_notebook (GeditWindow *window); +GtkWidget *_gedit_window_get_notebook (GeditWindow *window); + +GMenuModel *_gedit_window_get_hamburger_menu (GeditWindow *window); + +GeditWindow *_gedit_window_move_tab_to_new_window (GeditWindow *window, + GeditTab *tab); +void _gedit_window_move_tab_to_new_tab_group(GeditWindow *window, + GeditTab *tab); +gboolean _gedit_window_is_removing_tabs (GeditWindow *window); + +const gchar *_gedit_window_get_file_chooser_folder_uri + (GeditWindow *window, + GtkFileChooserAction action); + +void _gedit_window_set_file_chooser_folder_uri + (GeditWindow *window, + GtkFileChooserAction action, + const gchar *folder_uri); + +void _gedit_window_fullscreen (GeditWindow *window); + +void _gedit_window_unfullscreen (GeditWindow *window); + +gboolean _gedit_window_is_fullscreen (GeditWindow *window); + +GList *_gedit_window_get_all_tabs (GeditWindow *window); + +GFile *_gedit_window_pop_last_closed_doc (GeditWindow *window); + +G_END_DECLS + +#endif /* GEDIT_WINDOW_H */ + +/* ex:set ts=8 noet: */ diff --git a/gedit/gedit.c b/gedit/gedit.c new file mode 100644 index 0000000..fcffdac --- /dev/null +++ b/gedit/gedit.c @@ -0,0 +1,180 @@ +/* + * gedit.c + * This file is part of gedit + * + * Copyright (C) 2005 - Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include "gedit-app.h" + +#if defined OS_OSX +# include "gedit-app-osx.h" +#elif defined G_OS_WIN32 +# include "gedit-app-win32.h" +#endif + +#include +#include +#include + +#include "gedit-dirs.h" +#include "gedit-debug.h" +#include "gedit-factory.h" +#include "gedit-settings.h" + +#ifdef G_OS_WIN32 +#include +static GModule *libgedit_dll = NULL; + +/* This code must live in gedit.exe, not in libgedit.dll, since the whole + * point is to find and load libgedit.dll. + */ +static gboolean +gedit_w32_load_private_dll (void) +{ + gchar *dllpath; + gchar *prefix; + + prefix = g_win32_get_package_installation_directory_of_module (NULL); + + if (prefix != NULL) + { + /* Instead of g_module_open () it may be possible to do any of the + * following: + * A) Change PATH to "${dllpath}/lib/gedit;$PATH" + * B) Call SetDllDirectory ("${dllpath}/lib/gedit") + * C) Call AddDllDirectory ("${dllpath}/lib/gedit") + * But since we only have one library, and its name is known, may as well + * use gmodule. + */ + dllpath = g_build_filename (prefix, "lib", "gedit", "lib" PACKAGE_STRING ".dll", NULL); + g_free (prefix); + + libgedit_dll = g_module_open (dllpath, 0); + if (libgedit_dll == NULL) + { + g_printerr ("Failed to load '%s': %s\n", + dllpath, g_module_error ()); + } + + g_free (dllpath); + } + + if (libgedit_dll == NULL) + { + libgedit_dll = g_module_open ("lib" PACKAGE_STRING ".dll", 0); + if (libgedit_dll == NULL) + { + g_printerr ("Failed to load 'lib" PACKAGE_STRING ".dll': %s\n", + g_module_error ()); + } + } + + return (libgedit_dll != NULL); +} + +static void +gedit_w32_unload_private_dll (void) +{ + if (libgedit_dll) + { + g_module_close (libgedit_dll); + libgedit_dll = NULL; + } +} +#endif /* G_OS_WIN32 */ + +static void +setup_i18n (void) +{ + const gchar *dir; + + setlocale (LC_ALL, ""); + + dir = gedit_dirs_get_gedit_locale_dir (); + bindtextdomain (GETTEXT_PACKAGE, dir); + + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +} + +int +main (int argc, char *argv[]) +{ + GType type; + GeditFactory *factory; + GeditApp *app; + gint status; + +#if defined OS_OSX + type = GEDIT_TYPE_APP_OSX; +#elif defined G_OS_WIN32 + if (!gedit_w32_load_private_dll ()) + { + return 1; + } + + type = GEDIT_TYPE_APP_WIN32; +#else + type = GEDIT_TYPE_APP; +#endif + + /* NOTE: we should not make any calls to the gedit API before the + * private library is loaded. + */ + gedit_dirs_init (); + + setup_i18n (); + tepl_init (); + factory = gedit_factory_new (); + tepl_abstract_factory_set_singleton (TEPL_ABSTRACT_FACTORY (factory)); + + app = g_object_new (type, + "application-id", "org.gnome.gedit", + "flags", G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_HANDLES_OPEN, + NULL); + + status = g_application_run (G_APPLICATION (app), argc, argv); + + gedit_settings_unref_singleton (); + + /* Break reference cycles caused by the PeasExtensionSet + * for GeditAppActivatable which holds a ref on the GeditApp + */ + g_object_run_dispose (G_OBJECT (app)); + + g_object_add_weak_pointer (G_OBJECT (app), (gpointer *) &app); + g_object_unref (app); + + if (app != NULL) + { + gedit_debug_message (DEBUG_APP, "Leaking with %i refs", + G_OBJECT (app)->ref_count); + } + + tepl_finalize (); + gedit_dirs_shutdown (); + +#ifdef G_OS_WIN32 + gedit_w32_unload_private_dll (); +#endif + + return status; +} + +/* ex:set ts=8 noet: */ diff --git a/gedit/meson.build b/gedit/meson.build new file mode 100644 index 0000000..a960e6c --- /dev/null +++ b/gedit/meson.build @@ -0,0 +1,270 @@ +libgedit_public_headers = [ + 'gedit-app-activatable.h', + 'gedit-app.h', + 'gedit-commands.h', + 'gedit-debug.h', + 'gedit-document.h', + 'gedit-encodings-combo-box.h', + 'gedit-menu-extension.h', + 'gedit-message-bus.h', + 'gedit-message.h', + 'gedit-progress-info-bar.h', + 'gedit-statusbar.h', + 'gedit-tab.h', + 'gedit-utils.h', + 'gedit-view-activatable.h', + 'gedit-view.h', + 'gedit-window-activatable.h', + 'gedit-window.h', +] + +libgedit_public_sources = [ + 'gedit-app-activatable.c', + 'gedit-app.c', + 'gedit-commands-file.c', + 'gedit-debug.c', + 'gedit-document.c', + 'gedit-encodings-combo-box.c', + 'gedit-menu-extension.c', + 'gedit-message-bus.c', + 'gedit-message.c', + 'gedit-progress-info-bar.c', + 'gedit-statusbar.c', + 'gedit-tab.c', + 'gedit-utils.c', + 'gedit-view-activatable.c', + 'gedit-view.c', + 'gedit-window-activatable.c', + 'gedit-window.c', +] + +libgedit_private_headers = [ + 'gedit-app-osx.h', + 'gedit-app-win32.h', + 'gedit-close-confirmation-dialog.h', + 'gedit-dirs.h', + 'gedit-document-private.h', + 'gedit-documents-panel.h', + 'gedit-encoding-items.h', + 'gedit-encodings-dialog.h', + 'gedit-factory.h', + 'gedit-file-chooser-dialog-gtk.h', + 'gedit-file-chooser-dialog.h', + 'gedit-file-chooser.h', + 'gedit-file-chooser-open-dialog.h', + 'gedit-file-chooser-open.h', + 'gedit-file-chooser-open-native.h', + 'gedit-highlight-mode-dialog.h', + 'gedit-highlight-mode-selector.h', + 'gedit-history-entry.h', + 'gedit-io-error-info-bar.h', + 'gedit-menu-stack-switcher.h', + 'gedit-multi-notebook.h', + 'gedit-notebook.h', + 'gedit-notebook-popup-menu.h', + 'gedit-notebook-stack-switcher.h', + 'gedit-pango.h', + 'gedit-plugins-engine.h', + 'gedit-preferences-dialog.h', + 'gedit-print-job.h', + 'gedit-print-preview.h', + 'gedit-recent.h', + 'gedit-replace-dialog.h', + 'gedit-settings.h', + 'gedit-status-menu-button.h', + 'gedit-tab-label.h', + 'gedit-view-frame.h', + 'gedit-window-private.h', +] + +libgedit_private_sources = [ + 'gedit-close-confirmation-dialog.c', + 'gedit-commands-documents.c', + 'gedit-commands-edit.c', + 'gedit-commands-file-print.c', + 'gedit-commands-help.c', + 'gedit-commands-search.c', + 'gedit-commands-view.c', + 'gedit-dirs.c', + 'gedit-documents-panel.c', + 'gedit-encoding-items.c', + 'gedit-encodings-dialog.c', + 'gedit-factory.c', + 'gedit-file-chooser.c', + 'gedit-file-chooser-dialog.c', + 'gedit-file-chooser-dialog-gtk.c', + 'gedit-file-chooser-open.c', + 'gedit-file-chooser-open-dialog.c', + 'gedit-file-chooser-open-native.c', + 'gedit-highlight-mode-dialog.c', + 'gedit-highlight-mode-selector.c', + 'gedit-history-entry.c', + 'gedit-io-error-info-bar.c', + 'gedit-menu-stack-switcher.c', + 'gedit-multi-notebook.c', + 'gedit-notebook.c', + 'gedit-notebook-popup-menu.c', + 'gedit-notebook-stack-switcher.c', + 'gedit-pango.c', + 'gedit-plugins-engine.c', + 'gedit-preferences-dialog.c', + 'gedit-print-job.c', + 'gedit-print-preview.c', + 'gedit-recent.c', + 'gedit-replace-dialog.c', + 'gedit-settings.c', + 'gedit-status-menu-button.c', + 'gedit-tab-label.c', + 'gedit-view-frame.c', +] + +libgedit_c_args = [] +libgedit_link_args = [] + +libgedit_deps = [ + deps_basic_list, + libgd_dep, +] + +if host_machine.system() == 'darwin' + libgedit_private_sources += [ + 'gedit-app-osx.m', + ] + libgedit_c_args += [ + '-DOS_OSX=1', + ] + libgedit_link_args += [ + '-Wl,-framework', '-Wl,Foundation', + '-Wl,-framework', '-Wl,AppKit', + ] + libgedit_deps += [ + dependency('gtk-mac-integration-gtk3'), + ] +elif host_machine.system() == 'windows' + libgedit_private_sources += [ + 'gedit-app-win32.c', + ] +endif + +headers_install_dir = get_option('includedir') / 'gedit-@0@/gedit/'.format(api_version) +install_headers( + libgedit_public_headers, + install_dir: headers_install_dir, +) + +libgedit_public_enum_types = gnome.mkenums_simple( + 'gedit-enum-types', + sources: libgedit_public_headers, + install_header: true, + install_dir: headers_install_dir, +) + +libgedit_private_enum_types = gnome.mkenums_simple( + 'gedit-enum-types-private', + sources: ['gedit-notebook.h'], +) + +libgedit_private_headers += 'gedit-enum-types-private.h' + +subdir('resources') + +libgedit_shared_lib = shared_library( + 'gedit-@0@'.format(api_version), + [libgedit_public_sources, + libgedit_private_sources, + libgedit_public_enum_types, + libgedit_private_enum_types, + libgedit_gresources], + include_directories: root_include_dir, + dependencies: libgedit_deps, + c_args: libgedit_c_args, + link_args: libgedit_link_args, + install: true, + install_dir: get_option('libdir') / 'gedit', +) + +# GObject Introspection +libgedit_gir = gnome.generate_gir( + libgedit_shared_lib, + sources: [ + libgedit_public_headers, + libgedit_public_sources, + libgedit_public_enum_types, + ], + nsversion: '3.0', + namespace: 'Gedit', + symbol_prefix: 'gedit', + identifier_prefix: 'Gedit', + export_packages: 'gedit-@0@'.format(api_version), + includes: ['Gtk-3.0', 'GtkSource-4'], + link_with: libgedit_shared_lib, + install: true, + install_dir_gir: get_option('datadir') / 'gedit/gir-1.0', + install_dir_typelib: get_option('libdir') / 'gedit/girepository-1.0', +) + +python3.install_sources( + 'Gedit.py', + subdir: 'gi/overrides', +) + +# Vala API +libgedit_vapi = gnome.generate_vapi( + 'gedit', + sources: libgedit_gir[0], + packages: ['gio-2.0', 'atk', 'gdk-3.0', 'gtk+-3.0', 'gtksourceview-4'], + install: true, + install_dir: get_option('datadir') / 'vala/vapi', +) + +libgedit_dep = declare_dependency( + include_directories: root_include_dir, + link_with: libgedit_shared_lib, + sources: [libgedit_public_enum_types[1], libgedit_private_enum_types[1]], + dependencies: libgedit_deps, +) + +pkg_config.generate( + libgedit_shared_lib, + filebase: 'gedit', + name: 'gedit', + description: 'GNOME text editor', + subdirs: 'gedit-@0@'.format(api_version), + libraries: libgedit_public_deps, + install_dir: get_option('libdir') / 'pkgconfig' +) + +# FIXME: https://github.com/mesonbuild/meson/issues/1687 +custom_target( + 'org.gnome.gedit.enums.xml', + input : ['gedit-notebook.h'], + output: 'org.gnome.gedit.enums.xml', + capture: true, + command: [ + 'glib-mkenums', + '--comments', '', + '--fhead', '', + '--vhead', ' <@type@ id="org.gnome.gedit.@EnumName@">', + '--vprod', ' ', + '--vtail', ' ', + '--ftail', '', + '@INPUT@' + ], + install: true, + install_dir: get_option('datadir') / 'glib-2.0/schemas' +) + +gedit_c_args = [] +if host_machine.system() == 'darwin' + gedit_c_args += '-DOS_OSX=1' +endif + +executable( + 'gedit', + 'gedit.c', + dependencies: libgedit_dep, + c_args: gedit_c_args, + install: true, + install_rpath: get_option('prefix') / get_option('libdir') / 'gedit', + gui_app: true, +) diff --git a/gedit/resources/css/gedit-style-osx.css b/gedit/resources/css/gedit-style-osx.css new file mode 100644 index 0000000..f3c7c0b --- /dev/null +++ b/gedit/resources/css/gedit-style-osx.css @@ -0,0 +1,129 @@ +@binding-set gtk-osx-editable { + bind "c" { "copy-clipboard" () }; + bind "x" { "cut-clipboard" () }; + bind "v" { "paste-clipboard" () }; + + unbind "c"; + unbind "x"; + unbind "v"; + + bind "Left" { "move-cursor" (display-line-ends, -1, 0) }; + bind "KP_Left" { "move-cursor" (display-line-ends, -1, 0) }; + bind "Left" { "move-cursor" (display-line-ends, -1, 1) }; + bind "KP_Left" { "move-cursor" (display-line-ends, -1, 1) }; + + bind "Right" { "move-cursor" (display-line-ends, 1, 0) }; + bind "KP_Right" { "move-cursor" (display-line-ends, 1, 0) }; + bind "Right" { "move-cursor" (display-line-ends, 1, 1) }; + bind "KP_Right" { "move-cursor" (display-line-ends, 1, 1) }; + + unbind "Left"; + unbind "KP_Left"; + unbind "Left"; + unbind "KP_Left"; + unbind "Right"; + unbind "KP_Right"; + unbind "Right"; + unbind "KP_Right"; + + bind "Right" { "move-cursor" (words, 1, 0) }; + bind "KP_Right" { "move-cursor" (words, 1, 0) }; + bind "Left" { "move-cursor" (words, -1, 0) }; + bind "KP_Left" { "move-cursor" (words, -1, 0) }; + bind "Right" { "move-cursor" (words, 1, 1) }; + bind "KP_Right" { "move-cursor" (words, 1, 1) }; + bind "Left" { "move-cursor" (words, -1, 1) }; + bind "KP_Left" { "move-cursor" (words, -1, 1) }; + + bind "Delete" { "delete-from-cursor" (word-ends, 1) }; + bind "KP_Delete" { "delete-from-cursor" (word-ends, 1) }; + bind "BackSpace" { "delete-from-cursor" (word-ends, -1) }; + + bind "Down" { "move-cursor" (buffer-ends, 1, 0) }; + bind "Down" { "move-cursor" (buffer-ends, 1, 1) }; + bind "KP_Down" { "move-cursor" (buffer-ends, 1, 0) }; + bind "KP_Down" { "move-cursor" (buffer-ends, 1, 1) }; + + bind "Up" { "move-cursor" (buffer-ends, -1, 0) }; + bind "Up" { "move-cursor" (buffer-ends, -1, 1) }; + bind "KP_Up" { "move-cursor" (buffer-ends, -1, 0) }; + bind "KP_Up" { "move-cursor" (buffer-ends, -1, 1) }; + + bind "I" { "toggle-overwrite" () }; + unbind "Insert"; + + unbind "Down"; + unbind "KP_Down"; + unbind "Down"; + unbind "KP_Down"; + unbind "Up"; + unbind "KP_Up"; + unbind "Up"; + unbind "KP_Up"; +} + +@binding-set gtk-osx-text-entry { + bind "a" { + "move-cursor" (buffer-ends, -1, 0) + "move-cursor" (buffer-ends, 1, 1) + }; + + unbind "a"; +} + +@binding-set gtk-osx-text-view { + bind "a" { "select-all" (1) }; + unbind "a"; +} + +@binding-set gtk-osx-tree-view { + bind "s" { "start-interactive-search" () }; + unbind "s"; +} + +@binding-set gtk-osx-source-view { + bind "z" { "undo" () }; + unbind "z"; + + bind "z" { "redo" () }; + unbind "z"; +} + +@binding-set gedit-osx-view { + bind "d" { "delete-from-cursor" (GTK_DELETE_PARAGRAPHS, 1) }; + unbind "d"; +} + +entry { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-entry; +} + +textview { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-view; +} + +textview.sourceview { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-view, gtk-osx-source-view; +} + +textview.gedit-view { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-view, gtk-osx-source-view, gedit-osx-view; +} + +treeview { + -gtk-key-bindings: gtk-osx-tree-view; +} + +notebook { + padding: 0px; +} + +notebook tab { + padding: 4px 2px 2px 2px; +} + +.gedit-side-panel-stack-switcher { + border: 0; + border-radius: 0; + border-bottom: 1px solid @borders; +} diff --git a/gedit/resources/css/gedit-style.css b/gedit/resources/css/gedit-style.css new file mode 100644 index 0000000..eb43a82 --- /dev/null +++ b/gedit/resources/css/gedit-style.css @@ -0,0 +1,31 @@ +.gedit-side-panel-paned.pane-separator:dir(ltr), +.gedit-side-panel-paned.pane-separator:hover:dir(ltr) { + border-radius: 0; + border-width: 0 1px 0 0; +} + +.gedit-side-panel-paned.pane-separator:dir(rtl), +.gedit-side-panel-paned.pane-separator:hover:dir(rtl) { + border-radius: 0; + border-width: 0 0 0 1px; +} + +.gedit-menu-stack-switcher { + padding: 12px; +} + +statusbar frame { + border: none; + padding-left: 6px; + padding-right: 6px; +} + +statusbar button.flat { + border-radius: 0; + border-bottom: none; +} + +GeditFileBrowserWidget .small-button { + padding: 2px 4px; +} + diff --git a/gedit/resources/css/gedit.adwaita.css b/gedit/resources/css/gedit.adwaita.css new file mode 100644 index 0000000..784e72a --- /dev/null +++ b/gedit/resources/css/gedit.adwaita.css @@ -0,0 +1,61 @@ +.gedit-document-panel { + background-color: @sidebar_bg; +} + +.gedit-document-panel:backdrop { + color: #b0b2b2; +} + +.gedit-document-panel row:selected:backdrop { + background-color: #8b8e8f; +} + +.gedit-document-panel-group-row, +.gedit-document-panel-group-row:hover { + border-top: 1px solid alpha(currentColor, 0.3); +} + +.gedit-document-panel-group-row:first-child, +.gedit-document-panel-group-row:first-child:hover { + border-top: 0px; +} + +/* Try to look as the notebook tab close button */ +.gedit-document-panel row button.flat { + padding: 0; + margin-top: 8px; + margin-bottom: 8px; + min-width: 18px; + min-height: 18px; + color: alpha(currentColor,0.3); +} + +.gedit-document-panel row:hover button.flat { + color: alpha(currentColor,0.5); +} + +.gedit-document-panel row button.flat:hover { + color: @theme_fg_color; +} + +statusbar { + border-top: 1px solid @borders; +} + +.gedit-search-slider { + background-color: @theme_base_color; + padding: 6px; + border-color: @borders; + border-radius: 0 0 3px 3px; + border-width: 0 1px 1px 1px; + border-style: solid; +} + +.gedit-search-entry-occurrences-tag { + background-color: @theme_base_color; + background-image: none; + color: shade (@theme_unfocused_fg_color, 0.8); + border: 0px; + margin: 2px; + padding: 2px; +} diff --git a/gedit/resources/css/gedit.highcontrast.css b/gedit/resources/css/gedit.highcontrast.css new file mode 100644 index 0000000..feca0fc --- /dev/null +++ b/gedit/resources/css/gedit.highcontrast.css @@ -0,0 +1,5 @@ +.gedit-search-entry-occurrences-tag { + color: @theme_unfocused_fg_color; + margin: 2px; + padding: 2px; +} diff --git a/gedit/resources/gedit.gresource.xml.in b/gedit/resources/gedit.gresource.xml.in new file mode 100644 index 0000000..91fcd13 --- /dev/null +++ b/gedit/resources/gedit.gresource.xml.in @@ -0,0 +1,26 @@ + + + + gtk/menus.ui + gtk/menus-common.ui + ui/gedit-encodings-dialog.ui + ui/gedit-preferences-dialog.ui + ui/gedit-replace-dialog.ui + ui/gedit-print-preview.ui + ui/gedit-print-preferences.ui + ui/gedit-progress-info-bar.ui + ui/gedit-status-menu-button.ui + ui/gedit-tab-label.ui + ui/gedit-view-frame.ui + ui/gedit-highlight-mode-dialog.ui + ui/gedit-highlight-mode-selector.ui + ui/gedit-window.ui + ui/gedit-shortcuts.ui + ui/gedit-statusbar.ui + css/gedit-style.css + css/gedit.adwaita.css + css/gedit.highcontrast.css + + @OS_DEPENDENT_RESOURCE_FILES@ + + diff --git a/gedit/resources/gtk/menus-common.ui b/gedit/resources/gtk/menus-common.ui new file mode 100644 index 0000000..2a2fec1 --- /dev/null +++ b/gedit/resources/gtk/menus-common.ui @@ -0,0 +1,402 @@ + + + + +
+ + Move _Left + move-left + + + Move _Right + move-right + +
+
+ + Move to New _Window + move-to-new-window + + + Move to New Tab _Group + move-to-new-tab-group + +
+
+ + _Close + close + +
+
+ +
+ + Automatic Indentation + win.auto-indent + +
+
+ + 2 + win.tab-width + 2 + + + 4 + win.tab-width + 4 + + + 8 + win.tab-width + 8 + +
+
+ + Use Spaces + win.use-spaces + +
+
+ +
+ + Display line numbers + win.show-line-numbers + + + Display right margin + win.display-right-margin + + + Highlight current line + win.highlight-current-line + + + Text wrapping + win.wrap-mode + +
+
+ + +
+ + _File +
+ file-section-0 + + _New + win.new-tab + <Primary>T + +
+
+ file-section + + _Open + win.open + action-disabled + <Primary>O + + + _Open + app.open + action-disabled + + + Open _Recent +
+ + Reopen Closed _Tab + win.reopen-closed-tab + <Primary><Shift>T + +
+
+ recent-files-section +
+
+
+
+ file-section-1 + + _Save + win.save + <Primary>S + + + Save _As… + win.save-as + <Primary><Shift>S + +
+
+ app-commands-section + + _New Window + app.new-window + <Primary>N + +
+
+ file-section-2 + + _Reload + win.revert + +
+
+ file-section-3 + + _Print… + win.print + <Primary>P + +
+
+ close-section + + _Close + win.close + <Primary>W + + + _Quit + macos-menubar + app.quit + <Primary>Q + +
+
+ + _Edit +
+ edit-section + + _Undo + win.undo + <Primary>Z + + + _Redo + win.redo + <Primary><Shift>Z + +
+
+ + C_ut + win.cut + <Primary>X + + + _Copy + win.copy + <Primary>C + + + _Paste + win.paste + <Primary>V + + + _Delete + win.delete + Delete + +
+
+ edit-section-1 + + Overwrite _Mode + win.overwrite-mode + Insert + +
+
+ edit-section-2 + + Select _All + win.select-all + <Primary>A + +
+
+ + _Preferences + macos-menubar + app.preferences + +
+
+ + _View +
+ view-section + + Side _Panel + win.side-panel + F9 + + + _Bottom Panel + win.bottom-panel + action-disabled + <Primary>F9 + +
+
+ view-section-1 + + _Fullscreen + win.fullscreen + F11 + +
+
+ view-section-2 + + _Highlight Mode… + win.highlight-mode + +
+
+ + _Search +
+ search-section + + _Find… + win.find + <Primary>F + + + Find Ne_xt + win.find-next + <Primary>G + + + Find Pre_vious + win.find-prev + <Primary><Shift>G + +
+
+ search-section-1 + + Find and _Replace… + win.replace + <Primary>H + +
+
+ search-section-2 + + _Clear Highlight + win.clear-highlight + <Primary><Shift>K + +
+
+ search-section-3 + + Go to _Line… + win.goto-line + <Primary>I + +
+
+ + _Tools +
+ spell-section +
+
+ tools-section +
+
+ tools-section-1 +
+
+ preferences-section +
+
+ + _Documents +
+ documents-section + + _Save All + win.save-all + <Primary><Shift>L + + + _Close All + win.close-all + <Primary><Shift>W + +
+
+ documents-section-1 + + _New Tab Group + win.new-tab-group + <Primary><Alt>N + + + P_revious Tab Group + win.previous-tab-group + <Primary><Shift><Alt>Page_Up + + + Nex_t Tab Group + win.next-tab-group + <Primary><Shift><Alt>Page_Down + +
+
+ documents-section-2 + + _Previous Document + win.previous-document + <Primary><Alt>Page_Up + + + N_ext Document + win.next-document + <Primary><Alt>Page_Down + +
+
+ documents-section-3 + + _Move To New Window + win.move-to-new-window + +
+
+ + _Help +
+ help-section + + _Help + app.help + F1 + +
+
+ + _About Text Editor + macos-menubar + app.about + +
+
+
+
+
diff --git a/gedit/resources/gtk/menus-traditional.ui b/gedit/resources/gtk/menus-traditional.ui new file mode 100644 index 0000000..ceaee99 --- /dev/null +++ b/gedit/resources/gtk/menus-traditional.ui @@ -0,0 +1,143 @@ + + + + +
+ juntion-section + horizontal-buttons + + _Reload + win.revert + view-refresh-symbolic + + + _Print… + win.print + printer-symbolic + + + _Fullscreen + win.fullscreen + view-fullscreen-symbolic + +
+
+ app-commands-section +
+
+ file-section +
+
+ file-section-1 + + _Save As… + win.save-as + + + Save _All + win.save-all + +
+
+ edit-section +
+
+ edit-section-1 +
+
+ search-section + + _Find… + win.find + + + _Find and Replace… + win.replace + + + _Clear Highlight + win.clear-highlight + + + _Go to Line… + win.goto-line + +
+
+ + _View +
+ view-section + + Side _Panel + win.side-panel + + + _Bottom Panel + win.bottom-panel + action-disabled + +
+
+ view-section-1 +
+
+ view-section-2 + + _Highlight Mode… + win.highlight-mode + +
+
+ + _Tools +
+ spell-section +
+
+ tools-section +
+
+ tools-section-1 +
+
+
+
+ preferences-section + + _Preferences + app.preferences + +
+
+ help-section + + _Keyboard Shortcuts + app.shortcuts + + + _Help + app.help + + + _About Text Editor + app.about + +
+
+ close-section + + _Close All + win.close-all + + + _Close + win.close + + + _Quit + app.quit + +
+
+
diff --git a/gedit/resources/gtk/menus.ui b/gedit/resources/gtk/menus.ui new file mode 100644 index 0000000..10b9e94 --- /dev/null +++ b/gedit/resources/gtk/menus.ui @@ -0,0 +1,132 @@ + + + + +
+ juntion-section + horizontal-buttons + + _Reload + win.revert + view-refresh-symbolic + + + _Print… + win.print + printer-symbolic + + + _Fullscreen + win.fullscreen + view-fullscreen-symbolic + +
+
+ app-commands-section + + _New Window + app.new-window + +
+
+ file-section +
+
+ file-section-1 + + _Save As… + win.save-as + + + Save _All + win.save-all + +
+
+ edit-section +
+
+ edit-section-1 +
+
+ search-section + + _Find… + win.find + + + _Find and Replace… + win.replace + + + _Clear Highlight + win.clear-highlight + + + _Go to Line… + win.goto-line + +
+
+ + _View +
+ view-section + + Side _Panel + win.side-panel + + + _Bottom Panel + win.bottom-panel + action-disabled + +
+
+ view-section-1 +
+
+ view-section-2 + + _Highlight Mode… + win.highlight-mode + +
+
+ + _Tools +
+ spell-section +
+
+ tools-section +
+
+ tools-section-1 +
+
+
+
+ preferences-section + + _Preferences + app.preferences + +
+
+ app-section + + _Keyboard Shortcuts + app.shortcuts + + + _Help + app.help + + + _About Text Editor + app.about + +
+
+
diff --git a/gedit/resources/meson.build b/gedit/resources/meson.build new file mode 100644 index 0000000..8d2e5a5 --- /dev/null +++ b/gedit/resources/meson.build @@ -0,0 +1,21 @@ +gresource_config_data = configuration_data() + +if host_machine.system() == 'darwin' + gresource_config_data.set( + 'OS_DEPENDENT_RESOURCE_FILES', + 'gtk/menus-traditional.ui' + ) +else + gresource_config_data.set('OS_DEPENDENT_RESOURCE_FILES', '') +endif + +gresource_xml_file = configure_file( + input: 'gedit.gresource.xml.in', + output: 'gedit.gresource.xml', + configuration: gresource_config_data +) + +libgedit_gresources = gnome.compile_resources( + 'gedit-resources', + gresource_xml_file, +) diff --git a/gedit/resources/ui/gedit-encodings-dialog.ui b/gedit/resources/ui/gedit-encodings-dialog.ui new file mode 100644 index 0000000..5a14ca8 --- /dev/null +++ b/gedit/resources/ui/gedit-encodings-dialog.ui @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + liststore_available + + + + + + + + + + + + + diff --git a/gedit/resources/ui/gedit-highlight-mode-dialog.ui b/gedit/resources/ui/gedit-highlight-mode-dialog.ui new file mode 100644 index 0000000..31b8690 --- /dev/null +++ b/gedit/resources/ui/gedit-highlight-mode-dialog.ui @@ -0,0 +1,87 @@ + + + + + diff --git a/gedit/resources/ui/gedit-highlight-mode-selector.ui b/gedit/resources/ui/gedit-highlight-mode-selector.ui new file mode 100644 index 0000000..1aa5c95 --- /dev/null +++ b/gedit/resources/ui/gedit-highlight-mode-selector.ui @@ -0,0 +1,83 @@ + + + + + + + + + + + + + liststore + + + diff --git a/gedit/resources/ui/gedit-preferences-dialog.ui b/gedit/resources/ui/gedit-preferences-dialog.ui new file mode 100644 index 0000000..f1eeed4 --- /dev/null +++ b/gedit/resources/ui/gedit-preferences-dialog.ui @@ -0,0 +1,766 @@ + + + + + + + + 1 + 1000 + 80 + 1 + 10 + + + 1 + 24 + 8 + 1 + 4 + + + 1 + 100 + 8 + 1 + 10 + + diff --git a/gedit/resources/ui/gedit-print-preferences.ui b/gedit/resources/ui/gedit-print-preferences.ui new file mode 100644 index 0000000..40a4f69 --- /dev/null +++ b/gedit/resources/ui/gedit-print-preferences.ui @@ -0,0 +1,518 @@ + + + + + + 1 + 100 + 1 + 1 + 10 + + + True + False + window1 + + + True + False + 12 + 18 + + + True + False + vertical + 18 + + + True + False + vertical + 6 + + + True + False + 0 + Syntax Highlighting + + + + + + False + False + 0 + + + + + Print synta_x highlighting + False + True + True + False + 12 + True + True + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + vertical + 6 + + + True + False + 0 + Line Numbers + + + + + + False + False + 0 + + + + + True + False + 12 + vertical + 6 + + + Print line nu_mbers + False + True + True + False + True + True + + + False + False + 0 + + + + + True + False + 6 + + + True + False + 0.47999998927116394 + _Number every + True + line_numbers_spinbutton + + + False + False + 0 + + + + + True + True + adjustment1 + 1 + 1 + + + False + False + 1 + + + + + True + False + lines + + + False + False + 2 + + + + + False + False + 1 + + + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + vertical + 6 + + + True + False + 0 + Text Wrapping + + + + + + False + False + 0 + + + + + True + False + 12 + vertical + 6 + + + Enable text _wrapping + False + True + True + False + True + True + + + False + False + 0 + + + + + True + False + + + Do not _split words over two lines + False + True + True + False + True + True + + + False + False + 0 + + + + + False + True + 1 + + + + + False + True + 1 + + + + + False + False + 2 + + + + + True + False + vertical + 6 + + + True + False + 0 + Page header + + + + + + False + False + 0 + + + + + Print page _headers + False + True + True + False + 12 + True + True + + + False + True + 1 + + + + + False + True + 3 + + + + + False + True + 0 + + + + + True + False + vertical + 18 + + + True + False + vertical + 6 + + + True + False + 0 + Fonts + + + + + + False + False + 0 + + + + + True + False + 12 + vertical + 12 + + + True + False + 12 + 12 + + + True + False + 0 + _Body: + True + body_fontbutton + + + 0 + 0 + + + + + False + True + True + True + Sans 12 + + False + True + False + + + 1 + 0 + + + + + True + False + 0 + _Line numbers: + True + numbers_fontbutton + + + 0 + 1 + + + + + False + True + True + True + Sans 12 + + False + True + False + + + 1 + 1 + + + + + True + False + 0 + He_aders and footers: + True + headers_fontbutton + + + 0 + 2 + + + + + False + True + True + True + Sans 12 + + False + True + False + + + 1 + 2 + + + + + False + True + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + end + + + _Restore Default Fonts + False + True + True + False + True + + + False + False + 0 + + + + + False + True + 1 + + + + + False + True + 1 + + + + + False + True + 0 + + + + + False + False + 1 + + + + + + diff --git a/gedit/resources/ui/gedit-print-preview.ui b/gedit/resources/ui/gedit-print-preview.ui new file mode 100644 index 0000000..9745fea --- /dev/null +++ b/gedit/resources/ui/gedit-print-preview.ui @@ -0,0 +1,417 @@ + + + + + + True + go-previous-symbolic + + + True + go-next-symbolic + + + True + view-grid-symbolic + + + True + zoom-in-symbolic + + + True + zoom-out-symbolic + + + True + zoom-original-symbolic + + + True + zoom-fit-best-symbolic + + diff --git a/gedit/resources/ui/gedit-progress-info-bar.ui b/gedit/resources/ui/gedit-progress-info-bar.ui new file mode 100644 index 0000000..3f733e4 --- /dev/null +++ b/gedit/resources/ui/gedit-progress-info-bar.ui @@ -0,0 +1,88 @@ + + + + + diff --git a/gedit/resources/ui/gedit-replace-dialog.ui b/gedit/resources/ui/gedit-replace-dialog.ui new file mode 100644 index 0000000..74e4239 --- /dev/null +++ b/gedit/resources/ui/gedit-replace-dialog.ui @@ -0,0 +1,246 @@ + + + + + diff --git a/gedit/resources/ui/gedit-shortcuts.ui b/gedit/resources/ui/gedit-shortcuts.ui new file mode 100644 index 0000000..0d2f59d --- /dev/null +++ b/gedit/resources/ui/gedit-shortcuts.ui @@ -0,0 +1,487 @@ + + + + + 1 + + + 1 + shortcuts + 12 + + + 1 + Documents + + + 1 + <ctrl>T + Create a new document in a tab + + + + + 1 + <ctrl>O + Open a document + + + + + 1 + <ctrl>S + Save the document + + + + + 1 + <ctrl><shift>S + Save the document with a new filename + + + + + 1 + <ctrl><shift>L + Save all the documents + + + + + 1 + <ctrl>W + Close the document + + + + + 1 + <ctrl><shift>W + Close all the documents + + + + + 1 + <ctrl><shift>T + Reopen the most recently closed document + + + + + 1 + <ctrl><Alt>Page_Down + Switch to the next document + + + + + 1 + <ctrl><Alt>Page_Up + Switch to the previous document + + + + + 1 + <Alt>1...9 + Switch to the first — ninth document + + + + + + + 1 + Windows and Panels + + + 1 + <ctrl>N + Create a new document in a window + + + + + 1 + <ctrl><alt>N + Create a new tab group + + + + + 1 + F9 + Show side panel + + + + + 1 + <ctrl>F9 + Show bottom panel + + + + + 1 + F11 + Fullscreen on / off + + + + + 1 + <ctrl>Q + Quit the application + + + + + + + 1 + Find and Replace + + + 1 + <ctrl>F + Find + + + + + 1 + <ctrl>G + Find the next match + + + + + 1 + <ctrl><Shift>G + Find the previous match + + + + + 1 + <ctrl>H + Find and Replace + + + + + 1 + <ctrl><Shift>K + Clear highlight + + + + + + + 1 + Undo and Redo + + + 1 + <ctrl>Z + Undo previous command + + + + + 1 + <ctrl><shift>Z + Redo previous command + + + + + + + 1 + Selection + + + 1 + <ctrl>A + Select all text + + + + + 1 + <ctrl>backslash + Unselect all text + + + + + + + 1 + Copy and Paste + + + 1 + <ctrl>C + Copy selected text to clipboard + + + + + 1 + <ctrl>X + Cut selected text to clipboard + + + + + 1 + <ctrl>V + Paste text from clipboard + + + + + + + 1 + Navigation + + + 1 + <ctrl>I + Go to line + + + + + 1 + Home + Move to the beginning of the current line + + + + + 1 + End + Move to the end of the current line + + + + + 1 + <ctrl>Home + Move to the beginning of the document + + + + + 1 + <ctrl>End + Move to the end of the document + + + + + 1 + <alt><shift>Up + Move viewport up within the file + + + + + 1 + <alt><shift>Down + Move viewport down within the file + + + + + 1 + <alt><shift>End + Move viewport to end of file + + + + + 1 + <alt><shift>Home + Move viewport to beginning of file + + + + + 1 + <ctrl>percent + Move to matching bracket + + + + + 1 + <Shift><Ctrl><Alt>Page_Up + Go to previous tab group + + + + + 1 + <Shift><Ctrl><Alt>Page_Down + Go to next tab group + + + + + + + 1 + Editing + + + 1 + Insert + Toggle insert / overwrite + + + + + 1 + F7 + Toggle cursor visibility + + + + + 1 + <ctrl>D + Delete current line + + + + + 1 + <alt>Up + Move current line up + + + + + 1 + <alt>Down + Move current line down + + + + + 1 + <alt>Left + Move current word left + + + + + 1 + <alt>Right + Move current word right + + + + + 1 + <ctrl>U + Convert to uppercase + + + + + 1 + <ctrl>L + Convert to lowercase + + + + + 1 + <ctrl>asciitilde + Invert case + + + + + 1 + <ctrl><shift>a + Increment number at cursor + + + + + 1 + <ctrl><shift>x + Decrement number at cursor + + + + + + + 1 + Tools + + + 1 + <shift>F7 + Check spelling + + + + + 1 + <ctrl>P + Print the document + + + + + 1 + <ctrl>space + Show completion window + + + + + + + 1 + General + + + 1 + F1 + Show help + + + + + 1 + F10 + Open menu + + + + + 1 + <ctrl>question + Keyboard shortcuts + + + + + + + + diff --git a/gedit/resources/ui/gedit-status-menu-button.ui b/gedit/resources/ui/gedit-status-menu-button.ui new file mode 100644 index 0000000..54ae28f --- /dev/null +++ b/gedit/resources/ui/gedit-status-menu-button.ui @@ -0,0 +1,51 @@ + + + + + diff --git a/gedit/resources/ui/gedit-statusbar.ui b/gedit/resources/ui/gedit-statusbar.ui new file mode 100644 index 0000000..7e4242a --- /dev/null +++ b/gedit/resources/ui/gedit-statusbar.ui @@ -0,0 +1,102 @@ + + + + + diff --git a/gedit/resources/ui/gedit-tab-label.ui b/gedit/resources/ui/gedit-tab-label.ui new file mode 100644 index 0000000..e274cca --- /dev/null +++ b/gedit/resources/ui/gedit-tab-label.ui @@ -0,0 +1,50 @@ + + + + + + True + window-close-symbolic + + diff --git a/gedit/resources/ui/gedit-view-frame.ui b/gedit/resources/ui/gedit-view-frame.ui new file mode 100644 index 0000000..ebf70b0 --- /dev/null +++ b/gedit/resources/ui/gedit-view-frame.ui @@ -0,0 +1,88 @@ + + + + + diff --git a/gedit/resources/ui/gedit-window.ui b/gedit/resources/ui/gedit-window.ui new file mode 100644 index 0000000..0d131ad --- /dev/null +++ b/gedit/resources/ui/gedit-window.ui @@ -0,0 +1,422 @@ + + + + + + True + tab-new-symbolic + + + True + open-menu-symbolic + + + True + tab-new-symbolic + + + True + open-menu-symbolic + + + True + view-restore-symbolic + + + True + window-close-symbolic + + + horizontal + + + + + + + diff --git a/help/C/check_status.sh b/help/C/check_status.sh new file mode 100755 index 0000000..deefeb8 --- /dev/null +++ b/help/C/check_status.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +# Produce a summary of the statuses of all of the .page topics +# (Not done properly, but it's OK for a rough estimate) +# DO NOT TRANSLATE + +echo " " +echo "== NONE ==" +grep -l "status=\"none" *.page +echo " " +echo "== STUB ==" +grep -l "status=\"stub" *.page +echo " " +echo "== INCOMPLETE ==" +grep -l "status=\"incomplete" *.page +echo " " +echo "== DRAFT ==" +grep -l "status=\"draft" *.page +echo " " +echo "== REVIEW ==" +grep -l "status=\"review" *.page +echo " " +echo "== CANDIDATE ==" +grep -l "status=\"candidate" *.page +echo " " +echo "== FINAL ==" +grep -l "status=\"final" *.page +echo " " +echo "== OUTDATED ==" +grep -l "status=\"outdated" *.page + +echo " " +echo " " +echo "== SUMMARY ==" +echo "None: " `grep "status=\"none" *.page | wc -l` +echo "Stub: " `grep "status=\"stub" *.page | wc -l` +echo "Incomplete: " `grep "status=\"incomplete" *.page | wc -l` +echo "Draft: " `grep "status=\"draft" *.page | wc -l` +echo "Review: " `grep "status=\"review" *.page | wc -l` +echo "Candidate: " `grep "status=\"candidate" *.page | wc -l` +echo "Final: " `grep "status=\"final" *.page | wc -l` +echo "Outdated: " `grep "status=\"outdated" *.page | wc -l` +echo " " diff --git a/help/C/figures/gedit-html-snippet.png b/help/C/figures/gedit-html-snippet.png new file mode 100644 index 0000000..5c11e65 Binary files /dev/null and b/help/C/figures/gedit-html-snippet.png differ diff --git a/help/C/figures/gedit-icon.png b/help/C/figures/gedit-icon.png new file mode 100644 index 0000000..fb37579 Binary files /dev/null and b/help/C/figures/gedit-icon.png differ diff --git a/help/C/figures/gedit3-screenshot.png b/help/C/figures/gedit3-screenshot.png new file mode 100644 index 0000000..81d54ee Binary files /dev/null and b/help/C/figures/gedit3-screenshot.png differ diff --git a/help/C/gedit-change-color-scheme.page b/help/C/gedit-change-color-scheme.page new file mode 100644 index 0000000..0c79a17 --- /dev/null +++ b/help/C/gedit-change-color-scheme.page @@ -0,0 +1,66 @@ + + + + + Change the text and background colors in gedit. + + + + + + Jim Campbell + jcampbell@gnome.org + + + Jana Svarova + jana.svarova@gmail.com + 2015 + + + Ekaterina Gerasimova + kittykat3756@gmail.com + 2015 + + + + + + Change the color scheme + +

gedit includes several different color schemes, allowing you to + change the appearance of the main text window.

+ + + To change the color scheme: + +

Press the menu button in the top-right corner of the window and select + PreferencesFont & + Colors.

+
+ +

Choose your desired color scheme.

+
+
+ +

The new color scheme will be applied immediately.

+ +
+ Use a Custom Color Scheme + + +

You can also use color schemes that have been created by others, or + create and use your own color schemes.

+ +

Instructions on how to install custom color schemes, as well as examples + of color schemes that you can download and use, are available on the + gedit + wiki.

+
+ +
diff --git a/help/C/gedit-change-default-font.page b/help/C/gedit-change-default-font.page new file mode 100644 index 0000000..3c45f46 --- /dev/null +++ b/help/C/gedit-change-default-font.page @@ -0,0 +1,43 @@ + + + + Use a custom font for your text in gedit. + + + + + Jim Campbell + jcampbell@gnome.org + 2011 2012 2013 + + + + + + + Change the default font + +

gedit will use the system fixed-width font by default, + but you can change the default gedit font to suit your preferences. +

+ + + To change the default font in <app>gedit</app>: + +

Press the menu button in the top-right corner of the window and + select PreferencesFont & + Colors.

+

Uncheck the box next to the phrase, "Use the system fixed width + font."

+

Click on the current font name. gedit will open + a font-chooser window, allowing you to see available fonts and choose the + one that you prefer.

+

After you have chosen a new font, use the slider + under the list of fonts to set the default font size.

+

Click Select, and then close the dialog.

+
+
+ +
diff --git a/help/C/gedit-close-file.page b/help/C/gedit-close-file.page new file mode 100644 index 0000000..5470744 --- /dev/null +++ b/help/C/gedit-close-file.page @@ -0,0 +1,27 @@ + + + + + Exit from the file you are using. + + + + Jim Campbell + jcampbell@gnome.org + + + + + + Close a file + +

To close a file in gedit, click the × + that appears on the right-side of the file's tab, or press + CtrlW.

+

Any one of these actions will close a file in gedit. If your + file contains changes that have not been saved, gedit will prompt + you to save those changes before closing the file.

+ +
diff --git a/help/C/gedit-create-new-file.page b/help/C/gedit-create-new-file.page new file mode 100644 index 0000000..a2a0799 --- /dev/null +++ b/help/C/gedit-create-new-file.page @@ -0,0 +1,32 @@ + + + + + Open a new file for editing. + + + + Jim Campbell + jcampbell@gnome.org + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + Create a new file + +

The easiest way to create a new file in gedit, is to click the + Create a new document button on the left side of the header bar, + or press CtrlT.

+ +

Any one of these actions will create a new file in the gedit + window. If you have other files open in gedit, the new file that + you create will appear as a new tab to the right of those files.

+ +
diff --git a/help/C/gedit-edit-as-root.page b/help/C/gedit-edit-as-root.page new file mode 100644 index 0000000..972bbc9 --- /dev/null +++ b/help/C/gedit-edit-as-root.page @@ -0,0 +1,43 @@ + + + + + Use administrative privileges to edit a file. + + + Jim Campbell + jcampbell@gnome.org + + + + + Edit a file as the root user + + +

Editing files as the root user is potentially dangerous, and may break + your system in bad ways. Take great care when editing files as the root + user.

+
+ +

To edit files as the root user, launch gedit from the terminal + by entering:

+ sudo gedit + +

Using the sudo command, you will need to successfully enter + your password before gedit will open.

+ +

As an alternative to the sudo command, you may obtain + administrative privileges by entering:

+ su - + +

You would then launch gedit using the gedit + command.

+ + +

Once you have opened gedit with administrative privileges, + gedit will keep those privileges until you close it.

+
+ +
diff --git a/help/C/gedit-files-basic.page b/help/C/gedit-files-basic.page new file mode 100644 index 0000000..bf2e7b1 --- /dev/null +++ b/help/C/gedit-files-basic.page @@ -0,0 +1,21 @@ + + + + + Learn the basics of how to work with files in gedit. + + + Jim Campbell + jcampbell@gnome.org + + + + + File basics: Open, close, and save files + +

If you are new to gedit, these topics will help you with + creating, saving, opening and closing files.

+ +
diff --git a/help/C/gedit-full-screen.page b/help/C/gedit-full-screen.page new file mode 100644 index 0000000..d1bb0b2 --- /dev/null +++ b/help/C/gedit-full-screen.page @@ -0,0 +1,58 @@ + + + + + Set gedit to use the entire screen. + + + + + Jim Campbell + jcampbell@gnome.org + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + Use fullscreen mode + +

When working with a large document, you may find it helpful to work in + gedit's fullscreen mode. Using fullscreen mode will hide the + menu bar, tab bar and the tool bar, + presenting you with more of your text and allowing you to better focus on + your tasks.

+ +
+ Turn on fullscreen mode +

To turn on fullscreen mode, press F11. gedit's + menu, title, and tab-bars will hide, and you will only be presented with + the text of your current file.

+

If you need to perform an action from the gedit menu while + working in fullscreen mode, move your mouse pointer to the top of the + screen. The gedit menu bar will reappear, and you can select + your desired action.

+ + +

To switch between open tabs while in fullscreen mode, press either + CtrlAltPgUp or + CtrlAltPgDn.

+
+ +
+ +
+ Turn off fullscreen mode +

To turn off fullscreen mode and return to the standard gedit + window, press F11.

+

You can also move your mouse cursor to the top of the screen, and wait + for the menu bar to appear. When the menu bar + appears, select the Leave Fullscreen button.

+
+ +
diff --git a/help/C/gedit-open-files-from-sidepane.page b/help/C/gedit-open-files-from-sidepane.page new file mode 100644 index 0000000..6b9ac73 --- /dev/null +++ b/help/C/gedit-open-files-from-sidepane.page @@ -0,0 +1,69 @@ + + + + + Use gedit's side pane as a file browser. + + + Jim Campbell + jcampbell@gnome.org + + + + + View and open files from the side panel +

+ The most common way to switch between files in gedit is by using + the tabs at the top of the gedit window. In some cases, though, + particularly when you are working with a large number of open files, you + may find it easier to use the side panel. +

+ +

+ To activate the side panel, select View + Side Panel, or just press the F9 key. +

+ + +

+ You can toggle the side panel open or closed by pressing + F9 at any time. +

+
+ + +
+ Opening files from the side panel +

+ To open files from the side panel, first open the + side panel by selecting View + Side Panel (or just press + F9), and then choose File Browser from the dropdown + at the top of the panel. +

+ +

+ This will activate the File Browser mode of the + side panel. You can then use the navigation buttons at the top + of the panel to locate and open your desired files. +

+
+ +
+ Using the side panel to switch between open files +

+ Once you have several files open, you can use the side panel to switch + between open files. To list open files, choose Documents + from the dropdown at the top of the panel. +

+ +

+ Clicking on any file name in the side panel will open that file + for editing. +

+
+ +
diff --git a/help/C/gedit-open-files.page b/help/C/gedit-open-files.page new file mode 100644 index 0000000..2aeb1bc --- /dev/null +++ b/help/C/gedit-open-files.page @@ -0,0 +1,50 @@ + + + + + + + + + Open files to start working on them. + + + + + Jim Campbell + jcampbell@gnome.org + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + Open a file or set of files + +

To open a file in gedit, click the Open button, or + press CtrlO.

+

This will cause the Open dialog to appear. Use your mouse + or keyboard to select the file that you wish to open, and then click + Open. The file that you've selected will open in a new tab.

+

To close the Open dialog without opening a file, click + Cancel.

+ +

You can use the Ctrl and Shift + keys to open more than one file at a time. If you hold down the + Ctrl key while you select multiple files, clicking Open + will open each of the files that you have selected.

+ + + +

Holding down the Shift while you select multiple files will + open the first file that you select, the last file that you select, and all + of the files in between.

+ + + +
diff --git a/help/C/gedit-open-on-server.page b/help/C/gedit-open-on-server.page new file mode 100644 index 0000000..1b1055f --- /dev/null +++ b/help/C/gedit-open-on-server.page @@ -0,0 +1,52 @@ + + + + + Access files that are stored on a different computer. + + + Jim Campbell + jcampbell@gnome.org + + + + + Open a file that is located on a server + +

Prior to opening a file on a server from within gedit, you need + to know some technical information about the server. For example, you will + need to know the IP Address or URL of the server, and may need to know what + kind of server it is (e.g., HTTP, FTP, etc.).

+ +

Also, some types of servers impose restrictions on what you can do with + files stored on the server. For example, you may be able to open a file from + a server, but may need to save any changes to the file locally, on your own + computer.

+ +

With these caveats in mind, perform the following steps to open a file + from a server using gedit:

+ + +

In the header bar, click on Open.

+

Click Other Locations.

+

Enter the IP Address or URL of the appropriate + server.

+

Find and select the file that you wish to open.

+

Use the Character Encoding drop-down list to select the + appropriate character coding.

+

Click Open.

+
+ +

Valid types of URI include http:, ftp:, file:, and all of the methods + supported by GVfs.

+ + +

Files from some types of URI are opened as read-only, and any changes + you make must be saved to a different location. For example, HTTP only + allows files to be read. Files opened from FTP are read-only because not + all FTP servers may correctly work with saving remote files.

+
+ +
diff --git a/help/C/gedit-open-recent.page b/help/C/gedit-open-recent.page new file mode 100644 index 0000000..086ef77 --- /dev/null +++ b/help/C/gedit-open-recent.page @@ -0,0 +1,35 @@ + + + + + Access files that you have previously opened in gedit. + + + + + Jim Campbell + jcampbell@gnome.org + + + + + Reopen a recently-used file + +

gedit provides easy access to your ten most recently-used + files, that have been previously opened in gedit. Here is how you + can open a recently-used file:

+ +

Click the arrow button next to the Open button in the + header bar.

+

gedit will display a menu with the ten most + recently-used files.

+

Select the desired file, and it will open in a new tab.

+
+ +

When hovering with the mouse over a recently-used file from the + menu, the full path to the file is displayed in the status bar at the bottom + of the gedit window.

+ +
diff --git a/help/C/gedit-plugin-guide.page b/help/C/gedit-plugin-guide.page new file mode 100644 index 0000000..904a977 --- /dev/null +++ b/help/C/gedit-plugin-guide.page @@ -0,0 +1,48 @@ + + + + + Use plugins to customize how gedit works for you. + + + + Jim Campbell + jcampbell@gnome.org + + + + + Configure and use gedit plugins +

You can do more with gedit by using plugins. Several plugins + are installed by default, but a large number of other plugins are available + separately.

+ +

Many Linux distributions make a group of these plugins available as + a gedit-plugins package. Install the gedit-plugins + package to make these extra plugins available to gedit.

+ + + +

Install gedit-plugins

+
+
+
+ +
+ Default gedit Plugins +
+ +
+ Additional gedit Plugins +
+ + +
diff --git a/help/C/gedit-plugins-change-case.page b/help/C/gedit-plugins-change-case.page new file mode 100644 index 0000000..edc8d9d --- /dev/null +++ b/help/C/gedit-plugins-change-case.page @@ -0,0 +1,54 @@ + + + + + + + Daniel Neel + dneelyep@gmail.com + + + + Jim Campbell + jcampbell@gnome.org + + Change the case of selected text. + + +Change case + +

This plugin helps you to change the case of selected portions of text. You + can use it to change text to be all lower case, all upper case, to invert the + case, or apply title case. To enable this plugin, select + geditPreferences + PluginsChange Case.

+ +

Once the Change Case plugin is enabled, you can use it by + completing the following steps:

+ + +

Highlight the portion of text that you want to change.

+

Select geditChange Case

+
+

Choose your desired text-formatting option.

+
+ +

The updates to the text formatting will take place immediately.

+ + +

The Invert Case option will convert all lower case letters to + upper case, and will convert all upper case letters to lower case.

+

The Title Case option will convert the first letter of each + word to upper case. All other letters will be converted to lower + case.

+
+ + +

If you have not highlighted any text, the Change Case feature + will be grayed-out. You need to select a portion of text before you use the + Change Case feature.

+
+ +
diff --git a/help/C/gedit-plugins-doc-stats.page b/help/C/gedit-plugins-doc-stats.page new file mode 100644 index 0000000..6b0bd05 --- /dev/null +++ b/help/C/gedit-plugins-doc-stats.page @@ -0,0 +1,44 @@ + + + + + + + Daniel Neel + dneelyep@gmail.com + + + Jim Campbell + jcampbell@gnome.org + + View document statistics. + + +Document statistics + +

The Document Statistics plugin shows you various statistics about + your current document. To enable this plugin, select + geditPreferences + PluginsDocument Statistics.

+ +
+ Using Document Statistics + +

Once the plugin is enabled, use it by selecting Tools + Document Statistics. A window will display the + statistical information of your document, including the number of words, + lines, characters, non-space characters, and the size of your file in + bytes.

+ +

You can also use Document Statistics to show you information about + just a portion of your document. To do this, use the mouse pointer to select + the portion of text that you want to examine, and then select + ToolsDocument Statistics. + Gedit will display information for both your entire document, and + for the portion of text that you highlighted.

+
+ +
diff --git a/help/C/gedit-plugins-external-tools.page b/help/C/gedit-plugins-external-tools.page new file mode 100644 index 0000000..c30c66d --- /dev/null +++ b/help/C/gedit-plugins-external-tools.page @@ -0,0 +1,46 @@ + + + + + + + + + Daniel Neel + dneelyep@gmail.com + + + Jim Campbell + jcampbell@gnome.org + + Run scripts on your current files, and interact with other applications. + + + +External tools + +

The External Tools plugin can help simplify repetitive tasks. + Specifically, it extends gedit by helping you to run scripts on + your working files, and by allowing gedit to interact with other + programs on your computer. To enable the External Tools plugin, + select gedit + PreferencesPlugins + External Tools.

+ +
+ Configure the external tools plugin + +

Once you have enabled the plugin, you will need to configure it to suit + your needs. The configuration options are available by selecting + ToolsManage External Tools.

+ + +

This plugin is for advanced users, and requires knowledge of scripting + to be used effectively. Use this plugin with care, as mistakes with your + scripts can affect your work in unintended ways.

+
+
+ +
diff --git a/help/C/gedit-plugins-file-browser.page b/help/C/gedit-plugins-file-browser.page new file mode 100644 index 0000000..62d84f4 --- /dev/null +++ b/help/C/gedit-plugins-file-browser.page @@ -0,0 +1,49 @@ + + + + + + + + Daniel Neel + dneelyep@gmail.com + + + Jim Campbell + jcampbell@gnome.org + + Use the side panel to browse and open files. + + +File browser panel + +

Depending on how you use gedit, you may find it helpful to use + the File Browser panel plugin. This plugin embeds a + file browser in the side panel, giving you easy access to your + frequently-used files.

+ +

You can enable the side panel by selecting + geditPreferences + PluginsFile Browser Panel.

+ +
+ Opening files from the side panel +

+ To open files from the side panel, first open the + side panel by selecting View + Side Panel (or just press + F9), and then choose File Browser from the dropdown + at the top of the panel. +

+ +

+ This will activate the File Browser mode of the + side panel. You can then use the navigation buttons at the top + of the panel to locate and open your desired files. +

+
+ +
diff --git a/help/C/gedit-plugins-insert-date-time.page b/help/C/gedit-plugins-insert-date-time.page new file mode 100644 index 0000000..8acfcda --- /dev/null +++ b/help/C/gedit-plugins-insert-date-time.page @@ -0,0 +1,50 @@ + + + + + + + + Daniel Neel + dneelyep@gmail.com + + + + Jim Campbell + jcampbell@gnome.org + + Insert the current date/time at the cursor position. + + +Insert date/time + +

As this name of this plugin suggests, the Insert Date/Time + plugin allows you to insert the date and/or time at the current cursor + position.

+ + + To enable the plugin: + +

Press the menu button in the top-right corner of the window and select + Preferences + Plugins.

+
+ +

Select Insert Date/Time to enable the plugin.

+
+
+ +

To use the plugin, press the menu button in the top-right corner of the + window and select Tools + Insert Date and Time….

+ +

By default, the Insert Date/Time plugin will prompt you to + choose your preferred date/time format each time that you use the plugin. + However, you can choose your own default date and time format by pressing the + menu button in the top-right corner of the window and selecting + PreferencesPlugins + Insert Date/TimePreferences.

+ +
diff --git a/help/C/gedit-plugins-install.page b/help/C/gedit-plugins-install.page new file mode 100644 index 0000000..81f9160 --- /dev/null +++ b/help/C/gedit-plugins-install.page @@ -0,0 +1,64 @@ + + + + + + Jim Campbell + jcampbell@gnome.org + + + Daniel Neel + dneelyep@gmail.com + + How to install third-party plugins. + + + Additional gedit plugins + +

Installing third-party plugins gives you extra functionality that isn't + available in default gedit plugins, or even the extra plugins that + are part of the gedit-plugins package. An online list of + third-party plugins is + kept here. +

+ +

Installing a third-party plugin involves downloading the plugin, placing + the plugin files in the right directory, and activating the plugin.

+ + +

You can usually download a plugin from the plugin's website, but + may need to use a revision-control program like git, + bazaar, or subversion to copy a plugin's software + repository from the internet. Refer to the plugin's documentation for + information on getting the plugin.

+

Place the plugin files into the + /home/username/.local/share/gedit/plugins directory. +

+

Of course, replace the word username with your own username. +

+

After you have placed the plugin files into the correct directory, + the plugin will appear in the Preferences menu. Press the menu button in the + top-right corner of the window and select + PreferencesPlugins[Name of Plugin] + to enable the plugin.

+

Click Close.

+
+ +

After you have enabled the plugin, it should be available for you to use. +

+ + +

The .local directory is hidden by default. To view it and + other hidden files, select ViewShow Hidden + Files, or press CtrlH. +

+
+ + +

If the directory .local/share/gedit/plugins/ is not + present on your system, you will need to create it.

+
+ +
diff --git a/help/C/gedit-plugins-modelines.page b/help/C/gedit-plugins-modelines.page new file mode 100644 index 0000000..5da7b97 --- /dev/null +++ b/help/C/gedit-plugins-modelines.page @@ -0,0 +1,100 @@ + + + + + + + Daniel Neel + dneelyep@gmail.com + + + Jim Campbell + jcampbell@gnome.org + + Emacs, Kate and Vim-style modelines support for gedit. + + +Modelines + +

The Modelines plugin allows gedit to analyze the + lines of text at the start and end of a file, and then apply a set of + document preferences to the file. The Modelines plugin supports a + subset of the options used by the Emacs, Kate and + Vim text editors.

+ +

To enable the Modelines plugin, select gedit + PreferencesPluginsModelines.

+ +
+ General Modeline Options +

The following options can be set using gedit modelines:

+ +

Tab width

+

Indent width

+

Inserting spaces instead of tabs

+

Text Wrapping

+

Right margin width

+
+ + +

Preferences set using modelines take precedence over the ones specified + in the preference dialog.

+
+
+ +
+ Emacs Modelines + +

The first two lines of a document are scanned for Emacs + modelines, and gedit supports the following Emacs + modeline options:

+ +

Tab-width

+

Indent-offset

+

Indent-tabs-mode

+

Text auto-wrap

+
+

For more information on Emacs modelines, visit the + GNU Emacs + Manual.

+
+ +
+ Kate Modelines + +

The first and last ten lines a document are scanned for Kate + modelines, and gedit supports the following Kate + modeline options:

+ + +

tab-width

+

indent-width

+

space-indent

+

word-wrap

+

word-wrap-column

+
+ +

For more information about Kate modelines, visit the + Kate website.

+
+ +
+ Vim Modelines +

The first and last three lines a document are scanned for Vim + modelines, and gedit supports the following Vim + modeline options:

+ + +

et (expandtab)

+

ts (tabstop)

+

sw (shiftwidth)

+

wrap

+

textwidth

+
+ +

For more information on Vim modelines, visit the + Vim website.

+
+
diff --git a/help/C/gedit-plugins-pyconsole.page b/help/C/gedit-plugins-pyconsole.page new file mode 100644 index 0000000..c7c43a5 --- /dev/null +++ b/help/C/gedit-plugins-pyconsole.page @@ -0,0 +1,31 @@ + + + + + + + + Jim Campbell + jcampbell@gnome.org + + + Add an interactive Python console to the bottom pane. + + + Python console + +

You can add a Python console to the bottom pane, allowing you to test + Python scripts without leaving gedit. To enable the Python + console, select gedit + PreferencesPlugins + Python Console.

+ +

Once the Python console is enabled, you can open it by selecting + ViewBottom Panel.

+ +

If you have also enabled the Embeded Terminal + plugin, the Python Console will appear as a separate tab in the + bottom pane.

+
diff --git a/help/C/gedit-plugins-quick-open.page b/help/C/gedit-plugins-quick-open.page new file mode 100644 index 0000000..8ae68f9 --- /dev/null +++ b/help/C/gedit-plugins-quick-open.page @@ -0,0 +1,67 @@ + + + + + + + + + Jim Campbell + jcampbell@gnome.org + + + Shobha Tyagi + tyagishobha@gmail.com + + + Quickly open a file or set of files. + + + Quick open + +

As the name of this plugin would imply, the Quick Open plugin + helps you to open files more quickly than using the usual ways of opening + files. To enable this plugin, select gedit + PreferencesPluginsQuick Open.

+ +

Once you have enabled the Quick Open plugin you can use it as + follows:

+ + +

Open the Quick Open dialog box by pressing + CtrlAltO, or by selecting + Quick Open….

+

The Quick Open file dialog will appear.

+

Use your mouse to select the file or files that you want to + open.

+

To select several individual files, hold down your Ctrl key + while you click on the files that you want to open.

+

To select a group of files, click on the first file that you want to + open, hold down the Shift key, and then click on the last file + in the list that you want to open.

+

Click Open.

+
+ +

Quick Open will look for files in:

+ + +

The directory of the currently opened document

+

The root directory of the + File Browser Panel + plugin

+

Recent documents which are also shown in the Recent + folder in Files

+

Directories which you have bookmarked in + Files

+

Your Desktop directory

+

Your Home directory

+
+ + +

Quick Open displays files in any of the above locations + regardless of whether or not you have opened them previously.

+
+ +
diff --git a/help/C/gedit-plugins-snippets.page b/help/C/gedit-plugins-snippets.page new file mode 100644 index 0000000..3e56245 --- /dev/null +++ b/help/C/gedit-plugins-snippets.page @@ -0,0 +1,187 @@ + + + + + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + Use snippets to quickly insert often-used pieces of text. + + + Snippets + +

Snippets provide a convenient way of inserting repetitive + portions of code into your files. For example, an HTML snippet for the + ]]> tag would insert the opening and closing + portions of the tag, as well as fixed places where you can enter image + attributes. This can make writing code easier and faster.

+ +
+ Enable Snippets Plugin + +

To enable the Snippets plugin:

+ + + +

Select gedit + Preferences + Plugins.

+
+ +

Select Snippets to enable the + plugin.

+
+
+
+ +
+ Browse Snippets + +

To browse available snippets:

+ + +

Select Tools + Manage Snippets.

+ +

Make sure the syntax is set appropriately. The status bar at the + bottom of the gedit window will show the current language + setting. This language setting is what allows gedit to insert the + proper snippets. Gedit will normally detect the language or + syntax of the file that you're using, but sometimes you may need to + set it.

+
+ In this example, the language is set to HTML. + +
+
+
+ +

Browse the snippets that are available for your language or + syntax.

+
+
+
+ +
+ Using Snippets + +

To insert a snippet into your current document:

+ + + +

Type the desired snippet name anywhere in your current document.

+
+ +

Press Tab to insert the snippet associated with the input + term.

+
+
+
+ +
+ Snippet Example Usage + +

For example, if you have set the syntax to HTML, type + head , and press the Tab key. The text would have + auto completed into a snippet as:

+ + + + + Page Title + ]]> + + +
+ +
+ Adding Snippets + +

You can add new Snippets that work either globally (that is, they are + language agnostic) or only in a particular syntax.

+ + + +

Select Tools + Manage Snippets.

+
+ +

From the Manage Snippets sidebar select the desired syntax + and click on the "+" button to list existing snippets for the selected + syntax.

+ +

To add a snippet that works globally (that is, when no particular + syntax or language has been set for the document), select + Global from the Manage Snippets sidebar.

+
+
+ +

To add a new snippet, click on the "plus" icon in the + Manage Snippets sidebar.

+
+ +

Input a name for the new snippet. The name of the snippet can be + different from the snippet you want to add.

+
+ +

Under the Activation section, you must + input a term for the Tab trigger: textarea. + You will be using this term to insert your snippet.

+ +

If you wish to insert a snippet with a keyboard shortcut, then + click your mouse pointer on Shortcut key: + textarea and press the desired combination of keys. Once you have + pressed and released the keys, the keyboard shortcut will be set.

+
+
+ +

Under the textarea for Edit:, input the + desired text for the snippet. You may use ${n} to indicate + variables, where n is replaced with a number that + represents the numerical order of variables included.

+
+
+ +
+ +
+ New Snippet Example + +

Consider you have created a snippet with the term greetings + in Tab trigger:. The + Edit: textarea contains:

+ + + Hello ${1:wonderful}${2:amazing} world! + ]]> + + +

You can insert this snippet by typing greetings in the + document and pressing the Tab key. The following text snippet + will be inserted:

+ + + Hello wonderfulamazing world!]]> + + +

The words "wonderful" and "amazing" can be retained or deleted depending + on your choice of usage. To do so, press Tab to choose between + "wonderful" and "amazing" and press Del to delete the least + preferred option.

+
+ + +
diff --git a/help/C/gedit-plugins-sort.page b/help/C/gedit-plugins-sort.page new file mode 100644 index 0000000..042a44a --- /dev/null +++ b/help/C/gedit-plugins-sort.page @@ -0,0 +1,89 @@ + + + + + + + + Daniel Neel + dneelyep@gmail.com + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + Sort lines of text into alphabetical order. + + +Sort + +

The Sort plugin arranges selected lines of text into alphabetical + order.

+ +
+ Enable Sort Plugin + +

To enable the Sort plugin:

+ + + +

Select gedit + Preferences + Plugins.

+
+ +

Select Sort to enable the plugin.

+
+
+ +
+ +
+ Using Sort Plugin + +

To use the Sort plugin:

+ + + +

Select the desired lines of text.

+
+ +

Select Tools + Sort….

+
+ +

The Sort dialog will open, allowing you to choose between + several sorting options:

+ + +

Reverse order will arrange the text in reverse + alphabetical order.

+
+ +

Remove duplicates will remove duplicate values from + the list.

+
+ +

Ignore case will ignore case sensitivity.

+ +

To have the sort ignore the characters at the start of the + lines, set the first character that should be used for sorting in + the Start at column spin box.

+
+
+
+
+ +

To perform the sort operation, click Sort.

+
+
+
+ +
diff --git a/help/C/gedit-printing-order.page b/help/C/gedit-printing-order.page new file mode 100644 index 0000000..f0aeadf --- /dev/null +++ b/help/C/gedit-printing-order.page @@ -0,0 +1,69 @@ + + + + + Set the pages to print in a certain order. + + + + Phil Bull + philbull@gmail.com + + + Sindhu S + sindhus@live.in + + + + +Getting Copies To Print In The Correct Order + +
+ Reverse + +

Printers usually print the first page first, and the last page last, so + the pages end up in reverse order when you pick them up. To reverse the + order:

+ + + +

Select File + Print.

+
+ +

In the General tab of the Print dialog under + Copies, check + Reverse.

+
+
+ +

The last page will be printed first, and so on.

+
+ +
+ Collate + +

If you are printing more than one copy of the document, the print outs + will be grouped by page number by default. (e.g. The copies of page one come + out, then the copies of page two, etc.) Collating will make each copy come + out with its pages grouped together.

+ +

To Collate:

+ + +

Click File + Print.

+
+ +

In the General tab of the Print dialog under + Copies check + Collate.

+
+
+ + +
+ +
diff --git a/help/C/gedit-printing-select.page b/help/C/gedit-printing-select.page new file mode 100644 index 0000000..3aa4f1f --- /dev/null +++ b/help/C/gedit-printing-select.page @@ -0,0 +1,42 @@ + + + + + Choose the pages that you want to print. + + + Phil Bull + philbull@gmail.com + + + Sindhu S + sindhus@live.in + + + + + Only print certain pages + +

You can selectively print only certain pages from the document. For + example, if you enter the page numbers "1,3,5-7,9", then only pages 1, 3, + 5, 6, 7 and 9 will be printed. To print pages of your choice:

+ + + +

Select File + Print….

+
+ +

In the General tab in the Print dialog choose + Pages from the + Range section.

+ +

Type the numbers of the pages you want to print from the document, + separated by commas. Use a dash to specify a range of pages.

+
+
+ + +
diff --git a/help/C/gedit-printing.page b/help/C/gedit-printing.page new file mode 100644 index 0000000..b5d8753 --- /dev/null +++ b/help/C/gedit-printing.page @@ -0,0 +1,126 @@ + + + + + Print the files that you create with gedit. + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + + + Printing documents + + +

Printing with gedit requires that you have connected and + configured your printer. If you have not done this, please consult the + printing help for GNOME.

+
+ +

gedit allows you to print both to a file and to paper.

+ + + +
+ Printing To Paper + +

You can print your documents to paper using a local or remote printer. To + print a file:

+ + + +

Select File + Print + General.

+
+ +

Select the desired printer from the list of printers available.

+
+ +

You can preview the file using Print Preview + and once you are satisfied with the settings, click + Print to send the file to printer.

+
+
+ +

Additionally, from Page Setup tab: you can choose + Layout and Paper options. As + these settings are available throughout GNOME programs, please + consult + Layout and Paper options + help.

+ +
+ +
+ Print Multiple Copies And Between Specified Ranges + +

You can set Range and + Copies options to help you:

+ +
+ +
+ Printing To File + +

You can also use gedit to print to a file. To print your + document to file of a different format:

+ + + +

Select File + Print + Print to File.

+
+ +

Printing is enabled for the following file formats, you may select + from:

+ + +

Portable Document Format (.pdf)

+
+ +

PostScript (.ps)

+
+ +

Scalable Vector Graphic (.svg)

+
+
+
+ +

To print the document to file, click + Print.

+
+
+ +
+ +
diff --git a/help/C/gedit-quickstart.page b/help/C/gedit-quickstart.page new file mode 100644 index 0000000..7ec9ba2 --- /dev/null +++ b/help/C/gedit-quickstart.page @@ -0,0 +1,38 @@ + + + + + + + A brief introduction to gedit. + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + + + Get started with gedit +

gedit is a full-featured text editor for the GNOME desktop + environment. You can use it to prepare simple notes and documents, or you + can use some of its advanced features, making it your own software + development environment.

+ + + +

Once gedit launches, you can start writing right away. To save + your text, just click the Save button in the gedit + header bar.

+ +

To learn about additional gedit features and to get assistance + with performing additional tasks, explore the other + portions of the gedit help.

+ +
diff --git a/help/C/gedit-replace.page b/help/C/gedit-replace.page new file mode 100644 index 0000000..527943f --- /dev/null +++ b/help/C/gedit-replace.page @@ -0,0 +1,153 @@ + + + + + + Replace portions of text in a file. + + + + + + Jim Campbell + jcampbell@gnome.org + + + Daniel Neel + dneelyep@gmail.com + + + Sindhu S + sindhus@live.in + + + Ekaterina Gerasimova + kittykat3756@gmail.com + + + Shobha Tyagi + tyagishobha@gmail.com + + + Young Li + li.young1618@gmail.com + + + + + Replace text + +

Editing text can be time consuming. To save time, gedit + includes a Replace function that helps you to find and replace + portions of text.

+ + + Replace text in <app>gedit</app> + +

Open the Replace tool by clicking + Menu buttonFind + and Replace… or press + CtrlH.

+
+ +

Enter the text that you wish to replace into the Find + field.

+
+ +

Enter the new, replacement text into the Replace with + field.

+
+ +

Once you have entered the original and replacement text, you can add + extra parameters to the search. You can also choose what you want to + replace:

+ + +

To replace only the next match, click + Replace.

+
+ +

To replace all occurrences of the searched-for text, + click Replace All.

+
+
+
+
+ + +

Use the Replace All function with care. Replace + All works on the entirety of your text file, and does not allow you + to highlight portions of text where the replace function will be + performed.

+
+ +
+ More options + +

If you wish, you can add some extra parameters to your search:

+ + + + Match case +

The Match case option allows you to specify whether you want + your search to be case-sensitive. If this option is selected, searches + will be case-sensitive. If not, searches will not be case-sensitive.

+
+ + Match entire word only +

Use this option to search for a specific word without including + fragments of other words. For example, if you searched for the word + 'and' with this option selected, the word 'and' would be matched, but + the words 'sand' and 'commander' would not be + matched.

+
+ + Search backwards +

This command behaves identically to the Find Previous command. If you + wish to step through search results from end to beginning, select this + option.

+
+ + Wrap around +

With the wrap around option enabled, gedit will + re-start the search/replace action at the top of the file after it has + reached the bottom of the file. This ensures that your search/replace + action is made across your entire file.

+
+
+ +
+ +
+ Using escape sequences + +

You can use escape sequences to search for line breaks, carriage + returns, and tabs.

+ + + + \n +

Newline

+
+ + \r +

Carriage return

+
+ + \t +

Tab

+
+
+ +

If you actually want to search for a \ (backslash) or one + of the escape sequences in the text, you need to escape the backslash with an + extra backslash. For example, to search for \, you need to + enter \\ into the search or replace field. You can search for + escape sequences in the same way: to search for or replace with a + \n, use the \\n term.

+ +
+ +
diff --git a/help/C/gedit-save-file.page b/help/C/gedit-save-file.page new file mode 100644 index 0000000..34f2992 --- /dev/null +++ b/help/C/gedit-save-file.page @@ -0,0 +1,37 @@ + + + + + Save your file to work on it later. + + + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + + Save a file + +

To save a file in gedit, click on the + Save button on the right side of the header bar or + just press CtrlS.

+

If you are saving a new file, a dialog will appear, and you can select a + name for the file, as well as the directory where you would like the file to + be saved.

+ +
diff --git a/help/C/gedit-search.page b/help/C/gedit-search.page new file mode 100644 index 0000000..63e4c5b --- /dev/null +++ b/help/C/gedit-search.page @@ -0,0 +1,110 @@ + + + + + + Find a portion of text within a file. + + + + Jim Campbell + jcampbell@gnome.org + + + Daniel Neel + dneelyep@gmail.com + + + Sindhu S + sindhus@live.in + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + Search for text + +

The Find tool can help you find specific sequences of text within in your + file.

+ + + Finding text + +

Open the search window by clicking + Menu Button + Find… or + pressing CtrlF. This will move + your cursor to the start of the search window.

+
+ +

Type the text you wish to search for in the + search window.

+
+ +

As you type, gedit will begin highlighting the portions of + text that match what you have entered.

+
+
+ +

To scroll through the search results, do any of the following:

+ + +

Click on the up or + down facing arrows next to the + search window.

+
+ +

Press the up arrow or down arrow keys on your + keyboard.

+
+ +

Press CtrlG or + CtrlShiftG.

+
+
+ +

To close the search window, press either Esc or + Enter. Pressing Esc will return the cursor to where it + was before you began your search. Pressing Enter will return the + cursor to the current position in the search results.

+ + + Search tips + +

If you highlight a portion of text with your mouse, and then press + CtrlF, the text you've highlighted + will appear in the search window.

+
+ +

For more search options, click on the + Magnifying Glass icon in the search window, + or right-click anywhere in the search window. You can select one or more + of the following search options:

+ + +

Select Match Case to make the search case sensitive.

+
+ +

Select Match Entire Word Only to search only complete + words.

+
+ +

Select Wrap Around to search text from top to bottom + and cycle back again.

+
+
+
+ +

The text that you've searched for will remain highlighted by gedit, + even after you have completed your search. To remove the highlight, + click Clear Highlight, or + press CtrlShiftK.

+
+
+ +
diff --git a/help/C/gedit-spellcheck.page b/help/C/gedit-spellcheck.page new file mode 100644 index 0000000..063fe59 --- /dev/null +++ b/help/C/gedit-spellcheck.page @@ -0,0 +1,135 @@ + + + + + Check your files for spelling errors. + + + + + Jim Campbell + jcampbell@gnome.org + + + Baptiste Mille-Mathias + baptistem@gnome.org + + + Sindhu S + sindhus@live.in + + + + + + + Spell-check your document +
+ Enable the spell checker +

The Spell-check feature is provided as a plugin in gedit which + can be enabled as required. To enable the plugin:

+ + + +

Select gedit + Preferences + Plugins.

+
+ +

Select Spell Checker to enable the + plugin.

+
+
+ +
+ +
+ Spell-check your document + +

To check for misspelt words in your document:

+ + + +

Select Tools + Check Spelling.

+
+
+ + +

To have gedit automatically highlight misspelt words in your + document as you type, select ToolsHighlight Misspelled Words.

+
+
+ +
+ Using spell-check + +

You can choose the right substitution for misspelt words using the Check + Spelling dialog. The misspelt word being checked by the spell-checker is + displayed in bold style next to Misspelled word:. + You can choose from the following corrective actions:

+ + + +

Change to: allows you to input a word and + use Check Word to check the validity of the + spelling.

+
+ +

Suggestions: lists the available + substitutions for the word.

+
+ +

Ignore allows you to bypass spell check for + a instance of current word.

+
+ +

Ignore All allows you to bypass spell check + for all instances of the current word.

+
+ +

Change substitutes the misspelt or + unrecognized word with a chosen substitute from the + Suggestions: list.

+
+ +

Change all substitutes all + misspelt or unrecognized words with the chosen substitute from the + Suggestions: list.

+
+ +

Add word allows you to add the current word + to the gedit User dictionary. Adding custom words + to the User dictionary will allow gedit to + recognize the word in documents and thus will not be highlighted as a + misspelt word.

+
+
+ +
+ +
+ Define the language to use for spell checking +

By default, gedit will use your current language to spell + check your document. If you need to use another language, choose + ToolsSet + Language…, then choose the language you want to use.

+
+ +
+ Dictionaries + +

gedit uses + Enchant, + a small system utility, for spell checking. Enchant can use + several different dictionaries to check your spelling. Two such + dictionary back-ends are Hunspell and Aspell.

+ +

If the language you want to use is not available in gedit, + use your computer's software installer or package manager to install the + dictionary back-end that you want.

+
+
diff --git a/help/C/gedit-syntax-highlighting.page b/help/C/gedit-syntax-highlighting.page new file mode 100644 index 0000000..b65f6b4 --- /dev/null +++ b/help/C/gedit-syntax-highlighting.page @@ -0,0 +1,37 @@ + + + + + Highlight your text to make it easier to read. + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + + + Turn on syntax highlighting + +
+ Syntax highlighting +

gedit provides syntax highlighting for a wide range of markup, + programming, and scientific languages. If gedit recognizes the + syntax being used when you open a file, it will automatically highlight the + text.

+ +

If your syntax or language is not highlighted upon startup, you can + select the appropriate syntax or language by clicking + View + Highlight Mode, + and then choosing the desired syntax. Alternately, you can select the syntax + name from a list at the bottom of the gedit window.

+
+ +
diff --git a/help/C/gedit-tab-groups.page b/help/C/gedit-tab-groups.page new file mode 100644 index 0000000..d7ed84e --- /dev/null +++ b/help/C/gedit-tab-groups.page @@ -0,0 +1,104 @@ + + + + + + + Group similar tabs together. + + + + Radina Matic + radina.matic@gmail.com + 2013 + + + + + + Organize files in grouped tabs + +

If you are working with multiple tabs in gedit you can group + them, making it easier to keep your opened files organized. Adding a new tab + group will divide the gedit window in two panes, open a new + “Untitled Document” in the new pane, and make it active. You can open files + into that tab group and move tabs from one tab group to another.

+ +
+ Open a new tab group in the gedit window + +

To open a new tab group you can:

+ + + +

Right click on a tab and select Move to New Tab Group.

+
+ +

Use the CtrlAltN + shortcut.

+
+
+ +

This action will divide the gedit window in two panes, and the + pane with the new tab group will be placed on the right of the active tab. + You can move the handle right or left assigning more or less space of the + gedit window between panes according to your needs.

+ +

You can open as much tab groups in a gedit window as your screen + allows, but you will have to move the handle in order to see them + correctly.

+ +

To close a tab group pane just close all the tabs that are opened inside + it.

+
+ + + +
+ Move a tab to another tab group + +

If you want to move a tab from one tab group to another:

+ + + +

Click and hold the mouse button on the tab.

+
+ +

Drag the tab to another tab group pane.

+
+ +

Place it beside other tabs in the tab group.

+
+ +

Release the mouse button.

+
+
+ +
+
diff --git a/help/C/gedit-tabs-moving.page b/help/C/gedit-tabs-moving.page new file mode 100644 index 0000000..644268f --- /dev/null +++ b/help/C/gedit-tabs-moving.page @@ -0,0 +1,112 @@ + + + + + + + Change the position of a tab in the gedit window. + + + Jim Campbell + jcampbell@gnome.org + + + Daniel Neel + dneelyep@gmail.com + + + Sindhu S + sindhus@live.in + + + Radina Matic + radina.matic@gmail.com + 2013 + + + + + Move and re-order tabs +

Tabs in gedit can be moved, making it easier to work with your + files. Tabs can be can re-ordered within the same window, moved outside of + gedit (creating a new gedit window), and moved from one + window to another.

+ +
+ Change the order of tabs in the gedit window + +

To change the ordering of tabs in a window:

+ + + +

Click and hold the mouse button on the tab.

+
+ +

Move the tab to the desired position among the other tabs.

+
+ +

Release the mouse button.

+
+
+ +

The tab will be placed in the position closest to where you release the + tab, immediately beside other opened tabs.

+
+ +
+ Move a tab, creating a new gedit window +

To create a new window from an existing tab:

+ + + +

Click and hold the mouse button on the tab.

+
+ +

Drag the tab out of the gedit window.

+
+ +

Release the mouse button.

+
+
+ + +

To move a tab into a new window when gedit is maximized, + drag the tab onto the top bar at the top of the screen.

+
+
+ +
+ Move a tab to another gedit window + +

If you want to move a tab from one window to another:

+ + + +

Click and hold the mouse button on the tab.

+
+ +

Drag the tab to the new window.

+
+ +

Place it beside other tabs in the new window.

+
+ +

Release the mouse button.

+
+
+ + + +

You may find it easier to move a tab from one window to another by + dragging the tab to the Activities hot-corner of + GNOME Shell. This will reveal each of the open + gedit windows. You can then release the tab on the + desired gedit window.

+
+ +
+ +
diff --git a/help/C/gedit-tabs.page b/help/C/gedit-tabs.page new file mode 100644 index 0000000..52e5d68 --- /dev/null +++ b/help/C/gedit-tabs.page @@ -0,0 +1,58 @@ + + + + + + + Create or close tabs in the gedit window. + + + + Jim Campbell + jcampbell@gnome.org + + + Daniel Neel + dneelyep@gmail.com + + + Sindhu S + sindhus@live.in + + + Radina Matic + radina.matic@gmail.com + 2013 + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + + Add and remove tabs +

Working with tabs in gedit allows you to keep an eye on several + files in a single window.

+ +
+ Adding tabs +

To add a new tab to create a new file, click the Create a new + document button on the left side of the header bar, or press + CtrlT. The tab will be added to the + right side of any other tabs.

+
+ +
+ Removing tabs +

To remove a tab, click the × on the tab's + right side, or press CtrlW. To + remove all open tabs, press Ctrl + ShiftW.

+
+ +
diff --git a/help/C/gedit-undo-redo.page b/help/C/gedit-undo-redo.page new file mode 100644 index 0000000..93f3c1d --- /dev/null +++ b/help/C/gedit-undo-redo.page @@ -0,0 +1,42 @@ + + + + + Revert a recent change to one of your files. + + + + Jim Campbell + jcampbell@gnome.org + + + Daniel Neel + dneelyep@gmail.com + + + Sindhu S + sindhus@live.in + + + Shobha Tyagi + tyagishobha@gmail.com + + + + + + Undo/redo a recent action + +

If you make a mistake while editing a document in gedit, you can + undo the change by pressing CtrlZ.

+ + +

You cannot undo a change after you have closed a gedit file.

+
+ +

To redo the change that was undone, press + CtrlShiftZ.

+
diff --git a/help/C/gnome-help.sct b/help/C/gnome-help.sct new file mode 100644 index 0000000..0c1e623 --- /dev/null +++ b/help/C/gnome-help.sct @@ -0,0 +1,22 @@ + + Some sanity checks for the GNOME desktop help + + + + + Must not include license directly + Must include legal.xml + + + + + Must have non-empty desc + + + Desc must end with a period + + + Desc with links must end with an ellipsis + + + diff --git a/help/C/index.page b/help/C/index.page new file mode 100644 index 0000000..d66861b --- /dev/null +++ b/help/C/index.page @@ -0,0 +1,54 @@ + + + + gedit Text Editor + gedit Text Editor + + Home page of the gedit help guide. + + + Jim Campbell + jcampbell@gnome.org + + + Sindhu S + sindhus@live.in + + + + + + + + <media type="image" mime="image/png" src="figures/gedit-icon.png" its:translate="no" /> + gedit Text Editor + +

Welcome to the gedit help guide. For a quick introduction into + gedit's most basic features, visit the + Get started with gedit page.

+ +

Other help topics are grouped together into sections below. Enjoy using + gedit!

+ +
+ Working With Files + +
+ +
+ Configure gedit +
+ +
+ gedit Plugins +
+ +
+ Printing with gedit +
+ +
diff --git a/help/C/legal.xml b/help/C/legal.xml new file mode 100644 index 0000000..2a5cd29 --- /dev/null +++ b/help/C/legal.xml @@ -0,0 +1,6 @@ + +

This work is licensed under a Creative + Commons Attribution-ShareAlike 3.0 Unported License.

+
+ diff --git a/help/C/schematron.sh b/help/C/schematron.sh new file mode 100755 index 0000000..dc69b43 --- /dev/null +++ b/help/C/schematron.sh @@ -0,0 +1 @@ +xmllint --noout --schematron gnome-help.sct ./*.page 2>&1 | grep -v validates diff --git a/help/LINGUAS b/help/LINGUAS new file mode 100644 index 0000000..08883ff --- /dev/null +++ b/help/LINGUAS @@ -0,0 +1,32 @@ +ar +bg +ca +cs +da +de +el +en_GB +es +eu +fi +fr +gl +hu +id +it +ja +ko +lv +oc +pl +pt_BR +ro +ru +sl +sv +te +th +uk +zh_CN +zh_HK +zh_TW \ No newline at end of file diff --git a/help/ar/ar.po b/help/ar/ar.po new file mode 100644 index 0000000..56087ef --- /dev/null +++ b/help/ar/ar.po @@ -0,0 +1,4057 @@ +# translation of help (gedit).HEAD.po to Arabic +# Osama Khalid , 2008, 2009. +# Khaled Hosny , 2009 +msgid "" +msgstr "" +"Project-Id-Version: help (gedit).HEAD\n" +"POT-Creation-Date: 2009-04-18 16:48+0200\n" +"PO-Revision-Date: 2009-04-18 16:54+0300\n" +"Last-Translator: Khaled Hosny \n" +"Language-Team: Arabic \n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && " +"n<=10 ? 3 : n>=11 && n<=99 ? 4 : 5;\n" +"X-Generator: Virtaal 0.3.1\n" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:268(None) +msgid "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgstr "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:349(None) +msgid "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" +msgstr "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" + +#: C/gedit.xml:23(title) +msgid "Gedit Manual" +msgstr "دليل محرر النصوص" + +#: C/gedit.xml:25(year) +msgid "2007" +msgstr "2007" + +#: C/gedit.xml:26(holder) C/gedit.xml:45(publishername) +#: C/gedit.xml:56(firstname) C/gedit.xml:79(orgname) C/gedit.xml:120(para) +#: C/gedit.xml:128(para) C/gedit.xml:136(para) C/gedit.xml:144(para) +#: C/gedit.xml:152(para) C/gedit.xml:160(para) C/gedit.xml:168(para) +#: C/gedit.xml:176(para) C/gedit.xml:184(para) C/gedit.xml:192(para) +#: C/gedit.xml:200(para) +msgid "GNOME Documentation Project" +msgstr "مشروع توثيق جنوم" + +#: C/gedit.xml:28(year) +msgid "2002" +msgstr "2002" + +#: C/gedit.xml:29(year) +msgid "2003" +msgstr "2003" + +#: C/gedit.xml:30(year) +msgid "2004" +msgstr "2004" + +#: C/gedit.xml:31(holder) C/gedit.xml:71(orgname) +msgid "Sun Microsystems" +msgstr "صن ميكروسِستمز" + +#: C/gedit.xml:33(year) C/gedit.xml:116(date) +msgid "2000" +msgstr "2000" + +#: C/gedit.xml:34(holder) +msgid "Eric Baudais" +msgstr "إرِك بيديس" + +#: C/gedit.xml:52(firstname) +msgid "Joachim" +msgstr "جوكيم" + +#: C/gedit.xml:53(surname) +msgid "Noreiko" +msgstr "نوريكو" + +#: C/gedit.xml:59(orgname) +msgid "GNOME" +msgstr "جنوم" + +#: C/gedit.xml:63(firstname) +msgid "Hal" +msgstr "هال" + +#: C/gedit.xml:64(surname) +msgid "Canary" +msgstr "كانري" + +#: C/gedit.xml:65(contrib) +msgid "Added the Shortcut Keys Table" +msgstr "أضيف جدول مفاتيح الاختصار" + +#: C/gedit.xml:68(firstname) C/gedit.xml:191(para) +msgid "Sun Java Desktop System Documentation Team" +msgstr "فريق توثيق نظام سطح مكتب صن جافا" + +#: C/gedit.xml:72(email) +msgid "gdocteam@sun.com" +msgstr "gdocteam@sun.com" + +#: C/gedit.xml:76(firstname) +msgid "Eric" +msgstr "إرِك" + +#: C/gedit.xml:77(surname) +msgid "Baudais" +msgstr "بيديس" + +#: C/gedit.xml:80(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: C/gedit.xml:84(firstname) +msgid "Baris" +msgstr "باريس" + +#: C/gedit.xml:85(surname) +msgid "" +"Cicek provided information from earlier revisions of the gedit application." +msgstr "سيسك قدم معلومات من المراجعات الأولى لتطبيق محرر النصوص." + +#: C/gedit.xml:86(contrib) C/gedit.xml:91(contrib) +msgid "Acknowledgements" +msgstr "إشادات" + +#: C/gedit.xml:89(firstname) +msgid "Ajit" +msgstr "أجيت" + +#: C/gedit.xml:90(surname) +msgid "George provided information about plugins." +msgstr "جورج قدم معلومات عن الملحقات." + +#: C/gedit.xml:115(revnumber) +msgid "gedit V1.0" +msgstr "محرر النصوص الإصدار 1.0" + +#: C/gedit.xml:118(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "إرِك بيديس baudais@okstate.edu" + +#: C/gedit.xml:124(revnumber) +msgid "gedit Manual V2.0" +msgstr "دليل محرر النصوص الإصدار 2.0" + +#: C/gedit.xml:125(date) +msgid "March 2002" +msgstr "مارس 2002" + +#: C/gedit.xml:127(para) C/gedit.xml:135(para) C/gedit.xml:143(para) +#: C/gedit.xml:151(para) C/gedit.xml:159(para) C/gedit.xml:167(para) +#: C/gedit.xml:175(para) C/gedit.xml:183(para) +msgid "Sun GNOME Documentation Team" +msgstr "فريق توثيق صن جنوم" + +#: C/gedit.xml:132(revnumber) +msgid "gedit Manual V2.1" +msgstr "دليل محرر النصوص الإصدار 2.1" + +#: C/gedit.xml:133(date) +msgid "June 2002" +msgstr "يونيو 2002" + +#: C/gedit.xml:140(revnumber) +msgid "gedit Manual V2.2" +msgstr "دليل محرر النصوص الإصدار 2.2" + +#: C/gedit.xml:141(date) +msgid "August 2002" +msgstr "أغسطس 2002" + +#: C/gedit.xml:148(revnumber) +msgid "gedit Manual V2.3" +msgstr "دليل محرر النصوص الإصدار 2.3" + +#: C/gedit.xml:149(date) +msgid "September 2002" +msgstr "سبتمبر 2002" + +#: C/gedit.xml:156(revnumber) +msgid "gedit Manual V2.4" +msgstr "دليل محرر النصوص الإصدار 2.4" + +#: C/gedit.xml:157(date) +msgid "January 2003" +msgstr "يناير 2003" + +#: C/gedit.xml:164(revnumber) +msgid "gedit Manual V2.5" +msgstr "دليل محرر النصوص الإصدار 2.5" + +#: C/gedit.xml:165(date) +msgid "March 2003" +msgstr "مارس 2003" + +#: C/gedit.xml:172(revnumber) +msgid "gedit Manual V2.6" +msgstr "دليل محرر النصوص الإصدار 2.6" + +#: C/gedit.xml:173(date) +msgid "September 2003" +msgstr "سبتمبر 2003" + +#: C/gedit.xml:180(revnumber) +msgid "gedit Manual V2.7" +msgstr "دليل محرر النصوص الإصدار 2.7" + +#: C/gedit.xml:181(date) +msgid "March 2004" +msgstr "مارس 2004" + +#: C/gedit.xml:188(revnumber) +msgid "gedit Manual V2.8" +msgstr "دليل محرر النصوص الإصدار 2.8" + +#: C/gedit.xml:196(revnumber) +msgid "gedit Manual V2.9" +msgstr "دليل محرر النصوص الإصدار 2.9" + +#: C/gedit.xml:199(para) +msgid "GNOME Documentation Team" +msgstr "فريق توثيق جنوم" + +#: C/gedit.xml:204(releaseinfo) +msgid "This manual describes version 2.16 of gedit." +msgstr "هذا الدليل يشرح الإصدار 2.16 من محرر النصوص." + +#: C/gedit.xml:207(title) +msgid "Feedback" +msgstr "التعليقات" + +#: C/gedit.xml:208(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" +"للإبلاغ عن العلل أو الاقتراحات بخصوص برنامج gedit " +"أو هذا الدليل، اتبع التعليمات في صفحة تعليقات جنوم." + +#: C/gedit.xml:213(para) +msgid "" +"gedit is a text editor for the GNOME Desktop featuring basic yet robust " +"capabilities such as printing, spell checking, find and replace, and syntax " +"highlighting. More advanced features are available as plugins." +msgstr "" +"محرر النصوص هو محرر نصوص لسطح مكتب جنو يتميز بالقابلية القوية الأساسية مثل " +"الطباعة، والتدقيق الإملائي، والإيجاد والاستبدال، وإبراز الصيغ. المزيد من " +"المزايا متوفرة كملحقات." + +#: C/gedit.xml:218(primary) +msgid "gedit" +msgstr "محرر النصوص" + +#: C/gedit.xml:219(primary) +msgid "text editor" +msgstr "محرر نصوص" + +#: C/gedit.xml:224(title) +msgid "Introduction" +msgstr "مقدمة" + +#: C/gedit.xml:229(para) +msgid "" +"The gedit application enables you to create and " +"edit text files." +msgstr "" +"التطبيق gedit يتيح لك إنشاء وتحرير الملفات النصية." + +#: C/gedit.xml:231(para) +msgid "" +"The aim of gedit is to be a simple and easy to " +"use text editor. More powerful features can be enabled with different " +"plugins, allowing a variety of tasks related to text-" +"editing." +msgstr "" +"غاية محرر النصوص أن يكون محرر نصوص بسيط وسهل. " +"مزايا أقوى يمكن أن تُفعّل مع ملحقات، تسمح بمزايا عديدة " +"لمهام متعلقة بتحرير النص." + +#: C/gedit.xml:235(title) +msgid "Getting Started" +msgstr "البدء" + +#: C/gedit.xml:239(title) +msgid "Starting gedit" +msgstr "بدء محرر النصوص" + +#: C/gedit.xml:240(para) +msgid "You can start gedit in the following ways:" +msgstr "تستطيع بدء محرر النصوص بالطريق التالية:" + +#: C/gedit.xml:243(term) +msgid "Applications menu" +msgstr "قائمة التطبيقات" + +#: C/gedit.xml:245(para) +msgid "" +"Choose AccessoriesText " +"Editor." +msgstr "" +"اختر الملحقاتمحرر النصوص." + +#: C/gedit.xml:249(term) +msgid "Command line" +msgstr "سطر الأوامر" + +#: C/gedit.xml:251(para) +msgid "Execute the following command: gedit" +msgstr "شغّل السطر التالي: gedit" + +#: C/gedit.xml:255(para) +msgid "" +"By default, when you open a text document in the file manager, gedit will " +"start, and display the document." +msgstr "" +"مبدئيا، عند فتح مستند نصي في مدير الملفات، سوف يبدأ محرر النصوص، ويعرض " +"المستند." + +#: C/gedit.xml:260(title) +msgid "The gedit Window" +msgstr "نافذة محرر النصوص." + +#: C/gedit.xml:261(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "عند بدء محرر النصوص، النافذة التالية تُعرض:" + +#: C/gedit.xml:264(title) +msgid "gedit Window" +msgstr "نافذة محرر النصوص." + +#: C/gedit.xml:270(phrase) +msgid "Shows gedit main window." +msgstr "تعرض نافذة محرر النصوص الرئيسية." + +#: C/gedit.xml:276(para) +msgid "" +"The gedit window contains the following elements:" +msgstr "نافذة gedit تحتوي العناصر التالية:" + +#: C/gedit.xml:279(term) +msgid "Menubar" +msgstr "شريط القوائم" + +#: C/gedit.xml:281(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"القوائم على شريط القوائم تحتوي كل الأوامر التي تحتاجها للعمل مع الملفات في " +"gedit." + +#: C/gedit.xml:284(term) +msgid "Toolbar" +msgstr "شريط الأدوات " + +#: C/gedit.xml:286(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "" +"شريط الأدوات يحتوي رصّة فرعية من الأوامر التي تستطيع الوصول إليها من شريط " +"الأدوات." + +#: C/gedit.xml:289(term) +msgid "Display area" +msgstr "منطقة العرض" + +#: C/gedit.xml:291(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "تحتوي منطقة العرض نص الملف الذي تحرّره." + +#: C/gedit.xml:294(term) +msgid "Statusbar" +msgstr "شريط الحالة " + +#: C/gedit.xml:296(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items. The " +"statusbar also displays the following information:" +msgstr "" +"شريط الحالة يعرض معلومات حول نشاط gedit الحالي " +"ومعلومات مُتسقة حول عناصر القائمة. شريط الحال يعرض أيضا المعلومات التالية:" + +#: C/gedit.xml:299(para) +msgid "" +"Cursor position: the line number and column number where the cursor is " +"located." +msgstr "موضع المؤشر: رقم السطر ورقم العمود حيث يقع المؤشر." + +#: C/gedit.xml:302(para) +msgid "" +"Edit mode: If the editor is in insert mode, the statusbar contains the text " +"INS. If the editor is in overwrite mode, the statusbar " +"contains the text OVR. Press the Insert key to change edit mode." +msgstr "" +"نمط التحرير: إذا كان المحرر في وضع الإدراج، شريط الحالي يحتوي النص " +"إضافة. إذا كان المحرر في وضع الكتابة الفوقية، شريط " +"الحالي يحتوي استبدال. اضغط مفتاح Insert لتغيير نمط التحرير." + +#: C/gedit.xml:307(term) +msgid "Side Pane" +msgstr "اللوحة الجانبية" + +#: C/gedit.xml:309(para) +msgid "" +"The side pane displays a list of open documents, and other information " +"depending on which plugins are enabled." +msgstr "" +"تعرض اللوحة الجانبية قائمة المستندات المفتوحة، ومعلومات أخرى مبنية على " +"الملحقات المُفعّلة." + +#: C/gedit.xml:310(para) +msgid "" +"By default the side pane is not shown. To show it, choose " +"ViewSide Pane." +msgstr "" +"ابتدائيا ليست معروضة، لعرضها، اختر عرضاللوحة الجانبية." + +#: C/gedit.xml:313(term) +msgid "Bottom Pane" +msgstr "اللوحة السفلية" + +#: C/gedit.xml:315(para) +msgid "" +"The bottom pane is used by programming tools such as the Python " +"Console plugin to display output." +msgstr "" +"اللوحة السفلية مُستخدمة بواسطة أدوات البرمجة مثل ملحق كونسول " +"بايثون لعرض المُخرج." + +#: C/gedit.xml:316(para) +msgid "" +"By default the bottom pane is not shown. To show it, choose " +"ViewBottom Pane." +msgstr "" +"ابتدائيا اللوحة السفلية ليست معروضة. لعرضها، اختر عرضاللوحة السفلية." + +#: C/gedit.xml:320(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"عندما تنقر يمينا في نافذة محرر النصوص، يعرض " +"التطبيق قائمة منبثقة. القائمة المنبثقة تحتوي معظم أوامر تحرير النصوص الشائعة." + +#: C/gedit.xml:322(para) +msgid "" +"Like other GNOME applications, actions in gedit " +"can be performed in several ways: with the menu, with the toolbar, or with " +"shortcut keys. Shortcuts keys common to all applications are listed in the " +"User Guide." +msgstr "" +"مثل تطبيقات جنوم الأخرى، الإجراءات في محرر النصوص " +"يمكن أن تُؤدى بطرق مختلفة، من القائمة، أو من شريط الأدوات، أو من مفاتيح " +"الاختصار. مفاتيح الاختصار الشائعة لكل التطبيقات مُدرجة في دليل المستخدم." + +#: C/gedit.xml:327(title) +msgid "Running gedit from a Command Line" +msgstr "تشغيل محرر النصوص من سطر الأوامر." + +#: C/gedit.xml:328(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" +"تستطيع تشغيل محرر النصوص من سطر الأوامر وفتح ملف " +"وحيد أو ملفات متعددة. لفتح ملفات متعددة من سطر الأوامر، اطبع الأمر التالي، " +"ثم انقر إدخال:" + +#: C/gedit.xml:329(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "ملف1.txt ملف2.txt ملف3.txt" + +#: C/gedit.xml:329(command) +msgid "gedit " +msgstr "gedit " + +#: C/gedit.xml:330(para) +msgid "Alternatively, you can specify a URI instead of a filename." +msgstr "بدلا من ذلك، تستطيع تحديد مسار بدلا من اسم ملف." + +#: C/gedit.xml:331(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see the unix manual page for gedit, gedit1." +msgstr "" +"لمزيد من المعلومات عن كيفية تشغيل محرر النصوص من " +"سطر الأوامر، راجع صفحة دليل يونكس لمحرر النصوص، محرر النصوص1." + +#: C/gedit.xml:336(title) +msgid "Working with Files" +msgstr "العمل مع الملفات" + +#: C/gedit.xml:340(title) +msgid "Creating a New Document" +msgstr "إنشاء مستند جديد " + +#: C/gedit.xml:341(para) +msgid "" +"To create a new document, choose FileNew. The application " +"displays a new blank document in the gedit window." +msgstr "" +"لإنشاء مستند جديد، اختر ملفجديد. التطبيق يعرض مستند فارغ في نافذة " +"محرر النصوص." + +#: C/gedit.xml:346(title) C/gedit.xml:1591(title) +msgid "Opening a File" +msgstr "فتح ملف" + +#: C/gedit.xml:347(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click Open. The file is displayed in the gedit " +"window." +msgstr "" +"لفتح ملف، اختر ملفافتح لعرض حوار فتح ملف. انتقِ الملف " +"الذي تريد فتحه، ثم انقر افتح. الملف يُعرض في نافذة " +"محرر النصوص." + +#: C/gedit.xml:349(phrase) +msgid "Shows Recent Files menu icon." +msgstr "يعرض أيقونة قائمة أحدث الملفات." + +#: C/gedit.xml:349(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the icon on the toolbar to display the list of recent files." +msgstr "" +"التطبيق يسجل المسارات وأسماء الملفات لأحدث خمس ملفات حرّرتها ويعرض الملفات " +"كعناصر قائمة في قائمة ملف. " +"تستطيع أيضا النقر على أيقونة على شريط الأدوات لعرض قائمة " +"بأحدث الملفات." + +#: C/gedit.xml:351(para) +msgid "" +"You can open multiple files in gedit. The " +"application adds a tab for each open file to the window. For more on this " +"see ." +msgstr "" +"تستطيع فتح ملفات متعددة في محرر النصوص. يضيف " +"التطبيق لسان لكل فتح ملف إلى النافذة. للمزيد عن هذا راجع ." + +#: C/gedit.xml:357(title) +msgid "Saving a File" +msgstr "حفظ ملف" + +#: C/gedit.xml:358(para) +msgid "You can save files in the following ways:" +msgstr "تستطيع حفظ ملفات بالطرق التالية:" + +#: C/gedit.xml:360(para) +msgid "" +"To save changes to an existing file, choose FileSave." +msgstr "" +"لحفظ التغييرات لملف موجود، اختر ملفاحفظ." + +#: C/gedit.xml:362(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save As " +"dialog, then click Save." +msgstr "" +"لحفظ ملف جديد أو لحفظ ملف موجود تحت اسم ملف جديد، اختر " +"ملفاحفظ كـ." + +#: C/gedit.xml:364(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" +"لحفظ كل الملفات المفتوحة حاليا في محرر النصوص، " +"اختر مستنداتاحفظ الكل." + +#: C/gedit.xml:367(para) +msgid "" +"To close all of the files that are currently open in gedit, choose DocumentsClose All." +msgstr "" +"لإغلاق كل الملفات المفتوحة حاليا محرر النصوص، " +"اختر مستنداتأغلق الكّل." + +#: C/gedit.xml:372(title) +msgid "Opening a File from a URI" +msgstr "فتح ملف من مسار" + +#: C/gedit.xml:373(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform the " +"following steps:" +msgstr "لفتح ملف من معرّف نظامي لمورد (مسار)، أدِ الخطوات التالية:" + +#: C/gedit.xml:376(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog." +msgstr "" +"اختر ملفافتح موقعا لعرض حوار فتح موقع." + +#: C/gedit.xml:379(para) +msgid "Enter the URI of the file that you want to open." +msgstr "أدخل مسار الملف الذي تريد فتحه." + +#: C/gedit.xml:382(para) +msgid "" +"Use the Character coding drop-down list to select the " +"appropriate character coding." +msgstr "" +"استخدم قائمة ترميز المحارف المنسدلة لانتقاء ترميز محارف " +"ملائم." + +#: C/gedit.xml:385(para) +msgid "Click Open." +msgstr "انقر افتح." + +#: C/gedit.xml:388(para) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the " +"methods supported by gnome-vfs." +msgstr "" +"الأنواع الصالحة للمسار تتضمن http:، ftp:، file:، وكل الوسائل " +"المدعومة من gnome-vfs." + +#: C/gedit.xml:389(para) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. HTTP only allows files to be " +"read. Files opened from FTP are read-only because because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"الملفات من بعض أنواع المسارات تُفتح كللقراءة فقط، وأي تغييرات تجريها يجب أن " +"تُحفظ إلى موقع آخر. إتش​تي​تي​بي فقط يسمح للملفات أن تُقرأ. " +"الملفات المفتوحة من إف​تي​بي للقراءة فقط لأن ليس كل خوادم " +"إف​تي​بي تتدعم بشكل صحيح العمل مع حفظ الملفات البعيدة." + +#: C/gedit.xml:390(para) +msgid "" +"Saving to FTP servers can be enabled with Configuration Editor, " +"setting the key /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes, but this may cause errors." +msgstr "" +"الحفظ إلى خوادم إف​تي​بي يمكن أن يُفعل من محرر التشكيل، " +"ضبط المفتاح /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes، لكن هذا قد يسبب أخطاءً." + +#: C/gedit.xml:395(title) +msgid "Working With Tabs" +msgstr "العمل مع الألسنة" + +#: C/gedit.xml:397(para) +msgid "" +"When more than one file is open, gedit shows a " +"tab for each document above the display area. To " +"switch to another document, click on its tab." +msgstr "" +"عندما يفتح أكثر من ملف، يعرض محرر النصوص " +"لسان لكل مستند أعلى منطقة العرض. للتبديل إلى مستند " +"آخر، انقر لسانها." + +#: C/gedit.xml:398(para) +msgid "" +"To move a document to another gedit window, drag " +"the tab corresponding to the file to the window you want to move it to." +msgstr "" +"لنقل مستند إلى نافذة محرر النصوص أخرى، ألقِ اللسان " +"الملائم للملف إلى النافذة التي تريدها لنقله." + +#: C/gedit.xml:399(para) +msgid "" +"To move a document to a new gedit window, either " +"drag its tab to the desktop, or choose DocumentsMove to New Window." +msgstr "" +"لنقل مستند إلى نافذة محرر النصوص، إما أن تلقي " +"لسانه إلى سطح المكتب، أو اختر مستنداتانقل إلى نافذة جديدة." + +#: C/gedit.xml:405(title) +msgid "Working with Text" +msgstr "العمل مع النص" + +#: C/gedit.xml:409(title) +msgid "Editing Text" +msgstr "تحرير النص" + +#: C/gedit.xml:410(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "تستطيع تعديل نص ملف بالطرق التالية:" + +#: C/gedit.xml:412(para) +msgid "" +"Type new text from the keyboard. The blinking insertion cursor marks the point where new text appears. To change this, use the " +"arrow keys on the keyboard or click with the mouse." +msgstr "" +"اطبع النص الجديد من لوحة المفاتيح. مؤشر الإدخال " +"النابض يعلّم النقطة حيث يضاف النص. لتغيير هذا، استخدام مفاتيح الأسهم على لوحة " +"المفاتيح أو انقر بالفأرة." + +#: C/gedit.xml:414(para) +msgid "" +"To copy the selected text to the clipboard, choose " +"EditCopy." +msgstr "" +"لنسخ النص المُنتقى إلى الحافظة، اختر تحريرانسخ." + +#: C/gedit.xml:416(para) +msgid "" +"To delete the selected text from the file and move the selected text to the " +"clipboard, choose EditCut." +msgstr "" +"لحذف النص المنتقى من الملف ونقل النص المنتقى إلى الحافظة، اختر " +"تحريرقص." + +#: C/gedit.xml:418(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" +"لحذف النص المنتقى بشكل دائم من الملف، اختر تحريراحذف." + +#: C/gedit.xml:420(para) +msgid "" +"To insert the contents of the clipboard at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file, either from gedit or another application." +msgstr "" +"لإدراج محتويات الحافظة في موضع المؤشر، اختر تحريرألصق. يجب أن تقص أو تنسخ نصا " +"قبل أن تتمكن من لصق النص إلى الملف، سواءً من محرر النصوص أو تطبيق آخر." + +#: C/gedit.xml:422(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" +"لانتقاء كل النص في ملف، اختر تحريرانتقِ الكل." + +#: C/gedit.xml:428(title) +msgid "Undoing and Redoing Changes" +msgstr "استرجاع وإعادة التغييرات" + +#: C/gedit.xml:429(para) +msgid "" +"To undo a change you have made, choose EditUndo. To reverse this " +"action, choose EditRedo." +msgstr "" +"للتراجع عن تعديل قمت به، اختر تحريرتراجع. لعكس الإجراء، اختر " +"تحريرأعِد." + +#: C/gedit.xml:434(title) +msgid "Finding and Replacing" +msgstr "الإيجاد والاستبدال" + +#: C/gedit.xml:436(para) +msgid "" +"In gedit, there are two ways of searching for " +"text. You can use the Find dialog to search for a " +"specific piece of text, or Incremental Search to " +"highlight matching text as you type it." +msgstr "" +"في محرر النصوص، يوجد طريقتين للبحث عن نص. تستطيع " +"استخدام حوار إيجاد للبحث عن جزء محدد من النص، أو " +"بحث تزايدي لإبراز نص يطابق الذي تكتبه." + +#: C/gedit.xml:441(title) +msgid "Finding Text" +msgstr "إيجاد النص" + +#: C/gedit.xml:442(para) +msgid "To search a file for a string of text, perform the following steps:" +msgstr "للبحث في ملف عن مقطع من نص، أدِ الخطوات التالية:" + +#: C/gedit.xml:444(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" +"اختر بحثجِد لعرض حوار إيجاد." + +#: C/gedit.xml:446(para) +msgid "" +"Type the string that you want to find in the Search for " +"field. You can include special characters such as a new line or tab: see " +"." +msgstr "" +"اطبع المقطع الذي تريد إيجاده في حقل ابحث عن. تستطيع " +"تضمين محارف خاصة مثل سطر جديد أو Tab: راجع ." + +#: C/gedit.xml:448(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string after your current cursor position. If " +"gedit finds the string, the application selects " +"first occurrence of the string. Other occurrences of the string are " +"highlighted." +msgstr "" +"انقر جِد للبحث في الملف عن أول مصادفة للمقطع بعد موضع " +"المؤشر الحالي. إذا وجد محرر النصوص المقطع، ينتقي " +"التطبيق أول مصادفة للمقطع. المصادفات الآخرى للمقطع سوف تُبرز." + +#: C/gedit.xml:450(para) +msgid "" +"To find the next occurrence of the string, click Find " +"or choose SearchFind Next. To find the previous occurrence of the text, " +"choose SearchFind Previous." +msgstr "" +"لإيجاد المصادفة التالي للمقطع، انقر جٍد أو اختر " +"بحثجد التالي. لإيجاد المصادفة السابقة للنص، اختر بحثجد السابق." + +#: C/gedit.xml:453(para) +msgid "" +"After you have closed the Find dialog, you can still " +"move the selection to other occurrences of the text by choosing " +"SearchFind Next and SearchFind " +"Previous." +msgstr "" +"بعد إغلاقك لحوار إيجاد، مازال يمكنك نقل التحديد " +"لمصادفات أخرى للنص عن طريق اختيار بحثجد التالي أو " +"بحثجد السابق." + +#: C/gedit.xml:454(para) +msgid "" +"To remove the highlighting from the text, choose " +"SearchClear Highlight." +msgstr "" +"لإزالة الإبراز من النص، اختر بحثامسح الإبراز." + +#: C/gedit.xml:458(title) +msgid "Incremental Search" +msgstr "البحث التزايدي" + +#: C/gedit.xml:460(para) +msgid "" +"Incremental search highlights matching text in the document as you type it " +"letter by letter. (This is similar to the search feature in several web " +"browsers.)" +msgstr "" +"البحث التزايدي يعلم النص المطابق في المستند كما تكتبه حرفا حرفا. (هذا شبيه " +"بميزة البحث في متصفحات وب عديدة.)" + +#: C/gedit.xml:461(para) +msgid "" +"To start an incremental search, choose SearchIncremental Search. The " +"search box appears at the top of the display area." +msgstr "" +"لبدء بحث تزايدي، اختر بحثبحث " +"تزايدي." + +#: C/gedit.xml:462(para) +msgid "" +"Begin typing, and text that matches will be highlighted in the document. The " +"first instance after the cursor position is also selected." +msgstr "" +"اكتب، وسيُبرز النص الذي يطابق في المستند. أول مثال بعد موضع المؤشر سوف يُنتقى " +"أيضا." + +#: C/gedit.xml:463(para) +msgid "" +"To advance the selection to the next match while keeping the incremental " +"search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +msgstr "" +"لتقديم الانتقاء إلى التطابق التالي أثناء فتح الصندوق التزايدي، انقر " +"CtrlG. انقر " +"CtrlShiftG للرجوع إلى التطابق السابق." + +#: C/gedit.xml:464(para) +msgid "" +"You can also use the up and down arrow keys or the mouse wheel to move the " +"selection between matches." +msgstr "" +"تستطيع أيضا استخدام مفتاحي السهمين أعلى وأسفل أو عجلة الفأرة لنقل التحديد " +"بين التطابقات." + +#: C/gedit.xml:469(title) +msgid "Replacing Text" +msgstr "استبدال نص" + +#: C/gedit.xml:471(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "للبحث في ملف عن نص، واستبدال النص بنص بديل، أدِ الخطوات التالية:" + +#: C/gedit.xml:473(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"اختر بحثاستبدل لعرض حوار استبدال." + +#: C/gedit.xml:475(para) +msgid "" +"Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +"tab: see ." +msgstr "" +"اطبع النص الذي تريد إيجاده، في حقل ابحث عن. تستطيع " +"تضمين محارف خاصة مثل سطر جديد أو اللسان: راجع ." + +#: C/gedit.xml:476(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "" +"اطبع النص الذي تريد استخدامه لاستبدال النص الذي وجدته، في حقل " +"استبدل بـ:" + +#: C/gedit.xml:480(para) +msgid "" +"To examine each occurrence of the string before replacing it, click " +"Find. If gedit finds the " +"string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +"next occurrence of the string, click Find again." +msgstr "" +"لتفحص كل مصادفة للنص قبل استبداله، انقر جِد. إذا وجد " +"محرر النصوص النص، سوف ينتقي التطبيق النص. انقر " +"استبدل لاستبدال المصادفة المنتقاة للنص. لإيجاد " +"المصادفة التالية، انقر جِد مجددا." + +#: C/gedit.xml:481(para) +msgid "" +"To replace all occurrences of the string throughout the document, click " +"Replace All." +msgstr "" +"لاستبدال كل مصادفات النص على طول المستند، انقر استبدل الكل." + +#: C/gedit.xml:486(title) +msgid "Find and Replace Options" +msgstr "خيارات البحث والاستبدال" + +#: C/gedit.xml:487(para) +msgid "" +"The Find dialog and the Replace " +"dialog both have the following options:" +msgstr "" +"حوار إيجاد وحوار استبدال كلاهما " +"لهما الخيارات التالية:" + +#: C/gedit.xml:489(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type. For example, " +"with Match case selected, \"TEXT\" will not match \"text" +"\"." +msgstr "" +"انتقِ الخيار طابق الحالة لإيجاد أي حالات للنص تطابق حالة " +"النص الذي طبعته. على سبيل المثال، مع انتقاء طابق الحالة، \"TEXT\" لن تطابق \"text\"." + +#: C/gedit.xml:491(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type. For example, with Match entire word only " +"selected, \"text\" will not match \"texture\"." +msgstr "" +"انتقِ الخيار طابق كامل الكلمة فقط لإيجاد فقط مصادفات " +"النص التي تطابق كلمات النص الكاملة التي طبعتها. على سبيل المثال، مع انتقاء " +"طابق كامل الكلمة فقط، \"نص\" لن تطابق \"نصي\"." + +#: C/gedit.xml:493(para) +msgid "" +"Select the Search backwards option to search backwards " +"towards the beginning of the document." +msgstr "" +"انتقِ الخيار ابحث إلى الخلف للبحث إلى الخلف إلى بداية " +"المستند." + +#: C/gedit.xml:495(para) +msgid "" +"Select the Wrap around option to search to one end of " +"the document and then continue the search from the other end of the file." +msgstr "" +"انتقِ خيار لف حول للبحث إلى نهاية المستند ثم استمرار " +"البحث من النهاية الأخرى للملف." + +#: C/gedit.xml:502(title) +msgid "Special Characters" +msgstr "المحارف الخاصة" + +#: C/gedit.xml:503(para) +msgid "" +"You can include the following escape sequences in the text to find or " +"replace to represent special characters:" +msgstr "" +"يمكنك تضمين التسلسلات الهاربة التالية في النص للإيجاد أو الاستبدال إلى " +"المحارف الممثلة التالية:" + +#: C/gedit.xml:506(literal) +msgid "\\n" +msgstr "\\n" + +#: C/gedit.xml:508(para) +msgid "Specifies a new line." +msgstr "يحدد سطرا جديدا." + +#: C/gedit.xml:512(literal) +msgid "\\t" +msgstr "\\t" + +#: C/gedit.xml:514(para) +msgid "Specifies a tab character." +msgstr "يحدد محرّف اللسان." + +#: C/gedit.xml:518(literal) +msgid "\\r" +msgstr "\\r" + +#: C/gedit.xml:520(para) +msgid "Specifies a carriage return." +msgstr "يحدد عودة ناقل." + +#: C/gedit.xml:524(literal) +msgid "\\\\" +msgstr "\\\\" + +#: C/gedit.xml:526(para) +msgid "" +"The backslash character itself must be escaped if it is being searched for. " +"For example, if you are looking for the \"\\n\" literal, " +"you will have to type \"\\\\n\" in the Search for " +"field. Or if you are looking for a sequence of backslashes, you will have to " +"double the number of searched backslashes." +msgstr "" +"محرّف الخط المائل العكسي ذاته يجب أن يهرب إذا بُحث عنه. على سبيل المثال، إذا " +"كنت تبحث عن \"\\n\" حرفيا، عليك طباعة \"\\\\n\" في حقل " +"ابحث عن. أو إذا كنت تبحث عن تسلسل خطوط مائلة عكسية، " +"عليك مضاعفة عدد الحطوط المائلة المعكوسة المبحوث عنها." + +#: C/gedit.xml:538(title) +msgid "Positioning the Cursor on a Specific Line" +msgstr "وضع المؤشر على سطر محدد" + +#: C/gedit.xml:540(para) +msgid "" +"To position the cursor on a specific line in the current file, choose " +"SearchGo to Line. The line number box appears at the top of the display area." +msgstr "" +"لوضع المؤشر على سطر معين في الملف الحالي، اختر بحثاذهب إلى السطر. صندوق رقم " +"السطر يظهر في أعلى منطقة العرض." + +#: C/gedit.xml:541(para) +msgid "" +"Begin typing the number of the line that you want to move the cursor to and " +"the document will scroll to the specified line." +msgstr "" +"عندما تطبع رقم السطر الذي تريد نقل المؤشر إليه، سوف يلف المستند إلى السطر " +"المحدد." + +#: C/gedit.xml:542(para) +msgid "" +"To dismiss the box and move the cursor to the specified line, press " +"Return." +msgstr "" +"لإيقاف الصندوق وتحريك المؤشر إلى السطر المحدد، اضغط إدخال." + +#: C/gedit.xml:548(title) +msgid "Printing" +msgstr "الطباعة" + +#: C/gedit.xml:552(title) +msgid "Setting the Page Options" +msgstr "ضبط خيارات الصفحة" + +#: C/gedit.xml:554(para) +msgid "" +"To set the page options, choose FilePage Setup to display the " +"Page Setup dialog." +msgstr "" +"لضبط خيارات الصفحة، اختر ملفإعداد الصفحة لعرض حوار " +"إعداد الصفحة." + +#: C/gedit.xml:556(para) +msgid "" +"The Page Setup dialog enables you to specify the " +"following print options:" +msgstr "" +"حوار إعداد الصفحة يتيح لك تحديد خيارات الطباعة التالية:" + +#: C/gedit.xml:559(title) +msgid "General Tabbed Section" +msgstr "القسم العام المؤلسن" + +#: C/gedit.xml:561(guilabel) +msgid "Print syntax highlighting" +msgstr "طباعة إبراز الصياغة" + +#: C/gedit.xml:563(para) +msgid "" +"Select this option to print syntax highlighting. For more information about " +"syntax highlighting, see ." +msgstr "" +"انتقِ هذا الخيار لطباعة تعليم الصياغة. لمزيد من المعلومات حول إبراز الصياغة، " +"راجع ." + +#: C/gedit.xml:566(guilabel) +msgid "Print page headers" +msgstr "طباعة ترويسات الصفحة" + +#: C/gedit.xml:568(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "انتقِ هذا الخيار لتضمين ترويسة لكل صفحة تطبعها. لا يمكنك ضبط الترويسة." + +#: C/gedit.xml:571(guilabel) C/gedit.xml:1175(guilabel) +msgid "Line Numbers" +msgstr "أرقام السطور" + +#: C/gedit.xml:574(para) +msgid "" +"Select the Print line numbers option to include line " +"numbers when you print a file." +msgstr "" +"انتقِ خيار طباعة أرقام السطور لتضمين أرقام السطور عندما " +"تطبع ملفا." + +#: C/gedit.xml:575(para) +msgid "" +"Use the Number every ... lines spin box to specify how " +"often to print the line numbers, for example every 5 lines, every 10 lines, " +"and so on." +msgstr "" +"استخدم صندوق رقّم كل ... سطر لتحديد مرات طباعة أرقام " +"الأسطر، على سبيل المثال، كل 5 أسطر، وكل 10 أسطر، وهكذا." + +#: C/gedit.xml:578(guilabel) C/gedit.xml:1168(guilabel) C/gedit.xml:1687(para) +msgid "Text Wrapping" +msgstr "لف النص" + +#: C/gedit.xml:580(para) +msgid "" +"Select the Enable text wrapping option to wrap text " +"onto the next line, at a character level, when you print a file. The " +"application counts wrapped lines as one line for line numbering purposes." +msgstr "" +"انتقِ خيار فعّل لف النص للف النص إلى السطر التالي، على " +"مستوى المحرف، عندما تطبع ملفا. يعد التطبيق الأسطر الملفوفة كسطر واحد لعملية " +"ترقيم السطر." + +#: C/gedit.xml:582(para) +msgid "" +"Select the Do not split words over two lines option to " +"wrap text onto the next line, at a word level, when you print a file." +msgstr "" +"انتقِ خيار لا تشقّ الكلمات على سطرين للف النص إلى السطر " +"التالي، على مستوة الكلمة، عندما تطبع ملفا." + +#: C/gedit.xml:590(title) +msgid "Fonts" +msgstr "الخطوط" + +#: C/gedit.xml:592(guilabel) +msgid "Body" +msgstr "الجسم" + +#: C/gedit.xml:594(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "انقر على هذا الزر لانتقاء الخط لاستخدامه لطباعة جسم نص ملف." + +#: C/gedit.xml:597(guilabel) +msgid "Line numbers" +msgstr "رقم السطور" + +#: C/gedit.xml:600(para) +msgid "Click on this button to select the font to use to print line numbers." +msgstr "انقر على هذا الزر لانتقاء الخط لاسخدامه لطباعة أرقام السطور." + +#: C/gedit.xml:603(guilabel) +msgid "Headers and footers" +msgstr "الترويسات والتذييلات" + +#: C/gedit.xml:605(para) +msgid "" +"Click on this button to select the font to use to print the headers and " +"footers in a file." +msgstr "" +"انقر على هذا الزر لانتقاء الخط لاسخدامه لطباعة الترويسات والهوامش في ملف." + +#: C/gedit.xml:609(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit, click Restore Default Fonts." +msgstr "" +"لإعادة ضبط الخطوط إلى الخطوط المبدئية لطباعة ملف من محرر " +"النصوص، انقر استرجع الخطوط المبدئية." + +#: C/gedit.xml:616(title) +msgid "Printing a Document" +msgstr "طباعة مستند" + +#: C/gedit.xml:617(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "" +"تستطيع استخدام محرر النصوص لتأدية عمليات الطباعة " +"التالية:" + +#: C/gedit.xml:619(para) +msgid "Print a document to a printer." +msgstr "طباعة مستند إلى طابعة." + +#: C/gedit.xml:621(para) +msgid "Print the output of the print command to a file." +msgstr "طباعة مخرج أمر الطباعة لملف." + +#: C/gedit.xml:624(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" +"إذا كنت تطبع ملفا، يرسل محرر النصوص مخرج الملف " +"إلى ملف قبل الضغط. أكثر أوامر قبل الضغط شيوعا هي بوست​سكربت ونسق " +"المستند المحمول (بي​دي​إف)." + +#: C/gedit.xml:626(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" +"لمعاينة الصفحات التي تريد طباعتها، اختر ملفمعاينة الطباعة." + +#: C/gedit.xml:628(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" +"لطباعة الملف الحالي إلى طباعة، اختر ملفاطبع لعرض حوار " +"طباعة." + +#: C/gedit.xml:630(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "حوار طباعة يتيح لك تحديد خيارات الطباعة التالية:" + +#: C/gedit.xml:633(title) +msgid "Job Tabbed Section" +msgstr "قسم الشغل المؤلسن" + +#: C/gedit.xml:635(guilabel) +msgid "Print range" +msgstr "مدى الطباعة" + +#: C/gedit.xml:637(para) +msgid "" +"Select one of the following options to determine how many pages to print:" +msgstr "انتقِ واحد من الخيارات التالية لتقرير عدد الصفحات لطبعها:" + +#: C/gedit.xml:640(guilabel) +msgid "All" +msgstr "كل" + +#: C/gedit.xml:641(para) +msgid "Select this option to print all of the pages in the file." +msgstr "انتقِ هذا الخيار لطباعة كل الصفحات في الملف." + +#: C/gedit.xml:644(guilabel) +msgid "Lines" +msgstr "سطور" + +#: C/gedit.xml:645(para) +msgid "" +"Select this option to print the specified lines only. Use the " +"From and To spin boxes to specify " +"the line range." +msgstr "" +"انتقِ هذا الخيار لطباعة الأسطر المُحددة فقط. استخدم الصندوقين من و إلى لتحديد مدى السطر." + +#: C/gedit.xml:648(guilabel) +msgid "Selection" +msgstr "انتقاء" + +#: C/gedit.xml:649(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" +"انتقِ هذا الخيار لطباعة النص المُنتقى فقط. هذا الخيار متاح فقط إذا انتقيت نصا." + +#: C/gedit.xml:655(guilabel) +msgid "Copies" +msgstr "نُسخ" + +#: C/gedit.xml:657(para) +msgid "" +"Use the Number of copies spin box to specify the number " +"of copies of the file that you want to print." +msgstr "" +"استخدم صندوق عدد النسخ لتحديد عدد النسخ التي تريد " +"طباعتها." + +#: C/gedit.xml:658(para) +msgid "" +"If you print multiple copies of the file, select the Collate option to collate the printed copies." +msgstr "" +"إذا طبعت نسخ متعددة لملف، انتقِ خيار رزم لجمع النسخ " +"المطبوعة." + +#: C/gedit.xml:665(title) +msgid "Printer Tabbed Section" +msgstr "قسم الطابعة المؤلسن" + +#: C/gedit.xml:667(guilabel) +msgid "Printer" +msgstr "الطابعة" + +#: C/gedit.xml:669(para) +msgid "" +"Use this drop-down list to select the printer to which you want to print the " +"file." +msgstr "استخدم القائمة المنسدلة لانتقاء الطابعة التي تريد طباعة الملف إليها." + +#: C/gedit.xml:672(guilabel) +msgid "Settings" +msgstr "الإعدادات" + +#: C/gedit.xml:674(para) +msgid "Use this drop-down list to select the printer settings." +msgstr "استخدم هذه القائمة المنسدلة لانتقاء خيارات الطابعة." + +#: C/gedit.xml:676(para) +msgid "" +"To configure the printer, click Configure. For " +"example, you can enable or disable duplex printing, or schedule delayed " +"printing, if this functionality is supported by the printer." +msgstr "" +"لضبط الطابعة، انقر اضبط. على سبيل المثال، إذا استطعت " +"تفعيل أو تعطيل الطباعة المزدوجة، أو جدولة الطباعة المتأخرة، إذا كانت هذه " +"المهام مدعومة من الطابعة." + +#: C/gedit.xml:680(guilabel) +msgid "Location" +msgstr "الموقع" + +#: C/gedit.xml:682(para) +msgid "" +"Use this drop-down list to select one of the following print destinations:" +msgstr "استخدم هذه القائمة المنسدلة لانتقاء واحدة من مقاصد الطباعة التالية:" + +#: C/gedit.xml:687(guilabel) +msgid "CUPS" +msgstr "سي​يوبي​إس" + +#: C/gedit.xml:689(para) +msgid "Print the file to a CUPS printer." +msgstr "طباعة الملف إلى طابعة سي​يوبي​إس." + +#: C/gedit.xml:693(para) +msgid "" +"If the selected printer is a CUPS printer, CUPS is the " +"only entry in this drop-down list." +msgstr "" +"إذا كانت الطابعة المنتقاة طباعة سي​يوبي​إس، سي​" +"يوبي​إس هي المدخلة الوحيدة في هذه القائمة المنسدلة." + +#: C/gedit.xml:700(guilabel) +msgid "lpr" +msgstr "إل​بي​آر" + +#: C/gedit.xml:702(para) +msgid "Print the file to a printer." +msgstr "طباعة الملف إلى طباعة." + +#: C/gedit.xml:708(guilabel) +msgid "File" +msgstr "ملف" + +#: C/gedit.xml:710(para) +msgid "Print the file to a PostScript file." +msgstr "طباعة الملف إلى ملف بوست​سكربت" + +#: C/gedit.xml:713(para) +msgid "" +"Click Save As to display a dialog where you specify " +"the name and location of the PostScript file." +msgstr "" +"انقر احفظ ك لعرض حوار أين تحديد اسم وموقع ملف " +"بوست​سكربت." + +#: C/gedit.xml:719(guilabel) +msgid "Custom" +msgstr "مخصص" + +#: C/gedit.xml:721(para) +msgid "Use the specified command to print the file." +msgstr "استخدم الأمر المحدد لطباعة الملف." + +#: C/gedit.xml:724(para) +msgid "" +"Type the name of the command in the text box. Include all command-line " +"arguments." +msgstr "اطبع اسم الأمر في مربع النص. تضمن كل مدخلات سطر الأوامر." + +#: C/gedit.xml:732(guilabel) +msgid "State" +msgstr "الحالة" + +#: C/gedit.xml:734(para) C/gedit.xml:740(para) C/gedit.xml:746(para) +msgid "This functionality is not supported in this version of gedit." +msgstr "هذه الخاصية غير مدعومة في إصدار محرر النصوص هذا." + +#: C/gedit.xml:738(guilabel) +msgid "Type" +msgstr "النوع" + +#: C/gedit.xml:744(guilabel) +msgid "Comment" +msgstr "التعليق" + +#: C/gedit.xml:754(title) +msgid "Paper Tabbed Section" +msgstr "قسم الورقة المؤلسن" + +#: C/gedit.xml:756(guilabel) +msgid "Paper size" +msgstr "خحم الورقة" + +#: C/gedit.xml:758(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "" +"استخدم القائمة المنسدلة لانتقاء حجم الورقة التي تريد طباعة الملف عليها." + +#: C/gedit.xml:761(guilabel) +msgid "Width" +msgstr "العرض" + +#: C/gedit.xml:763(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit." +msgstr "" +"استخدم هذا الصندوق لتحديد عرض الورقة. استخدم القائمة المنسدلة المجاورة " +"لتعديل وحدة القياس." + +#: C/gedit.xml:766(guilabel) +msgid "Height" +msgstr "الطول" + +#: C/gedit.xml:768(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "استخدم هذا الصندوق لتحديد طول الورقة." + +#: C/gedit.xml:771(guilabel) +msgid "Feed orientation" +msgstr "توجه التغذية" + +#: C/gedit.xml:773(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "استخدم هذه القائمة المنسدلة لانتقاء توجه الورقة في الطابعة." + +#: C/gedit.xml:776(guilabel) +msgid "Page orientation" +msgstr "توجه الصفحة" + +#: C/gedit.xml:778(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "استخدم هذه القائمة المنسدلة لانتقاء توجه الصفحة." + +#: C/gedit.xml:781(guilabel) +msgid "Layout" +msgstr "تخطيط" + +#: C/gedit.xml:783(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" +"استخدم هذه القائمة المنسدلة لانتقاء تخطيط الصفحة. معيانة لكل تخطيط تنتقيه " +"تُعرض في منطقة معاينة." + +#: C/gedit.xml:786(guilabel) +msgid "Paper tray" +msgstr "صينية الورق" + +#: C/gedit.xml:788(para) +msgid "Use this drop-down list to select the paper tray." +msgstr "استخدم هذه القائمة المنسدلة لانتقاء صينية الورق." + +#: C/gedit.xml:799(title) +msgid "Programming Features" +msgstr "مزايا البرمجة" + +#: C/gedit.xml:801(para) +msgid "" +"Several of gedit's features for programming are " +"provided with plugins. For example, the Tag List plugin provides a list of " +"commonly-used tags for different markup languages: see ." +msgstr "" +"العديد من مزايا محرر النصوص للبرمجية مقدمة " +"بملحقات. على سبيل المثلل، ملحق قائممة الوسمتقدم قائمة للوسوم المستخدمة بشكل " +"شائع لمختلف لغات الترقيم: راجع . " + +#: C/gedit.xml:805(title) +msgid "Syntax Highlighting" +msgstr "إبراز الصياغة" + +#: C/gedit.xml:806(para) +msgid "" +"Syntax highlighting makes source code easier to read by showing different " +"parts of the text in different colors." +msgstr "" +"يجعل ابراز صياغة الكود المصدري أسهل للقراءة بعرض الأجزاء المختلفة من النص " +"بألوان مختلفة." + +#: C/gedit.xml:808(para) +msgid "" +"gedit chooses an appropriate syntax highlighting " +"mode based on a document's type. To override the syntax highlighting mode, " +"choose ViewHighlight Mode, then choose one of the following menu items:" +msgstr "" +"يختار محرر النصوص نمط إبراز الصيغة المناسب بناءً " +"على نوع المستند. لتجاوز نمط إبراز الصيغة، اختر عرضنمط الإبراز، ثم اختر واحدا " +"من عناصر القائمة التالية:" + +#: C/gedit.xml:811(guimenuitem) +msgid "Normal" +msgstr "عادي" + +#: C/gedit.xml:813(para) +msgid "Do not display any syntax highlighting." +msgstr "لا تعرض أي إبراز صياغة." + +#: C/gedit.xml:817(guisubmenu) +msgid "Sources" +msgstr "المصادر" + +#: C/gedit.xml:819(para) +msgid "" +"Display syntax highlighting to edit source code. Use the " +"Sources submenu to select the source code type." +msgstr "" +"عرض إبراز الصياغة لتحرير الكود المصدري. استخدم قائمة مصادر الفرعية لانتقاء نوع الشيفرة المصدرية." + +#: C/gedit.xml:823(guisubmenu) +msgid "Markup" +msgstr "ترميز" + +#: C/gedit.xml:825(para) +msgid "" +"Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type." +msgstr "" +"عرض إبراز الصياغة لتحرير كود ترميز. استخدم قائمة ترميز الفرعية لانتقاء نوع شيفرة الترميز." + +#: C/gedit.xml:829(guisubmenu) +msgid "Scripts" +msgstr "سكربتات" + +#: C/gedit.xml:831(para) +msgid "" +"Display syntax highlighting to edit script code. Use the " +"Scripts submenu to select the script code type." +msgstr "" +"عرض إبراز الصياغة لتحرير كود سكربت. استخدك قائمة مخطوطات الرغية لانتقاء نوع شيفرة المخطوط." + +#: C/gedit.xml:835(guisubmenu) +msgid "Others" +msgstr "أخريات" + +#: C/gedit.xml:837(para) +msgid "" +"Display syntax highlighting to edit other types of code. Use the " +"Others submenu to select the code type." +msgstr "" +"عرض إبراز الصياغة لتحرير أنواع أخرى من الأكواد، استخدم قائمة " +"أخريات الفرعية لانتقاء نوع الشيفرة." + +#: C/gedit.xml:845(title) +msgid "Piping the Output of a Command to a File" +msgstr "توريد مخرج أمر إلى ملف" + +#: C/gedit.xml:846(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" +"تستطيع استخدام محرر النصوص لتوريد مخرج أمر إلى " +"ملف نصي. على سبيل المثال، لتوريد مخرج أمر ls إلى ملف نصي، " +"اطبع ls | gedit، ثم انقر إدخال." + +#: C/gedit.xml:847(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" +"مخرج أمر ls يُعرض في ملف نصي جديد في نافذة " +"محرر النصوص." + +#: C/gedit.xml:848(para) +msgid "" +"Alternatively, you can use the External tools " +"plugin to pipe command output to the current file." +msgstr "" +"بدلا من ذلك، تستطيع استخدام ملحق الأدوات الخارجية " +"لتوريد مخرج أمر إلى الملف الحالي." + +#: C/gedit.xml:854(title) +msgid "Shortcut Keys" +msgstr "مفاتيح الاختصار" + +#: C/gedit.xml:855(para) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the mouse " +"and menus. The following tables list all of gedit's shortcut keys." +msgstr "" +"استخدم مفاتيح الاختصار لتأدية المهام الشائعة أسرع من الفأرة والقوائم. " +"الجداول التالية تضع كل مفاتيح اختصار محرر النصوص " +"في قائمة." + +#: C/gedit.xml:856(para) +msgid "" +"For more on shortcut keys, see the Desktop User Guide." +msgstr "" +"للمزيد من مفاتيح الاختصار، راجع دليل مستخدم سطح المكتب." + +#. ============= Tabs ======================== +#: C/gedit.xml:859(bridgehead) C/gedit.xml:1207(guilabel) +msgid "Tabs" +msgstr "ألسنة" + +#: C/gedit.xml:860(para) +msgid "Shortcuts for tabs:" +msgstr "اختصارات الألسنة:" + +#: C/gedit.xml:868(para) C/gedit.xml:912(para) C/gedit.xml:968(para) +#: C/gedit.xml:1016(para) C/gedit.xml:1044(para) C/gedit.xml:1091(para) +#: C/gedit.xml:1134(para) +msgid "Shortcut Key" +msgstr "مفتاح الاختصار" + +#: C/gedit.xml:870(para) C/gedit.xml:914(para) C/gedit.xml:970(para) +#: C/gedit.xml:1018(para) C/gedit.xml:1046(para) C/gedit.xml:1093(para) +#: C/gedit.xml:1136(para) +msgid "Command" +msgstr "الأمر" + +#: C/gedit.xml:875(para) +msgid "Ctrl + Alt + PageUp" +msgstr "Ctrl + Alt + PageDown" + +#: C/gedit.xml:876(para) +msgid "Switches to the next tab to the left." +msgstr "يحوّل إلى اللسان التالي إلى اليسار." + +#: C/gedit.xml:879(para) +msgid "Ctrl + Alt + PageDown" +msgstr "Ctrl + Alt + PageDown" + +#: C/gedit.xml:880(para) +msgid "Switches to the next tab to the right." +msgstr "يحوّل إلى اللسان التالي إلى اليمين." + +#: C/gedit.xml:883(para) C/gedit.xml:947(para) +msgid "Ctrl + W" +msgstr "Ctrl + W" + +#: C/gedit.xml:884(para) +msgid "Close tab." +msgstr "أغلق اللسان." + +#: C/gedit.xml:887(para) +msgid "Ctrl + Shift + L" +msgstr "Ctrl + Shift + L" + +#: C/gedit.xml:888(para) +msgid "Save all tabs." +msgstr "احفظ كل الألسنة." + +#: C/gedit.xml:891(para) +msgid "Ctrl + Shift + W" +msgstr "Ctrl + Shift + W" + +#: C/gedit.xml:892(para) +msgid "Close all tabs." +msgstr "أغلق كل الألسنة." + +#: C/gedit.xml:895(para) +msgid "Alt + n" +msgstr "Alt + n" + +#: C/gedit.xml:896(para) +msgid "Jump to nth tab." +msgstr "يقفز إلى اللسان الأعلى." + +#. ============= Files ======================== +#: C/gedit.xml:903(bridgehead) +msgid "Files" +msgstr "ملفات" + +#: C/gedit.xml:904(para) +msgid "Shortcuts for working with files:" +msgstr "اختصارات العمل مع الملفات:" + +#: C/gedit.xml:919(para) +msgid "Ctrl + N" +msgstr "Ctrl + N" + +#: C/gedit.xml:920(para) +msgid "Create a new document." +msgstr "أنشئ مستندا جديدا." + +#: C/gedit.xml:923(para) +msgid "Ctrl + O" +msgstr "Ctrl + O" + +#: C/gedit.xml:924(para) +msgid "Open a document." +msgstr "افتح مستندا." + +#: C/gedit.xml:927(para) +msgid "Ctrl + L" +msgstr "Ctrl + L" + +#: C/gedit.xml:928(para) +msgid "Open a location." +msgstr "افتح موقعا." + +#: C/gedit.xml:931(para) +msgid "Ctrl + S" +msgstr "Ctrl + S" + +#: C/gedit.xml:932(para) +msgid "Save the current document to disk." +msgstr "احفظ المستند الحالي إلى القرص." + +#: C/gedit.xml:935(para) +msgid "Ctrl + Shift + S" +msgstr "Ctrl + Shift + S" + +#: C/gedit.xml:936(para) +msgid "Save the current document with a new filename." +msgstr "احفظ المستند الحالي باسم ملف جديد." + +#: C/gedit.xml:939(para) +msgid "Ctrl + P" +msgstr "Ctrl + P" + +#: C/gedit.xml:940(para) +msgid "Print the current document." +msgstr "اطبع المستند الحالي." + +#: C/gedit.xml:943(para) +msgid "Ctrl + Shift + P" +msgstr "Ctrl + Shift + P" + +#: C/gedit.xml:944(para) +msgid "Print preview." +msgstr "عينة الطباعة." + +#: C/gedit.xml:948(para) +msgid "Close the current document." +msgstr "أغلق المستند الحالي." + +#: C/gedit.xml:951(para) +msgid "Ctrl + Q" +msgstr "Ctrl + Q" + +#: C/gedit.xml:952(para) +msgid "Quit Gedit." +msgstr "يخرج محرر النصوص." + +#. ============= Edit ======================= +#: C/gedit.xml:959(bridgehead) C/gedit.xml:1408(guimenu) +#: C/gedit.xml:1414(guimenu) C/gedit.xml:1420(guimenu) +#: C/gedit.xml:1426(guimenu) +msgid "Edit" +msgstr "تحرير" + +#: C/gedit.xml:960(para) +msgid "Shortcuts for editing documents:" +msgstr "اختصارات تحرير المستندات:" + +#: C/gedit.xml:975(para) +msgid "Ctrl + Z" +msgstr "Ctrl + Z" + +#: C/gedit.xml:976(para) +msgid "Undo the last action." +msgstr "استرجاع آخر إجراء." + +#: C/gedit.xml:979(para) +msgid "Ctrl + Shift + Z" +msgstr "Ctrl + Shift + Z" + +#: C/gedit.xml:980(para) +msgid "Redo the last undone action ." +msgstr "إعادة آخر إجراء مُسترجع." + +#: C/gedit.xml:983(para) +msgid "Ctrl + X" +msgstr "Ctrl + X" + +#: C/gedit.xml:984(para) +msgid "Cut the selected text or region and place it on the clipboard." +msgstr "قص النص أو المنطقة المنقاة ووضعها في الحافظة." + +#: C/gedit.xml:987(para) +msgid "Ctrl + C" +msgstr "Ctrl + C" + +#: C/gedit.xml:988(para) +msgid "Copy the selected text or region onto the clipboard." +msgstr "نسخ النص أو المنقطة المنقاة إلى الحافظة." + +#: C/gedit.xml:991(para) +msgid "Ctrl + V" +msgstr "Ctrl + V" + +#: C/gedit.xml:992(para) +msgid "Paste the contents of the clipboard." +msgstr "لصق محتويات الحافظة." + +#: C/gedit.xml:995(para) +msgid "Ctrl + A" +msgstr "Ctrl + A" + +#: C/gedit.xml:996(para) +msgid "Select all." +msgstr "انتقِ الكل." + +#: C/gedit.xml:999(para) +msgid "Ctrl + D" +msgstr "Ctrl + D" + +#: C/gedit.xml:1000(para) +msgid "Delete current line." +msgstr "احذف السطر الحالي" + +#. ============= Panes ======================= +#: C/gedit.xml:1007(bridgehead) +msgid "Panes" +msgstr "الألواح" + +#: C/gedit.xml:1008(para) +msgid "Shortcuts for showing and hiding panes:" +msgstr "اختصارات عرض وإخفاء اللوحات:" + +#: C/gedit.xml:1023(para) +msgid "F9" +msgstr "F9" + +#: C/gedit.xml:1024(para) +msgid "Show/hide the side pane." +msgstr "إظهار/إخفاء اللوحة الجانبية." + +#: C/gedit.xml:1027(para) +msgid "Ctrl + F9" +msgstr "Ctrl + F9" + +#: C/gedit.xml:1028(para) +msgid "Show/hide the bottom pane." +msgstr "إظهار/إخفاء اللوحة السفلية." + +#. ============= Search ======================= +#: C/gedit.xml:1035(bridgehead) +msgid "Search" +msgstr "البحث" + +#: C/gedit.xml:1036(para) +msgid "Shortcuts for searching:" +msgstr "اختصارات البحث:" + +#: C/gedit.xml:1051(para) +msgid "Ctrl + F" +msgstr "Ctrl + D" + +#: C/gedit.xml:1052(para) +msgid "Find a string." +msgstr "جِد نصا." + +#: C/gedit.xml:1055(para) +msgid "Ctrl + G" +msgstr "Ctrl + G" + +#: C/gedit.xml:1056(para) +msgid "Find the next instance of the string." +msgstr "جِد المماثل التالي للنص." + +#: C/gedit.xml:1059(para) +msgid "Ctrl + Shift + G" +msgstr "Ctrl + Shift + G" + +#: C/gedit.xml:1060(para) +msgid "Find the previous instance of the string." +msgstr "جِد المماثل السابق للنص." + +#: C/gedit.xml:1063(para) +msgid "Ctrl + K" +msgstr "Ctrl + K" + +#: C/gedit.xml:1064(para) +msgid "Interactive search." +msgstr "بحث تفاعلي." + +#: C/gedit.xml:1067(para) +msgid "Ctrl + H" +msgstr "Ctrl + H" + +#: C/gedit.xml:1068(para) +msgid "Search and replace." +msgstr "ابحث واستبدل." + +#: C/gedit.xml:1071(para) +msgid "Ctrl + Shift + K" +msgstr "Ctrl + Shift + K" + +#: C/gedit.xml:1072(para) +msgid "Clear highlight." +msgstr "نظّف الإبراز." + +#: C/gedit.xml:1075(para) +msgid "Ctrl + I" +msgstr "Ctrl + I" + +#: C/gedit.xml:1076(para) +msgid "Goto line." +msgstr "اذهب إلى سطر." + +#. ============= Tools ======================= +#: C/gedit.xml:1082(bridgehead) +msgid "Tools" +msgstr "أدوات" + +#: C/gedit.xml:1083(para) +msgid "Shortcuts for tools:" +msgstr "اختصارات الأدوات:" + +#: C/gedit.xml:1098(para) +msgid "Shift + F7" +msgstr "Shift + F7" + +#: C/gedit.xml:1099(para) +msgid "Check spelling (with plugin)." +msgstr "دقق الإملاء (بملحق)" + +#: C/gedit.xml:1102(para) +msgid "Alt + F12" +msgstr "Alt + F12" + +#: C/gedit.xml:1103(para) +msgid "Remove trailing spaces (with plugin)." +msgstr "أزل المسافات المفرطة (بملحق)." + +#: C/gedit.xml:1106(para) +msgid "Ctrl + T" +msgstr "Ctrl + T" + +#: C/gedit.xml:1107(para) +msgid "Indent (with plugin)." +msgstr "أزح (بملحق)." + +#: C/gedit.xml:1110(para) +msgid "Ctrl + Shift + T" +msgstr "Ctrl + Shift + T" + +#: C/gedit.xml:1111(para) +msgid "Remove Indent (with plugin)." +msgstr "احذف الإزاحة (بملحق)." + +#: C/gedit.xml:1114(para) +msgid "F8" +msgstr "F8" + +#: C/gedit.xml:1115(para) +msgid "Run \"make\" in current directory (with plugin)." +msgstr "شغلّ \"make\" في الدليل الحالي (بملحق)." + +#: C/gedit.xml:1118(para) +msgid "Ctrl + Shift + D" +msgstr "Ctrl + Shift + D" + +#: C/gedit.xml:1119(para) +msgid "Directory listing (with plugin)." +msgstr "سرد الدليل (بملحق)." + +#. ============= Help ======================= +#: C/gedit.xml:1125(bridgehead) +msgid "Help" +msgstr "مساعدة" + +#: C/gedit.xml:1126(para) +msgid "Shortcuts for help:" +msgstr "اختصارات المساعدة:" + +#: C/gedit.xml:1141(para) +msgid "F1" +msgstr "F1" + +#: C/gedit.xml:1142(para) +msgid "Open gedit's user manual." +msgstr "افتح دليل مستخدم محرر النصوص." + +#: C/gedit.xml:1154(title) +msgid "Preferences" +msgstr "التفضيلات" + +#: C/gedit.xml:1156(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" +"لتهيئة gedit، اختر تحريرالتفضيلات. حوار " +"التفضيلات يحتوي التصانيف التالية:" + +#: C/gedit.xml:1165(title) +msgid "View Preferences" +msgstr "تفضيلات العرض" + +#: C/gedit.xml:1170(para) +msgid "" +"Select the Enable text wrapping option to have long " +"lines of text flow into paragraphs instead of running off the edge of the " +"text window. This avoids having to scroll horizontally" +msgstr "" +"انتقِ خيار فعّل لف النص لتحول أسطر النص الطويلة إلى فقرات " +"بدلا من تخطي حافة نافذة النص. هذا يتخطى الاضطرار للف أفقيا." + +#: C/gedit.xml:1171(para) +msgid "" +"Select the Do not split words over two lines option to " +"have the text wrapping option preserve whole words when flowing text to the " +"next line. This makes text easier to read." +msgstr "" +"انتقِ خيار لا تشقّ الكلمات على سطرين لتحصل على خيار لف " +"النص يحفظ الكلمات الكاملة عندما يكون النص في السطر التالي. هذا يجعل التص " +"أسهل للقراءة." + +#: C/gedit.xml:1177(para) +msgid "" +"Select the Display line numbers option to display line " +"numbers on the left side of the gedit window." +msgstr "" +"انتقِ خيار عرض أرقام السطور لعرض أرقام الأسطر على الجانب " +"الأيسر من نافذة محرر النصوص." + +#: C/gedit.xml:1181(guilabel) +msgid "Current Line" +msgstr "السطر الحالي" + +#: C/gedit.xml:1183(para) +msgid "" +"Select the Highlight current line option to highlight " +"the line where the cursor is placed." +msgstr "" +"انتقِ خيار أبرز السطر الحالي لإبراز السطر حيث وُضع المؤشر." + +#: C/gedit.xml:1187(guilabel) +msgid "Right Margin" +msgstr "الحاشية اليمنى" + +#: C/gedit.xml:1189(para) +msgid "" +"Select the Display right margin option to display a " +"vertical line that indicates the right margin." +msgstr "" +"انتقِ خيار اعرض الحاشية اليمنى لعرض سطر عامودي يشير إلى " +"الحاشية السفلية." + +#: C/gedit.xml:1190(para) +msgid "" +"Use the Right margin at column spin box to specify the " +"location of the vertical line." +msgstr "" +"استخدم صندوق الحاشية اليمنى ابتداء من العمود لتحديد " +"موقع السطر العامدوي." + +#: C/gedit.xml:1194(guilabel) +msgid "Bracket Matching" +msgstr "تطابق القوس" + +#: C/gedit.xml:1196(para) +msgid "" +"Select the Highlight matching bracket option to " +"highlight the corresponding bracket when the cursor is positioned on a " +"bracket character." +msgstr "" +"انتقِ خيار أبرز القوس المطابق لإبراز القوس المطابق عندما " +"يوضع المؤشر على محرف قوس." + +#: C/gedit.xml:1204(title) +msgid "Editor Preferences" +msgstr "تفضيلات المحرر" + +#: C/gedit.xml:1209(para) +msgid "" +"Use the Tab width spin box to specify the width of the " +"space that gedit inserts when you press the " +"Tab key." +msgstr "" +"استخدم صندوق عرض اللسان لتحديد عرض المساحة التي يدرجها " +"محرر النصوص عندما تضغط مفتاح Tab." + +#: C/gedit.xml:1210(para) +msgid "" +"Select the Insert spaces instead of tabs option to " +"specify that gedit inserts spaces instead of a " +"tab character when you press the Tab key." +msgstr "" +"انتقِ خيار إدراج مسافات عوض الألسنة لتخصيص " +"محرر النصوص لإدراج مسافات بدلا من محرف اللسان عند " +"ضغط مفتاح Tab." + +#: C/gedit.xml:1214(guilabel) +msgid "Auto Indentation" +msgstr "إزاحة آلية" + +#: C/gedit.xml:1216(para) +#, fuzzy +msgid "" +"Select the Enable auto indentation option to specify " +"that the next line starts at the indentation level of the current line." +msgstr "انتقِ الخيار " + +#: C/gedit.xml:1220(guilabel) +msgid "File Saving" +msgstr "حفظ ملف" + +#: C/gedit.xml:1222(para) +#, fuzzy +msgid "" +"Select the Create a backup copy of files before saving " +"option to create a backup copy of a file each time you save the file. The " +"backup copy of the file contains a ~ at the end of the filename." +msgstr "انتقِ الخيار " + +#: C/gedit.xml:1223(para) +msgid "" +"Select the Autosave files every ... minutes option to " +"automatically save the current file at regular intervals. Use the spin box " +"to specify how often you want to save the file." +msgstr "" +"انتقِ الخيار احفظ الملفات آليّا كل ... دقيقة لحفظ الملف " +"الحالي تلقائيا كل عدد اعتيادي. استخدم الصندوق لتحديد تكرار رغبتك في حفظ " +"الملف." + +#: C/gedit.xml:1230(title) +msgid "Font & Colors Preferences" +msgstr "تفضيلات الخط والألوان" + +#: C/gedit.xml:1233(guilabel) +msgid "Font" +msgstr "الخط" + +#: C/gedit.xml:1235(para) +msgid "" +"Select the Use default theme font option to use the " +"default system font for the text in the gedit " +"text window." +msgstr "" +"انتقِ خيار استخدم سمة خط السمة المبدئي لاستخدام خط " +"النظام المبدئي للنص في نافذة نص محرر النصوص." + +#: C/gedit.xml:1236(para) +msgid "" +"The Editor font field displays the font that " +"gedit uses to display text. Click on the button " +"to specify the font type, style, and size to use for text." +msgstr "" +"حقل خط المحرر يعرض الخط الذي يستخدمه محرر " +"النصوص لعرض النص. انقر على الزر لتحديد نوع الخط، وأسلوبه، " +"وحجمه لاستخدامه للنص." + +#: C/gedit.xml:1240(guilabel) +msgid "Color Scheme" +msgstr "" + +#: C/gedit.xml:1242(para) +msgid "" +"You can choose a color scheme from the list of color schemes. By default, " +"the following color schemes are installed:" +msgstr "" + +#: C/gedit.xml:1245(guilabel) +msgid "Classic" +msgstr "" + +#: C/gedit.xml:1247(para) +msgid "Classic color scheme based on the gvim color scheme." +msgstr "" + +#: C/gedit.xml:1251(guilabel) +msgid "Cobalt" +msgstr "" + +#: C/gedit.xml:1253(para) +msgid "Blue based color scheme." +msgstr "" + +#: C/gedit.xml:1257(guilabel) +#, fuzzy +msgid "Kate" +msgstr "الحالة" + +#: C/gedit.xml:1259(para) +msgid "Color scheme used in the Kate text editor." +msgstr "" + +#: C/gedit.xml:1263(guilabel) +msgid "Oblivion" +msgstr "" + +#: C/gedit.xml:1265(para) +msgid "Dark color scheme using the Tango color palette." +msgstr "" + +#: C/gedit.xml:1269(guilabel) +msgid "Tango" +msgstr "" + +#: C/gedit.xml:1271(para) +msgid "Color scheme using the Tango color scheme." +msgstr "" + +#: C/gedit.xml:1275(para) +msgid "" +"You can add a new color scheme by clicking on Add..., " +"and selecting a color scheme file" +msgstr "" + +#: C/gedit.xml:1276(para) +msgid "" +"You can remove the selected color scheme by clicking on Remove" +msgstr "" + +#: C/gedit.xml:1283(title) +msgid "Plugins Preferences" +msgstr "تفضيلات الملحقات" + +#: C/gedit.xml:1284(para) +msgid "" +"Plugins add extra features to gedit. For more " +"information on plugins and how to use the built-in plugins, see ." +msgstr "" +"تضيف الملحقات مزايا إضافية إلى محرر النصوص. لمزيد " +"من المعلومات حول الملحقات وكيفية استخدام الملحقات المضمّنة، راجع ." + +#: C/gedit.xml:1288(title) +msgid "Enabling a Plugin" +msgstr "تفعيل ملحق" + +#: C/gedit.xml:1289(para) +msgid "" +"To enable a gedit plugin, perform the following " +"steps:" +msgstr "" +"لتفعيل ملحق محرر النصوص، أدِ الخطوات التالية:" + +#: C/gedit.xml:1292(para) C/gedit.xml:1313(para) C/gedit.xml:1637(para) +msgid "" +"Choose EditPreferences." +msgstr "" +"اختر تحريرالتفضيلات." + +#: C/gedit.xml:1295(para) C/gedit.xml:1316(para) C/gedit.xml:1640(para) +msgid "Select the Plugins tab." +msgstr "انتق اللسان الملحقات." + +#: C/gedit.xml:1298(para) +msgid "" +"Select the check box next to the name of the plugin that you want to enable." +msgstr "انتقِ صندوق التأشير التالي لاسم الملحق الذي تريد تفعليه." + +#: C/gedit.xml:1301(para) C/gedit.xml:1322(para) +msgid "" +"Click Close to close the Preferences dialog." +msgstr "" +"انقر أغلق لإغلاق حوار التفضيلات." + +#: C/gedit.xml:1308(title) +msgid "Disabling a Plugin" +msgstr "تعطيل ملحق" + +#: C/gedit.xml:1309(para) +msgid "" +"A plugin remains enabled when you quit gedit." +msgstr "يظل الملحق مفعلا عند مغادرتك محرر النصوص." + +#: C/gedit.xml:1310(para) +msgid "" +"To disable a gedit plugin, perform the following " +"steps:" +msgstr "" +"لتعطيل ملحق محرر النصوص، أدِ الخطوات التالية:" + +#: C/gedit.xml:1319(para) +msgid "" +"Deselect the check box next to the name of the plugin that you want to " +"disable." +msgstr "ألغِ انتقاء صندوق التأشير التاليلاسم الملحق الذي تريد تعطيله." + +#: C/gedit.xml:1331(title) +msgid "Plugins" +msgstr "الملحقات" + +#: C/gedit.xml:1333(title) +msgid "Working with Plugins" +msgstr "العمل مع الملحقات" + +#: C/gedit.xml:1334(para) +msgid "" +"You can add extra features to gedit by enabling " +"plugins. A plugin is a supplementary program that " +"enhances the functionality of an application. Plugins add new items to the " +"gedit menus for the new features they provide." +msgstr "" +"يمكنك إضافة مزايا إضافية إلى محرر النصوص بتفعيل " +"الملحقات. الملحق هو برنامج متمم يعزز أداء وظائف " +"التطبيق. الملحقات تضيف عناصر جديدة إلى قوائم محرر النصوص للمزايا الجديدة التي تقدمها." + +#: C/gedit.xml:1336(para) +msgid "" +"Several plugins come built-in with gedit, and you " +"can install more. The gedit website lists third-party plugins." +msgstr "" +"عدة ملحقات تأتي مبنية مع محرر النصوص، وتستطيع " +"تثبيت المزيد. يسرد موقع محرر النصوص ملحقات الطرف الثالث." + +#: C/gedit.xml:1337(para) +msgid "" +"To enable and disable plugins, or see which plugins are currently enabled, " +"use the Plugins Preferences." +msgstr "" +"لتفعيل وتعطيل الملحقات، أو رؤية أي الملحقات مفعلة حاليا، استخدم تفضيلات الملحقات." + +#: C/gedit.xml:1338(para) +msgid "" +"The following plugins come built-in with gedit:" +msgstr "الملحقات التالية تأتي مُضمّنة مع محرر النصوص:" + +#: C/gedit.xml:1344(para) +msgid "" +"Change Case allows you to change the case of the selected text." +msgstr "" +"تغيير الحالةيسمح لك بتغيير حالة نص منتقى." + +#: C/gedit.xml:1347(para) +msgid "" +"Document " +"Statistics shows the number of lines, words, and " +"characters in the document." +msgstr "" +"احصاءات " +"المستند يعرض رقم الأسطر، والكلمات، والمحارف في مستند." + +#: C/gedit.xml:1350(para) +msgid "" +"External Tools allows you to execute external commands from " +"gedit." +msgstr "" +"الأدوات الخارجية يسمح لك بتشغيل أوامر خارجية من محرر النصوص." + +#: C/gedit.xml:1353(para) +msgid "" +"File Browser allows you to browse your files and " +"folders in the side pane." +msgstr "" +"متصفح الملفات يسمح لك بتصفح ملفاتك ومجلداتك في " +"اللوحة الجانبية." + +#: C/gedit.xml:1356(para) +msgid "" +"Indent Lines adds or removes indentation from the selected lines." +msgstr "" +"إزاحة الأسطر يضيف أو يزيل الإزاحة من الأسطر المنتقاة." + +#: C/gedit.xml:1359(para) +msgid "" +"Insert Date/" +"Time adds the current date and time into a document." +msgstr "" +"إدراج التاريخ/" +"الوقت يضيف التاريخ والوقت الحاليين إلى مستند." + +#: C/gedit.xml:1362(para) +msgid "" +"Modelines allows you to set editing preferences for individual documents, " +"and supports Emacs, Kate and Vim-style modelines." +msgstr "" +"الأسطر النمطية يسمح لك بضبط تفضيلات التحرير للملفات المفردة، ودعم أساليب أسطر " +"Emacs، و Kate، و " +"Vim النمطية" + +#: C/gedit.xml:1365(para) +msgid "" +"Python Console allows you to run commands in the python programming " +"language." +msgstr "" +"كونسول بايثون يسمح لك بتشغيل الأوامر بلغة البرمجة بايثون." + +#: C/gedit.xml:1368(para) +msgid "" +"Snippets allows you to store frequently-used pieces of text and insert " +"them quickly into a document." +msgstr "" +"مقاطع يسمح لك بتخزين أجزاء النص المستخدمة بشكل متكرر وتدرجهم بسرعة " +"إلى النص." + +#: C/gedit.xml:1371(para) +msgid "" +"Sort " +"arranges selected lines of text into alphabetical order." +msgstr "" +"ترتيب " +"يرتب أسطر منتقاء من النص إلى الترتيب الأبجدي." + +#: C/gedit.xml:1374(para) +msgid "" +"Spell Checker corrects the spelling in the selected text, or marks " +"errors automatically in the document." +msgstr "" +"مدقق الإملاء يصحح إملاء النص المنتقى، أو يعلّم الأخطاء تلقائيا في " +"المستند." + +#: C/gedit.xml:1377(para) +msgid "" +"Tag List lets you insert commonly-used tags for HTML and other languages " +"from a list in the side pane." +msgstr "" +"قائمة الوسم يدعك تدرج أوسمة إنش​تي​إم​إل واللغات الأخرى " +"الأكثر شيوعا من قائمة في اللوحة الجانبية." + +#: C/gedit.xml:1380(para) +msgid "" +"User Name inserts the username of the current user into the document." +msgstr "" +"اسم المستخدم يدرج اسم المستخدم للمستخدم الحالي إلى المستند." + +#: C/gedit.xml:1387(title) +msgid "Change Case Plugin" +msgstr "ملحق تغيير الحالة" + +#: C/gedit.xml:1388(para) +msgid "" +"The Change Case plugin changes the case of the " +"selected text." +msgstr "ملحق تغيير الحالة يغير حالة النص المنتقى." + +#: C/gedit.xml:1389(para) +msgid "" +"The following items are added to the Edit menu when the " +"Change Case plugin is enabled:" +msgstr "" +"العناصر التالية تُضاف إلى قائمة تحرير عندما يُفعل ملحق " +"تغيير الحالة:" + +#: C/gedit.xml:1399(para) +msgid "Menu Item" +msgstr "عنصر القائمة" + +#: C/gedit.xml:1401(para) +msgid "Action" +msgstr "الإجراء" + +#: C/gedit.xml:1403(para) +msgid "Example" +msgstr "مثال" + +#: C/gedit.xml:1409(guisubmenu) C/gedit.xml:1415(guisubmenu) +#: C/gedit.xml:1421(guisubmenu) C/gedit.xml:1427(guisubmenu) +msgid "Change Case" +msgstr "غيّر الحالة" + +#: C/gedit.xml:1409(guimenuitem) +msgid "All Upper Case" +msgstr "كل الأحرف علوية" + +#: C/gedit.xml:1410(para) +msgid "Change each character to uppercase." +msgstr "تغيير كل محرف إلى الحالة العلوية." + +#: C/gedit.xml:1411(para) +msgid "This text becomes THIS TEXT" +msgstr "This text تصبح THIS TEXT" + +#: C/gedit.xml:1415(guimenuitem) +msgid "All Lower Case" +msgstr "كل الأحرف سفلية" + +#: C/gedit.xml:1416(para) +msgid "Change each character to lowercase." +msgstr "تغيير كل محرف إلى الحالة السفلية." + +#: C/gedit.xml:1417(para) +msgid "This Text becomes this text" +msgstr "This Text تصبح this text" + +#: C/gedit.xml:1421(guimenuitem) +msgid "Invert Case" +msgstr "اعكس الحالة" + +#: C/gedit.xml:1422(para) +msgid "" +"Change each lowercase character to uppercase, and change each uppercase " +"character to lowercase." +msgstr "تغيير حالة سفلية إلى حالة علوية، وتغيير كل حالة علوية إلى حالة سفلية." + +#: C/gedit.xml:1423(para) +msgid "This Text becomes tHIS tEXT" +msgstr "This Text تصبح tHIS tEXT" + +#: C/gedit.xml:1427(guimenuitem) +msgid "Title Case" +msgstr "حالة العنوان" + +#: C/gedit.xml:1428(para) +msgid "Change the first character of each word to uppercase." +msgstr "تغيير أول محرف من كل كلمة إلى الحالة العلوية." + +#: C/gedit.xml:1429(para) +msgid "this text becomes This Text" +msgstr "this text تصبح This Text" + +#: C/gedit.xml:1438(title) +msgid "Document Statistics Plugin" +msgstr "ملحق إحصاءات المستند" + +#: C/gedit.xml:1439(para) +msgid "" +"The Document Statistics plugin counts the number " +"of lines, words, characters with spaces, characters without spaces, and " +"bytes in the current file. The plugin displays the results in a " +"Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" +"الملحق إحصاءات المستند يعد عدد الأسطر، والحروف، " +"والمحارف مع الماسفات، والمحارف بدون المسافات، والبايتات في الملف الحالي. " +"الملحق يعرض النتائج في حوار إحصاءات المستند. لاستخدام " +"احصاءات المستند، أدِ الخطوات التالية:" + +#: C/gedit.xml:1441(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"displays the following information about the file:" +msgstr "" +"اختر أدواتإحصاءات المستند لعرض الحوار إحصاءات المستند. " +"الحوار إحصاءات المستند يعرض المعلومات التالية حول الملف:" + +#: C/gedit.xml:1444(para) +msgid "Number of lines in the current document." +msgstr "عدد الأسطر في المستند الحالي." + +#: C/gedit.xml:1447(para) +msgid "Number of words in the current document." +msgstr "عدد الكلمات في المستند الحالي." + +#: C/gedit.xml:1450(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "عدد المحارف -بما في ذلك المسافات- في المستند الحالي." + +#: C/gedit.xml:1453(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "عدد المسافات -لا تتضمن المسافات- في المستند الحالي." + +#: C/gedit.xml:1456(para) +msgid "Number of bytes in the current document." +msgstr "عدد البايتات في المستند الحالي." + +#: C/gedit.xml:1461(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click " +"Update." +msgstr "" +"بإمكانك الاستمرار في تحديث ملف محرر النصوص أثناء " +"فتح حوار إحصاءات المستند. لإنعاش محتويات حوار " +"إحصاءات المستند، انقر حدّث." + +#: C/gedit.xml:1468(title) +msgid "External Tools Plugin" +msgstr "ملحق الأدوات الخارجية" + +#: C/gedit.xml:1469(para) +msgid "" +"The External Tools plugin allows you to execute " +"external commands from gedit. You can pipe some " +"content into a command and exploit its output (for example, " +"sed), or launch a predefined command (for " +"example, make)." +msgstr "" +"ملحق الأدوات الخارجية يسمح لك بتشغيل أوامر خارجية " +"من محرر النصوص. بإمكانك توريد بعض المحتويات إلى " +"أمر واستغلال مخرجاته ( على سبيل المثال، sed)، أو " +"تشغيل أمر معرف مسبقا (على سبيل المثال، make)." + +#: C/gedit.xml:1470(para) +msgid "" +"Use the External Tools Manager to create and edit " +"commands. To run an external command, choose it from the Tools menu." +msgstr "" + +#: C/gedit.xml:1473(title) +msgid "Built-in Commands" +msgstr "الأوامر المضمّنة" + +#: C/gedit.xml:1474(para) +msgid "" +"The following commands are provided with the External Tools plugin:" +msgstr "" + +#: C/gedit.xml:1476(term) +msgid "Build" +msgstr "" + +#: C/gedit.xml:1478(para) +msgid "" +"Runs make in the current document's directory." +msgstr "" + +#: C/gedit.xml:1481(term) +msgid "Directory Listing" +msgstr "" + +#: C/gedit.xml:1483(para) +msgid "" +"Lists the contents of the current document's directory in a new document." +msgstr "" + +#: C/gedit.xml:1486(term) +msgid "Environment Variables" +msgstr "" + +#: C/gedit.xml:1488(para) +msgid "Displays the environment variables list in the bottom pane." +msgstr "" + +#: C/gedit.xml:1491(term) +msgid "Grep" +msgstr "" + +#: C/gedit.xml:1493(para) +msgid "" +"Searches for a term in all files in the current document directory, using " +"pattern matching. Results are shown in the bottom pane." +msgstr "" + +#: C/gedit.xml:1496(term) +msgid "Remove Trailing Spaces" +msgstr "" + +#: C/gedit.xml:1498(para) +msgid "Removes all spaces from the end of lines in the document." +msgstr "" + +#: C/gedit.xml:1505(title) +msgid "Defining a Command" +msgstr "تعريف أمر" + +#: C/gedit.xml:1506(para) +msgid "" +"To add an external command, choose ToolsExternal Tools." +msgstr "" + +#: C/gedit.xml:1507(para) +msgid "" +"In the External Tools Manager window, click " +"New. You can speficy the following details for the " +"new command:" +msgstr "" + +#: C/gedit.xml:1509(term) +msgid "Description" +msgstr "الوصف" + +#: C/gedit.xml:1511(para) +msgid "" +"This description is shown in the statusbar when the menu command is chosen." +msgstr "" + +#: C/gedit.xml:1514(term) +msgid "Accelerator" +msgstr "" + +#: C/gedit.xml:1516(para) +msgid "Enter a keyboard shortcut for the command." +msgstr "أدخل اختصار لوحة مفاتيح للأمر." + +#: C/gedit.xml:1519(term) +msgid "Commands" +msgstr "الأوامر" + +#: C/gedit.xml:1521(para) +msgid "" +"The actual commands to be run. Several gedit " +"environment variables can be used to pass content to these commands: see " +"." +msgstr "" + +#: C/gedit.xml:1524(term) +msgid "Input" +msgstr "" + +#: C/gedit.xml:1526(para) +msgid "" +"The content to give to the commands (as stdin): the " +"entire text of the current document, the current selection, line, or word." +msgstr "" + +#: C/gedit.xml:1529(term) +msgid "Output" +msgstr "المُخرج" + +#: C/gedit.xml:1531(para) +msgid "" +"What to do with the output of the commands: display in the bottom pane, put " +"in a new document, or place in the current document, at the end, at the " +"cursor position, or replacing the selection or the entire document." +msgstr "" + +#: C/gedit.xml:1534(term) +msgid "Applicability" +msgstr "" + +#: C/gedit.xml:1536(para) +msgid "" +"Determines which sort of documents can be affected by the command, for " +"example whether saved or not, and local or remote." +msgstr "" + +#: C/gedit.xml:1544(title) +msgid "Editing and Removing Tools" +msgstr "" + +#: C/gedit.xml:1545(para) +msgid "" +"To edit a tool, select it in the list and make changes to its properties." +msgstr "" + +#: C/gedit.xml:1546(para) +msgid "To rename a tool, click it again in the list." +msgstr "" + +#: C/gedit.xml:1547(para) +msgid "" +"To restore a built-in tool that you have changed, press Revert." +msgstr "" + +#: C/gedit.xml:1548(para) +msgid "" +"To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created " +"yourself." +msgstr "" + +#: C/gedit.xml:1552(title) +msgid "Variables" +msgstr "" + +#: C/gedit.xml:1553(para) +msgid "" +"You can use the following variables in the Commands " +"field of the command definition:" +msgstr "" + +#: C/gedit.xml:1556(para) +msgid "GEDIT_CURRENT_DOCUMENT_URI" +msgstr "GEDIT_CURRENT_DOCUMENT_URI" + +#: C/gedit.xml:1559(para) +msgid "GEDIT_CURRENT_DOCUMENT_NAME" +msgstr "GEDIT_CURRENT_DOCUMENT_NAME" + +#: C/gedit.xml:1562(para) +msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +msgstr "GEDIT_CURRENT_DOCUMENT_SCHEME" + +#: C/gedit.xml:1565(para) +msgid "GEDIT_CURRENT_DOCUMENT_PATH" +msgstr "GEDIT_CURRENT_DOCUMENT_PATH" + +#: C/gedit.xml:1568(para) +msgid "GEDIT_CURRENT_DOCUMENT_DIR" +msgstr "GEDIT_CURRENT_DOCUMENT_DIR" + +#: C/gedit.xml:1571(para) +msgid "GEDIT_DOCUMENTS_URI" +msgstr "GEDIT_DOCUMENTS_URI" + +#: C/gedit.xml:1574(para) +msgid "GEDIT_DOCUMENTS_PATH" +msgstr "GEDIT_DOCUMENTS_PATH" + +#: C/gedit.xml:1581(title) +msgid "File Browser Plugin" +msgstr "ملحق متصفح الملفات" + +#: C/gedit.xml:1582(para) +msgid "" +"The File Browser Plugin shows your files and " +"folders in the side pane, allowing you to quickly open files." +msgstr "" + +#: C/gedit.xml:1583(para) +msgid "" +"To view the File Browser, choose ViewSide Pane and then click on " +"the tab showing the File Browser icon at the bottom of the side pane." +msgstr "" + +#: C/gedit.xml:1585(title) +msgid "Browsing your Files" +msgstr "تصفح ملفاتك" + +#: C/gedit.xml:1586(para) +msgid "" +"The File Browser tab initially shows your file manager bookmarks. To browse " +"the contents of any item, double-click it." +msgstr "" + +#: C/gedit.xml:1587(para) +msgid "" +"To show a parent folder, choose from the drop-down list, or press the up " +"arrow on the File Browser's toolbar." +msgstr "" + +#: C/gedit.xml:1588(para) +msgid "" +"To show the folder that contains the document you are currently working on, " +"right-click in the file list and choose Set root to active " +"document." +msgstr "" + +#: C/gedit.xml:1592(para) +msgid "" +"To open a file in gedit, double-click it in the " +"file list." +msgstr "" + +#: C/gedit.xml:1595(title) +msgid "Creating Files and Folders" +msgstr "إنشاء ملفات ومجلدات جديدة" + +#: C/gedit.xml:1596(para) +msgid "" +"To create a new, empty text file in the current folder shown in the browser, " +"right-click in the file list and choose New File." +msgstr "" + +#: C/gedit.xml:1597(para) +msgid "" +"To create a new folder in the current folder shown in the browser, right-" +"click in the file list and choose New Folder." +msgstr "" + +#: C/gedit.xml:1602(title) +msgid "Indent Lines Plugin" +msgstr "" + +#: C/gedit.xml:1603(para) +msgid "" +"The Indent Lines plugin adds or removes space " +"from the beginning of lines of text." +msgstr "" + +#: C/gedit.xml:1604(para) +msgid "To indent or unindent text, perform the following steps:" +msgstr "" + +#: C/gedit.xml:1606(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" + +#: C/gedit.xml:1611(para) +msgid "" +"To indent the text, choose EditIndent." +msgstr "" + +#: C/gedit.xml:1614(para) +msgid "" +"To remove the indentation, choose EditUnindent." +msgstr "" + +#: C/gedit.xml:1619(para) +msgid "" +"The amount of space used, and whether tab character or space characters are " +"used, depends on the Tab Stops settings in the Editor " +"Preferences: see ." +msgstr "" + +#: C/gedit.xml:1624(title) +msgid "Insert Date/Time Plugin" +msgstr "ملحق إدراج التاريخ/الوقت" + +#: C/gedit.xml:1625(para) +msgid "" +"The Insert Date/Time plugin inserts the current " +"date and time into a document. To use the Insert Date/Time plugin, perform " +"the following steps:" +msgstr "" + +#: C/gedit.xml:1627(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" +"اختر تحريرأدرج التاريخ والوقت." + +#: C/gedit.xml:1628(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click Insert to close the Insert Date " +"and Time dialog. gedit inserts the " +"date/time at the cursor position in the current file." +msgstr "" + +#: C/gedit.xml:1629(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed. The date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" + +#: C/gedit.xml:1634(title) +msgid "Configuring the Insert Date/Time Plugin" +msgstr "اضبط الملحق إدراج التاريخ/الوقت" + +#: C/gedit.xml:1635(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "لضبط الملحق إدراج التاريخ/الوقت، شكّل الخطوات التالية:" + +#: C/gedit.xml:1643(para) +msgid "Select the Insert Date/Time plugin." +msgstr "انتقِ الملحق إدراج التاريخ/الوقت." + +#: C/gedit.xml:1646(para) +msgid "" +"Click Configure Plugin to display the " +"Configure insert date/time plugin dialog." +msgstr "" + +#: C/gedit.xml:1649(para) +msgid "Select one of the options, as follows:" +msgstr "انتقِ واحد من الخيارات، كالتالي:" + +#: C/gedit.xml:1651(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" + +#: C/gedit.xml:1654(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" + +#: C/gedit.xml:1657(para) +msgid "" +"To use the same customized date/time format each time you insert the date/" +"time, select the Use custom format option, then enter " +"the appropriate format in the text box. For more information about how to " +"specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose EditInsert Date and Time." +msgstr "" + +#: C/gedit.xml:1662(para) +msgid "" +"Click OK to close the Configure insert date/" +"time plugin dialog." +msgstr "" + +#: C/gedit.xml:1665(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" +"لإغلاق حوار التفضيلات، انقر أغلق." + +#: C/gedit.xml:1672(title) +msgid "Modelines Plugin" +msgstr "" + +#: C/gedit.xml:1673(para) +msgid "" +"The Modelines plugin allows you to set " +"preferences for individual documents. A modeline is a " +"line of text at the start or end of the document with settings that " +"gedit recognises." +msgstr "" + +#: C/gedit.xml:1674(para) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" + +#: C/gedit.xml:1675(para) +msgid "You can set the following preferences with modelines:" +msgstr "تستطيع ضبط التفضيلات التالية" + +#: C/gedit.xml:1678(para) +msgid "Tab width" +msgstr "عرض اللسان" + +#: C/gedit.xml:1681(para) +msgid "Indent width" +msgstr "" + +#: C/gedit.xml:1684(para) +msgid "Insert spaces instead of tabs" +msgstr "" + +#: C/gedit.xml:1690(para) +msgid "Right margin width" +msgstr "" + +#: C/gedit.xml:1694(para) +msgid "" +"The Modelines plugin supports a subset of the " +"options used by other text editors Emacs, " +"Kate and Vim." +msgstr "" + +#: C/gedit.xml:1697(title) +msgid "Emacs Modelines" +msgstr "" + +#: C/gedit.xml:1698(para) +msgid "" +"The first two lines of a document are scanned for Emacs modelines." +msgstr "" + +#: C/gedit.xml:1699(para) +msgid "" +"The Emacs options for tab-width, indent-offset, " +"indent-tabs-mode and autowrap are supported. For more information, see the " +"GNU Emacs Manual." +msgstr "" + +#: C/gedit.xml:1702(title) +msgid "Kate Modelines" +msgstr "" + +#: C/gedit.xml:1703(para) +msgid "" +"The first and last ten lines a document are scanned for Kate modelines." +msgstr "" + +#: C/gedit.xml:1704(para) +msgid "" +"The Kate options for tab-width, indent-width, " +"space-indent, word-wrap and word-wrap-column are supported. For more " +"information, see the Kate website." +msgstr "" + +#: C/gedit.xml:1707(title) +msgid "Vim Modelines" +msgstr "" + +#: C/gedit.xml:1708(para) +msgid "" +"The first and last three lines a document are scanned for Vim modelines." +msgstr "" + +#: C/gedit.xml:1709(para) +msgid "" +"The Vim options for et, expandtab, ts, tabstop, " +"sw, shiftwidth, wrap, and textwidth are supported. For more information, see " +"the Vim website." +msgstr "" + +#: C/gedit.xml:1714(title) +msgid "Python Console Plugin" +msgstr "ملحق بايثون كونسول" + +#: C/gedit.xml:1715(para) +msgid "" +"The Python Console Plugin allows you to run " +"commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This shows " +"recent output and a command prompt field." +msgstr "" +"الملحق بايثون كونسول يسمح لك بتشغيل أوامر بلغة " +"برمجة بايثون من محرر النصوص. تفعيل هذه الخاصية " +"يضيف لسان إلى اللوحة السفلية. هذا يظهر المخرجات الحديثة وحقل محث أوامر." + +#: C/gedit.xml:1716(para) +msgid "" +"Commands entered into the python console are not checked before they are " +"run. It is therefore possible to hang gedit, for " +"example by entering an infinite loop." +msgstr "" + +#: C/gedit.xml:1720(title) +msgid "Snippets Plugin" +msgstr "أيقونة المقاطع" + +#: C/gedit.xml:1721(para) +msgid "" +"The Snippets plugin allows you to store " +"frequently-used pieces of text, called snippets, and " +"insert them quickly into a document." +msgstr "" + +#: C/gedit.xml:1722(para) +msgid "" +"Snippets are specific to the language syntax of the current document. For " +"example, when you are working with an HTML document, you can choose from a " +"list of snippets that are useful for HTML. In addition, some snippets are " +"global, and are available in all documents." +msgstr "" + +#: C/gedit.xml:1723(para) +msgid "" +"A number of built-in snippets are installed with gedit, which can be modified." +msgstr "" +"عدد من المقاطع المبنية داخليا مُثتبة مع محرر النصوص، والتي يمكن تعديلها." + +#: C/gedit.xml:1726(title) +msgid "Inserting Snippets" +msgstr "إدراج مقاطع" + +#: C/gedit.xml:1727(para) +msgid "" +"To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +"usually the first few letters of the snippet, or something else that is " +"short and easy to remember." +msgstr "" + +#: C/gedit.xml:1728(para) +msgid "" +"Alternatively, press CtrlSpace to see a list of snippets you can insert." +msgstr "" +"بدلا من ذلك، اضغط CtrlSpace لمراجهة قائمة المقاطع التي تستطيع إدراجها." + +#: C/gedit.xml:1732(title) +msgid "Adding Snippets" +msgstr "إضافة مقاطع" + +#: C/gedit.xml:1733(para) +msgid "To create a new snippet, do the following:" +msgstr "لإنشاء مقطع جديد، افعل التالي:" + +#: C/gedit.xml:1736(para) +msgid "" +"Choose ToolsManage Snippets. The Snippets Manager window " +"opens." +msgstr "" +"اختر أدواتأدر المقاطع. نافذة مدير المقاطع تفتح." + +#: C/gedit.xml:1739(para) +msgid "" +"The list of snippets is grouped by language. Select the language you want to " +"add a snippet to, or a snippet in that language group. To add a snippet for " +"all languages, choose Global at the top of the list. The syntax of the " +"document you are currently working with is shown by default." +msgstr "" + +#: C/gedit.xml:1742(para) +msgid "Click New. A new snippet appears in the list." +msgstr "انقر جديد. مقطع جديد يضاف في القائمة." + +#: C/gedit.xml:1745(para) +msgid "Enter the following information for the new snippet:" +msgstr "أدخل المعلومات التالية للمقاطع الجديدة:" + +#: C/gedit.xml:1747(term) +msgid "Name" +msgstr "الاسم" + +#: C/gedit.xml:1749(para) +msgid "" +"Enter a name for the snippet in the text field within the snippet list. The " +"name of a snippet serves only as a reminder of its purpose. You can change " +"name of a snippet you create by clicking on it in the list." +msgstr "" + +#: C/gedit.xml:1752(term) +msgid "Snippet text" +msgstr "نص المقطع" + +#: C/gedit.xml:1754(para) +msgid "" +"Enter the text of the snippet in the Edit snippet text " +"box. For special codes you can use, see ." +msgstr "" + +#: C/gedit.xml:1755(para) +msgid "" +"You can switch back to the document window to copy text without closing the " +"Snippets Manager window." +msgstr "" + +#: C/gedit.xml:1758(term) +msgid "Tab Trigger" +msgstr "" + +#: C/gedit.xml:1760(para) +msgid "" +"Enter the tab trigger for the snippet. This is the text that you type before " +"pressing Tab to insert the snippet." +msgstr "" + +#: C/gedit.xml:1761(para) +msgid "" +"The tag must be either a single word comprising only letters, or any single " +"character. The Tab trigger will highlight in red if an " +"invalid tab trigger is entered." +msgstr "" + +#: C/gedit.xml:1764(term) +msgid "Shortcut key" +msgstr "مفتاح الاختصار" + +#: C/gedit.xml:1766(para) +msgid "Type a shortcut key to use for inserting the snippet." +msgstr "" + +#: C/gedit.xml:1775(title) +msgid "Editing and Removing Snippets" +msgstr "تحرير وحذف المقاطع" + +#: C/gedit.xml:1776(para) +msgid "" +"To edit a snippet, select it in the list and make changes to its text and " +"activation properties." +msgstr "" + +#: C/gedit.xml:1777(para) +msgid "To rename a snippet, click it again in the list." +msgstr "لإعادة تسمية مقطع، انقر مجددا على القائمة." + +#: C/gedit.xml:1778(para) +msgid "" +"To restore a built-in snippet that you have changed, press Revert." +msgstr "" + +#: C/gedit.xml:1779(para) +msgid "" +"To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +"created yourself." +msgstr "" + +#: C/gedit.xml:1783(title) +msgid "Snippet Substitutions" +msgstr "" + +#: C/gedit.xml:1784(para) +msgid "" +"In addition to inserting stored text, a snippet can include customizable " +"text, or mark spaces where you can add text once the snippet is inserted in " +"your document." +msgstr "" + +#: C/gedit.xml:1788(para) +msgid "You can use the following placeholder codes in snippet text:" +msgstr "" + +#: C/gedit.xml:1790(term) +msgid "Tab placeholders" +msgstr "" + +#: C/gedit.xml:1792(para) +msgid "" +"$n defines a tab placeholder, " +"where n is any number from 1 upwards." +msgstr "" + +#: C/gedit.xml:1793(para) +msgid "" +"${n:default} defines a tab placeholder with a default value." +msgstr "" + +#: C/gedit.xml:1794(para) +msgid "" +"A tab placeholder marks a place in the snippet text where you can add extra " +"text after the snippet is inserted." +msgstr "" + +#: C/gedit.xml:1795(para) +msgid "" +"To use tab placeholders, insert the snippet as normal. The cursor is placed " +"at the first tab placeholder. Type text, and press Tab to " +"advance to the next tab placeholder. The number in the placeholder code " +"defines the order in which tab advances to each place in the text." +msgstr "" + +#: C/gedit.xml:1796(para) +msgid "" +"Press ShiftTab to " +"return to the previous tab placeholder. Pressing Tab when " +"there are no more tab placeholders moves the cursor to the end of the " +"snippet text, or to the end placeholder if it exists." +msgstr "" + +#: C/gedit.xml:1799(term) +msgid "Mirror placeholders" +msgstr "" + +#: C/gedit.xml:1801(para) +msgid "" +"A repeated tab placeholder will mirror the placeholder already defined. This " +"allows you to type in text only once that you want to appear several times " +"in the snippet." +msgstr "" + +#: C/gedit.xml:1804(term) +msgid "End placeholder" +msgstr "" + +#: C/gedit.xml:1806(para) +msgid "" +"$0 defines the end placeholder. This allows you to finish " +"working with the snippet with the cursor at a point other than the end of " +"the snippet text." +msgstr "" + +#: C/gedit.xml:1809(term) +msgid "Environmental variables" +msgstr "" + +#: C/gedit.xml:1811(para) +msgid "" +"Environmental variable such as $PATH and $HOME are substituted in snippet text. The following variables specific " +"to gedit can also be used:" +msgstr "" + +#: C/gedit.xml:1813(term) +msgid "$GEDIT_SELECTED_TEXT" +msgstr "$GEDIT_SELECTED_TEXT" + +#: C/gedit.xml:1815(para) +msgid "The currently selected text." +msgstr "النص المنتقى حاليا." + +#: C/gedit.xml:1818(term) +msgid "$GEDIT_FILENAME" +msgstr "$GEDIT_FILENAME" + +#: C/gedit.xml:1820(para) +msgid "" +"The full filename of the document, or an empty string if the document isn't " +"saved yet." +msgstr "" + +#: C/gedit.xml:1823(term) +msgid "$GEDIT_BASENAME" +msgstr "$GEDIT_BASENAME" + +#: C/gedit.xml:1825(para) +msgid "" +"The basename of the filename of the document, or an empty string if the " +"document isn't saved yet." +msgstr "" + +#: C/gedit.xml:1828(term) +msgid "$GEDIT_CURRENT_WORD" +msgstr "$GEDIT_CURRENT_WORD" + +#: C/gedit.xml:1830(para) +msgid "" +"The word at the cursor's location in the document. When this variable is " +"used, the current word will be replaced by the snippet text." +msgstr "" + +#: C/gedit.xml:1838(term) +msgid "Shell placeholders" +msgstr "" + +#: C/gedit.xml:1840(para) +msgid "" +"$(cmd) is replaced by the " +"result of executing cmd in a shell." +msgstr "" + +#: C/gedit.xml:1841(para) +msgid "" +"$(n:cmd) allows you to give this placeholder a reference, where " +"n is any number from 1 upwards. Use " +"$n to use the output from one shell " +"placeholder as input in another." +msgstr "" + +#: C/gedit.xml:1844(term) +msgid "Python placeholders" +msgstr "" + +#: C/gedit.xml:1846(para) +msgid "" +"$<cmd> is replaced by " +"the result of evaluating cmd in the python " +"interpreter." +msgstr "" + +#: C/gedit.xml:1847(para) +msgid "" +"$<a:cmd>" +" specifies another python placeholder as a dependency, where " +"a gives its order in the snippet. This allows you " +"to use python functions defined in another snippet. To specify several " +"dependencies, separate the numbers with commas thus: $<" +"a,b:cmd>" +msgstr "" + +#: C/gedit.xml:1848(para) +msgid "" +"To use a variable in all other python snippets, declare it as " +"global." +msgstr "" + +#: C/gedit.xml:1857(title) +msgid "Sort Plugin" +msgstr "ملحق الترتيب" + +#: C/gedit.xml:1858(para) +msgid "" +"The Sort plugin arranges selected lines of text " +"into alphabetical order." +msgstr "" + +#: C/gedit.xml:1859(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" + +#: C/gedit.xml:1862(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "لاستخدام ملحق الترتيب، أدِ الاعدادات التالية:" + +#: C/gedit.xml:1865(para) +msgid "Select the lines of text you want to sort." +msgstr "انتقِ سطور النص التي تريد ترتيبها." + +#: C/gedit.xml:1867(para) +msgid "" +"Choose EditSort. The Sort dialog opens." +msgstr "" +"اختر تحريررتّب. يفتح الحوار ترتيب." + +#: C/gedit.xml:1870(para) +msgid "Choose the options you want for the sort:" +msgstr "اختر الخيارات التي تريدها للترتيب:" + +#: C/gedit.xml:1873(para) +msgid "" +"To arrange the text in reverse order, select Reverse order." +msgstr "" + +#: C/gedit.xml:1876(para) +msgid "" +"To delete duplicate lines, select Remove duplicates." +msgstr "لحذف السطور المتكررة، انتقِ إزالة التكرار." + +#: C/gedit.xml:1879(para) +msgid "To ignore case sensitivity, select Ignore case." +msgstr "لتجاهل حساسية الحالة، انتقِِ تجاهل الحالة." + +#: C/gedit.xml:1882(para) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" + +#: C/gedit.xml:1887(para) +msgid "To perform the sort operation, click Sort." +msgstr "" + +#: C/gedit.xml:1894(title) +msgid "Spell Checker Plugin" +msgstr "ملحق المدقق الإملائي" + +#: C/gedit.xml:1895(para) +msgid "" +"The Spell Checker plugin checks the spelling in " +"the selected text. You can configure gedit to " +"check the spelling automatically, or you can check the spelling manually, in " +"the specified language. The language setting, and the autocheck spelling " +"properties, apply per document. To use the Spell checker plugin, perform the " +"following steps:" +msgstr "" + +#: C/gedit.xml:1897(para) +msgid "" +"Choose ToolsSet Language to display the Set language " +"dialog. Select the appropriate language from the list. Click OK to close the Set language dialog." +msgstr "" + +#: C/gedit.xml:1900(para) +msgid "" +"To check the spelling automatically, choose ToolsAutocheck Spelling. To unset " +"the automatic spell check, choose ToolsAutocheck Spelling again. " +"When automatic spell checking is set, an icon is displayed beside the " +"Autocheck Spelling menu item. Automatic spell " +"checking is unset by default, each time gedit " +"starts." +msgstr "" + +#: C/gedit.xml:1901(para) +msgid "" +"Unknown spellings are displayed in a different color, and underlined. Right-" +"click on an unknown spelling, then select Spelling Suggestions from the popup menu:" +msgstr "" + +#: C/gedit.xml:1904(para) +msgid "" +"To replace the unknown spelling with another spelling in the list, select " +"the replacement spelling from the Spelling Suggestions " +"popup menu." +msgstr "" + +#: C/gedit.xml:1907(para) +msgid "" +"To add the unknown spelling to your personal dictionary, select " +"Spelling SuggestionsAdd." +msgstr "" + +#: C/gedit.xml:1910(para) +msgid "" +"To ignore all occurrences of the unknown spelling, so that they are no " +"longer flagged as unknown but are not added to your personal dictionary, " +"select Spelling SuggestionsIgnore All. The unknown word " +"is ignored in the current gedit session only." +msgstr "" + +#: C/gedit.xml:1915(para) +msgid "" +"To check the spelling manually, choose ToolsCheck Spelling." +msgstr "" + +#: C/gedit.xml:1917(para) +msgid "" +"If there are no spelling errors, an Information dialog " +"displays a message stating that the document does not contain misspelled " +"words. Click OK to close the Information dialog." +msgstr "" + +#: C/gedit.xml:1919(para) +msgid "" +"If there are spelling errors, the Check Spelling dialog " +"is displayed:" +msgstr "" + +#: C/gedit.xml:1922(para) +msgid "" +"The Misspelled word is displayed at the top of the " +"dialog." +msgstr "" + +#: C/gedit.xml:1925(para) +msgid "" +"A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +"selecting a spelling from the Suggestions list, or you " +"can enter text directly into the Change to text box." +msgstr "" + +#: C/gedit.xml:1928(para) +msgid "" +"To check the spelling of the text in the Change to text " +"box, click Check Word. If this is a known word, the " +"Suggestions list is replaced with the text " +"(correct spelling). If the word is not known, new entries appear " +"in the Suggestions list." +msgstr "" + +#: C/gedit.xml:1931(para) +msgid "" +"To ignore the current occurrence of the unknown word, click " +"Ignore. To ignore all occurrences of the unknown " +"word, click Ignore All. The unknown word is ignored " +"in the current gedit session only." +msgstr "" + +#: C/gedit.xml:1934(para) +msgid "" +"To change the current occurrence of the unknown word to the text in the " +"Change to text box, click Change. To change all occurrences of the unknown word to the text in the " +"Change to text box, click Change All." +msgstr "" + +#: C/gedit.xml:1937(para) +msgid "" +"To add the unknown word to your personal dictionary, click Add " +"word." +msgstr "" + +#: C/gedit.xml:1940(para) +msgid "" +"To close the Check Spelling dialog, click " +"Close." +msgstr "" + +#: C/gedit.xml:1949(title) +msgid "Tag List Plugin" +msgstr "ملحق وسم القائمة" + +#: C/gedit.xml:1950(para) +msgid "" +"The Tag List plugin allows you to insert common " +"tags from a list in the side pane." +msgstr "" + +#: C/gedit.xml:1951(para) +msgid "To use the Tag List plugin, perform the following steps:" +msgstr "" + +#: C/gedit.xml:1953(para) +msgid "" +"Choose ViewSide Pane." +msgstr "" + +#: C/gedit.xml:1957(para) +msgid "" +"By default, the side pane shows a tab containing a list of open documents. " +"Click on the tab showing a + icon at the bottom of the side pane to show the " +"tag list tab." +msgstr "" + +#: C/gedit.xml:1959(para) +msgid "" +"Select the appropriate tag category from the drop-down list. For example, " +"HTML - Tags." +msgstr "" + +#: C/gedit.xml:1962(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "" + +#: C/gedit.xml:1965(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" + +#: C/gedit.xml:1967(para) +msgid "" +"To insert a tag in the current file and change the focus from the side pane " +"to the display area, press Return." +msgstr "" + +#: C/gedit.xml:1970(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftReturn." +msgstr "" + +#: C/gedit.xml:1979(title) +msgid "User Name Plugin" +msgstr "ملحق اسم المستخدم" + +#: C/gedit.xml:1980(para) +msgid "" +"The User name plugin inserts the username of the " +"current user into the document." +msgstr "" +"الملحق اسم المستخدم يدرج اسم المستخدم للمستخدم " +"الحالي إلى المستند." + +#: C/gedit.xml:1981(para) +msgid "" +"To insert your username at the cursor position, choose " +"EditInsert User Name." +msgstr "" +"لإدراج اسم المستخدم عند موقع المؤشر، اختر تحريرأدرج اسم المستخدم." + +#: C/gedit.xml:1983(para) +msgid "" +"This plugin is mostly provided as an example of how to create your own " +"plugins. For more information on creating plugins, see the gedit website." +msgstr "" + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +#: C/gedit.xml:0(None) +msgid "translator-credits" +msgstr "" +"فريق عربآيز :\n" +"أسامة خالد " + +#~ msgid "July 2006" +#~ msgstr "يوليو 2006" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_bold.png'; " +#~ "md5=950264711a3f0808bef134fa94b0a582" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_bold.png'; " +#~ "md5=950264711a3f0808bef134fa94b0a582" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_strikethrough.png'; " +#~ "md5=cf962f5d9df721c1f4f4cef2780915ed" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_strikethrough.png'; " +#~ "md5=cf962f5d9df721c1f4f4cef2780915ed" + +#~ msgid "" +#~ "For more information about how to configure syntax highlighting, see " +#~ "." +#~ msgstr "" +#~ "للمزيد من المعلومات حول كيفية ضبط تعليم الصياغة، راجع ." + +#~ msgid "Colors" +#~ msgstr "الألوان" + +#~ msgid "" +#~ "Select the Use default theme colors option to use " +#~ "the default theme colors in the gedit text " +#~ "window." +#~ msgstr "" +#~ "انتقِ الخيار استخدم ألوان السمة المبدئية لاستخدام " +#~ "ألوان السمة المبدئية في نافذة نص محرر النصوص." + +#~ msgid "" +#~ "Click on the Normal text color color button to " +#~ "display the color selector dialog. Select a color to use to display " +#~ "normal text in the gedit text window." +#~ msgstr "" +#~ "انقر على نافذة نص زر اللون لون النص العاديلعرض " +#~ "حوار منتقي اللون. انتقِ لونا لاستخدامه لعرض النص العادي في نافذة نص " +#~ "محرر النصوص." + +#~ msgid "" +#~ "Click on the Background color color button to " +#~ "display the color selector dialog. Select a background color for the " +#~ "gedit text window." +#~ msgstr "" +#~ "انقر على زر اللون لون الخلفية لعرض حوار منتقي " +#~ "اللون. انتقِ لون خلفية لنافذة نص محرر النصوص." + +#~ msgid "" +#~ "Click on the Selected text color color button to " +#~ "display the color selector dialog. Select a color to use to display " +#~ "selected text." +#~ msgstr "" +#~ "انقر على زر اللون لون النص المنتقى لعرض حوار منتقي " +#~ "اللون. انتقِ لونا لاستخدامه لعرض النص المنتقى." + +#~ msgid "" +#~ "Click on the Selection color color button to " +#~ "display the color selector dialog. Select a background color to use to " +#~ "highlight a text selection." +#~ msgstr "" +#~ "انقر على زر اللون لون التحديد لعرض حوار منتقي " +#~ "اللون. انتقِ لون خلفية لاستخدامه لإبراز نص منتقى." + +#~ msgid "Syntax Highlighting Preferences" +#~ msgstr "تفضيلات إبراز الصياغة" + +#~ msgid "Enable syntax highlighting" +#~ msgstr "فعّل إبراز الصياغة" + +#~ msgid "" +#~ "Select this option to highlight the syntax of the text that you edit." +#~ msgstr "انتقِ هذا الخيار لإبراز الصياغة للنص الذي تحرره." + +#~ msgid "Highlight mode" +#~ msgstr "وضع الإبراز" + +#~ msgid "Use this drop-down list to select a syntax mode to configure." +#~ msgstr "استخدم هذه القائمة المنسدلة لانتقاء وضع إبراز لضبطه." + +#~ msgid "Elements" +#~ msgstr "العناصر" + +#~ msgid "Use this list box to select a syntax element to configure." +#~ msgstr "استخدم صندوق القائمة هذا لانتقاء عنصر صياغة لضبطه." + +#~ msgid "Format buttons" +#~ msgstr "أزرار التنسيق" + +#~ msgid "" +#~ "Use the following buttons to change the format of the selected syntax " +#~ "element:" +#~ msgstr "استخدم الأزرار التالية لتغيير نص عنصر الصياغة المنتقى:" + +#~ msgid "Button" +#~ msgstr "زر" + +#~ msgid "Format" +#~ msgstr "تنسيق" + +#~ msgid "Shows icon for bold format." +#~ msgstr "يظهر أيقونة التنسيق العريض." + +#~ msgid "Bold" +#~ msgstr "عريض" + +#~ msgid "Shows icon for italic format." +#~ msgstr "يظهر أيقونة التنسيق المائل." + +#~ msgid "Italic" +#~ msgstr "مائل" + +#~ msgid "Shows icon for underline." +#~ msgstr "يظهر أيقونة التسطير." + +#~ msgid "Underline" +#~ msgstr "مسطر" + +#~ msgid "Shows icon for strikethrough." +#~ msgstr "يظهر أيقونة الشطب." + +#~ msgid "Strikethrough" +#~ msgstr "شطب" + +#~ msgid "Foreground" +#~ msgstr "المقدمة" + +#~ msgid "" +#~ "Select this option to change the font color of the selected syntax " +#~ "element. Click on the color button to display the color selector dialog, " +#~ "then select the font color." +#~ msgstr "" +#~ "انتقِ هذا الخيار لتغيير لون خط عنصر الصياغة المنتقى. انقر على زر اللون " +#~ "لعرض حوار منتقي اللون، ثم انتقِ لون الخط." + +#~ msgid "Background" +#~ msgstr "الخلفية" + +#~ msgid "" +#~ "Select this option to change the background color of the selected syntax " +#~ "element. Click on the color button to display the color selector dialog, " +#~ "then select the background color." +#~ msgstr "" +#~ "انتقِ هذا الخيار لتغيير لون خلفية عنصر الصياغة المنتقى. انقر على زر اللون " +#~ "لعرض حوار منتقي اللون، ثم انتقِ لون الخط." + +#~ msgid "Reset to Default" +#~ msgstr "أعد الضبط إلى المبدئي" + +#~ msgid "" +#~ "Click on this button to reset the foreground color and background color " +#~ "of the selected syntax element to the default values." +#~ msgstr "" +#~ "انقر على هذا الزر لإعادة ضبط لون المقدمة والخلفية لعنصر الصياغة المنتقى " +#~ "إلى القيم المبدئية." diff --git a/help/bg/bg.po b/help/bg/bg.po new file mode 100644 index 0000000..51cffeb --- /dev/null +++ b/help/bg/bg.po @@ -0,0 +1,3995 @@ +# Bulgarian translation of gedit-help po-file. +# Copyright (C) 2012 Free Software Foundation, Inc. +# Copyright (C) 2011, 2012 Krasimir Chonov . +# This file is distributed under the same license as the gedit-help package. +# Rostislav Raykov , 2005 +# Alexander Shopov , 2012. +# Krasimir Chonov , 2011, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit help master\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-03-27 07:02+0300\n" +"PO-Revision-Date: 2012-03-27 07:01+0300\n" +"Last-Translator: Krasimir Chonov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Ростислав „zbrox“ Райков , 2005\n" +"Красимир Чонов , 2011, 2012\n" +"Александър Шопов , 2012." + +#: ../C/gedit-change-color-scheme.page:9(credit/name) +#: ../C/gedit-change-default-font.page:11(credit/name) +#: ../C/gedit-close-file.page:9(credit/name) +#: ../C/gedit-create-new-file.page:9(credit/name) +#: ../C/gedit-edit-as-root.page:9(credit/name) +#: ../C/gedit-files-basic.page:9(credit/name) +#: ../C/gedit-full-screen.page:9(credit/name) +#: ../C/gedit-open-files-from-sidepane.page:9(credit/name) +#: ../C/gedit-open-files.page:13(credit/name) +#: ../C/gedit-open-on-server.page:9(credit/name) +#: ../C/gedit-open-recent.page:9(credit/name) +#: ../C/gedit-plugin-guide.page:9(credit/name) +#: ../C/gedit-plugins-bookmarks.page:9(credit/name) +#: ../C/gedit-plugins-bracket-comp.page:9(credit/name) +#: ../C/gedit-plugins-change-case.page:14(credit/name) +#: ../C/gedit-plugins-character-map.page:9(credit/name) +#: ../C/gedit-plugins-code-assistance.page:9(credit/name) +#: ../C/gedit-plugins-code-comment.page:9(credit/name) +#: ../C/gedit-plugins-color-picker.page:9(credit/name) +#: ../C/gedit-plugins-commander.page:9(credit/name) +#: ../C/gedit-plugins-dashboard.page:9(credit/name) +#: ../C/gedit-plugins-doc-stats.page:13(credit/name) +#: ../C/gedit-plugins-draw-spaces.page:9(credit/name) +#: ../C/gedit-plugins-external-tools.page:15(credit/name) +#: ../C/gedit-plugins-file-browser.page:13(credit/name) +#: ../C/gedit-plugins-insert-date-time.page:14(credit/name) +#: ../C/gedit-plugins-install.page:8(credit/name) +#: ../C/gedit-plugins-join-split-lines.page:9(credit/name) +#: ../C/gedit-plugins-modelines.page:13(credit/name) +#: ../C/gedit-plugins-multi-edit.page:9(credit/name) +#: ../C/gedit-plugins-pyconsole.page:9(credit/name) +#: ../C/gedit-plugins-quick-open.page:9(credit/name) +#: ../C/gedit-plugins-session-saver.page:9(credit/name) +#: ../C/gedit-plugins-snippets-guide.page:8(credit/name) +#: ../C/gedit-plugins-snippets.page:9(credit/name) +#: ../C/gedit-plugins-sort.page:13(credit/name) +#: ../C/gedit-plugins-tag-list.page:13(credit/name) +#: ../C/gedit-plugins-terminal.page:10(credit/name) +#: ../C/gedit-plugins-text-size.page:10(credit/name) +#: ../C/gedit-plugins-word-completion.page:9(credit/name) +#: ../C/gedit-printing.page:11(credit/name) +#: ../C/gedit-quickstart.page:11(credit/name) +#: ../C/gedit-replace.page:10(credit/name) +#: ../C/gedit-save-file.page:9(credit/name) +#: ../C/gedit-search.page:10(credit/name) +#: ../C/gedit-shortcut-keys.page:10(credit/name) +#: ../C/gedit-spellcheck.page:10(credit/name) +#: ../C/gedit-syntax-highlighting.page:9(credit/name) +#: ../C/gedit-tabs-moving.page:9(credit/name) +#: ../C/gedit-tabs.page:10(credit/name) +#: ../C/gedit-undo-recent-action.page:9(credit/name) +#: ../C/gedit-undo-recent-action.page:18(credit/name) +#: ../C/gedit-view-open-files-in-sidepane.page:9(credit/name) +#: ../C/index.page:12(credit/name) +msgid "Jim Campbell" +msgstr "Джим Къмпбел" + +#: ../C/gedit-change-color-scheme.page:14(page/title) +msgid "Change the color scheme" +msgstr "Промяна на цветова схема" + +#: ../C/gedit-change-color-scheme.page:16(page/p) +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit включва няколко цветови схеми, които ви позволяват да " +"промените облика на главния прозорец." + +#: ../C/gedit-change-color-scheme.page:18(page/p) +msgid "To change the color scheme, complete the following steps:" +msgstr "За да промените цветовата схема извършете следните стъпки:" + +#: ../C/gedit-change-color-scheme.page:20(item/p) +msgid "" +"Select EditPreferencesFont & Colors." +msgstr "" +"Изберете РедактиранеНастройкиШрифт и " +"цветове." + +#: ../C/gedit-change-color-scheme.page:21(item/p) +msgid "Choose your desired color scheme." +msgstr "Изберете желаната цветова схема." + +#: ../C/gedit-change-color-scheme.page:24(page/p) +msgid "The new color scheme will be applied immediately." +msgstr "Избраната цветова схема ще бъде приложена веднага." + +#: ../C/gedit-change-color-scheme.page:27(section/title) +msgid "Use a Custom Color Scheme" +msgstr "Използване на потребителска цветова схема" + +#: ../C/gedit-change-color-scheme.page:29(section/p) +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Също така можете да използвате цветови схеми, които са били създадени от " +"други хора или да създадете и използвате ваша собствена." + +#: ../C/gedit-change-color-scheme.page:30(section/p) +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Инструкции за инсталиране на потребителски цветови схеми, както и примери, " +"които можете да изтеглите и използвате, можете да намерите в Уикито на gedit." + +#: ../C/gedit-change-default-font.page:16(page/title) +msgid "Change the default font" +msgstr "Избор на шрифт" + +#: ../C/gedit-change-default-font.page:18(page/p) +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit използва стандартния шрифт на системата, но можете да " +"установите друг, който по-добре отговаря на нуждите ви." + +#: ../C/gedit-change-default-font.page:23(steps/title) +msgid "To change the default font in gedit:" +msgstr "За да изберете шрифт в gedit" + +#: ../C/gedit-change-default-font.page:24(item/p) +msgid "" +"Select EditPreferencesFont & Colors." +msgstr "" +"Изберете РедактиранеНастройкиШрифт и " +"цветове." + +#: ../C/gedit-change-default-font.page:26(item/p) +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Премахнете отметката до „Използване на системния шрифт с фиксирана широчина“" + +#: ../C/gedit-change-default-font.page:28(item/p) +msgid "" +"Choose your desired font, and use the slider to set the default " +"font size." +msgstr "Изберете шрифт и чрез плъзгача задайте размер." + +#: ../C/gedit-change-default-font.page:30(item/p) +msgid "Click Select, and then click Close." +msgstr "Щракнете Избор и после Затваряне." + +#: ../C/gedit-close-file.page:14(page/title) +msgid "Close a file" +msgstr "Затваряне на файл" + +#: ../C/gedit-close-file.page:16(page/p) +msgid "" +"To close a file in gedit, select File " +"Close. Alternately, you can click the small \"X\" that " +"appears on the right-side of the file's tab, or press Ctrl W." +msgstr "" +"За да затворите файл в gedit, изберете ФайлЗатваряне. Също така можете да натиснете малкия „X“, " +"който се намира в дясната част на раздела или да натиснете " +"Ctrl W." + +#: ../C/gedit-close-file.page:20(page/p) +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Всяко от тези действия затваря файл в gedit. Ако сте направили " +"промени във файла и не сте ги запазили, gedit ще ви подкани да ги " +"запазите преди файлът да бъде затворен." + +#: ../C/gedit-create-new-file.page:14(page/title) +msgid "Create a new file" +msgstr "Създаване на нов файл" + +#: ../C/gedit-create-new-file.page:16(page/p) +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"icon that looks like a blank piece of paper with a \"plus\" sign next to it. " +"If you prefer, you may also select FileNew, or press CtrlN." +msgstr "" +"Най-лесният начин да създадете нов файл в gedit е като натиснете " +"иконата, която изглежда на празно парче хартия със знака „+“ до него. Също " +"можете да изберете ФайлНов или да " +"натиснете CtrlN." + +#: ../C/gedit-create-new-file.page:18(page/p) +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Всяко от тези действия ще създаде нов файл в прозореца на gedit. " +"Ако имате други отворени файлове в gedit, новият файл ще се " +"покаже като нов раздел от дясната страна на тези раздели." + +#: ../C/gedit-edit-as-root.page:14(page/title) +msgid "Edit a file as the root (administative) user" +msgstr "Редактиране на файл като администратор (root)" + +#: ../C/gedit-edit-as-root.page:16(note/p) +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Редактирането на файлове като администратор е много опасно и може да повреди " +"вашата система. Бъдете много внимателни, когато редактирате файлове като " +"администратор." + +#: ../C/gedit-edit-as-root.page:18(page/p) +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"За редактиране на файловете като администратор, стартирайте gedit " +"от терминала като въведете:" + +#: ../C/gedit-edit-as-root.page:19(page/code) +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#: ../C/gedit-edit-as-root.page:20(page/p) +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Когато използвате командата sudo, ще е нужно да въведете вашата " +"парола преди да се стартира gedit." + +#: ../C/gedit-edit-as-root.page:22(page/p) +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Като алтернатива на командата sudo, можете да получите " +"администраторски привилегии като въведете командата:" + +#: ../C/gedit-edit-as-root.page:23(page/code) +#, no-wrap +msgid "su -" +msgstr "su -" + +#: ../C/gedit-edit-as-root.page:24(page/p) +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"После можете да стартирате gedit като въведете командата " +"gedit." + +#: ../C/gedit-edit-as-root.page:26(note/p) +msgid "" +"Once you have opened gedit with administrative privileges, the " +"application will retain those privileges until you close it." +msgstr "" +"След като стартирате gedit с администраторски привилегии, " +"програмата ще се възползва от тях докато не я затворите." + +#: ../C/gedit-files-basic.page:14(page/title) +msgid "File basics: Open, close, and save files" +msgstr "Отваряне, затваряне и запазване на файлове" + +#: ../C/gedit-files-basic.page:16(page/p) +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Ако досега не сте работили с gedit, тези теми ще ви научат как да " +"създавате, запазвате, отваряте и затваряте файлове." + +#: ../C/gedit-full-screen.page:14(page/title) +msgid "Use fullscreen mode" +msgstr "Работа на цял екран" + +#: ../C/gedit-full-screen.page:16(page/p) +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Когато обработвате голям документ, може да ви е от полза да работите на цял " +"екран в gedit. На цял екран лентата за менюто, " +"лентата за табовете и лентата за инструментите ще се " +"скрият, като ще виждате повече от вашия текст и ще можете да се фокусирате " +"върху вашите задачи." + +#: ../C/gedit-full-screen.page:19(section/title) +msgid "Turn on fullscreen mode" +msgstr "Превключване на цял екран" + +#: ../C/gedit-full-screen.page:20(section/p) +msgid "" +"To turn on fullscreen mode, select ViewFullscreen, or press F11. gedit's menu, title, and " +"tab-bars will hide, and you will only be presented with the text of your " +"current file." +msgstr "" +"За да превключите на цял екран изберете ИзгледНа цял " +"екран или натиснете F11. Менютата, заглавието и " +"разделите на gedit ще се скрият. Ще виждате само текста на " +"текущия файл." + +#: ../C/gedit-full-screen.page:21(section/p) +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Ако преместите курсора на мишката в горната част на екрана ще се покаже " +"gedit. Когато gedit се покаже, изберете желания " +"инструмент." + +#: ../C/gedit-full-screen.page:23(note/p) +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"За да превключвате между отворени раздели докато сте на цял екран, натиснете " +"или CtrlAltPgUp или " +"CtrlAltPgDn." + +#: ../C/gedit-full-screen.page:27(section/title) +msgid "Turn off fullscreen mode" +msgstr "Излизане от изглед на цял екран" + +#: ../C/gedit-full-screen.page:28(section/p) +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, move your mouse cursor to the top of the screen, and wait for the " +"menu bar to appear. When the menu bar appears, select " +"Leave Fullscreen. You can also press F11 to turn off " +"fullscreen mode." +msgstr "" +"За да излезете от изглед на цял екран и да се върнете в стандартния " +"gedit, преместете курсора на мишката в горната част на екрана и " +"изчакайте да се покаже лентата за менюто. Когато тя се появи " +"изберете Изход от цял екран. Също можете да натиснете F11." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-open-files-from-sidepane.page:36(media) +#: ../C/gedit-plugins-file-browser.page:32(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-side-pane1.png' " +"md5='ac9c80cb0552d63b593c71f23be69b53'" +msgstr "" +"external ref='figures/gedit-side-pane1.png' " +"md5='ac9c80cb0552d63b593c71f23be69b53'" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-open-files-from-sidepane.page:51(media) +#: ../C/gedit-view-open-files-in-sidepane.page:25(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-side-pane2.png' " +"md5='e7a12a43adc9c9cb8c992ad22a815a57'" +msgstr "" +"external ref='figures/gedit-side-pane2.png' " +"md5='e7a12a43adc9c9cb8c992ad22a815a57'" + +#: ../C/gedit-open-files-from-sidepane.page:14(page/title) +msgid "View and open files from the side pane" +msgstr "Преглед и отваряне на файлове от страничният панел" + +#: ../C/gedit-open-files-from-sidepane.page:15(page/p) +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side pane." +msgstr "" +"Най-използваният начин за превключване между файлове в gedit е " +"чрез раздели в горната част на прозореца на gedit. В някои " +"случаи, особено когато работите с много файлове, може да ви е по-удобно да " +"използвате Страничния панел." + +#: ../C/gedit-open-files-from-sidepane.page:19(page/p) +msgid "" +"To activate the side pane, select ViewSide Pane, or just press the F9 key." +msgstr "" +"За да се покаже страничния панел, изберете ИзгледСтраничен панел или натиснете клавиша F9." + +#: ../C/gedit-open-files-from-sidepane.page:24(note/p) +msgid "" +"You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "" +"Можете да отворите или затворите страничния панел по всяко време " +"като натиснете клавиша F9." + +#: ../C/gedit-open-files-from-sidepane.page:30(section/title) +#: ../C/gedit-plugins-file-browser.page:26(section/title) +msgid "Opening files from the side pane" +msgstr "Отваряне на файлове от страничния панел" + +#: ../C/gedit-open-files-from-sidepane.page:31(section/p) +msgid "" +"To open files from the side pane, first open the side pane by selecting ViewSide Pane, then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" +"За да отворите файлове от страничния панел, първо го отворете " +"като изберете ИзгледСтраничен панел, " +"после натиснете иконата файлов браузър в долната част на панела." + +#: ../C/gedit-open-files-from-sidepane.page:39(section/p) +#: ../C/gedit-plugins-file-browser.page:35(section/p) +msgid "" +"This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +"locate and open your desired files." +msgstr "" +"Това ще активира режима файлов браузър в страничния панел. После можете да използвате бутоните за навигация в горната част на " +"панела, за да намерите и отворите вашите файлове." + +#: ../C/gedit-open-files-from-sidepane.page:45(section/title) +msgid "Using the side pane to switch between open files" +msgstr "Използване на страничния панел за превключване между отворени файлове" + +#: ../C/gedit-open-files-from-sidepane.page:46(section/p) +msgid "" +"Once you have several files open, you can use the side pane to switch " +"between open files. To activate the file browser portion of the side " +"pane, click on the file icon at the bottom of the side " +"pane." +msgstr "" +"Щом имате отворени няколко файла, можете да използвате страничния панел за " +"превключване между тях. За да активирате прегледа на документи в " +"страничния панел, натиснете иконата файл в долната " +"част на страничния панел." + +#: ../C/gedit-open-files-from-sidepane.page:54(section/p) +msgid "" +"Clicking on any file name in the side pane will open that file " +"for editing." +msgstr "" +"Щракването върху файл в страничния панел ще го отвори за " +"редактиране." + +#: ../C/gedit-open-files.page:18(page/title) +msgid "Open a file or set of files" +msgstr "Отваряне на един или няколко файла" + +#: ../C/gedit-open-files.page:20(page/p) +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"За да отворите файл в gedit, натиснете бутона Отваряне " +"или натиснете CtrlO." + +#: ../C/gedit-open-files.page:21(page/p) +msgid "" +"This will cause the Open Files dialog to appear. Use your mouse " +"or keyboard to select the file that you wish to open, and then click " +"Open. The file that you've selected will open in a new tab." +msgstr "" +"Това ще отвори прозореца Отваряне на файлове. Използвайте мишката " +"или клавиатурата, за да изберете файла, който искате да се отвори и " +"натиснете Отваряне. Файлът, който сте избрали ще се отвори в нов " +"раздел." + +#: ../C/gedit-open-files.page:22(page/p) +msgid "" +"To close the Open Files dialog without opening a file, click " +"Cancel." +msgstr "" +"За да затворите прозореца Отваряне на файлове, натиснете " +"Отмяна." + +#: ../C/gedit-open-files.page:24(note/p) +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Можете да използвате клавишите Ctrl и Shift, за да " +"отворите няколко файла наведнъж. Ако задържите клавиша Ctrl " +"докато избирате файлове, натискането на Отваряне ще отвори всеки " +"избран файл." + +#: ../C/gedit-open-files.page:28(note/p) +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Задържането на клавиша Shift докато избирате файлове ще отвори " +"първия избран файл, последния избран файл и всички файлове между тях." + +#: ../C/gedit-open-on-server.page:14(page/title) +msgid "Open a file that is located on a server" +msgstr "Отваряне на файл, който се намира на сървър" + +#: ../C/gedit-open-on-server.page:16(page/p) +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"За да отворите файл в gedit, който се намира на сървър, трябва да " +"знаете някои технически данни за сървъра. Например трябва да знаете IP " +"адреса или уеб адреса на сървъра и да знаете неговия вид (т.е., HTTP, FTP и " +"т.н.)." + +#: ../C/gedit-open-on-server.page:18(page/p) +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Някои сървъри имат ограничения за това какво можете да правите с файловете, " +"които се намират на тях. Например можете да отворите файл от сървър, но да е " +"нужно да запазите направените промени във файл на вашия компютър." + +#: ../C/gedit-open-on-server.page:20(page/p) +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Като имате това предвид, извършете следните стъпки, за да отворите файл с " +"gedit от сървър:" + +#: ../C/gedit-open-on-server.page:23(item/p) +msgid "" +"Choose FileOpen to display the " +"Open Files dialog." +msgstr "" +"Изберете ФайлОтваряне, за да се " +"покаже прозорецът Отваряне на файлове." + +#: ../C/gedit-open-on-server.page:24(item/p) +msgid "" +"Select the Pencil icon near the top of the Open Files " +"dialog." +msgstr "" +"Натиснете иконата с молив в горната част на прозореца " +"Отваряне на файлове." + +#: ../C/gedit-open-on-server.page:25(item/p) +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Въведете IP адреса или уеб адреса на сървъра." + +#: ../C/gedit-open-on-server.page:26(item/p) +msgid "Find and select the file that you wish to open." +msgstr "Намерете и изберете файла, който искате да отворите." + +#: ../C/gedit-open-on-server.page:27(item/p) +msgid "" +"Use the Character coding drop-down list to select the appropriate character " +"coding." +msgstr "" +"Използвайте падащото меню Кодиране на знаците, за да " +"изберете подходящата кодова таблица." + +#: ../C/gedit-open-on-server.page:28(item/p) +#: ../C/gedit-plugins-quick-open.page:37(item/p) +msgid "Click Open." +msgstr "Натиснете Отваряне." + +#: ../C/gedit-open-on-server.page:31(page/p) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Валидните типове включват http:, ftp:, file: и всички други поддържани от " +"gvfs." + +#: ../C/gedit-open-on-server.page:34(note/p) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Файловете от някои типове сървъри се отварят в режим „само за четене“ и " +"всички направени промени трябва да се съхранят на друго място. Например HTTP " +"позволява файловете само да се четат. Файловете отворени от FTP са само за " +"четене, защото някои сървъри имат проблем със запазването на отдалечени " +"файлове." + +#: ../C/gedit-open-recent.page:14(page/title) +msgid "Reopen a recently-used file" +msgstr "Отваряне на последно използван файл" + +#: ../C/gedit-open-recent.page:16(page/p) +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"gedit предоставя бърз достъп до петте последно използвани файла. " +"Ето как можете да отворите последно използван файл:" + +#: ../C/gedit-open-recent.page:18(item/p) +msgid "" +"Click the downward-facing arrow to the right of the Open button." +msgstr "" +"Натиснете стрелката сочеща надолу от дясната страна на бутона Отваряне." + +#: ../C/gedit-open-recent.page:19(item/p) +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "gedit ще покаже списък на петте последно използвани файла." + +#: ../C/gedit-open-recent.page:20(item/p) +msgid "Select the desired file, and it will open in a new tab." +msgstr "Изберете желания файл и той ще бъде отворен в нов раздел." + +#: ../C/gedit-open-recent.page:23(note/p) +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the gconf-editor application." +msgstr "" +"За да зададете броя на последно използвани файлове в gedit, трябва да " +"използвате програмата gconf-editor." + +#: ../C/gedit-open-recent.page:25(item/p) +msgid "" +"Launch gconf-editor and select appsgedit-2preferencesuirecents." +msgstr "" +"Стартирайте gconf-editor и изберете appsgedit-2preferencesuirecents." + +#: ../C/gedit-open-recent.page:26(item/p) +msgid "" +"Double-click on the number next to max_recents and change the " +"number to your desired value." +msgstr "" +"Щракнете двукратно върху броя до Брой скорошни и задайте желаната " +"стойност." + +#: ../C/gedit-plugin-guide.page:14(page/title) +msgid "Configure and use gedit Plugins" +msgstr "Настройки и употреба" + +#: ../C/gedit-plugin-guide.page:15(page/p) +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Можете да правите повече с gedit като използвате приставки. По " +"подразбиране са инсталирани няколко приставки, но също са налични за " +"изтегляне голям брой други приставки." + +#: ../C/gedit-plugin-guide.page:19(note/p) +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Много Линукс дистрибуции правят група от тези приставки, които можете да " +"намерите като пакет gedit-plugins. Инсталирайте го, за да " +"добавите допълнителни приставки към gedit." + +#: ../C/gedit-plugin-guide.page:24(section/title) +msgid "Default gedit Plugins" +msgstr "Стандартни приставки в gedit" + +#: ../C/gedit-plugin-guide.page:28(section/title) +msgid "Additional gedit Plugins" +msgstr "Допълнителни приставки за gedit" + +#: ../C/gedit-plugins-bookmarks.page:13(info/desc) +msgid "Record commonly-referenced locations with bookmarks" +msgstr "Записване на често използвани места с отметки" + +#: ../C/gedit-plugins-bookmarks.page:16(page/title) +msgid "Bookmarks" +msgstr "Отметки" + +#: ../C/gedit-plugins-bookmarks.page:18(page/p) +msgid "" +"Gedit bookmarks allow you to highlight important lines of text within your " +"document or program, making them easier to find. You can also move up or " +"down between bookmarks, making document navigation a bit faster." +msgstr "" +"С отметките в gedit можете да оцветите важни редове с текст в документ като " +"по този начин ще можете да ги намерите по-лесно. Също така можете да се " +"предвижвате между отметките, така че прелистването на документа да става по-" +"бързо." + +#: ../C/gedit-plugins-bookmarks.page:22(page/p) +msgid "" +"To enable the bookmark plugin, select Edit " +"PreferencesPluginsBookmarks." +msgstr "" +"За да включите приставката за отметки, изберете РедактиранеНастройкиПриставкиОтметки." + +#: ../C/gedit-plugins-bookmarks.page:26(steps/title) +msgid "" +"Bookmarks are inserted and removed by completing the same action. To insert " +"or remove bookmarks:" +msgstr "" +"Отметките се вмъкват и премахват с еднакви действия. За вмъкване/премахване " +"на отметки:" + +#: ../C/gedit-plugins-bookmarks.page:28(item/p) +msgid "Navigate to the line where you want to insert or remove the bookmark." +msgstr "" +"Прелистете документа до реда, на който желаете да вмъкнете/премахнете " +"отметка." + +#: ../C/gedit-plugins-bookmarks.page:30(item/p) +msgid "" +"Press CtrlAltB, or click " +"EditToggle Bookmark." +msgstr "" +"Натиснете CtrlAltB или " +"РедактиранеОтметка." + +#: ../C/gedit-plugins-bookmarks.page:36(steps/title) +msgid "To move between bookmarks:" +msgstr "За предвижване между отметки:" + +#: ../C/gedit-plugins-bookmarks.page:37(item/p) +msgid "" +"Press CtrlB to move to the next " +"bookmark." +msgstr "" +"Натиснете CtrlB, за да отидете на " +"следващата отметка." + +#: ../C/gedit-plugins-bookmarks.page:39(item/p) +msgid "" +"Press CtrlShiftB to move " +"to the previous bookmark." +msgstr "" +"Натиснете CtrlShiftB, за " +"да отидете на предишната отметка." + +#: ../C/gedit-plugins-bookmarks.page:41(note/p) +msgid "" +"If you prefer using the mouse, you can click Edit Go " +"to Next Bookmark or EditGo to " +"Previous Bookmark." +msgstr "" +"Ако предпочитате да използвате мишката, щракнете РедактиранеКъм следващата отметка или РедактиранеКъм предишната отметка." + +#: ../C/gedit-plugins-bracket-comp.page:12(info/desc) +msgid "Auto-complete closing brackets" +msgstr "Автоматично вмъкване на затварящи скоби" + +#: ../C/gedit-plugins-bracket-comp.page:15(page/title) +msgid "Bracket completion" +msgstr "Затварящи скоби" + +#: ../C/gedit-plugins-bracket-comp.page:17(page/p) +msgid "" +"The Bracket Completion plugin will auto-complete closing brackets " +"for curly braces, parentheses, and square brackets." +msgstr "" +"Приставката Затварящи скоби автоматично ще постави затварящи " +"скоби за фигурни скоби, скоби и квадратни скоби." + +#: ../C/gedit-plugins-bracket-comp.page:19(page/p) +msgid "" +"To enable the plugin, select EditPreferencesPluginsBracket Completion." +msgstr "" +"За да включите приставката, натиснете РедактиранеНастройкиПриставкиЗатварящи скоби." + +#: ../C/gedit-plugins-bracket-comp.page:21(note/p) +msgid "This plugin does not automatically insert closing HTML or XML tags." +msgstr "Тази приставка не вмъква затварящи етикети за HTML или XML." + +#: ../C/gedit-plugins-change-case.page:9(credit/name) +#: ../C/gedit-plugins-doc-stats.page:9(credit/name) +#: ../C/gedit-plugins-external-tools.page:11(credit/name) +#: ../C/gedit-plugins-file-browser.page:9(credit/name) +#: ../C/gedit-plugins-insert-date-time.page:9(credit/name) +#: ../C/gedit-plugins-install.page:12(credit/name) +#: ../C/gedit-plugins-modelines.page:9(credit/name) +#: ../C/gedit-plugins-snippets.page:13(credit/name) +#: ../C/gedit-plugins-sort.page:9(credit/name) +#: ../C/gedit-plugins-tag-list.page:9(credit/name) +#: ../C/gedit-replace.page:15(credit/name) +#: ../C/gedit-search.page:15(credit/name) +#: ../C/gedit-tabs-moving.page:14(credit/name) +#: ../C/gedit-tabs.page:15(credit/name) +#: ../C/gedit-undo-recent-action.page:14(credit/name) +#: ../C/gedit-view-open-files-in-sidepane.page:14(credit/name) +msgid "Daniel Neel" +msgstr "Даниел Нийл" + +#: ../C/gedit-plugins-change-case.page:17(info/desc) +msgid "Change the case of selected text" +msgstr "Смяна на регистъра на избрания текст" + +#: ../C/gedit-plugins-change-case.page:20(page/title) +msgid "Change case" +msgstr "Смяна на регистъра" + +#: ../C/gedit-plugins-change-case.page:22(page/p) +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select " +"EditPreferencesPluginsChange " +"Case." +msgstr "" +"Тази приставка ви позволява да смените регистъра на знаците на избран откъс " +"текст. Можете да я използвате, за да смените всички знаци на малки/главни " +"букви, да обърнете регистъра или да приложите регистър за заглавие. За да " +"включите тази приставка изберете РедактиранеНастройкиПриставкиСмяна на регистъра." + +#: ../C/gedit-plugins-change-case.page:24(page/p) +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"След като приставката Смяна на регистъра е включена, можете да я " +"използвате като направите следното:" + +#: ../C/gedit-plugins-change-case.page:26(item/p) +msgid "Highlight the portion of text that you want to change." +msgstr "Оцветете текста, който искате да промените." + +#: ../C/gedit-plugins-change-case.page:27(item/p) +msgid "Select EditChange Case" +msgstr "Изберете EditСмяна на регистъра" + +#: ../C/gedit-plugins-change-case.page:28(item/p) +msgid "Choose your desired text-formatting option." +msgstr "Изберете желаното форматиране на текста." + +#: ../C/gedit-plugins-change-case.page:31(page/p) +msgid "The updates to the text formatting will take place immediately." +msgstr "Текстът ще бъде форматиран веднага." + +#: ../C/gedit-plugins-change-case.page:33(note/p) +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Опцията Обръщане на регистъра ще преобразува всички малки букви в " +"главни и всички главни букви в малки." + +#: ../C/gedit-plugins-change-case.page:34(note/p) +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Опцията Регистър за заглавие ще преобразува първата буква на " +"всяка дума в главна буква. Всички други букви ще бъдат преобразувани в малки." + +#: ../C/gedit-plugins-change-case.page:36(note/p) +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Ако не сте избрали текст, Смяна на регистъра ще бъде оцветена в " +"сиво. Преди да използвате тази функция, трябва да изберете текст." + +#: ../C/gedit-plugins-character-map.page:14(credit/name) +#: ../C/gedit-plugins-word-completion.page:14(credit/name) +msgid "Paul Weaver" +msgstr "Пол Уйвър" + +#: ../C/gedit-plugins-character-map.page:18(info/desc) +msgid "Insert special characters just by clicking on them" +msgstr "Вмъкване на специални знаци" + +#: ../C/gedit-plugins-character-map.page:21(page/title) +msgid "Character map" +msgstr "Таблица със знаци" + +#: ../C/gedit-plugins-character-map.page:29(page/p) +msgid "" +"The Character Map plugin enables you to insert characters into " +"your document that you may not be able to type easily using your keyboard. " +"To enable this plugin, select EditPreferencesPluginsCharacter Map." +msgstr "" +"Приставката Таблица със знаци ви помага да вмъкнете знаци в " +"документ, които е трудно да се въведат чрез клавиатура. За да включите " +"приставката, изберете РедактиранеНастройкиПриставкиТаблица със знаци." + +#: ../C/gedit-plugins-character-map.page:32(section/title) +msgid "Using Character Map" +msgstr "Употреба на таблицата със знаци" + +#: ../C/gedit-plugins-character-map.page:34(section/p) +msgid "" +"Once the plugin is enabled, you can add characters from the Character " +"Map tab of the side panel (ViewSide Panel)." +msgstr "" +"След като включите приставката можете да добавите знаци от раздела " +"Таблица със знаци в страничния панел (ИзгледСтраничен панел)." + +#: ../C/gedit-plugins-character-map.page:37(item/p) +msgid "" +"Place the cursor at the point in your document at which you would like your " +"special character." +msgstr "" +"Поставете курсора на мястото, на което искате да вмъкнете специален знак." + +#: ../C/gedit-plugins-character-map.page:38(item/p) +msgid "" +"Open the side panel by selecting ViewSide Panel, or by pressing F9." +msgstr "" +"Отворете страничния панел като изберете ИзгледСтраничен панел или натиснете F9." + +#: ../C/gedit-plugins-character-map.page:39(item/p) +msgid "Select the Character Map tab in the side panel." +msgstr "Изберете раздела Таблица със знаци в страничния панел." + +#: ../C/gedit-plugins-character-map.page:40(item/p) +msgid "" +"If neccessary, choose the character set to which your character belongs from " +"the list at the top of the Character Map tab (e.g., Arabic)." +msgstr "" +"Ако е необходимо, от списъка в горната част на Таблица със знаци " +"изберете набора от знаци, в който се намира желания знак (напр. „арабски“)." + +#: ../C/gedit-plugins-character-map.page:41(item/p) +msgid "Double click your desired character to insert it." +msgstr "Щракнете двукратно върху знак, за да го вмъкнете." + +#: ../C/gedit-plugins-character-map.page:44(note/p) +msgid "" +"You must click on the editing view of your document to continue editing " +"normally." +msgstr "" +"Трябва да преминете в изглежда за редактиране, за да можете да редактирате " +"документа." + +#: ../C/gedit-plugins-code-assistance.page:13(info/desc) +msgid "Real-time error highlighting for supported languages" +msgstr "Отбелязване на грешки в реално време за поддържани езици" + +#: ../C/gedit-plugins-code-assistance.page:16(page/title) +msgid "Code assistance" +msgstr "Помощник при програмиране" + +#: ../C/gedit-plugins-code-assistance.page:21(page/p) +msgid "" +"The gedit-code-assistance plugin provides real-time error " +"highlighting for C, C++ and Objective-C. To enable this plugin, select " +"EditPreferencesPluginsCode " +"Assistance." +msgstr "" +"Приставката Помощник при програмиране предоставя оцветяване на " +"грешките в реално време за езиците C, C++ и Objective-C. За да включите тази " +"приставка, изберете РедактиранеНастройкиПриставкиПомощник при програмиране." + +#: ../C/gedit-plugins-code-assistance.page:39(section/title) +msgid "How the code assistance plugin works" +msgstr "Как работи" + +#: ../C/gedit-plugins-code-assistance.page:41(section/p) +msgid "" +"The plugin currently relies on information in the makefile to deduce the " +"Clang error-highlighting rules. It examines the make rules and " +"determines which targets depend on the the file that is being parsed. The " +"plugin then extracts the compiler flags by simulating an execution of those " +"targets." +msgstr "" +"В момента приставката разчита на информацията във файла Makefile, за да " +"извлече правилата за оцветяване на грешки. Анализира правилата на " +"make и определя кои цели зависят от файла. После приставката " +"извлича флаговете на компилатора като симулира изпълнението на тези цели." + +#: ../C/gedit-plugins-code-assistance.page:47(section/p) +msgid "" +"This is not completely fool proof, of course. In the future, the plugin will " +"allow you to manually specify the compile flags." +msgstr "" +"Разбира се това не е съвършено. В бъдеще приставката ще позволява ръчно " +"указване на флаговете за компилиране." + +#: ../C/gedit-plugins-code-comment.page:13(info/desc) +msgid "Comment-out or uncomment a block of code" +msgstr "Коментиране на блок с код" + +#: ../C/gedit-plugins-code-comment.page:16(page/title) +msgid "Code comment" +msgstr "Коментиране на код" + +#: ../C/gedit-plugins-code-comment.page:18(page/p) +msgid "" +"Code comments are portions of text that make it easier for people to " +"understand a program's code, but they don't affect how a program works. " +"Comments are separated from other parts of a program by special characters." +msgstr "" +"Коментарите за код са части текст, които спомагат за разбирането на " +"програмен код, но не засягат неговата работоспособност. Коментарите са " +"отделени от другите части на програмата със специални знаци." + +#: ../C/gedit-plugins-code-comment.page:23(page/p) +msgid "" +"The code comment plugin makes it easier to quickly create or " +"remove code comments. To enable the code comment plugin, select " +" Edit PreferencesPluginsCode " +"comment ." +msgstr "" +"С приставката Коментиране на код можете бързо и лесно да " +"създавате и премахвате коментари. За да включите приставката изберете " +"РедактиранеНастройкиПриставкиКоментиране на код." + +#: ../C/gedit-plugins-code-comment.page:28(page/p) +msgid "To create or remove a comment:" +msgstr "За създаване или премахване на коментар:" + +#: ../C/gedit-plugins-code-comment.page:30(item/p) +msgid "" +"Highlight the portion of text where you want to add or remove a comment." +msgstr "Оцветете текста, за който искате да добавите или премахнете коментар." + +#: ../C/gedit-plugins-code-comment.page:32(item/p) +msgid "" +"To add a comment, click EditComment Code, or press CtrlM." +msgstr "" +"За да добавите коментар, натиснете РедактиранеКоментиране на код или натиснете CtrlM." + +#: ../C/gedit-plugins-code-comment.page:34(item/p) +msgid "" +"To remove a comment, click EditUncomment Code, or press ShiftCtrl M." +msgstr "" +"За да премахнете коментар, натиснете РедактиранеПремахване на коментара или натиснете " +"ShiftCtrlM." + +#: ../C/gedit-plugins-code-comment.page:39(note/p) +msgid "" +"Gedit will automatically use the correct style of comment based " +"on the language or syntax of the file. If gedit doesn't identify " +"your language or syntax, you can select it from the language list in the " +"bottom Status bar." +msgstr "" +"gedit автоматично ще използва правилния стил коментар на база " +"езика или синтаксиса на документа. Ако gedit не разпознае езика " +"или синтаксиса, можете да го изберете от списъка с езици в лентата за " +"състоянието в долната част на прозореца." + +#: ../C/gedit-plugins-color-picker.page:13(info/desc) +msgid "Pick a color from a dialog and insert its hexadecimal representation" +msgstr "Избор на цвят и вмъкване на шестнадесетичния му код" + +#: ../C/gedit-plugins-color-picker.page:16(page/title) +msgid "Color picker" +msgstr "Избор на цвят" + +#: ../C/gedit-plugins-color-picker.page:18(page/p) +msgid "" +"The color picker plugin helps you to insert the character codes " +"that represent a certain color. This can make it easier to choose and use " +"the correct color in your programs." +msgstr "" +"Приставката Избор на цвят улеснява вмъкването на код на определен " +"цвят. По този начин може да се улесни избора и употребата на точен код във " +"вашите програми." + +#: ../C/gedit-plugins-color-picker.page:22(page/p) +msgid "" +"To enable the color picker plugin, select EditPreferencesPluginsColor Picker ." +msgstr "" +"За да включите приставката Избор на цвят, изберете " +"РедактиранеНастройкиПриставкиИзбор на цвят." + +#: ../C/gedit-plugins-color-picker.page:26(page/p) +msgid "To open and use the color picker:" +msgstr "Избиране на цвят:" + +#: ../C/gedit-plugins-color-picker.page:28(item/p) +msgid "" +"Place your cursor at the point in your document where you want to insert the " +"color code." +msgstr "" +"Поставете курсора на място в документа, на което желаете да вмъкнете код на " +"цвят." + +#: ../C/gedit-plugins-color-picker.page:30(item/p) +msgid "" +"Select ToolsPick Color.... The color " +"picker dialog will appear." +msgstr "" +"Изберете ИнструментиИзбор на цвят…. " +"Ще се покаже прозореца за избор на цвят." + +#: ../C/gedit-plugins-color-picker.page:32(item/p) +msgid "" +"If the color that you want to select is currently on your screen, click on " +"the icon that looks like an eyedropper." +msgstr "" +"Ако цветът, който желаете да изберете се намира някъде в екрана, натиснете " +"иконата, която изглежда на капкомер." + +#: ../C/gedit-plugins-color-picker.page:34(item/p) +msgid "" +"Your mouse pointer will change appearance, and will look like an eyedropper." +msgstr "Показалеца на мишката ще се промени — ще изглежда на капкомер." + +#: ../C/gedit-plugins-color-picker.page:36(item/p) +msgid "" +"Use the eyedropper and click on the portion of your screen that contains the " +"color you want to use. The color code for that color will appear in the " +"color picker window." +msgstr "" +"Щракнете върху цвета, който желаете да използвате. Кодът на цвета ще се " +"покаже в прозореца за избор на цвят." + +#: ../C/gedit-plugins-color-picker.page:39(item/p) +msgid "" +"To insert that color code into your document, click Insert. The " +"code will be inserted where you had placed your cursor." +msgstr "" +"За да вмъкнете кода на този цвят в документа, натиснете Вмъкване." + +#: ../C/gedit-plugins-color-picker.page:42(item/p) +msgid "To close the color picker, click Close." +msgstr "" +"За да затворите прозореца на приставката Избор на цвят, натиснете " +"Затваряне." + +#: ../C/gedit-plugins-color-picker.page:46(note/p) +msgid "" +"You can make fine-grained adjustments to the color by adjusting the values " +"for Hue, Saturation, Value, Red, Green, or Blue." +msgstr "" +"Можете да направите фина настройка на цвета като промените стойностите за " +"Нюанс, Наситеност, Стойност, Червено, Зелено или Синьо." + +#: ../C/gedit-plugins-color-picker.page:48(note/p) +msgid "" +"Additionally, you can save colors by right-clicking on any of the colored " +"boxes in the color picker, and selecting Save color here. This " +"will make it easier to insert commonly-used colors later." +msgstr "" +"Можете да запазите цвят като щракнете с десния бутон върху някоя от " +"оцветените кутии и изберете Запазване на цветова схема. Така по-" +"лесно ще можете да вмъквате често използвани кодове." + +#: ../C/gedit-plugins-commander.page:13(info/desc) +msgid "Use a command-line interface for advanced editing" +msgstr "Използване на команден ред за разширено редактиране" + +#: ../C/gedit-plugins-commander.page:16(page/title) +msgid "Commander" +msgstr "От командния ред" + +#: ../C/gedit-plugins-commander.page:19(page/p) +msgid "" +"The Commander plugin is a plugin for advanced gedit " +"users that allows you to perform command-line actions on the current file. " +"To enable the commander plugin, select Edit " +"PreferencesPluginsCommander." +msgstr "" +"Приставката От командния ред е за напреднали потребители на " +"gedit, която позволява да се изпълняват команди върху текущия " +"файл от командния ред. За да включите приставката, изберете " +"РедактиранеНастройкиПриставкиОт командния ред." + +#: ../C/gedit-plugins-commander.page:24(page/p) +msgid "" +"Once you have enabled the plugin, activate it by pressing " +"Ctrl.." +msgstr "" +"За да я използвате, натиснете Ctrl.." + +#: ../C/gedit-plugins-commander.page:27(note/p) +msgid "The last key in the above key combination is a period." +msgstr "Последният клавиш в клавишната комбинация е точка." + +#: ../C/gedit-plugins-commander.page:33(td/p) +#: ../C/gedit-shortcut-keys.page:56(td/p) +#: ../C/gedit-shortcut-keys.page:88(td/p) +#: ../C/gedit-shortcut-keys.page:124(td/p) +#: ../C/gedit-shortcut-keys.page:168(td/p) +#: ../C/gedit-shortcut-keys.page:186(td/p) +#: ../C/gedit-shortcut-keys.page:217(td/p) +#: ../C/gedit-shortcut-keys.page:243(td/p) +msgid "To Do This" +msgstr "За да направите това" + +#: ../C/gedit-plugins-commander.page:33(td/p) +#: ../C/gedit-shortcut-keys.page:56(td/p) +#: ../C/gedit-shortcut-keys.page:88(td/p) +#: ../C/gedit-shortcut-keys.page:124(td/p) +#: ../C/gedit-shortcut-keys.page:168(td/p) +#: ../C/gedit-shortcut-keys.page:186(td/p) +#: ../C/gedit-shortcut-keys.page:217(td/p) +#: ../C/gedit-shortcut-keys.page:243(td/p) +msgid "Press This" +msgstr "Натиснете това" + +#: ../C/gedit-plugins-commander.page:38(td/p) +msgid "See an overview of available commands" +msgstr "Преглед на наличните команди" + +#: ../C/gedit-plugins-commander.page:38(td/p) +msgid "Tab + Tab" +msgstr "Tab + Tab" + +#: ../C/gedit-plugins-commander.page:42(td/p) +msgid "Find a word within the current file" +msgstr "Намиране на дума във файла" + +#: ../C/gedit-plugins-commander.page:42(td/p) +msgid "/ foo " +msgstr "/ шок " + +#: ../C/gedit-plugins-commander.page:44(td/p) +msgid "This will find the word foo." +msgstr "Намиране на думата шок." + +#: ../C/gedit-plugins-commander.page:47(td/p) +msgid "Replace a word within the current file" +msgstr "Заменяне на дума във файла" + +#: ../C/gedit-plugins-commander.page:47(td/p) +msgid "// foo bar" +msgstr "// шок къч" + +#: ../C/gedit-plugins-commander.page:49(td/p) +msgid "This will replace foo with bar." +msgstr "Заменяне на шок с къч." + +#: ../C/gedit-plugins-commander.page:52(td/p) +msgid "Move the cursor to a certain line number in your file" +msgstr "Преместване на курсора на указан ред" + +#: ../C/gedit-plugins-commander.page:53(td/p) +msgid "go [line number] or just g [line number]" +msgstr "go [номер на ред] или просто g [номер на ред]" + +#: ../C/gedit-plugins-commander.page:57(td/p) +msgid "Toggle the bookmark indicator for the current line" +msgstr "Добавяне/премахване на отметка за текущия ред" + +#: ../C/gedit-plugins-commander.page:58(td/p) +msgid "bookmark or just b" +msgstr "bookmark или просто b" + +#: ../C/gedit-plugins-commander.page:63(note/p) +msgid "" +"Some commands, such as the bookmark command require that the " +"appropriate plugin be installed and activated. If you do not have the " +"appropriate plugin installed and activated, you will receive an error " +"message." +msgstr "" +"Някои команди като bookmark изискват да бъде инсталирана и " +"включена съответната приставка. Ако приставката липсва или е изключена, ще " +"получите съобщение за грешка." + +#: ../C/gedit-plugins-dashboard.page:13(info/desc) +msgid "Display recently-used and most-used files on startup" +msgstr "Показване на наскоро използвани файлове при стартиране на gedit" + +#: ../C/gedit-plugins-dashboard.page:16(page/title) +msgid "Dashboard" +msgstr "Табло" + +#: ../C/gedit-plugins-dashboard.page:18(page/p) +msgid "" +"The Dashboard plugin provides quick access to your most recently-" +"used files and most-frequently used files. To activate the Dashboard plugin, select Edit PreferencesPluginsDashboard. You will need to " +"restart gedit to activate the Dashboard plugin." +msgstr "" +"Приставката Табло предоставя бърз достъп до последно и най-често " +"отваряни файлове. За да включите тази приставка, изберете " +"РедактиранеНастройкиПриставкиТабло. Ще е необходимо рестартиране на gedit, за да се включи приставката." + +#: ../C/gedit-plugins-dashboard.page:25(page/p) +msgid "" +"The dashboard also includes a Search window, allowing " +"you to search for files that may not appear in the list of files." +msgstr "" +"Табло-то има и прозорец за Търсене, който ви позволява " +"да търсите в списъка с файлове." + +#: ../C/gedit-plugins-dashboard.page:29(section/title) +msgid "Recently used files" +msgstr "Последно отваряни файлове" + +#: ../C/gedit-plugins-dashboard.page:30(section/p) +msgid "" +"The dashboard will initially display a shortcut for an empty document and seven of your most recently-used files. Click on the empty " +"document to create a new file. Click on any of the other files to open " +"that file." +msgstr "" +"Първоначално ще видите препратка към празен документ и седем от " +"последно отваряните файлове. Щракнете препратката, за да създадете нов файл. " +"Щракнете върху някой от другите файлове, за да го отворите." + +#: ../C/gedit-plugins-dashboard.page:37(section/title) +msgid "Most frequently-used files" +msgstr "Най-често отваряни файлове" + +#: ../C/gedit-plugins-dashboard.page:38(section/p) +msgid "" +"Similarly, the dashboard displays a shortcut for an empty document and seven of your most frequently-used files. Click on the empty " +"document to create a new file. Click on any of the other files to open " +"that file." +msgstr "" +"Подобно, таблото показва препратка към празен документ и седем от " +"най-често отваряните файлове. Щракнете препратката, за да създадете нов " +"файл. Щракнете върху някой от другите файлове, за да го отворите." + +#: ../C/gedit-plugins-dashboard.page:43(note/p) +msgid "" +"Once activated, the dashboard will be displayed by default when " +"you open gedit. You can also open the dashboard by " +"clicking FileNew , or by pressing " +"CtrlN." +msgstr "" +"След включване на приставката, Табло-то ще се показва по " +"подразбиране при стартиране на gedit. Също можете да отворите " +"Табло-то като изберете ФайлНов или натиснете CtrlN." + +#: ../C/gedit-plugins-doc-stats.page:16(info/desc) +msgid "View document statistics" +msgstr "Преглед на статистика за документа" + +#: ../C/gedit-plugins-doc-stats.page:19(page/title) +msgid "Document statistics" +msgstr "Статистика за документа" + +#: ../C/gedit-plugins-doc-stats.page:21(page/p) +msgid "" +"The Document Statistics plugin can show you various statistics " +"about your current document. To enable this plugin, select " +"EditPreferencesPluginsDocument " +"Statisics." +msgstr "" +"Приставката Статистика за документа може да ви покаже разнообразна " +"информация за текущия документ. За да включите тази приставка, изберете " +"РедактиранеНастройкиПриставкиСтатистика за документа." + +#: ../C/gedit-plugins-doc-stats.page:24(section/title) +msgid "Using Document Statistics" +msgstr "Използване на Статистика за документа" + +#: ../C/gedit-plugins-doc-stats.page:26(section/p) +msgid "" +"Once the plugin is enabled, use it by selecting ToolsDocument Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"След като приставката е включена, използвайте я като изберете " +"ИнструментиСтатистика за документа. " +"Информацията за вашия документ ще се покаже в прозорец, като включва брой " +"думи, линии, знаци, думи без интервали и размер на файла в байтове." + +#: ../C/gedit-plugins-doc-stats.page:28(section/p) +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Също можете да използвате приставката Статистика за документа, за " +"да видите информация за откъс от вашия документ. За да направите това, " +"изберете текста, който искате да се анализира и после изберете " +"ИнструментиСтатистика за документа. " +"gedit ще покаже информация както за целия документ, така и за " +"избрания текст." + +#: ../C/gedit-plugins-draw-spaces.page:13(info/desc) +msgid "Show white space between words or portions of code" +msgstr "Изобразяване на шпации между думи или части код" + +#: ../C/gedit-plugins-draw-spaces.page:16(page/title) +msgid "Draw spaces" +msgstr "Изобразяване на шпации" + +#: ../C/gedit-plugins-draw-spaces.page:18(page/p) +msgid "" +"The Draw Spaces plugin is a simple plugin that can mark spaces, " +"tabs, and other types of whitespace with a small, visible marker. By making " +"whitespace visible, you can more easily see how whitespace is used in a " +"document, and can apply spacing strategies more consistently." +msgstr "" +"Приставката Изобразяване на шпации е проста приставка, която може " +"да изобразява шпации, табулатори и други видове празни полета с видим " +"маркер. След изобразяването на празните полета, можете по-лесно да видите " +"начина, по който те са използвани във вашите документи." + +#: ../C/gedit-plugins-draw-spaces.page:23(page/p) +msgid "" +"To enable this plugin, select EditPreferences " +"PluginsDraw Spaces. After you have enabled " +"the plugin, you can set its options by highlighting the plugin and selecting " +"Preferences." +msgstr "" +"Можете да включите приставката като изберете РедактиранеНастройкиПриставкиИзобразяване на шпации. След като включите приставката, можете да я настроите като я " +"отбележите и натиснете бутона Настройки." + +#: ../C/gedit-plugins-draw-spaces.page:27(list/title) +msgid "" +"By default, the Draw Spaces plugin will mark the following types " +"of whitespace in a file:" +msgstr "" +"Със стандартните настройки, приставката Изобразяване на шпации ще " +"изобрази следните типове бели полета:" + +#: ../C/gedit-plugins-draw-spaces.page:28(item/p) +msgid "Spaces" +msgstr "Шпации" + +#: ../C/gedit-plugins-draw-spaces.page:29(item/p) +msgid "Tabs" +msgstr "Табулация" + +#: ../C/gedit-plugins-draw-spaces.page:30(item/p) +msgid "Leading spaces" +msgstr "Водещи шпации" + +#: ../C/gedit-plugins-draw-spaces.page:31(item/p) +msgid "Spaces in text" +msgstr "Шпации в текст" + +#: ../C/gedit-plugins-draw-spaces.page:32(item/p) +msgid "Trailing spaces" +msgstr "Шпации в края" + +#: ../C/gedit-plugins-draw-spaces.page:36(list/title) +msgid "You can also set the plugin to mark:" +msgstr "Можете да настроите приставката да изобразява също:" + +#: ../C/gedit-plugins-draw-spaces.page:37(item/p) +msgid "New Lines" +msgstr "Нови редове" + +#: ../C/gedit-plugins-draw-spaces.page:38(item/p) +msgid "Non-breaking spaces" +msgstr "Не разделящи шпации" + +#: ../C/gedit-plugins-draw-spaces.page:41(note/p) +msgid "" +"Though you will be able to see the dots when you work on a file, the dots " +"will not be visible when you print a file to paper." +msgstr "" +"Въпреки, че ще виждате точките докато работи с файл, те няма да се отпечатат " +"в случай, че отпечатате документа." + +#: ../C/gedit-plugins-external-tools.page:18(info/desc) +msgid "Run scripts on your current files, and interact with other applications" +msgstr "" +"Изпълняване на скриптове върху файлове и взаимодействие с други приложения" + +#: ../C/gedit-plugins-external-tools.page:22(page/title) +msgid "External tools" +msgstr "Външни инструменти" + +#: ../C/gedit-plugins-external-tools.page:24(page/p) +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select EditPreferencesPluginsExternal Tools." +msgstr "" +"Приставката Външни инструменти може да улесни повтарящи се задачи. " +"Разширява възможностите на gedit като ви позволява да изпълнявате " +"скриптове върху вашите работни файлове. Така gedit взаимодейства " +"с други програми на вашия компютър. За да включите приставката, изберете " +"РедактиранеНастройкиПриставкиВъншни инструменти." + +#: ../C/gedit-plugins-external-tools.page:27(section/title) +msgid "Configure the external tools plugin" +msgstr "Настройки на приставката Външни инструменти" + +#: ../C/gedit-plugins-external-tools.page:29(section/p) +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"След като включите приставката, трябва да я настроите според вашите " +"предпочитания. Настройките са достъпни като изберете " +"ИнструментиВъншни инструменти." + +#: ../C/gedit-plugins-external-tools.page:31(note/p) +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Тази приставка е за напреднали потребители и изисква познания за писане на " +"скриптове. Внимавайте, когато използвате тази приставка, защото грешки във " +"вашите скриптове могат да повлияят на вашата работа по непредсказуеми начини." + +#: ../C/gedit-plugins-file-browser.page:16(info/desc) +msgid "Use the side pane to browse and open files" +msgstr "Лесен файлов достъп от страничния панел" + +#: ../C/gedit-plugins-file-browser.page:19(page/title) +msgid "File browser pane" +msgstr "Панел на файловия браузър" + +#: ../C/gedit-plugins-file-browser.page:21(page/p) +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side pane, giving you easy access to your frequently-" +"used files." +msgstr "" +"В зависимост от това как използвате gedit, може да ви е полезно " +"да използвате приставката Панел на файловия браузър. Тази " +"приставка вгражда Панел на файловия браузър в страничния панел, " +"като ви дава бърз достъп до вашите често използвани файлове." + +#: ../C/gedit-plugins-file-browser.page:23(page/p) +msgid "" +"You can enable the Side Pane by selecting EditPreferencesPluginsFile Browser Pane." +msgstr "" +"Можете да включите Страничния панел като изберете " +"РедактиранеНастройкиПриставкиПанел на файловия браузър." + +#: ../C/gedit-plugins-file-browser.page:27(section/p) +msgid "" +"To activate and use the side pane, select ViewSide pane (or just press F9), and then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" +"За да активирате и използвате Страничен панел, изберете " +"ИзгледСтраничен панел (или просто " +"натиснете F9) и после натиснете иконата файлов браузър " +"в долната част на панела." + +#: ../C/gedit-plugins-insert-date-time.page:17(info/desc) +msgid "Insert the current date/time at the cursor position" +msgstr "Вмъкване на текущата дата/време на позицията на курсора" + +#: ../C/gedit-plugins-insert-date-time.page:20(page/title) +msgid "Insert date/time" +msgstr "Вмъкване на дата/време" + +#: ../C/gedit-plugins-insert-date-time.page:22(page/p) +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select EditPreferencesPluginsInsert Date/Time. To use the " +"plugin, press EditInsert Date and Time." +msgstr "" +"Както името предполага, приставката Вмъкване на дата/време ви " +"позволява да вмъкнете дата и/или време на текущата позиция на курсора. За да " +"включите тази приставка, изберете РедактиранеНастройкиПриставкиВмъкване на дата/време. За да използвате приставката, натиснете " +"РедактиранеВмъкване на дата/време." + +#: ../C/gedit-plugins-insert-date-time.page:24(page/p) +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"EditPreferencesPluginsInsert " +"Date/TimeConfigure." +msgstr "" +"По подразбиране, приставката Вмъкване на дата/време всеки път ще " +"ви напомня да изберете предпочитан формат за дата/време. Въпреки това можете " +"да изберете подразбиращ се формат за дата и време като изберете " +"РедактиранеНастройкиПриставкиВмъкване на дата/времеНастройки." + +#: ../C/gedit-plugins-install.page:15(info/desc) +msgid "How to install third-party plugins" +msgstr "Как се инсталират приставки от трети страни" + +#: ../C/gedit-plugins-install.page:18(page/title) +msgid "Additional gedit plugins" +msgstr "Допълнителни приставки за gedit" + +#: ../C/gedit-plugins-install.page:20(page/p) +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept here." +msgstr "" +"Инсталирането на приставки от трети страни ви дава допълнителна " +"функционалност, която не е включена в стандартните приставки на gedit както и в допълнителните приставки от пакета gedit-plugins. " +"Списък с приставките можете да намерите тук" + +#: ../C/gedit-plugins-install.page:27(page/p) +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Инсталирането на приставка от трета страна включва изтегляне, поставяне на " +"файловете ѝ в правилната папка и активиране." + +#: ../C/gedit-plugins-install.page:31(item/p) +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Обикновено можете да изтеглите приставка от нейния уеб сайт, но може да се " +"наложи да използвате приложение за управление на версиите като git, bazaar или subversion. Прочете ръководството на " +"приставката относно информация как да се сдобиете с нея." + +#: ../C/gedit-plugins-install.page:36(item/p) +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Копирайте файловете на приставката в папката /home/име на " +"потребител/.local/share/gedit/plugins" + +#: ../C/gedit-plugins-install.page:39(item/p) +msgid "Of course, replace the word username with your own username." +msgstr "" +"Заменете думата име на потребител с вашето собствено " +"потребителско име." + +#: ../C/gedit-plugins-install.page:41(item/p) +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins[Name of Plugin] to enable the plugin." +msgstr "" +"След като сте копирали файловете в правилната папка, приставката ще се появи " +"в менюто „Настройки“. За да включите приставката, изберете " +"РедактиранеНастройкиПриставки" +"[Име на приставката]." + +#: ../C/gedit-plugins-install.page:45(item/p) +#: ../C/gedit-plugins-session-saver.page:46(item/p) +msgid "Click Close." +msgstr "Натиснете Затваряне." + +#: ../C/gedit-plugins-install.page:48(page/p) +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "След като сте включили приставката, тя ще бъде достъпна за използване." + +#: ../C/gedit-plugins-install.page:52(note/p) +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Трябва да се показват скритите файлове, за да видите папката .local. За да я видите, натиснете ИзгледПоказване на " +"скритите файлове или натиснете CtrlH." + +#: ../C/gedit-plugins-install.page:59(note/p) +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Ако папката .local/share/gedit/plugins/ я няма на вашата " +"система, ще трябва да я създадете." + +#: ../C/gedit-plugins-join-split-lines.page:13(info/desc) +msgid "Join several lines of text, or split long lines" +msgstr "Съединяване на няколко линии текст или разделяне на дълги линии" + +#: ../C/gedit-plugins-join-split-lines.page:16(page/title) +msgid "Join/Split lines" +msgstr "Съединяване/Разделяне на линии" + +#: ../C/gedit-plugins-join-split-lines.page:18(page/p) +msgid "" +"The Join/Split Lines plugin can join shorter lines into one " +"longer line, or can split a long line into multiple shorter lines." +msgstr "" +"Приставката Съединяване/Разделяне на линии може да обедини по-" +"къси редове в дълъг или да раздели дълъг ред на няколко по-къси." + +#: ../C/gedit-plugins-join-split-lines.page:21(page/p) +msgid "" +"To enable this plugin, select EditPreferences " +"PluginsJoin/Split Lines." +msgstr "" +"За да включите приставката, натиснете РедактиранеНастройкиПриставкиСъединяване/Разделяне на " +"линии." + +#: ../C/gedit-plugins-join-split-lines.page:25(steps/title) +msgid "To join multiple lines into one longer line:" +msgstr "За съединяване на множество линии в една дълга:" + +#: ../C/gedit-plugins-join-split-lines.page:26(item/p) +msgid "" +"Select the lines that you want to join. To do this, you can use the mouse, " +"or you can press ShiftUp Arrow or " +"ShiftDown Arrow." +msgstr "" +"Изберете линиите, които искате да се съединят. Можете да ги изберете с " +"мишката или да натиснете ShiftНагоре " +"или ShiftНадолу." + +#: ../C/gedit-plugins-join-split-lines.page:30(item/p) +msgid "Press CtrlJ." +msgstr "Натиснете CtrlJ." + +#: ../C/gedit-plugins-join-split-lines.page:31(item/p) +msgid "The lines that you selected will be joined into one longer line." +msgstr "Линиите, които сте избрали ще бъдат съединени в една дълга." + +#: ../C/gedit-plugins-join-split-lines.page:36(steps/title) +msgid "To split one line into multiple lines:" +msgstr "За разделяне на линия на няколко линии:" + +#: ../C/gedit-plugins-join-split-lines.page:37(item/p) +msgid "" +"Select the line that you want to split by placing your cursor anywhere on " +"that line." +msgstr "" +"Изберете линията, която искате да се раздели като поставите курсора на нея." + +#: ../C/gedit-plugins-join-split-lines.page:39(item/p) +msgid "Press CtrlShiftJ." +msgstr "" +"Натиснете CtrlShiftJ." + +#: ../C/gedit-plugins-join-split-lines.page:41(item/p) +msgid "" +"The line will be split into multiple lines. Spaces are used to determine " +"where it is safe to split a line, and the length of each line will not " +"exceed 80 characters." +msgstr "" +"Линията ще се раздели на няколко линии. Дължината на всяка линия ще е по-" +"малка от 80 знака като разделянето ще стане при срещане на знак шпация в " +"края на линията." + +#: ../C/gedit-plugins-modelines.page:16(info/desc) +msgid "Emacs, Kate and Vim-style modelines support for gedit" +msgstr "Поддръжка в gedit на линиите за режима на Emacs, Kate и Vim" + +#: ../C/gedit-plugins-modelines.page:19(page/title) +msgid "Modelines" +msgstr "Линии за режима" + +#: ../C/gedit-plugins-modelines.page:21(page/p) +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Приставката Линии за режима позволява на gedit да " +"анализира линиите на текст в началото и края на файл и да му приложи " +"различни форматиращи схеми. Приставката поддържа опции използвани от " +"текстовите редактори Emacs, Kate и Vim." + +#: ../C/gedit-plugins-modelines.page:23(page/p) +msgid "" +"To enable the Modelines plugin, select EditPreferencesPluginsModelines." +msgstr "" +"За да включите приставката Линии на режима, натиснете " +"РедактиранеНастройкиПриставкиЛинии на режима." + +#: ../C/gedit-plugins-modelines.page:26(section/title) +msgid "General Modeline Options" +msgstr "Общи опции" + +#: ../C/gedit-plugins-modelines.page:27(section/p) +msgid "The following options can be set using gedit modelines:" +msgstr "Могат да се зададат следните опции чрез gedit:" + +#: ../C/gedit-plugins-modelines.page:29(item/p) +msgid "Tab width" +msgstr "Широчина на табулатора" + +#: ../C/gedit-plugins-modelines.page:30(item/p) +msgid "Indent width" +msgstr "Отстъп надясно на редовете" + +#: ../C/gedit-plugins-modelines.page:31(item/p) +msgid "Inserting spaces instead of tabs" +msgstr "Вмъкване на интервали вместо табулатори" + +#: ../C/gedit-plugins-modelines.page:32(item/p) +msgid "Text Wrapping" +msgstr "Режим с пренасяне" + +#: ../C/gedit-plugins-modelines.page:33(item/p) +msgid "Right margin width" +msgstr "Дясна граница" + +#: ../C/gedit-plugins-modelines.page:36(note/p) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Настройките зададени чрез линии на режима са с по-висок приоритет от тези " +"указани в прозореца с настройки на gedit." + +#: ../C/gedit-plugins-modelines.page:40(section/title) +msgid "Emacs Modelines" +msgstr "Линии на режима на Emacs" + +#: ../C/gedit-plugins-modelines.page:42(section/p) +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Първите две линии на документ се анализират за линии на режима на " +"Emacs. gedit поддържа следните опции на Emacs:" + +#: ../C/gedit-plugins-modelines.page:44(item/p) +msgid "Tab-width" +msgstr "Tab-width" + +#: ../C/gedit-plugins-modelines.page:45(item/p) +msgid "Indent-offset" +msgstr "Indent-offset" + +#: ../C/gedit-plugins-modelines.page:46(item/p) +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#: ../C/gedit-plugins-modelines.page:47(item/p) +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#: ../C/gedit-plugins-modelines.page:49(section/p) +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"За повече информация за режима на Emacs посетете Ръководството на GNU " +"Emacs." + +#: ../C/gedit-plugins-modelines.page:53(section/title) +msgid "Kate Modelines" +msgstr "Линии на режима на Kate" + +#: ../C/gedit-plugins-modelines.page:55(section/p) +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Анализират се първите и последните десет линии на документ за линии на " +"режима на Kate. gedit поддържа следните опции на " +"Kate:" + +#: ../C/gedit-plugins-modelines.page:58(item/p) +msgid "tab-width" +msgstr "tab-width" + +#: ../C/gedit-plugins-modelines.page:59(item/p) +msgid "indent-width" +msgstr "indent-width" + +#: ../C/gedit-plugins-modelines.page:60(item/p) +msgid "space-indent" +msgstr "space-indent" + +#: ../C/gedit-plugins-modelines.page:61(item/p) +msgid "word-wrap" +msgstr "word-wrap" + +#: ../C/gedit-plugins-modelines.page:62(item/p) +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#: ../C/gedit-plugins-modelines.page:65(section/p) +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"За повече информация относно линии на режима на Kate, посетете " +"сайта на Kate." + +#: ../C/gedit-plugins-modelines.page:69(section/title) +msgid "Vim Modelines" +msgstr "Редове на режима на Vim" + +#: ../C/gedit-plugins-modelines.page:70(section/p) +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Анализират се първите и последните 3 реда на документ за Vim. " +"gedit поддържа следните опции на Vim:" + +#: ../C/gedit-plugins-modelines.page:73(item/p) +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#: ../C/gedit-plugins-modelines.page:74(item/p) +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#: ../C/gedit-plugins-modelines.page:75(item/p) +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#: ../C/gedit-plugins-modelines.page:76(item/p) +msgid "wrap" +msgstr "wrap" + +#: ../C/gedit-plugins-modelines.page:77(item/p) +msgid "textwidth" +msgstr "textwidth" + +#: ../C/gedit-plugins-modelines.page:80(section/p) +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"За повече информация относно линии на режима на Vim, посетете " +"сайта на Vim." + +#: ../C/gedit-plugins-multi-edit.page:11(credit/years) +msgid "2011" +msgstr "2011" + +#: ../C/gedit-plugins-multi-edit.page:14(info/desc) +msgid "Edit a document in multiple places at once" +msgstr "Редактиране на документ на множество места наведнъж" + +#: ../C/gedit-plugins-multi-edit.page:17(page/title) +msgid "Multi edit" +msgstr "Множествено редактиране" + +#: ../C/gedit-plugins-multi-edit.page:19(page/p) +msgid "" +"The Multi Edit plugin allows you to edit a document in multiple " +"places at once. This can be helpful when performing tedious editing tasks. " +"To enable the Multi Edit plugin, select Edit " +"PreferencesPluginsMulti Edit." +msgstr "" +"Приставката Множествено редактиране ви позволява да редактирате " +"документ на множество места едновременно. Това може да е полезно, когато " +"трябва да свършите досадни редакторски задачи. За да включите приставката, " +"изберете РедактиранеНастройкиПриставкиМножествено редактиране." + +#: ../C/gedit-plugins-multi-edit.page:24(page/p) +msgid "" +"After you have enabled the plugin, turn-on Multi Edit mode by pressing " +"CtrlShiftC, or clicking " +"EditMulti Edit Mode. You can then " +"select the points in your file that you would like start editing." +msgstr "" +"След като включите приставката, включете режима „Множествено редактиране“ " +"като натиснете CtrlShiftC " +"или изберете РедактиранеМножествено редактиране. Можете да изберете местата във вашия документ, които искате " +"да редактирате." + +#: ../C/gedit-plugins-multi-edit.page:29(page/p) +msgid "To insert editing points in your file:" +msgstr "За отбелязване на текст за редактиране:" + +#: ../C/gedit-plugins-multi-edit.page:31(item/p) +msgid "Place your cursor at your first desired editing point." +msgstr "Поставете курсора в началото на текста." + +#: ../C/gedit-plugins-multi-edit.page:32(item/p) +msgid "Press CtrlE." +msgstr "Натиснете CtrlE." + +#: ../C/gedit-plugins-multi-edit.page:33(item/p) +msgid "" +"Move to your next editing point, and press Ctrl E again." +msgstr "" +"Преместете курсора в края на текста и отново натиснете CtrlE." + +#: ../C/gedit-plugins-multi-edit.page:35(item/p) +msgid "Continue inserting editing points, adding as many as you need." +msgstr "Повторете стъпките колкото пъти е необходимо." + +#: ../C/gedit-plugins-multi-edit.page:39(page/p) +msgid "" +"Once you have inserted all of your editing points, you can make your desired " +"edits." +msgstr "" +"След като отбележите желаните места в текста, можете да започнете " +"редактирането." + +#: ../C/gedit-plugins-multi-edit.page:42(page/p) +msgid "" +"To remove editing points, press the Esc key. This will remove all " +"of the editing points. Pressing the Esc key again will turn off " +"Multi Edit mode, returning the editor back to its normal state." +msgstr "" +"За да премахнете отбелязването на текста за редактиране, натиснете клавиша " +"Esc. При следващото натискане на клавиша Esc, режимът " +"„Множествено редактиране“ ще бъде изключен." + +#: ../C/gedit-plugins-pyconsole.page:12(info/desc) +msgid "Add an interactive Python console to the bottom pane" +msgstr "Интерактивна конзола на Питон в долния панел" + +#: ../C/gedit-plugins-pyconsole.page:15(page/title) +msgid "Python console" +msgstr "Конзола на Питон" + +#: ../C/gedit-plugins-pyconsole.page:17(page/p) +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select EditPreferencesPluginsPython Console." +msgstr "" +"Можете да добавите конзола на Питон в долния панел, която ви позволява да " +"изпробвате скриптове на Питон, без да напускате gedit. За да " +"включите конзолата на Питон, изберете РедактиранеНастройкиПриставкиКонзола на Питон." + +#: ../C/gedit-plugins-pyconsole.page:19(page/p) +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Pane, or just press " +"ShiftF9." +msgstr "" +"Щом конзолата на Питон е включена, можете да я отворите като натиснете " +"ИзгледДолен панел или просто като " +"натиснете ShiftF9." + +#: ../C/gedit-plugins-pyconsole.page:21(note/p) +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Ако също сте включили приставката Вграден терминал, Вграден " +"терминал ще се покаже в отделен раздел в долния панел." + +#: ../C/gedit-plugins-quick-open.page:13(info/desc) +msgid "Quickly open a file or set of files" +msgstr "Отваряне на един или няколко файла" + +#: ../C/gedit-plugins-quick-open.page:16(page/title) +msgid "Quick open" +msgstr "Бързо отваряне" + +#: ../C/gedit-plugins-quick-open.page:18(page/p) +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than the regular way of opening files. " +"To enable this plugin, select Edit PreferencesPluginsQuick Open." +msgstr "" +"Както името подсказва, приставката Бързо отваряне помага за по-" +"бързо отваряне на файлове. За да използвате приставката, изберете " +"РедактиранеНастройкиПриставкиБързо отваряне." + +#: ../C/gedit-plugins-quick-open.page:23(page/p) +msgid "Once you've enabled it, here is how to use the plugin:" +msgstr "Ето как да използвате приставката:" + +#: ../C/gedit-plugins-quick-open.page:26(item/p) +msgid "" +"Open the Quick Open dialog by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "" +"Отворете прозореца на Бързо отваряне като натиснете " +"CtrlAltO или като изберете " +"ФайлБързо отваряне." + +#: ../C/gedit-plugins-quick-open.page:29(item/p) +msgid "The Quick Open file dialog will appear." +msgstr "Ще се покаже прозорецът Бързо отваряне." + +#: ../C/gedit-plugins-quick-open.page:30(item/p) +msgid "Use your mouse to select the file or files that you want to open." +msgstr "С мишката изберете файла или файловете, които искате да отворите." + +#: ../C/gedit-plugins-quick-open.page:32(item/p) +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"За да изберете индивидуални файлове, задръжте клавиша Ctrl и " +"после щракнете върху тях." + +#: ../C/gedit-plugins-quick-open.page:34(item/p) +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"За да изберете група от файлове, изберете първия файл, задръжте клавиша " +"Shift и после изберете последния файл от желания списък." + +#: ../C/gedit-plugins-quick-open.page:40(note/p) +msgid "" +"The Quick Open plugin will only display files that you have " +"previously opened." +msgstr "" +"Приставката Бързо отваряне ще показва само файлове, които вече " +"сте отваряли." + +#: ../C/gedit-plugins-session-saver.page:13(info/desc) +msgid "Save and restore your working sessions" +msgstr "Запазване и възстановяване на сесия" + +#: ../C/gedit-plugins-session-saver.page:16(page/title) +msgid "Session Saver" +msgstr "Запазване на сесия" + +#: ../C/gedit-plugins-session-saver.page:18(page/p) +msgid "" +"The Session Saver plugin saves groups of files together so that " +"you can open them together at a later time. To enable the plugin, select " +"EditPreferencesPlugins Session " +"Saver." +msgstr "" +"Приставката Запазване на сесия запазва всички текущо отворени " +"документи. За да включите приставката натиснете РедактиранеНастройкиПриставкиЗапазване на сесия." + +#: ../C/gedit-plugins-session-saver.page:24(steps/title) +msgid "To save a new session:" +msgstr "За запазване на нова сесия:" + +#: ../C/gedit-plugins-session-saver.page:25(item/p) +msgid "" +"Select FileSaved SessionsSave current " +"session." +msgstr "" +"Изберете ФайлЗапазени сесииЗапазване на " +"текущата сесия." + +#: ../C/gedit-plugins-session-saver.page:27(item/p) +msgid "Type a session name in the Save session dialog box." +msgstr "Въведете име в прозореца Запазване на сесия." + +#: ../C/gedit-plugins-session-saver.page:29(item/p) +msgid "Click Save." +msgstr "Натиснете Запазване." + +#: ../C/gedit-plugins-session-saver.page:33(steps/title) +msgid "To open an existing session:" +msgstr "Отваряне на съществуваща сесия:" + +#: ../C/gedit-plugins-session-saver.page:34(item/p) +msgid "Select FileSaved Sessions." +msgstr "Изберете ФайлЗапазени сесии." + +#: ../C/gedit-plugins-session-saver.page:36(item/p) +msgid "Click the name of your desired session." +msgstr "Изберете желаната сесия." + +#: ../C/gedit-plugins-session-saver.page:40(steps/title) +msgid "To delete an existing session:" +msgstr "Изтриване на сесия:" + +#: ../C/gedit-plugins-session-saver.page:41(item/p) +msgid "" +"Select FileSaved Sessions Manage saved " +"sessions." +msgstr "" +"Изберете ФайлЗапазени сесииУправление на " +"запазени сесии." + +#: ../C/gedit-plugins-session-saver.page:43(item/p) +msgid "Select the name of the session that you want to delete." +msgstr "Изберете сесията, която желаете да изтриете." + +#: ../C/gedit-plugins-session-saver.page:45(item/p) +msgid "Click Delete." +msgstr "Натиснете Запазване." + +#: ../C/gedit-plugins-session-saver.page:47(item/p) +msgid "" +"The session name will still be listed in your list of sessions until you " +"close gedit." +msgstr "" +"Името на сесията ще се появява в списъка със сесии докато не затворите " +"gedit." + +#: ../C/gedit-plugins-snippets-guide.page:11(info/desc) +msgid "Use snippets to quickly insert often-used pieces of text" +msgstr "" +"Използвайте изрезки за бързо вмъкване на често използвани парчета текст" + +#: ../C/gedit-plugins-snippets-guide.page:14(page/title) +msgid "Snippets" +msgstr "Изрезки" + +#: ../C/gedit-plugins-snippets-guide.page:16(page/p) +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Приставката Изрезки предоставя удобен начин за вмъкване на еднакви " +"части код във вашите документи. Например, HTML изрезка за етикета <" +"img> ще вмъкне отварящ и затварящ етикет, както и фиксирани места, " +"на които можете да въведете атрибути за изображение. По този начин писането " +"на код може да стане по-лесно и бързо." + +#: ../C/gedit-plugins-snippets-guide.page:22(page/p) +msgid "" +"To enable the Snippets plugin, select Edit " +"PreferencesPluginsSnippets." +msgstr "" +"За да включите приставката Изрезки, натиснете " +"РедактиранеНастройкиПриставкиИзрезки." + +#: ../C/gedit-plugins-snippets-guide.page:26(section/title) +msgid "Using, Modifying and creating snippets" +msgstr "Употреба, промяна и създаване на изрезки" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-plugins-snippets.page:35(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#: ../C/gedit-plugins-snippets.page:16(info/desc) +msgid "Inserting snippets of text into your files" +msgstr "Вмъкване на изрезки от текст във вашите документи" + +#: ../C/gedit-plugins-snippets.page:19(page/title) +msgid "Using snippets" +msgstr "Използване на изрезки" + +#: ../C/gedit-plugins-snippets.page:21(page/p) +msgid "The following points will help you get started with using snippets:" +msgstr "Следните параграфи ще ви въведат в употребата на изрезки:" + +#: ../C/gedit-plugins-snippets.page:24(item/p) +msgid "Make sure the syntax is set appropriately." +msgstr "Уверете се, че е избран коректен синтаксис." + +#: ../C/gedit-plugins-snippets.page:25(item/p) +msgid "" +"The status bar at the bottom of the gedit window will show the " +"current language setting. This language setting is what allows gedit to " +"insert the proper snippets. Gedit will normally detect the " +"language or syntax of the file that you're using, but sometimes you may need " +"to set it." +msgstr "" +"Лентата за състояние в долната част на прозореца на gedit ще ви " +"покаже текущо избрания език. С помощта на тази настройка gedit вмъква " +"правилните изрезки. Обикновено gedit ще открие езика или " +"синтаксиса според файла, който сте отворили, но понякога е необходимо да го " +"зададете ръчно." + +#: ../C/gedit-plugins-snippets.page:33(figure/desc) +msgid "In this example, the language is set to HTML." +msgstr "В този пример езикът е нагласен на HTML." + +#: ../C/gedit-plugins-snippets.page:40(item/p) +msgid "Review the default snippets." +msgstr "Прегледайте стандартните изрезки." + +#: ../C/gedit-plugins-snippets.page:41(item/p) +msgid "" +"Select ToolsManage Snippets. Review " +"the snippets that are available for your language or syntax. Find some basic " +"snippets that you think might be useful for you." +msgstr "" +"Изберете ИнструментиУправление на изрезки. Прегледайте изрезките, които са налични за вашия език или " +"синтаксис. Намерете някои прости изрезки, които смятате, че ще ви бъдат от " +"полза." + +#: ../C/gedit-plugins-snippets.page:45(item/p) +msgid "Try using some of the snippets." +msgstr "Изпробване на изрезките." + +#: ../C/gedit-plugins-snippets.page:46(item/p) +msgid "" +"For example, if you set the syntax to HTML, type head , and press the Tab key, you should see something like this:" +msgstr "" +"Например, ако зададете синтаксиса на HTML, въведете head и натиснете клавиша Tab, ще видите нещо подобно:" + +#: ../C/gedit-plugins-snippets.page:51(page/code) +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " + +#: ../C/gedit-plugins-sort.page:16(info/desc) +msgid "Sort lines of text into alphabetical order" +msgstr "Подреждане на редове текст в азбучен ред" + +#: ../C/gedit-plugins-sort.page:19(page/title) +msgid "Sort" +msgstr "Подреждане" + +#: ../C/gedit-plugins-sort.page:21(page/p) +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Приставката Подреждане подрежда избраните линии по азбучен ред." + +#: ../C/gedit-plugins-sort.page:23(note/p) +msgid "" +"You cannot use the Undo feature to correct a Sort " +"operation, so we recommend that you save the file immediately before " +"performing the sort. If you make a mistake with the sort, you can revert to " +"the previously-saved version of the file by selecting FileRevert." +msgstr "" +"Не може да върнете действието на Подреждане чрез Отмяна така че трябва да запазите файла преди да извършвате подреждане. За да " +"върнете запазената версия на файла, след такава операция, изберете " +"ФайлВръщане." + +#: ../C/gedit-plugins-sort.page:25(page/p) +msgid "" +"To enable the Sort plugin, select EditPreferencesPluginsSort." +msgstr "" +"За да включите приставката Подреждане, натиснете " +"РедактиранеНастройкиПриставкиПодреждане." + +#: ../C/gedit-plugins-sort.page:27(page/p) +msgid "" +"After you have enabled the Sort plugin, use it by selecting the " +"lines of text you want to sort, and then clicking EditSort." +msgstr "" +"След като включите приставката Подреждане, използвайте я като " +"изберете редовете, които искате да се подредят и после натиснете " +"РедактиранеПодреждане." + +#: ../C/gedit-plugins-sort.page:29(page/p) +msgid "" +"The Sort dialog will open, allowing you to choose between several sorting " +"options:" +msgstr "" +"Ще се отвори прозорец, в който можете да изберете измежду няколко опции за " +"подреждане:" + +#: ../C/gedit-plugins-sort.page:31(item/p) +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "Обратен ред ще подреди текста в обратен азбучен ред." + +#: ../C/gedit-plugins-sort.page:32(item/p) +msgid "Remove duplicates will remove duplicate values from the list." +msgstr "" +"Премахване на повтарящи се ще премахне повтарящите се стойности от " +"списъка." + +#: ../C/gedit-plugins-sort.page:33(item/p) +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Игнориране на главни/малки ще игнорира регистъра на знаците (главни " +"или малки букви)." + +#: ../C/gedit-plugins-sort.page:34(item/p) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"За игнориране на знаци в началото на линиите, задайте първия знак, който " +"трябва да се използва за подреждане в полето Започване от колона." + +#: ../C/gedit-plugins-sort.page:36(page/p) +msgid "To perform the sort operation, click Sort." +msgstr "" +"За да се извърши операцията по подреждане, натиснете Подреждане." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-plugins-tag-list.page:35(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-side-pane3.png' " +"md5='4b800d370193ac0ed8db9eb33b86e11c'" +msgstr "" +"external ref='figures/gedit-side-pane3.png' " +"md5='4b800d370193ac0ed8db9eb33b86e11c'" + +#: ../C/gedit-plugins-tag-list.page:16(info/desc) +msgid "" +"Automatically insert tags, strings and special characters into a document" +msgstr "Автоматично вмъкване на етикети, низове и специални знаци в документ" + +#: ../C/gedit-plugins-tag-list.page:19(page/title) +msgid "Tag list" +msgstr "Списък с етикети" + +#: ../C/gedit-plugins-tag-list.page:21(page/p) +msgid "" +"The Tag List plugin allows you to insert common tags and special " +"characters from a list in the side pane. By default, the plugin can insert " +"tags and special characters for HTML, XHTML, XSLT, XUL and LaTeX." +msgstr "" +"Приставката Списък с етикети ви позволява да вмъквате често " +"използвани етикети и специални знаци от списък в страничния панел. " +"Приставката може да вмъква етикети и специални знаци за HTML, XHTML, XSLT, " +"XUL и LaTeX." + +#: ../C/gedit-plugins-tag-list.page:24(section/title) +msgid "Using the Tag List plugin" +msgstr "Използване на приставката за списък с етикети" + +#: ../C/gedit-plugins-tag-list.page:26(section/p) +msgid "" +"To use the Tag List plugin, you will need to enable the plugin, " +"and then activate the tag-list portion of the side pane." +msgstr "" +"За да използвате приставката Списък с етикети трябва да я " +"включите и да активирате списъка с етикети в страничния панел." + +#: ../C/gedit-plugins-tag-list.page:29(section/title) +msgid "Enabling the Plugin" +msgstr "Включване на приставката" + +#: ../C/gedit-plugins-tag-list.page:30(section/p) +msgid "" +"You can activate the plugin by selecting EditPreferencesPluginsTag List. " +"Once you have activated the plugin, access it by selecting " +"ViewSide Pane, or by pressing " +"F9." +msgstr "" +"Можете да включите приставката като изберете РедактиранеНастройкиПриставкиСписък с етикети. След като включите приставката, можете да я използвате като " +"изберете ИзгледСтраничен панел или " +"като натиснете F9." + +#: ../C/gedit-plugins-tag-list.page:32(section/p) +msgid "" +"The side pane initially shows a list of open documents, so to view and use " +"the tag list, you will need to click on the tab showing the \"plus" +"\" icon at the bottom of the side pane. The icon will look similar to this:" +msgstr "" +"Първоначално страничният панел показва списък с отворените документи, така " +"че, за да видите Списък с етикети, трябва да щракнете на раздела " +"с икона „+“ в страничния панел. Иконата ще изглежда подобно на тази:" + +#: ../C/gedit-plugins-tag-list.page:39(section/title) +msgid "Inserting Tags and Special Characters" +msgstr "Вмъкване на етикети и специални знаци" + +#: ../C/gedit-plugins-tag-list.page:41(section/p) +msgid "" +"The tag list uses a drop-down menu to let you choose from the " +"different types of tags. For example, one tag option is HTML - Tags." +msgstr "" +"Списък с етикети използва падащо меню, от което можете да " +"изберете измежду различни видове етикети. Например една от опциите е " +"HTML — етикети." + +#: ../C/gedit-plugins-tag-list.page:43(section/p) +msgid "To start inserting tags, complete the following:" +msgstr "За да вмъквате етикети, направете следното:" + +#: ../C/gedit-plugins-tag-list.page:46(item/p) +msgid "" +"Move the cursor to where you will want to insert the tag or special " +"character." +msgstr "" +"Преместете курсора на мястото, на което искате да поставите етикет или " +"специален знак." + +#: ../C/gedit-plugins-tag-list.page:47(item/p) +msgid "" +"Select the desired tag type from the drop-down menu at the top of the side " +"pane." +msgstr "" +"В горната част на страничния панел от падащото меню изберете желания тип " +"етикет." + +#: ../C/gedit-plugins-tag-list.page:48(item/p) +msgid "Scroll through the list to find the desired tag or character." +msgstr "Превъртете списъка с етикети, за да откриете търсения етикет." + +#: ../C/gedit-plugins-tag-list.page:49(item/p) +msgid "Double-click on the tag in the tag list." +msgstr "Щракнете двукратно върху етикета в списъка." + +#: ../C/gedit-plugins-tag-list.page:52(section/p) +msgid "" +"The tag or special character you've chosen will then be displayed in your " +"document." +msgstr "Избраният етикет или специален знак ще се покаже в документа." + +#: ../C/gedit-plugins-tag-list.page:56(section/title) +msgid "Tag List Tips" +msgstr "Съвети за Списък с етикети" + +#: ../C/gedit-plugins-tag-list.page:57(note/p) +msgid "" +"You can also insert a tag by pressing Return or " +"ShiftReturn." +msgstr "" +"Също можете да вмъкнете етикет като натиснете Enter или " +"ShiftEnter." + +#: ../C/gedit-plugins-tag-list.page:58(note/p) +msgid "" +"Pressing the Return key will insert the tag at the cursor " +"position, and then return focus to the document. Pressing " +"ShiftReturn will insert the tag at " +"the cursor position, but will keep the focus on the tag-list." +msgstr "" +"Натискането на клавиша Enter ще вмъкне етикета в позицията на " +"курсора и после ще върне фокуса върху документа. Натискането на " +"ShiftEnter ще вмъкне етикета в " +"позицията на курсора, но ще остави фокуса върху Списъка с етикети." + +#: ../C/gedit-plugins-tag-list.page:60(note/p) +msgid "" +"You can see a preview of what text will be inserted for each tag and special " +"character by clicking on the word the Preview at the bottom of " +"the side pane." +msgstr "" +"Можете предварително да видите какъв текст ще бъде вмъкнат като натиснете " +"думата Преглед в долната част на страничния панел." + +#: ../C/gedit-plugins-terminal.page:13(info/desc) +msgid "Add a terminal console to the bottom pane" +msgstr "Добавяне на терминал в долния панел" + +#: ../C/gedit-plugins-terminal.page:16(page/title) +msgid "Embedded terminal" +msgstr "Вграден терминал" + +#: ../C/gedit-plugins-terminal.page:18(page/p) +msgid "" +"gedit makes it possible to include an embedded version of " +"Gnome Terminal, the GNOME command-line application, in the bottom " +"pane of the gedit window. This will let you run scripts, install " +"needed software, or test your program without leaving gedit." +msgstr "" +"Можете да използвате Терминал на GNOME — вграден терминал в " +"gedit. Това ще ви позволи да изпълнявате скриптове, да " +"инсталирате софтуер или да тествате вашата програма без да напускате " +"gedit." + +#: ../C/gedit-plugins-terminal.page:20(page/p) +msgid "" +"To enable this plugin, select EditPreferencesPluginsEmbedded Terminal." +msgstr "" +"За да включите приставката, натиснете РедактиранеНастройкиПриставкиВграден терминал." + +#: ../C/gedit-plugins-terminal.page:22(page/p) +msgid "" +"Once you have enabled the plugin, add the terminal to the bottom pane by " +"selecting ViewBottom Pane, or just " +"press CtrlF9." +msgstr "" +"След като включите приставката, добавете терминал в долния панел като " +"изберете ИзгледДолен панел или просто " +"натиснете CtrlF9." + +#: ../C/gedit-plugins-text-size.page:14(info/desc) +msgid "Increase or decrease the text size" +msgstr "Увеличаване или намаляване размера на текст" + +#: ../C/gedit-plugins-text-size.page:17(page/title) +msgid "Text Size" +msgstr "Размер на текст" + +#: ../C/gedit-plugins-text-size.page:19(page/p) +msgid "" +"The text size plugin allows you to temporarily change the text size in " +"gedit without changing the program's default text size. To enable " +"this plugin, select EditPreferencesPlugins Text Size." +msgstr "" +"Тази приставка ви позволява временно да промените размера на текста в " +"gedit, без да се променят настройките на текущо избрания шрифт. " +"За да включите приставката, изберете РедактиранеНастройкиПриставкиРазмер на текста." + +#: ../C/gedit-plugins-text-size.page:25(list/title) +msgid "" +"Once you have enabled the plugin, do any of the following to change the text " +"size in gedit:" +msgstr "" +"За промяна на размера на текста в gedit, направете някое от " +"следните:" + +#: ../C/gedit-plugins-text-size.page:27(item/p) +msgid "" +"To increase the text size, select Ctrl +." +msgstr "" +"За увеличаване, натиснете Ctrl+." + +#: ../C/gedit-plugins-text-size.page:29(item/p) +msgid "" +"To decrease the text size, select Ctrl -." +msgstr "" +"За намаляване, натиснете Ctrl-." + +#: ../C/gedit-plugins-text-size.page:31(item/p) +msgid "" +"To reset the text size to the default size, select " +"Ctrl0." +msgstr "" +"За отмяна на промените, натиснете Ctrl0." + +#: ../C/gedit-plugins-word-completion.page:18(info/desc) +msgid "Autocomplete words or portions of code as you type" +msgstr "Довършване на думи или части код докато ги пишете" + +#: ../C/gedit-plugins-word-completion.page:21(page/title) +msgid "Word completion" +msgstr "Довършване на дума" + +#: ../C/gedit-plugins-word-completion.page:23(page/p) +msgid "" +"The Word Completion plugin can speed up your editing by " +"suggesting completions of words as you type. To enable the plugin, select " +"EditPreferencesPluginsWord " +"Completion." +msgstr "" +"Приставката Довършване на дума може да ускори редактирането като " +"предлага довършване на думи докато ги пишете. За да включите приставката " +"изберете РедактиранеНастройкиПриставкиДовършване на дума." + +#: ../C/gedit-plugins-word-completion.page:28(page/p) +msgid "" +"While editing, the Word Completion plugin will automatically " +"display a pop-up list of words that begin with the letters you have already " +"typed. Word suggestions are based upon words that appear elsewhere in your " +"document and upon pre-defined keywords if your document is of a recognised " +"format." +msgstr "" +"Приставката Довършване на дума автоматично ще покаже списък с " +"думи, които започват с буквите, които вече сте въвели. Предложените думи са " +"базирани на думи, които са срещнати на други места из документа или " +"предварително зададени думи, ако формата на документа е разпознат." + +#: ../C/gedit-plugins-word-completion.page:34(page/p) +msgid "" +"To insert a suggested word, double-click on it in the pop-up list or press " +"AltNum, where Num is the " +"number displayed next to your desired word." +msgstr "" +"За вмъкване на предложена дума, щракнете я двукратно от списъка или " +"натиснете Altчисло, където " +"число-то е номерът показан до желаната дума." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-printing-order.page:53(media) +msgctxt "_" +msgid "external ref='reverse-collate.png' md5='__failed__'" +msgstr "external ref='reverse-collate.png' md5='__failed__'" + +#: ../C/gedit-printing-order.page:10(credit/name) +#: ../C/gedit-printing-select.page:10(credit/name) +msgid "Phil Bull" +msgstr "Фил Бул" + +#: ../C/gedit-printing-order.page:14(license/p) +#: ../C/gedit-printing-select.page:14(license/p) +msgid "Creative Commons Share Alike 3.0" +msgstr "Creative Commons Share Alike 3.0" + +#: ../C/gedit-printing-order.page:18(page/title) +msgid "Getting Copies To Print In The Correct Order" +msgstr "Отпечатване в правилната поредност" + +#: ../C/gedit-printing-order.page:21(section/title) +msgid "Reverse" +msgstr "Обратен ред" + +#: ../C/gedit-printing-order.page:24(section/p) +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up." +msgstr "" +"Обикновено печатащите устройства първо отпечатват първата страница първа, а " +"последната — последна, така че страниците са отпечатани в обратен ред, " +"когато ги вземете." + +#: ../C/gedit-printing-order.page:28(section/p) +msgid "To reverse the order:" +msgstr "За отпечатване в обратен ред:" + +#: ../C/gedit-printing-order.page:32(item/p) +msgid "FilePrint" +msgstr "ФайлПечат" + +#: ../C/gedit-printing-order.page:33(item/p) +msgid "" +"In the General tab of the Print window under Copies, " +"check Reverse. The last page will be printed first, and so on." +msgstr "" +"В раздела Общи под Разпечатки, отбележете Обратен " +"ред. Последната страница ще бъде отпечатана първа и т.н." + +#: ../C/gedit-printing-order.page:38(section/title) +msgid "Collate" +msgstr "Последователно подреждане" + +#: ../C/gedit-printing-order.page:41(section/p) +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Ако отпечатвате повече копия на документ, стандартно листите ще бъдат " +"групирани по номер на страница (т.е. копията на страница едно излизат първи, " +"после копията на страница две и т.н.). Последователното подреждане ще " +"отпечата всяко копие групирано по страниците си." + +#: ../C/gedit-printing-order.page:46(section/p) +msgid "To Collate:" +msgstr "За последователно подреждане:" + +#: ../C/gedit-printing-order.page:50(item/p) +msgid "Click FilePrint" +msgstr "Натиснете ФайлПечат" + +#: ../C/gedit-printing-order.page:51(item/p) +msgid "" +"In the General tab of the Print window under Copies " +"check Collate." +msgstr "" +"В раздела Общи под Разпечатки отбележете " +"Последователно подреждане." + +#: ../C/gedit-printing.page:16(page/title) ../C/index.page:44(section/title) +msgid "Printing with gedit" +msgstr "Печат" + +#: ../C/gedit-printing.page:19(note/p) +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the " +"printing help documentation for your desktop environment." +msgstr "" +"Печатането с gedit изисква свързан и настроен принтер. Ако не сте " +"направили това, консултирайте се с помощната документация за печат на вашата " +"работна среда." + +#: ../C/gedit-printing.page:22(page/p) +msgid "" +"gedit allows you to both print output to a file, as well as " +"printing output to paper. Prior to printing your document, you can also " +"preview how the printed document will look by using the Print Preview feature." +msgstr "" +"gedit ви позволява да печатате към файл, както и на хартия. Преди " +"да отпечатате вашия документ, можете да видите как ще бъде отпечатан с " +"функцията Преглед за печат." + +#: ../C/gedit-printing.page:25(section/title) +msgid "Printing to paper" +msgstr "Печат на хартия" + +#: ../C/gedit-printing.page:29(section/title) +msgid "Printing output to a file" +msgstr "Печат към файл" + +#: ../C/gedit-printing.page:31(section/p) +msgid "" +"You can also use gedit to print to a file. To do so, select " +"FilePrintPrint to File." +msgstr "" +"Също можете да използвате gedit, за да печатате към файл. За да " +"направите това, изберете ФайлПечат…Печат " +"към файл." + +#: ../C/gedit-printing.page:32(section/p) +msgid "Printing is enabled for the following file formats:" +msgstr "Печатането е разрешено за следните формати файлове:" + +#: ../C/gedit-printing.page:34(item/p) +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#: ../C/gedit-printing.page:35(item/p) +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#: ../C/gedit-printing.page:36(item/p) +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-printing-select.page:34(media) +msgctxt "_" +msgid "external ref='print-select.png' md5='__failed__'" +msgstr "external ref='print-select.png' md5='__failed__'" + +#: ../C/gedit-printing-select.page:18(page/title) +msgid "Only Printing Certain Pages" +msgstr "Отпечатване на определени страници" + +#: ../C/gedit-printing-select.page:20(page/p) +msgid "To only print certain pages from the document:" +msgstr "За отпечатване на определени страници от документ:" + +#: ../C/gedit-printing-select.page:24(item/p) +msgid "Click File Print..." +msgstr "Натиснете ФайлПечат…" + +#: ../C/gedit-printing-select.page:25(item/p) +msgid "" +"In the General tab in the Print window choose Pages " +"from the Range section." +msgstr "" +"В таба Общи на прозореца за печат, изберете Страници " +"от раздела Обхват." + +#: ../C/gedit-printing-select.page:26(item/p) +msgid "" +"Type the numbers of the pages you want to print in the textbox, separated by " +"commas. Use a dash to denote a range of pages." +msgstr "" +"Въведете номерата на страниците, които искате да се отпечатат като ги " +"разделите със запетаи. Използвайте тире за указване на обхват." + +#: ../C/gedit-printing-select.page:31(note/p) +msgid "" +"For example, if you enter \"1,3,5-7,9\" in the Pages textbox, " +"pages 1,3,5,6,7 and 9 will be printed." +msgstr "" +"Например, ако въведете „1,3,5-7,9“ в полето Страници, ще бъдат " +"отпечатани страници 1,3,5,6,7 и 9." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/gedit-quickstart.page:19(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" + +#: ../C/gedit-quickstart.page:16(page/title) +msgid "Get started with gedit" +msgstr "Първи стъпки в gedit" + +#: ../C/gedit-quickstart.page:17(page/p) +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit е напълно функционален текстов редактор за графичната среда " +"GNOME. С него можете да подготвите прости бележки или документи, или може да " +"използвате някои от усъвършенстваните му функции и да го направите ваша " +"среда за разработка." + +#: ../C/gedit-quickstart.page:21(page/p) +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click Save." +msgstr "" +"Щом gedit се стартира, можете да започнете да пишете веднага. За " +"да запазите вашия документ просто натиснете Запазване." + +#: ../C/gedit-quickstart.page:23(page/p) +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"За да научите повече относно допълнителните функции на gedit и да " +"започнете да извършвате по-сложни задачи, разгледайте другата информация за gedit." + +#: ../C/gedit-replace.page:20(page/title) +msgid "Replace text" +msgstr "Замяна на текст" + +#: ../C/gedit-replace.page:22(page/p) +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Обработката на текст може да отнеме много време. За да спестите време, " +"gedit има функция за Замяна, която ви помага да " +"намерите и замените откъси текст." + +#: ../C/gedit-replace.page:25(steps/title) +msgid "Replace text in gedit" +msgstr "Замяна на текст в gedit" + +#: ../C/gedit-replace.page:26(item/p) +msgid "" +"Open the Replace tool by clicking SearchReplace or press CtrlH." +msgstr "" +"Отворете инструмента Замяна като натиснете ТърсенеЗамяна… или натиснете CtrlH." + +#: ../C/gedit-replace.page:27(item/p) +msgid "Enter the text that you wish to replace into the 'Search for:' field." +msgstr "Въведете текста, който искате да замените в полето „Търсене за:“." + +#: ../C/gedit-replace.page:28(item/p) +msgid "Enter the new, replacement text into the 'Replace with:' field." +msgstr "Въведете новия, заместващ текст в полето „Замяна с:“." + +#: ../C/gedit-replace.page:30(item/p) +msgid "" +"Once you have entered the original and replacement text, select your desired " +"replacement options:" +msgstr "Изберете желаните опции за замяна:" + +#: ../C/gedit-replace.page:32(item/p) +msgid "" +"To replace only the next matching portion of text, click " +"Replace." +msgstr "" +"За да се замени само следващата поява на текста, натиснете " +"Замяна." + +#: ../C/gedit-replace.page:33(item/p) +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"За да се заменят всички появи на текста, натиснете Замяна на " +"всички." + +#: ../C/gedit-replace.page:39(note/p) +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Използвайте функцията Замяна на всички внимателно. Тя работи с " +"целия файл и не оцветява части от текста, в които ще се извърши замяната." + +#: ../C/gedit-replace.page:43(section/title) +msgid "More options" +msgstr "Още опции" + +#: ../C/gedit-replace.page:46(item/title) +msgid "Match case" +msgstr "Зачитане на главни/малки" + +#: ../C/gedit-replace.page:47(item/p) +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Опцията Зачитане на главни/малки позволява да изберете дали вашето " +"търсене да е чувствително към регистъра на знаците (главни или малки букви). " +"Ако тази опция е включена, търсенето ще е чувствително към регистъра. В " +"противен случай регистърът на знаците няма да е от значение." + +#: ../C/gedit-replace.page:50(item/title) +msgid "Match entire word only" +msgstr "Ако съвпада само с цяла дума" + +#: ../C/gedit-replace.page:51(item/p) +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Използвайте тази опция за търсене на конкретна дума, която не е част от " +"други думи. Например, ако сте търсили за думата „шок“ с тази опция включена, " +"думата „шок“ ще съвпадне, но думите „шоколад“ и „артишок“ " +"няма да съвпаднат." + +#: ../C/gedit-replace.page:54(item/title) +msgid "Search backwards" +msgstr "Търсене назад" + +#: ../C/gedit-replace.page:55(item/p) +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Тази команда работи точно като командата „Предишна поява“. Ако искате да " +"разгледате резултатите от края към началото, изберете тази опция." + +#: ../C/gedit-replace.page:58(item/title) +msgid "Wrap around" +msgstr "След края — от началото" + +#: ../C/gedit-replace.page:59(item/p) +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Ако опцията След края — от началото е включена, gedit " +"ще започне търсенето/замяната от началото на файла, когато достигне края на " +"файла. Така се гарантира, че търсенето/замяната са извършени в целия файл." + +#: ../C/gedit-save-file.page:14(page/title) +msgid "Save a file" +msgstr "Запазване на файл" + +#: ../C/gedit-save-file.page:16(page/p) +msgid "" +"To save a file in gedit, click on the disk-drive icon with the " +"word Save next to it. You may also select FileSave, or just press CtrlS." +msgstr "" +"За да запазите файл в gedit, натиснете иконата, която изглежда на " +"шкаф със стрелка сочеща надолу и с думата Запазване до нея. Също " +"можете да изберете ФайлЗапазване или " +"просто да натиснете CtrlS." + +#: ../C/gedit-save-file.page:17(page/p) +msgid "" +"If you are saving a new file, the Save File dialog will appear, " +"and you can select a name for the file, as well as the directory where you " +"would like the file to be saved." +msgstr "" +"Ако запазвате нов файл ще се покаже прозорецът Запазване на файл. " +"Трябва да въведете име на файла и да изберете папка, в която да го запазите." + +#: ../C/gedit-search.page:20(page/title) +msgid "Search for text" +msgstr "Търсене на текст" + +#: ../C/gedit-search.page:22(page/p) +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Инструментът Търсене може да ви помогне да намерите конкретна " +"последователност от текст във вашия файл." + +#: ../C/gedit-search.page:26(steps/title) +msgid "Finding text" +msgstr "Търсене на текст" + +#: ../C/gedit-search.page:27(item/p) +msgid "" +"Open the search window by clicking " +"SearchFind or pressing " +"CtrlF. This will move your cursor to " +"the start of the search window." +msgstr "" +"Отворете прозореца за търсене като " +"натиснете ТърсенеТърсене… или " +"натиснете CtrlF. Вашият курсор ще " +"бъде преместен в началото на прозореца за търсене" + +#: ../C/gedit-search.page:32(item/p) +msgid "Type the text you wish to search for in the search window." +msgstr "" +"Въведете текста, който искате да откриете в прозореца Замяна." + +#: ../C/gedit-search.page:34(item/p) +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Докато пишете, gedit ще оцветява частите текст, които съвпадат с " +"търсения текст." + +#: ../C/gedit-search.page:39(page/p) +msgid "To scroll through the search results, do any of the following:" +msgstr "За превъртане през резултатите, направете някое от следните:" + +#: ../C/gedit-search.page:41(item/p) +msgid "" +"Click on the up or down facing arrows next to the " +"search window" +msgstr "" +"Щракнете върху стрелките сочещи нагоре или надолу до " +"прозореца за търсене" + +#: ../C/gedit-search.page:43(item/p) +msgid "" +"Press the up arrow or down arrow keys on your keyboard" +msgstr "" +"Натиснете клавишите нагоре или надолу на клавиатурата" + +#: ../C/gedit-search.page:45(item/p) +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Натиснете CtrlG или " +"CtrlShiftG." + +#: ../C/gedit-search.page:47(item/p) +msgid "" +"Press the Ctrl and use your mouse or touchpad's scroll " +"feature to move up or down through the text." +msgstr "" +"Натиснете клавиша Ctrl и използвайте мишката или функцията на " +"тъчпада за придвижване, за да се придвижвате през текста." + +#: ../C/gedit-search.page:52(page/p) +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"За да затворите прозореца за търсене, натиснете клавиша Esc или Enter. С Esc курсорът ще се върне на " +"позицията, на която е бил преди да започнете търсенето. С Enter " +"курсора ще върне на позицията на текущо намерения резултат." + +#: ../C/gedit-search.page:58(list/title) +msgid "Search tips" +msgstr "Съвети за търсене" + +#: ../C/gedit-search.page:59(item/p) +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Ако отбележите част от текст с вашата мишка и натиснете CtrlF, то той ще се покаже в прозореца за търсене." + +#: ../C/gedit-search.page:62(item/p) +msgid "" +"For advanced search options, you can click on the Magnifying Glass icon in the search window, or you can right-click on any portion of the " +"search window." +msgstr "" +"За допълнителни опции за търсене можете да натиснете иконата Лупата в прозореца за търсене или да щракнете с десния бутон в прозореца за " +"търсене." + +#: ../C/gedit-search.page:65(item/p) +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click " +"SearchClear Highlight, or press " +"CtrlShiftK." +msgstr "" +"Текстът, който търсите ще остане оцветен, дори след като сте завършили " +"търсенето си. За да премахнете оцветяването, натиснете ТърсенеИзчистване на оцветяването или натиснете " +"CtrlShiftK." + +#: ../C/gedit-shortcut-keys.page:14(credit/name) +msgid "Paolo Borelli" +msgstr "Паоло Борели" + +#: ../C/gedit-shortcut-keys.page:17(credit/name) +msgid "Jesse van den Kieboom" +msgstr "Джеси ван де Кибуум" + +#: ../C/gedit-shortcut-keys.page:20(credit/name) +msgid "Steve Frécinaux" +msgstr "Стив Фрецино" + +#: ../C/gedit-shortcut-keys.page:23(credit/name) +msgid "Ignacio Casal Quinteiro" +msgstr "Игнасио Касъл Кунтиро" + +#: ../C/gedit-shortcut-keys.page:27(page/title) +msgid "Shortcut keys" +msgstr "Бързи клавиши" + +#: ../C/gedit-shortcut-keys.page:29(page/p) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Използвайте бързите клавиши, за да извършвате често използвани " +"задачи по-бързо отколкото с мишката и менютата. Следните таблици описват " +"всички бързи клавиши на gedit." + +#: ../C/gedit-shortcut-keys.page:53(table/title) +msgid "Tab-related Shortcut keys" +msgstr "Бързи клавиши за работа с раздели" + +#: ../C/gedit-shortcut-keys.page:61(td/p) +msgid "Switch to the next tab to the left" +msgstr "Превключване към раздела вляво" + +#: ../C/gedit-shortcut-keys.page:61(td/p) +msgid "Ctrl + Alt + PageUp" +msgstr "Ctrl + Alt + PageUp" + +#: ../C/gedit-shortcut-keys.page:65(td/p) +msgid "Switch to the next tab to the right" +msgstr "Превключване към раздела вдясно" + +#: ../C/gedit-shortcut-keys.page:65(td/p) +msgid "Ctrl + Alt + PageDown" +msgstr "Ctrl + Alt + PageDown" + +#: ../C/gedit-shortcut-keys.page:69(td/p) +msgid "Close tab" +msgstr "Затваряне на раздел" + +#: ../C/gedit-shortcut-keys.page:69(td/p) +#: ../C/gedit-shortcut-keys.page:112(td/p) +msgid "Ctrl + W" +msgstr "Ctrl + W" + +#: ../C/gedit-shortcut-keys.page:72(td/p) +msgid "Save all tabs" +msgstr "Запазване на всички раздели" + +#: ../C/gedit-shortcut-keys.page:72(td/p) +msgid "Ctrl + Shift + L" +msgstr "Ctrl + Shift + L" + +#: ../C/gedit-shortcut-keys.page:75(td/p) +msgid "Close all tabs" +msgstr "Затваряне на всички раздели" + +#: ../C/gedit-shortcut-keys.page:75(td/p) +msgid "Ctrl + Shift + W" +msgstr "Ctrl + Shift + W" + +#: ../C/gedit-shortcut-keys.page:78(td/p) +msgid "Jump to nth tab" +msgstr "Превключване на раздел № n" + +#: ../C/gedit-shortcut-keys.page:78(td/p) +msgid "Alt + n" +msgstr "Alt + n" + +#: ../C/gedit-shortcut-keys.page:85(table/title) +msgid "Shortcut keys for working with files" +msgstr "Бързи клавиши за работа с файлове" + +#: ../C/gedit-shortcut-keys.page:93(td/p) +msgid "Create a new document" +msgstr "Създаване на нов документ" + +#: ../C/gedit-shortcut-keys.page:93(td/p) +msgid "Ctrl + N" +msgstr "Ctrl + N" + +#: ../C/gedit-shortcut-keys.page:96(td/p) +msgid "Open a document" +msgstr "Отваряне на документ" + +#: ../C/gedit-shortcut-keys.page:96(td/p) +msgid "Ctrl + O" +msgstr "Ctrl + O" + +#: ../C/gedit-shortcut-keys.page:99(td/p) +msgid "Save the current document" +msgstr "Запазване на текущия документ" + +#: ../C/gedit-shortcut-keys.page:99(td/p) +msgid "Ctrl + S" +msgstr "Ctrl + S" + +#: ../C/gedit-shortcut-keys.page:102(td/p) +msgid "Save the current document with a new filename" +msgstr "Запазване на текущия документ с друго име" + +#: ../C/gedit-shortcut-keys.page:102(td/p) +msgid "Ctrl + Shift + S" +msgstr "Ctrl + Shift + S" + +#: ../C/gedit-shortcut-keys.page:106(td/p) +msgid "Print the current document" +msgstr "Печат на документа" + +#: ../C/gedit-shortcut-keys.page:106(td/p) +msgid "Ctrl + P" +msgstr "Ctrl + P" + +#: ../C/gedit-shortcut-keys.page:109(td/p) +msgid "Print preview" +msgstr "Преглед за печат" + +#: ../C/gedit-shortcut-keys.page:109(td/p) +msgid "Ctrl + Shift + P" +msgstr "Ctrl + Shift + P" + +#: ../C/gedit-shortcut-keys.page:112(td/p) +msgid "Close the current document" +msgstr "Затваряне на текущия документ" + +#: ../C/gedit-shortcut-keys.page:115(td/p) +msgid "Quit gedit" +msgstr "Затваряне на програмата" + +#: ../C/gedit-shortcut-keys.page:115(td/p) +msgid "Ctrl + Q" +msgstr "Ctrl + Q" + +#: ../C/gedit-shortcut-keys.page:121(table/title) +msgid "Shortcut keys for editing files" +msgstr "Бързи клавиши за обработка на файлове" + +#: ../C/gedit-shortcut-keys.page:129(td/p) +msgid "Undo the last action" +msgstr "Отмяна на последното действие" + +#: ../C/gedit-shortcut-keys.page:129(td/p) +msgid "Ctrl + Z" +msgstr "Ctrl + Z" + +#: ../C/gedit-shortcut-keys.page:132(td/p) +msgid "Redo the last undone action" +msgstr "Повторение на последното отменено действие" + +#: ../C/gedit-shortcut-keys.page:132(td/p) +msgid "Ctrl + Shift + Z" +msgstr "Ctrl + Shift + Z" + +#: ../C/gedit-shortcut-keys.page:136(td/p) +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Изрязване на избрания текст и поставяне в буфера за обмен" + +#: ../C/gedit-shortcut-keys.page:137(td/p) +msgid "Ctrl + X" +msgstr "Ctrl + X" + +#: ../C/gedit-shortcut-keys.page:140(td/p) +msgid "Copy the selected text or region onto the clipboard" +msgstr "Копиране на избрания текст и поставяне в буфера за обмен" + +#: ../C/gedit-shortcut-keys.page:141(td/p) +msgid "Ctrl + C" +msgstr "Ctrl + C" + +#: ../C/gedit-shortcut-keys.page:144(td/p) +msgid "Paste the contents of the clipboard" +msgstr "Поставяне на съдържанието от буфера за обмен" + +#: ../C/gedit-shortcut-keys.page:144(td/p) +msgid "Ctrl + V" +msgstr "Ctrl + V" + +#: ../C/gedit-shortcut-keys.page:148(td/p) +msgid "Select all text in the file" +msgstr "Избиране на целия текст във файла" + +#: ../C/gedit-shortcut-keys.page:148(td/p) +msgid "Ctrl + A" +msgstr "Ctrl + A" + +#: ../C/gedit-shortcut-keys.page:151(td/p) +msgid "Delete the current line" +msgstr "Изтриване на текущия ред" + +#: ../C/gedit-shortcut-keys.page:151(td/p) +msgid "Ctrl + D" +msgstr "Ctrl + D" + +#: ../C/gedit-shortcut-keys.page:154(td/p) +msgid "Move the selected line up one line" +msgstr "Преместване на избраната линия нагоре" + +#: ../C/gedit-shortcut-keys.page:154(td/p) +msgid "Alt + Up Arrow" +msgstr "Alt + Стрелка нагоре" + +#: ../C/gedit-shortcut-keys.page:158(td/p) +msgid "Move the selected line down one line" +msgstr "Преместване на избраната линия надолу" + +#: ../C/gedit-shortcut-keys.page:158(td/p) +msgid "Alt + Down Arrow" +msgstr "Alt + Стрелка надолу" + +#: ../C/gedit-shortcut-keys.page:165(table/title) +msgid "Shortcut keys for showing and hiding panes" +msgstr "Бързи клавиши за показване/скриване на панели" + +#: ../C/gedit-shortcut-keys.page:173(td/p) +msgid "Show / hide the side pane" +msgstr "Показване / скриване на страничния панел" + +#: ../C/gedit-shortcut-keys.page:173(td/p) +msgid "F9" +msgstr "F9" + +#: ../C/gedit-shortcut-keys.page:176(td/p) +msgid "Show / hide the bottom pane." +msgstr "Показване/скриване на долния панел" + +#: ../C/gedit-shortcut-keys.page:176(td/p) +msgid "Ctrl + F9" +msgstr "Ctrl + F9" + +#: ../C/gedit-shortcut-keys.page:183(table/title) +msgid "Shortcut keys for searching" +msgstr "Бързи клавиши за търсене" + +#: ../C/gedit-shortcut-keys.page:191(td/p) +msgid "Find a string" +msgstr "Намиране на низ" + +#: ../C/gedit-shortcut-keys.page:191(td/p) +msgid "Ctrl + F" +msgstr "Ctrl + F" + +#: ../C/gedit-shortcut-keys.page:194(td/p) +msgid "Find the next instance of the string" +msgstr "Намиране на следващата поява на низа" + +#: ../C/gedit-shortcut-keys.page:194(td/p) +msgid "Ctrl + G" +msgstr "Ctrl + G" + +#: ../C/gedit-shortcut-keys.page:198(td/p) +msgid "Find the previous instance of the string" +msgstr "Намиране на предишната поява на низа" + +#: ../C/gedit-shortcut-keys.page:198(td/p) +msgid "Ctrl + Shift + G" +msgstr "Ctrl + Shift + G" + +#: ../C/gedit-shortcut-keys.page:202(td/p) +msgid "Search and Replace" +msgstr "Търсене и замяна" + +#: ../C/gedit-shortcut-keys.page:202(td/p) +msgid "Ctrl + H" +msgstr "Ctrl + H" + +#: ../C/gedit-shortcut-keys.page:205(td/p) +msgid "Clear highlight" +msgstr "Изчистване на оцветяването" + +#: ../C/gedit-shortcut-keys.page:205(td/p) +msgid "Ctrl + Shift + K" +msgstr "Ctrl + Shift + K" + +#: ../C/gedit-shortcut-keys.page:208(td/p) +msgid "Goto line" +msgstr "Отиване на линия" + +#: ../C/gedit-shortcut-keys.page:208(td/p) +msgid "Ctrl + I" +msgstr "Ctrl + I" + +#: ../C/gedit-shortcut-keys.page:214(table/title) +msgid "Shortcut keys for tools" +msgstr "Бързи клавиши за инструменти" + +#: ../C/gedit-shortcut-keys.page:222(td/p) +msgid "Check spelling" +msgstr "Проверка на правописа" + +#: ../C/gedit-shortcut-keys.page:222(td/p) +msgid "Shift + F7" +msgstr "Shift + F7" + +#: ../C/gedit-shortcut-keys.page:225(td/p) +msgid "Remove trailing spaces (with plugin)" +msgstr "Премахване на празните знаци в краищата на редовете (с приставка)" + +#: ../C/gedit-shortcut-keys.page:225(td/p) +msgid "Alt + F12" +msgstr "Alt + F12" + +#: ../C/gedit-shortcut-keys.page:229(td/p) +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Изпълнение на \"make\" в текущата папка (с приставка)" + +#: ../C/gedit-shortcut-keys.page:230(td/p) +msgid "F8" +msgstr "F8" + +#: ../C/gedit-shortcut-keys.page:233(td/p) +msgid "Directory listing (with plugin)" +msgstr "Списък обектите в папка (с приставка)" + +#: ../C/gedit-shortcut-keys.page:233(td/p) +msgid "Ctrl + Shift + D" +msgstr "Ctrl + Shift + D" + +#: ../C/gedit-shortcut-keys.page:240(table/title) +msgid "Shortcut keys for user help" +msgstr "Бързи клавиши за потребителска помощ" + +#: ../C/gedit-shortcut-keys.page:248(td/p) +msgid "Open the gedit user guide" +msgstr "Отваряне на потребителското ръководство на gedit" + +#: ../C/gedit-shortcut-keys.page:248(td/p) +msgid "F1" +msgstr "F1" + +#: ../C/gedit-spellcheck.page:15(page/title) +msgid "Spell-check your document" +msgstr "Проверка на правописа" + +#: ../C/gedit-spellcheck.page:16(page/p) +msgid "" +"Using the spell-check feature in gedit requires that you first " +"enable the spell-check plugin. To enable the plugin, select " +"Edit PreferencesPluginsSpell " +"Checker ." +msgstr "" +"За проверка на правописа в gedit първо трябва да включите " +"приставката за проверка на правопис. За да включите приставката, изберете " +"РедактиранеНастройкиПриставкиПроверка на правописа." + +#: ../C/gedit-spellcheck.page:22(note/p) +msgid "" +"Select ToolsAutocheck Spelling to " +"make gedit highlight spelling errors while you type." +msgstr "" +"Изберете ИнструментиПроверка на правописа…, така че gedit да оцветява правописните грешки докато " +"пишете." + +#: ../C/gedit-syntax-highlighting.page:14(page/title) +msgid "Turn on syntax highlighting" +msgstr "Включване оцветяване на синтаксиса" + +#: ../C/gedit-syntax-highlighting.page:17(section/title) +msgid "Syntax Highlighting" +msgstr "Оцветяване на синтаксиса" + +#: ../C/gedit-syntax-highlighting.page:18(section/p) +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit предоставя оцветяване на синтаксиса за широк обхват от " +"маркиращи, програмистки и научни езици. Ако gedit разпознае " +"синтаксиса, когато отваря файл, автоматично ще оцвети текста." + +#: ../C/gedit-syntax-highlighting.page:20(section/p) +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking ViewHighlight Mode, and then choosing the desired " +"syntax. Alternately, you can select the syntax name from a list at the " +"bottom of the gedit window." +msgstr "" +"Ако вашият синтаксис или език не е оцветен при стартирането, можете да " +"изберете подходящия такъв като натиснете ИзгледРежим " +"на оцветяване и после изберете желания синтаксис. Също можете " +"да изберете синтаксиса от списъка в долната част на прозореца на gedit." + +#: ../C/gedit-tabs-moving.page:19(page/title) +msgid "Move and re-order tabs" +msgstr "Местене и подреждане на раздели" + +#: ../C/gedit-tabs-moving.page:20(page/p) +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Разделите в gedit могат да се разместват, като това улеснява " +"работата ви с файлове. Разделите могат да се подреждат в същия прозорец, да " +"се местят извън gedit (като се създаде нов прозорец на " +"gedit) или да се местят в друг прозорец." + +#: ../C/gedit-tabs-moving.page:26(section/title) +msgid "Change the order of tabs in the gedit window" +msgstr "Подреждане на разделите в прозореца на gedit" + +#: ../C/gedit-tabs-moving.page:28(section/p) +msgid "To change the ordering of tabs in a window:" +msgstr "За да подредите разделите в прозореца:" + +#: ../C/gedit-tabs-moving.page:31(item/p) +#: ../C/gedit-tabs-moving.page:67(item/p) +msgid "Click and hold the mouse button on the tab" +msgstr "Натиснете и задръжте бутона на мишката върху раздел" + +#: ../C/gedit-tabs-moving.page:32(item/p) +msgid "Move the tab to the desired position among the other tabs" +msgstr "Преместете раздела на желаното място сред другите раздели" + +#: ../C/gedit-tabs-moving.page:34(item/p) +#: ../C/gedit-tabs-moving.page:70(item/p) +msgid "Release the mouse button" +msgstr "Отпуснете бутона на мишката" + +#: ../C/gedit-tabs-moving.page:37(section/p) +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Разделът ще бъде поставен до най-близката позиция, на която го пуснете " +"измежду другите раздели." + +#: ../C/gedit-tabs-moving.page:43(section/title) +msgid "Move a tab, creating a new gedit window" +msgstr "Преместване на раздел, създаване на нов прозорец с gedit" + +#: ../C/gedit-tabs-moving.page:44(section/p) +msgid "To drag a tab into a new window:" +msgstr "За да провлачите раздел в нов прозорец:" + +#: ../C/gedit-tabs-moving.page:47(item/p) +msgid "Click and hold the mouse button on the tab." +msgstr "Натиснете и задръжте бутона на мишката върху раздел." + +#: ../C/gedit-tabs-moving.page:48(item/p) +msgid "Drag the tab out of the gedit window." +msgstr "Провлачете раздела извън прозореца на gedit." + +#: ../C/gedit-tabs-moving.page:49(item/p) +msgid "Release the mouse button." +msgstr "Отпуснете бутона на мишката." + +#: ../C/gedit-tabs-moving.page:52(section/p) +msgid "" +"or, while the tab to be moved is open, choose Documents Move to New Window" +msgstr "" +"или натиснете ДокументиПреминаване към нов прозорец" + +#: ../C/gedit-tabs-moving.page:56(note/p) +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"За да преместите раздел в нов прозорец, когато gedit е " +"максимизиран, провлечете раздела върху лентата в горната част на екрана." + +#: ../C/gedit-tabs-moving.page:62(section/title) +msgid "Move a tab to another gedit window" +msgstr "Преместване на раздел в друг прозорец на gedit" + +#: ../C/gedit-tabs-moving.page:64(section/p) +msgid "If you want to move a tab from one window to another:" +msgstr "Ако искате да преместите раздел в друг прозорец:" + +#: ../C/gedit-tabs-moving.page:68(item/p) +msgid "Drag the tab to the new window" +msgstr "Провлачете раздела в новия прозорец" + +#: ../C/gedit-tabs-moving.page:69(item/p) +msgid "Place it beside other tabs in the new window" +msgstr "Поставете го сред други раздели в новия прозорец" + +#: ../C/gedit-tabs-moving.page:73(section/p) +msgid "" +"See for shortcuts " +"to make it easier to manage your tabs." +msgstr "" +"Вижте за улесняване " +"работата с раздели." + +#: ../C/gedit-tabs.page:20(page/title) +msgid "Add and remove tabs" +msgstr "Добавяне и затваряне на раздели" + +#: ../C/gedit-tabs.page:21(page/p) +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Когато работите с раздели в gedit можете да наблюдавате няколко " +"файла наведнъж в един прозорец. Разделът, който е по-голям от другите " +"показва, че файлът е отворен. По-малките раздели показват, че файловете са " +"готови за редактиране." + +#: ../C/gedit-tabs.page:25(section/title) +msgid "Adding tabs" +msgstr "Добавяне на раздели" + +#: ../C/gedit-tabs.page:26(section/p) +msgid "" +"To add a new tab, create a new file with CtrlN. The tab will be added to the right side of any other tabs." +msgstr "" +"За да добавите нов раздел, създайте нов файл с CtrlN. Разделът ще бъде добавен в края на всички раздели." + +#: ../C/gedit-tabs.page:30(section/title) +msgid "Removing tabs" +msgstr "Затваряне на раздели" + +#: ../C/gedit-tabs.page:31(section/p) +msgid "" +"To remove a tab, click the X on the tab's right " +"side. To remove all open tabs, press CtrlShiftW" +msgstr "" +"За да затворите раздел, натиснете X в дясната " +"част на раздела. За да затворите всички раздели, натиснете " +"CtrlShiftW" + +#: ../C/gedit-undo-recent-action.page:23(page/title) +msgid "Undo a recent action" +msgstr "Отмяна на последно действие" + +#: ../C/gedit-undo-recent-action.page:28(page/p) +msgid "" +"We all make mistakes. Even gedit users make mistakes. " +"Fortunately, gedit can help you recover from mistakes. To undo an " +"action in gedit, press CtrlZ, or click EditUndo." +msgstr "" +"Всички правим грешки. Дори потребителите на gedit правят грешки. " +"За щастие gedit улеснява поправката им. За да отмените действие в " +"gedit, натиснете CtrlZ или " +"натиснете РедактиранеОтмяна." + +#: ../C/gedit-undo-recent-action.page:30(page/p) +msgid "" +"gedit will undo one action every time you press " +"CtrlZ or select EditUndo." +msgstr "" +"gedit ще отменя по едно действие всеки път, когато натиснете " +"CtrlZ или изберете " +"РедактиранеОтмяна." + +#: ../C/gedit-view-open-files-in-sidepane.page:19(page/title) +msgid "View a list of files in the side pane" +msgstr "Списък с файлове в страничния панел" + +#: ../C/gedit-view-open-files-in-sidepane.page:21(page/p) +msgid "" +"Keeping track of a large number of files using tabs can be difficult. One " +"way of managing large numbers of files is viewing them in a side pane. Side " +"panes allow you to view more files at a time than is possible using tabs " +"alone." +msgstr "" +"Наблюдаването на много файлове чрез раздели може да се окаже трудна задача. " +"Един от начините за управление на голям брой файлове е като ги прегледате в " +"страничен панел. Страничните панели ви позволяват да виждате повече файлове " +"едновременно, отколкото е възможно с раздели." + +#: ../C/gedit-view-open-files-in-sidepane.page:23(page/p) +msgid "" +"To view a list of open files in a side pane, click ViewSide Pane. A pane will appear to the left of the " +"workspace with a listing of all currently open files. Clicking a file in the " +"side pane will display that file in the workspace." +msgstr "" +"За да видите списък на отворените файлове в страничен панел, натиснете " +"ИзгледСтраничен панел. Ще се покаже " +"панел от лявата страна на работното поле със списък на всички отворени " +"файлове. Щракването върху файл в страничния панел ще покаже съдържанието му " +"в работното поле." + +#: ../C/gedit-view-open-files-in-sidepane.page:25(page/p) +msgid "" +"The side pane also contains a File Browser view. If the pane " +"displays a file directory instead of currently open files, click documents " +"icon at the bottom of the pane to switch to the Documents " +"view." +msgstr "" +"Страничният панел също съдържа Файлов браузър. Ако панелът " +"показва съдържанието на папка вместо отворените файлове, натиснете иконата за документи в долната част на панела, за да се превключи " +"в изглед на Документи." + +#: ../C/gedit-view-open-files-in-sidepane.page:28(note/p) +msgid "" +"The side pane only displays files that are open in the current window. When " +"multiple windows are open, only the files in the current window will be " +"displayed in the side pane." +msgstr "" +"Страничният панел показва само файлове, които са отворени в текущия " +"прозорец. Когато са отворени няколко прозореца, само файловете в текущия " +"прозорец ще бъдат показани в страничния панел." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: ../C/index.page:22(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-icon.png' md5='a7174de2671462e1ac4f80a82ad09184'" +msgstr "" +"external ref='figures/gedit-icon.png' md5='a7174de2671462e1ac4f80a82ad09184'" + +#: ../C/index.page:7(info/title) +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit — Текстов редактор" + +#: ../C/index.page:8(info/title) +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit — Текстов редактор" + +#: ../C/index.page:21(page/title) +msgid "" +" gedit Text Editor" +msgstr "" +" gedit — Текстов редактор" + +#: ../C/index.page:26(page/p) +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Добре дошли в ръководството на gedit. За бързо въвеждане в " +"основните възможности на gedit, както и в някои бързи клавиши, " +"посетете страниците Първи стъпки в gedit и Бързи клавиши." + +#: ../C/index.page:28(page/p) +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Другите теми са групирани в раздели по-долу. Забавлявайте се докато " +"използвате gedit!" + +#: ../C/index.page:31(section/title) +msgid "Working With Files" +msgstr "Работа с файлове" + +#: ../C/index.page:36(section/title) +msgid "Configure gedit" +msgstr "Настройки" + +#: ../C/index.page:40(section/title) +msgid "gedit Plugins" +msgstr "Приставки" diff --git a/help/bg/figures/gedit-html-snippet.png b/help/bg/figures/gedit-html-snippet.png new file mode 100644 index 0000000..f9ba7a4 Binary files /dev/null and b/help/bg/figures/gedit-html-snippet.png differ diff --git a/help/bg/figures/gedit3-screenshot.png b/help/bg/figures/gedit3-screenshot.png new file mode 100644 index 0000000..2e5588a Binary files /dev/null and b/help/bg/figures/gedit3-screenshot.png differ diff --git a/help/ca/ca.po b/help/ca/ca.po new file mode 100644 index 0000000..e038252 --- /dev/null +++ b/help/ca/ca.po @@ -0,0 +1,4138 @@ +# Translators: +# Jaume Jorba , 2019 +# Jordi Mas , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: gedit.help.master\n" +"POT-Creation-Date: 2020-09-06 12:27+0000\n" +"PO-Revision-Date: 2020-09-06 15:32+0200\n" +"Last-Translator: Miquel-Àngel Burgos i Fradeja \n" +"Language-Team: Catalan (https://www.transifex.com/softcatala/teams/62837/" +"ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.3\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Jaume Jorba , 2019\n" +"Jordi Mas , 2019-2020\n" +"Miquel-Àngel Burgos i Fradeja , 2020" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Canvia els colors del text i del fons de pantalla a gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Canviar l'esquema de colors" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"El gedit inclou diferents esquemes de color, permetent que " +"l'usuari canvi l'aparença de la finestra principal de l'aplicació." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Per a canviar l'esquema de colors:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Obre el menú gedit des de la barra superior, " +"aleshores seleccioneu PreferènciesTipus de lletres i colors." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Trieu l'esquema de colors desitjat." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "El nou esquema de colors s'aplicarà tot seguit." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Utilitza un esquema de color personalitzat" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"També podeu utilitzar esquemes de color creats per altres, o crear i " +"utilitzar els vostres." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instruccions sobre com instal·lar esquemes de color, així com exemples " +"d'esquemes de color que us podeu descarregar i utilitzar, estan disponibles " +"a Wiki del gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Utilitza un tipus de lletra personalitzat pel vostre text a gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Canviar el tipus de lletra per defecte" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"El gedit utilitzarà el tipus de lletra d'amplada fixa predefinida " +"al sistema, però podeu canviar el valor predeterminat anant al gedit per a ajustar les vostres preferències." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Per a canviar el tipus de lletra predeterminat al gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Seleccioneu gedit Preferències Tipus de lletra i Colors." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Desmarqueu la casella del costat de la frase, \"Utilitza el tipus de lletra " +"d'amplada fixa del sistema\"." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Feu clic al nom del tipus de lletra actual i el gedit obrirà una " +"finestra per a seleccionar el tipus de lletra, mostrant-vos els tipus de " +"lletra disponibles i permetent-vos seleccionar-ne el preferit." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Un cop hàgiu triat un tipus de lletra nou, utilitzeu el desplaçador sota la llista del tipus de lletra per establir la mida predeterminada." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "" +"Feu clic a Selecciona, i aleshores feu clic a Tanca." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Sortir del fitxer que esteu utilitzant." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Tancar un fitxer" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Per a tancar un fitxer al gedit, feu clic al botó x que apareix al costat dret de la pestanya del fitxer o " +"premeu CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Qualsevol d'aquestes accions tancarà un fitxer al gedit. Si el " +"fitxer conté canvis que no s'han desat, el gedit us demanarà que " +"deseu els canvis abans de tancar el fitxer." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Obrir un fitxer nou per editar." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Crear un fitxer nou" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"La manera més fàcil de crear un fitxer nou al gedit és fer clic " +"al botó Crea un document nou del cantó esquerre de la barra de " +"capçalera o prémer CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Qualsevol d'aquestes accions crearà un fitxer nou a la finestra del " +"gedit. Si teniu altres fitxers oberts al gedit, el " +"fitxer nou que creeu apareixerà com una pestanya nova a la dreta d'aquests " +"fitxers." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Utilitzeu privilegis administratius per editar un fitxer." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Editar un fitxer com a usuari root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"L'edició de fitxers com a usuari root és potencialment perillosa i pot posar " +"el vostre sistema en una situació de risc. Tingueu molta cura en editar " +"fitxers com a usuari root." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Per editar fitxers com a usuari root, inicieu el gedit des del " +"terminal introduint:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Utilitzant l'ordre sudo, haureu d'introduir correctament la " +"vostra contrasenya de root abans que el gedit s'obri." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Com a alternativa a l'ordre sudo, podeu adquirir privilegis " +"d'administrador introduint:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Podreu iniciar el gedit utilitzant l'ordre gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Un cop obert el gedit amb privilegis d'administrador, el " +"gedit mantindrà els privilegis fins que el tanqueu." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "" +"Aprendre els conceptes bàsics sobre com treballar amb fitxers al gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Conceptes bàsics dels fitxers: obrir, tancar i desar fitxers" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Si sou usuari nou del gedit, aquests temes us ajudaran a crear, " +"desar, obrir i tancar fitxers." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Configura el gedit perquè utilitzi la pantalla completa." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Utilitzar el mode pantalla completa" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Quan treballeu amb un document gran, us pot resultar útil treballar en el " +"mode de pantalla completa del gedit. L'ús del mode de pantalla " +"completa amagarà la barra de menú, la barra de pestanyes i la barra d'eines, mostrant-vos més text i permetent-vos " +"centrar millor en les vostres tasques." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Activar el mode de pantalla completa" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Per activar el mode pantalla completa, premeu F11. El menú del " +"gedit, el títol, i les barres de pestanyes s'amagaran, i només se " +"us mostrarà el text del vostre fitxer actual." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Si necessiteu realitzar una acció des del menú gedit mentre " +"treballeu en mode de pantalla completa, moveu el punter del ratolí a la part " +"superior de la pantalla. La barra de menú del gedit tornarà a " +"aparèixer i podreu seleccionar l'acció desitjada." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Per navegar entre les pestanyes obertes mentre s'està en mode de pantalla " +"completa, premeu CtrlAltRe Pàg o CtrlAltAv Pàg." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Desactivar el mode de pantalla completa" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Per desactivar el mode de pantalla completa i tornar a la finestra estàndard " +"del gedit, premeu F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"També podeu moure el ratolí a la part superior de la pantalla i esperar que " +"aparegui la barra de menú. Quan la barra de menú " +"aparegui, seleccioneu el botó Surt del mode de pantalla completa." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Utilitzar el quadre lateral del gedit com a navegador de fitxers." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Veure i obrir fitxers des del quadre lateral" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"La forma més comuna de canviar de fitxer a gedit és utilitzant " +"les pestanyes de la part superior de la finestra del gedit. " +"Tanmateix, en alguns casos, especialment si es treballa amb una gran " +"quantitat de fitxers oberts, és possible que us sigui més fàcil utilitzar el " +"quadre lateral." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Per activar el quadre lateral, seleccioneu Visualització " +"Quadre lateral, o senzillament premeu la tecla F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Podeu activar o desactivar el quadre lateral prement F9 en " +"qualsevol moment." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Obrir fitxers des del quadre lateral" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Per obrir fitxers des del quadre lateral, primer obriu el quadre lateral " +"seleccionant Visualització Quadre lateral (o premeu F9), i aleshores seleccioneu Navegador de " +"fitxers des del menú desplegable a la part superior del tauler." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Això activarà el mode Navegador de fitxers del quadre lateral. A " +"continuació, podeu utilitzar els botons de navegació a la part superior del " +"quadre per localitzar i obrir els fitxers desitjats." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Utilitzar el tauler lateral per desplaçar-vos entre els fitxers oberts" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Quan hàgiu obert diversos fitxers, podeu utilitzar el tauler lateral per " +"desplaçar-vos entre els fitxers oberts. Per llistar els fitxers oberts, " +"trieu Documents des del menú desplegable a la part superior del " +"tauler." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Si feu clic a qualsevol nom del fitxer al tauler lateral, aquest fitxer " +"s'obrirà per editar-se." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Obre els fitxers per començar a treballar-hi." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Obrir un fitxer o un conjunt de fitxers" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Per obrir un fitxer al gedit, feu clic al botó Obre, o " +"premeu CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Això mostra el diàleg Obre. Utilitzeu el ratolí o el teclat per " +"seleccionar el fitxer que voleu obrir, i feu clic a Obre. El " +"fitxer seleccionat s'obrirà en una pestanya nova." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Per tancar el diàleg Obre sense obrir un fitxer, feu clic a " +"Cancel·la." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Podeu utilitzar les tecles Ctrl i Maj per obrir més " +"d'un fitxer a la vegada. Si manteniu premuda la tecla Ctrl mentre " +"seleccioneu múltiples fitxers, fent clic a Obre s'obrirà cadascun " +"dels fitxers seleccionats." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Mantenint premuda la tecla Maj mentre seleccioneu múltiples " +"fitxers, s'obrirà el primer fitxer seleccionat, l'últim, i tots els fitxers " +"seleccionats entremig." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Accedir a fitxers que estan emmagatzemats en un altre ordinador." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Obrir un fitxer localitzat al servidor" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Abans d'obrir un fitxer en un servidor des del gedit, necessiteu " +"conèixer informació tècnica sobre el servidor. Per exemple, n'haureu de " +"saber l'adreça IP o l'URL del servidor, i potser necessiteu saber quin tipus " +"de servidor és (per exemple, HTTP, FTP, etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"A més, alguns tipus de servidors imposen restriccions sobre el que podeu fer " +"amb els fitxers que hi ha emmagatzemats. Per exemple, és possible que pugueu " +"obrir un fitxer des d'un servidor, però potser haureu de desar els canvis al " +"fitxer localment, al vostre propi ordinador." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Amb aquestes advertències en ment, feu els passos següents per obrir un " +"fitxer des d'un servidor utilitzant el gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "A la barra de títol, feu clic a Obre." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Feu clic a Altres ubicacions." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Introduïu l'adreça IP o l'URL del servidor apropiat." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Cerqueu i seleccioneu el fitxer que voleu obrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Utilitzeu la llista desplegable Codificació de caràcters per a seleccionar " +"la codificació de caràcters apropiada." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Feu clic a Obre." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Els tipus vàlids d'URI són http:, ftp:, file: i tots els mètodes compatibles " +"amb GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Els fitxers d'alguns tipus d'URI s'obren com a només de lectura, i els " +"canvis que feu s'hauran de desar en una ubicació diferent. Per exemple, HTTP " +"només permet llegir els fitxers. Els fitxers de FTP són de només lectura " +"perquè no tots els servidors FTP funcionen correctament desant els fitxers " +"remots." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Accedir als fitxers que s'han obert anteriorment al gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Tornar a obrir un fitxer utilitzat recentment" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"El gedit proporciona un accés fàcil als deu fitxers més recents " +"que s'han obert anteriorment al gedit. A continuació s'explica " +"com es pot obrir un fitxer recent:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Feu clic al botó de fletxa al costat del botó Obre de la barra de " +"capçalera." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most-recently used files." +msgstr "El gedit mostrarà un menú amb els deu fitxers més recents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Seleccioneu el fitxer desitjat, i s'obrirà en una nova pestanya." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse a recently-used file from the menu, the full " +"path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Si es passa el cursor per un fitxer recent del menú, el camí sencer del " +"fitxer es mostra a la barra d'estat de la part inferior de la finestra del " +"gedit." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Utilitzeu connectors per personalitzar com el gedit treballa." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configurar i utilitzar els connectors del gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Podeu fer més amb el gedit utilitzant connectors. Diversos " +"connectors s'instal·len de manera predeterminada, però hi ha una gran " +"quantitat d'altres connectors disponibles per separat." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Moltes distribucions Linux creen un grup amb aquests connectors i els " +"publiquen al paquet gedit-plugins. Instal·leu el paquet " +"gedit-plugins per fer que aquests connectors extres estiguin " +"disponibles per al gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Instal·la gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Connectors del gedit predeterminats" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Connectors del gedit addicionals" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Canvia entre majúscules/minúscules el text seleccionat." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Canviar entre majúscules/minúscules" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Aquest connector us ajuda a canviar entre majúscules/minúscules les parts de " +"text seleccionades. Podeu utilitzar-lo per a canviar el text a minúscules, a " +"majúscules, per invertir-lo, o aplicar majúscules a la primera lletra. Per " +"activar aquest connector, seleccioneu geditPreferències ConnectorsCanvia majúscules/minúscules." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Un cop el connector Canvia entre majúscules/minúscules està " +"activat, es pot utilitzar, completant els passos següents:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Destaca la porció de text que voleu canviar." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Seleccioneu geditCanvia majúscules/" +"minúscules" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Trieu la vostra opció desitjada pel format del text." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Les actualitzacions de format del text es realitzen immediatament." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"L'opció Inverteix majúscules i minúscules convertirà les lletres " +"en minúscula a majúscula, i a l'inrevés." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"L'opció Majúscula inicial convertirà la primera lletra de cada " +"paraula en majúscules. Totes les altres lletres es convertiran en minúscules." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Si no teniu destacat cap part del text, la funcionalitat Canvia " +"majúscules/minúscules estarà en gris. Heu de seleccionar una porció de " +"text abans d'utilitzar la funció Canvia majúscules/minúscules." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Mostrar les estadístiques del document." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Estadístiques del document" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"El connector Estadístiques del document mostra diferents " +"estadístiques del document actual. Per activar-lo, seleccioneu geditPreferències " +"ConnectorsEstadístiques del document." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Ús de les estadístiques del document" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Un cop està habilitat, el podeu utilitzar seleccionant Eines Estadístiques del document. Una finestra mostrarà " +"la informació estadística del document, incloent-hi el nombre de paraules, " +"línies, caràcters, caràcters que no són un espai, i la mida del fitxer en " +"bytes." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"També podeu utilitzar les Estadístiques del document per mostrar " +"informació sobre una part del document. Per fer-ho, utilitzeu el ratolí per " +"seleccionar la part del text que voleu examinar i, a continuació, " +"seleccioneu EinesEstadístiques del document. El gedit mostrarà informació tant per a tot el document " +"com per a la part del text que heu ressaltat." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Executeu scripts als vostres fitxers actuals, i interactueu amb altres " +"aplicacions." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Eines externes" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"El connector Eines externes pot ajudar a simplificar tasques " +"repetitives. Concretament, estén el gedit ajudant-vos a executar " +"scripts als vostres fitxers de treball, i permetent al gedit " +"interactuar amb altres programes del vostre ordinador. Per activar el " +"connector Eines externes, seleccioneu gedit PreferènciesConnectors Eines externes." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configura el connector eines externes" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Un cop activat el connector, l'haureu de configurar perquè segueixi les " +"vostres necessitats. Les opcions de configuració estan disponibles a " +"EinesGestiona les eines externes." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Aquest connector és per a usuaris avançats, i requereix coneixements de " +"programació per poder-se utilitzar de forma efectiva. Utilitzeu el connector " +"amb compte, ja que errors als vostres scripts poden afectar el vostre " +"treball de forma involuntària." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Utilitzeu el tauler lateral per navegar i obrir fitxers." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Quadre del navegador de fitxers" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"En funció de com utilitzeu el gedit, podeu trobar interessant fer " +"servir el connector Quadre del navegador de fitxers. Aquest " +"connector incrusta un navegador de fitxers al quadre lateral, " +"facilitant-vos l'accés als fitxers freqüents." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Podeu activar el quadre lateral seleccionant geditPreferències ConnectorsQuadre del navegador de fitxers." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Inserir la data/hora actual a la posició del cursor." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Insereix la data/hora" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Com suggereix el nom d'aquest connector, el connector Insereix la data/" +"hora us permet inserir la data i/o l'hora a la posició actual del " +"cursor." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Per a activar el connector:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Premeu el botó de menú de la cantonada superior dreta de la finestra i " +"seleccioneu Preferències Connectors." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Seleccioneu Insereix la data/hora per a " +"activar el connector." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Per a utilitzar el connector, premeu el botó de menú de la cantonada " +"superior dreta de la finestra i seleccioneu EinesInsereix la data i hora...." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Per defecte, el connector Insereix la data/hora us demanarà que " +"trieu el vostre format de data/hora preferit cada cop que l'utilitzeu. " +"Tanmateix, podeu triar el vostre propi format de data i hora predeterminat " +"prement el botó de menú de la cantonada superior dreta de la finestra i " +"seleccionant PreferènciesConnectorsInsereix la data/horaPreferències." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Com instal·lar connectors de terceres parts." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Connectors addicionals del gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"La instal·lació de connectors de tercers us ofereix funcionalitats " +"addicionals que no estan disponibles per defecte al gedit, ni als " +"paquets de connectors addicionals del gedit-plugins. Una llista " +"de connectors de tercers està disponible a mantinguts aquí." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Instal·lar un connector de tercers implica descarregar el connector, " +"col·locar els fitxers del connector en el directori correcte i activar-lo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Normalment podeu descarregar un connector des del lloc web del connector, " +"però potser haureu d'utilitzar un programa de control de versions com " +"git, bazaar, o subversion per copiar el " +"dipòsit de programari d'un connector des d'Internet. Consulteu la " +"documentació del connector per obtenir informació sobre com obtenir-lo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Copieu els fitxers del connector a la carpeta /home/usuari/." +"local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "Per descomptat, canvieu usuari pel vostre nom d'usuari." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Una vegada col·locats els fitxers del connector en el directori correcte, el " +"connector apareixerà al menú de preferències. Premeu el botó de menú de la " +"cantonada superior dreta de la finestra i seleccioneu PreferènciesConnectors[Nom " +"del connector] per a activar-lo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Feu clic a Tanca." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "Un cop activat el connector, estarà disponible per al seu ús." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"La carpeta .local per defecte està oculta. Per veure-la així " +"com altres arxius ocults, seleccioneu VisualitzacióMostra els fitxers ocults, o premeu " +"CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Si el directori .local/share/gedit/plugins/ no existeix, " +"l'haureu de crear." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Suport de modes de línia d'Emacs, Kate i Vim per al gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Modes de línia" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"El connector Modes de línia permet al gedit analitzar " +"les línies de text al principi i al final d'un fitxer i, a continuació, " +"aplicar-hi un conjunt de preferències. El connector Modes de línia suporta un subconjunt d'opcions contingudes als editors de text " +"Emacs, Kate i Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Per activar el connector Modes de línia, seleccioneu gedit PreferènciesConnectorsModes de línia." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Opcions generals del Modes de línia" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Les següents opcions es poden configurar utilitzant Modes de línia al " +"gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Mida del tabulador" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Amplada del sagnat" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Inserir espais en comptes de tabuladors" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Ajustament del text" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Amplada del marge dret" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Les preferències establertes mitjançant modes de línia tenen prioritat sobre " +"les especificades al diàleg de preferències." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Modes de línia de l'Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Les dues primeres línies d'un document s'analitzen per trobar modes de línia " +"Emacs, i gedit suporta les següents opcions de modes " +"de línia d'Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Per a més informació sobre els modes de línia Emacs, visiteu el " +"Manual " +"del GNU Emacs ." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Modes de línia de Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"La primera i les deu darreres línies del document són analitzades pels modes " +"de línia del Kate, i gedit suporta les següents " +"opcions de modificadors Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Per a més informació sobre els modes de línia Kate, visiteu el lloc web Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Modes de línia del Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"La primera i les tres darreres línies d'un document, són analitzades pel " +"modes de línia del Vim, i gedit suporta les següents " +"opcions de modificadors Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Per a més informació sobre els modificadors Vim, visiteu el lloc web Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Afegeix una consola interactiva de Python al quadre inferior." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Consola Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Podeu afegir una consola de Python al quadre inferior, que us permetrà " +"validar scripts de Python sense sortir del gedit. Per activar la " +"consola de Python, seleccioneu gedit PreferènciesConnectors Consola " +"Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Un cop la consola Python s'ha activat, la podeu obrir des de " +"VisualitzacióQuadre inferior." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Si també teniu actiu el connector Terminal incrustat, la " +"Consola Python apareixerà com una pestanya separada al quadre " +"inferior." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Obrir ràpidament un fitxer o un conjunt de fitxers." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Obertura ràpida" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Com el nom d'aquest connector implica, el connector Obertura ràpida us ajuda a obrir fitxers més ràpidament que utilitzant les formes " +"habituals d'obrir fitxers. Per activar aquest connector, seleccioneu " +"gedit PreferènciesConnectorsObertura ràpida." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Un cop activat el connector Obertura ràpida el podeu utilitzar " +"com segueix:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Obre el quadre de diàleg Obertura ràpida prement " +"CtrlAltO, o seleccionant " +"Obertura ràpida…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Apareixerà el quadre de diàleg Obertura ràpida." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Utilitzeu el ratolí per a seleccionar el fitxer o els fitxers que voleu " +"obrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Per a seleccionar diversos fitxers de forma individual, manteniu premuda la " +"tecla Ctrl mentre feu clic als fitxers que voleu obrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Per a seleccionar un grup de fitxers, feu clic al primer fitxer que vulgueu " +"obrir, mantingueu premuda la tecla Maj, i després feu clic a " +"l'últim fitxer de la llista que vulgueu obrir." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Obertura ràpida cerca els fitxers a:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Directori del document actualment obert" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"El directori arrel del connector Quadre del navegador de fitxers" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Documents recents que també es mostren a la carpeta Recents a " +"Fitxers" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Directoris que heu marcat com d'interès a Fitxers" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "La vostra carpeta Escriptori" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "La vostra carpeta Inici" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Obertura ràpida mostra els fitxers en qualsevol de les ubicacions " +"anteriors, independentment d'haver-les obert prèviament o no." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Utilitzeu fragments per inserir ràpidament trossos de text que utilitzeu " +"sovint." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Fragments" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Fragments proporciona una manera pràctica d'inserir parts " +"repetitives del codi als vostres fitxers. Per exemple, un fragment d'HTML " +"per al tag <img> inserirà les porcions d'obertura i " +"tancament de l'etiqueta, així com llocs fixos on poder introduir atributs a " +"la imatge. Això fa que l'escriptura de codi sigui més fàcil i ràpida." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Activa el connector Fragments" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Per activar el connector Fragments:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Seleccioneu gedit Preferències Connectors." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Seleccioneu Fragments per activar el connector." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Navegar pels fragments" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Per navegar pels fragments disponibles:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Seleccioneu Eines Gestiona els fragments." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Assegureu-vos que la sintaxi està establerta de manera adequada. La barra " +"d'estat a la part inferior de la finestra del gedit mostrarà la " +"configuració actual d'idioma. Aquesta configuració és la que permet que " +"gedit insereixi els fragments adequats. Gedit normalment detecta " +"l'idioma o la sintaxi del fitxer utilitzat, però de vegades s'ha de " +"configurar." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "En aquest exemple, el llenguatge està establert a HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Navegueu pels fragments disponibles pel vostre llenguatge o sintaxi." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Utilitza Fragments" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Per inserir un fragment al vostre document actual:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Escriviu el nom del fragment desitjat a qualsevol lloc del vostre document " +"actual." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Premeu Tab per inserir el fragment associat al terme d'entrada." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Exemple d'ús d'un fragment" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Per exemple, si heu establert la sintaxi a HTML, escriviu " +"head , i premeu la tecla Tab. El text s'hauria " +"d'haver autocompletat en el fragment:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Afegeix fragments" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Podeu afegir fragments que funcionen globalment (és a dir, són agnòstics de " +"llengua) o només en una sintaxi particular." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Seleccioneu Eines Gestiona els fragments." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Des de la barra lateral Gestiona els fragments seleccioneu la " +"sintaxi desitjada i feu clic al botó \"+\" per mostrar els fragments " +"existents per aquesta sintaxi." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Per afegir un fragment que funcioni a nivell global (és a dir, quan no s'ha " +"establert cap sintaxi o llenguatge concret per al document), seleccioneu " +"Global des de la barra lateral Gestiona els fragments." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Per afegir un nou fragment, feu clic a la icona «més» a la barra lateral " +"Gestiona els fragments." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Introduïu un nom per al nou fragment. El nom del fragment pot diferir del " +"fragment que vulgueu afegir." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"A la secció Activació, heu d'introduir un terme a " +"l'area de text Activador:. Estareu utilitzant " +"aquest terme per inserir el vostre fragment." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Si voleu inserir un fragment amb una drecera de teclat, feu clic al punter " +"del ratolí a Drecera: i premeu la combinació de " +"tecles desitjada. Un cop hàgiu premut i alliberat les tecles, s'establirà la " +"drecera des del teclat." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"A l'àrea d'Edició:, introduïu el text del " +"fragment. Podeu utilitzar ${n} per indicar variables, on n es substitueix per un nombre que representa l'ordre numèric de les " +"variables incloses." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Exemple de nou fragment" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Considereu que heu creat un fragment amb el contingut salutacions " +"a la Disparador de tabuladors:. L'àrea de text " +"Edita: conté:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Podeu inserir aquest fragment escrivint salutacions al document i " +"prement la tecla Tabulador. S'inserirà el fragment següent:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Les paraules \"meravellós\" i \"sorprenent\" es poden conservar o suprimir " +"depenent de la vostra elecció d'ús. Per fer-ho, premeu Tab per " +"triar entre \"meravellós\" i \"sorprenent\", i premeu Supr per a " +"eliminar l'opció menys preferida." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Ordena línies de text per ordre alfabètic." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Ordena" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"El connector Ordena, ordena les línies de text seleccionades per ordre " +"alfabètic." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Activar el connector Ordena" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Per activar el connector Ordena:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Seleccioneu Ordena per activar el connector." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Ús del connector Ordena" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Per utilitzar el connector Ordena:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Seleccioneu les línies de text desitjades." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Seleccioneu Eines Ordena...." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"S'obrirà el diàleg Ordena, que us permetrà triar entre diverses " +"opcions d'ordenació:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "Ordre invers ordenarà el text en ordre alfabètic invers." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Elimina duplicats eliminarà els valors duplicats de la llista." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Ignora Majúscules/minúscules no diferenciarà majúscules de " +"minúscules." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Per fer que ordenar ignori els caràcters a l'inici de les línies, configureu " +"el primer caràcter que s'utilitzarà per ordenar al control incremental " +"Inicia a la columna." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "" +"Per realitzar l'operació de classificació, feu clic a Ordena." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Estableix les pàgines per imprimir en un ordre determinat." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Obtenir còpies per imprimir en l'ordre correcte" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Invers" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Normalment les impressores imprimeixen primer la primera pàgina i per últim " +"la darrera, de manera que les pàgines acaben en ordre invers quan es " +"recullen. Si és necessari, podeu invertir aquest l'ordre:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Seleccioneu Fitxer Imprimeix." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"A la pestanya General del diàleg d'impressió, sota " +"Copies, marqueu Invers." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "La darrera pàgina s'imprimirà primer, etcètera." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Intercala" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Si imprimiu més d'una còpia del document, les impressions s'agruparan per " +"número de pàgina de manera predeterminada (és a dir, surten totes les còpies " +"de la pàgina 1, les còpies de la pàgina 2, etc.). Intercalar, farà que cada " +"còpia surti amb les seves pàgines agrupades." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Per intercalar:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Feu clic a Fitxer Imprimeix." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"A la pestanya General del diàleg d'impressió, sota " +"Còpies marqueu Intercala." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Imprimeix els fitxers que creeu amb gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Imprimir documents" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Imprimir amb gedit requereix que tingueu connectada i configurada " +"la vostra impressora. Si no ho heu fet, consulteu l'ajuda a la impressió de GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit us permet imprimir tant en un fitxer com en paper." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Vista prèvia d'impressió" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Abans d'imprimir el document, podeu obtenir una vista prèvia de com es veurà " +"el document imprès Vista prèvia d'impressió. Per obtenir una " +"vista prèvia del document:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Seleccioneu Fitxer Visualització prèvia. Alternativament, podeu imprimir " +"MajCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"La previsualització del vostre document s'obrirà a la mateixa pestanya que " +"el fitxer. Podeu navegar per aquesta previsualització amb l'ajuda dels " +"botons i les eines de navegació a la barra d'eines a la part superior de la " +"pestanya Vista preliminar del document. Per tancar i tornar al document feu " +"clic Tanca la vista prèvia." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Imprimir al paper" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Podeu imprimir els vostres documents en paper utilitzant una impressora " +"local o remota. Per imprimir un fitxer:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Seleccioneu Fitxer Imprimeix General." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "" +"Seleccioneu la impressora desitjada de la llista d'impressores disponibles." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Podeu previsualitzar el fitxer utilitzant Visualització prèvia i una vegada estigueu satisfets amb la " +"configuració, feu clic a Imprimeix per enviar el " +"fitxer a la impressora." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Addicionalment, des de la pestanya Configuració de la " +"pàgina: podeu seleccionar les opcions de Disseny i paper. Si aquesta configuració està " +"disponible en tots els programes, GNOME, si us plau, consulteu " +"l'ajuda per a les Opcions de " +"disseny i de paper." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Imprimeix diverses còpies i entre rangs especificats" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Podeu establir opcions de Rang i Copies per ajudar-vos:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Imprimir a un fitxer" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"També podeu utilitzar gedit per imprimir a un fitxer. Per " +"imprimir el document a un format diferent:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Seleccioneu Fitxer Imprimeix Imprimeix a un fitxer." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"La impressió està habilitada per als formats de fitxer següents, podeu " +"seleccionar entre:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Format de document portable (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Gràfic de vectors escalables (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Per imprimir el document a un fitxer, feu clic a Imprimeix." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Trieu les pàgines que voleu imprimir." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Tan sols imprimir certes pàgines" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Podeu imprimir selectivament només certes pàgines del document. Per exemple, " +"si introduïu els números de pàgina \"1,3,5-7,9\", només s'imprimiran les " +"pàgines 1, 3, 5, 6, 7 i 9. Per imprimir les pàgines que vulgueu:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Seleccioneu Fitxer Imprimeix…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"A la pestanya General al diàleg d'impressió, trieu " +"Pàgines des de la secció Rangs." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Escriviu els números de les pàgines que voleu imprimir del document, " +"separades per comes. Utilitzeu un guió per especificar un rang de pàgines." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Una breu introducció al gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Començar amb el gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"El gedit és un editor de text amb totes les funcionalitats per a " +"l'entorn d'escriptori GNOME. Podeu utilitzar-lo per preparar notes i " +"documents simples, o podeu utilitzar algunes de les seves funcions " +"avançades, convertint-lo en el vostre entorn de desenvolupament de " +"programari." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Un cop el gedit s'ha engegat, podeu començar a escriure " +"immediatament. Per a desar el text, feu clic al botó Desa de la " +"barra de capçalera del gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Per aprendre sobre funcionalitats addicionals del gedit i obtenir " +"ajuda sobre com realitzar tasques especials, exploreu " +"altres parts de l'ajuda del gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Reemplaça parts de text en un fitxer." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Reemplaçar text" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"L'edició del text pot ser lenta. Per estalviar temps, gedit " +"inclou la funció Reemplaçar que us ajuda a trobar i reemplaçar " +"parts de text." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Reemplaça text a gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Obriu l'eina Reemplaça fent clic al Botó menúCerca i reemplaça… " +"o premeu CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Introduïu el text que vulgueu reemplaçar al camp Cerca." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Introduïu el nou text per reemplaçar al camp Reemplaça amb." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Un cop hàgiu introduït el text original i el de reemplaçament, podeu afegir " +"paràmetres addicionals a la cerca. També podeu triar que voleu reemplaçar:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Per a reemplaçar només la següent coincidència, feu clic a " +"Reemplaça." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Per a reemplaçar totes les coincidències del text cercat, feu clic " +"a Reemplaça-ho tot." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Utilitzeu la funció Reemplaça tot amb compte. Reemplaça tot actua sobre tot el fitxer, i no permet ressaltar les parts de text on " +"es realitzarà la funció de substitució." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Més opcions" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Si ho desitgeu, podeu afegir paràmetres addicionals a la cerca:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Coincidència entre majúscules i minúscules" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"L'opció Coincidència entre majúscules i minúscules us permet " +"especificar si voleu que la vostra cerca sigui sensible a majúscules i " +"minúscules. Si se selecciona aquesta opció, les cerques seran sensitives a " +"les majúscules i minúscules. Si no, les cerques no ho seran." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Fer coincidir la paraula sencera" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Utilitzeu aquesta opció per cercar una paraula específica sense incloure " +"fragments d'altres paraules. Per exemple, si heu cercat la paraula 'poma' " +"amb aquesta opció seleccionada, la paraula 'poma' coincidirà, però les " +"paraules 'pomada' i 'empomar' no es localitzaran com a " +"coincidents." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Cerca cap enrere" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Aquesta ordre es comporta de forma idèntica a l'ordre 'Cerca anterior'. Si " +"voleu saltar pels resultats de la cerca des del final al començament, " +"seleccioneu aquesta opció." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Continua des de l'inici" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Amb l'opció continua des de l'inici activada, gedit " +"reiniciarà l'acció de cerca/reemplaçament a l'inici del fitxer després " +"d'haver arribat al final. D'aquesta manera, es garanteix que l'acció de " +"cerca/reemplaçament es farà a tot el fitxer." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Ús de seqüències d'escapament" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Podeu utilitzar seqüències d'escapament per cercar salts de línia, " +"retorns de carro, i tabuladors." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nova línia" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Retorn de carro" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Si esteu cercant una \\ (barra invertida) o una seqüència " +"d'escapament al text, heu de posar la barra inversa amb una barra inversa " +"extra. Per exemple, per cercar \\, heu d'introduir \\" +"\\ al camp de cerca o reemplaçament. Podeu cercar seqüències " +"d'escapament de la mateixa manera: per cercar o reemplaçar un salt de línia " +"\\n, utilitzeu el terme \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Desar el vostre fitxer per a treballar-hi més tard." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Desar un fitxer" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Per a desar un fitxer al gedit, feu clic al botó Desa al costat dret de la barra de capçalera o premeu " +"CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Si esteu desant un fitxer nou, apareixerà un diàleg, i podreu seleccionar un " +"nom pel fitxer, així com la carpeta on voleu desar-lo." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Troba una part d'un text dins un fitxer." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Cercar un text" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"L'eina de Cerca us pot ajudar a trobar seqüències específiques de text al " +"vostre fitxer." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Cerca de text" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Obriu la finestra de cerca fent clic al botó de menú Cerca… o " +"prement CtrlF. Això desplaçarà el " +"cursor a l'inici de la finestra de cerca." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Escriviu el text que vulgueu cercar a la finestra de cerca." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"A mesura que escriviu, gedit començarà a ressaltar les parts de " +"text que coincideixin amb el que hàgiu introduït." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Per desplaçar-vos pels resultats de la cerca, trieu una de les següents " +"opcions:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Feu clic a la fletxa amunt o avall que hi ha al costat de la finestra de cerca." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Premeu la tecla fletxa amunt o fletxa avall del teclat." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Premeu CtrlG o CtrlMajG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Per tancar la finestra de cerca, premeu o bé Esc o bé " +"Retorn. Si premeu Esc el cursor tornarà al lloc on era " +"abans que iniciéssiu la cerca. Si premeu Retorn el cursor tornarà " +"a la posició actual als resultats de la cerca." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Consells de cerca" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Si destaqueu una part del text amb el ratolí, i a continuació premeu " +"CtrlF, el text que hàgiu ressaltat " +"apareixerà a la finestra de cerca." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Si voleu veure més opcions de cerca, feu clic a la icona de la lupa a la finestra de cerca, o feu clic amb el botó dret a " +"qualsevol punt de la finestra de cerca. Podeu seleccionar una o més de les " +"opcions de cerca següents:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Seleccioneu Coincidència entre majúscules i minúscules perquè la " +"cerca distingeixi entre majúscules i minúscules." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Seleccioneu Fes coincidir la paraula sencera per cercar només " +"paraules senceres." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Seleccioneu Continua des de l'inici per cercar el text des del " +"principi al final i tornar a començar després." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"El gedit mantindrà destacat el text que heu cercat, fins i tot un cop " +"finalitzada la cerca. Per a eliminar el destacat, feu clic a Neteja el ressaltat o premeu CtrlMajK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Verifica l'ortografia als fitxers." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Comprovar l'ortografia del document" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Activar el corrector ortogràfic" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"La funcionalitat de comprovació de l'ortografia es subministra com un " +"connector del gedit que es pot activar quan es necessiti. Per " +"activar el connector:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Seleccioneu Comprovador d'ortografia per " +"activar el connector." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Per comprovar si hi ha paraules mal escrites al vostre document:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Seleccioneu Eines Comprova l'ortografia." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Per fer que el gedit ressalti automàticament els errors " +"ortogràfics al document mentre escriviu, seleccioneu EinesRessalta les paraules mal " +"escrites." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Ús del corrector ortogràfic" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Podeu triar la forma de substitució correcta per als errors ortogràfics des " +"del diàleg \"Comprova l’ortografia\". L'error ortogràfic que marca el " +"corrector es mostra en negreta al costat de Paraula mal escrita. " +"Podeu triar entre les següents accions correctives:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Canvia a: permet que introduïu una paraula i " +"utilitzeu Revisa la paraula per comprovar la " +"seva correcció ortogràfica." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Suggeriments: llista els possibles substituts de " +"la paraula." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignora permet saltar el control ortogràfic per " +"una instància de la paraula actual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignora-ho tot permet saltar el control " +"ortogràfic per a totes les instàncies de la paraula actual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Canvia substitueix l'errada ortogràfica o la " +"paraula desconeguda amb una triada de la llista de Suggeriments:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Canvia-ho tot substitueix totes les " +"errades ortogràfiques o les paraules desconegudes amb la paraula substituta " +"triada de la llista de Suggeriments:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Afegeix paraula permet afegir la paraula al " +"Diccionari de l'usuari del gedit. Afegir paraules pròpies " +"al Diccionari de l'usuari permet al gedit reconèixer " +"la paraula als documents i no destacar-la com errada." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Definir l'idioma que s'utilitzarà en la correcció ortogràfica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Per defecte, el gedit utilitzarà el vostre idioma per a la " +"correcció del document. Si necessiteu un altre idioma, seleccioneu " +"EinesEspecifiqueu " +"l'idioma…, aleshores trieu l'idioma que vulgueu utilitzar." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Diccionaris" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit utilitza Enchant, una petita utilitat del sistema, per corregir " +"ortogràficament. Enchant pot utilitzar diferents diccionaris per fer les " +"correccions ortogràfiques. Hi ha dos diccionaris en segon pla d'execució: " +"Hunspell i Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Si l'idioma que voleu utilitzar no està disponible al gedit, " +"utilitzeu l’instal·lador de programari o el gestor de paquets de l’ordinador " +"per instal·lar el diccionari que vulgueu." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Ressaltar el text per fer-lo més fàcil de llegir." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Activar el ressaltat de la sintaxi" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Ressaltat de la sintaxi" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"El gedit proporciona el ressaltat de la sintaxi per a un ampli " +"rang de llenguatges de marques, llenguatges de programació i científics. Si " +"el gedit reconeix la sintaxi que s’utilitza en obrir un fitxer, " +"el text es ressaltarà automàticament." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Si la vostra sintaxi o llenguatge no es ressalta d'entrada, podeu " +"seleccionar la sintaxi o llenguatge adequat fent clic a Vista Mode de ressaltat, i aleshores triar la sintaxi adequada. Opcionalment, podeu " +"seleccionar el nom de la sintaxi d'una llista a la part inferior de la " +"finestra del gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Agrupeu les pestanyes similars." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organitzar els fitxers en pestanyes agrupades" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Si treballeu amb diverses pestanyes al gedit, les podeu agrupar, " +"facilitant l'organització dels fitxers oberts. L'afegiment d'una pestanya de " +"grup nova divideix la finestra del gedit en dos quadres, obre un " +"«document sense títol» al quadre nou i l'activa. Podeu obrir fitxers en " +"aquest grup de pestanyes i moure pestanyes d'un grup de pestanyes a un altre." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Obrir un nou grup de pestanyes a la finestra del gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Per obrir un nou grup de pestanyes, podeu:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Feu clic dret en una pestanya i seleccioneu Mou a un grup de pestanyes " +"nou." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Utilitzar la drecera CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Aquesta acció divideix la finestra del gedit en dos quadres; el " +"quadre del grup de pestanyes nou es col·locarà a la dreta de la pestanya " +"activa. Podeu desplaçar la barra vertical cap a la dreta o l'esquerra " +"assignant més o menys espai als quadres de la finestra del gedit " +"d'acord amb les vostres necessitats." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Podeu obrir tants grups de pestanyes a la finestra del gedit com " +"admeti la vostra pantalla, però haureu de desplaçar la barra vertical per " +"tal de veure-les correctament." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Per tancar un grup de pestanyes tan sols heu de tancar totes les pestanyes " +"que estan obertes al seu interior." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Mou la pestanya a un altre grup" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Si voleu moure una pestanya d'un grup a un altre:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Feu clic i mantingueu el botó premut sobre la pestanya." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Arrossegueu la pestanya al panell d'un altre grup." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Col·loqueu-lo al costat d'altres pestanyes del grup de pestanyes." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Deixeu anar el botó del ratolí." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Canvia la posició d'una pestanya a la finestra gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Moure i reordenar pestanyes" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Les pestanyes a gedit es poden moure, fent més senzilla la feina " +"amb els arxius. Les pestanyes es poden reordenar dins la mateixa finestra, " +"moure fora del gedit (creant una nova finestra de gedit, i moure entre finestres." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Canviar l'ordre de les pestanyes en una finestra del gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Per a canviar l'ordre de les pestanyes en una finestra:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Moveu la pestanya a la posició desitjada entre les altres pestanyes." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"La pestanya es situarà a la posició més propera del lloc on deixis anar la " +"pestanya, immediatament al costat d'altres pestanyes obertes." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Mou una pestanya, creant una nova finestra gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Per crear una nova finestra des d'una pestanya existent:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Arrossegueu la pestanya fora de la finestra del gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Per moure una pestanya a una finestra nova quan gedit es " +"maximitza, arrossegueu la pestanya a la barra superior de la pantalla." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Mou una pestanya a una altra finestra del gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Si voleu moure una pestanya d'una finestra a una altra:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Arrossegueu la pestanya a la nova finestra." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Situeu-la al costat d'altres pestanyes a la nova finestra." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Potser resultar més fàcil moure una pestanya d’una finestra a una altra " +"arrossegant-la a Activitats hot-corner del Shell de GNOME. Així es mostra cadascuna de les finestres obertes del gedit. Podeu deixar anar la pestanya a la finestra de gedit que " +"desitgeu." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Crea o tanca pestanyes a la finestra del gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Afegir i suprimir pestanyes" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Les pestanyes del gedit us permeten tenir diversos fitxers sota " +"control en una sola finestra." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Afegeix pestanyes" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Per a afegir una pestanya nova i crear un fitxer nou, feu clic al botó " +"Crea un document nou del costat esquerre de la barra de capçalera " +"o premeu CtrlT. La pestanya s'afegirà " +"al costat dret de les altres." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Suprimeix pestanyes" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Per a eliminar una pestanya, feu clic a la × a " +"la part dreta de la pestanya o premeu CtrlW. Per a eliminar totes les pestanyes obertes, premeu " +"Ctrl MajW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Reverteix un canvi recent en un dels vostres fitxers." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Desfer/refer una acció recent" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Si cometeu un error editant un document al gedit, podeu desfer el " +"canvi prement CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"No podreu revertir un canvi després de tancar el fitxer del gedit." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Per a refer el canvi desfet, premeu CtrlMajZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Editor de text gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Editor de text gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Pàgina inicial de la guia d'ajuda del gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Editor de text gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Us donem la benvinguda a la guia d'ajuda del gedit. Per una " +"ràpida introducció a les característiques més bàsiques del gedit, " +"visiteu la pàgina Comenceu amb el gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Altres temes d’ajuda s'agrupen en seccions següents. Gaudiu utilitzant " +"gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Treball amb fitxers" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Configura el gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Connectors del gedit" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Imprimir amb el gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Atribució Compartir Igual 3.0 Llicència no portada" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Aquest treball està llicenciat sota <_:link-1/>." + +#~ msgid "" +#~ "To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears " +#~ "on the right-side of the file's tab, or press Ctrl " +#~ "W." +#~ msgstr "" +#~ "Per tancar un fitxer al gedit, seleccioneu Tanca. Alternativament, podeu fer clic a la \"X\" " +#~ "petita que apareix a la dreta de la pestanya del fitxer o premeu " +#~ "Ctrl W." + +#~ msgid "" +#~ "Press CtrlL in the Open " +#~ "dialog." +#~ msgstr "" +#~ "Premeu CtrlL al diàleg Obre." + +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "Per a ajustar la quantitat de fitxers que el gedit mostra, haureu " +#~ "d'utilitzar l'aplicació dconf-editor." + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "Inicieu el dconf-editor i seleccioneu org " +#~ "gnomegeditpreferènciesui " +#~ "max-recents." + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "" +#~ "Feu doble clic al nombre al costat de max-recents i canvieu-lo " +#~ "al valor desitjat." + +#~ msgid "" +#~ "To open files from the side panel, first open the side panel by selecting " +#~ "View Side Panel (or just press " +#~ "F9), and then choose File Browser from the dropdown " +#~ "at the top of the pane." +#~ msgstr "" +#~ "Per obrir fitxers des del quadre lateral, primer obriu el quadre lateral " +#~ "seleccionant Visualització Quadre lateral (o prement F9), i aleshores trieu Navegador pels " +#~ "fitxers des del menú desplegable a la part superior del panell." + +#~ msgid "" +#~ "This will activate the File Browser mode of the side panel. You " +#~ "can then use the navigation buttons at the top of the pane to locate and " +#~ "open your desired files." +#~ msgstr "" +#~ "Això activarà el mode Navegador de fitxers del quadre lateral. " +#~ "Podeu utilitzar els botons de navegació a la part superior del panell per " +#~ "localitzar i obrir els fitxers desitjats." + +#~ msgid "Use keyboard shortcuts to help you work more quickly." +#~ msgstr "" +#~ "Utilitzeu les dreceres de teclat per ajudar-vos a treballar més de pressa." + +#~ msgid "Paolo Borelli" +#~ msgstr "Paolo Borelli" + +#~ msgid "Jesse van den Kieboom" +#~ msgstr "Jesse van den Kieboom" + +#~ msgid "Steve Frécinaux" +#~ msgstr "Steve Frécinaux" + +#~ msgid "Ignacio Casal Quinteiro" +#~ msgstr "Ignacio Casal Quinteiro" + +#~ msgid "Shortcut keys" +#~ msgstr "Dreceres de teclat" + +#~ msgid "" +#~ "Use shortcut keys to perform common tasks more quickly than " +#~ "with the mouse and menus. The following tables list all of gedit's shortcut keys." +#~ msgstr "" +#~ "Feu servir les dreceres de teclat per realitzar les tasques " +#~ "habituals més de pressa que amb el ratolí i els menús. A les taules " +#~ "següents hi figuren totes les dreceres de teclat del gedit." + +#~ msgid "Tab-related Shortcut keys" +#~ msgstr "Dreceres de teclat relacionades amb pestanyes" + +#~ msgid "Action" +#~ msgstr "Acció" + +#~ msgid "Keyboard shortcut" +#~ msgstr "Drecera de teclat" + +#~ msgid "Switch to the next tab to the left" +#~ msgstr "Commuta a la pestanya següent de l'esquerra" + +#~ msgid "CtrlAlt PageUp" +#~ msgstr "CtrlAlt Re Pàg" + +#~ msgid "Switch to the next tab to the right" +#~ msgstr "Commuta a la pestanya següent de la dreta" + +#~ msgid "CtrlAlt PageDown" +#~ msgstr "CtrlAlt Av Pàg" + +#~ msgid "Close tab" +#~ msgstr "Tanca la pestanya" + +#~ msgid "CtrlW" +#~ msgstr "CtrlW" + +#~ msgid "Save all tabs" +#~ msgstr "Desa totes les pestanyes" + +#~ msgid "CtrlShift L" +#~ msgstr "CtrlMaj L" + +#~ msgid "Close all tabs" +#~ msgstr "Tanca totes les pestanyes" + +#~ msgid "CtrlShiftW" +#~ msgstr "CtrlMajW" + +#~ msgid "Reopen the most recently closed tab" +#~ msgstr "Reobre l'última pestanya que s'hagi tancat" + +#~ msgid "CtrlShiftT" +#~ msgstr "CtrlMajT" + +#~ msgid "Jump to nth tab" +#~ msgstr "Salta a la pestanya nèssima" + +#~ msgid "Alt n" +#~ msgstr "Alt n" + +#~ msgid "New tab group" +#~ msgstr "Nou grup de pestanyes" + +#~ msgid "CtrlAltN" +#~ msgstr "CtrlAltN" + +#~ msgid "Previous tab group" +#~ msgstr "Grup de pestanyes previ" + +#~ msgid "" +#~ "ShiftCtrlAltPage up" +#~ msgstr "" +#~ "MajCtrlAltRePàg" + +#~ msgid "Next tab group" +#~ msgstr "Següent grup de pestanyes" + +#~ msgid "" +#~ "ShiftCtrlAltPage down" +#~ msgstr "" +#~ "MajCtrlAltAvPàg" + +#~ msgid "Shortcut keys for working with files" +#~ msgstr "Dreceres de teclat per a treballar amb fitxers" + +#~ msgid "Create a new document in a new window" +#~ msgstr "Crea un document nou en una finestra nova" + +#~ msgid "CtrlN" +#~ msgstr "CtrlN" + +#~ msgid "Create a new document in a new tab" +#~ msgstr "Crea un document nou en una pestanya nova" + +#~ msgid "CtrlT" +#~ msgstr "CtrlT" + +#~ msgid "Open a document" +#~ msgstr "Obre un document" + +#~ msgid "CtrlO" +#~ msgstr "CtrlO" + +#~ msgid "Save the current document" +#~ msgstr "Desa el document actual" + +#~ msgid "CtrlS" +#~ msgstr "CtrlS" + +#~ msgid "Save the current document with a new filename" +#~ msgstr "Desa el fitxer actual amb un altre nom" + +#~ msgid "CtrlShift S" +#~ msgstr "CtrlMaj S" + +#~ msgid "Print the current document" +#~ msgstr "Imprimeix el document actual" + +#~ msgid "Ctrl P" +#~ msgstr "Ctrl P" + +#~ msgid "Close the current document" +#~ msgstr "Tanca el document actual" + +#~ msgid "Quit gedit" +#~ msgstr "Surt del gedit" + +#~ msgid "CtrlQ" +#~ msgstr "CtrlQ" + +#~ msgid "Shortcut keys for editing files" +#~ msgstr "Tecles de drecera per editar fitxers" + +#~ msgid "Move the selected word right one word" +#~ msgstr "Mou la paraula seleccionada una paraula a la dreta" + +#~ msgid "AltRight Arrow" +#~ msgstr "AltFletxa dreta" + +#~ msgid "Move the selected word left one word" +#~ msgstr "Mou la paraula seleccionada una paraula a l'esquerra" + +#~ msgid "AltLeft Arrow" +#~ msgstr "AltFletxa esquerra" + +#~ msgid "Undo the last action" +#~ msgstr "Desfés la darrera acció" + +#~ msgid "CtrlZ" +#~ msgstr "CtrlZ" + +#~ msgid "Redo the last undone action" +#~ msgstr "Refés la darrera acció desfeta" + +#~ msgid "Cut the selected text or region and place it on the clipboard" +#~ msgstr "Retalla el text o l'àrea seleccionada i posa-la en el porta-retalls" + +#~ msgid "CtrlX" +#~ msgstr "CtrlX" + +#~ msgid "Copy the selected text or region onto the clipboard" +#~ msgstr "Copia el text o àrea seleccionada al porta-retalls" + +#~ msgid "CtrlC" +#~ msgstr "CtrlC" + +#~ msgid "Paste the contents of the clipboard" +#~ msgstr "Enganxa el contingut del porta-retalls" + +#~ msgid "CtrlV" +#~ msgstr "CtrlV" + +#~ msgid "Select all text in the file" +#~ msgstr "Selecciona tot el text del fitxer" + +#~ msgid "CtrlA" +#~ msgstr "CtrlA" + +#~ msgid "Unselect all text" +#~ msgstr "Desselecciona tot el text" + +#~ msgid "CtrlBackslash" +#~ msgstr "CtrlBarra inversa" + +#~ msgid "Delete the current line" +#~ msgstr "Esborra la línia actual" + +#~ msgid "CtrlD" +#~ msgstr "CtrlD" + +#~ msgid "Move the selected line up one line" +#~ msgstr "Mou la línia seleccionada una línia amunt" + +#~ msgid "AltUp Arrow" +#~ msgstr "AltFletxa amunt" + +#~ msgid "Move the selected line down one line" +#~ msgstr "Mou la línia seleccionada una línia avall" + +#~ msgid "AltDown Arrow" +#~ msgstr "AltFletxa avall" + +#~ msgid "Add a tab stop" +#~ msgstr "Afegeix un tabulador" + +#~ msgid "Tab" +#~ msgstr "Tab" + +#~ msgid "Remove a tab stop" +#~ msgstr "Suprimeix un tabulador" + +#~ msgid "ShiftTab" +#~ msgstr "MajTab" + +#~ msgid "Convert the selected text to upper case" +#~ msgstr "Posa en majúscula el text seleccionat" + +#~ msgid "CtrlU" +#~ msgstr "CtrlU" + +#~ msgid "Convert the selected text to lower case" +#~ msgstr "Posa en minúscula el text seleccionat" + +#~ msgid "CtrlL" +#~ msgstr "CtrlL" + +#~ msgid "Toggle case of the selected text" +#~ msgstr "Commuta entre majúscules/minúscules el text seleccionat" + +#~ msgid "Ctrl~" +#~ msgstr "Ctrl~" + +#~ msgid "Toggle cursor visibility" +#~ msgstr "Canvia la visibilitat del cursor" + +#~ msgid "F7" +#~ msgstr "F7" + +#~ msgid "Shortcut keys for showing and hiding panes" +#~ msgstr "Tecles de drecera per mostrar i amagar panells" + +#~ msgid "Show / hide the side panel" +#~ msgstr "Mostreu / amagueu el quadre lateral" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Open the file menu" +#~ msgstr "Obre el menú de fitxers" + +#~ msgid "F10" +#~ msgstr "F10" + +#~ msgid "Shortcut keys for navigation" +#~ msgstr "Tecles de drecera per a la navegació" + +#~ msgid "Move to matching bracket" +#~ msgstr "Mou al claudàtor concordant" + +#~ msgid "Ctrl%" +#~ msgstr "Ctrl%" + +#~ msgid "Goto line" +#~ msgstr "Vés a la línia" + +#~ msgid "CtrlI" +#~ msgstr "CtrlI" + +#~ msgid "Move to the beginning of the current line" +#~ msgstr "Mou al principi de la línia actual" + +#~ msgid "Home" +#~ msgstr "Inici" + +#~ msgid "Move to the end of the current line" +#~ msgstr "Mou al final de la línia actual" + +#~ msgid "End" +#~ msgstr "Fi" + +#~ msgid "Move to the beginning of the document" +#~ msgstr "Mou al principi del document" + +#~ msgid "CtrlHome" +#~ msgstr "CtrlInici" + +#~ msgid "Move to the end of the document" +#~ msgstr "Mou al final del document" + +#~ msgid "CtrlEnd" +#~ msgstr "CtrlFi" + +#~ msgid "Move viewport up within the file" +#~ msgstr "Mou l'àrea de visualització cap amunt dins del fitxer" + +#~ msgid "ShiftAltUp" +#~ msgstr "" +#~ "MajAltFletxa amunt" + +#~ msgid "Move viewport down within the file" +#~ msgstr "Mou l'àrea de visualització avall dins del fitxer" + +#~ msgid "ShiftAltDown" +#~ msgstr "" +#~ "MajAlt Fletxa avall" + +#~ msgid "Move viewport to beginning of file" +#~ msgstr "Mou l'àrea de visualització al començament del fitxer" + +#~ msgid "ShiftAltHome" +#~ msgstr "MajAltInici" + +#~ msgid "Move viewport to end of file" +#~ msgstr "Mou l'àrea de visualització al final del fitxer" + +#~ msgid "ShiftAltEnd" +#~ msgstr "MajAltFi" + +#~ msgid "Shortcut keys for searching" +#~ msgstr "Tecles de drecera per a la cerca" + +#~ msgid "Find a string" +#~ msgstr "Cerca una cadena" + +#~ msgid "CtrlF" +#~ msgstr "CtrlF" + +#~ msgid "Find the next instance of the string" +#~ msgstr "Cerca la següent aparició de la cadena" + +#~ msgid "CtrlG" +#~ msgstr "CtrlG" + +#~ msgid "Find the previous instance of the string" +#~ msgstr "Cerca l'aparició anterior de la cadena" + +#~ msgid "CtrlShiftG" +#~ msgstr "CtrlMajG" + +#~ msgid "Search and Replace" +#~ msgstr "Cerca i reemplaça" + +#~ msgid "CtrlH" +#~ msgstr "CtrlH" + +#~ msgid "Clear highlight" +#~ msgstr "Neteja el ressaltat" + +#~ msgid "CtrlShift K" +#~ msgstr "CtrlMaj K" + +#~ msgid "Shortcut keys for tools" +#~ msgstr "Tecles de drecera per a eines" + +#~ msgid "Check spelling" +#~ msgstr "Comprova l'ortografia" + +#~ msgid "ShiftF7" +#~ msgstr "MajF7" + +#~ msgid "Remove trailing spaces (with plugin)" +#~ msgstr "Suprimeix els caràcters finals (amb el connector)" + +#~ msgid "AltF12" +#~ msgstr "AltF12" + +#~ msgid "Run \"make\" in the current directory (with plugin)" +#~ msgstr "Executa «make» a la carpeta actual (amb el connector)" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Directory listing (with plugin)" +#~ msgstr "Llistat de carpetes (amb el connector)" + +#~ msgid "CtrlShift D" +#~ msgstr "CtrlMaj D" + +#~ msgid "Shortcut keys for user help" +#~ msgstr "Accés directe a l'ajuda per l'usuari" + +#~ msgid "Open the gedit user guide" +#~ msgstr "Obre la guia d'usuari del gedit" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "Go to DocumentsNew Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Aneu a DocumentsGrup de pestanyes nou al menú principal." + +#~ msgid "Move through tab groups" +#~ msgstr "Mou-te entre els grups de pestanyes" + +#~ msgid "To move forward (on the next) tab group:" +#~ msgstr "Mou-te endavant (al següent) grup de pestanyes:" + +#~ msgid "" +#~ "Go to DocumentsNext Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Vés a DocumentsGrup de pestanyes següent al menú principal." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "down shortcut." +#~ msgstr "" +#~ "Utilitza la drecera MajCtrlAltAvPàg." + +#~ msgid "To move backward (on the previous) tab group:" +#~ msgstr "Mou-te enrere (al previ) grup de pestanyes:" + +#~ msgid "" +#~ "Go to DocumentsPrevious Tab Group " +#~ "in the main menu." +#~ msgstr "" +#~ "Vés a DocumentsGrup de pestanyes previ al menú principal." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "up shortcut." +#~ msgstr "" +#~ "Utilitza la drecera MajCtrlAltRePàg." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tab groups." +#~ msgstr "" +#~ "Consulteu la taula tecles de drecera " +#~ "relacionades amb les pestanyes per fer més senzilla la gestió dels " +#~ "grups de pestanyes." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tabs." +#~ msgstr "" +#~ "Veure la taula tab-related tecles " +#~ "d'accés directe per fer més senzilla la gestió de les pestanyes." + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. The tab that is larger than the other " +#~ "tabs indicates the file that is currently open. The smaller tabs indicate " +#~ "other files that are available to work on." +#~ msgstr "" +#~ "Utilitzar pestanyes al gedit us permet veure diversos fitxers " +#~ "en una sola finestra. La pestanya més gran indica el fitxer que està " +#~ "actualment obert. Les pestanyes més petites indiquen altres fitxers " +#~ "disponibles per treballar." + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "Tal com el nom del connector suggereix, el component Insereix Data/" +#~ "Hora us permet inserir la data i/o l'hora a la posició actual del " +#~ "cursor. Per activar aquest connector, seleccioneu gedit PreferènciesConnectors Insereix Data/Hora. Per " +#~ "utilitzar el connector, premeu EditaInsereix la data/hora." + +#~ msgid "Open the Quick Open window" +#~ msgstr "Obre la finestra Obertura ràpida" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Print preview" +#~ msgstr "Exemple d'impressió" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlMaj P" diff --git a/help/cs/cs.po b/help/cs/cs.po new file mode 100644 index 0000000..fe9cb03 --- /dev/null +++ b/help/cs/cs.po @@ -0,0 +1,3520 @@ +# Czech translation of gedit help. +# Copyright (C) 2009 the author(s) of gedit. +# This file is distributed under the same license as the gedit help. +# +# Lucas Lommer , 2009. +# Marek Černocký , 2009, 2010, 2014, 2015, 2017, 2019, 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit gnome-3.38\n" +"POT-Creation-Date: 2020-11-13 22:20+0000\n" +"PO-Revision-Date: 2020-11-16 20:38+0100\n" +"Last-Translator: Marek Černocký \n" +"Language-Team: čeština \n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"X-Poedit-Language: Czech\n" +"X-Poedit-Country: CZECH REPUBLIC\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Generator: Gtranslator 2.91.7\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Marek Černocký , 2009, 2014.\n" +"Lucas Lommer , 2009." + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Jak změnit v editoru gedit barvy textu a pozadí." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:11 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Švárová" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Změna barevného schématu" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"Součástí aplikace gedit je několik různých schémat barev, díky " +"kterým můžete měnit vzhled hlavního okna s textem." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Když chcete změnit barevné schéma:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 C/gedit-change-default-font.page:29 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Zmáčkněte tlačítko nabídky v pravém horním rohu okna a vyberte Předvolby Písmo a barvy." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Zvolte požadované schéma barev." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Nové schéma barev se okamžitě použije." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Použití vlastního schématu barev" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Můžete také použít schéma barev, které vytvořil někdo jiný, nebo si vytvořit " +"své vlastní." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Návod, jak si nainstalovat vlastní schéma barev, stejně jako ukázka schématu " +"barev, kterou si můžete stáhnout a použít, jsou dostupné na wiki editoru gedit (odkazovaný text je v angličtině)." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Jak použít vlastní písmo pro text v editoru gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:13 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:20 +msgid "Change the default font" +msgstr "Změna výchozího písma" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:22 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"Ve výchozím stavu používá gedit systémové písmo s pevnou šířkou, " +"ale máte možnost si ho změnit, aby lépe vyhovovalo vašim potřebám." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:27 +msgid "To change the default font in gedit:" +msgstr "Pokud chcete výchozí písmo v editoru gedit změnit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed width font.\"" +msgstr "" +"Zruště zaškrtnutí vedle popisku „Použít systémové písmo s pevnou šířkou“" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:34 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Klikněte na název aktuálního písma. gedit otevře okno pro výběr " +"písma, takže uvidíte dostupná písma a to požadované si můžete zvolit." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Až si vyberete nové písmo, použijte táhlo pod seznamem písem k " +"nastavení výchozí velikosti písma." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:39 +msgid "Click Select, and then close the dialog." +msgstr "Klikněte na Vybrat a pak dialogové okno zavřete." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Jak opustit soubor, který používáte." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Zavření souboru" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Když chcete v editoru gedit zavřít soubor, klikněte na tlačítko " +"× na pravé straně ouška karty nebo prostě " +"zmáčkněte CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Libovolná z těchto činností povede k zavření souboru. Pokud soubor obsahuje " +"neuložené změny, gedit se dotáže, ještli chcete před zavřením " +"soubor uložit." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Jak otevřít nový soubor pro úpravy." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Vytvoření nového souboru" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"Nejjednodušším způsobem, jak vytvořit v editoru gedit nový " +"soubor, je kliknout na tlačítko Vytvořit nový dokument na levé " +"straně záhlavní lišty nebo zmáčknout CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Kterýmkoliv z těchto uvedených způsobů vytvoříte nový soubor v okně " +"gedit. Pokud máte již otevřeny jiné soubory, objeví se nový " +"soubor jako nová karta napravo od ostatních karet se soubory." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Jak použít oprávnění správce k úpravám souboru." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Úprava souborů pod uživatelem root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Upravovat soubory jako uživatel root je potenciálně rizikové a může vést k " +"narušení vašeho operačního systému. Proto při takovéto práci dávejte " +"obvzlášť pozor, co děláte." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Pokud potřebujete upravovat soubory jako superuživatel root, spusťte " +"gedit z terminálu zadáním:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Při použití příkazu sudo budete muset před otevřením aplikace " +"gedit zadat správné heslo." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Alternativou k příkazu sudo je získat správcovská oprávnění " +"zadáním:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "Po té byste měli gedit spustit příkazem gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Po otevření se správcovskými oprávněními si je gedit uchová, " +"dokud jej nezavřete." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Výuka základů práce se soubory v editoru gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Základní práce se soubory: otevřít, zavřít a uložit" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Pokud jste v používání editoru gedit nováčci, tato kapitola vás " +"seznámí s vytvářením, ukládáním, otevíráním a zavíráním souborů." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Jak nastavit gedit, aby používal celou obrazovku." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Používání režimu celé obrazovky" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Když pracujete s rozsáhlými dokumenty, může se vám v editoru gedit hodit režim celé obrazovky. Při použití tohoto režimu se skryje " +"nabídková lišta, lišta karet i nástrojová lišta a získáte tak více místa pro svůj text a můžete se lépe zaměřit na " +"vlastní práci." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Zapnutí režimu celé obrazovky" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Režim celé obrazovky zapnete zmáčknutím F11. Nabídky, záhlaví a " +"lišta karet se v aplikaci gedit skryjí a zobrazen bude čistě text " +"z aktuálního souboru." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Pokud se v režimu celé obrazovky potřebujete dostat k nějaké funkci z " +"nabídky gedit, přesuňte ukazatel myši k horní hraně obrazovky. " +"Nabídková lišta se znovu objeví a můžete si vybrat požadovanou položku." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"K přepínání mezi otevřenými kartami v režimu celé obrazovky používejte " +"kombinace kláves CtrlAltPageUp nebo CtrlAltPageDown." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Vypnutí režimu celé obrazovky" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Pro vypnutí režimu celé obrazovky a návrat k běžnému oknu gedit " +"zmáčkněte F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Můžete také přesunout ukazatel myši k horní hraně obrazovky a vyčkat, až se " +"objeví nabídková lišta. Po té zmáčkněte tlačítko Opustit " +"celou obrazovku." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Jak použít postranní panel editoru gedit k procházení souborů." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Zobrazení a otevření souborů z postranního panelu" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Nějběžnějším způsobem přepínání mezi soubory je v editoru gedit " +"používání karet v horní části okna. V některých případech, třeba když " +"pracujete s opravdu velkým množstvím souborů, může být jednodušší cestou " +"použití postranního panelu." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Postranní panel aktivujete tak, že vyberete Zobrazit " +"Postranní panel nebo zmáčknete klávesu F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Jestli má být postranní panel otevřený nebo zavřený, můžete kdykoliv " +"přepnout zmačknutím F9." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Otevírání souborů z postranního panelu" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Abyste mohli z postranního panelu otevřít soubory, nejdříve jej zobrazte " +"pomocí Zobrazit Postranní panel (nebo " +"jen zmáčkněte F9) a pak zvolte Prohlížeč souborů z " +"rozbalovací nabídky v horní části panelu." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Tím se aktivuje režim prohlížeče souborů v postranním panelu. " +"Můžete využít tlačítka v horní části panelu k vyhledání a otevření " +"požadovaných souborů." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Používejte postranní panel k přepínání mezi soubory" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Když máte otevřeno několik souborů, můžete použít postranní panel k " +"přepínání mezi nimi. Pro vypsání souborů zvolte Dokumenty z " +"rozbalovací nabídky v horní části panelu." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Kliknutím na libovolný název souboru v postranním panelu dotyčný soubor " +"otevřete pro úpravy." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Jak otevřít soubory, aby se s nimi mohlo pracovat." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Otevření souboru nebo sady souborů" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Když chcete v editoru gedit otevřít soubor, klikněte na tlačítko " +"Otevřít nebo zmáčkněte CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"To způsobí, že se objeví dialogové okno Otevření. Použijte myš " +"nebo klávesnici k výběru souboru, který si přejete otevřít a klikněte na " +"Otevřít. Soubor, který jste vybrali, se otevře v nové kartě." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Kliknutím na Zrušit dialogové okno Otevření uzavřete, " +"aniž by se soubor otevřel." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Můžete použít klávesy Ctrl a Shift k otevření více " +"souborů naráz. Když držíte během označování více souborů zmáčknutou klávesu " +"Ctrl, otevře se pak kliknutím na Otevřít každý z " +"těchto souborů, který jste označili." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Když během označování více souborů držíte zmáčknutou klávesu Shift, otevře se první vybraný soubor, poslední vybraný soubor a všechny " +"soubory mezi nimi." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Jak se dostat k souborům, které jsou umístěny na jiném počítači." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Otevření souboru umístěného na serveru" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Než se pustíte v editoru gedit do otevření souboru ze serveru, " +"musíte znát o serveru některé technické údaje. Například potřebujete znát IP " +"adresu nebo adresu URL serveru a možná budete potřebovat vědět, o jaký druh " +"serveru se jedná (např. HTTP, FTP apod.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Navíc některé servery uplatňují omezení na to, co se soubory uloženými na " +"serveru můžete dělat. Například můžete soubor otevřít ze serveru, ale " +"provedené změny budete muset uložit na místní disk na svém počítači." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Vezměte v potaz tato upozornění a můžete se pustit do otevření souboru ze " +"serveru v editoru gedit v následujících krocích:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "V záhlavní liště klikněte na Otevřít." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Klikněte na Další umístění." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Zadejte IP adresu nebo URL patřičného serveru." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Najděte a vyberte soubor, který si přejete otevřít." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Použijte rozbalovací seznam Kódování znaků k výběru správného " +"kódování znaků." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Klikněte na Otevřít." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Mezi platné typy adres URI patří http:, ftp:, file:, a všechny metody " +"podporované GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Soubory z některých typů URI se otevírají v pouze pro čtení a pokud chcete " +"uložit změny, musíte tak provést na jiné místo. Například HTTP umožňuje " +"soubory pouze číst. Soubory otevřené z FTP jsou pouze pro čtení kvůli tomu, " +"že ne všechny FTP servery pracují korektně s ukládáním vzdálených souborů." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "" +"Jak se dostat k souborům, které jste již dříve v aplikaci gedit " +"otevřeli." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Opětovné otevření nedávno použitého souboru" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit poskytuje přístup k několika nedávno použitým souborům, " +"které jste dříve otevřeli v aplikaci gedit. Zde je postup, jak " +"můžete nedávno použitý soubor otevřít:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Klikněte na tlačítko se šipkou vedle tlačítka Otevřít na záhlavní " +"liště." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "gedit zobrazí nabídku s nedávno použitými soubory." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Vyberte požadovaný soubor a ten se otevře v nové kartě." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Když najedete myší na nedávno použitý soubor v nabídce, zobrazí se vám ve " +"stavové liště v dolní části okna gedit jeho plný název." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "" +"Jak používat zásuvné moduly k přizpůsobení práce v editoru gedit podle sebe." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Nastavení a používání zásuvných modulů" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"S použitím zásuvných modulů můžete v editoru gedit dělat daleko " +"víc věcí. Několik zásuvných modulů je přítomno už ve výchozím stavu, ale " +"většina je dodávána odděleně." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Hodně linuxových distribucí poskytuje tyto zásuvné moduly dohromady v jednom " +"balíčku s názvem gedit-plugins. Po nainstalování tohoto balíčku " +"budete mít dodatečné zásuvné moduly k dispozici." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Nainstalovat gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Výchozí zásuvné moduly editoru gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Dodatečné zásuvné moduly editoru gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Jak změnit velikost písmen ve vybraném textu." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Změna velikosti písmen" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Tento zásuvný modul vám pomůže měnit velikost písmen ve vybrané části textu. " +"Můžete jej použít ke změně textu na malá písmena, na velká písmena, k " +"přehození malých na velká a velkých na malá nebo k nastavení prvních písmen " +"slov na velká a ostatních na malá. Zásuvný modul povolíte pomocí " +"gedit Předvolby Zásuvné moduly Změnit velikost písmen." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Až máte zásuvný modul Změnit velikosti písmen povolený, můžete jej " +"používat následujícím postupem:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Zvýrazněte část textu, u které chcete změnu provést." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Vyberte gedit Změnit velikost písmen." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Zvolte požadovaný způsob formátování textu." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Změna formátování textu se projeví okamžitě." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Volba Invertovat velikost písmen převede každé malé písmeno na " +"velké a naopak každé velké písmeno na malé." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Volba Začátky slov velkými písmeny převede první písmeno v každém " +"slově na velké. Všechna ostatní písmena budou převedena na malá." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"V případě, že nemáte žádný text zvýrazněn, funkce Změnit velikost " +"písmen bude zašedlá. Abyste mohli tuto funkci použít, musíte nejdříve " +"nějaký text vybrat." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Jak zobrazit statistiku dokumentu." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Statistika dokumentu" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Zásuvný modul Statistika dokumentu zobrazuje různé statistiky o " +"aktuálním dokumentu. Tento modul zapnete pomocí gedit Předvolby Zásuvné moduly Statistika dokumentu." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Používání statistiky dokumentu" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Až máte zásuvný modul povolený, použijte jej pomocí Nástroje Statistika dokumentu. V okně se vám zobrazí " +"statistické údaje o vašem dokumentu, včetně počtu slov, řádků, znaků, " +"nebílých znaků a velikosti souboru v bajtech." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Statistiku dokumentu můžete použít i k zobrazení informací o části " +"dokumentu. Stačí pomocí myši vybrat část textu, kterou chcete prozkoumat a " +"použít Nástroje Statistika dokumentu. " +"gedit zobrazí údaje jak pro celý dokument, tak pro vybranou část " +"textu." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Jak spustit skript vůči aktuálním souborům a jak komunikovat s ostatními " +"aplikacemi." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Externí nástroje" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Zásuvný modul Externí nástroje vám může pomoci zjednodušit často " +"opakované úkony. Konkrétně rozšiřuje schopnosti editoru gedit o " +"spouštění skriptů vůči souborům, se kterými pracujete, a umožňuje interakci " +"mezi aplikací gedit a dalšími aplikacemi. Zásuvný modul " +"Externí nástroje povolíte pomocí gedit Předvolby Zásuvné moduly Externí nástroje." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Nastavení zásuvného modulu Externí nástroje" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Když máte zásuvný modul povolen, musíte jej nastavit, aby vyhovoval vašim " +"potřebám. Nastavení voleb je dostupné přes Nástroje " +"Správa externích nástrojů." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Tento zásuvný modul je určen spíše pro pokročilé uživatele a aby mohl být " +"naplno využíván, vyžaduje znalosti skriptování. Používejte jej obezřetně, " +"protože chyby ve skriptech mohou vést k nechtěným zásahům do vaší práce." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Jak používat postranního panelu k procházení a otevírání souborů." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panel prohlížeče souborů" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"V závislosti na tom, k čemu gedit používáte, se vám může někdy " +"hodit využít Panel prohlížeče souborů. Tento zásuvný modul " +"zabuduje do postranního panelu prohlížeč souborů, který vám " +"poskytne přístup k často používaným souborům." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Zásuvný modul můžete zapnout pomocí gedit " +"Předvolby Zásuvné moduly Panel " +"prohlížeče souborů." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Jak vložit aktuální datum/čas na pozici kurzoru." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Vložit datum/čas" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Jak se dá poznat z názvu Vložit datum/čas, zásuvný modul umožňuje " +"vložení data a/nebo času na aktuální pozici kurzoru." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Abyste povolili zásuvný modul:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Zmáčkněte tlačítko nabídky v pravém horním rohu okna a vyberte Předvolby Zásuvné moduly." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Zaškrtnutím Vložit datum/čas zásuvný modul " +"povolíte." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Když chcete zásuvný modul využít, zmáčkněte tlačítko nabídky v pravém horním " +"rohu okna a vyberte Nástroje Vložit datum a čas…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Standardně se zásuvný modul Vložit datum/čas při každém použití " +"zeptá, jaký chcete zvolit formát data/času. Můžete si ale nastavit svůj " +"výchozí formát tak, že zmáčknete tlačítko nabídky v pravém horním rohou okna " +"a vyberete Předvolby Zásuvné moduly Vložit datum/čas Předvolby." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Jak nainstalovat zásuvné moduly třetích stran." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Dodatečné zásuvné moduly editoru gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Instalací zásuvných modulů třetích stran získáte další funkcionalitu, kterou " +"neposkytují výchozí zásuvné moduly editoru gedit ani rozšiřující " +"zásuvné moduly z balíčku gedit-plugins. Na této adrese je " +"udržován on-line seznam zásuvných modulů třetích stran." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Instalace zásuvného modulu třetí strany sestává ze stažení zásuvného modulu, " +"jeho umístění do správné složky a jeho aktivace." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Zásuvný modul je obvykle možné stáhnout z jeho webových stránek, v některých " +"případech ale budete potřebovat nějaký program pro správu verzí, jako je " +"git, bazaar nebo subversion, abyste z " +"Internetu stáhli kopii repozitáře. Jak přesně zásuvný modul získat, byste " +"měli nalézt v jeho dokumentaci." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Soubory zásuvného modulu umístěte do složky /home/" +"uživatelské_jméno/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Ve výše uvedené cestě samozřejmě nahraďte uživatelské_jméno svým " +"skutečným uživatelským jménem." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Až máte soubory zásuvného modulu umístěny ve správné složce, objeví se " +"dotyčný zásuvný modul v nabídce v předvolbách. Zmáčkněte tlačítko nabídky v " +"pravém horním rohu okna a vyberte Předvolby Zásuvné moduly [název zásuvného modulu]. Tím zásuvný modul povolíte." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Klikněte na Zavřít." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "Jakmile máte zásuvný modul povolen, mělo by být možné jej používat." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Složka .local je standardně skrytá. Abyste si ji, nebo i jiné " +"skryté soubory, zobrazili, vyberte Zobrazit " +"Zobrazovat skryté soubory nebo zmáčkněte " +"Ctrl H." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Pokud se složka .local/share/gedit/plugins/ ve vašem systému " +"nenachází, bude si ji potřebovat vytvořit." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Podpora řádků s režimem ve stylu Emacs, Kate a Vim pro editor gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Řádky s režimem" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Zásuvný modul Řádky s režimem umožňuje editoru gedit " +"analyzovat řádky textu na začátku a na konci souboru a použít u tohoto " +"souboru sadu předvoleb. Zásuvný modul Řádky s režimem podporuje " +"podmnožinu voleb používaných v textových editorech Emacs, " +"Kate a Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Zásuvný modul Řádky s režimem povolíte pomocí gedit Předvolby Zásuvné " +"moduly Řádky s režimem." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Obecné volby Řádků s režimem" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Pomocí řádků s režimem můžete v editoru gedit nastavit " +"následující volby:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Šířka tabulátoru" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Šířka odsazení" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Vkládání mezer místo tabulátorů" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Zalamování textu" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Šířka pravého okraje" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Volby nastavené s použitím řádků s režimem mají přednost před stejnými " +"volbami zadanými v dialogovém okně Předvolby." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Řádky s režimem ve stylu Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"První dva řádky dokumentu se zkoumají na řádky s režimem Emacs. " +"gedit podporuje následující volby řádků s režimem Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "tab-width (šířka tabulátoru)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "indent-offset (šířka odsazení)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "indent-tabs-mode (režim odsazování tabulátory)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "auto-wrap (automatické zalamování)" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Ohledně dalších informací k řádkům s režimem Emacs navštivte " +"Příručku " +"k GNU Emacs (odkazovaný text je v angličtině)." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Řádky s režimem ve stylu Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Prvních pět a posledních pět řádků dokumentu se zkoumá na řádky s režimem " +"Kate. gedit podporuje následující volby řádků s " +"režimem Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width (šířka tabulátoru)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width (šířka odsazení)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent (odsazovat mezerami)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap (zalamovat slova)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column (sloupec pro zalamování slov)" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Ohledně dalších informací k řádkům s režimem Kate navštivte webové stránky Kate (odkazovaný " +"text je v angličtině)." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Řádky s režimem ve stylu Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"První tři a poslední tři řádky dokumentu se zkoumají na řádky s režimem " +"Vim. gedit podporuje následující volby řádků s režimem " +"Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (převádět tabulátory na mezery)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (šířka tabulátoru)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (šířka odsazení)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap (zalamování)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth (šířka textu)" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Ohledně dalších informací k řádkům s režimem Vim navštivte webové stránky Vim (odkazovaný text je " +"v angličtině)." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Jak přidat do spodního panelu interaktivní konzolu jazyka Python." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Konzola Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Do spodního panelu můžete přidat konzolu jazyka Python, abyste mohli " +"testovat skripty Python, aniž byste museli opustit gedit. Konzolu " +"Pythonu povolite pomocí gedit Předvolby Zásuvné moduly Konzola Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Když je konzola Python povolená, můžete ji otevřít přes " +"Zobrazit Spodní panel." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Pokud máte zároveň povolený zásuvný modul Vestavěný terminál, " +"objeví se Konzola Python na spodním panelu v podobě karty." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Jak rychle otevřít soubor nebo sadu souborů." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Rychle otevřít" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Jak napovídá název tohoto zásuvného modulu Rychle otevřít, pomáhá " +"otevírat soubory rychlejším způsobem, než se soubory běžně otevírají. " +"Povolíte jej pomocí gedit Předvolby Zásuvné moduly Rychle otevřít." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Až máte zásuvný modul Rychle otevřít povolen, můžete jej použít " +"následovně:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Otevřete dialogové okno Rychlé otevření zmáčknutím " +"Ctrl Alt O nebo pomocí " +"Rychle otevřít…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Objeví se dialogové okno Rychlé otevření." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Použijte myš k výběru souboru či souborů, které chcete otevřít." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Jestli chcete vybrat několik jednotlivých souborů, držte během klikání na ně " +"zmáčknutou klávesu Ctrl." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Pokud chcete vybrat skupinu souborů, klikněte na první soubor, který chcete " +"otevřít, a pak držte zmáčknutý Shift a klikněte na poslední " +"soubor, který chcete otevřít." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Rychlé otevření bude hledat soubory v:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Složce aktuálního otevřeného dokumentu" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"Kořenové složce zásuvného modulu Panel prolížeče souborů" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Nedávných dokumentech, které jsou známé také jako složka Nedávné v aplikaci Soubory" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "" +"Složkách, pro které máte v aplikaci Soubory vytvořeny záložky" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Vaší složce Plocha" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Vaší Domovské složce" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Rychlé otevření zobrazuje soubory z těchto umístění bez ohledu na " +"to, jestli jste je už dříve měly otevřeny nebo ne." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Jak použít úryvky k rychlému vkládání často používaných částí textu." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Úryvky" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Úryvky poskytují pohodlný způsob, jak vkládat opakující se části " +"kódu do vašeho souboru. Například úryvek HTML pro značku <img> by vložil otevírací a zavírací část značky, včetně vyhrazeného místa, " +"do kterého jen dopíšete atributy obrázku. Díky tomu můžete psát kód " +"jednodušeji a rychleji." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Povolení zásuvného modulu Úryvky" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Jestli chcete zásuvný modul Úryvky povolit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Vyberte gedit Předvolby Zásuvné moduly." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Zaškrtnutím Úryvky zásuvný modul povolíte." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Procházení úryvků" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Když chcete procházet dostupné úryvky:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Vyberte Nástroje Správa úryvků." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Ujistěte se, že je nastavená správná syntax. Statová lišta u spodní části " +"okna gedit zobrazuje aktuálně nastavený jazyk. Toto nastavení " +"jazyku zajišťuje, že gedit bude vkládat správné úryvky. Normálně gedit sám rozpozná jazyk nebo syntax souboru, který používáte, ale občas je " +"potřeba jej nastavit ručně." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "V tomto příkladu je jazyk nastaven na HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Procházejte si úryvky, které jsou dostupné pro zvolený jazyk či syntax." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Používání úryvků" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Když chcete do svého aktuálního dokumentu vložit úryvek:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Napište kdekoliv v aktuálním dokumentu název úryvku." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Zmáčknutím klávesy Tab vložíte úryvek spřažený ze zadaným názvem." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Příklad použití úryvku" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Napřiklad mějme syntax nastavenu na HTML, napište head " +"a zmáčkněte klávesu Tab. Text by se měl automaticky přeměnit na " +"úryvek:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Název stránky</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Přidání úryvku" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Můžete přidávat úryvky, které budou fungovat globálně (tj. nezávislé na " +"jazyku) nebo které budou jen pro konkrétní syntax." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Vyberte Nástroje Správa úryvků." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"V postranním panelu Správa úryvků vyberte požadovanou syntax a " +"klikněte na tlačítko „+“, aby se pro zvolenou syntax vypsaly stávající " +"úryvky." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Abyste přidali úryvek, který funguje globálně (tj. když není pro dokument " +"nastavena žádná konkrétní syntax nebo jazyk), vyberte v postranním panelu " +"Správa úravků skupinu Globální." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Nový úryvek přidáte kliknutím na ikonu „plus“ v postranním panelu " +"Správa úryvků." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Zadejte název pro nový úryvek. Název úryvku se může od úryvku, který chcete " +"přidat, lišit." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"V části Aktivace musíte zadat výraz do pole Tabulátorový spouštěč. Tento výraz budete používat k " +"zadávání úryvku." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Pokud si přejete úryvek vkládat klávesovou zkratkou, klikněte myší do pole " +"Klávesová zkratka a zmáčkněte požadovanou " +"kombinaci kláves. Po té, co klávesy zmáčkněte a pustíte, bude klávesová " +"zkratka nastavena." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Do textové oblasti Upravit: vložte požadovaný " +"text úryvku. Můžete použít proměnné ve stylu ${n}, kde n nahraďte číslem, které představuje pořadí, v jakém se budou proměnné " +"zadávat." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Příklad nového úryvku" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Předpokládejme, že máte vytvořen úryvek s výrazem uvítání v Tabulátorovém spouštěči:. Textová oblast Upravit: obsahuje:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>\n" +" Ahoj ${1:naprosto} ${2:úžasný} světe!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Tento úryvek můžete vložit tak, že v dokumentu napíšete uvítání a " +"zmáčknete klávesu Tab. Vloží se následující text:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>\n" +" Ahoj naprosto úžasný světe!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Slova „naprosto“ a „úžasný“ můžete podle momentální potřeby ponechat nebo " +"smazat. Uděláte to tak, že se mezi těmito slovy přepnete klávesou Tab a případně je pomocí klávesy Del smažete." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Jak seřadit řádky textu v abecedním pořadí." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Řadit" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Zásuvný modul Řadit uspořádává vybrané řádky textu v abecedním " +"pořadí." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Povolení zásuvného modul Řadit" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Abyste povolili zásuvný modul Řadit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Zaškrtnutím Řadit zásuvný modul povolíte." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Používání zásuvného modulu Řadit" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Když chcete zásuvný modul Řadit použít:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Vyberte požadované řádky textu." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Vyberte Nástroje Seřadit…" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Otevře se dialogové okno Řadit, ve kterém si můžete navolit, jak " +"se má seřazení provést:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "Obrácené pořadí seřadí text v obráceném abecedním pořadí." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "Odstranit duplikáty odstraní ze seznamu duplicitní hodnoty." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Ignorovat velikost písmen bude ignorovat rozdíly ve velikosti " +"písmen." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Aby se při řazení ignorovaly znaky na začátku řádku, nastavte první znak, " +"který se použije pro řazení, v číselném poli Začít ve sloupci." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Operaci seřazení spustíte kliknutím na Seřadit." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Jak nastavit stránky, aby se tisky v zadaném pořadí." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Získání kopií vytisknutých ve správném pořadí" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Obrátit" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Tiskárny obvykle tisknou první stránku jako první a poslední jako poslední, " +"takže stránky ve výstupním zásobníku končí v opačném pořadí, než byste " +"chtěli. Tohle pořadí ale můžete změnit:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Vyberte Soubor Tisk." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Na kartě Obecné v dialogovém okně Tisk v části Kopie zaškrtněte Obrátit." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Poslední stránka se vytiskne jako první atd." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Setřídit" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Pokud tisknete více kopií dokumentu, budou standardně na výstupu stránky " +"seskupeny podle čísel. (Tj. nejdříve vyjedou všechny stránky jedna, pak " +"všechny stránky dva atd.) Setříděním získáte seskupené jednotlivé sady " +"dokumentu." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Setřídění se provede následovně:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Klikněte na Soubor Tisk." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Na kartě Obecné v dialogovém okně Tisk v části Kopie zaškrtněte Setřídit." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Jak vytisknout soubory, které jste v editoru gedit vytvořili." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Tisk dokumentů" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Abyste mohli z aplikace gedit tisknout, musíte mít připojenou a " +"nastavenou tiskárnu. Pokud tomu tak doposud není, můžete najít příslušné " +"rady v nápovědě k tisku v GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit umožňuje tisknout jak do souboru, tak na papír." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Náhled tisku" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Než svůj dokument vytisknete, můžete si pomocí Náhled tisku " +"prohlédnout, jak bude vytisklý dokument vypadat. Pro zobrazení náhledu:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Vyberte Soubor Náhled tisku. Případně můžete zmáčknout Ctrl Shift P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Náhled dokumentu se otevře v té samé kartě, jako soubor. Náhled si můžete " +"procházet pomocí navigačních tlačítek a nástrojů na nástrojové liště v horní " +"části karty s náhledem. Pro zavření náhledu a návrat do dokumentu klikněte " +"na Zavřít náhled." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Tisk na papír" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Svůj dokument můžete vytisknout na tiskárně, jak místní, tak vzdálené. " +"Postupujte následovně:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Vyberte Soubor Tisk Obecné." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Ze seznamu dostupných tiskáren vyberte požadovanou tiskárnu." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Můžete si nechat zobrazit náhled souboru pomocí Náhled " +"tisku a teprve, až jej shledáte uspokojivým, klikněte na Tisk, aby se odeslal do tiskárny." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Navíc můžete na kartě Nastavení stránky upravit " +"volby Rozvržení a Papír. Protože tyhle volby se obecně týkají všech programů v GNOME, podívejte se do nápovědy Volby Rozvržení a Papír." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Tisk více kopií a určeného rozsahu stránek" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Může se vám hodit možnost nastavení voleb Rozsah " +"a Kope:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Tisk do souboru" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"gedit můžete použít také k tisku do souboru. Abyste vytiskli svůj " +"dokument do souboru v některém z formátů:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Vyberte Soubor Tisk Tisk do souboru." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Při tisku do souboru máte na výběr z následujících formátů:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Kliknutím na Tisk dokument vytisknete do souboru." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Jak vybrat stránky, které chcete tisknout." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Tisk jen konkrétních stránek" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Z dokumentu můžete vytisknout jen konkrétní vybrané stránky. Například, když " +"zadáte čísla stránek „1,3,5-7,9“, vytisknou se jen stránky 1, 3, 5, 6, 7 a " +"9. Aby se vytiskly jen zvolené stránky:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Vyberte Soubor Tisk…" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Na kartě Obecné v dialogovém okně Tisk vyberte v " +"části Rozsah volbu Stránky." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Napište čísla stránek, které z dokumentu chcete vytisknout. K oddělování " +"použijte čárky, k určení rozsahu použijte pomlčku." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Stručný úvod do editoru gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Začínáme s editorem gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit je textový editor pro pracovní prostředí GNOME oplývající " +"všemi potřebnými funkcemi. Můžete jej používat k přípravě jednoduchých " +"poznámek a dokumentů nebo můžete využít jeho pokročilých funkcí a udělat si " +"z něj vlastní vývojářské prostředí." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Jakmile gedit spustíte, můžete začít psát. Napsaný text uložíte " +"prostým kliknutím na tlačítko Uložit v záhlavní liště okna " +"gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Vysvětlení dalších funkcí a pomoc s prováděním pokročilejších úloh " +"vyhledejte v dalších částech nápovědy k aplikaci " +"gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Jak nahradit části textu v souboru." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Nahrazování textu" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Úpravy textu můžou někdy zabrat hodně času. Abyste jej ušetřili, nabízí " +"gedit funkci Nahradit, která vám pomůže najít a " +"nahradit části textu." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Náhrada textu v editoru gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Otevřete nástroj Nahradit kliknutím na Tlačítko s nabídkou Hledat a nahradit… nebo zmáčknutím Ctrl H." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Řetězec, který chcete nahradit, zadejte do pole Najít." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Nový řetězec, kterým chcete nahrazovat ten nalezený, zadejte do pole " +"Nahradit za." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Až máte zadán původní a nový text, můžete upravit další parametry hledání. " +"Můžete si také zvolit, co všechno chcete nahradit:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Jestliže chcete nahradit pouze následující výskyt hledaného " +"řetězce, tak klikněte na Nahradit." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Jestliže chcete nahradit úplně všechny výskyty hledaného řetězce, " +"tak klikněte na Nahradit vše." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Funkci Nahradit vše používejte obezřetně. Pracuje totiž s úplně " +"celým textovým souborem a neumožňuje vybrat jen část textu, kde byste chtěli " +"nahrazení provést." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Další volby" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Když si budete přát, můžete upravit některé další parametry hledání:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Rozlišovat velikost písmen" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Volba Rozlišovat velikost písmen umožňuje určit, jestli chcete, aby " +"se při hledání bral ohled na velikost písmen. Když je tato volba vybrána, " +"bude mít velikost písmen vliv na shodu při hledání. Když vybrána není, budou " +"vyhovovat hledání i slova lišící se velikostí písmen." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Hledat pouze celá slova" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Tuto volbu použijte, když chcete vyhledat slova bez předpon a přípon. " +"Například, když budete chtít vyhledat slovo „pan“ a zaškrtnete tuto volbu, " +"vyhledá se opravdu jen „pan“ a ne třeba „panda“ nebo „kopaná“." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Hledat směrem k začátku" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Tato volba v podstatě odpovídá příkazu Najít předchozí. Vyberte ji, pokud " +"chcete při hledání postupovat směrem od konce k začátku." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Přecházet přes okraj" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"S vybranou volbou Přecházet přes okraj bude gedit při " +"hledání/nahrazování pokračovat od začátku souboru po té, co narazí na jeho " +"konec. Tím máte zaručeno, že při hledání/nahrazování projdete opravdu celý " +"soubor." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Používání řídících sekvencí" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Můžete používat řídící sekvece (tzv. sekvence escape) pro hledání " +"zalomení řádků všech typů a tabulátorů." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nový řádek (NL)" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Na začátek řádku (CR)" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabulátor" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Pokud chcete hledat \\ (zpětné lomítko) nebo nějakou řídící " +"sekvenci uvedenou v textu, musíte jim předřadit další zpětné lomítko. " +"Například, když chcete vyhledat \\, musíte do polí, co hledat " +"nebo čím nahradit, uvést \\\\. Obdobně, když chcete vyhledat " +"v textu popsanou řídící sekvenci \\n, použijte výraz \\" +"\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Jak uložit soubor, na kterém budete pracovat později." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Ukládání souboru" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Když chcete v editoru gedit uložit soubor, klikněte na tlačítko " +"Uložit na pravé straně záhlavní lišty nebo jen " +"zmáčkněte Ctrl S." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Pokud ukládáte nový soubor, objeví se dialogové okno, ve kterém si můžete " +"zvolit název souboru a složku, do které se má uložit." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Jak v souboru najít část textu." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Hledání textu" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Nástroj hledání vám pomůže najít konkrétní úsek textu v rámci textu vašeho " +"souboru." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Vyhledání textu" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Otevřete okno hledání kliknutím na Tlačítko s nabídkou Hledat… " +"nebo zmáčkněte CtrlF. Kurzor se " +"přemístí na začátek pole v okně hledání." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Napište do okna hledání text, který si přejete najít." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"gedit bude průběžně během psaní zvýrazňovat části textu, které " +"odpovídají tomu zadanému." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "Pro pohyb ve výsledcích hledání použijte něco z následujícího:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Klikněte na tlačítka nahoru nebo dolů v podobě šipek vedle vyhledávacího pole." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "Zmáčkněte na klávesnici klávesu nebo ." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Zmáčkněte Ctrl G nebo " +"Ctrl Shift G." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Okno hledání můžete zavřít zmáčknutím Esc nebo " +"Enter. Zmáčknutí Esc vrátí kurzor na místo, kde byl " +"před započetím hledání. Zmáčknutí Enter vrátí kurzor na místo " +"nalezeného výsledku." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Rady k vyhledávání" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Pokud část textu zvýrazníte myší a zmáčknete Ctrl F, zvýrazněný text se objeví předepsaný v okně hledání." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Kliknutím na ikonu lupy v okně hledání nebo " +"kliknutím pravým tlačítkem kdekoliv v okně hledání se dostanete k dalším " +"volbám. Vybrat si můžete z jedné nebo více následujících voleb hledání:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Vyberte Rozlišovat velikost písmen, aby se při hledání bral ohled " +"na velikost písmen." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Vyberte Hledat pouze celá slova, aby se hledala je úplná slova." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Vyberte Přecházet přes okraj, aby se v hledání pokračovalo znovu " +"od začátku dokumentu, až se narazí na jeho konec." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Text, který jste vyhledali, zůstane zvýrazněný, i po dokončení hledání. " +"Pokud budete chtít zvýraznění odstranit, klikněte na Zrušit zvýrazňování nebo zmáčkněte Ctrl " +"Shift K." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Jak v souborech zkontrolovat pravopisné chyby." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Kontrola pravopisu ve vašich dokumentech" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Povolení kontroly pravopisu" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Funkce kontroly pravopisu je v editoru gedit poskytována v podobě " +"zásuvného modulu, který může být povolen podle potřeby. Povolit jej lze " +"následovně:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Zaškrtnutím Kontrola pravopisu zásuvný modul " +"povolíte." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "" +"Jak zkontrolovat, jestli nejsou v dokumentu pravopisně nesprávná slova:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Vyberte Nástroje Zkontrolovat pravopis." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Aby gedit v dokumentu automaticky průběžně označoval pravopisně " +"nesprávná slova, vyberte Nástroje Zvýrazňovat pravopisné chyby." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Používání kontroly pravopisu" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"V dialogovém okně kontroly pravopisu můžete chybné slovo nechat nahradit " +"jeho správnou alternativou. Odhalené chybné slovo je zobrazeno tučně vedle " +"Chybné slovo:. Při opravě můžete použít následující postupy:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Do pole Změnit na: můžete zadat nové slovo a " +"pomocí Zkontrolovat slovo ověřit, jestli jste ho " +"zadali správně." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"V seznamu Návrhy: jsou uvedeny dostupné náhrady za " +"chybné slovo." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Pomocí Ignorovat můžete přeskočit kontrolu " +"tohoto výskytu aktuálního slova." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Pomocí Ignorovat vše můžete přeskočit kontrolu " +"všech výskytů aktuálního slova." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Pomocí Změnit můžete tento výskyt " +"chybného nebo nerozpoznaného slova nahradit některým slovem v seznamu Návrhy:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Pomocí Změnit vše můžete nahradit všechny výskyty chybného nebo nerozpoznaného slova některým slovem ze seznamu " +"Návrhy:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Přidat slovo umožňuje přidat aktuální slovo do " +"Uživatelského slovníku aplikace gedit. Díky tomu, že " +"slovo přidáte do Uživatelského slovníku, gedit jej " +"napříště rozpozná a nebude jej označovat jako chybné." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Určení jazyka použitého při kontrolu pravopisu" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Ve výchozím stavu používá gedit ke kontrole pravopisu v dokumentu " +"váš aktuální jazyk. Pokud potřebujete použít jiný jazyk, zvolte Nástroje Natavit jazyk… a vyberte si požadovaný jazyk." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Slovníky" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit používá Enchant, což je drobná systémová pomůcka pro kontrolu " +"pravopisu. Enchant umí využít ke kontrole různé slovníky. Dvěma z nich jsou " +"Hunspell a Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Jestliže jazyk, který chcete používat, není pro gedit dostupný, " +"použijte instalátor softwaru nebo správce balíčků k instalaci potřebné " +"podpory slovníků." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Jak zvýraznit svůj text, aby se lépe četl." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Zapnutí zvýrazňování syntaxe" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Zvýrazňování syntaxe" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit poskytuje zvýrazňování syntaxe pro široké spektrum " +"značkovacích, programovacích a vědeckých jazyků. Pokud gedit při " +"otevíraní souboru rozpozná jeho syntaxi, bude text zvýrazňovat automaticky." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"V případě, že syntaxe nebo jazyk není po spuštění zvýrazňována, můžete " +"vybrat správnou syntax nebo jazyk kliknutím na Zobrazit Režim zvýrazňování " +"a zvolit požadovanou syntax. Další možností je vybat název syntexe ze " +"seznamu na spodní liště okna gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Jak seskupit podobné karty dohromady." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Uspořádávání souborů do skupinových karet" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Když v editoru gedit pracujete s více kartami, můžete si je " +"seskupovat, abyste v otevřených souborech měli lepší přehled. Přidáním nové " +"skupiny karet se okno gedit rozdělí na dva panely, otevře se nový " +"„Nepojmenovaný dokument“ v novém panelu a zaměří se. Nyní můžete otevírat " +"soubory do této skupiny karet a přesouvat karty z jedné skupiny do druhé." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Otevření nové skupiny karet v okně gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Když chcete otevřít novou skupinu karet:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Klikněte pravým tlačítkem na kartu a vyberte Přesunout do nové skupiny " +"karet." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Použijte klávesovou zkratku CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Tím se okno gedit rozdělí na dva panely a panel s novou skupinou " +"karet bude umístěn na pravo. Pomocí úchytu na oddělovací čáře mezi panely " +"můžete měnit vzájemnou velikost panelů podle svých potřeb." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Skupin karet si můžete v okně gedit otevřít, kolik vám obrazovka " +"dovolí, ale budete si muset upravit jejich rozměry, aby se daly používat." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Aby se zavřela skupina karet, stačí pozavírat všechny karty, které obsahuje." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Přesun karty do jiné skupiny karet" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Když chcete přesunout kartu z jedné skupiny karet do jiné:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Klikněte tlačítkem myši na kartě a držte jej zmáčknuté." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Přetáhněte kartu do jiného panelu skupiny karet." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Umístěte ji mezi ostatní karty ve skupině." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Uvolněte tlačítko myši." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Jak změnit pořadí karet v okně gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Přesun a uspořádávání karet" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Karty je možné v editoru gedit přesouvat, abyste si usnadnili " +"práci se soubory. Můžete měnit jejich pořadí v rámci stejného okna, " +"přesunout je mimo (vytvoří se nové okno gedit) a nebo je " +"přesunout z jednoho okna do druhého." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Změna pořadí karet v okně gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Pro změnu pořadí karet v okně:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Přesuňte kartu na požadované místo mezi ostatními kartami." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Karta se umístí na nejbližší místo, kde jste ji upustili, hned vedle " +"ostatních otevřených karet." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Přesun karty, vytvoření nového okna" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Pro vytvoření nového okna ze stávající karty:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Přetáhněte kartu mimo okno gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Pokud chcete kartu přesunout, když je gedit maximalizovaný, " +"přetáhněte ji na horní lištu v horní části obrazovky." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Přesun karty do jiného okna gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Když chcete přesunout kartu z jednoho okna do druhého:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Táhněte kartu do nového okna." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Upusťte ji mezi ostatní karty v novém okně." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Někdy může být jednodušším řešením, jak přetáhnout kartu z jednoho okna do " +"druhého, to, že ji táhnete na Činnosti v citlivém rohu GNOME " +"Shell. Tím se ukáží všechna otevřená okna gedit. Pak ji " +"můžete upustit na tom požadovaném." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Jak vytvořit nebo zavřít karty v okně gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Přidávání a odebírání karet" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Práce s kartami v aplikaci gedit umožňuje mít v jednom okně na " +"očích několik souborů." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Přidávání karet" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Když chcete přidat novou kartu, která vytvoří nový soubor, klikněte na " +"tlačítko Vytvořit nový dokument na levé straně záhlavní lišty, " +"nebo zmáčkněte Ctrl T. Karta se přidá " +"vpravo za ostatní karty." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Odebírání karet" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Když chcete kartu odstranit, klikněte na × na " +"pravé straně karty, nebo zmáčkněte kombinaci kláves CtrlW. Pokud chcete odstranit všechny otevřené karty, " +"zmáčkněte kombinaci CtrlShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Jak vrátit zpět poslední změny v některém z vašich souborů." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Vracenía opětovné provádění nedávných úkonů" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Když se při úpravách dokumentu v aplikaci gedit spletete, můžete " +"změny vrátit zpět zmáčknutím Ctrl Z." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Pokud soubor v aplikaci gedit zavřete, už v něm dál nemůžete " +"změny vracet zpět." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Když chcete znovu provést změnu, kterou jste vrátili zpět, zmáčkněte " +"CtrlShift Z" + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Textový editor gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Textový editor gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Domovská stránka uživatelské příručky k aplikaci gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Textový editor gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Vítejte v příručce k editoru gedit. Pro začátek doporučujeme " +"stručný úvod do základních funkcí aplikace gedit, který najdete " +"najdete na stránce Začínáme s editorem " +"gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Ostatní témata nápovědy jsou seskupena do oddílů uvedených níže. Užívejte si " +"gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Práce se soubory" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Nastavení editoru gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Zásuvné moduly editoru gedit" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Tisk v editoru gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Tento dokument je licencován pod <_:link-1/>" diff --git a/help/da/da.po b/help/da/da.po new file mode 100644 index 0000000..abf8ec1 --- /dev/null +++ b/help/da/da.po @@ -0,0 +1,4529 @@ +# Danish translation of gedit. +# M.P. Rommedahl , 2008. +# Ask Hjorth Larsen , 2008, 09. +# scootergrisen, 2020. +# +# Husk at tilføje dig i credit-listen +# (besked id "translator-credits") +# +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2019-09-17 11:18+0000\n" +"PO-Revision-Date: 2020-03-09 00:00+0200\n" +"Last-Translator: scootergrisen\n" +"Language-Team: Danish \n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +#| msgid "translator-credits" +msgctxt "_" +msgid "translator-credits" +msgstr "" +"M.P. Rommedahl , 2008\n" +"Ask Hjorth Larsen , 2008\n" +"scootergrisen <>, 2020\n" +"\n" +"Dansk-gruppen\n" +"Websted http://dansk-gruppen.dk\n" +"E-mail " + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Ændr tekst- og baggrundsfarverne i gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:11 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:14 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +#| msgid "Blue based color scheme." +msgid "Change the color scheme" +msgstr "Ændr farvetemaet" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit inkluderer flere forskellige farvetemaer, så du kan ændre " +"udseendet på hovedtekstvinduet." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +#| msgid "Color scheme using the Tango color scheme." +msgid "To change the color scheme:" +msgstr "Sådan ændres farvetemaet:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Tryk på menuknappen i øverste højre hjørne af vinduet og vælg IndstillingerSkrifttyper og " +"farver." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +#| msgid "Blue based color scheme." +msgid "Choose your desired color scheme." +msgstr "Vælg dit ønskede farvetema." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Det nye farvetema anvendes straks." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +#| msgid "Color Scheme" +msgid "Use a Custom Color Scheme" +msgstr "Brug et tilpasset farvetema" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Du kan også bruge farvetemaer som andre har oprettet eller oprette og bruge " +"dine egne farvetemaer." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instruktioner til at installere tilpassede farvetemaer samt eksempler på " +"farvetemaer som du kan downloade og bruge findes i gedit " +"wiki." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Brug en tilpasset skrifttype til din tekst i gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Ændr standardskrifttypen" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit bruger som standard systemets skrifttype med fast bredde, " +"men du kan ændre den skrifttype, som gedit bruger som standard, til " +"det du ønsker." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Sådan skiftes standardskrifttypen i gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +#| msgid "" +#| "Choose EditPreferences." +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Vælg gedit Indstillinger Skrifttyper og " +"farver." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Fravælg boksen ved siden af sætningen “Brug systemets skrifttype med fast " +"bredde”." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Klik på den nuværende skrifttypes navn. gedit åbner et " +"skrifttypevælgervindue, hvor du kan se de tilgængelige skrifttyper og vælge " +"den, du ønsker." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Når du har valgt en ny skrifttype, så brug skyderen under listen " +"over skrifttyper for at indstille standardskrifttypen." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Klik på Vælg og klik så på Luk." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +#| msgid "Print the file to a printer." +msgid "Exit from the file you are using." +msgstr "Forlad den fil du bruger." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +#| msgid "Close tab." +msgid "Close a file" +msgstr "Luk en fil" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears on the right-" +"side of the file's tab, or press Ctrl W." +msgstr "" +"For at lukke en fil i gedit vælges Luk. Du kan også klikke på det lille “X” i højre side " +"af filens faneblad, eller trykke på Ctrl " +"W." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:24 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Hver handling lukker en fil i gedit. Hvis din fil indeholder " +"ændringer som ikke er blevet gemt, så spørger gedit om du vil " +"gemme ændringerne inden filen lukkes." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Åbn en ny fil til redigering." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +#| msgid "Create a new document." +msgid "Create a new file" +msgstr "Opret en ny fil" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"Den letteste måde at oprette en fil i gedit er ved at klikke på " +"knappen Opret et nyt dokument i venstre side af værktøjslinjen " +"eller trykke på CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Hver handling opretter en ny fil i gedit-vinduet. Hvis du har " +"andre åbne filer i gedit, så vises den nye fil du opretter som et " +"nyt faneblad til højre for de andre filer." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Brug administrative rettigheder til at redigere en fil." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Redigér en fil som root-brugeren" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Redigering af filer som root-brugeren er potentielt farligt og kan " +"ødelægge dit system. Vær meget forsigtig når du redigerer filer som root-" +"brugeren." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"For at redigere filer som root-brugeren startes gedit fra " +"terminalen ved at skrive:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +#| msgid "gedit" +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Med kommandoen sudo skal du først indtaste din adgangskode før " +"gedit kan åbnes." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Som et alternativ til kommandoen sudo kan du indhente " +"administrative rettigheder ved at skrive:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "Start så gedit med kommandoen gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Når du har åbnet gedit med administrative rettigheder, så " +"beholder gedit rettighederne, indtil du lukke den." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Lær grundlæggende arbejde med filer i gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Grundlæggende filhandlinger: Åbn, luk og gem filer" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Hvis gedit er nyt for dig, så hjælper disse emner dig med at oprette, " +"gemme, åbne og lukke filer." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Indstil gedit til at bruge hele skærmen." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Brug fuldskærmstilstand" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Når du arbejder med et stort dokument, så kan det være nyttigt at bruge " +"gedits fuldskærmstilstand. Når fuldskærmstilstand bruges, så skjules " +"menulinjen, fanebladslinjen og " +"værktøjslinjen, så du kan se mere af din tekst og bedre kan " +"fokusere på dine opgaver." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Aktivér fuldskærmstilstand" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Aktivér fuldskærmstilstand ved at trykke på F11. " +"gedits menu-, titel- og fanebladslinjen skjules, og du kan kun se " +"teksten i din nuværende fil." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Hvis du har brug for at udføre en handling fra gedit-menuen mens, " +"du arbejder i fuldskærmstilstand, så flyt din musemarkør øverst på skærmen. " +"gedit-menulinjen vises, og du kan vælge den handling, du ønsker." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Skift mellem åbne faneblade i fuldskærmstilstand ved at trykke på enten " +"CtrlAltPgUp eller " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Deaktivér fuldskærmstilstand" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Deaktivér fuldskærmstilstand og vend tilbage til standard " +"gedit-vinduet ved at trykke på F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Du kan også flytte din musemarkør øverst på skærmen og vente på at " +"menulinjen vises. Når menulinjen vises, så vælg " +"knappen Forlad fuldskærmstilstand." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Brug gedits siderude som en filvælger." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Vis og åbn filer fra sidepanelet" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Den mest almindelige måde til at skifte mellem filer i gedit er " +"ved at bruge fanebladene øverst i gedit-vinduet. Nogle gange kan " +"det dog være lettere at bruge sidepanelet, specielt hvis du arbejder med et " +"stort antal åbne filer." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Aktivér sidepanelet ved at vælge Vis " +"Sidepanel eller tryk blot på F9-tasten." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Du kan skifte mellem at åbne/lukke sidepanelet ved, når som helst, at trykke " +"på F9." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +#| msgid "Opening a File from a URI" +msgid "Opening files from the side panel" +msgstr "Åbn filer fra sidepanelet" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Åbn filer fra sidepanelet ved først at åbne sidepanelet og derefter vælge " +"Vis Sidepanel (eller blot trykke på " +"F9), og så vælge Filvælger fra rullegardinet øverst i " +"panelet." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Det aktiverer Filvælger-tilstanden i sidepanelet. Herefter kan du " +"bruge navigationsknapperne øverst i panelet til at finde og åbne de filer du " +"ønsker." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Brug sidepanelet til at skifte mellem åbne filer" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Når du har flere filer åbne, så kan du bruge sidepanelet til at skifte " +"mellem åbne filer. Vis åbne filer ved at vælge Dokumenter fra " +"rullegardinet øverst i panelet." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "Når der klikkes på et filnavn i sidepanelet, så åbnes filen til redigering." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Åbn filer for at arbejde på dem." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Åbn en fil eller et sæt filer" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Åbn en fil i gedit ved at klikke på knappen Åbn eller " +"tryk på CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Det viser dialogen Åbn. Brug din mus eller dit tastatur til at vælge " +"den fil, du vil åbne, og klik på Åbn. Den valgte fil, åbnes i " +"et nyt faneblad." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +#| msgid "" +#| "To close the Check Spelling dialog, click " +#| "Close." +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Luk dialogen Åbn uden at åbne en fil ved at klikke på " +"Annuller." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Du kan bruge Ctrl- og Skift-tasterne til at åbne mere " +"end en fil ad gangen. Hvis du holder Ctrl-tasten nede, mens du " +"vælger flere filer, så vil klik på Åbn åbne alle de valgte filer." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Hvis Skift holdes nede mens du vælger flere filer, så åbnes den " +"først fil du vælger, den sidste fil du vælger, og alle de mellemliggende " +"filer." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Tilgå filer som er gemt på en anden computer." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Åbn en fil som findes på en server" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Inden du åbner en fil på en server i gedit, skal du have kendskab " +"til nogle tekniske informationer om serveren. Du skal f.eks. kende serverens " +"IP-adresse eller URL, og det kan være, du skal vide, hvilken slags server det " +"er (f.eks. HTTP, FTP osv.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Nogle type servere anvender desuden begrænsninger på, hvad du kan gøre med de " +"filer, som er gemt på serveren. F.eks. kan det være, du er i stand til at åbne " +"en fil fra en server, men det kan være, du skal gemmes ændringer til filen " +"lokalt på din egen computer." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Med disse forbehold i tankerne udføres følgende trin for at åbne en fil fra " +"en server med gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "I titellinjen klikkes på Åbn." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +#| msgid "Click Open." +msgid "Click Other Documents…." +msgstr "Klik på Andre dokumenter …." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Press CtrlL in the Open " +"dialog." +msgstr "" +"Tryk på CtrlL i " +"dialogen Åbn." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Indtast IP-adressen eller URL'en til den rette server." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +#| msgid "Enter the URI of the file that you want to open." +msgid "Find and select the file that you wish to open." +msgstr "Find og vælg den fil som du vil åbne." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +#| msgid "" +#| "Use the Character coding drop-down list to select " +#| "the appropriate character coding." +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "Brug rullemenuen Tegnkodning til at vælge den korrekte tegnkodning." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:44 +#| msgid "Click Open." +msgid "Click Open." +msgstr "Klik på Åbn." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +#| msgid "" +#| "Valid types of URI include http:, ftp:, file:, and all of " +#| "the methods supported by gnome-vfs." +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Gyldige URI-typer omfatter http:, ftp:, file: samt alle metoder som " +"understøttes af gvfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +#| msgid "" +#| "Files from some types of URI are opened as read-only, and any changes you " +#| "make must be saved to a different location. HTTP only allows files to be " +#| "read. Files opened from FTP are read-only because because not all FTP " +#| "servers may correctly work with saving remote files." +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Filer fra visse URI-typer åbnes som skrivebeskyttede, og alle ændringer du " +"foretager skal gemmes i en anden placering. F.eks. tillader HTTP kun at læse " +"filer. Filer åbnet fra FTP kan også kun læses, fordi ikke alle FTP-servere " +"kan gemme fjernfiler." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Tilgå filer som du har opdateret for nyligt." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:17 +msgid "Reopen a recently-used file" +msgstr "Genåbn en fil som har været åbnet for nyligt" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:19 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"Som standard giver gedit let adgang til de fem senest brugte " +"filer. Sådan kan du åbne en fil, som har været åbnet for nyligt:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:22 +#| msgid "Click Open." +msgid "Click the Open button." +msgstr "Klik på knappen Åbn." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "gedit viser en liste over de fem filer som sidst var åbne." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:25 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Vælg den ønskede fil og den åbnes i et nyt faneblad." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:28 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"For at justere antallet af filer, som har været åbnet for nyligt, som gedit " +"viser, kan det være nødvendigt at bruge programmet dconf-editor." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:32 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Start dconf-editor og vælg org " +"gnomegeditpreferencesui max-recents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:35 +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Dobbeltklik på tallet ved siden af max-recents og ændr tallet til " +"den ønskede værdi." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Brug udvidelsesmoduler til at tilpasse, hvordan gedit virker for dig." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +#| msgid "Configuring the Insert Date/Time Plugin" +msgid "Configure and use gedit plugins" +msgstr "Konfigurer og brug udvidelsesmoduler til gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Med udvidelsesmoduler kan du bruge gedit til mere. Der er " +"installeret flere udvidelsesmoduler som standard, men der findes et stort " +"antal andre udvidelsesmoduler separat." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Mange Linux-distributioner gør en gruppe med disse udvidelsesmoduler " +"tilgængelig som en gedit-plugins-pakke. Installér gedit-" +"plugins-pakken for at gøre disse ekstra udvidelsesmoduler tilgængelige " +"for gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Installér gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +#| msgid "Tag List Plugin" +msgid "Default gedit Plugins" +msgstr "Standardudvidelsesmoduler til gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Yderligere udvidelsesmoduler til gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:9 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +#| msgid "The currently selected text." +msgid "Change the case of selected text." +msgstr "Ændr store/små bogstaver i den valgte tekst." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +#| msgid "Change Case" +msgid "Change case" +msgstr "Ændr store/små bogstaver" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Udvidelsesmodulet hjælper dig med at ændre store/små bogstaver i valgte tekststykker. " +"Du kan bruge det til at ændre teksten så alle bogstaver bliver " +"små, alle bogstaver bliver store, bytte om på store/små bogstaver eller " +"første bogstav i hvert ord med stort. Aktivér udvidelsesmodulet ved at vælge " +"geditIndstillinger UdvidelsesmodulerSkift " +"store/små bogstaver." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Når udvidelsesmodulet Skift store/små bogstaver er aktiveret, så " +"kan du bruge det ved at fuldføre følgende trin:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +#| msgid "Select the lines of text you want to sort." +msgid "Highlight the portion of text that you want to change." +msgstr "Fremhæv det tekststykke du vil ændre." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Vælg geditSkift store/små " +"bogstaver" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Vælg din ønskede tekstformateringsindstilling." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Opdateringerne til tekstformateringen sker straks." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +#| msgid "" +#| "Change each lowercase character to uppercase, and change each uppercase " +#| "character to lowercase." +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Indstillingen Omvend store/små bogstaver konverterer alle små " +"bogstaver til store bogstaver og alle store bogstaver til små bogstaver." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Indstillingen Første bogstav med stort konverterer det første " +"bogstav i hvert ord til stort bogstav. Alle andre tegn konverteres til små " +"bogstaver." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Hvis du ikke har fremhævet noget tekst, så vil funktionen Skift store/små " +"bogstaver være utilgængelig. Du skal vælge et tekststykke, inden " +"du kan bruge funktionen Skift store/små bogstaver." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +#| msgid "Document Statistics Plugin" +msgid "View document statistics." +msgstr "Vis dokumentstatistik." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +#| msgid "Document Statistics Plugin" +msgid "Document statistics" +msgstr "Dokumentstatistik" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Udvidelsesmodulet Dokumentstatistik viser diverse statistik om dit " +"nuværende dokument. For at aktivere udvidelsesmodulet vælges geditIndstillinger " +"UdvidelsesmodulerDokumentstatistik." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +#| msgid "Document Statistics Plugin" +msgid "Using Document Statistics" +msgstr "Brug dokumentstatistik" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Når udvidelsesmodulet er aktiveret, så brug det ved at vælge " +"Værktøjer Dokumentstatistik. Et " +"vindue viser de statistiske informationer om dit dokument, herunder antallet " +"af ord, linjer, tegn, tegn som ikke optager plads og størrelsen på din " +"fil i byte." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Du kan også bruge Dokumentstatistik til kun at vise information om " +"en del af dit dokument. Gør det ved at bruge musemarkøren til at vælge det tekststykke. " +"du vil undersøge, og vælg så " +"VærktøjerDokumentstatistik. " +"gedit viser information om både hele dit dokument og den del med " +"tekst, du har fremhævet." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "Kør scripts på dine nuværende filer og interager med andre programmer." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +#| msgid "External Tools Plugin" +msgid "External tools" +msgstr "Eksterne værktøjer" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Udvidelsesmodulet Eksterne værktøjer kan hjælpe med at forenkle " +"opgaver, som gentages. Det udvider gedit ved at hjælpe dig med at " +"køre scripts på de filer, du arbejder på, og ved at give gedit " +"mulighed for at interagere med andre programmer på din computer. For at " +"aktivere udvidelsesmodulet Eksterne værktøjer vælges gedit IndstillingerUdvidelsesmoduler " +"Eksterne værktøjer." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +#| msgid "External Tools Plugin" +msgid "Configure the external tools plugin" +msgstr "Konfigurer udvidelsesmodulet Eksterne værktøjer" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Når du har aktiveret udvidelsesmodulet, så skal du konfigurere det, så det " +"passer til dine behov. Konfigureringsindstillingerne findes ved at vælge " +"VærktøjerHåndtér eksterne værktøjer." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Udvidelsesmodulet er til avancerede brugere og kræver kendskab til scripting " +"for at kunne bruges effektivt. Brug udvidelsesmodulet med forsigtighed da " +"fejl i dine scripts kan påvirke dit arbejde på utilsigtede måder." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +#| msgid "Use the specified command to print the file." +msgid "Use the side panel to browse and open files." +msgstr "Brug sidepanelet til at gennemse og åbne filer." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +#| msgid "File Browser Plugin" +msgid "File browser panel" +msgstr "Filvælgerpanel" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Afhængig af hvordan du bruger gedit, kan det være, du finder det " +"nyttigt at bruge udvidelsesmodulet Filvælgerpanel. " +"Udvidelsesmodulet indlejrer en filvælger i sidepanelet, hvor du " +"kan få adgang til de filer, du ofte bruger." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Du kan aktivere sidepanelet ved at vælge geditIndstillinger " +"UdvidelsesmodulerFilvælgerpanel." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the pane." +msgstr "" +"For at åbne filer fra sidepanelet, åbnes sidepanelet først ved at vælge " +"Vis Sidepanel (eller tryk blot på " +"F9) og vælg så Filvælger fra rullegardinet øverst i " +"ruden." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the pane to locate and open " +"your desired files." +msgstr "" +"Det aktiverer sidepanelets Filvælger-tilstand. Så kan du bruge " +"navigationsknapperne øverst i ruden til at finde og åbne de ønskede filer." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:17 +msgid "Insert the current date/time at the cursor position." +msgstr "Indsæt den nuværende dato/klokkeslæt ved markørens placering." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:20 +#| msgid "Insert Date/Time Plugin" +msgid "Insert date/time" +msgstr "Indsæt dato/klokkeslæt" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:22 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select gedit PreferencesPlugins Insert Date/" +"Time. To use the plugin, press EditInsert Date and Time." +msgstr "" +"Som navnet på dette udvidelsesmodul antyder giver udvidelsesmodulet " +"Indsæt dato/klokkeslæt dig mulighed for at indsætte datoen " +"og/eller klokkeslættet på den nuværende placering. For at aktivere " +"udvidelsesmodulet vælges gedit IndstillingerUdvidelsesmoduler Indsæt " +"dato/klokkeslæt. For at bruge udvidelsesmodulet trykkes på " +" RedigérIndsæt dato og " +"klokkeslæt." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:29 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"geditPreferences PluginsInsert Date/TimeConfigure." +msgstr "" +"Som standard spørger udvidelsesmodulet Indsæt dato/klokkeslæt dig " +"om dit foretrukne dato-/klokkeslætformat hver gang du bruger " +"udvidelsesmodulet. Du kan dog vælge dit eget standard dato-/klokkeslætformat " +"ved at vælge geditIndstillinger UdvidelsesmodulerIndsæt " +"dato/klokkeslætKonfigurér." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Installér tredjepartsudvidelsesmoduler." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Yderligere udvidelsesmoduler til gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Installering af tredjepartsudvidelsesmoduler giver dig ekstra funktioner som " +"ikke findes i standard gedit-udvidelsesmoduler eller endda i de " +"ekstra udvidelsesmoduler som er en del af gedit-plugins-pakken. " +"Her er en onlineliste " +"over tredjepartsudvidelsesmoduler." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Installering af tredjepartsudvidelsesmoduler indebærer download af " +"udvidelsesmodulet, placering af udvidelsesmodulets filer i den rette mappe, " +"og aktivering af udvidelsesmodulet." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Du kan typisk downloade et udvidelsesmodul fra udvidelsesmodulets websted, " +"men det kan være nødvendigt at bruge et revisionsstyringsprogram såsom " +"git, bazaar eller subversion for at " +"kopiere et udvidelsesmoduls softwarearkiv fra internettet. Se " +"udvidelsesmodulets dokumentation for information om at hente " +"udvidelsesmodulet." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Placer udvidelsesmodulets filer i mappen " +"/home/brugernavn/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"brugernavn skal selvfølgelig erstattes med dit eget brugernavn." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins [Name " +"of Plugin] to enable the plugin." +msgstr "" +"Når du har placeret udvidelsesmodulets filer i den korrekte mappe, så dukker " +"udvidelsesmodulet frem i indstillingsmenuen. Vælg Redigér " +"IndstillingerUdvidelsesmoduler " +"[Navnet på udvidelsesmodulet] for at aktivere " +"udvidelsesmodulet." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:45 +#| msgid "Click Open." +msgid "Click Close." +msgstr "Klik på Luk." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:48 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Efter du har aktiveret udvidelsesmodulet bør det være tilgængeligt så du kan " +"bruge det." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:52 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Mappen .local er skjult som standard. Vis den og andre skjulte " +"filer ved at vælge VisVis skjulte " +"filer, eller tryk på " +"CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:59 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Hvis .local/share/gedit/plugins/ ikke findes på dit system, så " +"er det nødvendigt at oprette den." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Understøttelse af tilstandslinjer i Emacs-, Kate- og Vim-stil i gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +#| msgid "Vim Modelines" +msgid "Modelines" +msgstr "Tilstandslinjer" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Udvidelsesmodulet Tilstandslinjer giver gedit mulighed " +"for at analysere linjerne med tekst i begyndelsen og slutningen af en fil " +"og så anvende et sæt dokumentindstillinger til filen. Udvidelsesmodulet " +"Tilstandslinjer understøtter et undersæt af de indstillinger, som " +"bruges af tekstredigeringsprogrammerne Emacs, Kate og " +"Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Aktivér udvidelsesmodulet Tilstandslinjer ved at vælge " +"gedit IndstillingerUdvidelsesmodulerTilstandslinjer." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +#| msgid "General Tabbed Section" +msgid "General Modeline Options" +msgstr "Generelle indstillinger for tilstandslinjer" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +#| msgid "" +#| "The following plugins come built-in with gedit:" +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Følgende indstillinger kan indstilles med gedit-tilstandslinjer:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tabulatorbredde" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Indrykningsbredde" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +#| msgid "Insert spaces instead of tabs" +msgid "Inserting spaces instead of tabs" +msgstr "Indsættelse af mellemrumstegn frem for tabulatortegn" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Tekstombrydning" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Bredde af højre margen" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Indstillinger, der angives ved hjælp af tilstandslinjer, har præcedens over " +"dem, der angives i indstillingsdialogen." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs-tilstandslinjer" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +#| msgid "" +#| "The first two lines of a document are scanned for Emacs modelines." +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"De første to linjer af et dokument skannes for " +"Emacs-tilstandslinjer, og gedit understøtter følgende " +"Emacs-tilstandslinjeindstillinger:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +#| msgid "Tab width" +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Besøg GNU Emacs-" +"manualen for mere information om Emacs-tilstandslinjer." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate-tilstandslinjer" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +#| msgid "" +#| "The first and last ten lines a document are scanned for " +#| "Kate modelines." +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"De første og sidste ti linjer i et dokument skannes for " +"Kate-tilstandslinjer og gedit understøtter følgende " +"Kate-tilstandslinjeindstillinger:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +#| msgid "Tab width" +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +#| msgid "Indent width" +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Besøg Kate-webstedet for mere information om Kate-tilstandslinjer." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim-tilstandslinjer" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +#| msgid "" +#| "The first and last three lines a document are scanned for " +#| "Vim modelines." +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"De første og sidste tre linjer af et dokument skannes for " +"Vim-tilstandslinjer, og gedit understøtter følgende " +"Vim-tilstandslinjeindstillinger:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +#| msgid "Indent width" +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +#| msgid "" +#| "For more information on creating plugins, see the gedit website." +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Besøg Vim-webstedet for mere information om Vim-tilstandslinjer." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Tilføj en interaktiv Python-konsol i den nederste rude." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +#| msgid "Python Console Plugin" +msgid "Python console" +msgstr "Python-konsol" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Du kan tilføje en Python-konsol i den nederste rude, så du kan teste Python-" +"scripts uden at forlade gedit. Aktivér Python-konsollen ved at " +"vælge gedit IndstillingerUdvidelsesmoduler Python-konsol." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Når Python-konsollen er aktiveret, så kan du åbne den ved at vælge " +"VisBundpanel." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Hvis du også har aktiveret udvidelsesmodulet Indlejret terminal, " +"så vises Python-konsollen som et separat faneblad i den nederste " +"rude." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Hurtig åbning af en fil eller sæt filer." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Hurtig åbning" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Som navnet på udvidelsesmodulet antyder hjælper udvidelsesmodulet Hurtig " +"åbning dig med hurtigere at åbne filer end de " +"sædvanlige måder. Aktivér udvidelsesmodulet ved at vælge gedit " +"IndstillingerUdvidelsesmodulerHurtig " +"åbning." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Når du har aktiveret udvidelsesmodulet Hurtig åbning kan du bruge " +"det på følgende måde:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Åbn dialogboksen Hurtig åbning ved at trykke på " +"CtrlAltO eller ved at " +"klikke på Hurtig åbning …." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Hurtig åbning-fildialogen vises." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +#| msgid "Enter the URI of the file that you want to open." +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Brug din mus til at vælge den eller de filer, som du vil åbne." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"For at vælge flere individuelle filer holdes Ctrl-tasten nede, mens " +"du trykker på de filer, du vil åbne." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"For at vælge en gruppe af filer skal du klikke på den første fil som du vil " +"åbne, holde Skift-tasten nede og klik på den sidste fil i listen " +"du vil åbne." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Hurtig åbning ser efter filer i:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +#| msgid "Print the current document." +msgid "The directory of the currently opened document" +msgstr "Mappen med det dokument som er åben i øjeblikket" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"Rodmappen i udvidelsesmodulet Filvælgerpanel" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Seneste dokumenter som også vises i mappen Seneste i " +"Filer" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Mapper som du har sat bogmærke ved i Filer" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Din Skrivebord-mappe" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Din Hjem-mappe" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Hurtig åbning viser filer i placeringerne ovenfor, uanset om du har " +"åbnet dem før eller ej." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Brug tekststumper til hurtigt at indsætte tekststykker der bruges tit." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +#| msgid "Snippet text" +msgid "Snippets" +msgstr "Tekststumper" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Tekststumper giver en let måde at indsætte gentagne " +"kodestykker i dine filer. F.eks. vil en HTML-tekststump til " +"<img>-tagget indsætte åbnings- og lukningsdelene for tagget " +"samt faste pladser, hvor du kan indtaste billedattributter. Det kan gøre det " +"lettere og hurtigere at skrive kode." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +#| msgid "Snippets Plugin" +msgid "Enable Snippets Plugin" +msgstr "Aktivér udvidelsesmodulet Tekststumper" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Sådan aktiveres udvidelsesmodulet Tekststumper:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +#| msgid "" +#| "Choose EditPreferences." +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Vælg gedit Indstillinger Udvidelsesmoduler." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Vælg Tekststumper for at aktivere " +"udvidelsesmodulet." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +#| msgid "Inserting Snippets" +msgid "Browse Snippets" +msgstr "Gennemse tekststumper" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Sådan gennemse tilgængelige tekststumper:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Vælg Værktøjer Håndtér " +"tekststumper." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Sørg for at syntaksen er indstillet korrekt. Statuslinjen nederst i " +"gedit-vinduet viser den nuværende sprogindstilling. " +"Sprogindstillingen giver gedit mulighed for at indsætte de rette " +"tekststumper. gedit registrerer normalt sproget eller syntaksen " +"på den fil, du bruger, men nogle gange kan det være nødvendigt at indstille " +"det." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "I dette eksempel er sproget indstillet til HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "[billedet er indsendt]" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Gennemse de tekststumper som er tilgængelige på dit sprog eller syntaks." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +#| msgid "Adding Snippets" +msgid "Using Snippets" +msgstr "Brug tekststumper" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +#| msgid "Number of lines in the current document." +msgid "To insert a snippet into your current document:" +msgstr "Sådan indsættes en tekststump i det nuværende dokument:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Skriv det ønskede tekststumpnavn hvor som helst i dit nuværende dokument." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Tryk på Tabulator for at indsætte den tekststump som er " +"tilknyttet den indtastede frase." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Eksempel på anvendelse af tekststump" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Hvis du f.eks. har indstillet syntaksen til HTML, så skriv " +"head og tryk på Tabulator-tasten. Teksten vil " +"automatisk blive fuldført til en tekststump såsom:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" " +"/>\n" +" <title>Sidetitel</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Tilføjelse af tekststumper" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Du kan tilføje nye tekststumper, som enten virker globalt (de er altså sproguafhængige) eller kun i en bestemt syntaks." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Vælg Værktøjer Håndtér tekststumper." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Fra sidebjælken Håndtér tekststumper vælges den ønskede syntaks og der " +"klikkes på knappen “+ ” for at vise eksisterende tekststumper til den valgte " +"syntaks." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"For at tilføje en tekststump, som virker globalt (altså når der ikke er " +"indstillet nogen bestemt syntaks eller sprog til dokumentet), vælges " +"Globalt fra sidebjælken Håndtér tekststumper." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Tilføj en ny tekststump ved at klikke på “plus”-ikonet i sidebjælken Håndtér " +"tekststumper." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Indtast et navn til den nye tekststump. Navnet på tekststumpen kan være et " +"andet end den tekststump du vil tilføje." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Under afsnittet Aktivering skal du indtaste en " +"frase til Tabulatorudløser:-tekstområdet. Du kommer " +"til at bruge frasen til at indsætte din tekststump." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Hvis du vil indsætte en tekststump med en tastaturgenvej, så klik på Genvejstast:-tekstområdet og tryk på den ønskede " +"tastekombination. Når du har trykket på og sluppet tasterne, så er " +"tastaturgenvejen indstillet." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Under tekstområdet til Redigér: indtast den " +"ønskede tekst til tekststumpen. Du kan også bruge ${n} til at " +"indikere variabler, hvor n erstattes med et tal, som angiver den " +"numeriske rækkefølge på variablerne." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Eksempel på ny tekststump" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Har du f.eks. oprettet en tekststump med frasen hilsen i Tabulatorudløser:, så indeholder Redigér:-tekstområdet:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <hilsen>Hej ${1:store}${2:smukke} verden!\n" +" </hilsen>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Du kan indsætte tekststumpen ved at skrive hilsen i dokumentet " +"og trykke på Tabulator-tasten. Følgende tekststump indsættes:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <hilsen>Hej storesmukke verden!</hilsen>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Ordene “store” og “smukke” kan bevares eller slettes afhængig af hvad du har brug for. " +"Gør det ved at trykke på Tabulator for at vælge mellem " +"“store” og “smukke” og tryk på Del for at slette den " +"valgmulighed, der ikke ønskes." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +#| msgid "" +#| "The Sort plugin arranges selected lines of " +#| "text into alphabetical order." +msgid "Sort lines of text into alphabetical order." +msgstr "Sortér linjer med tekst i alfabetisk rækkefølge." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Sortér" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +#| msgid "" +#| "The Sort plugin arranges selected lines of " +#| "text into alphabetical order." +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Udvidelsesmodulet Sortér arrangerer de valgte linjer med tekst i " +"alfabetisk rækkefølge." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +#| msgid "Sort Plugin" +msgid "Enable Sort Plugin" +msgstr "Aktivér udvidelsesmodulet Sortér" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Sådan aktiveres udvidelsesmodulet Sortér:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Vælg Sortér for at aktivere " +"udvidelsesmodulet." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +#| msgid "Sort Plugin" +msgid "Using Sort Plugin" +msgstr "Udvidelsesmodulet Sortér" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Sådan bruges udvidelsesmodulet Sortér:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Drag and highlight the desired lines of text." +msgstr "Markér de ønskede linjer med tekst." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Vælg Værktøjer Sortér …." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +#| msgid "" +#| "The Print dialog enables you to specify the " +#| "following print options:" +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Dialogen Sortér åbnes, så du kan vælge mellem flere " +"sorteringsindstillinger:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Omvendt rækkefølge arrangerer teksten i omvendt alfabetisk " +"rækkefølge." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "Fjern dubletter fjerner duplikerede værdier fra listen." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Ignorer store/små bogstaver ignorerer om bogstaverne er med stort " +"eller småt." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +#| msgid "" +#| "To have the sort ignore the characters at the start of the lines, set the " +#| "first character that should be used for sorting in the Start at " +#| "column spin box." +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Få sorteringen til at ignorere de indledende tegn på hver linje ved at " +"indstille det første tegn, som skal bruges til sortering i rotationsboksen Begynd ved " +"kolonne." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +#| msgid "To perform the sort operation, click Sort." +msgid "To perform the sort operation, click Sort." +msgstr "Klik på Sortér for at udføre sorteringsoperationen." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Indstil de sider som skal udskrives i en bestemt rækkefølge." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Få kopier til at blive udskrevet i den korrekte rækkefølge" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Omvendt" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Printere udskriver typisk den første side først og den sidste side sidst, så " +"siderne ender med at være i omvendt rækkefølge når du tager dem op. Sådan " +"vendes rækkefølgen om:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Vælg Fil Udskriv." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"I fanebladet Generelt i dialogen Udskriv under Kopier tilvælges Omvendt." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Den sidste side udskrives først osv." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Sætvis" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Hvis du udskriver mere end én kopi af dokumentet, så grupperes " +"udskrivningerne efter sidenummer som standard. (F.eks. kommer kopierne af " +"side 1 ud, så kopierne af side 2 osv.) Sætvis gør at hver kopi kommer ud med " +"dens sider grupperet sammen." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Sådan bruges sætvis:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Klik på Fil Udskriv." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"I fanebladet Generelt i dialogen Udskriv under Kopier tilvælges Sætvis." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +#| msgid "Print the file to a printer." +msgid "Print the files that you create with gedit." +msgstr "Udskriv de filer du har oprettet med gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +#| msgid "Printing a Document" +msgid "Printing documents" +msgstr "Udskrivning af dokumenter" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Udskrivning med gedit kræver at du har tilsluttet og konfigureret " +"din printer. Hvis du ikke har gjort det, så se venligst udskrivningshjælp til GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" +"gedit giver dig mulighed for at udskrive til både en fil og til " +"papir." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +#| msgid "Print preview." +msgid "Print Preview" +msgstr "Vis udskrift" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Inden du udskriver dit dokument kan du se hvordan det udskrevne dokument vil komme til at se ud " +"med Vis udskrift. Sådan " +"forhåndsvises dokumentet:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Vælg Fil Vis " +"udskrift. Du kan også trykke på " +"SkiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Der åbnes en forhåndsvisning af dit dokument i det samme faneblad som filen. " +"Du kan gennemse forhåndsvisningen ved hjælp af navigationsknapperne og " +"værktøjerne på værktøjslinjen øverst i fanebladet dokumentforhåndsvisning. " +"For at lukke og vende tilbage til dokumentet klikkes på Luk udskriftsvisning." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +#| msgid "Printing" +msgid "Printing To Paper" +msgstr "Udskrivning til papir" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Du kan udskrive dine dokumenter på papir med en lokal eller fjernprinter. " +"Sådan udskrives en fil:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Vælg Fil Udskriv " +"Generelt." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Vælg den ønskede printer fra listen over tilgængelige printere." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Du kan forhåndsvise filen med Vis udskrift og når " +"du er tilfreds med indstillingerne, så klik på Udskriv for at sende filen til printeren." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Fra fanebladet Sideopsætning: kan du desuden vælge " +"indstillinger for Layout og Papir. Eftersom indstillingerne er tilgængelige på tværs " +"af GNOME-programmer, så se venligst hjælp til Indstillinger for layout og papir." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Udskriv flere kopier og mellem angivne intervaller" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Du kan indstille indstillingerne Interval og Kopier for at hjælpe dig med at:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +#| msgid "Printing" +msgid "Printing To File" +msgstr "Udskrivning til fil" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Du kan også bruge gedit til at udskrive til en fil. Sådan " +"udskriver du dokumentet til en fil i et andet format:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Vælg Fil Udskriv " +"Udskriv til fil." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Udskrivning er aktiveret for følgende filformater, du kan vælge mellem:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +#| msgid "Scripts" +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +#| msgid "To perform the sort operation, click Sort." +msgid "To print the document to file, click Print." +msgstr "" +"For at udskrive dokumentet til en fil klikkes på Udskriv." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +#| msgid "Choose the options you want for the sort:" +msgid "Choose the pages that you want to print." +msgstr "Vælg de sider som du vil udskrive." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Udskriv kun bestemte sider" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Du kan vælge kun at udskrive bestemte sider fra dokumentet. F.eks. hvis du " +"indtaster sidenumrene “1,3,5-7,9”, så udskrives kun siderne 1, 3, 5, 6, 7 " +"og 9. Sådan udskrives sider efter eget valg:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Vælg Fil Udskriv " +"…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"I fanebladet Generelt i dialogen Udskriv vælges Sider fra afsnittet Interval." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Skriv sidetallet på de sider, du vil udskrive fra dokumentet, adskilt af kommaer. " +"Brug en bindestreg til at angive et sideinterval." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "En kort introduktion til gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +#| msgid "Starting gedit" +msgid "Get started with gedit" +msgstr "Godt i gang med gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit er et tekstredigeringsprogram med det hele til GNOME-" +"skrivebordsmiljøet. Du kan bruge den til at skrive simple noter og " +"dokumenter, eller du kan bruge nogle af dens avancerede funktioner for at få " +"dit eget udviklingsmiljø." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" +msgstr "[billedet er indsendt]" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"Når gedit er startet kan du straks begynde at skrive. Klik på " +"Gem-ikonet i gedit-værktøjslinjen for at gemme din " +"tekst." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Lær mere om andre gedit-funktioner og få hjælp til at udføre " +"andre opgaver ved at udforske andre dele af hjælp " +"til gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Erstat tekststykker i en fil." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +#| msgid "Replacing Text" +msgid "Replace text" +msgstr "Erstat tekst" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Redigering af tekst kan tage lang tid. For at spare tid inkluderer " +"gedit funktionen Erstat som hjælper dig med at finde " +"og erstatte tekststykker." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Erstat tekst i gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Åbn Erstat-værktøjet ved at klikke på MenuknappenFind og erstat " +"… eller tryk på CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +#| msgid "" +#| "Type the string that you want to use to replace the string that you find, " +#| "in the Replace with field." +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Indtast den tekst du vil erstatte i Find-feltet." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +#| msgid "" +#| "Type the string that you want to use to replace the string that you find, " +#| "in the Replace with field." +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Indtast den nye tekst, der skal erstattes med, i Erstat " +"med-feltet." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Når du har indtastet den oprindelige tekst og erstatningsteksten, så kan du " +"tilføje ekstra parametre til søgningen. Du kan også vælge hvad du vil " +"erstatte:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"For kun at erstatte det næste match klikkes på Erstat." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +#| msgid "" +#| "To replace all occurrences of the string throughout the document, click " +#| "Replace All." +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Erstat alle forekomster af den tekst, der blev søgt efter, ved " +"at klikke på Erstat alle." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Brug funktionen Erstat alle med forsigtighed. Erstat " +"alle virker på hele din tekstfil, og giver dig ikke mulighed for at " +"fremhæve tekststykker, hvor funktionen erstat udføres." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Flere valgmuligheder" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Hvis du vil kan du tilføje ekstra parametre til din søgning:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Forskel på store/små bogstaver" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Indstillingen Forskel på store/små bogstaver giver dig mulighed for " +"at angive om din søgning skal skelne mellem store og små bogstaver. Hvis " +"indstillingen er tilvalgt, så skelnes der mellem store og små bogstaver. " +"Hvis den er fravalgt, så skelnes der ikke mellem store og små bogstaver." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Søg kun efter hele ord" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Brug indstillingen til at søge efter et bestemt ord uden fragmenter fra " +"andre ord. Hvis du f.eks. søger efter ordet “and”, når indstillingen er " +"tilvalgt, så matches ordet “and”. men ikke ordene “sand” og " +"“landmand”." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Søg baglæns" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Kommandoen opfører sig på samme måde som kommandoen Find forrige. Hvis du " +"vil gå gennem søgeresultaterne fra slutningen til begyndelsen, så vælg denne " +"indstilling." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Start forfra når slutningen er nået" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Når indstillingen Begynd forfra ved slut er aktiveret, så " +"genstarter gedit søg-/erstat-handlingen fra filens begyndelse, når " +"filens slutning er nået. Det sikrer, at din søg-/erstat-handling kommer " +"gennem hele filen." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Brug undvigesekvenser" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Du kan bruge undvigesekvenser til at søge efter linjeskift, " +"vognretur og tabulatorer." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +#| msgid "Underline" +msgid "Newline" +msgstr "Linjeskift" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +#| msgid "Specifies a carriage return." +msgid "Carriage return" +msgstr "Vognretur" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +#| msgid "Tabs" +msgid "Tab" +msgstr "Tabulator" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Hvis du vil søge efter en \\ (omvendt skråstreg) eller en af " +"undvigesekvenserne i teksten, så skal du undvige den omvendte skråstreg med " +"en ekstra omvendt skråstreg. For f.eks. at søge efter \\ skal " +"du indtaste \\\\ i søg- eller erstat-feltet. Du kan søge efter " +"undvigesekvenser på samme måde: for at søge efter eller erstatte med et " +"\\n, brug frasen \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Gem din fil for at arbejde på den senere." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Gem en fil" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +"CtrlS." +msgstr "" +"Gem en fil i gedit ved at klikke på knappen Gem i højre side af værktøjslinjen eller ved at " +"trykke på CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Hvis du gemmer en ny fil, så vises en dialog og du kan vælge et navn til " +"filen samt mappen hvor du vil gemme filen." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Find et tekststykke i en fil." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Søg efter tekst" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Søg-værktøjet kan hjælpe dig med at finde bestemte sekvenser med tekst i din " +"fil." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +#| msgid "Finding Text" +msgid "Finding text" +msgstr "Find tekst" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Åbn søgevinduet ved at klikke på menuknappen Søg … " +"eller ved at trykke på CtrlF. Det " +"flytter markøren til begyndelsen af søgevinduet." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Skriv den tekst du vil søge efter i søgevinduet." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Efterhånden som du skriver, så begynder gedit at fremhæve " +"tekststykker som matcher det du har indtastet." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +#| msgid "To create a new snippet, do the following:" +msgid "To scroll through the search results, do any of the following:" +msgstr "Rul gennem søgeresultaterne ved at gøre en af følgende:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Klik på op- eller ned-pilene ved siden af søgevinduet." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Tryk på op-pil- eller ned-pil-tasterne på dit " +"tastatur." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Tryk på CtrlG eller " +"CtrlSkiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Luk søgevinduet ved at trykke på Esc eller " +"Enter. Hvis der trykkes på Esc, vender markøren tilbage " +"til, hvor den var, inden du begyndte søgningen. Hvis der trykkes på " +"Enter, vender markøren tilbage til den nuværende placering i " +"søgeresultaterne." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +#| msgid "Search" +msgid "Search tips" +msgstr "Søgetips" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Hvis du fremhæver et tekststykke med din mus og så trykker på " +"CtrlF, så vises den tekst du " +"fremhævede i søgevinduet." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Få flere søgeindstillinger ved at klikke på Forstørrelsesglas-ikonet i søgevinduet eller ved at " +"højreklikke i søgevinduet. Du kan vælge en eller flere af følgende " +"søgeindstillinger:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Vælg Forskel på store/små bogstaver for at skelne mellem store " +"og små bogstaver." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Vælg Søg kun efter hele ord for kun at søge efter komplette ord." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Vælg Begynd forfra ved slut for at søge efter tekst fra toppen " +"til bunden og forfra igen." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Den tekst du søgte efter vil være fremhævet af gedit, selv efter du har " +"fuldført din søgning. Fjern fremhævningen ved at klikke på Ryd fremhævning eller ved at trykke på " +"CtrlSkiftK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Brug tastaturgenveje så du kan arbejde hurtigere." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +#| msgid "Shortcut key" +msgid "Shortcut keys" +msgstr "Genvejstaster" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +#| msgid "" +#| "Use shortcut keys to perform common tasks more quickly than with the " +#| "mouse and menus. The following tables list all of gedit's shortcut keys." +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Brug genvejstaster til at udføre almindelige opgaver hurtigere " +"end med musen og menuerne. Følgende tabeller viser alle genvejstasterne i " +"gedit." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +#| msgid "Shortcut key" +msgid "Tab-related Shortcut keys" +msgstr "Genvejstaster til faneblade" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:167 C/gedit-shortcut-keys.page:253 +#: C/gedit-shortcut-keys.page:273 C/gedit-shortcut-keys.page:325 +#: C/gedit-shortcut-keys.page:358 C/gedit-shortcut-keys.page:387 +msgid "Action" +msgstr "Handling" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:168 C/gedit-shortcut-keys.page:254 +#: C/gedit-shortcut-keys.page:274 C/gedit-shortcut-keys.page:326 +#: C/gedit-shortcut-keys.page:359 C/gedit-shortcut-keys.page:388 +msgid "Keyboard shortcut" +msgstr "Tastaturgenvej" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +#| msgid "Switches to the next tab to the left." +msgid "Switch to the next tab to the left" +msgstr "Skift til det næste faneblad til venstre" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt PageUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +#| msgid "Switches to the next tab to the right." +msgid "Switch to the next tab to the right" +msgstr "Skift til det næste faneblad til højre" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt PageDown" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +#| msgid "Close tab." +msgid "Close tab" +msgstr "Luk faneblad" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:154 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +#| msgid "Save all tabs." +msgid "Save all tabs" +msgstr "Gem alle faneblade" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlSkift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +#| msgid "Close all tabs." +msgid "Close all tabs" +msgstr "Luk alle faneblade" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlSkiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Genåbn det faneblad som blev lukket sidst" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlSkiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +#| msgid "Jump to nth tab." +msgid "Jump to nth tab" +msgstr "Hop til faneblad nummer n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Ny fanebladsgruppe" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Forrige fanebladsgruppe" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"SkiftCtrlAltPage " +"up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Næste fanebladsgruppe" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"SkiftCtrlAltPage " +"down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +#| msgid "Shortcuts for working with files:" +msgid "Shortcut keys for working with files" +msgstr "Genvejstaster til at arbejde med filer" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +#| msgid "Create a new document." +msgid "Create a new document in a new window" +msgstr "Opret et nyt dokument i et nyt vindue" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +#| msgid "Create a new document." +msgid "Create a new document in a new tab" +msgstr "Opret et nyt dokument i et nyt faneblad" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +#| msgid "Open a document." +msgid "Open a document" +msgstr "Åbn et dokument" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Open the Quick Open window" +msgstr "Åbn Hurtig åbning-vinduet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "AltO" +msgstr "AltO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +#| msgid "Save the current document to disk." +msgid "Save the current document" +msgstr "Gem det nuværende dokument" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:139 +#| msgid "Save the current document with a new filename." +msgid "Save the current document with a new filename" +msgstr "Gem det nuværende dokument med et nyt filnavn" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "CtrlShift S" +msgstr "CtrlSkift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +#| msgid "Print the current document." +msgid "Print the current document" +msgstr "Udskriv det nuværende dokument" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:145 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +#| msgid "Print preview." +msgid "Print preview" +msgstr "Vis udskrift" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlShift P" +msgstr "CtrlSkift P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:153 +#| msgid "Close the current document." +msgid "Close the current document" +msgstr "Luk det nuværende dokument" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:157 +#| msgid "Quit Gedit." +msgid "Quit gedit" +msgstr "Afslut gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:158 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:164 +#| msgid "Shortcuts for editing documents:" +msgid "Shortcut keys for editing files" +msgstr "Genvejstaster til at redigere filer" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +#| msgid "Copy the selected text or region onto the clipboard." +msgid "Move the selected word right one word" +msgstr "Flyt det valgte ord et ord til højre" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:174 +msgid "AltRight Arrow" +msgstr "AltHøjre-pil" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +#| msgid "Copy the selected text or region onto the clipboard." +msgid "Move the selected word left one word" +msgstr "Flyt det valgte ord et ord til venstre" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:178 +msgid "AltLeft Arrow" +msgstr "AltVenstre-pil" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +#| msgid "Undo the last action." +msgid "Undo the last action" +msgstr "Fortryd den seneste handling" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:182 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +#| msgid "Redo the last undone action ." +msgid "Redo the last undone action" +msgstr "Omgør den senest fortrudte handling" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "CtrlShift Z" +msgstr "CtrlSkift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +#| msgid "Cut the selected text or region and place it on the clipboard." +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Klip den valgte tekst eller det valgte område og placer det i udklipsholderen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:192 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:195 +#| msgid "Copy the selected text or region onto the clipboard." +msgid "Copy the selected text or region onto the clipboard" +msgstr "Kopiér den valgte tekst eller det valgte område til udklipsholderen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:196 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:199 +#| msgid "Paste the contents of the clipboard." +msgid "Paste the contents of the clipboard" +msgstr "Indsæt indholdet af udklipsholderen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:200 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:203 +msgid "Select all text in the file" +msgstr "Vælg al tekst i filen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:204 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:207 +#| msgid "Select all." +msgid "Unselect all text" +msgstr "Fravælg al tekst" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:208 +msgid "CtrlBackslash" +msgstr "Ctrl\\" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +#| msgid "Delete current line." +msgid "Delete the current line" +msgstr "Slet den nuværende linje" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:212 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Move the selected line up one line" +msgstr "Flyt den valgte linje en linje op" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:216 +msgid "AltUp Arrow" +msgstr "AltOp-pil" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "Move the selected line down one line" +msgstr "Flyt den valgte linje en linje ned" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:220 +msgid "AltDown Arrow" +msgstr "AltNed-pil" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "Add a tab stop" +msgstr "Tilføj et tabulatorstop" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:224 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "Remove a tab stop" +msgstr "Fjern et tabulatorstop" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:228 +msgid "ShiftTab" +msgstr "SkiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +#| msgid "Copy the selected text or region onto the clipboard." +msgid "Convert the selected text to upper case" +msgstr "Konvertér den valgte tekst til store bogstaver" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:232 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +#| msgid "Copy the selected text or region onto the clipboard." +msgid "Convert the selected text to lower case" +msgstr "Konvertér den valgte tekst til små bogstaver" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:236 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:239 +#| msgid "The currently selected text." +msgid "Toggle case of the selected text" +msgstr "Byt om på store/små bogstaver i den valgte tekst" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:240 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:243 +msgid "Toggle cursor visibility" +msgstr "Markørens synlighed til/fra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:244 +msgid "F7" +msgstr "F7" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:250 +#| msgid "Shortcuts for showing and hiding panes:" +msgid "Shortcut keys for showing and hiding panes" +msgstr "Genvejstaster til at vise og skjule ruder" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:259 +#| msgid "Show/hide the side pane." +msgid "Show / hide the side panel" +msgstr "Vis/skjul sidepanelet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:260 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:263 +msgid "Open the file menu" +msgstr "Åbn filmenuen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:264 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:270 +#| msgid "Shortcuts for tools:" +msgid "Shortcut keys for navigation" +msgstr "Genvejstaster til at navigere" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:279 +msgid "Move to matching bracket" +msgstr "Flyt til modsvarende klamme" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:280 +msgid "Ctrl%" +msgstr "Ctrl%" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:283 +#| msgid "Goto line." +msgid "Goto line" +msgstr "Gå til linje" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:284 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:287 +msgid "Move to the beginning of the current line" +msgstr "Flyt til begyndelsen af den nuværende linje" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:288 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:291 +#| msgid "Delete current line." +msgid "Move to the end of the current line" +msgstr "Flyt til slutningen af den nuværende linje" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:292 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:295 +msgid "Move to the beginning of the document" +msgstr "Flyt til begyndelsen af dokumentet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:296 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:299 +#| msgid "Removes all spaces from the end of lines in the document." +msgid "Move to the end of the document" +msgstr "Flyt til slutningen af dokumentet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:300 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:303 +msgid "Move viewport up within the file" +msgstr "Flyt visningsområde op i filen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:304 +msgid "ShiftAltUp" +msgstr "SkiftAltOp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:307 +msgid "Move viewport down within the file" +msgstr "Flyt visningsområde ned i filen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:308 +msgid "ShiftAltDown" +msgstr "SkiftAltNed" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:311 +msgid "Move viewport to beginning of file" +msgstr "Flyt visningsområde til begyndelsen af filen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:312 +msgid "ShiftAltHome" +msgstr "SkiftAltHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:315 +msgid "Move viewport to end of file" +msgstr "Flyt visningsområde til slutningen af filen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:316 +msgid "ShiftAltEnd" +msgstr "SkiftAltEnd" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:322 +#| msgid "Shortcuts for searching:" +msgid "Shortcut keys for searching" +msgstr "Genvejstaster til at søge" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:331 +#| msgid "Find a string." +msgid "Find a string" +msgstr "Find en streng" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:332 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:335 +#| msgid "Find the next instance of the string." +msgid "Find the next instance of the string" +msgstr "Find den næste forekomst af strengen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:336 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:339 +#| msgid "Find the previous instance of the string." +msgid "Find the previous instance of the string" +msgstr "Find den forrige forekomst af strengen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:340 +msgid "CtrlShiftG" +msgstr "CtrlSkiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:343 +#| msgid "Search and replace." +msgid "Search and Replace" +msgstr "Søg og erstat" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:344 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:347 +#| msgid "Clear highlight." +msgid "Clear highlight" +msgstr "Ryd fremhævning" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:348 +msgid "CtrlShift K" +msgstr "CtrlSkift K" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:355 +#| msgid "Shortcuts for tools:" +msgid "Shortcut keys for tools" +msgstr "Genvejstaster til værktøjer" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:364 +#| msgid "Check spelling (with plugin)." +msgid "Check spelling" +msgstr "Stavekontrol" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:365 +msgid "ShiftF7" +msgstr "SkiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:368 +#| msgid "Remove trailing spaces (with plugin)." +msgid "Remove trailing spaces (with plugin)" +msgstr "Fjern efterstillede mellemrum (med udvidelsesmodul)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:369 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:372 +#| msgid "Run \"make\" in current directory (with plugin)." +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Kør “make” i den nuværende mappe (med udvidelsesmodul)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:373 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:376 +#| msgid "Directory listing (with plugin)." +msgid "Directory listing (with plugin)" +msgstr "Mappevisning (med udvidelsesmodul)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:377 +msgid "CtrlShift D" +msgstr "CtrlSkift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:384 +#| msgid "Shortcuts for help:" +msgid "Shortcut keys for user help" +msgstr "Genvejstaster til brugerhjælp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:393 +msgid "Open the gedit user guide" +msgstr "Åbn brugervejledningen til gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:394 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Tjek dine filer for stavefejl." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Stavekontrol af dit dokument" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Aktivér stavekontrol" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Stavekontrolfunktionen leveres som et udvidelsesmodul i gedit som " +"kan aktiveres efter behov. Sådan aktiveres udvidelsesmodulet:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Vælg Stavekontrol for at aktivere " +"udvidelsesmodulet." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Sådan tjekkes der for stavefejl i dit dokument:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +#| msgid "" +#| "To check the spelling manually, choose ToolsCheck Spelling." +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Vælg Værktøjer Stavekontrol." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"For at få gedit til automatisk at fremhæve ord, som er stavet " +"forkert i dit dokument, mens du skriver, kan du vælge VærktøjerFremhæv " +"stavefejl." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Brug stavekontrol" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Du kan vælge den rette erstatning til ord, som er stavet forkert med " +"dialogen Stavekontrol. Det ord som tjekkes af stavekontrollen og som er stavet forkert " +"vises med fed skrift ved siden af Stavefejl:. Du " +"kan vælge mellem følgende rettelseshandlinger:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Skift til: giver dig mulighed for at indtaste et " +"ord og bruge Kontrollér ord til at tjekke, at det er stavet " +"korrekt." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Forslag: viser de tilgængelige erstatninger til " +"ordet." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorér giver dig mulighed for at tilsidesætte " +"stavekontrol for én instans af det nuværende ord." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignorér alle giver dig mulighed for at " +"tilsidesætte stavekontrol for alle instanser af det nuværende ord." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Skift erstatter ord som er stavet forkert eller " +"som ikke genkendes med én valgt erstatning fra listen Forslag:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Skift alle erstatter alle ord som er " +"stavet forkert eller som ikke genkendes med den valgte erstatning fra listen Forslag:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Tilføj ord giver dig mulighed for at tilføje det " +"nuværende ord til gedit Brugerordbog. Når der tilføjes " +"tilpassede ord til Brugerordbogen, kan gedit genkende " +"ordet i dokumenter og dermed fremhæves ordet ikke som et ord, der er stavet " +"forkert." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Angiv det sprog der skal bruges til stavekontrol" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Som standard bruger gedit dit nuværende sprog til at udføre " +"stavekontrol på dit dokument. Hvis du har brug for et andet sprog, så vælg " +"VærktøjerVælg sprog " +"… og vælg så det sprog du vil bruge." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Ordbøger" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit bruger Enchant, et lille " +"systemredskab til stavekontrol. Enchant kan bruge flere forskellige ordbøger " +"til stavekontrol. To sådanne ordbogsmotorer er Hunspell og " +"Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Hvis det sprog, du vil bruge ikke er tilgængeligt i gedit, så brug " +"din computers softwareinstallationsprogram eller pakkehåndtering til at " +"installere den ordbogsmotor du vil have." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Fremhæv din tekst for at gøre den lettere at læse." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +#| msgid "Print syntax highlighting" +msgid "Turn on syntax highlighting" +msgstr "Aktivér syntaksfremhævning" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +#| msgid "Syntax Highlighting" +msgid "Syntax highlighting" +msgstr "Syntaksfremhævning" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit giver syntaksfremhævning til et bredt udvalgt af " +"opmærknings-, programmerings- og videnskabelige sprog. Hvis gedit " +"genkender den syntaks som bruges når du åbner en fil, så fremhæver den " +"automatisk teksten." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Hvis din syntaks eller dit sprog ikke fremhæves ved opstart, så kan du vælge den " +"rette syntaks eller det rette sprog ved at klikke på Vis Fremhævningstilstand og så vælge den ønskede " +"syntaks. Du kan også vælge syntaksnavnet fra en liste nederst i " +"gedit-vinduet." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Gruppér lignende faneblade." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Organiser filer i grupperede faneblade" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Hvis du arbejder med flere faneblade i gedit, så kan du gruppere " +"dem, hvilket gør det let at holde dine åbne filer organiseret. Tilføjelse af " +"et nyt faneblad vil dele gedit-vinduet i to ruder, åbne et nyt " +"“Unavngivet dokument” i den nye rude og gøre den aktiv. Du kan åbne filer i " +"fanebladsgruppen og flytte faneblade fra en gruppe til en anden." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Åbn en ny fanebladsgruppe i gedit-vinduet" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "For at åbne en ny fanebladsgruppe kan du:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Gå til DokumenterNy fanebladsgruppe i " +"hovedmenuen." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Bruge genvejen CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Handlingen deler gedit-vinduet i to ruder, og ruden med den nye " +"fanebladsgruppe placeres til højre for det aktive faneblad. Du kan flytte " +"håndtaget til højre eller venstre for at tildele mere eller mindre plads i " +"gedit-vinduet mellem ruderne alt efter hvad du har brug for." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Du kan åbne så mange fanebladsgrupper i gedit-vinduet, som din " +"skærm tillader, men du bliver nødt til at flytte håndtaget for at se dem " +"korrekt." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"For at lukke en fanebladsgrupperude skal du blot lukke alle de faneblade som " +"er åbne i den." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Flyt gennem fanebladsgrupper" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Sådan flyttes fremad (til den næste) fanebladsgruppe:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Gå til DokumenterNæste " +"fanebladsgruppe i hovedmenuen." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Bruge genvejen SkiftCtrlAltPage " +"down." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Sådan flyttes baglæns (til den forrige) fanebladsgruppe:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"Gå til DokumenterForrige " +"fanebladsgruppe i hovedmenuen." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Bruge genvejen SkiftCtrlAltPage " +"up." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Flyt et faneblad til en anden fanebladsgruppe" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Hvis du vil flytte et faneblad fra en fanebladsgruppe til en anden:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Klik på og hold museknappen på fanebladet." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Træk fanebladet til en anden fanebladsgrupperude." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Placer den ved siden af de andre faneblade i fanebladsgruppe." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Slip museknappen." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Se tabellen genvejstaster til faneblade" +" for at gøre det lettere at håndtere dine " +"fanebladsgrupper." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Ændr placeringen af et faneblad i gedit-vinduet." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Flyt og ændr fanebladenes rækkefølge" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Faneblade i gedit kan flyttes, hvilket gør det lettere at arbejde " +"med dine filer. Fanebladenes rækkefølge kan ændres i det samme vindue, " +"flyttes ud af gedit (hvorved der oprettes et nyt " +"gedit-vindue) og flyttes fra et vindue til et andet." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Ændr rækkefølgen på fanebladene i gedit-vinduet" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Sådan ændres rækkefølgen på faneblade i et vindue:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Flyt fanebladet til den ønskede placering blandt de andre faneblade." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Fanebladet placeres nærmest hvor du slap fanebladet, lige ved siden af de " +"andre åbne faneblade." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Flyt et faneblad og opret et nyt gedit-vindue" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +#| msgid "To create a new snippet, do the following:" +msgid "To create a new window from an existing tab:" +msgstr "Sådan oprettes et nyt vindue fra et eksisterende faneblad:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Træk fanebladet uden for gedit-vinduet." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Flyt et faneblad til et nyt vindue, når gedit er maksimeret, ved at " +"trække fanebladet til toplinjen øverst på skærmen." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Flyt et faneblad til et andet gedit-vindue" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Hvis du vil flytte et faneblad fra et vindue til et andet:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Træk fanebladet til det nye vindue." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Placer det ved siden af de andre faneblade i det nye vindue." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Det kan være, du synes, det er lettere at flytte et faneblad fra et vindue til " +"et andet ved at trække fanebladet til Aktiviteter-hothjørnet i " +"GNOME Shell. Det viser de åbne gedit-vinduer. Du kan " +"så slippe fanebladet på det ønskede gedit-vindue." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Se tabellen genvejstaster til faneblade" +" for at gøre det lettere at håndtere dine " +"faneblade." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Opret eller luk faneblade i gedit-vinduet." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Tilføj og fjern faneblade" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"At arbejde med faneblade i gedit giver dig mulighed for at holde " +"øje med flere filer i et enkelt vindue. Det faneblad, som er større end de " +"andre faneblade, indeholder den fil, som er åben på nuværende tidspunkt. De mindre " +"faneblade er andre filer, som kan arbejdes på." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +#| msgid "Adding Snippets" +msgid "Adding tabs" +msgstr "Tilføj faneblade" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Tilføj et nyt faneblad ved at oprette en ny fil med Ctrl " +"T. Fanebladet tilføjes til højre for de andre faneblade." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +#| msgid "Remove Trailing Spaces" +msgid "Removing tabs" +msgstr "Fjern faneblade" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Fjern et faneblad ved at klikke på × i højre side " +"af fanebladet. Fjern alle åbne faneblade ved at trykke på " +"Ctrl SkiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Tilbagefør en ændring der blev foretaget for nyligt i en af dine filer." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +#| msgid "Undo the last action." +msgid "Undo a recent action" +msgstr "Fortryd seneste handling" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Hvis du laver en fejl i gedit, så kan du fortryde det " +"ved at trykke på CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "Du kan ikke fortryde en ændring efter du har lukket en gedit-fil." + +#. (itstool) path: info/title +#: C/index.page:8 +#| msgid "text editor" +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Tekstredigeringsprogrammet gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +#| msgid "text editor" +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Tekstredigeringsprogrammet gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Startsiden til gedits hjælpevejledning." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Tekstredigeringsprogrammet gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Velkommen til gedits hjælpevejledning. Få en hurtig introduktion " +"til gedits mest grundlæggende funktioner samt mere avancerede " +"tastaturgenveje ved at besøge siderne Godt i gang med " +"gedit og Genvejstaster." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Andre hjælpeemner er grupperet i afsnit nedenfor. Nyd at bruge " +"gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +#| msgid "Working with Files" +msgid "Working With Files" +msgstr "Arbejd med filer" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Konfigurer gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +#| msgid "Tag List Plugin" +msgid "gedit Plugins" +msgstr "Udvidelsesmoduler til gedit" + +#. (itstool) path: section/title +#: C/index.page:53 +#| msgid "Working with Text" +msgid "Printing with gedit" +msgstr "Udskrivning med gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Kreditering-Deling på samme vilkår 3.0 Ikke porteret-licens" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Værket er licenseret under en <_:link-1/>." diff --git a/help/da/figures/gedit-html-snippet.png b/help/da/figures/gedit-html-snippet.png new file mode 100644 index 0000000..2e1913b Binary files /dev/null and b/help/da/figures/gedit-html-snippet.png differ diff --git a/help/da/figures/gedit3-screenshot.png b/help/da/figures/gedit3-screenshot.png new file mode 100644 index 0000000..1341274 Binary files /dev/null and b/help/da/figures/gedit3-screenshot.png differ diff --git a/help/de/de.po b/help/de/de.po new file mode 100644 index 0000000..4f7b403 --- /dev/null +++ b/help/de/de.po @@ -0,0 +1,4219 @@ +# German translation of the gedit documentation +# +# Jan Arne Petersen , 2007. +# Mario Blättermann , 2008-2013, 2017, 2020. +# Andre Klapper , 2009. +# Wolfgang Stöggl , 2011. +# Gabor Karsay , 2011. +# Benjamin Steinwender , 2014. +# Christian Kirbach , 2011, 2013-2014. +msgid "" +msgstr "" +"Project-Id-Version: gedit help\n" +"POT-Creation-Date: 2020-10-13 16:32+0000\n" +"PO-Revision-Date: 2020-10-26 23:19+0100\n" +"Last-Translator: Christian Kirbach \n" +"Language-Team: Deutsch \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.4.1\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Jan Arne Petersen , 2007\n" +"Mario Blättermann , 2008-2013, 2020\n" +"Christian Kirbach , 2011-2020\n" +"Benjamin Steinwender , 2014-2015" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Text- und Hintergrundfarben in Gedit ändern." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Ändern des Farbschemas" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit liefert bereits verschiedene Farbschemata mit, wodurch " +"Ihnen die Änderung des Erscheinungsbilds des Textfensters ermöglicht wird." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "So ändern Sie das Farbschema:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Öffnen Sie das Menü rechts oben im Fenster und wählen Sie in diesem " +"EinstellungenSchrift und Farben." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Wählen Sie Ihr gewünschtes Farbschema aus." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Das neue Farbschema wird unmittelbar angewendet." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Verwenden eines benutzerdefinierten Farbschemas" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Sie können Farbschemata verwenden, die von anderen erstellt wurden, oder " +"Ihre eigenen Farbschemata erstellen und verwenden." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Anweisungen zur Installation von Farbschemata sowie Beispiele zum " +"Herunterladen, sind im gedit-Wiki verfügbar." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "" +"Verwenden einer benutzerdefinierten Schriftart für Ihren Text in Gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Ändern der vorgegebenen Schriftgröße" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit verwendet standardmäßig die dicktengleiche Schrift des " +"Systems, aber Sie können die Standardschrift nach Ihren Wünschen ändern." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "So ändern Sie die vorgegebene Schriftgröße in gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Wählen Sie BearbeitenEinstellungenSchrift und Farben." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Deaktivieren Sie das Ankreuzfeld Dicktengleiche Schrift des Systems " +"benutzen." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Klicken Sie auf den aktuellen Schriftnamen. gedit öffnet ein " +"Schriftwähler-Fenster, in welchem die verfügbaren Schriften angezeigt werden " +"und Sie die gewünschte Schrift auswählen können." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Nachdem Sie die gewünschte Schrift ausgewählt haben, verwenden Sie den " +"Schieberegler unter der Schriftenliste, um die Schriftgröße " +"einzustellen." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "" +"Klicken Sie auf Auswählen und anschließend auf Schließen." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Die aktuell verwendete Datei beenden." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Eine Datei schließen" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Um eine Datei in gedit zu schließen, klicken Sie auf den Knopf " +"× rechts im Reiter der Datei oder drücken Sie " +"StrgW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Durch jede dieser Aktionen wird eine Datei in gedit geschlossen. " +"Falls Ihre Datei ungespeicherte Änderungen enthalten sollte, fragt " +"gedit nach, ob die Änderungen vor dem Schließen der Datei " +"gespeichert werden sollen." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Eine neue Datei zum Bearbeiten öffnen." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Eine neue Datei anlegen" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"Der einfachste Weg eine neue Datei in gedit anzulegen ist es, auf " +"den Knopf Ein neues Dokument erstellen links in der Kopfleiste zu " +"klicken oder StrgT zu drücken." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Durch jede dieser Aktionen wird eine neue Datei im gedit-Fenster " +"erstellt. Falls bereits andere Dateien in gedit geöffnet sind, " +"erscheint die neue Datei in einem neuen Reiter rechts neben diesen Dateien." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Administratorberechtigungen zum Bearbeiten einer Datei verwenden." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Bearbeiten einer Datei als root-Benutzer (Systemverwalter)" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Bearbeiten von Dateien mit den Rechten des Systemverwalters kann potenziell " +"gefährlich sein. Ihr System könnte auf unvorhersehbare Weise beschädigt " +"werden. Lassen Sie die nötige Vorsicht walten, wenn Sie Dateien so " +"bearbeiten." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Um Dateien als Systemverwalter zu bearbeiten, starten Sie gedit " +"folgendermaßen im Terminal:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Mit dem Befehl sudo müssen Sie zunächst erfolgreich Ihr Passwort " +"eingeben, bevor gedit geöffnet wird." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Alternativ zum sudo-Befehl können Sie Systemverwalterrechte auf " +"folgende Weise erlangen:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Sie müssen dann gedit mit dem Befehl gedit starten." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Sobald Sie gedit mit Systemverwalterrechten geöffnet haben, " +"werden diese Rechte beibehalten, bis Sie die Anwendung schließen." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Erfahren Sie die Grundlagen zum Arbeiten mit Dateien in Gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Grundlagen zu Dateien: Öffnen, Schließen und Speichern" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Falls Sie noch nicht mit gedit vertraut sind, helfen Ihnen diese " +"Themen beim Erstellen, Speichern, Öffnen und Schließen von Dateien." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Stellen Sie Gedit ein, den gesamten Bildschirm zu verwenden." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Den Vollbildmodus verwenden" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Beim Arbeiten mit großen Dokumenten ist es möglicherweise sinnvoll, im " +"Vollbildmodus zu arbeiten. Im Vollbildmodus werden die Menüleiste, die Reiterleiste und die Werkzeugleiste nicht " +"angezeigt. Auf diese Weise ist mehr Text sichtbar und Sie können sich besser " +"auf Ihre Aufgaben konzentrieren." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "In den Vollbildmodus schalten" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Um den Vollbildmodus einzuschalten, drücken Sie F11. Das Menü, " +"der Titel und die Reiterleisten von gedit werden verborgen und " +"nur der Text der aktuell geöffneten Datei bleibt sichtbar." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Falls Sie eine Aktion ausführen wollen, während sich gedit im " +"Vollbildmodus befindet, bewegen Sie den Mauszeiger an den oberen Rand des " +"Bildschirms. Daraufhin erscheint die Menüleiste von gedit, in " +"welcher Sie die gewünschte Aktion auswählen können." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Um im Vollbildmodus zwischen geöffneten Reitern umzuschalten, drücken Sie " +"entweder StrgAltBild auf " +"oder StrgAltBild ab." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Den Vollbildmodus ausschalten" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Um den Vollbildmodus zu verlassen und zum normalen gedit-Fenster " +"zurückzukehren, drücken Sie F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Sie können auch den Mauszeiger an den oberen Rand des Bildschirms bewegen, " +"um die Menüleiste anzuzeigen. Wenn die Menüleiste " +"erscheint, klicken Sie dann auf Vollbild verlassen." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Verwenden der Seitenleiste von Gedit zur Dateiauswahl." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Betrachten und Öffnen von Dateien aus der Seitenleiste" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Der am häufigsten verwendete Weg zum Wechseln zwischen Dateien in " +"gedit ist das Anklicken der Reiter im oberen Teil des gedit-Fensters. In bestimmten Fällen kann es jedoch sinnvoll sein, die " +"Seitenleiste zu verwenden, insbesondere dann, wenn Sie eine größere Anzahl " +"von Dateien geöffnet haben." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Um die Seitenleiste zu aktivieren, wählen Sie AnsichtSeitenleiste oder drücken Sie F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Sie können die Sichtbarkeit der Seitenleiste jederzeit durch Drücken von " +"F9 an- oder ausschalten." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Dateien über die Seitenleiste öffnen" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Um Dateien über die Seitenleiste öffnen zu können, öffnen Sie zunächst die " +"Seitenleiste selbst durch Wählen von AnsichtSeitenleiste (oder drücken Sie einfach F9) und klicken Sie anschließend auf das Dateiverwaltungssymbol " +"am unteren Ende der Seitenleiste." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Dadurch wird der Dateiverwaltungsmodus der Seitenleiste aktiviert. " +"Sie können dann die Navigationsknöpfe oben in der Seitenleiste verwenden, um " +"die gewünschten Dateien zu suchen und zu öffnen." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Verwenden der Seitenleiste zum Wechsel zwischen geöffneten Dateien" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Wenn mehrere Dateien geöffnet sind, können Sie die Seitenleiste zum Wechseln " +"zwischen den geöffneten Dateien verwenden. Um offene Dateien aufzulisten, " +"wählen Sie Dokumente aus der Auswahlliste oben in der " +"Seitenleiste." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Durch Anklicken eines Dateinamens in der Seitenleiste wird diese Datei zur " +"Bearbeitung geöffnet." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Öffnen Sie Dateien, um mit ihnen zu arbeiten." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Eine Datei oder mehrere Dateien öffnen" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Um eine Datei in gedit zu öffnen, klicken Sie auf den Knopf " +"Öffnen oder drücken Sie StrgO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Daraufhin wird der Dateien öffnen-Dialog verborgen. Wählen Sie " +"mit der Maus oder der Tastatur die zu öffnende Datei aus und klicken Sie " +"anschließend auf Öffnen. Die von Ihnen ausgewählte Datei wird in " +"einem neuen Reiter geöffnet." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Um den Dateien öffnen-Dialog zu schließen, ohne eine Datei zu " +"öffnen, klicken Sie auf Abbrechen." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Sie können mit der Strg-Taste und der Umschalttaste " +"mehrere Dateien gleichzeitig öffnen. Halten Sie die Strg-Taste " +"gedrückt, um mehrere Dateien zu öffnen. Ein Klick auf Öffnen " +"öffnet dann jede der ausgewählten Dateien." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Durch Gedrückthalten der Umschalttaste werden die erste gewählte " +"Datei, die letzte gewählte Datei und alle in der Ansicht dazwischen " +"liegenden Dateien geöffnet." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "" +"Greifen Sie auf Dateien zu, die auf einem anderen Rechner gespeichert sind." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Öffnen einer Datei auf einem Server" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Vor dem Öffnen einer Datei in gedit, die sich auf einem Server " +"befindet, sollten Sie über einige technische Informationen über den Server " +"verfügen. Beispielsweise müssen Sie die IP-Adresse oder Adresse (URL) des " +"Servers sowie die Art des Servers kennen (z.B. HTTP, FTP usw.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Außerdem schränken einige Servertypen die Nutzung der auf dem Server " +"gespeicherten Dateien ein. Sie könnten beispielsweise in der Lage sein, eine " +"Datei auf einem Server zu öffnen, aber die geänderte Datei nur lokal auf " +"Ihrem eigenen Rechner speichern können." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Führen Sie unter Beachtung dieser Beschränkungen die folgenden Schritte aus, " +"um mit gedit eine Datei auf einem Server zu öffnen:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Klicken Sie in der Kopfleiste auf Öffnen." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Klicken Sie auf Weitere Orte …." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "" +"Geben Sie die IP-Adresse oder Adresse (URL) des entsprechenden Servers ein." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Suchen Sie die zu öffnende Datei und wählen Sie sie aus." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Verwenden Sie die Zeichenkodierung-Auswahlliste, um die passende " +"Zeichenkodierung auszuwählen." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Klicken Sie auf Öffnen." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Zu den zulässigen Typen für URI (Adresse) gehören http:, ftp:, file: sowie alle anderen von GVfs unterstützten " +"Methoden." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Dateien mancher URI-Typen werden nur als lesbar geöffnet, so dass jegliche " +"von Ihnen ausgeführte Änderungen an einem anderen Ort gespeichert werden " +"müssen. HTTP ermöglicht beispielsweise nur das Lesen von Dateien. Auf einem " +"FTP-Server liegende Dateien werden auch als nur lesbar geöffnet, weil nicht " +"alle FTP-Server entfernte Dateien korrekt speichern können." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "" +"Greifen Sie auf Dateien zu, die Sie kürzlich in gedit geöffnet " +"haben." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Erneutes Öffnen einer bereits verwendeten Datei" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit ermöglicht einfachen Zugriff auf die zehn zuletzt " +"verwendeten Dateien, die Sie bereits in gedit geöffnet haben. Um " +"eine solche Datei zu öffnen, führen Sie die folgenden Schritte aus:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Klicken Sie auf den Pfeilknopf neben dem Öffnen-Knopf in der " +"Kopfleiste." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "" +"gedit zeigt daraufhin ein Menü mit den zehn zuletzt verwendeten " +"Dateien an." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "" +"Wählen Sie die gewünschte Datei aus, und sie wird im nächsten verfügbaren " +"Reiter geöffnet." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Wenn Sie mit dem Mauszeiger über eine der zuletzt geöffneten Dateien im Menü " +"fahren, wird der vollständige Pfad zu dieser Datei in der Statusleiste am " +"unteren Rand des gedit-Fensters angezeigt." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Verwenden Sie Erweiterungen, um Ihre Arbeit mit Gedit anzupassen." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Einrichten und Verwenden von Gedit-Erweiterungen" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Sie können mit Hilfe von Erweiterungen mehr mit gedit tun. " +"Verschiedene Erweiterungen sind bereits standardmäßig installiert, außerdem " +"sind weitere Erweiterungen separat erhältlich." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Viele Linux-Distributionen fassen die verfügbaren Erweiterungen in einem " +"Paket namens gedit-plugins zusammen. Installieren Sie dieses " +"Paket, um die Erweiterungen für gedit verfügbar zu machen." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"gedit-plugins installieren" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Vorgegebene gedit-Erweiterungen" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Zusätzliche gedit-Erweiterungen" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Die Groß- oder Kleinschreibung für den ausgewählten Text ändern." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Groß-/Kleinschreibung verändern" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Diese Erweiterung hilft Ihnen dabei, für einen ausgewählten Textteil die " +"Groß- und Kleinschreibung zu ändern. Sie können dabei alles in " +"Kleinschreibung oder auch in Großschreibung ändern lassen, die Schreibweise " +"umkehren oder auch nur die Anfangsbuchstaben jedes Wortes als Großbuchstaben " +"darstellen lassen. Um diese Erweiterung zu aktivieren, wählen Sie " +"BearbeitenEinstellungenErweiterungenGroß-/Kleinschreibung " +"ändern." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Sobald die Erweiterung Groß-/Kleinschreibung ändern aktiviert ist, " +"können Sie es zur Ausführung folgender Aufgaben verwenden:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Markieren Sie den Bereich des Texts, den Sie ändern wollen." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Wählen Sie geditGroß-/Kleinschreibung " +"ändern." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Wählen Sie die gewünschte Option zur Textformatierung." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Die Textformatierung wird unmittelbar aktualisiert." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Die Option Groß-/Kleinschreibung umkehren kehrt die Groß- und " +"Kleinschreibung um. Jeder Kleinbuchstabe wird zu einem Großbuchstaben, jeder " +"Großbuchstabe zu einem Kleinbuchstaben." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Mit der Option Anfangsbuchstaben in Großschreibung wird jeder " +"Anfangsbuchstabe eines Wortes groß geschrieben. Alle anderen Buchstaben " +"eines Wortes werden dagegen klein geschrieben." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Falls kein Text markiert ist, ist die Option Groß-/Kleinschreibung " +"ändern nicht anwählbar. Sie müssen zunächst einen Textteil markieren, " +"bevor Sie dieses Funktionsmerkmal verwenden können." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Statistiken zum Dokument betrachten." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Statistiken zum Dokument" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Die Erweiterung Statistik zum Dokument zeigt Ihnen verschiedene " +"statistische Werte zu Ihrem aktuell geöffneten Dokument an. Um diese " +"Erweiterung zu aktivieren, wählen Sie geditEinstellungenErweiterungenStatistik zum Dokument." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Verwendung von Statistiken zum Dokument" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Sobald die Erweiterungen aktiviert ist, wählen Sie WerkzeugeStatistik zum Dokument, um es zu verwenden. In einem " +"separaten Fenster werden statistische Informationen zu Ihrem Dokument " +"angezeigt, wie die Anzahl der Wörter, Zeilen und Zeichen, Nicht-Leerzeichen, " +"sowie die Größe der Datei in Byte." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Sie können die Statistik zum Dokument auch dazu verwenden, um " +"Informationen nur über einen bestimmten Teil eines Dokuments anzuzeigen. " +"Markieren Sie hierzu mit der Maus den Teil des Textes, der untersucht werden " +"soll. Wählen Sie anschließend WerkzeugeStatistik zum " +"Dokument. Gedit zeigt daraufhin sowohl " +"statistische Informationen für das gesamte Dokument als auch für den von " +"Ihnen markierten Teil an." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Skripte mit Ihren gegenwärtigen Dateien ausführen und mit anderen " +"Anwendungen interagieren." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Externe Werkzeuge" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Die Erweiterung Externe Werkzeuge kann Ihnen dabei helfen, häufig " +"wiederkehrende Aufgaben zu vereinfachen. Im einzelnen handelt es sich dabei " +"um Erweiterungen für gedit zum Anwenden von Skripten beim " +"Arbeiten mit Dateien oder für die Interaktion mit anderen auf Ihrem Rechner " +"installierten Programmen. Um die Erweiterung Externe Werkzeuge zu " +"aktivieren, wählen Sie geditEinstellungenErweiterungenExterne " +"Werkzeuge." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Konfiguration der Erweiterung für externe Werkzeuge" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Wenn Sie die Erweiterung aktiviert haben, müssen Sie sie noch entsprechend " +"Ihrer Erfordernisse einrichten. Wählen Sie hierzu WerkzeugeExterne Werkzeuge verwalten." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Diese Erweiterung ist für fortgeschrittene Benutzer gedacht und erfordert " +"Grundwissen im Schreiben von Skripten, um effektiv genutzt werden zu können. " +"Verwenden Sie diese Erweiterung mit Sorgfalt, da Fehler in Ihren Skripten " +"Ihre Arbeit auf unerwünschte Weise beeinflussen könnten." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Verwenden der Seitenleiste zum Durchsuchen und Öffnen von Dateien." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Dateiverwaltungsleiste" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Abhängig davon, wie Sie gedit verwenden, könnte die " +"Dateiverwaltungsleiste-Erweiterung nützlich sein. Diese " +"Erweiterung bettet eine Dateiverwaltung in die Seitenleiste ein, " +"über die Sie einfachen Zugriff auf häufig verwendete Dateien erhalten." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Aktivieren Sie die Seitenleiste, indem Sie geditEinstellungenErweiterungenDateiverwaltungsleiste wählen." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Das heutige Datum und die aktuelle Uhrzeit an der Textmarke einfügen." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Datum/Uhrzeit einfügen" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Wie der Name dieser Erweiterung bereits vermuten lässt, ermöglicht Ihnen " +"Datum und Uhrzeit einfügen das Einfügen der/des aktuellen Datums/" +"Uhrzeit an der aktuellen Cursorposition." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "So aktivieren Sie die Erweiterung:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Öffnen Sie das Menü rechts oben im Fenster und wählen Sie in diesem " +"EinstellungenErweiterungen." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Wählen Sie Sortieren, um die Erweiterung zu " +"aktivieren." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Um die Erweiterung zu verwenden, klicken Sie auf den Menüknopf in der oberen " +"rechten Ecke des Fensters und wählen Sie Werkzeuge Datum und Uhrzeit einfügen …." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Standardmäßig fragt Sie die Datum/Uhrzeit einfügen-Erweiterung " +"jedes Mal beim Aufruf der Erweiterung nach dem von Ihnen bevorzugten Format " +"für Datum und Uhrzeit. Sie können jedoch auch Ihr bevorzugtes Format global " +"festlegen. Klicken Sie hierzu auf den Menüknopf in der rechten oberen Ecke " +"des Fensters und wählen Sie EinstellungenErweiterungenDatum/" +"Uhrzeit einfügenEinstellungen." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Installieren von Drittanbieter-Erweiterungen." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Zusätzliche gedit-Erweiterungen" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Durch Installation von Erweiterungen von Drittanbietern wird zusätzliche " +"Funktionalität ermöglicht, die standardmäßig nicht in gedit oder " +"den zusätzlichen Erweiterungen im Paket gedit-plugins enthalten " +"sind. Eine Online-Liste solcher Erweiterungen finden Sie hier." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Um eine Drittanbieter-Erweiterung zu installieren, müssen Sie sie " +"herunterladen, die Dateien am richtigen Ort platzieren und die Erweiterung " +"aktivieren." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Üblicherweise können Sie ein Plugin von dessen Webseite herunterladen, wofür " +"eventuell ein Versionsverwaltungsprogramm wie git, bazaar oder subversion nötig sein könnte, um den Softwarebestand " +"des Plugins aus dem Internet kopieren zu können. Schauen Sie für weitere " +"Informationen in der Dokumentation zu dem Plugin nach." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Kopieren Sie die Plugindateien in den Ordner /home/Benutzername/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Natürlich müssen Sie das Wort Benutzername durch Ihren eigenen " +"Benutzernamen ersetzen." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Sobald Sie die Erweiterungs-Dateien im richtigen Ordner installiert haben, " +"erscheint die Erweiterung im Einstellungsmenü. Klicken Sie auf den Menüknopf " +"in der rechten oberen Ecke des Fensters und wählen Sie EinstellungenErweiterungen[Name der Erweiterung] , um die Erweiterung zu " +"aktivieren." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Klicken Sie auf Schließen." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Sobald Sie die Erweiterung aktiviert haben, sollte sie direkt verwendbar " +"sein." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Der Ordner .local ist standardmäßig verborgen. Um ihn und " +"andere verborgene Dateien sichtbar zu machen, wählen Sie " +"AnsichtVerborgene Dateien anzeigen " +"oder drücken Sie StrgH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Falls der Ordner .local/share/gedit/plugins/ in Ihrem System " +"nicht existiert, müssen Sie ihn erstellen." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Unterstützung für Emacs-, Kate- und Vim-Modelines in Gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Modelines" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Die Modelines-Erweiterung ermöglicht gedit die Analyse " +"von bestimmten Textzeilen am Beginn und Ende einer Datei, wodurch dort " +"enthaltene Dokumenteinstellungen auf die Datei angewendet werden können. Die " +"Modelines-Erweiterung unterstützt einen Teil der von den Editoren " +"Emacs, Kate und Vim verwendeten Optionen." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Um die Modelines-Erweiterung zu aktivieren, wählen Sie " +"geditEinstellungenErweiterungenModelines." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Allgemeine Optionen für Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Die folgenden Optionen können in gedit für Modelines festgelegt " +"werden:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tablulatorbreite" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Einrückbreite" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Leerzeichen an Stelle von Tabulatoren einfügen" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Textumbruch" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Breite des rechten Rands" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Die mithilfe von Modelines vorgenommenen Einstellungen haben Vorrang " +"gegenüber den Festlegungen im Einstellungsdialog." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs-Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Die ersten zwei Zeilen eines Dokuments werden für Emacs-Modelines " +"eingelesen, wobei gedit die folgenden Modelines von Emacs unterstützt:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width (Tabulatorbreite)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset (Einrückung)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode (Einrückung-Tabulator-Modus)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap (Text automatisch umbrechen)" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Weitere Informationen über Emacs-Modelines finden Sie im GNU Emacs-" +"Handbuch." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate-Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Die ersten und die letzten jeweils zehn Zeilen werden für Kate-" +"Modelines eingelesen, wobei gedit die folgenden Modeline-Optionen " +"von Kate unterstützt:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width (Tabulatorbreite)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width (Einrückungsbreite)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent (Leerzeichen-Einrückung)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap (Wortumbruch)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Weitere Informationen über Kate-Modelines finden Sie auf der " +"Kate-Website." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim-Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Die ersten und die letzten jeweils drei Zeilen eines Dokuments werden für " +"Vim-Modelines eingelesen, wobei gedit die folgenden " +"Modeline-Optionen von Vim unterstützt:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap (Umbruch)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth (Textbreite)" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Weitere Informationen zu Vim-Modelines finden Sie auf der Vim-Website." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Eine interaktive Python-Konsole am unteren Rand hinzufügen." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Python-Konsole" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Sie können eine Python-Konsole in die untere Leiste einfügen, in welcher Sie " +"Python-Skripte testen können, ohne gedit zu verlassen. Um die " +"Python-Konsole zu aktivieren, wählen Sie geditEinstellungenErweiterungenPython-Konsole." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Sobald die Python-Konsole aktiviert ist, öffnen Sie sie mittels " +"AnsichtFußleiste." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Falls Sie außerdem das Eingebettete Terminal aktiviert haben, " +"erscheint die Python-Konsole in einem separaten Reiter in der " +"Fußleiste." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Eine Datei oder mehrere Dateien schnell öffnen." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Schnelles Öffnen" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Wie der Name dieser Erweiterung bereits andeutet, können Sie mit der " +"Erweiterung Schnelles Öffnen Dateien schneller öffnen als auf " +"gewöhnliche Weise. Um diese Erweiterung zu aktivieren, wählen Sie " +"geditEinstellungenErweiterungenSchnelles Öffnen." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Sobald Sie die Erweiterung Schnelles Öffnen aktiviert haben, " +"können Sie sie wie folgt verwenden:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Öffnen Sie den Schnelles Öffnen-Dialog durch Drücken von " +"StrgAltO oder wählen Sie " +"Schnelles Öffnen." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Der Dialog Schnelles Öffnen erscheint." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Wählen Sie mit der Maus die Datei oder die Dateien aus, die Sie öffnen " +"wollen." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Um mehrere Dateien zu öffnen, halten Sie die Strg-Taste gedrückt, " +"während Sie die zu öffnenden Dateien anklicken." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Um eine Gruppe von Dateien auszuwählen, klicken Sie auf die erste zu " +"öffnende Datei, halten Sie die Umschalttaste gedrückt und klicken " +"Sie dann auf die letzte Datei in der Liste, die Sie auswählen wollen." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Schnelles Öffnen sucht nach Dateien in:" + +# Teil einer Liste +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Dem Ordner des aktuell geöffneten Dokuments" + +# Teil einer Liste +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"Der Hauptordner der Dateiverwaltungsleisten-Erweiterung" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Kürzlich verwendete Dokumente, die auch in dem Ordner Zuletzt " +"verwendet in Dateien angezeigt werden." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "" +"Ordner, für die Sie in Dateien ein Lesezeichen angelegt haben" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Ihr Schreibtischordner" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Ihr persönlicher Ordner" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Schnelles Öffnen zeigt Dateien in jeder der obigen Orte " +"unabhängig davon, ob sie diese zuvor bereits geöffnet haben." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Schnipsel zum schnellen Einfügen oft genutzter Textteile verwenden." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Schnipsel" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Schnipsel bieten eine bequeme Möglichkeit, wiederkehrende Code-" +"Teile in Ihre Dateien einzufügen. Beispielsweise fügt ein HTML-Schnipsel für " +"den <img>-Tag die öffnenden und schließenden Teile für " +"diesen Tag ein sowie feste Plätze zum Eingeben von Bildattributen. Dadurch " +"wird das Schreiben des Codes einfacher und schneller." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Die Schnipsel-Erweiterung aktivieren" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "So aktivieren Sie die Schnipsel-Erweiterung:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Wählen Sie geditEinstellungenErweiterungen." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Wählen Sie Schnipsel, um die Erweiterung zu " +"aktivieren." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Schnipsel durchsuchen" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "So durchsuchen Sie verfügbare Schnipsel:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Wählen Sie WerkzeugeSchnipsel verwalten." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Stellen Sie sicher, dass die Syntax richtig festgelegt ist. Die Statuszeile " +"am unteren Rand des gedit-Fensters zeigt die aktuelle " +"Spracheinstellung an, welche gedit ermöglicht, die richtigen " +"Schnipsel einzufügen. Gedit erkennt normalerweise die Sprache " +"oder Syntax der verwendeten Datei automatisch, aber gelegentlich werden Sie " +"sie selbst festlegen müssen." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "In diesem Beispiel ist die Sprache auf HTML gesetzt." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "original" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Durchsuchen Sie die Schnipsel, die für Ihre Sprache oder Syntax verfügbar " +"sind." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Schnipsel verwenden" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "So fügen Sie einen Schnipsel in Ihr aktuelles Dokument ein:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Tippen Sie den gewünschten Schnipselname an beliebiger Stelle in Ihrem " +"aktuellen Dokument." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Drücken Sie die Tabulatortaste, um Schnipsel einzufügen, die mit " +"dem Eingabebegriff verknüpft sind." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Beispiel für den Einsatz von Schnipseln" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Wenn Sie die Syntax beispielsweise auf HTML gesetzt haben, geben " +"Sie head ein und drücken Sie die Tabulatortaste. " +"Daraufhin sollte automatisch Folgendes erscheinen:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Schnipsel hinzufügen" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Sie können neue Schnipsel hinzufügen, die entweder global (d.h. sprachweit) " +"oder nur für eine bestimmte Syntax funktionieren." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Wählen Sie WerkzeugeSchnipsel verwalten." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Wählen Sie in der Seitenleiste namens Schnipsel verwalten die " +"gewünschte Syntax und klicken Sie dann auf den »+«-Knopf, um bereits für die " +"gewählte Syntax vorhandene Schnipsel aufzulisten." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Wählen Sie Global in der Seitenleiste Schnipsel verwalten, um ein Schnipsel hinzuzufügen, das global funktioniert (d.h. wenn " +"keine Sprache oder Syntax für das Dokument festgelegt ist)." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Klicken Sie auf das Plus-Symbol in der Seitenleiste Schnipsel " +"verwalten, um einen neuen Schnipsel hinzuzufügen." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Geben Sie einen Namen für den neuen Schnipsel ein. Der Schnipselname ist " +"beliebig." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Sie müssen im Abschnitt Aktivierung einen Begriff " +"für den Textbereich Tabulatorauslösung: eingeben. " +"Verwenden Sie dann diesen Begriff, um Ihren Schnipsel einzufügen." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Geben Sie den für den Schnipsel gewünschten Text im Textbereich unter Bearbeiten: ein. Verwenden Sie ${n}, um " +"Variaben zu definieren, wobei n durch eine Zahl ersetzt wird, " +"welche die numerische Reihenfolge der enthaltenen Variablen darstellt." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Beispiel für einen neuen Schnipsel" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Nehmen wir an, Sie hätten einen Textschnipsel mit dem Begriff Grüße in Tabulator-Auslöser:. Der Textbereich Bearbeiten: enthält:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Sie können diesen Schnipsel einfügen, indem Sie Grüße eintippen " +"und die Tabulatortaste drücken. Der folgende Textschnipsel wird " +"eingefügt:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Die Worte »wunderbar« und »erstaunlich« können beibehalten oder gelöscht " +"werden, je nach Ihrer Wahl der Nutzung?. Drücken Sie dazu die " +"Tabulatortaste und wählen Sie zwischen »wunderbar« und " +"»erstaunlich« und drücken Sie Entf, um die ungewünschte Option zu " +"entfernen." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Textzeilen alphabetisch sortieren." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Sortieren" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Die Erweiterung Sortieren sortiert ausgewählte Textzeilen in " +"alphabetischer Reihenfolge." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Die Sortieren-Erweiterung aktivieren" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "So aktivieren Sie die Sortieren-Erweiterung:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Wählen Sie Sortieren, um die Erweiterung zu " +"aktivieren." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Die Sortieren-Erweiterung verwenden" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "So verwenden Sie die Sortieren-Erweiterung:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Wählen Sie die gewünschten Textzeilen aus." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Wählen Sie WerkzeugeSortieren …." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Der Sortierdialog wird geöffnet, in welchem Sie aus verschiedenen " +"Sortieroptionen wählen können:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Reihenfolge umkehren sortiert den Text in umgekehrter " +"alphabetischer Reihenfolge." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Duplikate entfernen entfernt doppelt vorhandene Einträge in der " +"Liste." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Groß-/Kleinschreibung ignorieren lässt unterschiedliche Groß-/" +"Kleinschreibung außer Acht." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Damit die Sortierung die Zeichen am Beginn der Zeile unberücksichtigt lässt, " +"legen Sie das erste für die Sortierung zu verwendende Zeichen im " +"Einstellfeld Beginnen bei Spalte: fest." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "" +"Starten Sie den Sortiervorgang anschließend, indem Sie auf den Knopf " +"Sortieren klicken." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Legen Sie eine bestimmte Druckreihenfolge der Seiten fest." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Kopien eines Ausdrucks in der richtigen Reihenfolge ausgeben" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Rückwärts" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Drucker geben üblicherweise die erste Seite zuerst aus, und die letzte Seite " +"zuletzt. Auf diese Weise gelangen die Seiten in umgekehrter Reihenfolge in " +"den sich ergebenden Papierstapel. So kehren Sie die Reihenfolge um:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Wählen Sie DateiDrucken." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Aktivieren Sie im Reiter Allgemein des " +"Druckfensters unter Kopien das Ankreuzfeld Rückwärts." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Die letzte Seite wird zuerst gedruckt, und so weiter." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Zusammentragen" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Falls Sie mehrere Kopien eines Dokuments drucken, werden die Ausdrucke " +"seitenweise zusammengefasst. Das heißt, dass zuerst alle Kopien der ersten " +"Seite ausgegeben werden, danach alle Kopien der zweiten Seite usw. Durch " +"Zusammentragen sorgen Sie dafür, dass die Ausdrucke nach Kopie und nicht " +"seitenweise zusammengefasst werden." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "So tragen Sie zusammen:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Klicken Sie auf DateiDrucken." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Aktivieren Sie im Reiter Allgemein des " +"Druckfensters unter Kopien das Ankreuzfeld Zusammentragen." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Drucken Sie die Dateien, die Sie mit Gedit erstellen." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Dokumente drucken" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Drucken mit gedit erfordert einen bereits angeschlossenen und " +"eingerichteten Drucker. Falls dies noch nicht geschehen ist, ziehen Sie " +"bitte die Hilfedokumentation zum " +"Drucken in GNOME zu Rate." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" +"gedit ermöglicht sowohl das Drucken in eine Ausgabedatei als auch " +"das Drucken auf Papier." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Druckvorschau" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Vor dem eigentlichen Drucken Ihres Dokuments können Sie auch in einer " +"Druckvorschau überprüfen, wie Ihr Dokument aussehen wird. So " +"öffnen Sie die Druckvorschau:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Wählen Sie DateiDruckvorschau oder drücken Sie alternativ " +"StrgUmschaltP." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Eine Vorschau Ihres Dokuments öffnet sich im selber Reiter wie die Datei. " +"Schauen Sie sich die Vorschau mit Hilfe der Navigationsknöpfe und der " +"Werkzeuge in der Werkzeugleiste oben im Reiter an. Klicken Sie auf Vorschau verlassen, um zum Dokument zurückzukehren." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Drucken auf Papier" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Sie können Ihre Dokumente mit einem lokalen oder entfernten Drucker " +"ausdrucken. So drucken Sie eine Datei:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Wählen Sie DateiDruckenAllgemein." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "" +"Wählen Sie den gewünschten Drucker aus der Liste der verfügbaren Drucker." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Verwenden Sie für eine Voransicht die Druckvorschau. Sobald Sie mit den Einstellungen zufrieden sind, klicken Sie auf Drucken, um die Datei mit einem Drucker auszugeben." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Zusätzlich können Sie im Reiter Seite einrichten: " +"Layout und Papier " +"wählen. Diese Einstellungen sind in allen GNOME-Anwendungen " +"verfügbar. Bitte lesen Sie dazu auch Optionen für Layout und Papier." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Mehrere Kopien und bestimmte Seitenzahlenbereiche drucken" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Die Einstellungen Bereich und Kopien unterstützen Sie dabei:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Drucken in eine Datei" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Sie können auch mit gedit in eine Datei drucken. So drucken Sie " +"Ihre Dokumente in eine Datei eines anderen Formats:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Wählen Sie DateiDruckenIn Datei drucken." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"Drucken ist für die folgenden Dateiformate möglich, aus denen Sie frei " +"wählen können:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Starten Sie den Druckvorgang, indem Sie auf Drucken klicken." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Wählen Sie die Seiten aus, die Sie drucken wollen." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Nur bestimmte Seiten drucken" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Sie können gezielt nur bestimmte Seiten eines Dokuments drucken. Wenn Sie " +"beispielsweise die Seitenzahlen »1,3,5-7,9« eingeben, so werden nur die " +"Seiten 1, 3, 5, 6, 7 und 9 gedruckt. So drucken Sie Seiten Ihrer Wahl:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Wählen Sie DateiDrucken …." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Wählen Sie im Reiter Allgemein des Druckfensters " +"Seiten im Abschnitt Bereich." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Geben Sie die Nummern der zu druckenden Seiten in das Textfeld ein, durch " +"Kommata getrennt. Verwenden Sie einen Bindestrich, um einen " +"zusammenhängenden Bereich anzugeben." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Eine kurze Einführung in Gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Erste Schritte mit Gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit ist ein voll ausgestatteter Texteditor für die GNOME-" +"Arbeitsumgebung. Sie können damit einfache Notizen und Dokumente bearbeiten, " +"aber auch fortgeschrittene Funktionsmerkmale nutzen, um sich eine eigene " +"Umgebung zur Softwareentwicklung zu schaffen." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "translated" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Sobald gedit gestartet ist, können Sie sofort mit dem Schreiben " +"beginnen. Um Ihren Text zu speichern, klicken Sie auf den Speichern-Knopf in der Kopfleiste von gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Um mehr über zusätzliche Funktionsmerkmale von gedit zu erfahren " +"und Hilfe bei der Ausführung zusätzlicher Aufgaben zu erhalten, lesen Sie " +"die anderen Abschnitte der Hilfe zu gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Einen Textteil in einer Datei ersetzen." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Ersetzen von Text" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Die Bearbeitung von Text kann recht viel Zeit in Anspruch nehmen. Um Zeit zu " +"sparen, bietet gedit eine Ersetzungsfunktion, die " +"Ihnen beim Auffinden und Ersetzen von Textbestandteilen hilft." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Text in gedit ersetzen" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Öffnen Sie das Werkzeug Ersetzen über MenüSuchen und Ersetzen … " +"oder drücken Sie StrgH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Geben Sie den zu ersetzenden Text im Feld Suchen ein." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Geben Sie den neuen Ersatztext im Feld Ersetzen durch ein." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Sobald Sie den ursprünglichen als auch den Ersetzungstext eingegeben haben, " +"haben Sie die Möglichkeit zusätzliche Suchparameter festzulegen. Wählen Sie " +"auch aus, was Sie ersetzen wollen:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Um nur das nächste Auftreten der Zeichenkette im Dokument zu " +"ersetzen, klicken Sie auf Ersetzen." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Um jedes Auftreten der Zeichenkette im Dokument zu ersetzen, " +"klicken Sie auf Alle ersetzen." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Verwenden Sie die Funktion Alle ersetzen mit Vorsicht. Alle " +"ersetzen wirkt sich unmittelbar auf den gesamten Text aus und " +"ermöglicht Ihnen nicht die Hervorhebung einzelner Textbestandteile, die " +"ersetzt werden sollen." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Weitere Optionen" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Bei Bedarf können Sie zusätzliche Suchparameter hinzufügen:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Groß-/Kleinschreibung berücksichtigen" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Die Option Groß-/Kleinschreibung berücksichtigen ermöglicht Ihnen " +"anzugeben, ob Sie bei der Suche Groß- und Kleinschreibung berücksichtigen " +"wollen. Wenn diese Option aktiviert ist, wird Groß- und Kleinschreibung " +"berücksichtigt. Falls nicht, wird beim Suchen Groß- und Kleinschreibung " +"nicht berücksichtigt." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Nur vollständige Wörter berücksichtigen" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Verwenden Sie diese Option, um nach einem bestimmten Wort zu suchen, ohne " +"Teile anderer Worte zu berücksichtigen. Wenn Sie beispielsweise bei " +"aktivierter Option nach dem Wort »und« suchen, wird »und« als solches " +"gefunden, jedoch nicht die Wörter »rund« und »Wunder«." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Rückwärts suchen" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Dieser Befehl verhält sich ähnlich wie der Befehl Rückwärts suchen. Wenn Sie Schritt für Schritt vom Ende bis zum Anfang durch die " +"Suchergebnisse gehen wollen, wählen Sie diese Option." + +# Eine lange Wortwurst, aber so steht sie nun mal in der GUI +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Suche beim Erreichen des Endes am Anfang fortsetzen" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Wenn die Option Suche beim Erreichen des Endes am Anfang fortsetzen aktiviert ist, startet gedit die Aktion zum Suchen und " +"Ersetzen am Anfang der Datei neu, sobald das Ende der Datei erreicht ist. " +"Das stellt sicher, dass das Suchen und Ersetzen die gesamte Datei einbezieht." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Escape-Sequenzen verwenden" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Sie können Escape-Sequenzen verwenden, um nach Zeilenumbrüchen, " +"Wagenrückläufen und Tabulatorstopps zu suchen." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Neue Zeile" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Wagenrücklauf" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabulator" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Wenn Sie nach einem \\ (Backslash) oder einer Escape-" +"Sequenz im Text suchen möchten, müssen Sie einen zusätzlichen Backslash " +"verwenden. Zum Beispiel: um nach \\ zu suchen, müssen Sie " +"\\\\ in das Suchen und Ersetzen-Feld eingeben. Sie können " +"nach Escape-Sequenzen auf die selbe Weise suchen: um nach \\t " +"zu suchen, geben Sie \\\\t ein." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Speichen Sie Ihre Datei, um später weiter zu arbeiten." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Eine Datei speichern" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Um eine Datei in gedit zu speichern, klicken Sie auf den Knopf " +"Speichern rechts in der Kopfleiste, oder drücken " +"Sie StrgS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Wenn Sie eine neue Datei speichern, öffnet sich ein Dialog, in welchem Sie " +"einen Namen für die Datei und den Ordner auswählen können, in dem die Datei " +"gespeichert werden soll." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Einen Textteil in einer Datei suchen." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Nach Text suchen" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Das Suchwerkzeug hilft Ihnen beim Auffinden bestimmter Textteile in Ihrer " +"Datei." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Nach Text suchen" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Öffnen Sie das Suchfenster, indem Sie Menü Suchen … wählen oder " +"StrgF drücken. Dadurch wird die " +"Eingabemarke an den Beginn der Eingabezeile im Suchfenster " +"verschoben." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Geben Sie den zu suchenden Text im Suchfenster ein." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Bei der Eingabe beginnt gedit, die Textteile hervorzuheben, die " +"mit dem eingegebenen Text übereinstimmen." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "Um die Suchergebnisse zu durchsuchen, gehen Sie wie folgt vor:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Klicken Sie auf die nach unten oder oben weisenden Pfeile neben dem Suchfenster oder" + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Drücken Sie die -Taste oder -Taste auf Ihrer " +"Tastatur." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Drücken Sie StrgG oder " +"StrgUmschalttasteG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Um das Suchen-Fenster zu schließen, können Sie entweder die " +"Esc- oder Eingabe-Taste drücken. Wenn Sie Esc drücken, wird der Cursor wieder an der Stelle platziert, wo er vor dem " +"Beginn Ihrer Suche war. Nach dem Drücken von Eingabe wird der " +"Cursor an der aktuellen Position der Suchergebnisse platziert." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Suchtipps" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Wenn Sie einen Textabschnitt mit Ihrer Maus markieren und anschließend " +"StrgF drücken, erscheint der " +"hervorgehobene Text im Suchfenster." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Erweiterte Suchoptionen erreichen Sie, indem Sie auf das Lupensymbol im Suchfenster klicken oder einen Klick mit der rechten " +"Maustaste auf einer beliebigen Stelle des Suchfensters ausführen. Sie haben " +"die Wahl zwischen einer oder mehrerer der folgenden Suchoptionen:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Wählen Sie Groß-/Kleinschreibung berücksichtigen, um die bei der " +"Suche die Groß- und Kleinschreibung zu berücksichtigen." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Wählen Sie Nur vollständige Wörter berücksichtigen, um nach " +"vollständigen Wörtern zu suchen." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Wählen Sie Suche beim Erreichen des Endes am Anfang fortsetzen, " +"um die Suche beim Erreichen des Endes am Anfang fortzusetzen." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Der von Ihnen gesuchte Text wird weiterhin in gedit " +"hervorgehoben, auch nachdem die Suche abgeschlossen ist. Um die Hervorhebung " +"zu entfernen, klicken Sie auf Hervorhebung " +"zurücksetzen oder drücken Sie StrgUmschalttasteK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Prüfen Sie die Rechtschreibung Ihrer Dateien." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Das Dokument auf Rechtschreibfehler prüfen" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Rechtschreibprüfung aktivieren" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Die Rechtschreibkorrektur wird als Erweiterung in gedit angeboten " +"und kann nach Bedarf aktiviert werden. So aktivieren Sie die Erweiterung:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Wählen Sie Rechtschreibprüfung, um die " +"Erweiterung zu aktivieren." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "So prüfen Sie auf falsch geschriebene Wörter in Ihrem Dokument:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Wählen Sie WerkzeugeRechtschreibung prüfen." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Damit gedit automatisch in Ihrem Dokument falsch geschrieben " +"Wörter während des Schreibens hervorhebt, wählen Sie WerkzeugeRechtschreibfehler " +"hervorheben." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Die Rechtschreibprüfung verwenden" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Sie können die korrekte Ersetzung für falsch geschriebene Wörter im Dialog " +"»Rechtschreibung« prüfen wählen. Das falsch geschriebene Wort in Prüfung " +"wird in fetter Schrift neben Falsch geschriebenes Wort: " +"angezeigt. Sie können eine der folgenden korrigierenden Aktionen wählen:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Ändern in: ermöglicht es Ihnen ein Wort " +"einzugeben und mittels Wort prüfen die " +"Rechtschreibung zu prüfen." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Vorschläge: Führt mögliche Substitutionen für das " +"Wort auf." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorieren überspringt die Rechtschreibprüfung " +"einmal für das aktuelle Wort." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Alle ignorieren überspringt die " +"Rechtschreibprüfung für alle Vorkommen des aktuellen Worts." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Ändern ersetzt das falsch geschriebene oder " +"unbekannte Wort mit einem gewählten Ersatz aus der Liste der Vorschläge: ." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Alle ändern ersetzt alle falsch " +"geschriebenen oder unbekannten Wörter mit dem gewählten Ersatz aus der Liste " +"der Vorschläge:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Wort hinzufügen ermöglicht es das aktuelle Wort " +"in gedit in das Benutzerwörterbuch aufzunehmen. Indem " +"Sie eigene Wörter in das Benutzerwörterbuch aufnehmen wird " +"gedit das Wort in Dokumenten erkennen und es nicht mehr als " +"falsch geschrieben markieren." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Die Sprache für die Rechtschreibprüfung festlegen" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Standardmäßig verwendet gedit die aktuelle Sprache für die " +"Rechtschreibprüfung Ihres Dokuments. Wenn Sie eine andere Sprache verwenden " +"wollen, wählen Sie WerkzeugeSprache festlegen und wählen dann die gewünschte " +"Sprache aus." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Wörterbücher" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit verwendet Enchant zur Rechtschreibkorrektur, ein kleines " +"Systemprogramm. Enchant kann mehrere verschiedene Wörterbücher zur " +"Rechtschreibprüfung einsetzen. Zwei dieser Wörterbücher sind Hunspell und Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Falls die Sprache, die Sie verwenden möchten, nicht in gedit " +"verfügbar ist, so nutzen Sie die Softwareverwaltung oder die " +"Paketverwaltung, um das Back-End des gewünschten Wörterbuchs zu installieren." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Verwenden Sie Hervorhebung in Ihrem Text, um ihn leichter zu lesen." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Syntax-Hervorhebung aktivieren" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Quelltexthervorhebung" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit bietet Syntax-Hervorhebung für eine breite Auswahl an " +"Auszeichnungs-, Programmier- und wissenschaftlichen Sprachen. Falls " +"gedit die Syntax beim Öffnen einer Datei erkennt, wird der Text " +"automatisch hervorgehoben." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Falls die gewünschte Syntax oder Sprache nicht sofort beim Start angezeigt " +"wird, können Sie die entsprechende Syntax oder Sprache auswählen, indem Sie " +"Ansicht style=\"menuitem" +"\"Hervorhebungsmodus klicken und dann die gewünschte Syntax " +"auswählen. Alternativ können Sie den Namen der Syntax aus einer Liste in der " +"Fußleiste des gedit-Fensters auswählen." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Ähnliche Reiter gemeinsam gruppieren." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Dateien in gruppierten Reitern organisieren" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Wenn Sie mit mehreren Reitern in gedit arbeiten, können Sie diese " +"gruppieren, um es einfacher zu machen, Ihre geöffneten Datein zu " +"organisieren. Das Hinzufügen einer neuen Reitergruppe teilt das gedit-Fenster in zwei Bereiche, öffnet ein neues »Unbenanntes Dokument« im " +"neuen Bereich und aktiviert es. Sie können Dateien in dieser Reitergruppe " +"öffnen und Reiter von einer Gruppe in die andere verschieben." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Eine neue Reitergruppe im gedit-Fenster öffnen" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "So öffnen Sie eine neue Reitergruppe:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Klicken Sie mit der rechten Maustaste auf einen Reiter und wählen Sie " +"In neue Reitergruppe verschieben." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Verwenden Sie die Tastenkombination StrgAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Diese Aktion teilt das gedit-Fenster in zwei Bereiche, wobei die " +"neue Reitergruppe rechts des aktuellen Reiters platziert wird. Sie können " +"den Ziehpunkt rechts oder links ziehen, um mehr oder weniger Platz des " +"gedit-Fensters entsprechend Ihrer Bedürfnisse den Bereichen " +"zuzuweisen." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Sie können so viele Reitergruppen im gedit-Fenster öffnen, wie " +"Ihr Bildschirm es zulässt. Jedoch müssen Sie die Ziehpunkte verschieben, um " +"die Gruppen korrekt anzuzeigen." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Um eine Reitergruppe zu schließen, schließen Sie einfach alle Reiter, die in " +"dieser Gruppe geöffnet sind." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Einen Reiter in eine andere Reitergruppe verschieben" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "" +"So verschieben Sie einen Reiter von einer Reitergruppe in eine andere " +"Reitergruppe:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "" +"Klicken Sie mit der Maustaste auf den Reiter und halten Sie sie gedrückt." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Ziehen Sie den Reiter in eine andere Leiste einer Reitergruppe." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Setzen Sie ihn neben andere Reiter in der Reitergruppe." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Lassen Sie die Maustaste los." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Die Position der Reiter im gedit-Fenster ändern." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Reiter verschieben und neu anordnen" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Reiter in gedit können verschoben werden, wodurch die Arbeit mit " +"Ihren Dateien erleichtert wird. Die Reiter können im gleichen Fenster neu " +"angeordnet werden oder auch aus gedit heraus gezogen werden, " +"wodurch ein neues Fenster geöffnet wird. Es ist auch möglich, einen Reiter " +"aus einem Fenster in ein anderes Fenster zu verschieben." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Die Anordnung der Reiter im gedit-Fenster ändern" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "So ändern Sie die Anordnung der Reiter in einem Fenster:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "" +"Verschieben Sie den Reiter an die gewünschte Position zwischen den anderen " +"Reitern." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Der Reiter wird an der Position platziert, wo Sie den Reiter ablegen, " +"unmittelbar neben anderen geöffneten Reitern." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Einen Reiter in ein neues gedit-Fenster verschieben" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "So erstellen Sie ein neues Fenster aus einem vorhandenen Reiter:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Ziehen Sie den Reiter in ein neues gedit-Fenster." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Um einen Reiter in ein neues Fenster zu verschieben, wenn gedit " +"im maximierten Zustand ist, ziehen Sie den Reiter auf das obere Panel auf " +"dem Bildschirm." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Einen Reiter in ein anderes gedit-Fenster verschieben" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "" +"Wenn Sie einen Reiter von einem Fenster in ein anderes Fenster verschieben " +"wollen:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Ziehen Sie den Reiter in das neue Fenster." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Setzen Sie ihn neben andere Reiter im neuen Fenster." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Vielleicht finden Sie es einfacher, einen Reiter von einem in ein anderes " +"Fenster zu verschieben, in dem Sie ihn in die linke obere Ecke der " +"GNOME Shell ziehen. Dadurch werden alle geöffneten gedit-Fenster angezeigt. Über dem gewünschten gedit-Fenster legen " +"Sie dann den Reiter ab." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Reiter im Gedit-Fenster erstellen oder schließen." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Hinzufügen und Entfernen von Reitern" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Arbeiten mit Reitern in gedit ermöglicht es Ihnen, in einem " +"einzigen Fenster verschiedene Dateien im Auge zu behalten." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Hinzufügen von Reitern" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Um einen neuen Reiter hinzuzufügen, klicken Sie auf den Knopf Ein neues " +"Dokument anlegen links in der Kopfleiste oder drücken Sie " +"StrgT. Der Reiter wird an der rechten " +"Seite aller anderen Reiter hinzugefügt." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Entfernen von Reitern" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Um einen Reiter zu entfernen, klicken Sie auf das × an der rechten Seite des Reiters oder drücken Sie " +"StrgW. Um alle Reiter zu entfernen, " +"drücken Sie StrgUmschalttasteW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "" +"Eine kürzlich vorgenommene Änderung einer Ihrer Dateien rückgängig machen." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "" +"Eine kürzlich ausgeführte Aktion rückgängig machen oder eine rückgängig " +"gemachte Aktion wiederholen" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Um einen Fehler bei der Bearbeitung eines Dokuments in gedit " +"rückgängig zu machen, drücken Sie StrgZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Sie können eine Änderung nach dem Speichern einer gedit-Datei " +"nicht rückgängig machen." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Um die rückgängig gemachte Änderung zu wiederholen, drücken Sie " +"StrgUmschaltZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit Texteditor" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit Texteditor" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Die Startseite der Gedit-Hilfe." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit Texteditor" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Willkommen zur Hilfedokumentation von gedit. Lesen Sie für eine " +"schnelle Einführung in die grundlegenden Funktionen von gedit und " +"einige fortgeschrittene Tastenkombinationen die Seite Erste Schritte mit gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Weitere Hilfethemen finden Sie nachstehend in Abschnitten gruppiert. Viel " +"Spaß bei der Arbeit mit gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Mit Dateien arbeiten" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "gedit einrichten" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "gedit-Erweiterungen" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Drucken mit gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "" +"Creative Commons Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 " +"Unported Lizenz" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Dieses Werk ist unter <_:link-1/> lizenziert." + +#~ msgid "" +#~ "To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears " +#~ "on the right-side of the file's tab, or press Ctrl " +#~ "W." +#~ msgstr "" +#~ "Um eine Datei in gedit zu schließen, wählen Sie " +#~ "Schließen. Alternativ können Sie auf das »X« klicken, welches " +#~ "rechts in der Reiterlasche dieser Datei sichtbar ist oder " +#~ "StrgW drücken." + +#~ msgid "" +#~ "Press CtrlL in the Open " +#~ "dialog." +#~ msgstr "" +#~ "Drücken Sie StrgL im Öffnen-Dialog." + +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "Um die Anzahl der von gedit angezeigten zuletzt verwendeten " +#~ "Dateien anzupassen, benötigen Sie dconf-editor." + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "Starten Sie dconf-editor und wählen Sie org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "" +#~ "Doppelklicken Sie auf die Zahl neben max-recents und ändern " +#~ "Sie die Zahl auf den gewünschten Wert." + +#~ msgid "" +#~ "To open files from the side panel, first open the side panel by selecting " +#~ "View Side Panel (or just press " +#~ "F9), and then choose File Browser from the dropdown " +#~ "at the top of the pane." +#~ msgstr "" +#~ "Um Dateien über die Seitenleiste öffnen zu können, öffnen Sie zunächst " +#~ "die Seitenleiste selbst durch Wählen von AnsichtSeitenleiste und klicken Sie anschließend auf das " +#~ "Dateiverwaltungssymbol aus der Auswahlliste am unteren Ende " +#~ "der Seitenleiste." + +#~ msgid "" +#~ "This will activate the File Browser mode of the side panel. You " +#~ "can then use the navigation buttons at the top of the pane to locate and " +#~ "open your desired files." +#~ msgstr "" +#~ "Dadurch wird der Dateiverwaltungsmodus der Seitenleiste " +#~ "aktiviert. Sie können dann die Navigationsknöpfe oben in der Seitenleiste " +#~ "verwenden, um die gewünschten Dateien zu suchen und zu öffnen." + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "Wie der Name bereits andeutet, ermöglicht Ihnen das Plugin Datum/" +#~ "Uhrzeit einfügen das Einfügen des aktuellen Datums und/oder der " +#~ "Uhrzeit an der Position der Eingabemarke. Um das Plugin zu aktivieren, " +#~ "wählen Sie geditEinstellungenPluginsDatum/Uhrzeit einfügen. Um das Plugin zu verwenden, wählen Sie BearbeitenDatum/Uhrzeit einfügen." + +#~ msgid "Use keyboard shortcuts to help you work more quickly." +#~ msgstr "" +#~ "Verwenden Sie Tastenkombinationen, um Ihre Arbeit schneller zu erledigen." + +#~ msgid "Paolo Borelli" +#~ msgstr "Paolo Borelli" + +#~ msgid "Jesse van den Kieboom" +#~ msgstr "Jesse van den Kieboom" + +#~ msgid "Steve Frécinaux" +#~ msgstr "Steve Frécinaux" + +#~ msgid "Ignacio Casal Quinteiro" +#~ msgstr "Ignacio Casal Quinteiro" + +#~ msgid "Shortcut keys" +#~ msgstr "Tastenkombinationen" + +#~ msgid "" +#~ "Use shortcut keys to perform common tasks more quickly than " +#~ "with the mouse and menus. The following tables list all of gedit's shortcut keys." +#~ msgstr "" +#~ "Verwenden Sie Tastenkürzel, um häufig vorkommende Aufgaben " +#~ "schneller als mit der Maus oder über die Menüs auszuführen. In den " +#~ "folgenden Tabellen werden alle Tastenkürzel von gedit " +#~ "aufgelistet." + +#~ msgid "Tab-related Shortcut keys" +#~ msgstr "Tastenkombinationen für Reiter" + +#~ msgid "Action" +#~ msgstr "Aktion" + +#~ msgid "Keyboard shortcut" +#~ msgstr "Tastenkombination" + +#~ msgid "Switch to the next tab to the left" +#~ msgstr "Zum nächsten Reiter links wechseln" + +#~ msgid "CtrlAlt PageUp" +#~ msgstr "StrgAltBild↑" + +#~ msgid "Switch to the next tab to the right" +#~ msgstr "Zum nächsten Reiter rechts wechseln" + +#~ msgid "CtrlAlt PageDown" +#~ msgstr "StrgAltBild↓" + +#~ msgid "Close tab" +#~ msgstr "Reiter schließen" + +#~ msgid "CtrlW" +#~ msgstr "StrgW" + +#~ msgid "Save all tabs" +#~ msgstr "Alle Reiter speichern" + +#~ msgid "CtrlShift L" +#~ msgstr "" +#~ "StrgUmschalttasteL" + +#~ msgid "Close all tabs" +#~ msgstr "Alle Reiter schließen" + +#~ msgid "CtrlShiftW" +#~ msgstr "" +#~ "StrgUmschalttasteW" + +#~ msgid "Reopen the most recently closed tab" +#~ msgstr "Den zuletzt geschlossenen Reiter erneut öffnen" + +#~ msgid "CtrlShiftT" +#~ msgstr "" +#~ "StrgUmschalttasteT" + +#~ msgid "Jump to nth tab" +#~ msgstr "Den n-ten Reiter aktivieren" + +#~ msgid "Alt n" +#~ msgstr "Alt n" + +#~ msgid "New tab group" +#~ msgstr "Neue Reitergruppe" + +#~ msgid "CtrlAltN" +#~ msgstr "StrgAltN" + +#~ msgid "Previous tab group" +#~ msgstr "Vorherige Reitergruppe" + +#~ msgid "" +#~ "ShiftCtrlAltPage up" +#~ msgstr "" +#~ "StrgUmschaltAltBild↑" + +#~ msgid "Next tab group" +#~ msgstr "Nächste Reitergruppe" + +#~ msgid "" +#~ "ShiftCtrlAltPage down" +#~ msgstr "" +#~ "StrgUmschaltAltBild↓" + +#~ msgid "Shortcut keys for working with files" +#~ msgstr "Tastenkombinationen zum Arbeiten mit Dateien" + +#~ msgid "Create a new document in a new window" +#~ msgstr "Eine neues Dokument in einem neuen Fenster anlegen" + +#~ msgid "CtrlN" +#~ msgstr "StrgN" + +#~ msgid "Create a new document in a new tab" +#~ msgstr "Eine neues Dokument in einem neuen Reiter anlegen" + +#~ msgid "CtrlT" +#~ msgstr "StrgT" + +#~ msgid "Open a document" +#~ msgstr "Ein Dokument öffnen" + +#~ msgid "CtrlO" +#~ msgstr "StrgO" + +#~ msgid "Open the Quick Open window" +#~ msgstr "Öffnen Sie das Fenster Schnelles Öffnen" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Save the current document" +#~ msgstr "Das aktuelle Dokument speichern" + +#~ msgid "CtrlS" +#~ msgstr "StrgS" + +#~ msgid "Save the current document with a new filename" +#~ msgstr "Das aktuelle Dokument unter einem anderen Dateinamen speichern" + +#~ msgid "CtrlShift S" +#~ msgstr "" +#~ "StrgUmschalttasteS" + +#~ msgid "Print the current document" +#~ msgstr "Das aktuelle Dokument drucken" + +#~ msgid "Ctrl P" +#~ msgstr "StrgP" + +#~ msgid "Print preview" +#~ msgstr "Druckvorschau" + +#~ msgid "CtrlShift P" +#~ msgstr "" +#~ "StrgUmschalttasteP" + +#~ msgid "Close the current document" +#~ msgstr "Das aktuelle Dokument schließen" + +#~ msgid "Quit gedit" +#~ msgstr "Gedit beenden" + +#~ msgid "CtrlQ" +#~ msgstr "StrgQ" + +#~ msgid "Shortcut keys for editing files" +#~ msgstr "Tastenkombinationen zum Bearbeiten von Dokumenten" + +#~ msgid "Move the selected word right one word" +#~ msgstr "Das ausgewählte Wort ein Wort nach rechts verschieben" + +#~ msgid "AltRight Arrow" +#~ msgstr "Alt" + +#~ msgid "Move the selected word left one word" +#~ msgstr "Das ausgewählte Wort ein Wort nach links verschieben" + +#~ msgid "AltLeft Arrow" +#~ msgstr "Alt" + +#~ msgid "Undo the last action" +#~ msgstr "Den letzten Vorgang rückgängig machen" + +#~ msgid "CtrlZ" +#~ msgstr "StrgZ" + +#~ msgid "Redo the last undone action" +#~ msgstr "Den rückgängig gemachten Vorgang wiederholen" + +#~ msgid "Cut the selected text or region and place it on the clipboard" +#~ msgstr "" +#~ "Den markierten Text oder die markierte Region ausschneiden und in die " +#~ "Zwischenablage verschieben" + +#~ msgid "CtrlX" +#~ msgstr "StrgX" + +#~ msgid "Copy the selected text or region onto the clipboard" +#~ msgstr "" +#~ "Den markierten Text oder den markierten Bereich in die Zwischenablage " +#~ "kopieren" + +#~ msgid "CtrlC" +#~ msgstr "StrgC" + +#~ msgid "Paste the contents of the clipboard" +#~ msgstr "Den Inhalt der Zwischenablage einfügen" + +#~ msgid "CtrlV" +#~ msgstr "StrgV" + +#~ msgid "Select all text in the file" +#~ msgstr "Sämtlichen Text in der Datei auswählen" + +#~ msgid "CtrlA" +#~ msgstr "StrgA" + +#~ msgid "Unselect all text" +#~ msgstr "Allen Text abwählen" + +#~ msgid "CtrlBackslash" +#~ msgstr "Strg\\" + +#~ msgid "Delete the current line" +#~ msgstr "Die aktuelle Zeile löschen" + +#~ msgid "CtrlD" +#~ msgstr "StrgD" + +#~ msgid "Move the selected line up one line" +#~ msgstr "Die markierte Zeile um eine Position nach oben verschieben" + +#~ msgid "AltUp Arrow" +#~ msgstr "Alt" + +#~ msgid "Move the selected line down one line" +#~ msgstr "Die markierte Zeile um eine Position nach unten verschieben" + +#~ msgid "AltDown Arrow" +#~ msgstr "Alt" + +#~ msgid "Add a tab stop" +#~ msgstr "Eine Tabulatorposition hinzufügen" + +#~ msgid "Tab" +#~ msgstr "Tabulator" + +#~ msgid "Remove a tab stop" +#~ msgstr "Eine Tabulatorposition entfernen" + +#~ msgid "ShiftTab" +#~ msgstr "ShiftTabulator" + +#~ msgid "Convert the selected text to upper case" +#~ msgstr "Den markierten Text in Großbuchstaben umwandeln" + +#~ msgid "CtrlU" +#~ msgstr "StrgU" + +#~ msgid "Convert the selected text to lower case" +#~ msgstr "Den markierten Text in Kleinbuchstaben umwandeln" + +#~ msgid "CtrlL" +#~ msgstr "StrgL" + +#~ msgid "Toggle case of the selected text" +#~ msgstr "Die Groß-/Kleinschreibung für den ausgewählten Text umschalten" + +#~ msgid "Ctrl~" +#~ msgstr "Strg~" + +#~ msgid "Toggle cursor visibility" +#~ msgstr "Sichtbarkeit der Eingabemarke ein-/ausschalten" + +#~| msgid "Tab" +#~ msgid "F7" +#~ msgstr "F7" + +#~ msgid "Shortcut keys for showing and hiding panes" +#~ msgstr "Tastenkombinationen zum Anzeigen und Verbergen von Leisten" + +#~ msgid "Show / hide the side panel" +#~ msgstr "Die Seitenleiste anzeigen/verbergen" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Open the file menu" +#~ msgstr "Das Dateimenü öffnen" + +#~ msgid "F10" +#~ msgstr "F10" + +#~ msgid "Shortcut keys for navigation" +#~ msgstr "Tastenkombinationen zur Navigation" + +#~ msgid "Move to matching bracket" +#~ msgstr "Zur übereinstimmenden Klammer wechseln" + +#~ msgid "Ctrl%" +#~ msgstr "Strg%" + +#~ msgid "Goto line" +#~ msgstr "Zu einer bestimmten Zeile gehen" + +#~ msgid "CtrlI" +#~ msgstr "StrgI" + +#~ msgid "Move to the beginning of the current line" +#~ msgstr "An den Anfang der aktuellen Zeile springen" + +#~ msgid "Home" +#~ msgstr "Pos1" + +#~ msgid "Move to the end of the current line" +#~ msgstr "Ans Ende der aktuellen Zeile springen" + +#~ msgid "End" +#~ msgstr "Ende" + +#~ msgid "Move to the beginning of the document" +#~ msgstr "An den Anfang des Dokuments springen" + +#~ msgid "CtrlHome" +#~ msgstr "StrgPos1" + +#~ msgid "Move to the end of the document" +#~ msgstr "An das Ende des Dokuments springen" + +#~ msgid "CtrlEnd" +#~ msgstr "StrgEnde" + +#~ msgid "Move viewport up within the file" +#~ msgstr "Ansichtsfeld innerhalb der Datei aufwärts schieben" + +#~ msgid "ShiftAltUp" +#~ msgstr "UmschalttasteAlt" + +#~ msgid "Move viewport down within the file" +#~ msgstr "Ansichtsfeld innerhalb der Datei abwärts schieben" + +#~ msgid "ShiftAltDown" +#~ msgstr "UmschalttasteAlt" + +#~ msgid "Move viewport to beginning of file" +#~ msgstr "Ansichtsfeld zum Anfang der Datei schieben" + +#~ msgid "ShiftAltHome" +#~ msgstr "" +#~ "UmschalttasteAltPos1" + +#~ msgid "Move viewport to end of file" +#~ msgstr "Ansichtsfeld zum Ende der Datei schieben" + +#~ msgid "ShiftAltEnd" +#~ msgstr "" +#~ "UmschalttasteAltEnde" + +#~ msgid "Shortcut keys for searching" +#~ msgstr "Tastenkombinationen zum Suchen" + +#~ msgid "Find a string" +#~ msgstr "Eine Zeichenkette suchen" + +#~ msgid "CtrlF" +#~ msgstr "StrgF" + +#~ msgid "Find the next instance of the string" +#~ msgstr "Das nächste Vorkommen der Zeichenkette suchen" + +#~ msgid "CtrlG" +#~ msgstr "StrgG" + +#~ msgid "Find the previous instance of the string" +#~ msgstr "Das vorherige Vorkommen der Zeichenkette suchen" + +#~ msgid "CtrlShiftG" +#~ msgstr "" +#~ "StrgUmschalttasteG" + +#~ msgid "Search and Replace" +#~ msgstr "Suchen und ersetzen" + +#~ msgid "CtrlH" +#~ msgstr "StrgH" + +#~ msgid "Clear highlight" +#~ msgstr "Hervorhebung zurücksetzen" + +#~ msgid "CtrlShift K" +#~ msgstr "" +#~ "StrgUmschalttasteK" + +#~ msgid "Shortcut keys for tools" +#~ msgstr "Tastenkombinationen für Werkzeuge" + +#~ msgid "Check spelling" +#~ msgstr "Rechtschreibprüfung" + +#~ msgid "ShiftF7" +#~ msgstr "UmschalttasteF7" + +#~ msgid "Remove trailing spaces (with plugin)" +#~ msgstr "Unnötige Leerzeichen am Zeilenende entfernen (mit Plugin)" + +#~ msgid "AltF12" +#~ msgstr "AltF12" + +#~ msgid "Run \"make\" in the current directory (with plugin)" +#~ msgstr "»make« im aktuellen Ordner ausführen (mit Plugin)" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Directory listing (with plugin)" +#~ msgstr "Ordnerinhalt anzeigen (mit Plugin)" + +#~ msgid "CtrlShift D" +#~ msgstr "" +#~ "StrgUmschalttasteD" + +#~ msgid "Shortcut keys for user help" +#~ msgstr "Tastenkombinationen für Hilfe" + +#~ msgid "Open the gedit user guide" +#~ msgstr "Das Benutzerhandbuch von gedit öffnen" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "Go to DocumentsNew Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Wählen Sie DokumenteNeue Reitergruppe im Hauptmenü." + +#~ msgid "Move through tab groups" +#~ msgstr "Zwischen Reitergruppen wechseln" + +#~ msgid "To move forward (on the next) tab group:" +#~ msgstr "So wechseln Sie vorwärts (zur nächsten) Reitergruppe:" + +#~ msgid "" +#~ "Go to DocumentsNext Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Wählen Sie DokumenteNächste Reitergruppe im Hauptmenü." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "down shortcut." +#~ msgstr "" +#~ "Verwenden Sie die Tastenkombination StrgUmschaltAltBild↓." + +#~ msgid "To move backward (on the previous) tab group:" +#~ msgstr "So wechseln Sie rückwärts (zur vorherigen) Reitergruppe:" + +#~ msgid "" +#~ "Go to DocumentsPrevious Tab Group " +#~ "in the main menu." +#~ msgstr "" +#~ "Wählen Sie DokumenteVorherige Reitergruppe im Hauptmenü." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "up shortcut." +#~ msgstr "" +#~ "Verwenden Sie die Tastenkombination StrgUmschaltAltBild↑." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tab groups." +#~ msgstr "" +#~ "Schauen Sie auch die Tabelle der Tastenkombinationen für Reiter an, welche die Verwaltung Ihrer " +#~ "Reitergruppen erleichtern." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tabs." +#~ msgstr "" +#~ "Schauen Sie auch die Tabelle der " +#~ "Tastenkombinationen für Reiter an, welche die Verwaltung Ihrer " +#~ "Reiter erleichtern." + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. The tab that is larger than the other " +#~ "tabs indicates the file that is currently open. The smaller tabs indicate " +#~ "other files that are available to work on." +#~ msgstr "" +#~ "Das Arbeiten mit Reitern in gedit ermöglicht es Ihnen, " +#~ "verschiedene Dateien in einem einzigen Fenster im Auge zu behalten. Einer " +#~ "der Reiter ist größer als die anderen Reiter, wodurch angezeigt wird, " +#~ "dass es sich um die aktuell geöffnete Datei handelt. Die kleineren Reiter " +#~ "bezeichnen andere Dateien, die zur Bearbeitung bereitstehen." diff --git a/help/de/figures/gedit-html-snippet.png b/help/de/figures/gedit-html-snippet.png new file mode 100644 index 0000000..505e82b Binary files /dev/null and b/help/de/figures/gedit-html-snippet.png differ diff --git a/help/de/figures/gedit3-screenshot.png b/help/de/figures/gedit3-screenshot.png new file mode 100644 index 0000000..e3cb8af Binary files /dev/null and b/help/de/figures/gedit3-screenshot.png differ diff --git a/help/el/el.po b/help/el/el.po new file mode 100644 index 0000000..0de0ec5 --- /dev/null +++ b/help/el/el.po @@ -0,0 +1,6148 @@ +# Greek translation of Gedit Documentation +# Copyright (C) 2009, Free Software Foundation, Inc. +# Μάριος Ζηντίλης , 2009. +# Simos Xenitellis , 2011. +# Dimitris Spingos (Δημήτρης Σπίγγος) , 2013, 2014, 2015. +msgid "" +msgstr "" +"Project-Id-Version: el\n" +"POT-Creation-Date: 2015-09-20 05:28+0000\n" +"PO-Revision-Date: 2015-09-20 13:17+0300\n" +"Last-Translator: Tom Tryfonidis \n" +"Language-Team: www.gnome.gr\n" +"Language: el\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8.4\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Ελληνική μεταφραστική ομάδα GNOME \n" +"Μάριος Ζηντίλης , 2009\n" +"Μιχαήλ Κοτσαρίνης ,2009\n" +"Βασίλης Τσιβίκης , 2011\n" +"Θάνος Τρυφωνίδης , 2012, 2014\n" +"Δημήτρης Σπίγγος , 2013, 2014, 2015\n" +"Μαρία Μαυρίδου , 2014" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Αλλαγή των χρωμάτων κειμένου και παρασκηνίου στο gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:13 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:10 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:12 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:10 C/gedit-plugin-guide.page:10 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:14 +#: C/gedit-plugins-insert-date-time.page:14 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:9 +#: C/gedit-plugins-quick-open.page:10 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:13 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:13 C/gedit-save-file.page:12 +#: C/gedit-search.page:11 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:17 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:19 C/gedit-change-color-scheme.page:24 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:22 C/gedit-replace.page:25 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:30 +msgid "Change the color scheme" +msgstr "Αλλαγή συνδυασμού χρωμάτων" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:32 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"Το gedit συμπεριλαμβάνει αρκετούς διαφορετικούς συνδυασμούς " +"χρωμάτων, επιτρέποντάς σας να αλλάξετε την εμφάνιση του κύριου παράθυρου του " +"κειμένου." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:36 +msgid "To change the color scheme:" +msgstr "Για να αλλάξετε τον συνδυασμό χρωμάτων:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:38 +msgid "" +"Open the gedit menu from the top bar, then select " +"PreferencesFont & Colors." +msgstr "" +"Ανοίξτε το μενού του gedit από την πάνω μπάρα, και " +"μετά επιλέξτε ΠροτιμήσειςΓραμματοσειρά & Χρώματα." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:43 +msgid "Choose your desired color scheme." +msgstr "Επιλέξτε τον επιθυμητό συνδυασμό χρωμάτων." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:47 +msgid "The new color scheme will be applied immediately." +msgstr "Ο νέος συνδυασμός χρωμάτων θα εφαρμοστεί άμεσα." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:50 +msgid "Use a Custom Color Scheme" +msgstr "Χρήση ενός προσαρμοσμένου συνδυασμού χρωμάτων" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:56 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Μπορείτε επίσης να χρησιμοποιήσετε τους συνδυασμούς χρωμάτων που έχουν " +"δημιουργηθεί από άλλους, ή να δημιουργήσετε και να χρησιμοποιήσετε τους " +"δικούς σας." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:59 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Οδηγίες για το πώς να εγκαταστήσετε προσαρμοσμένους συνδυασμούς χρωμάτων, " +"όπως και παραδείγματα συνδυασμών χρωμάτων που μπορείτε να κάνετε λήψη και να " +"χρησιμοποιήσετε, είναι διαθέσιμες στο gedit wiki." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Χρήση προσαρμοσμένης γραμματοσειράς για το κείμενό σας στο gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Αλλαγή της προεπιλεγμένης γραμματοσειράς" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"Το gedit θα χρησιμοποιήσει την προεπιλεγμένη γραμματοσειρά " +"σταθερού πλάτους του συστήματος, αλλά μπορείτε να αλλάξετε την γραμματοσειρά " +"του gedit ώστε να ταιριάζει στις προτιμήσεις σας." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Για να αλλάξετε την προεπιλεγμένη γραμματοσειρά στο gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Επιλέξτε gedit Προτιμήσεις Γραμματοσειρά & χρώματα." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Αποεπιλέξτε το πλαίσιο δίπλα από τη φράση, \"Χρήση της προκαθορισμένης " +"γραμματοσειράς σταθερού πλάτους του συστήματος.\"" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Πατήστε στο τρέχον όνομα γραμματοσειράς. Το gedit θα ανοίξει ένα " +"παράθυρο επιλογέα γραμματοσειράς, επιτρέποντας σας να δείτε διαθέσιμες " +"γραμματοσειρές και να επιλέξετε αυτή που προτιμάτε." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Μετά την επιλογή της νέας σας γραμματοσειράς, χρησιμοποιήστε τον " +"ολισθητή κάτω από τη λίστα των γραμματοσειρών για να επιλέξετε το " +"προεπιλεγμένο μέγεθος της." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Πατήστε Επιλογή, και μετά πατήστε Κλείσιμο." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Έξοδος από το αρχείο που χρησιμοποιείτε." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:17 +msgid "Close a file" +msgstr "Κλείσιμο αρχείου" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:19 +msgid "" +"To close a file in gedit, select File " +"Close. Alternately, you can click the small \"X\" that " +"appears on the right-side of the file's tab, or press Ctrl W." +msgstr "" +"Για να κλείσετε ένα αρχείο στο gedit, επιλέξτε " +"Αρχείο Κλείσιμο. Εναλλακτικά, " +"μπορείτε να πατήσετε στο μικρό \"X\" που εμφανίζεται στη δεξιά πλευρά της " +"καρτέλας του αρχείου, ή πατώντας Ctrl W." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Οποιαδήποτε από αυτές τις ενέργειες θα κλείσει ένα αρχείο στο gedit. Αν το αρχείο σας περιέχει αλλαγές που δεν έχουν αποθηκευτεί, το " +"gedit θα σας ειδοποιήσει να τις αποθηκεύσετε πριν κλείσετε το " +"αρχείο." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Άνοιγμα ενός νέου αρχείου για επεξεργασία." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:16 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:14 +#: C/gedit-replace.page:29 C/gedit-save-file.page:20 C/gedit-search.page:23 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Δημιουργία νέου αρχείου" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"Ο ευκολότερος τρόπος για να δημιουργήσετε ένα αρχείο στο gedit, " +"είναι να κάνετε κλικ στην αριστερή πλευρά της εργαλειοθήκης στο κουμπί " +"Δημιουργία νέου εγγράφου, ή να πατήσετε CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Οποιαδήποτε από αυτές τις ενέργειες θα δημιουργήσει ένα νέο αρχείο στο " +"παράθυρο του gedit. Αν έχετε κι άλλα αρχεία ανοιχτά στο " +"gedit, το νέο αρχείο που δημιουργείτε θα εμφανιστεί σε μια " +"καινούρια καρτέλα στα δεξιά αυτών των αρχείων." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Χρήση διαχειριστικών δικαιωμάτων για επεξεργασία ενός αρχείου." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Επεξεργασία ενός αρχείου ως υπερχρήστης" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Η επεξεργασία αρχείων ως ο χρήστης root είναι πιθανότατα επικίνδυνη, και " +"μπορεί να καταρεύσει άσχημα το σύστημα σας. Να δείξετε μεγάλη προσοχή όταν " +"επεξεργάζεστε αρχεία ως χρήστης root." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Για να επεξεργαστείτε αρχεία ως χρήστης root, εκκινήστε το gedit " +"από το τερματικό εισάγοντας:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Χρησιμοποιώντας την εντολή sudo, θα χρειαστεί να εισάγετε τον " +"κωδικό πρόσβασης επιτυχώς πριν ανοίξει το gedit." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Ως εναλλακτική λύση της εντολής sudo, μπορείτε να αποκτήσετε " +"δικαιώματα διαχειριστή εισάγοντας:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Έπειτα εκκινείστε το gedit χρησιμοποιώντας την εντολή gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Αφού ανοίξετε το gedit με δικαιώματα διαχειριστή, το gedit θα διατηρήσει αυτά τα δικαιώματα μέχρι να κλείσει." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Εκμάθηση των βασικών εργασιών για εργασία με αρχεία στο gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Βασικά για τα αρχεία: Άνοιγμα, κλείσιμο και αποθήκευση αρχείων" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Αν είστε καινούργιος στο gedit, αυτά τα θέματα θα σας βοηθήσουν " +"στη δημιουργία, αποθήκευση, στο άνοιγμα και κλείσιμο των αρχείων." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Ορισμός του gedit ώστε να χρησιμοποιεί ολόκληρη την οθόνη." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:22 +msgid "Use fullscreen mode" +msgstr "Χρήση λειτουργίας πλήρους οθόνης" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:24 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Όταν εργάζεστε σε ένα μεγάλο έγγραφο, ίσως σας φανεί πιο χρήσιμο να " +"δουλέψετε στη λειτουργία πλήρους οθόνης του gedit. " +"Χρησιμοποιώντας τη λειτουργία αυτή, θα κρυφτούν η γραμμή μενού, η " +"γραμμή καρτελών και η εργαλειοθήκη, δίνοντάς σας " +"περισσότερο χώρο για το κείμενό σας και επιτρέποντάς σας να επικεντρωθείτε " +"καλύτερα στο έργο σας." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:31 +msgid "Turn on fullscreen mode" +msgstr "Ενεργοποίηση λειτουργίας πλήρους οθόνης" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:32 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Για να ενεργοποιήσετε τη λειτουργία πλήρους οθόνης, πατήστε το F11. Το μενού, ο τίτλος και οι γραμμές καρτελών του gedit θα " +"κρυφτούν και θα εμφανίζεται μόνο το κείμενο του τρέχοντος αρχείου σας." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:35 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Αν πρέπει να εκτελέσετε κάποια ενέργεια από το μενού του gedit " +"ενώ παράλληλα εργάζεστε σε λειτουργία πλήρους οθόνης, κινήστε το δείκτη του " +"ποντικιού σας στο πάνω μέρος της οθόνης. Η γραμμή μενού του gedit " +"θα εμφανιστεί, κι έτσι μπορείτε να επιλέξετε την επιθυμητή ενέργεια." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:41 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Για να αλλάξετε μεταξύ ανοικτών καρτελών ενώ βρίσκεστε σε λειτουργία πλήρους " +"οθόνης, πατήστε CtrlAltPgUp ή CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:49 +msgid "Turn off fullscreen mode" +msgstr "Απενεργοποίηση λειτουργίας πλήρους οθόνης" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:50 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Για να απενεργοποιήσετε την κατάσταση πλήρους οθόνης και να επιστρέψετε στο " +"τυπικό παράθυρο gedit, πατήστε F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:52 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select Leave Fullscreen." +msgstr "" +"Μπορείτε επίσης να μετακινήσετε τον δρομέα του ποντικιού σας στην κορυφή της " +"οθόνης και να περιμένετε μέχρι να εμφανιστεί η γραμμή μενού. Όταν " +"εμφανιστεί η γραμμή μενού, επιλέξτε Έξοδος από πλήρη οθόνη." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Χρησιμοποιήστε την πλευρική στήλη του gedit ως περιηγητή αρχείου." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side pane" +msgstr "Προβολή και άνοιγμα αρχείων από την πλευρική στήλη" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side pane." +msgstr "" +"Ο πιο συνηθισμένος τρόπος για την εναλλαγή μεταξύ αρχείων στο gedit είναι χρησιμοποιώντας τις καρτέλες στο πάνω μέρος του παραθύρου του " +"gedit. Σε μερικές περιπτώσεις, ωστόσο, ειδικά όταν δουλεύετε με " +"μεγάλο αριθμό ανοιχτών αρχείων, μπορεί να το βρείτε πιο χρήσιμο να " +"χρησιμοποιείτε την πλευρική στήλη." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side pane, select View " +"Side Pane, or just press the F9 key." +msgstr "" +"Για να ενεργοποιήσετε την πλευρική στήλη, επιλέξτε " +"ΠροβολήΠλευρική στήλη, ή πατήστε το " +"πλήκτρο F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "" +"Μπορείτε να εναλλάξετε την πλευρική στήλη σε ανοιχτή ή κλειστή " +"πατώντας F9 οποιαδήποτε στιγμή." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:38 +#: C/gedit-plugins-file-browser.page:32 +msgid "Opening files from the side pane" +msgstr "Άνοιγμα αρχείων από την πλευρική στήλη" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:39 +msgid "" +"To open files from the side pane, first open the side pane by selecting View Side Pane, " +"then click on the file-browser icon at the bottom of the pane." +msgstr "" +"Για να ανοίξετε αρχεία μέσα από την Πλευρική στήλη, αρχικά " +"ανοίξτε την Πλευρική στήλη επιλέγοντας ΠροβολήΠλευρική στήλη, έπειτα πατήστε στο εικονίδιο " +"Περιηγητής αρχείων στο κάτω μέρος του παραθύρου." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +"locate and open your desired files." +msgstr "" +"Αυτό θα ενεργοποιήσει την λειτουργία περιηγητής-αρχείων της " +"Πλευρικής στήλης. Έπειτα μπορείτε τα χρησιμοποιήσετε τα πλήκτρα " +"πλοήγησης στο πάνω μέρος της στήλης για να εντοπίσετε και να ανοίξετε τα " +"αρχεία που επιθυμείτε." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side pane to switch between open files" +msgstr "" +"Χρησιμοποιώντας την πλευρική στήλη για να αλλάξετε μεταξύ ανοιχτών αρχείων" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side pane to switch " +"between open files. To activate the file browser portion of the side " +"pane, click on the file icon at the bottom of the side " +"pane." +msgstr "" +"Μόλις έχετε αρκετά αρχεία ανοιχτά, μπορείτε να χρησιμοποιήσετε την πλευρική " +"στήλη για να αλλάξετε μεταξύ ανοιχτών αρχείων. Για να ενεργοποιήσετε τον " +"περιηγητή αρχείων της πλευρικής στήλης, πατήστε στο εικονίδιο " +"αρχείο στο κάτω μέρος της πλευρικής στήλης." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:66 +msgid "" +"Clicking on any file name in the side pane will open that file " +"for editing." +msgstr "" +"Πατώντας σε οποιοδήποτε όνομα αρχείου στην πλευρική στήλη θα " +"ανοίξει το αρχείο αυτό για επεξεργασία." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Άνοιγμα αρχείων για έναρξη εργασίας με αυτά." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Άνοιγμα ενός αρχείου ή σύνολο αρχείων" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Για να ανοίξετε ένα αρχείο στο gedit, πατήστε στο κουμπί " +"Άνοιγμα, ή πατήστε CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Αυτό θα προκαλέσει την εμφάνιση του διαλόγου Άνοιγμα. " +"Χρησιμοποιείστε το ποντίκι ή το πληκτρολόγιο για να επιλέξετε το αρχείο που " +"επιθυμείτε να ανοίξετε, και πατήστε στο Άνοιγμα. Το αρχείο που " +"έχετε επιλέξει θα ανοίξει σε καινούρια καρτέλα." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Για να κλείσετε το παράθυρο διαλόγου Άνοιγμα χωρίς να ανοίξετε " +"ένα αρχείο, πατήστε Ακύρωση." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Μπορείτε να χρησιμοποιήσετε τα πλήκτρα Ctrl και Shift " +"για να ανοίξετε περισσότερα από ένα αρχεία τη φορά. Αν κρατήσετε πατημένο το " +"πλήκτρο Ctrl καθώς επιλέγετε πολλαπλά αρχεία, πατώντας " +"Άνοιγμα θα ανοίξει κάθε αρχείο που έχετε επιλέξει." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Κρατώντας πατημένο το πλήκτρο Shift καθώς επιλέγετε πολλαπλά " +"αρχεία θα ανοίξει το πρώτο αρχείο που έχετε επιλέξει, το τελευταίο, και όλα " +"τα ενδιάμεσα." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "" +"Πρόσβαση αρχείων που είναι αποθηκευμένα σε έναν διαφορετικό υπολογιστή." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Άνοιγμα αρχείου που βρίσκεται σε διακομιστή" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Πριν ανοίξετε ένα αρχείο σε έναν διακομιστή μέσα από το gedit, " +"πρέπει να ξέρετε μερικές τεχνικές πληροφορίες για τον διακομιστή. Για " +"παράδειγμα, Θα πρέπει να ξέρετε την διεύθυνση IP ή το URL του διακομιστή, " +"και μπορεί να χρειαστεί να γνωρίζετε τι είδους διακομιστής είναι (π.χ., " +"HTTP, FTP, κτλ.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Επιπλέον, κάποιοι τύποι διακομιστών επιβάλλουν περιορισμούς στο τι μπορείτε " +"να κάνετε με τα αρχεία που είναι αποθηκευμένα στον διακομιστή. Για " +"παράδειγμα, μπορεί να έχετε την δυνατότητα να ανοίξετε ένα αρχείο από έναν " +"διακομιστή, αλλά μπορεί να χρειαστεί να αποθηκεύσετε οποιεσδήποτε αλλαγές " +"στο αρχείο τοπικά, στον δικό σας υπολογιστή." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Με αυτές τις προειδοποιήσεις κατά νου, εκτελέστε τα ακόλουθα βήματα για να " +"ανοίξετε ένα αρχείο από έναν διακομιστή χρησιμοποιώντας το gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "" +"Choose FileOpen to display the " +"Open Files dialog." +msgstr "" +"Επιλέξτε ΑρχείοΆνοιγμα για να " +"εμφανίσετε το διάλογο Άνοιγμα αρχείων." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Select the Pencil icon near the top of the Open Files " +"dialog." +msgstr "" +"Επιλέξτε το εικονίδιο Μολύβι κοντά στο πάνω μέρος του διαλόγου " +"Άνοιγμα Αρχείων." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Πληκτρολογήστε τη διεύθυνση IP ή το URL του κατάλληλου διακομιστή." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Πληκτρολογήστε την τοποθεσία του αρχείου που θέλετε να ανοίξετε." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character coding drop-down list to select the appropriate character " +"coding." +msgstr "" +"Χρησιμοποιήστε την αναδιπλούμενη λίστα κωδικοποίησης χαρακτήρων για να " +"διαλέξετε την κατάλληλη κωδικοποίηση." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:43 +msgid "Click Open." +msgstr "Πατήστε Άνοιγμα." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Έγκυροι τύποι URI περιλαμβάνουν τα http:, ftp:, file:, και όλες τις μεθόδους " +"που υποστηρίζονται από το gvfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Αρχεία από μερικούς τύπους URI ανοίγονται μόνο για ανάγνωση, και ό,τι " +"αλλαγές κάνετε θα πρέπει να αποθηκευτούν σε μια διαφορετική τοποθεσία. Για " +"παράδειγμα, το HTTP επιτρέπει μόνο την ανάγνωση αρχείων. Αρχεία που " +"ανοίγονται από FTP είναι μόνο για ανάγνωση γιατί δεν υποστηρίζουν όλοι οι " +"εξυπηρετητές FTP την αποθήκευση απομακρυσμένων αρχείων." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Πρόσβαση σε αρχεία που έχετε ενημερώσει πρόσφατα." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:16 +msgid "Reopen a recently-used file" +msgstr "Άνοιγμα ξανά ενός πρόσφατου αρχείο" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:18 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"Από προεπιλογή, το gedit παρέχει εύκολη πρόσβαση σε πέντε από τα " +"πιο πρόσφατα αρχεία που χρησιμοποιήσατε. Για να ανοίξετε ένα αρχείο που " +"χρησιμοποιήθηκε πρόσφατα, κάντε τα ακόλουθα:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:21 +msgid "" +"Click the downward-facing arrow to the right of the Open button." +msgstr "" +"Πατήστε στο βέλος που δείχνει προς τα κάτω στα δεξιά του κουμπιού " +"Άνοιγμα." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "" +"Το gedit θα εμφανίσει μια λίστα των πέντε πιο πρόσφατων " +"χρησιμοποιημένων αρχείων." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:25 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Επιλέξτε το επιθυμητό αρχείο, και θα ανοίξει σε νέα καρτέλα." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:28 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"Για να ρυθμίσετε τον αριθμό των πρόσφατα χρησιμοποιημένων αρχείων που " +"εμφανίζει το gedit, θα χρειαστεί να χρησιμοποιήσετε την εφαρμογή dconf-" +"editor." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:32 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Εκκινήστε το dconf-editor και επιλέξτε org " +"gnomegeditpreferencesui max-" +"recents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:35 +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Πατήστε διπλό κλικ στον αριθμό δίπλα στο max-recents και αλλάξτε " +"τον αριθμό στην επιθυμητή σας τιμή." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:7 +msgid "Use plugins to customize how gedit works for you." +msgstr "Χρήση προσθέτων για προσαρμογή του τρόπου εργασίας του gedit για εσάς." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:16 +msgid "Configure and use gedit plugins" +msgstr "Ρύθμιση και χρήση προσθέτων του gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:17 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Μπορείτε να κάνετε περισσότερα με το gedit χρησιμοποιώντας " +"πρόσθετα. Αρκετά πρόσθετα είναι εγκατεστημένα από προεπιλογή, αλλά ένας " +"μεγάλος αριθμός από άλλα πρόσθετα είναι διαθέσιμα ξεχωριστά." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:21 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Πολλές διανομές Linux κάνουν μια ομάδα αυτών των προσθέτων διαθέσιμα ως ένα " +"πακέτο gedit-plugins. Εγκαταστήστε το πακέτο gedit-plugins για να κάνετε αυτά τα επιπλέον πρόσθετα διαθέσιμα στο gedit." + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:26 +msgid "Default gedit Plugins" +msgstr "Προεπιλεγμένα πρόσθετα gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:30 +msgid "Additional gedit Plugins" +msgstr "Επιπλέον πρόσθετα gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:10 +#: C/gedit-plugins-insert-date-time.page:9 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:9 +#: C/gedit-replace.page:17 C/gedit-search.page:15 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Αλλαγή του επιλεγμένου κειμένου σε κεφαλαία-πεζά." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Αλλαγή τύπου" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Το πρόσθετο αυτό σας βοηθάει να αλλάξετε τα κεφαλαία-πεζά σε επιλεγμένα μέρη " +"του κειμένου. Μπορείτε να το χρησιμοποιήσετε για να αλλάξετε το κείμενο σε " +"όλα πεζά, όλα κεφαλαία, ή να αντιστρέψετε τα πεζά-κεφαλαία, ή να εφαρμόσετε " +"κεφαλαία-πεζά στον τίτλο. Για να ενεργοποιήσετε αυτό το πρόσθετο, επιλέξτε " +"geditΠροτιμήσεις ΠρόσθεταΑλλαγή κεφαλαίων-πεζών." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Αφού ενεργοποιηθεί το πρόσθετο Αλλαγή κεφαλαίων-πεζών, μπορείτε να " +"το χρησιμοποιήσετε ολοκληρώνοντας τα παρακάτω βήματα:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Επιλέξτε τις γραμμές κειμένου που θέλετε να αλλάξετε." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Επιλέξτε geditΑλλαγή πεζών-κεφαλαίων" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Επιλέξτε την επιθυμητή επιλογή σας μορφοποίησης-κειμένου." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "" +"Οι ενημερώσεις στην μορφοποίηση του κειμένου θα πραγματοποιηθούν άμεσα." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Η επιλογή Αντιστροφή πεζών-κεφαλαίων θα μετατρέψει όλα τα πεζά " +"γράμματα σε κεφαλαία, και τα κεφαλαία σε πεζά." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Η επιλογή Διάκριση κεφαλαίων-πεζών Τίτλου θα μετατρέψει το πρώτο " +"γράμμα κάθε λέξης σε κεφαλαίο. Όλα τα υπόλοιπα γράμματα θα μετατραπούν σε " +"πεζά." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Αν δεν έχετε επισημάνει κανένα κείμενο, η λειτουργία Αλλαγή κεφαλαίων-" +"πεζών δεν θα λειτουργήσει. Πρέπει να επιλέξετε ένα κομμάτι του κειμένου " +"πριν χρησιμοποιήσετε την λειτουργία Αλλαγή κεφαλαίων-πεζών." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Προβολή στατιστικών εγγράφου." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Στατιστικά εγγράφου" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Το πρόσθετο Στατιστικά εγγράφου μπορεί να σας εμφανίσει ποικίλα " +"στατιστικά για το τρέχον έγγραφό σας. Για να ενεργοποιήσετε αυτό το " +"πρόσθετο, επιλέξτε geditΠροτιμήσεις ΠρόσθεταΣτατιστικά Εγγράφου." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Χρήση στατιστικών εγγράφου" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Αφού ενεργοποιηθεί το πρόσθετο, χρησιμοποιήστε το επιλέγοντας " +"Εργαλεία Στατιστικά εγγράφου. Ένα " +"παράθυρο θα εμφανίσει τις στατιστικές πληροφορίες του εγγράφου σας, " +"συμπεριλαμβανομένου του αριθμού των λέξεων, γραμμών, χαρακτήρων, χαρακτήρων " +"χωρίς κενά και του μεγέθους του αρχείου σας σε bytes." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Μπορείτε επίσης να χρησιμοποιήσετε το Στατιστικά εγγράφου για να " +"σας εμφανίσει πληροφορίες για ένα τμήμα του εγγράφου σας. Για να το κάνετε " +"αυτό, χρησιμοποιήστε τον δείκτη του ποντικιού για να επιλέξετε το μέρος του " +"κειμένου που θέλετε να εξετάσετε και έπειτα επιλέξτε ΕργαλείαΣτατιστικά εγγράφου. Το Gedit θα " +"εμφανίσει πληροφορίες για ολόκληρο το έγγραφο, όπως και για το τμήμα του " +"κειμένου που επισημάνατε." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Εκτέλεση δεσμών ενεργειών στα τρέχοντα αρχεία σας και αλληλεπίδραση με άλλες " +"εφαρμογές." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Εξωτερικά εργαλεία" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Το πρόσθετο Εξωτερικά εργαλεία μπορεί να βοηθήσει στην απλοποίηση " +"επαναλαμβανόμενων εργασιών. Ειδικά, επεκτείνει το gedit βοηθώντας " +"σας να εκτελέσετε δέσμες ενεργειών στα αρχεία εργασίας σας και επιτρέποντας " +"το gedit να αλληλεπιδράσει με άλλα προγράμματα στον υπολογιστή " +"σας. Για να ενεργοποιήσετε το πρόσθετο Εξωτερικά Εργαλεία, " +"επιλέξτε gedit ΠροτιμήσειςΠρόσθεταΕξωτερικά Εργαλεία." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Ρύθμιση του πρόσθετου εξωτερικών εργαλείων" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Αφού ενεργοποιήσετε το πρόσθετο, θα πρέπει να το ρυθμίσετε να εξυπηρετεί τις " +"ανάγκες σας. Οι επιλογές ρύθμισης είναι διαθέσιμες επιλέγοντας " +"ΕργαλείαΔιαχείριση Εξωτερικών Εργαλείων." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Αυτό το πρόσθετο είναι για προχωρημένους χρήστες, και απαιτεί γνώσεις " +"συγγραφής δέσμης ενεργειών για να το χρησιμοποιείτε αποδοτικά. " +"Χρησιμοποιήστε αυτό το πρόσθετο με προσοχή, καθώς λάθη στη δέσμη ενεργειών " +"σας μπορούν να επηρεάσουν την δουλειά σας με ακούσιους τρόπους." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:17 +msgid "Use the side pane to browse and open files." +msgstr "" +"Χρησιμοποιήστε την πλευρική στήλη για να περιηγηθείτε και να ανοίξετε αρχεία." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:20 +msgid "File browser pane" +msgstr "Πλαίσιο περιήγησης αρχείων" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:22 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side pane, giving you easy access to your frequently-" +"used files." +msgstr "" +"Αναλόγως το πως χρησιμοποιείτε το gedit, μπορεί να σας φανεί " +"χρήσιμο το πρόσθετο Πλαίσιο περιήγησης αρχείων. Το πρόσθετο αυτό " +"ενσωματώνει έναν περιηγητή αρχείων στην πλευρική στήλη, δίνοντας " +"ευκολότερη πρόσβαση στα πρόσφατα χρησιμοποιημένα αρχεία." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:27 +msgid "" +"You can enable the Side Pane by selecting geditPreferences PluginsFile Browser Pane." +msgstr "" +"Μπορείτε να ενεργοποιήσετε την Πλευρική στήλη επιλέγοντας " +"geditΠροτιμήσεις ΠρόσθεταΠλαίσιο περιήγησης αρχείων." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:33 +msgid "" +"To activate and use the side pane, select ViewSide pane (or just press F9), and then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" +"Για να ενεργοποιήσετε και να χρησιμοποιήσετε την πλευρική στήλη, " +"επιλέξτε ΠροβολήΠλευρική στήλη (ή " +"απλά πατήστε το F9) και μετά πατήστε στο εικονίδιο του " +"περιηγητή αρχείων στο κάτω μέρος της στήλης." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:17 +msgid "Insert the current date/time at the cursor position." +msgstr "Εισαγωγή τρέχουσας ημερομηνίας/ώρας στη θέση του δρομέα." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:20 +msgid "Insert date/time" +msgstr "Εισαγωγή ημερομηνίας/ώρας" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:22 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select gedit PreferencesPlugins Insert Date/" +"Time. To use the plugin, press EditInsert Date and Time." +msgstr "" +"Όπως προτείνει η ονομασία αυτού του πρόσθετου, το πρόσθετο Εισαγωγή " +"ημερομηνίας/ώρας σας επιτρέπει την εισαγωγή ημερομηνίας και/ή ώρας " +"στην τρέχουσα τοποθεσία του δρομέα. Για να ενεργοποιήσετε αυτό το πρόσθετο, " +"επιλέξτε gedit ΠροτιμήσειςΠρόσθεταΕισαγωγή ημερομηνίας/ώρας. Για να χρησιμοποιήσετε το πρόσθετο, πατήστε ΕπεξεργασίαΕισαγωγή ημερομηνίας και ώρας." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:29 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"geditPreferences PluginsInsert Date/TimeConfigure." +msgstr "" +"Από προεπιλογή, το πρόσθετο Εισαγωγή ημερομηνίας/ώρας θα σας " +"ζητήσει να επιλέξετε την μορφή ημερομηνίας/ώρας που προτιμάτε κάθε φορά που " +"το χρησιμοποιείτε. Ωστόσο, μπορείτε να διαλέξετε τη δική σας προεπιλεγμένη " +"μορφή ημερομηνίας και ώρας επιλέγοντας geditΠροτιμήσεις ΠρόσθεταΕισαγωγή ημερομηνίας/ώραςΡύθμιση." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Πως να εγκαταστήσετε πρόσθετα τρίτων." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Επιπλέον πρόσθετα gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Η εγκατάσταση πρόσθετων τρίτων σας δίνει επιπλέον λειτουργικότητα που δεν " +"συμπεριλαμβάνεται από προεπιλογή στα πρόσθετα του gedit ή στα " +"επιπλέον πρόσθετα που είναι μέρος του πακέτου gedit-plugins. Μία " +"δικτυακή λίστα προσθέτων τρίτων διατηρείται εδώ." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Εγκαθιστώντας ένα πρόσθετο τρίτων περιλαμβάνει τη λήψη του πρόσθετου, την " +"τοποθέτηση των αρχείων του στο σωστό κατάλογο και την ενεργοποίηση του." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Συνήθως μπορείτε να κάνετε λήψη ενός πρόσθετου από τον ιστότοπο του " +"πρόσθετου, αλλά μπορεί και να χρειαστεί να χρησιμοποιήσετε ένα πρόγραμμα " +"όπως το git, το bazaar, ή το subversion " +"για να αντιγράψετε τον κώδικα του πρόσθετου από το διαδίκτυο. Δείτε " +"περισσότερες πληροφορίες για τη λήψη του πρόσθετου στην τεκμηρίωση του." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Τοποθετήστε το πρόσθετο στον κατάλογο /home/username/.local/" +"share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Φυσικά, αντικαταστήστε τη λέξη username με το δικό σας όνομα." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins [Name " +"of Plugin] to enable the plugin." +msgstr "" +"Αφού μεταφέρετε τα αρχεία του πρόσθετου στο σωστό κατάλογο, το πρόσθετο θα " +"εμφανισθεί στο μενού προτιμήσεων. Επιλέξτε Επεξεργασία ΠροτιμήσειςΠρόσθετα [Όνομα " +"του πρόσθετου] για να ενεργοποιήσετε το πρόσθετο." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:45 +msgid "Click Close." +msgstr "Πατήστε στο Κλείσιμο." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:48 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Αφού ενεργοποιήσατε το πρόσθετο, θα πρέπει να είναι διαθέσιμο για χρήση." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:52 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Ο κατάλογος .local είναι κρυφός. Για να τον δείτε, επιλέξτε " +"ΠροβολήΕμφάνιση κρυφών αρχείων, ή " +"πατήστε CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:59 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Αν ο κατάλογος .local/share/gedit/plugins/ δεν υπάρχει στο " +"σύστημα σας, θα χρειαστεί να τον δημιουργήσετε." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "" +"Υποστήριξη του gedit για γραμμές διαμόρφωσης τύπου Emacs, Kate και Vim." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Γραμμές διαμόρφωσης - Modelines" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Το πρόσθετο Γραμμές διαμόρφωσης επιτρέπει το gedit να " +"αναλύσει τις γραμμές κειμένου στην αρχή και το τέλος ενός αρχείου, και μετά " +"να εφαρμόσει μια συλλογή προτιμήσεων εγγράφων στο αρχείο. Το πρόσθετο " +"Γραμμές διαμόρφωσης υποστηρίζει ένα υποσύνολο επιλογών που " +"χρησιμοποιείται από τους επεξεργαστές κειμένου Emacs,Kate και Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Για να ενεργοποιήσετε το πρόσθετο Γραμμές διαμόρφωσης, επιλέξτε " +"gedit ΠροτιμήσειςΠρόσθεταΓραμμές διαμόρφωσης." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Γενικές επιλογές γραμμών διαμόρφωσης" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Οι ακόλουθες επιλογές μπορούν να ορισθούν χρησιμοποιώντας γραμμές " +"διαμόρφωσης του gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Πλάτος στηλοθέτη" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Πλάτος εσοχής" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Εισαγωγή κενών διαστημάτων αντί στηλοθετών" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Αναδίπλωση κειμένου" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Πλάτος δεξιού περιθωρίου" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Οι προτιμήσεις που ορίζονται με τις γραμμές διαμόρφωσης υπερισχύουν αυτών " +"που καθορίζονται στο παράθυρο διαλόγου προτιμήσεις." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Γραμμές διαμόρφωσης Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Η πρώτες δύο γραμμές ενός εγγράφου σαρώνονται για γραμμές διαμόρφωσης " +"Emacs και το gedit υποστηρίζει τις ακόλουθες επιλογές " +"γραμμής διαμόρφωσης Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Αυτόματη αναδίπλωση κειμένου" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Για περισσότερες πληροφορίες για τις γραμμές διαμόρφωσης Emacs, " +"επισκεφτείτε το Εγχειρίδιο GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Γραμμές διαμόρφωσης Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Η πρώτη και οι τελευταίες δέκα γραμμές ενός εγγράφου σαρώνονται για γραμμές " +"διαμόρφωσης Kate και το gedit υποστηρίζει τις " +"ακόλουθες επιλογές γραμμής διαμόρφωσηςKate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Για περισσότερες πληροφορίες για τις γραμμές διαμόρφωσηςKate, " +"επισκεφτείτε τον ιστότοπο Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Γραμμές διαμόρφωσης Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Η πρώτη και οι τελευταίες τρεις γραμμές ενός κειμένου σαρώνονται για γραμμές " +"διαμόρφωσης Vim, και το gedit υποστηρίζει τις " +"ακόλουθες επιλογές γραμμής διαμόρφωσης Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Για περισσότερες πληροφορίες για τις γραμμές διαμόρφωσης Vim, " +"επισκεφτείτε τον ιστότοπο του Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:13 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Προσθήκη μιας διαδραστικής κονσόλας Python στο κάτω παράθυρο." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:16 +msgid "Python console" +msgstr "Κονσόλα Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:18 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Μπορείτε να προσθέσετε μια κονσόλα Python στο κάτω παράθυρο, επιτρέποντάς " +"σας να δοκιμάσετε δέσμες ενεργειών Python χωρίς να αφήνετε το gedit. Για να ενεργοποιήσετε την κονσόλα Python, επιλέξτε gedit ΠροτιμήσειςΠρόσθετα Κονσόλα Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:24 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Pane, or just press " +"ShiftF9." +msgstr "" +"Αφού ενεργοποιηθεί η κονσόλα Python, μπορείτε να την ανοίξετε επιλέγοντας " +"ΠροβολήΚάτω παράθυρο, ή απλώς πατήστε " +"ShiftF9." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Αν έχετε ήδη ενεργοποιήσει το πρόσθετο Ενσωματωμένου Τερματικού, " +"θα εμφανιστεί η Κονσόλα Python ως μια ξεχωριστή καρτέλα στο κάτω " +"μέρος του παραθύρου." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:18 +msgid "Quickly open a file or set of files." +msgstr "Γρήγορο άνοιγμα ενός αρχείου ή ενός συνόλου αρχείων." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:21 +msgid "Quick open" +msgstr "Γρήγορο άνοιγμα" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:23 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Όπως φανερώνει και το όνομα του πρόσθετου, το Γρήγορο άνοιγμα " +"επιτρέπει πιο γρήγορο άνοιγμα των αρχείων από ότι ανοίγουν συνήθως. Για να " +"ενεργοποιήσετε αυτό το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθεταΓρήγορο άνοιγμα." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:28 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Αφού έχετε ενεργοποιήσει το πρόσθετο Γρήγορο άνοιγμα μπορείτε να " +"το χρησιμοποιήσετε ως εξής:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:32 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "" +"Ανοίξτε το πλαίσιο διαλόγου του Γρήγορου ανοίγματος πατώντας " +" CtrlAltO, ή επιλέγοντας " +"ΑρχείοΓρήγορο άνοιγμα." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:35 +msgid "The Quick Open file dialog will appear." +msgstr "Θα εμφανιστεί το παράθυρο διαλόγου Γρήγορο άνοιγμα." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Χρησιμοποιήστε το ποντίκι σας για να επιλέξετε το αρχείο ή τα αρχεία που " +"θέλετε να ανοίξετε." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:38 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Για να επιλέξετε αρκετά διαφορετικά αρχεία, κρατήστε πατημένο το πλήκτρο " +"Ctrl ενώ πατάτε στα αρχεία που θέλετε να επιλέξετε." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:40 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Για να επιλέξετε μια ομάδα αρχείων, πατήστε στο πρώτο αρχείο που θέλετε να " +"ανοίξετε, καθώς κρατάτε πατημένο το πλήκτρο Shift, και μετά " +"πατήστε στο τελευταίο αρχείο της λίστας που θέλετε να ανοίξετε." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:46 +msgid "Quick Open will look for files in:" +msgstr "Το Γρήγορο άνοιγμα θα αναζητήσει αρχεία:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:49 +msgid "The directory of the currently opened document" +msgstr "Στον κατάλογο του τρέχοντος ανοιγμένου εγγράφου" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"Στον ριζικό κατάλογο του προσθέτου Πλαίσιο περιήγησης αρχείων" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:53 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Πρόσφατα έγγραφα που επίσης εμφανίζονται στον φάκελο Πρόσφατα " +"στα Αρχεία" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:55 +msgid "Directories which you have bookmarked in Files" +msgstr "Στους καταλόγους που έχετε ως σελιδοδείκτες στα Αρχεία" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:57 +msgid "Your Desktop directory" +msgstr "Κατάλογος της Επιφάνειας εργασίας σας" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Home directory" +msgstr "Κατάλογος Προσωπικός φάκελος" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:62 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Το Γρήγορο άνοιγμα εμφανίζει αρχεία σε οποιαδήποτε από τις " +"παραπάνω τοποθεσίες ανεξάρτητα από το αν τα έχετε ανοίξει προηγουμένως." + +#. (itstool) path: media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:17 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:21 C/gedit-save-file.page:16 C/gedit-search.page:19 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Χρησιμοποιήστε αποσπάσματα για να εισάγετε γρήγορα συχνά χρησιμοποιούμενα " +"κομμάτια κειμένου." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Αποσπάσματα" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Τα Αποσπάσματα παρέχουν ένα βολικό τρόπο εισαγωγής " +"επαναλαμβανόμενων κομματιών κώδικα στα έγγραφα σας. Για παράδειγμα, ένα " +"απόσπασμα HTML για την ετικέτα <img> εισάγει το αρχικό " +"και το τελικό της κομμάτι, όπως επίσης διορθώνει και τα μέρη που μπορείτε να " +"τοποθετήσετε ορίσματα εικόνων. Αυτό κάνει το γράψιμο κώδικα ευκολότερο και " +"γρηγορότερο." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Ενεργοποίηση προσθέτου αποσπασμάτων" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Για ενεργοποίηση του προσθέτου Αποσπάσματα:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:44 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Επιλέξτε gedit Προτιμήσεις Πρόσθετα." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Επιλέξτε Αποσπάσματα για ενεργοποίηση του " +"προσθέτου." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Αποσπάσματα περιήγησης" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Για περιήγηση των διαθέσιμων αποσπασμάτων:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Επιλέξτε Εργαλεία Διαχείριση αποσπασμάτων." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Βεβαιωθείτε ότι η σύνταξη ορίζεται κατάλληλα. Η γραμμή κατάστασης στο κάτω " +"μέρος του gedit εμφανίζει την τρέχουσα ρύθμιση της γλώσσας. Αυτή " +"η ρύθμιση επιτρέπει την εισαγωγή των σωστών αποσπασμάτων. Το Gedit συνήθως ανιχνεύει τη γλώσσα ή τη σύνταξη του αρχείου που " +"χρησιμοποιείτε, αλλά μερικές φορές μπορεί να χρειαστεί να τα ορίσετε." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Σε αυτό το παράδειγμα, η γλώσσα έχει ορισθεί σε HTML." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Περιήγηση των αποσπασμάτων που είναι διαθέσιμα για τη γλώσσα σας ή τη " +"σύνταξη." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Χρησιμοποιώντας αποσπάσματα" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Για εισαγωγή αποσπάσματος στο τρέχον έγγραφο:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Πληκτρολογήστε το επιθυμητό όνομα αποσπάσματος οπουδήποτε στο τρέχον έγγραφο." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Πατήστε Tab για εισαγωγή του συσχετισμένου αποσπάσματος με τον " +"όρο εισόδου." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Χρήση παραδείγματος αποσπάσματος" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Για παράδειγμα, αν ορίσετε τη σύνταξη σας σε HTML, πληκτρολογήστε " +"head και πατήστε το πλήκτρο Tab. Το κείμενο θα " +"πρέπει να συμπληρωθεί αυτόματα στο απόσπασμα ως:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Προσθήκη αποσπασμάτων" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Μπορείτε να προσθέσετε νέα αποσπάσματα που δουλεύουν είτε γενικά (δηλαδή, " +"είναι αγνωστικιστικές γλώσσες) ή μόνο σε συγκεκριμένη σύνταξη." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Επιλέξτε Εργαλεία Διαχείριση αποσπασμάτων." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Από την πλευρική στήλη Διαχείριση αποσπασμάτων επιλέξτε την " +"επιθυμητή σύνταξη και πατήστε στο κουμπί \"+\" για τη λίστα των υπαρχόντων " +"αποσπασμάτων για την επιλεγμένη σύνταξη." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Για προσθήκη αποσπάσματος που δουλεύει γενικά (δηλαδή, όταν καμιά " +"συγκεκριμένη σύνταξη ή γλώσσα δεν έχει οριστεί για το έγγραφο) επιλέξτε " +"Γενικά από την πλευρική στήλη Διαχείριση αποσπασμάτων." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Για προσθήκη νέου αποσπάσματος, πατήστε στο εικονίδιο \"συν\" στην πλευρική " +"στήλη Διαχείριση αποσπασμάτων." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Εισάγετε ένα όνομα για το νέο απόσπασμα. Το όνομα του αποσπάσματος μπορεί να " +"είναι διαφορετικό από το απόσπασμα που θέλετε να προσθέσετε." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Στην ενότητα Ενεργοποίηση, πρέπει να εισάγετε " +"έναν όρο για την περιοχή κειμένου έναυσμα στηλοθέτη:. Θα χρησιμοποιήσετε αυτόν τον όρο για εισαγωγή του αποσπάσματός σας." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Αν επιθυμείτε να εισάγετε ένα απόσπασμα με μια συντόμευση πληκτρολογίου, " +"τότε πατήστε τον δείκτη του ποντικιού σας στην περιοχή κειμένου Πλήκτρο συντόμευσης: και πατήστε τον επιθυμητό συνδυασμό των " +"πλήκτρων. Αφού έχετε πατήσει και απελευθερώσει τα πλήκτρα, η συντόμευση " +"πληκτρολογίου θα οριστεί." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Στην περιοχή κειμένου για Επεξεργασία:, εισάγετε " +"το επιθυμητό κείμενο για το απόσπασμα. Μπορείτε να χρησιμοποιήσετε ${n}" +" για να δείξετε τις μεταβλητές, όπου το n αντικαθίσταται με " +"έναν αριθμό που αναπαριστά την αριθμητική σειρά των περιεχόμενων μεταβλητών." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Παράδειγμα νέου αποσπάσματος" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Θεωρήστε ότι έχετε δημιουργήσει ένα απόσπασμα με τον όρο greetings στο έναυσμα στηλοθέτη:. Η περιοχή κειμένου " +"Επεξεργασία: περιέχει:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Μπορείτε να εισάγετε αυτό το απόσπασμα πληκτρολογώντας greetings " +"στο έγγραφο και πατώντας το πλήκτρο Tab. Το ακόλουθο απόσπασμα " +"κειμένου θα εισαχθεί:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Οι λέξεις \"wonderful\" και \"amazing\" μπορούν να διατηρηθούν ή να " +"διαγραφούν ανάλογα με την επιλογή χρήση σας. Για να γίνει αυτό, πατήστε " +"Tab για να επιλέξετε μεταξύ \"wonderful\" και \"amazing\" πατήστε " +"το πλήκτρο Διαγραφή για να διαγράψετε την λιγότερο προτιμώμενη " +"επιλογή." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:21 +msgid "Sort lines of text into alphabetical order." +msgstr "Ταξινόμηση γραμμών του κειμένου σε αλφαβητική σειρά." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:24 +msgid "Sort" +msgstr "Ταξινόμηση" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:26 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Το πρόσθετο Ταξινόμηση διευθετεί τις επιλεγμένες γραμμές κειμένου σε " +"αλφαβητική σειρά." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:30 +msgid "" +"You cannot use the Undo feature to correct a Sort " +"operation, so we recommend that you save the file immediately before " +"performing the sort. If you make a mistake with the sort, you can revert to " +"the previously-saved version of the file by selecting FileRevert." +msgstr "" +"Δεν μπορείτε να χρησιμοποιήσετε την Αναίρεση για να διορθώσετε τη " +"λειτουργία μιας Ταξινόμησης, γι' αυτό σας συνιστούμε να " +"αποθηκεύσετε το έγγραφο πριν την ταξινόμηση. Εάν κάνετε ένα λάθος με την " +"ταξινόμηση, μπορείτε να επαναφέρετε την τελευταία προηγουμένως αποθηκευμένη " +"έκδοση του αρχείου επιλέγοντας ΑρχείοΕπαναφορά." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:38 +msgid "Enable Sort Plugin" +msgstr "Ενεργοποίηση προσθέτου ταξινόμησης" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:40 +msgid "To enable the Sort plugin:" +msgstr "Για ενεργοποίηση του προσθέτου Ταξινόμηση:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:49 +msgid "Select Sort to enable the plugin." +msgstr "" +"Επιλέξτε Ταξινόμηση για ενεργοποίηση του " +"προσθέτου." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:56 +msgid "Using Sort Plugin" +msgstr "Χρήση του προσθέτου ταξινόμησης" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:58 +msgid "To use the Sort plugin:" +msgstr "Για χρησιμοποίηση του προσθέτου Ταξινόμηση:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "Drag and highlight the desired lines of text." +msgstr "Μεταφέρτε και επισημάνετε τις επιθυμητές γραμμές κειμένου." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:65 +msgid "" +"Select gedit Sort." +msgstr "" +"Επιλέξτε gedit Ταξινόμηση." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:69 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Ο διάλογος Ταξινόμηση θα ανοίξει, επιτρέποντας την επιλογή μεταξύ " +"αρκετών επιλογών ταξινόμησης:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:73 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Η Ανάστροφη σειρά θα τακτοποιήσει το κείμενο σε ανάστροφη " +"αλφαβητική σειρά." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:77 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Η Αφαίρεση διπλότυπων θα αφαιρέσει διπλές τιμές από την λίστα." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:81 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Η Παράβλεψη κεφαλαίων-πεζών θα αγνοήσει τη διάκριση κεφαλαίων-" +"πεζών." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:83 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Για να αγνοεί η ταξινόμηση τους χαρακτήρες στην αρχή των γραμμών, ορίστε τον " +"πρώτο χαρακτήρα που θα χρησιμοποιηθεί για την ταξινόμηση Έναρξη σε στο πλαίσιο τιμών της στήλης." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:91 +msgid "To perform the sort operation, click Sort." +msgstr "Για να εκτελεστεί η ταξινόμηση, πατήστε στην Ταξινόμηση." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Ορισμός των σελίδων που θα εκτυπωθούν με συγκεκριμένη σειρά." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Λήψη αντιγράφων για εκτύπωση με τη σωστή σειρά" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Αντιστροφή" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Οι εκτυπωτές συνήθως τυπώνουν την πρώτη σελίδα πρώτα και την τελευταία " +"σελίδα στο τέλος, έτσι οι σελίδες καταλήγουν με αντίστροφη σειρά όταν τις " +"παίρνετε. Για αντιστροφή της σειράς:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Επιλέξτε Αρχείο Εκτύπωση." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Στην καρτέλα Γενικά του διαλόγου εκτύπωσης, κάτω " +"από το Αντίγραφα, επιλέξτε Αντιστροφή." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Η τελευταία σελίδα θα τυπωθεί πρώτη κλπ." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Συρραφή" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Αν εκτυπώνετε πάνω από ένα αντίγραφο του εγγράφου, τα αντίτυπα θα " +"ομαδοποιηθούν κατά αριθμό σελίδας από προεπιλογή. (π.χ. τα αντίτυπα της " +"σελίδας ένα βγαίνουν πρώτα, μετά της σελίδας δύο, κλπ). Η συρραφή θα κάνει " +"κάθε αντίτυπο να βγαίνει με τις σελίδες του ομαδοποιημένες." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Για συρραφή:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Πατήστε στο Αρχείο Εκτύπωση." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Στην καρτέλα Γενικά του διαλόγου εκτύπωσης, κάτω " +"από το Αντίγραφα επιλέξτε Συρραφή." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Εκτύπωση των αρχείων που δημιουργήθηκαν με το gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Εκτύπωση εγγράφων" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Η εκτύπωση με το gedit απαιτεί να έχετε συνδεδεμένο και " +"ρυθμισμένο τον εκτυπωτή σας. Εάν το έχετε κάνει, παρακαλώ συμβουλευτείτε την " +"βοήθεια εκτύπωσης του GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "Το gedit επιτρέπει την εκτύπωση και σε αρχείο και σε χαρτί." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Προεπισκόπηση εκτύπωσης" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Πριν εκτυπώσετε το έγγραφό σας, μπορείτε επίσης να προεπισκοπήσετε πώς θα " +"φαίνεται το εκτυπωμένο έγγραφο με την χρήση της Προεπισκόπησης " +"εκτύπωσης. Για προεπισκόπηση του εγγράφου:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Επιλέξτε Αρχείο Προεπισκόπηση εκτύπωσης. Εναλλακτικά, μπορείτε να πατήστε " +"ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Μια προεπισκόπηση του εγγράφου σας θα ανοίξει στην ίδια καρτέλα όπως το " +"αρχείο. Μπορείτε να περιηγηθείτε σε αυτήν την προεπισκόπηση με την βοήθεια " +"των πλήκτρων περιήγησης και των εργαλείων στην εργαλειοθήκη στην κορυφή της " +"καρτέλας προεπισκόπησης εγγράφου. Για να κλείσετε και να επιστρέψετε στο " +"έγγραφο πατήστε Κλείσιμο προεπισκόπησης." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Εκτύπωση σε χαρτί" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Μπορείτε να εκτυπώσετε τα έγγραφά σας σε χαρτί χρησιμοποιώντας έναν τοπικό ή " +"έναν απομακρυσμένο εκτυπωτή. Για να τυπώσετε ένα αρχείο:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Επιλέξτε Αρχείο Εκτύπωση Γενικά." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Επιλέξτε τον επιθυμητό εκτυπωτή από τη λίστα των διαθέσιμων εκτυπωτών." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Μπορείτε να προεπισκοπήσετε το αρχείο χρησιμοποιώντας Προεπισκόπηση εκτύπωσης και μόλις είσαστε ικανοποιημένος με τις " +"ρυθμίσεις, πατήστε Εκτύπωση για να στείλετε το " +"αρχείο στον εκτυπωτή." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Επιπλέον, από την καρτέλα Διαμόρφωση σελίδας: " +"μπορείτε να ρυθμίσετε τις επιλογές Διάταξη και " +"Χαρτί. Καθώς αυτές οι ρυθμίσεις είναι διαθέσιμες " +"σε όλα τα προγράμματα του GNOME, συμβουλευτείτε τη βοήθεια Επιλογές διάταξης και χαρτιού." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Εκτύπωση πολλαπλών αντιγράφων και μεταξύ συγκεκριμένων περιοχών" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Μπορείτε να ορίσετε επιλογές Περιοχής και Αντιγράφων για να σας βοηθήσουν:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Εκτύπωση σε χαρτί" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Μπορείτε επίσης να χρησιμοποιήσετε το gedit για εκτύπωση σε " +"αρχείο. Για εκτύπωση του εγγράφου σας σε διαφορετική μορφή:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Επιλέξτε Αρχείο Εκτύπωση Εκτύπωση σε αρχείο." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"Η εκτύπωση επιτρέπεται για τους παρακάτω τύπους εγγράφων, από τους οποίους " +"μπορείτε να επιλέξετε:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Για εκτύπωση εγγράφου σε αρχείο, πατήστε Εκτύπωση." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Επιλέξτε τις σελίδες που θέλετε να εκτυπώσετε." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Εκτύπωση μόνο συγκεκριμένων σελίδων" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Μπορείτε επιλεκτικά να εκτυπώσετε μόνο συγκεκριμένες σελίδες από το έγγραφο. " +"Για παράδειγμα, αν θέλετε να εισάγετε τους αριθμούς σελίδων \"1,3,5-7,9\", " +"τότε μόνο οι σελίδες 1, 3, 5, 6, 7 και 9 θα τυπωθούν. Για εκτύπωση σελίδων " +"κατ' επιλογή:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Επιλέξτε Αρχείο Εκτύπωση…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Στην καρτέλα Γενικά στον διάλογο εκτύπωσης επιλέξτε " +"Σελίδες από την ενότητα Περιοχή." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Πληκτρολογήστε τους αριθμούς των σελίδων που θέλετε να εκτυπώσετε από το " +"έγγραφο, διαχωρισμένους με κόμματα. Χρησιμοποιήστε μια παύλα για να δηλώσετε " +"περιοχή σελίδων." + +#. (itstool) path: media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='883fe82b057396bce097926551bb109e'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='883fe82b057396bce097926551bb109e'" + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Μια σύντομη εισαγωγή στο gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Ξεκινώντας με το gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"Το gedit είναι ένας επεξεργαστής κειμένου για το γραφικό " +"περιβάλλον GNOME με πλήρεις δυνατότητες. Μπορείτε να το χρησιμοποιήσετε για " +"να ετοιμάστε σημειώσεις και έγγραφα, ή μπορείτε να χρησιμοποιήσετε κάποιες " +"από τις προηγμένες λειτουργίες του, κάνοντας το τον δικό σας λογισμικό " +"περιβάλλον ανάπτυξης." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"Αφού εκκινήσει το gedit, μπορείτε να αρχίσετε να γράφετε αμέσως. " +"Για να αποθηκεύσετε το κείμενο, απλά πατήστε το εικονίδιο Αποθήκευση στην εργαλειοθήκη του gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Για να μάθετε για τις επιπλέον λειτουργίες του gedit και για να " +"λάβετε βοήθεια με την εκτέλεση πρόσθετων καθηκόντων, εξερευνήστε τα άλλα τμήματα τις βοήθειας του gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Αντικατάσταση τμημάτων του κειμένου σε ένα αρχείο." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:33 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:39 +msgid "Replace text" +msgstr "Αντικατάσταση κειμένου" + +#. (itstool) path: page/p +#: C/gedit-replace.page:41 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Η επεξεργασία κειμένου μπορεί να είναι χρονοβόρα. Για να γλυτώσετε χρόνο, το " +"gedit περιλαμβάνει τη λειτουργία Αντικατάσταση που σας " +"βοηθάει να βρείτε και να αντικαταστήσετε τμήματα του κειμένου." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:46 +msgid "Replace text in gedit" +msgstr "Αντικατάσταση κειμένου στο gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:48 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Ανοίξτε το εργαλείο Αντικατάσταση κάνοντας κλικ στο ΜενούΕύρεση και αντικατάσταση…" +" ή πατώντας CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:54 +msgid "" +"Enter the text that you wish to replace into the Search for: " +"field." +msgstr "" +"Εισάγετε το κείμενο που θέλετε να αντικαταστήσετε στο πεδίο Αναζήτηση " +"για:." + +#. (itstool) path: item/p +#: C/gedit-replace.page:58 +msgid "" +"Enter the new, replacement text into the Replace with: field." +msgstr "" +"Τοποθετήστε το νέο, κείμενο αντικατάστασης στο πεδίο Αντικατάσταση με:." + +#. (itstool) path: item/p +#: C/gedit-replace.page:62 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Αφού έχετε εισάγει το αρχικό και το κείμενο αντικατάστασης, μπορείτε να " +"προσθέσετε πρόσθετες παραμέτρους στην αναζήτηση. Μπορείτε επίσης να " +"επιλέξετε τι θέλετε να αντικαταστήσετε:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:67 +msgid "To replace only the next match, click Replace." +msgstr "" +"Για να αντικαταστήσετε μόνο το επόμενο ταίριασμα, πατήστε στο " +"Αντικατάσταση." + +#. (itstool) path: item/p +#: C/gedit-replace.page:71 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Για να αντικαταστήσετε όλες τις περιπτώσεις του προς αναζήτηση " +"κειμένου, πατήστε στην Αντικατάσταση όλων." + +#. (itstool) path: note/p +#: C/gedit-replace.page:79 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Χρησιμοποιήστε την λειτουργία Αντικατάσταση όλων με προσοχή. Η " +"Αντικατάσταση όλων δουλεύει στο σύνολο του αρχείου, και δεν σας " +"επιτρέπει να επισημάνετε τμήματα του κειμένου που η λειτουργία " +"αντικατάστασης θα ενεργήσει." + +#. (itstool) path: section/title +#: C/gedit-replace.page:86 +msgid "More options" +msgstr "Περισσότερες επιλογές" + +#. (itstool) path: section/p +#: C/gedit-replace.page:88 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "" +"Αν θέλετε, μπορείτε να προσθέσετε μερικές πρόσθετες παραμέτρους στην " +"αναζήτησή σας:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:92 +msgid "Match case" +msgstr "Ταίριασμα πεζών-κεφαλαίων" + +#. (itstool) path: item/p +#: C/gedit-replace.page:93 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Η επιλογή Ταίριασμα πεζών-κεφαλαίων σας επιτρέπει να προσδιορίσετε " +"εάν θέλετε η αναζήτηση σας να έχει διάκριση πεζών-κεφαλαίων. Αν επιλεγεί, οι " +"αναζητήσεις θα έχουν διάκριση πεζών-κεφαλαίων. Αν όχι, οι αναζητήσεις δεν θα " +"έχουν διάκριση πεζών-κεφαλαίων." + +#. (itstool) path: item/title +#: C/gedit-replace.page:98 +msgid "Match entire word only" +msgstr "Ταίριασμα μόνο ολόκληρης λέξης" + +#. (itstool) path: item/p +#: C/gedit-replace.page:99 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Χρησιμοποιήστε αυτή την επιλογή για να αναζητήσετε μια συγκεκριμένη λέξη " +"χωρίς να συμπεριλαμβάνονται κομμάτια άλλων λέξεων. Για παράδειγμα, αν " +"αναζητήσατε την λέξη 'και' με αυτήν την επιλογή ενεργοποιημένη, η λέξη 'και' " +"θα ταιριάξει, αλλά οι λέξεις 'καινούριο' και 'πρόςκαιρος' " +"όχι." + +#. (itstool) path: item/title +#: C/gedit-replace.page:106 +msgid "Search backwards" +msgstr "Αναζήτηση προς τα πίσω" + +#. (itstool) path: item/p +#: C/gedit-replace.page:107 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Αυτή η εντολή συμπεριφέρεται παρόμοια με την εντολή Εύρεση προηγούμενου. Αν " +"θέλετε να μεταβείτε στα αποτελέσματα αναζήτησης από το τέλος στην αρχή, " +"επιλέξτε αυτή την επιλογή." + +#. (itstool) path: item/title +#: C/gedit-replace.page:112 +msgid "Wrap around" +msgstr "Αναδίπλωση ολόγυρα" + +#. (itstool) path: item/p +#: C/gedit-replace.page:113 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Με την επιλογή αναδίπλωση ολόγυρα ενεργοποιημένη, το gedit θα επαναλάβει την ενέργεια αναζήτηση/αντικατάσταση στην αρχή του " +"αρχείου αφού φτάσει στο τέλος του αρχείου. Αυτό διασφαλίζει ότι η ενέργεια " +"αναζήτησης/αντικατάστασης σας έχει γίνει σε όλο το αρχείο." + +#. (itstool) path: section/title +#: C/gedit-replace.page:123 +msgid "Using escape sequences" +msgstr "Χρήση ακολουθιών διαφυγής" + +#. (itstool) path: section/p +#: C/gedit-replace.page:125 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Μπορείτε να χρησιμοποιήσετε ακολουθίες διαφυγής για αναζήτηση " +"αλλαγών γραμμών, επαναφορών κεφαλής και στηλοθετών." + +#. (itstool) path: item/title +#: C/gedit-replace.page:130 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:131 +msgid "Newline" +msgstr "Νέα γραμμή" + +#. (itstool) path: item/title +#: C/gedit-replace.page:134 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:135 +msgid "Carriage return" +msgstr "Επαναφορά κεφαλής" + +#. (itstool) path: item/title +#: C/gedit-replace.page:138 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:139 +msgid "Tab" +msgstr "Στηλοθέτης" + +#. (itstool) path: section/p +#: C/gedit-replace.page:143 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Αν θέλετε στην πραγματικότητα να αναζητήσετε για μια \\ " +"(ανάποδη κάθετο) ή μία από τις ακολουθίες διαφυγής στο κείμενο, χρειάζεστε " +"να διαφύγετε την ανάποδη πλαγιοκάθετο με μια πρόσθετη κάθετο. Για " +"παράδειγμα, για να αναζητήσετε \\, θα χρειαστείτε να εισάγετε " +"\\\\ στην αναζήτηση ή να αντικαταστήσετε το πεδίο. Μπορείτε " +"να αναζητήσετε ακολουθίες διαφυγής με τον ίδιο τρόπο: για να αναζητήσετε ή " +"να αντικαταστήσετε μια \\n, χρησιμοποιήστε τον όρο \\" +"\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Αποθήκευση του αρχείου σας για μεταγενέστερη εργασία." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:27 +msgid "Save a file" +msgstr "Αποθήκευση αρχείου" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:29 +msgid "" +"To save a file in gedit, click on the Save " +"the current file button with the disk-drive icon on the right side of " +"the toolbar or just press CtrlS." +msgstr "" +"Για να αποθηκεύσετε ένα αρχείο στο gedit, κάντε κλικ δεξιά της " +"εργαλειοθήκης στο κουμπί Αποθήκευση του τρέχοντος " +"αρχείου με έναν δίσκο για εικονίδιο ή απλά πατήστε CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, the Save As dialog will appear, and " +"you can select a name for the file, as well as the directory where you would " +"like the file to be saved." +msgstr "" +"Αν αποθηκεύετε ένα νέο αρχείο, θα εμφανιστεί ο διάλογος Αποθήκευση ως, και μπορείτε να επιλέξετε ένα όνομα για το αρχείο, καθώς επίσης και το " +"φάκελο στον οποίο θα επιθυμούσατε να αποθηκευτεί." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Εύρεση τμήματος κειμένου μέσα σε ένα αρχείο." + +#. (itstool) path: page/title +#: C/gedit-search.page:29 +msgid "Search for text" +msgstr "Αναζήτηση κειμένου" + +#. (itstool) path: page/p +#: C/gedit-search.page:31 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Το εργαλείο Αναζήτησης σάς βοηθά να βρείτε συγκεκριμένες ακολουθίες κειμένου " +"μέσα στο αρχείο." + +#. (itstool) path: steps/title +#: C/gedit-search.page:35 +msgid "Finding text" +msgstr "Εύρεση κειμένου" + +#. (itstool) path: item/p +#: C/gedit-search.page:37 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Ανοίξτε το παράθυρο αναζήτησης κάνοντας κλικ στο Μενού Εύρεση… ή " +"πατώντας CtrlF. Αυτό θα μετακινήσει " +"τον δρομέα σας στην αρχή του παραθύρου αναζήτησης." + +#. (itstool) path: item/p +#: C/gedit-search.page:44 +msgid "Type the text you wish to search for in the search window." +msgstr "" +"Πληκτρολογήστε το κείμενο που θέλετε να αναζητήσετε στο παράθυρο " +"αναζήτησης." + +#. (itstool) path: item/p +#: C/gedit-search.page:48 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Καθώς πληκτρολογείτε, το gedit θα ξεκινήσει να υπογραμμίζει τα " +"κομμάτια εκείνα του κειμένου που ταιριάζουν με αυτό που έχετε εισαγάγει." + +#. (itstool) path: page/p +#: C/gedit-search.page:53 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Για να κυλήσετε τα αποτελέσματα της αναζήτησης, κάντε κάποιο από τα παρακάτω:" + +#. (itstool) path: item/p +#: C/gedit-search.page:56 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Πατήστε το πάνω ή κάτω που βλέπει τα βέλη δίπλα στο παράθυρο αναζήτησης." + +#. (itstool) path: item/p +#: C/gedit-search.page:61 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Πατήστε τα πλήκτρα πάνω βέλος ή το κάτω βέλος στο " +"πληκτρολόγιό σας." + +#. (itstool) path: item/p +#: C/gedit-search.page:65 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Πατήστε CtrlG ή CtrlShiftG." + +#. (itstool) path: item/p +#: C/gedit-search.page:69 +msgid "" +"Press the Ctrl and use your mouse or touchpad's scroll " +"feature to move up or down through the text." +msgstr "" +"Πατήστε το Ctrl και χρησιμοποιήστε τη λειτουργία κύλισης του ποντικιού σας ή της πινακίδας αφής για να μετακινηθείτε πάνω ή κάτω " +"στο κείμενο." + +#. (itstool) path: page/p +#: C/gedit-search.page:74 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Για να κλείσετε το παράθυρο αναζήτησης, πατήστε είτε το Esc ή το Enter. Πατώντας το Esc ο δρομέας θα " +"επιστρέψει εκεί που ήταν πριν την αναζήτηση. Πατώντας το Enter θα " +"επιστρέψει στην τωρινή θέση των αποτελεσμάτων της αναζήτησης." + +#. (itstool) path: list/title +#: C/gedit-search.page:80 +msgid "Search tips" +msgstr "Συμβουλές αναζήτησης" + +#. (itstool) path: item/p +#: C/gedit-search.page:82 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Αν επισημάνετε ένα μέρος κειμένου με το ποντίκι σας, και μετά πατήσετε " +"CtrlF, το κείμενο που επιλέξατε θα " +"εμφανιστεί στο παράθυρο αναζήτησης." + +#. (itstool) path: item/p +#: C/gedit-search.page:87 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Για περισσότερες επιλογές αναζήτησης, πατήσετε στο εικονίδιο Μεγεθυντικός φακός στο παράθυρο αναζήτησης, ή πατήστε το " +"δεξί πλήκτρο οπουδήποτε στο παράθυρο αναζήτησης. Μπορείτε να επιλέξετε μία ή " +"περισσότερες από τις ακόλουθες επιλογές αναζήτησης:" + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Επιλέξτε Ταίριασμα πεζών-κεφαλαίων για να κάνετε την αναζήτηση με " +"διάκριση πεζών/κεφαλαίων." + +#. (itstool) path: item/p +#: C/gedit-search.page:96 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Επιλέξτε Ταίριασμα μόνο ολόκληρης λέξης για να αναζητήσετε μόνο " +"ολόκληρες λέξεις." + +#. (itstool) path: item/p +#: C/gedit-search.page:100 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Επιλέξτε Αναδίπλωση ολόγυρα για να αναζητήσετε κείμενο από πάνω " +"προς τα κάτω και κυκλικά προς τα πίσω πάλι." + +#. (itstool) path: item/p +#: C/gedit-search.page:106 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click " +"SearchClear Highlight, or press " +"CtrlShiftK." +msgstr "" +"Το κείμενο που αναζητήσατε παραμένει σημειωμένο από το gedit, ακόμη και αν " +"έχετε ολοκληρώσει την αναζήτηση σας. Για να αφαιρέσετε την επισήμανση, " +"πατήστε στην ΑναζήτησηΕκκαθάριση επισήμανσης, ή πατήστε press CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "" +"Χρήση των συντομεύσεων πληκτρολογίου για να βοηθηθείτε στην εργασία σας πιο " +"γρήγορα." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Πλήκτρα συντόμευσης" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Χρησιμοποιήστε πλήκτρα συντόμευσης για να πραγματοποιήσετε " +"συνήθεις εργασίες πιο γρήγορα σε σχέση με το ποντίκι και τα μενού. Οι " +"ακόλουθοι πίνακες απαριθμούν όλες τις συντομεύσεις πληκτρολογίου του " +"gedit." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Συντομεύσεις πλήκτρων σχετικές με τις καρτέλες" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:167 C/gedit-shortcut-keys.page:261 +#: C/gedit-shortcut-keys.page:286 C/gedit-shortcut-keys.page:323 +#: C/gedit-shortcut-keys.page:352 +msgid "Action" +msgstr "Ενέργεια" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:168 C/gedit-shortcut-keys.page:262 +#: C/gedit-shortcut-keys.page:287 C/gedit-shortcut-keys.page:324 +#: C/gedit-shortcut-keys.page:353 +msgid "Keyboard shortcut" +msgstr "Συντόμευση πληκτρολογίου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Μετάβαση στην επόμενη προς τα αριστερά καρτέλα" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt PageUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Μετάβαση στην επόμενη προς τα δεξιά καρτέλα" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt PageDown" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Κλείσιμο καρτέλας" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:154 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Αποθήκευση όλων των καρτελών" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlShift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Κλείσιμο όλων των καρτελών" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlShiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Άνοιγμα ξανά της πιο πρόσφατης κλεισμένης καρτέλας" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlShiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Μετάβαση στην nη καρτέλα" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Νέα ομάδα καρτελών" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Προηγούμενη ομάδα καρτελών" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"ShiftCtrlAltPage up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Επόμενη ομάδα καρτελών" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"ShiftCtrlAltPage down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Συντομεύσεις πλήκτρων για εργασία με αρχεία" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Δημιουργία νέου εγγράφου σε νέο παράθυρο" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Δημιουργία νέου εγγράφου σε νέα καρτέλα" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +#| msgid "CtrlW" +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Άνοιγμα ενός εγγράφου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Open the Quick Open window" +msgstr "Άνοιγμα του παραθύρου Γρήγορο άνοιγμα." + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +#| msgid "AltF12" +msgid "AltO" +msgstr "AltO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document" +msgstr "Αποθήκευση του τρέχοντος εγγράφου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:139 +msgid "Save the current document with a new filename" +msgstr "Αποθήκευση του τρέχοντος εγγράφου με νέο όνομα αρχείου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "CtrlShift S" +msgstr "CtrlShift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Print the current document" +msgstr "Εκτύπωση του τρέχοντος εγγράφου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:145 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Print preview" +msgstr "Προεπισκόπηση εκτύπωσης" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlShift P" +msgstr "CtrlShift P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:153 +msgid "Close the current document" +msgstr "Κλείσιμο του τρέχοντος εγγράφου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:157 +msgid "Quit gedit" +msgstr "Έξοδος από το gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:158 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:164 +msgid "Shortcut keys for editing files" +msgstr "Συντομεύσεις πλήκτρων για την επεξεργασία αρχείων" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "Move to the beginning of the current line" +msgstr "Μετάβαση στην αρχή της τρέχουσας γραμμής" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:174 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "Move to the end of the current line" +msgstr "Μετάβαση στο τέλος της τρέχουσας γραμμής" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:178 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Move to the beginning of the document" +msgstr "Μετάβαση στην αρχή του εγγράφου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:182 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +msgid "Move to the end of the document" +msgstr "Μετάβαση στο τέλος του εγγράφου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:189 +msgid "Move the selected word right one word" +msgstr "Μετακίνηση της επιλεγμένης λέξης δεξιά κατά μία λέξη" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "AltRight Arrow" +msgstr "AltRight Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:193 +msgid "Move the selected word left one word" +msgstr "Μετακίνηση της επιλεγμένης λέξης αριστερά κατά μία λέξη" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:194 +msgid "AltLeft Arrow" +msgstr "AltLeft Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:197 +msgid "Undo the last action" +msgstr "Αναίρεση της τελευταίας ενέργειας" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:198 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:201 +msgid "Redo the last undone action" +msgstr "Επανάληψη της ενέργειας που έχει ακυρωθεί" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:202 +msgid "CtrlShift Z" +msgstr "CtrlShift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:206 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "" +"Αποκοπή του επιλεγμένου κειμένου ή περιοχής και τοποθέτηση στο πρόχειρο." + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:208 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Αντιγραφή του επιλεγμένου κειμένου ή περιοχής στο πρόχειρο." + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:212 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Paste the contents of the clipboard" +msgstr "Επικόλληση των περιεχομένων του πρόχειρου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:216 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "Select all text in the file" +msgstr "Επιλογή όλου του κειμένου στο αρχείο" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:220 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "Delete the current line" +msgstr "Διαγραφή τρέχουσας γραμμής" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:224 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "Move the selected line up one line" +msgstr "Μετακίνηση της επιλεγμένης γραμμής μια γραμμή επάνω" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:228 +msgid "AltUp Arrow" +msgstr "AltUp Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "Move the selected line down one line" +msgstr "Μετακίνηση της επιλεγμένης γραμμής μια γραμμή κάτω" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:232 +msgid "AltDown Arrow" +msgstr "AltDown Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "Add a tab stop" +msgstr "Προσθήκη στάση στηλοθέτη" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:236 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:239 +msgid "Remove a tab stop" +msgstr "Αφαίρεση στάσης στηλοθέτη" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:240 +msgid "ShiftTab" +msgstr "ShiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:243 +msgid "Convert the selected text to upper case" +msgstr "Μετατροπή του επιλεγμένου κειμένου σε κεφαλαία" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:244 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:247 +msgid "Convert the selected text to lower case" +msgstr "Μετατροπή του επιλεγμένου κειμένου σε πεζά" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:248 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:251 +msgid "Toggle case of the selected text" +msgstr "Αλλαγή του επιλεγμένου κειμένου σε κεφαλαία-πεζά" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:252 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:258 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Συντομεύσεις πλήκτρων για εμφάνιση και απόκρυψη παραθύρων" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:267 +msgid "Show / hide the side pane" +msgstr "Εμφάνιση / απόκρυψη της πλευρικής στήλης" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:268 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:271 +msgid "Show / hide the bottom pane" +msgstr "Εμφάνιση / απόκρυψη του κάτω παραθύρου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:272 +msgid "CtrlF9" +msgstr "CtrlF9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:276 +msgid "Open the file menu" +msgstr "Άνοιγμα του μενού αρχείου" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:277 +#| msgid "F1" +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:283 +msgid "Shortcut keys for searching" +msgstr "Συντομεύσεις πλήκτρων για αναζήτηση" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:292 +msgid "Find a string" +msgstr "Εύρεση συμβολοσειράς" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:293 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:296 +msgid "Find the next instance of the string" +msgstr "Εύρεση του επόμενου στιγμιότυπου της συμβολοσειράς" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:297 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:300 +msgid "Find the previous instance of the string" +msgstr "Εύρεση του προηγούμενου στιγμιότυπου της συμβολοσειράς" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:301 +msgid "CtrlShiftG" +msgstr "CtrlShiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:304 +msgid "Search and Replace" +msgstr "Αναζήτηση και αντικατάσταση" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:305 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:308 +msgid "Clear highlight" +msgstr "Καθαρισμός επισήμανσης" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:309 +msgid "CtrlShift K" +msgstr "CtrlShift K" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:313 +msgid "Goto line" +msgstr "Μετάβαση στη γραμμή" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:314 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:320 +msgid "Shortcut keys for tools" +msgstr "Συντομεύσεις πλήκτρων για εργαλεία" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:329 +msgid "Check spelling" +msgstr "Έλεγχος ορθογραφίας" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:330 +msgid "ShiftF7" +msgstr "ShiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:333 +msgid "Remove trailing spaces (with plugin)" +msgstr "Αφαίρεση τελικών κενών (με πρόσθετο)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:334 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:337 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Εκτέλεση της εντολής \"make\" στον τρέχοντα κατάλογο (με πρόσθετο)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:338 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:341 +msgid "Directory listing (with plugin)" +msgstr "Λίστα καταλόγου (με πρόσθετο)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:342 +msgid "CtrlShift D" +msgstr "CtrlShift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:349 +msgid "Shortcut keys for user help" +msgstr "Συντομεύσεις πλήκτρων για την βοήθεια του χρήστη" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:358 +msgid "Open the gedit user guide" +msgstr "Άνοιγμα του οδηγού χρήσης του gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:359 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Έλεγχος των αρχείων σας για ορθογραφικά σφάλματα." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Έλεγχος ορθογραφίας εγγράφου" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Ενεργοποίηση του ορθογραφικού ελέγχου" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Η λειτουργία ελέγχου ορθογραφίας παρέχεται ως πρόσθετο στο gedit " +"που μπορεί να ενεργοποιηθεί όπως απαιτείται. Για ενεργοποίηση του προσθέτου:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Επιλέξτε Έλεγχος ορθογραφίας για την " +"ενεργοποίηση του προσθέτου." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Για έλεγχο ανορθόγραφων λέξεων στο έγγραφό σας:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Επιλέξτε Εργαλεία Έλεγχος ορθογραφίας." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Για να επισημαίνει αυτόματα το gedit ανορθόγραφες λέξεις στο " +"έγγραφό σας καθώς πληκτρολογείτε, επιλέξτε ΕργαλείαΕπισήμανση ανορθόγραφων λέξεων." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Χρήση ελέγχου ορθογραφίας" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Μπορείτε να επιλέξετε τη σωστή αντικατάσταση για ανορθόγραφες λέξεις " +"χρησιμοποιώντας τον διάλογο ελέγχου ορθογραφίας. Η ανορθόγραφη λέξη που " +"ελέγχεται από τον έλεγχο ορθογραφίας εμφανίζεται με έντονα γράμματα δίπλα " +"στο Ανορθόγραφη λέξη:. Μπορείτε να επιλέξετε από τις ακόλουθες " +"διορθωτικές ενέργειες:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Αλλαγή σε: επιτρέπει την εισαγωγή μιας λέξης και " +"χρήση του Ελέγχου λέξης για τον έλεγχο της " +"εγκυρότητας της ορθογραφίας." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Προτάσεις: που δίνει τις διαθέσιμες " +"αντικαταστάσεις για τη λέξη." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Παράβλεψη που επιτρέπει την παράκαμψη του " +"ελέγχου ορθογραφίας ενός στιγμιότυπου της τρέχουσας λέξης." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Παράβλεψη όλων που επιτρέπει την παράκαμψη του " +"ελέγχου ορθογραφίας για όλα τα στιγμιότυπα της τρέχουσας λέξης." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Αλλαγή που αντικαθιστά την ανορθόγραφη ή μη " +"αναγνωρισμένη λέξη με μια επιλεγμένη αντικατάσταση από τη λίστα " +"Προτάσεις:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Αλλαγή όλων που αντικαθιστά όλες τις " +"ανορθόγραφες ή μη αναγνωρισμένες λέξεις με την επιλεγμένη αντικατάσταση από " +"τη λίστα Προτάσεις:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Προσθήκη λέξης που επιτρέπει στο gedit την προσθήκη της τρέχουσας λέξης στο λεξικό χρήστη. Η " +"προσθήκη προσαρμοσμένων λέξεων στο λεξικό χρήστη θα επιτρέψει στο " +"gedit να αναγνωρίσει τη λέξη σε έγγραφα και έτσι δεν θα " +"επισημαίνεται ως ανορθόγραφη λέξη." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Ορίστε τη γλώσσα που θα χρησιμοποιηθεί για τον ορθογραφικό έλεγχο" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Από προεπιλογή, το gedit θα χρησιμοποιήσει την τρέχουσα γλώσσα " +"για ορθογραφικό έλεγχο του εγγράφου σας. Εάν χρειάζεστε να χρησιμοποιήσετε " +"μια άλλη γλώσσα, επιλέξτε ΕργαλείαΟρισμός γλώσσας…, έπειτα επιλέξτε την " +"επιθυμητή γλώσσα." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Λεξικά" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. Enchant can " +"use several different dictionaries to check your spelling. Two such " +"dictionary back-ends are Hunspell and Aspell." +msgstr "" +"Το gedit χρησιμοποιεί το Enchant, ένα μικρό βοήθημα συστήματος, για " +"ορθογραφικό έλεγχο. Το Enchant μπορεί να χρησιμοποιεί αρκετά διαφορετικά " +"λεξικά για να ελέγξει την ορθογραφία. Δύο τέτοιες υποστηρίξεις λεξικών είναι " +"οι Hunspell και Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Αν η γλώσσα που θέλετε να χρησιμοποιήσετε δεν είναι διαθέσιμη στο " +"gedit, χρησιμοποιήστε τον εγκαταστάτη λογισμικού του υπολογιστή " +"σας ή τον διαχειριστή πακέτων για να εγκαταστήσετε την υποστήριξη λεξικού " +"που θέλετε." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Επισήμανση του κειμένου σας για διευκόλυνση της ανάγνωσης." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Ενεργοποίηση της επισήμανσης σύνταξης" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Επισήμανση σύνταξης" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"Το gedit προσφέρει επισήμανση σύνταξης για ένα ευρύ φάσμα " +"σήμανσης, προγραμματισμού, και επιστημονικών γλωσσών. Αν το gedit " +"αναγνωρίζει την σύνταξη που χρησιμοποιείται όταν ανοίγετε ένα αρχείο, θα " +"επισημάνει αυτόματα το κείμενο." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Αν η σύνταξη ή γλώσσα σας δεν επισημανθεί στην έναρξη, μπορείτε να επιλέξετε " +"την κατάλληλη σύνταξη ή γλώσσα πατώντας στην Προβολή Λειτουργία επισήμανσης και μετά επιλέγοντας την επιθυμητή σύνταξη. Εναλλακτικά, μπορείτε να " +"επιλέξετε το όνομα σύνταξης από λίστα στο κάτω μέρος του παραθύρου " +"gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Ομαδοποίηση παρόμοιων καρτελών μαζί." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Οργάνωση αρχείων σε ομαδοποιημένες καρτέλες" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Αν δουλεύετε με πολλαπλές καρτέλες στο gedit, μπορείτε να τις " +"ομαδοποιήσετε, διευκολύνοντας τη διατήρηση της οργάνωσης των ανοικτών " +"αρχείων σας. Η προσθήκη μιας νέας ομάδας καρτών θα διαιρέσει το παράθυρο " +"gedit σε δύο στήλες, ανοίξτε ένα νέο \"άτιτλο έγγραφο\" στη νέα " +"στήλη και κάντε την ενεργή. Μπορείτε να ανοίξετε αρχεία σε αυτήν την ομάδα " +"καρτελών και να μετακινήσετε καρτέλες από μια ομάδα καρτελών σε άλλη." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Ανοίξτε μια νέα ομάδα καρτελών στο παράθυρο gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Για να ανοίξετε μια νέα ομάδα καρτελών μπορείτε:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Πηγαίνετε στο ΈγγραφαΝέα ομάδα καρτελών στο κυρίως μενού." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Χρησιμοποιήστε τη συντόμευση CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Αυτή η ενέργεια θα διαιρέσει το παράθυρο gedit σε δύο στήλες και " +"η στήλη με τη νέα ομάδα καρτελών θα τοποθετηθεί στα δεξιά της ενεργής " +"καρτέλας. Μπορείτε να μετακινήσετε τη λαβή δεξιά ή αριστερά αναθέτοντας " +"περισσότερο ή λιγότερο χώρο του παραθύρου gedit μεταξύ στηλών " +"σύμφωνα με τις ανάγκες σας." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Μπορείτε να ανοίξετε όσες ομάδες καρτελών στο παράθυρο του gedit " +"όσες επιτρέπει η οθόνη σας, αλλά θα πρέπει να μετακινήσετε τη λαβή για να " +"τις δείτε σωστά." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Για να κλείσετε μια στήλη ομάδας καρτελών, κλείστε απλά όλες τις καρτέλες " +"που ανοίξατε μέσα της." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Μετακινηθείτε μέσα από τις ομάδες καρτελών" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Για να μετακινηθείτε μπροστά (στην επόμενη) ομάδα καρτελών:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Πηγαίνετε στο ΈγγραφαΕπόμενη ομάδα καρτελών στο κυρίως μενού." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Χρησιμοποιήστε τη συντόμευση ShiftCtrlAltPage down." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Για να μετακινηθείτε πίσω (στην προηγούμενη) ομάδα καρτελών:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"Πηγαίνετε στο ΈγγραφαΠροηγούμενη ομάδα καρτελών στο κυρίως μενού." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Χρησιμοποιήστε τη συντόμευση ShiftCtrlAltPage up." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Μετακίνηση καρτέλας σε άλλη ομάδα καρτελών" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "" +"Αν θέλετε να μετακινήσετε μια καρτέλα από μια ομάδα καρτελών σε μια άλλη:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Πατήστε και κρατήστε το κουμπί του ποντικιού στην καρτέλα." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Μεταφορά της καρτέλας σε μια άλλη στήλη ομάδας καρτελών." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Τοποθετήστε την δίπλα στις άλλες καρτέλες στη νέα ομάδα καρτελών." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Απελευθερώστε το κουμπί του ποντικιού." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Δείτε τον πίνακα πλήκτρα συντομεύσεων " +"σχετικά με καρτέλες για διευκόλυνση της διαχείρισης των ομάδων " +"καρτελών σας." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Αλλάξτε τη θέση μιας καρτέλας στο παράθυρο gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Μετακίνηση και ανακατάταξη καρτελών" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Οι καρτέλες στο gedit μπορούν να μετακινηθούν, κάνοντας " +"ευκολότερη την εργασία σας με τα έγγραφα. Οι καρτέλες μπορούν να " +"ταξινομηθούν μέσα στο ίδιο παράθυρο, να μετακινηθούν έξω από το gedit (δημιουργώντας νέο παράθυρο του gedit), και να μετακινηθούν " +"από το ένα παράθυρο στο άλλο." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Αλλάξτε τη σειρά των καρτελών στο παράθυρο gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Για να αλλάξετε την σειρά των καρτελών σε ένα παράθυρο:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Μετακινήστε την καρτέλα στην επιθυμητή θέση μεταξύ των άλλων καρτελών." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Η καρτέλα θα τοποθετηθεί στην πλησιέστερη περιοχή όπου απελευθερώσατε την " +"καρτέλα, αμέσως μεταξύ των άλλων ανοιχτών καρτελών." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Σύρετε μία καρτέλα σε ένα νέο παράθυρο gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Για τη δημιουργία ενός νέου παραθύρου από μια υπάρχουσα καρτέλα:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Σύρετε την καρτέλα έξω από το παράθυρο του gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Για να μετακινήσετε ένα παράθυρο του gedit όταν είναι " +"μεγιστοποιημένο, σύρετε την καρτέλα στην πάνω γραμμή στην κορυφή της οθόνης." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Μετακίνηση της καρτέλας στο νέο παράθυρο gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Αν θέλετε να μετακινήσετε μια καρτέλα από ένα παράθυρο σε άλλο:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Σύρετε την καρτέλα στο νέο παράθυρο." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Τοποθετήστε το δίπλα στις άλλες καρτέλες στο νέο παράθυρο." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Μπορεί να βρείτε πιο εύκολο να μετακινήσετε μια καρτέλα από ένα παράθυρο σε " +"ένα άλλο μεταφέροντας την καρτέλα στην γωνία Δραστηριότητες του " +"κελύφους GNOME. Αυτό θα αποκαλύψει καθένα από τα ανοικτά παράθυρα " +"gedit. Μπορείτε τότε να απελευθερώσετε την καρτέλα στο επιθυμητό " +"παράθυρο gedit." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Δείτε τον πίνακα πλήκτρα συντομεύσεων " +"σχετικά με καρτέλες για διευκόλυνση της διαχείρισης των καρτελών σας." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Αλλαγή ή κλείσιμο των καρτελών στο παράθυρο gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Προσθήκη και αφαίρεση καρτελών" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Η εργασία με καρτέλες στο gedit επιτρέπει να ρίχνετε μια ματιά σε " +"αρκετά αρχεία σε ένα ενιαίο παράθυρο. Η καρτέλα που είναι μεγαλύτερη από τις " +"άλλες υποδεικνύει το τρέχον αρχείο που είναι ανοιχτό. Οι μικρότερες καρτέλες " +"υποδεικνύουν άλλα αρχεία που είναι διαθέσιμα για να εργαστείτε πάνω τους." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Προσθήκη καρτελών" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Για να προσθέσετε μια νέα καρτέλα, δημιουργήστε ένα νέο αρχείο πατώντας " +"Ctrl T. Η καρτέλα θα προστεθεί στην " +"δεξιά πλευρά οποιασδήποτε άλλης καρτέλας." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Αφαίρεση καρτελών" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Για να αφαιρέσετε μια καρτέλα, πατήστε στο × " +"στην δεξιά πλευρά της καρτέλας. Για να αφαιρέσετε όλες τις ανοιχτές " +"καρτέλες, πατήστε Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Αντιστροφή μιας πρόσφατης αλλαγής σε ένα από τα αρχεία σας." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Αναίρεση πρόσφατης ενέργειας" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Αν καθώς χρησιμοποιούσατε το gedit κάνατε κάποιο λάθος, μπορείτε " +"να το αναιρέσετε πατώντας CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "Δεν μπορείτε να αναιρέσετε μια αλλαγή μετά το κλείσιμο του αρχείου." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Επεξεργαστής κειμένου gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Επεξεργαστής κειμένου gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Αρχική σελίδα του οδηγού βοήθειας του gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "Επεξεργαστής κειμένου gedit <_:media-1/>" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Καλώς ορίσατε στον οδηγό βοήθειας του gedit. Για μια γρήγορη " +"εισαγωγή στα πιο βασικά χαρακτηριστικά του gedit, όπως και σε " +"κάποιες προηγμένες συντομεύσεις πλήκτρων, επισκεφθείτε τις σελίδες Ξεκινώντας με το gedit και Συντομεύσεις πλήκτρων." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Άλλα θέματα βοήθειας ομαδοποιούνται στις παρακάτω ενότητες. Απολαύστε τη " +"χρήση του gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Εργασία με αρχεία" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Διαμόρφωση του gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "Πρόσθετα gedit" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Εκτύπωση με το gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Αυτό το έργο έχει αδειοδοτηθεί υπό την <_:link-1/>." + +#~ msgid "To Do This" +#~ msgstr "Για να κάνετε αυτό" + +#~ msgid "Press This" +#~ msgstr "Πατήστε αυτό" + +#~ msgid "Enable and use spell-checking feature" +#~ msgstr "Ενεργοποίηση και χρήση της λειτουργίας ελέγχου ορθογραφίας" + +#~ msgid "View a list of files in the side pane" +#~ msgstr "Προβολή μιας λίστας ανοιχτών αρχείων στην πλευρική στήλη" + +#~ msgid "" +#~ "Keeping track of a large number of files using tabs can be difficult. One " +#~ "way of managing large numbers of files is viewing them in a side pane. " +#~ "Side panes allow you to view more files at a time than is possible using " +#~ "tabs alone." +#~ msgstr "" +#~ "Η παρακολούθηση μεγάλου αριθμού αρχείων με τη χρήση καρτελών μπορεί να " +#~ "είναι δύσκολη. Ένας τρόπος για τη διαχείριση πολλών αρχείων είναι η " +#~ "προβολή τους στην πλευρική στήλη. Οι πλευρικές στήλες σας επιτρέπουν να " +#~ "προβάλετε ταυτόχρονα περισσότερα αρχεία από ότι είναι δυνατόν με τη χρήση " +#~ "μόνο καρτελών." + +#~ msgid "" +#~ "To view a list of open files in a side pane, click View Side Pane. A " +#~ "pane will appear to the left of the workspace with a listing of all " +#~ "currently open files. Clicking a file in the side pane will display that " +#~ "file in the workspace." +#~ msgstr "" +#~ "Για να προβάλετε μια λίστα ανοιχτών αρχείων στην πλευρική στήλη, πατήστε " +#~ "στο Προβολή Πλευρική στήλη. Θα εμφανιστεί μια στήλη στα αριστερά " +#~ "του χώρου εργασίας με μια λίστα όλων των ανοιχτών αρχείων. Πατώντας σε " +#~ "ένα αρχείο στην πλευρική στήλη θα προβάλλει αυτό το αρχείο στον χώρο " +#~ "εργασίας." + +#~ msgid "documents icon" +#~ msgstr "εικονίδιο εγγράφων" + +#~ msgid "" +#~ "The side pane also contains a File Browser view. If the pane " +#~ "displays a file directory instead of currently open files, click <_:" +#~ "media-1/> at the bottom of the pane to switch to the Documents " +#~ "view." +#~ msgstr "" +#~ "Η πλευρική στήλη περιλαμβάνει επίσης μια προβολή Περιήγηση αρχείων. Αν η στήλη προβάλλει έναν κατάλογο αρχείων αντί για τα ανοιχτά " +#~ "αρχεία, πατήστε <_:media-1/> στο κάτω μέρος της στήλης για να αλλάξετε " +#~ "στην προβολή Έγγραφα." + +#~ msgid "" +#~ "The side pane only displays files that are open in the current window. " +#~ "When multiple windows are open, only the files in the current window will " +#~ "be displayed in the side pane." +#~ msgstr "" +#~ "Η πλευρική στήλη προβάλει μόνο αρχεία που είναι ανοιχτά στο τρέχων " +#~ "παράθυρο. Όταν πολλαπλά παράθυρα είναι ανοιχτά, μόνο τα αρχεία στο τρέχον " +#~ "παράθυρο θα εμφανίζονται στην πλευρική στήλη." + +#~ msgid "To change the color scheme, complete the following steps:" +#~ msgstr "Για να αλλάξετε τον συνδυασμό χρωμάτων, κάντε τα ακόλουθα:" + +#~ msgid "" +#~ "or, while the tab to be moved is open, choose Documents Move to New Window" +#~ msgstr "" +#~ "ή, ενώ η καρτέλα που θα μετακινηθεί είναι ανοιχτή, επιλέξτε " +#~ "ΈγγραφαΜετακίνηση σε νέο παράθυρο" + +#~ msgid "http://creativecommons.org/licenses/by-sa/3.0/" +#~ msgstr "http://creativecommons.org/licenses/by-sa/3.0/" + +#~ msgid "" +#~ "This work is licensed under the Creative Commons Attribution-ShareAlike " +#~ "3.0 Unported License. To view a copy of this license, visit <_:link-1/> " +#~ "or send a letter to Creative Commons, 444 Castro Street, Suite 900, " +#~ "Mountain View, California, 94041, USA." +#~ msgstr "" +#~ "Αυτό το έργο έχει αδειοδοτηθεί υπό την άδεια Creative Commons Attribution-" +#~ "ShareAlike 3.0 Unported. Για να δείτε ένα αντίγραφο αυτής της άδειας, " +#~ "επισκεφτείτε <_:link-1/> ή στείλτε ένα γράμμα στο Creative Commons, 444 " +#~ "Castro Street, Suite 900, Mountain View, California, 94041, USA." + +#~ msgid "Log user activity for documents which are opened in gedit" +#~ msgstr "" +#~ "Καταγραφή δραστηριότητας χρήστη για έγγραφα που είναι ανοικτά στο gedit" + +#~ msgid "Zeitgeist dataprovider" +#~ msgstr "Πάροχος δεδομένων Zeitgeist" + +#~ msgid "" +#~ "Zeitgeist is a service that logs user activities and events. Zeitgeist " +#~ "lets other applications access this information in the form of statistics " +#~ "and timelines.The Zeitgeist dataprovider plugin for gedit " +#~ "records user activity for documents used with gedit giving easy access to " +#~ "recently-used and frequently-used files." +#~ msgstr "" +#~ "Το Zeitgeist είναι μια υπηρεσία που καταγράφει τις δραστηριότητες του " +#~ "χρήστη και των συμβάντων. Το Zeitgeist επιτρέπει σε άλλες εφαρμογές να " +#~ "προσπελάσουν αυτήν την πληροφορία στη μορφή των στατιστικών και των " +#~ "χρονοδιαγραμμάτων. Το πρόσθετο παρόχου δεδομένων Zeitgeist για το " +#~ "gedit γράφει τη δραστηριότητα του χρήστη για έγγραφα που " +#~ "χρησιμοποιούνται με το gedit δίνοντας εύκολη πρόσβαση σε πρόσφατα και " +#~ "συχνά χρησιμοποιούμενα αρχεία." + +#~ msgid "Enable Zeitgeist dataprovider" +#~ msgstr "Ενεργοποίηση του παρόχου δεδομένων Zeitgeist" + +#~ msgid "Select Zietgeist Dataprovider." +#~ msgstr "Επιλέξτε πάροχος δεδομένων Zeitgeist." + +#~ msgid "" +#~ "The easiest way to create a new file in gedit, is to click the " +#~ "icon in the toolbar that looks like a blank piece of paper. If you " +#~ "prefer, you may also select FileNew, or press CtrlN." +#~ msgstr "" +#~ "Ο ευκολότερος τρόπος για να δημιουργήσετε ένα αρχείο στο gedit, είναι να πατήσετε στο εικονίδιο στην εργαλειοθήκη που μοιάζει με " +#~ "κενό κομμάτι χαρτιού. Εάν επιθυμείτε, μπορείτε επίσης να επιλέξετε " +#~ "ΑρχείοΝέο, ή πατήστε " +#~ "CtrlN." + +#~ msgid "" +#~ "To save a file in gedit, click on the disk-drive icon with the " +#~ "word Save next to it. You may also select " +#~ "File Save, or just press CtrlS." +#~ msgstr "" +#~ "Για να αποθηκεύσετε ένα αρχείο στο gedit, πατήστε στο " +#~ "εικονίδιο του δίσκου με τη λέξη Αποθήκευση " +#~ "δίπλα του. Μπορείτε επίσης να επιλέξετε Αρχείο Αποθήκευση, ή απλά " +#~ "να πατήσετε CtrlS." + +#~ msgid "" +#~ "If you make a mistake while using gedit, you can undo it by " +#~ "pressing CtrlZ, or by clicking " +#~ "gedit Undo. Doing so will cause gedit to undo one set of " +#~ "similar actions." +#~ msgstr "" +#~ "Εάν κάνατε κάποιο λάθος χρησιμοποιώντας το gedit, μπορείτε να " +#~ "το αναιρέσετε πατώντας CtrlZ, ή " +#~ "πατώντας geditΑναίρεση. Κάνοντας το, το gedit θα αναιρέσει " +#~ "ένα σύνολο παρόμοιων ενεργειών." + +#~ msgid "" +#~ "Undoing a \"set of similar actions\" means, for example, that gedit will remove an entire word rather than removing each character in " +#~ "the word one at a time. This makes gedit's undo " +#~ "feature more efficient." +#~ msgstr "" +#~ "Αναιρώντας μια \"ομάδα όμοιων ενεργειών\" σημαίνει ότι, για παράδειγμα το " +#~ "gedit θα αφαιρέσει μια ολόκληρη λέξη αντί για έναν χαρακτήρα " +#~ "στη λέξη κάθε φορά. Αυτό κάνει πιο λειτουργικό το γνώρισμα του " +#~ "gedit Αναίρεση." + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-icon.png' " +#~ "md5='a7174de2671462e1ac4f80a82ad09184'" +#~ msgstr "" +#~ "external ref='figures/gedit-icon.png' " +#~ "md5='a7174de2671462e1ac4f80a82ad09184'" + +#~ msgid "" +#~ " " +#~ " gedit Text Editor" +#~ msgstr "" +#~ " " +#~ " Επεξεργαστής κειμένου gedit" + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane1.png' " +#~ "md5='ac9c80cb0552d63b593c71f23be69b53'" +#~ msgstr "" +#~ "external ref='figures/gedit-side-pane1.png' " +#~ "md5='ac9c80cb0552d63b593c71f23be69b53'" + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane2.png' " +#~ "md5='e7a12a43adc9c9cb8c992ad22a815a57'" +#~ msgstr "" +#~ "external ref='figures/gedit-side-pane2.png' " +#~ "md5='e7a12a43adc9c9cb8c992ad22a815a57'" + +#~ msgid "Record commonly-referenced locations with bookmarks" +#~ msgstr "Καταγραφή συνήθων τοποθεσιών με σελιδοδείκτες" + +#~ msgid "Bookmarks" +#~ msgstr "Σελιδοδείκτες" + +#~ msgid "" +#~ "Gedit bookmarks allow you to highlight important lines of text within " +#~ "your document or program, making them easier to find. You can also move " +#~ "up or down between bookmarks, making document navigation a bit faster." +#~ msgstr "" +#~ "Η σελιδοδείκτες του gedit σας επιτρέπουν να επισημάνετε σημαντικές " +#~ "γραμμές κειμένου μέσα στο έγγραφο ή το πρόγραμμα σας, κάνοντας ευκολότερη " +#~ "την εύρεση τους. Μπορείτε επίσης να μετακινηθείτε πάνω ή κάτω μεταξύ των " +#~ "σελιδοδεικτών, κάνοντας την πλοήγηση σας στο κειμένο γρηγορότερη." + +#~ msgid "" +#~ "To enable the bookmark plugin, select gedit PreferencesPlugins " +#~ "Bookmarks." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε το πρόσθετο των σελιδοδεικτών, επιλέξτε " +#~ "gedit ΠροτιμήσειςΠρόσθετα Σελιδοδείκτες." + +#~ msgid "" +#~ "Bookmarks are inserted and removed by completing the same action. To " +#~ "insert or remove bookmarks:" +#~ msgstr "" +#~ "Οι σελιδοδείκτες τοποθετούνται και αφαιρούνται αφού ολοκληρώσουν την ίδια " +#~ "ενέργεια. Για να τοποθετήσετε ή να αφαιρέσετε σελιδοδείκτες:" + +#~ msgid "" +#~ "Navigate to the line where you want to insert or remove the bookmark." +#~ msgstr "" +#~ "Πλοηγηθείτε στη γραμμή που θέλετε να προσθέσετε ή να αφαιρέσετε τον " +#~ "σελιδοδείκτη." + +#~ msgid "" +#~ "Press CtrlAltB, or " +#~ "click Edit Toggle Bookmark." +#~ msgstr "" +#~ "Πατήστε CtrlAltB, ή " +#~ "πατήστε στο Επεξεργασία Εναλλαγή σελιδιδείκτη." + +#~ msgid "To move between bookmarks:" +#~ msgstr "Για να μετακινηθείτε μεταξύ των σελιδοδεικτών:" + +#~ msgid "" +#~ "Press CtrlB to move to the next " +#~ "bookmark." +#~ msgstr "" +#~ "Πατήστε CtrlB για να μετακινηθείτε " +#~ "στον επόμενο σελιδοδείκτη." + +#~ msgid "" +#~ "Press CtrlShiftB to " +#~ "move to the previous bookmark." +#~ msgstr "" +#~ "Πατήστε CtrlShiftB για " +#~ "να μετακινηθείτε στον προηγούμενο σελιδοδείκτη." + +#~ msgid "" +#~ "If you prefer using the mouse, you can click gedit Go to Next Bookmark " +#~ "or Edit Go to " +#~ "Previous Bookmark." +#~ msgstr "" +#~ "Εάν προτιμάτε τη χρήση του ποντικιού, μπορείτε να πατήσετε στο " +#~ "gedit Μετάβαση στον " +#~ "επόμενο σελιδοδείκτη ή Επεξεργασία Μετάβαση στον προηγούμενο " +#~ "σελιδοδείκτη." + +#~ msgid "Auto-complete closing brackets" +#~ msgstr "Αυτόματο κλείσιμο αγκυλών" + +#~ msgid "Bracket completion" +#~ msgstr "Συμπλήρωση αγκυλών" + +#~ msgid "" +#~ "The Bracket Completion plugin will auto-complete closing " +#~ "brackets for curly braces, parentheses, and square brackets." +#~ msgstr "" +#~ "Το πρόσθετο Συμπλήρωση αγκυλών θα συμπληρώσει αυτόματα το " +#~ "κλείσιμο των αγκίστρων, παρενθέσεων, και των αγκυλών." + +#~ msgid "" +#~ "To enable the plugin, select gedit PreferencesPlugins Bracket " +#~ "Completion." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθετα Συμπλήρωση αγκυλών." + +#~ msgid "This plugin does not automatically insert closing HTML or XML tags." +#~ msgstr "" +#~ "Αυτό το πρόσθετο δεν εισάγει αυτόματα ετικέτες κλεισίματος HTML ή XML." + +#~ msgid "Paul Weaver" +#~ msgstr "Paul Weaver" + +#~ msgid "Insert special characters just by clicking on them" +#~ msgstr "Εισαγωγή ειδικών χαρακτήρων πατώντας απλά πάνω τους" + +#~ msgid "Character map" +#~ msgstr "Πίνακας χαρακτήρων" + +#~ msgid "" +#~ "The Character Map plugin enables you to insert characters into " +#~ "your document that you may not be able to type easily using your " +#~ "keyboard. To enable this plugin, select gedit PreferencesPlugins Character Map." +#~ msgstr "" +#~ "Το πρόσθετο Πίνακας χαρακτήρων επιτρέπει την εισαγωγή ειδικών " +#~ "χαρακτήρων στο έγγραφό σας τους οποίους δεν μπορείτε να τους εισάγετε " +#~ "εύκολα με το πληκτρολόγιο σας. Για να ενεργοποιήσετε αυτό το πρόσθετο, " +#~ "επιλέξτε gedit ΠροτιμήσειςΠρόσθεταΠίνακας χαρακτήρων." + +#~ msgid "Using Character Map" +#~ msgstr "Χρησιμοποιώντας τον Πίνακα χαρακτήρων" + +#~ msgid "" +#~ "Once the plugin is enabled, you can add characters from the Character " +#~ "Map tab of the side panel (View Side Panel)." +#~ msgstr "" +#~ "Αφού ενεργοποιηθεί το πρόσθετο, μπορείτε να προσθέσετε χαρακτήρες από την " +#~ "καρτέλα Πίνακας χαρακτήρων της πλευρικής στήλης " +#~ "(Προβολή Πλευρική στήλη)." + +#~ msgid "" +#~ "Place the cursor at the point in your document at which you would like " +#~ "your special character." +#~ msgstr "" +#~ "Τοποθετήστε το δρομέα στο μέρος του κειμένου που θέλετε να εισάγετε τον " +#~ "ειδικό χαρακτήρα." + +#~ msgid "" +#~ "Open the side panel by selecting View Side Panel, or by pressing F9." +#~ msgstr "" +#~ "Ανοίξτε την πλευρική στήλη επιλέγοντας ΠροβολήΠλευρική στήλη, ή πατώντας το F9." + +#~ msgid "Select the Character Map tab in the side panel." +#~ msgstr "" +#~ "Επιλέξτε την καρτέλα Πίνακας χαρακτήρων στην πλευρική μπάρα." + +#~ msgid "" +#~ "If neccessary, choose the character set to which your character belongs " +#~ "from the list at the top of the Character Map tab (e.g., Arabic)." +#~ msgstr "" +#~ "Αν είναι απαραίτητο, επιλέξτε την ομάδα που ανήκει ο χαρακτήρας σας από " +#~ "τη λίστα στην κορυφή του Πίνακα χαρακτήρων (π.χ Ελληνικά)." + +#~ msgid "Double click your desired character to insert it." +#~ msgstr "Διπλοπατήστε στο χαρακτήρα που θέλετε να τοποθετήσετε." + +#~ msgid "" +#~ "You must click on the editing view of your document to continue editing " +#~ "normally." +#~ msgstr "" +#~ "Πρέπει να πατήσετε στην προβολή επεξεργασίας του έγγραφου σας για να " +#~ "συνεχίσετε την επεξεργασία." + +#~ msgid "Real-time error highlighting for supported languages" +#~ msgstr "" +#~ "Επισήμανση σφάλματος σε πραγματικό χρόνο για υποστηριζόμενες γλώσσες" + +#~ msgid "Code assistance" +#~ msgstr "Βοήθημα κώδικα" + +#~ msgid "" +#~ "The gedit-code-assistance plugin provides real-time error " +#~ "highlighting for C, C++ and Objective-C. To enable this plugin, select " +#~ "geditPreferences PluginsCode Assistance." +#~ msgstr "" +#~ "Το πρόσθετο gedit-code-assistance παρέχει την επισήμανση " +#~ "λάθους σε πραγματικό χρόνο για C, C++ και Objective-C. Για να " +#~ "ενεργοποιήσετε το πρόσθετο, επιλέξτε geditΠροτιμήσεις ΠρόσθεταΒοήθημα κώδικα." + +#~ msgid "How the code assistance plugin works" +#~ msgstr "Πως λειτουργεί το πρόσθετο βοήθημα κώδικα" + +#~ msgid "" +#~ "The plugin currently relies on information in the makefile to deduce the " +#~ "Clang error-highlighting rules. It examines the make rules " +#~ "and determines which targets depend on the the file that is being parsed. " +#~ "The plugin then extracts the compiler flags by simulating an execution of " +#~ "those targets." +#~ msgstr "" +#~ "Το πρόσθετο βασίζεται στις πληροφορίες του makefile για να εξάγει τους " +#~ "κανόνες Clang για την επισήμανση των σφαλμάτων. Εξετάζει τους κανόνες του " +#~ "make και καθορίζει τους στόχους που εξαρτώνται στο αρχείο " +#~ "που είχε εισαχθεί. Έπειτα το πρόσθετο εξάγει τις σημαίες του " +#~ "μεταγλωττιστή προσομοιώνοντας την εκτέλεση αυτών των στόχων." + +#~ msgid "" +#~ "This is not completely fool proof, of course. In the future, the plugin " +#~ "will allow you to manually specify the compile flags." +#~ msgstr "" +#~ "Φυσικά αυτό δεν είναι εντελώς λάθος. Στο μέλλον, το πρόσθετο θα σας " +#~ "επιτρέψει να καθορίσετε χειροκίνητα της σημαίες του μεταγλωττιστή." + +#~ msgid "Comment-out or uncomment a block of code" +#~ msgstr "Σχολιάστε ή αποσχολιάστε ένα επιλεγμένο τμήμα κώδικα" + +#~ msgid "Code comment" +#~ msgstr "Σχολιασμός κώδικα" + +#~ msgid "" +#~ "Code comments are portions of text that make it easier for people to " +#~ "understand a program's code, but they don't affect how a program works. " +#~ "Comments are separated from other parts of a program by special " +#~ "characters." +#~ msgstr "" +#~ "Τα σχόλια κώδικα είναι τμήματα κειμένου που κάνουν ευκολότερη την " +#~ "κατανόηση του κώδικα από άλλους, χωρίς όμως να επηρεάζουν τη λειτουργία " +#~ "του προγράμματος. Τα σχόλια είναι χωρισμένα από άλλα μέρη του " +#~ "προγράμματος με ειδικούς χαρακτήρες." + +#~ msgid "" +#~ "The code comment plugin makes it easier to quickly create or " +#~ "remove code comments. To enable the code comment plugin, select " +#~ "geditPreferences PluginsCode comment." +#~ msgstr "" +#~ "Το πρόσθετο σχολιασμός κώδικα διευκολύνει τη γρήγορη " +#~ "δημιουργία ή να διαγραφή σχολίων κώδικα. Για να ενεργοποιήσετε το " +#~ "πρόσθετο σχολίων κώδικα, επιλέξτε geditΠροτιμήσεις ΠρόσθεταΣχολιασμός κώδικα." + +#~ msgid "To create or remove a comment:" +#~ msgstr "Για να δημιουργήσετε ή να αφαιρέσετε ένα σχόλιο:" + +#~ msgid "" +#~ "Highlight the portion of text where you want to add or remove a comment." +#~ msgstr "" +#~ "Επιλέξτε το τμήμα κειμένου που θέλετε να προσθέσετε ή να αφαιρέσετε το " +#~ "σχόλιο." + +#~ msgid "" +#~ "To add a comment, click gedit " +#~ "Comment Code, or press Ctrl " +#~ "M." +#~ msgstr "" +#~ "Για να προσθέσετε ένα σχόλιο, πατήστε στο gedit Σχόλιο κώδικα, ή πατήστε " +#~ "Ctrl M." + +#~ msgid "" +#~ "To remove a comment, click gedit " +#~ "Uncomment Code, or press Shift " +#~ "CtrlM." +#~ msgstr "" +#~ "Για να διαγράψετε ένα σχόλιο, πατήστε στο gedit Αποσχολιασμός κώδικα, ή πατήστε " +#~ "ShiftCtrl M." + +#~ msgid "" +#~ "gedit will automatically use the correct style of comment " +#~ "based on the language or syntax of the file. If gedit doesn't " +#~ "identify your language or syntax, you can select it from the language " +#~ "list in the bottom Status bar." +#~ msgstr "" +#~ "Το Gedit θα χρησιμοποιήσει αυτόματα τη σωστή τεχνοτροπία του " +#~ "σχολίου ανάλογα με τη γλώσσα ή τη σύνταξη του αρχείου. Εάν το gedit δεν αναγνωρίσει τη γλώσσα σας ή τη σύνταξη, μπορείτε να την " +#~ "επιλέξετε από τη λίστα γλωσσών στον πυθμένα της Γραμμής κατάστασης." + +#~ msgid "Pick a color from a dialog and insert its hexadecimal representation" +#~ msgstr "" +#~ "Επιλέξτε ένα χρώμα από το διάλογο και εισάγετε τη δεκαεξαδική του " +#~ "αναπαράσταση" + +#~ msgid "Color picker" +#~ msgstr "Επιλογέας χρωμάτων" + +#~ msgid "" +#~ "The color picker plugin helps you to insert the character " +#~ "codes that represent a certain color. This can make it easier to choose " +#~ "and use the correct color in your programs." +#~ msgstr "" +#~ "Το πρόσθετο επιλογέας χρωμάτων σας επιτρέπει να προσθέσετε τον " +#~ "κωδικό που αντιπροσωπεύει ένα χρώμα. Αυτό κάνει ευκολότερη τη χρήση και " +#~ "την επιλογή χρωμάτων στα προγράμματα σας." + +#~ msgid "" +#~ "To enable the color picker plugin, select geditPreferences PluginsColor Picker." +#~ msgstr "" +#~ "Για να ενεργοποίησε το πρόσθετο του επιλογέα χρωμάτων, επιλέξτε " +#~ "geditΠροτιμήσειςΠρόσθεταΕπιλογέας χρωμάτων ." + +#~ msgid "To open and use the color picker:" +#~ msgstr "Για να ανοίξετε και να χρησιμοποιήσετε τον επιλογέα χρώματος:" + +#~ msgid "" +#~ "Place your cursor at the point in your document where you want to insert " +#~ "the color code." +#~ msgstr "" +#~ "Τοποθετήστε τον κέρσορα στο σημείο του εγγράφου που θέλετε να προσθέσετε " +#~ "το χρώμα." + +#~ msgid "" +#~ "Select ToolsPick Color.... The " +#~ "color picker dialog will appear." +#~ msgstr "" +#~ "Επιλέξτε ΕργαλείαΕπιλογή χρώματος.... Θα εμφανιστεί ο επιλογέας χρωμάτων." + +#~ msgid "Click on the desired color in the color picker window." +#~ msgstr "Πατήστε στο επιθυμητό χρώμα στο παράθυρο επιλογέα χρώματος." + +#~ msgid "" +#~ "The appropriate color code will be inserted where you had placed your " +#~ "cursor." +#~ msgstr "" +#~ "Ο κατάλληλος κώδικας χρώματος θα εισαχθεί όπου είχατε τοποθετήσει τον " +#~ "δρομέα σας." + +#~ msgid "To close the color picker, click Close." +#~ msgstr "" +#~ "Για να κλείσετε τον επιλογέα χρωμάτων, πατήστε στο " +#~ "Κλείσιμο." + +#~ msgid "" +#~ "You can make fine-grained adjustments to the color by adjusting the " +#~ "values for Hue, Saturation, Value, Red, Green, or Blue." +#~ msgstr "" +#~ "Μπορείτε να κάνετε μικρές προσαρμογές στα χρώματα σας καθορίζοντας τις " +#~ "τιμές για Απόχρωση, Κορεσμό, Τιμή, Κόκκινο, Πράσινο, ή Μπλε." + +#~ msgid "" +#~ "Additionally, you can save colors by right-clicking on any of the colored " +#~ "boxes in the color picker, and selecting Save color here. This " +#~ "will make it easier to insert commonly-used colors later." +#~ msgstr "" +#~ "Επιπλέον, μπορείτε να αποθηκεύσετε τα χρώματα σας δεξιοπατώντας σε " +#~ "οποιοδήποτε από τα κουτιά του επιλογέα χρώματος, και πατώντας " +#~ "Αποθήκευση χρώματος εδώ. Αυτό αργότερα θα κάνει ευκολότερη την " +#~ "τοποθέτηση των χρωμάτων που χρησιμοποιούνται περισσότερο." + +#~ msgid "Use a command-line interface for advanced editing" +#~ msgstr "Χρήση διεπαφής τερματικού για προχωρημένη επεξεργασία" + +#~ msgid "Commander" +#~ msgstr "Commander" + +#~ msgid "" +#~ "The Commander plugin is a plugin for advanced gedit " +#~ "users that allows you to perform command-line actions on the current " +#~ "file. To enable the commander plugin, select geditPreferences PluginsCommander." +#~ msgstr "" +#~ "Το πρόσθετο Commander είναι ένα πρόσθετο για προχωρημένους " +#~ "χρήστες του gedit που επιτρέπει την εκτέλεση ενεργειών γραμμής " +#~ "εντολών στο τρέχον αρχείο. Για να ενεργοποιήσετε το πρόσθετο, επιλέξτε " +#~ " geditΠροτιμήσεις ΠρόσθεταCommander." + +#~ msgid "" +#~ "Once you have enabled the plugin, activate it by pressing " +#~ "Ctrl.." +#~ msgstr "" +#~ "Αφού ενεργοποιήσατε το πρόσθετο, χρησιμοποιήστε το πατώντας " +#~ "Ctrl.." + +#~ msgid "The last key in the above key combination is a period." +#~ msgstr "" +#~ "Το τελευταίο πλήκτρο στον παραπάνω συνδυασμό πλήκτρων είναι μια τελεία." + +#~ msgid "See an overview of available commands" +#~ msgstr "Δείτε μια επισκόπηση των διαθέσιμων εντολών" + +#~ msgid "Tab + Tab" +#~ msgstr "Tab + Tab" + +#~ msgid "/ foo " +#~ msgstr "/ foo " + +#~ msgid "This will find the word foo." +#~ msgstr "Αυτό θα βρει τη λέξη foo." + +#~ msgid "// foo bar" +#~ msgstr "// foo bar" + +#~ msgid "This will replace foo with bar." +#~ msgstr "Αυτό θα αντικαταστήσει το foo με το bar." + +#~ msgid "Move the cursor to a certain line number in your file" +#~ msgstr "" +#~ "Μετακινήστε το δρομέα σε ένα συγκεκριμένο αριθμό γραμμής στο αρχείο σας" + +#~ msgid "go [line number] or just g [line number]" +#~ msgstr "go [αριθμός γραμμής] ή απλά g [αριθμός γραμμής]" + +#~ msgid "Toggle the bookmark indicator for the current line" +#~ msgstr "Εναλλαγή της ένδειξης σελιδοδείκτη για την τρέχουσα θέση γραμμής" + +#~ msgid "bookmark or just b" +#~ msgstr "bookmark ή απλά b" + +#~ msgid "" +#~ "Some commands, such as the bookmark command require that the " +#~ "appropriate plugin be installed and activated. If you do not have the " +#~ "appropriate plugin installed and activated, you will receive an error " +#~ "message." +#~ msgstr "" +#~ "Μερικές εντολές, όπως η bookmark απαιτούν το κατάλληλο " +#~ "πρόσθετο να είναι εγκατεστημένο και ενεργοποιημένο. Αν δεν έχετε το " +#~ "πρόσθετο, θα δείτε ένα μήνυμα λάθους." + +#~ msgid "Display recently-used and most-used files on startup" +#~ msgstr "" +#~ "Εμφάνιση των πρόσφατα και περισσότερο χρησιμοποιημένων αρχείων στην " +#~ "εκκίνηση" + +#~ msgid "Dashboard" +#~ msgstr "Πίνακας" + +#~ msgid "" +#~ "The Dashboard plugin provides quick access to your most " +#~ "recently-used files and most-frequently used files. To activate the " +#~ "Dashboard plugin, select geditPreferences PluginsDashboard. You will need to restart gedit to activate the Dashboard plugin." +#~ msgstr "" +#~ "Το πρόσθετο Πίνακας-Dashboard παρέχει γρήγορη πρόσβαση στα πιο " +#~ "πρόσφατα και περισσότερο χρησιμοποιημένα αρχεία. Για να ενεργοποιήσετε " +#~ "τον Πίνακα, επιλέξτε geditΠροτιμήσεις ΠρόσθεταΠίνακας. Θα χρειαστεί να επανεκκινήσετε το " +#~ "gedit για να ενεργοποιηθεί το πρόσθετο Πίνακας." + +#~ msgid "" +#~ "The dashboard also includes a Search window, " +#~ "allowing you to search for files that may not appear in the list of files." +#~ msgstr "" +#~ "Επίσης ο Πίνακας περιλαμβάνει παράθυρο Αναζήτησης, " +#~ "που σας επιτρέπει να αναζητήσετε αρχεία που μπορεί να μην εμφανίζονται " +#~ "στη λίστα των αρχείων." + +#~ msgid "Recently used files" +#~ msgstr "Πρόσφατα χρησιμοποιημένα αρχεία" + +#~ msgid "" +#~ "The dashboard will initially display a shortcut for an empty " +#~ "document and seven of your most recently-used files. Click on the " +#~ "empty document to create a new file. Click on any of the other " +#~ "files to open that file." +#~ msgstr "" +#~ "Αρχικά ο πίνακας θα εμφανίσει μια συντόμευση για ένα κενό έγγραφο και επτά από τα περισσότερο χρησιμοποιημένα αρχεία. Πατήστε στο " +#~ "κενό έγγραφο για να δημιουργήσετε ένα νέο αρχείο. Πατήστε σε " +#~ "οποιοδήποτε από τα άλλα αρχεία για να το ανοίξετε." + +#~ msgid "Most frequently-used files" +#~ msgstr "Πρόσφατα χρησιμοποιημένα αρχεία" + +#~ msgid "" +#~ "Similarly, the dashboard displays a shortcut for an empty document and seven of your most frequently-used files. Click on the " +#~ "empty document to create a new file. Click on any of the other " +#~ "files to open that file." +#~ msgstr "" +#~ "Παρομοίως, ο πίνακας εμφανίζει μια συντόμευση για ένα κενό έγγραφο και των επτά περισσότερο χρησιμοποιημένων αρχείων. Πατήστε στο " +#~ "κενό έγγραφο για να δημιουργήσετε ένα νέο αρχείο. Πατήστε σε " +#~ "οποιοδήποτε από τα άλλα αρχεία για να το ανοίξετε." + +#~ msgid "" +#~ "Once activated, the dashboard will be displayed by default " +#~ "when you open gedit. You can also open the dashboard by clicking FileNew , or by " +#~ "pressing CtrlN." +#~ msgstr "" +#~ "Αφού ενεργοποιηθεί, ο Πίνακας θα εμφανιστεί όταν ανοίξετε το " +#~ "gedit. Μπορείτε επίσης να ανοίξετε τον Πίνακα " +#~ "πατώντας στο ΑρχείοΝέο , ή " +#~ "πατώντας CtrlN." + +#~ msgid "Show white space between words or portions of code" +#~ msgstr "Εμφάνιση των διαστημάτων μεταξύ λέξεων και τμημάτων κώδικα" + +#~ msgid "Draw spaces" +#~ msgstr "Σχεδίαση διαστημάτων" + +#~ msgid "" +#~ "The Draw Spaces plugin is a simple plugin that can mark " +#~ "spaces, tabs, and other types of whitespace with a small, visible marker. " +#~ "By making whitespace visible, you can more easily see how whitespace is " +#~ "used in a document, and can apply spacing strategies more consistently." +#~ msgstr "" +#~ "Η Σχεδίαση διαστημάτων είναι ένα απλό πρόσθετο που σημειώνει " +#~ "τα διαστήματα, τους στηλοθέτες, και άλλους τύπους διαστημάτων με ένα " +#~ "μικρό, ορατό σημάδι. Κάνοντας ορατά τα διαστήματα, μπορείτε να δείτε " +#~ "ευκολότερα πως χρησιμοποιούνται τα διαστήματα στο κείμενο, και να " +#~ "εφαρμόσετε συχνότερα στρατηγικές διαστημάτων." + +#~ msgid "" +#~ "To enable this plugin, select gedit " +#~ "PreferencesPlugins Draw " +#~ "Spaces. After you have enabled the plugin, you can set its " +#~ "options by highlighting the plugin and selecting Preferences." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε αυτό το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθετα Σχεδίαση διαστημάτων. Αφού ενεργοποιήσετε το " +#~ "πρόσθετο, μπορείτε να ορίσετε τις επιλογές του επισημαίνοντας το πρόσθετο " +#~ "και επιλέγοντας τις Προτιμήσεις." + +#~ msgid "" +#~ "By default, the Draw Spaces plugin will mark the following " +#~ "types of whitespace in a file:" +#~ msgstr "" +#~ "Από προεπιλογή, το πρόσθετο Σχεδίαση διαστημάτων θα σημειώσει " +#~ "τους ακόλουθους τύπους διαστημάτων σε ένα αρχείο:" + +#~ msgid "Spaces" +#~ msgstr "Διαστήματα" + +#~ msgid "Leading spaces" +#~ msgstr "Leading διαστήματα" + +#~ msgid "Spaces in text" +#~ msgstr "Διαστήματα στο κείμενο" + +#~ msgid "Trailing spaces" +#~ msgstr "Trailing διαστήματα" + +#~ msgid "You can also set the plugin to mark:" +#~ msgstr "Μπορείτε επίσης να ορίσετε το πρόσθετο να σημειώνει:" + +#~ msgid "New Lines" +#~ msgstr "Νέες γραμμές" + +#~ msgid "Non-breaking spaces" +#~ msgstr "Διάστημα χωρίς αλλαγή" + +#~ msgid "" +#~ "Though you will be able to see the dots when you work on a file, the dots " +#~ "will not be visible when you print a file to paper." +#~ msgstr "" +#~ "Αν και θα μπορείτε να δείτε τις τελείες όταν δουλεύετε στο αρχείο, δεν θα " +#~ "είναι όπως ορατές όταν θα εκτυπώσετε το αρχείο." + +#~ msgid "Join several lines of text, or split long lines" +#~ msgstr "Ένωση πολλών γραμμών κειμένου, ή διάσπαση των μεγάλων" + +#~ msgid "Join/Split lines" +#~ msgstr "Ένωση/Διάσπαση γραμμών" + +#~ msgid "" +#~ "The Join/Split Lines plugin can join shorter lines into one " +#~ "longer line, or can split a long line into multiple shorter lines." +#~ msgstr "" +#~ "Το πρόσθετο Ένωση/Διάσπαση γραμμών μπορεί να ενώσει μικρές " +#~ "γραμμές σε μια μεγαλύτερη, ή να διασπάσει μια μεγάλη σε μικρότερες " +#~ "γραμμές." + +#~ msgid "" +#~ "To enable this plugin, select gedit " +#~ "PreferencesPlugins Join/" +#~ "Split Lines." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε αυτό το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθετα Ένωση/Διαίρεση γραμμών." + +#~ msgid "To join multiple lines into one longer line:" +#~ msgstr "Για να ενώσετε πολλαπλές γραμμές σε μία μεγαλύτερη:" + +#~ msgid "" +#~ "Select the lines that you want to join. To do this, you can use the " +#~ "mouse, or you can press ShiftUp Arrow or ShiftDown Arrow." +#~ msgstr "" +#~ "Επιλέξτε τις γραμμές που θέλετε να ενώσετε. Για να το κάνετε, μπορείτε να " +#~ "χρησιμοποιήσετε το ποντίκι, ή να πατήσετε ShiftΠάνω βέλος ή ShiftΚάτω " +#~ "βέλος." + +#~ msgid "Press CtrlJ." +#~ msgstr "Πατήστε CtrlJ." + +#~ msgid "The lines that you selected will be joined into one longer line." +#~ msgstr "Οι γραμμές που επιλέξατε θα ενωθούν σε μια μεγαλύτερη γραμμή." + +#~ msgid "To split one line into multiple lines:" +#~ msgstr "Για να διασπάσετε μια γραμμή σε πολλαπλές γραμμές:" + +#~ msgid "" +#~ "Select the line that you want to split by placing your cursor anywhere on " +#~ "that line." +#~ msgstr "" +#~ "Επιλέξτε τη γραμμή που θέλετε να χωρίσετε τοποθετώντας το δρομέα " +#~ "οπουδήποτε σε αυτή τη γραμμή." + +#~ msgid "Press CtrlShiftJ." +#~ msgstr "" +#~ "Πατήστε CtrlShiftJ." + +#~ msgid "" +#~ "The line will be split into multiple lines. Spaces are used to determine " +#~ "where it is safe to split a line, and the length of each line will not " +#~ "exceed 80 characters." +#~ msgstr "" +#~ "Η γραμμή θα χωριστεί σε πολλαπλές γραμμές. Τα διαστήματα χρησιμοποιούνται " +#~ "για να καθορίσουν το μέρος όπου είναι ασφαλής η διάσπαση της γραμμής, και " +#~ "το μήκος της κάθε γραμμής, ώστε να μη ξεπερνά τους 80 χαρακτήρες." + +#~ msgid "2011" +#~ msgstr "2011" + +#~ msgid "Edit a document in multiple places at once" +#~ msgstr "Επεξεργασία εγγράφου σε πολλαπλά σημεία ταυτόχρονα" + +#~ msgid "Multi edit" +#~ msgstr "Πολλαπλή επεξεργασία" + +#~ msgid "" +#~ "The Multi Edit plugin allows you to edit a document in " +#~ "multiple places at once. This can be helpful when performing tedious " +#~ "editing tasks. To enable the Multi Edit plugin, select gedit PreferencesPluginsMulti " +#~ "Edit." +#~ msgstr "" +#~ "Το πρόσθετο Πολλαπλή επεξεργασία επιτρέπει την επεξεργασία " +#~ "ενός εγγράφου σε πολλαπλά σημεία μονομιάς. Αυτό μπορεί να είναι χρήσιμο " +#~ "όταν κάνετε κουραστικές εργασίες επεξεργασίας. Για να ενεργοποιήσετε το " +#~ "πρόσθετο Πολλαπλή επεξεργασία, επιλέξτε gedit ΠροτιμήσειςΠρόσθεταΠολλαπλή " +#~ "επεξεργασία." + +#~ msgid "" +#~ "After you have enabled the plugin, turn-on Multi Edit mode by pressing " +#~ "CtrlShiftC, or clicking " +#~ "geditMulti Edit Mode. You can then select the points in your file that you would like " +#~ "start editing." +#~ msgstr "" +#~ "Αφού ενεργοποιήσετε το πρόσθετο, ενεργοποιήστε τη λειτουργία πολλαπλής " +#~ "επεξεργασίας πατώντας CtrlShiftC, ή πατώντας στην geditΛειτουργία πολλαπλής επεξεργασίας. Μπορείτε μετά " +#~ "να επιλέξετε τα σημεία στο αρχείο που θέλετε να ξεκινήσετε να " +#~ "επεξεργάζεστε." + +#~ msgid "To insert editing points in your file:" +#~ msgstr "Για να εισαγάγετε σημεία επεξεργασίας στο αρχεία σας:" + +#~ msgid "Place your cursor at your first desired editing point." +#~ msgstr "Τοποθετήστε το δρομέα στο πρώτο επιθυμητό σημείο επεξεργασίας." + +#~ msgid "Press CtrlE." +#~ msgstr "Πατήστε CtrlE." + +#~ msgid "" +#~ "Move to your next editing point, and press Ctrl " +#~ "E again." +#~ msgstr "" +#~ "Πηγαίνετε στο επόμενο σημείο επεξεργασίας, και πατήστε ξανά " +#~ "Ctrl E." + +#~ msgid "Continue inserting editing points, adding as many as you need." +#~ msgstr "" +#~ "Συνεχίστε με την εισαγωγή σημείων, προσθέτοντας όσο περισσότερα θέλετε." + +#~ msgid "" +#~ "Once you have inserted all of your editing points, you can make your " +#~ "desired edits." +#~ msgstr "" +#~ "Όταν τοποθετήσετε όλα τα σημεία επεξεργασίας, μπορείτε να κάνετε τις " +#~ "επιθυμητές διορθώσεις." + +#~ msgid "" +#~ "To remove editing points, press the Esc key. This will remove " +#~ "all of the editing points. Pressing the Esc key again will " +#~ "turn off Multi Edit mode, returning the editor back to its normal state." +#~ msgstr "" +#~ "Για να αφαιρέσετε σημεία επεξεργασίας, πατήστε το πλήκτρο Esc " +#~ "key. Αυτό θα αφαιρέσει όλες τα σημεία. Πατώντας ξανά το πλήκτρο Esc θα απενεργοποιηθεί η λειτουργία της Πολλαπλής επεξεργασίας, " +#~ "επιστρέφοντας τον επεξεργαστή στην αρχική του κατάσταση." + +#~ msgid "Save and restore your working sessions" +#~ msgstr "Αποθήκευση και ανάκτηση των ενεργών συνεδριών σας" + +#~ msgid "Session Saver" +#~ msgstr "Αποθήκευση συνεδριών" + +#~ msgid "" +#~ "The Session Saver plugin saves groups of files together so " +#~ "that you can open them together at a later time. To enable the plugin, " +#~ "select gedit PreferencesPlugins Session Saver." +#~ msgstr "" +#~ "Το πρόσθετο Αποθήκευση συνεδρίας αποθηκεύει ομάδες αρχείων " +#~ "μαζί ώστε να μπορείτε να τις ανοίξετε μαζί μια άλλη στιγμή. Για να " +#~ "ενεργοποιήσετε το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθετα " +#~ "Αποθήκευση συνεδρίας." + +#~ msgid "To save a new session:" +#~ msgstr "Για να αποθηκεύσετε μια νέα συνεδρία:" + +#~ msgid "" +#~ "Select FileSaved SessionsSave current " +#~ "session." +#~ msgstr "" +#~ "Επιλέξτε ΑρχείοΑποθηκευμένες συνεδρίεςΑποθήκευση τρέχουσας συνεδρίας." + +#~ msgid "Type a session name in the Save session dialog box." +#~ msgstr "" +#~ "Πληκτρολογήστε το όνομα της συνεδρίας στο παράθυρο του διαλόγου " +#~ "Αποθήκευση συνεδρίας." + +#~ msgid "Click Save." +#~ msgstr "Πατήστε στην Αποθήκευση." + +#~ msgid "To open an existing session:" +#~ msgstr "Για να ανοίξετε μια υπάρχουσα συνεδρία:" + +#~ msgid "Select FileSaved Sessions." +#~ msgstr "" +#~ "Επιλέξτε ΑρχείοΑποθηκευμένες συνεδρίες." + +#~ msgid "Click the name of your desired session." +#~ msgstr "Πατήστε στο όνομα της επιθυμητής συνεδρίας." + +#~ msgid "To delete an existing session:" +#~ msgstr "Για να διαγράψετε μια τρέχουσα συνεδρία:" + +#~ msgid "" +#~ "Select FileSaved Sessions Manage saved " +#~ "sessions." +#~ msgstr "" +#~ "Επιλέξτε ΑρχείοΑποθηκευμένες συνεδρίες " +#~ "Διαχείριση αποθηκευμένων συνεδριών." + +#~ msgid "Click Delete." +#~ msgstr "Πατήστε στο Διαγραφή." + +#~ msgid "" +#~ "The session name will still be listed in your list of sessions until you " +#~ "close gedit." +#~ msgstr "" +#~ "Η συνεδρία θα εμφανιστεί στη λίστα των συνεδριών μέχρι να κλείσετε το " +#~ "gedit." + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane3.png' " +#~ "md5='4b800d370193ac0ed8db9eb33b86e11c'" +#~ msgstr "" +#~ "external ref='figures/gedit-side-pane3.png' " +#~ "md5='4b800d370193ac0ed8db9eb33b86e11c'" + +#~ msgid "" +#~ "Automatically insert tags, strings and special characters into a document" +#~ msgstr "" +#~ "Αυτόματη προσθήκη ετικετών, συμβολοσειρών και ειδικών χαρακτήρων σε ένα " +#~ "έγγραφο" + +#~ msgid "Tag list" +#~ msgstr "Λίστα ετικετών" + +#~ msgid "" +#~ "The Tag List plugin allows you to insert common tags and " +#~ "special characters from a list in the side pane. By default, the plugin " +#~ "can insert tags and special characters for HTML, XHTML, XSLT, XUL and LaTeX." +#~ msgstr "" +#~ "Το πρόσθετο Λίστα ετικετών σας επιτρέπει να εισάγετε κοινές " +#~ "ετικέτες και ειδικούς χαρακτήρες από μία λίστα στην πλευρική στήλη. Από " +#~ "προεπιλογή, το πρόσθετο μπορεί να εισάγει ετικέτες και ειδικούς " +#~ "χαρακτήρες για HTML, XHTML, XSLT, " +#~ "XUL και LaTeX." + +#~ msgid "Enable Tag List Plugin" +#~ msgstr "Ενεργοποίηση προσθέτου λίστας ετικετών" + +#~ msgid "To enable the Tag List plugin:" +#~ msgstr "Για ενεργοποίηση του προσθέτου Λίστα ετικετών:" + +#~ msgid "Select Tag List to enable the plugin." +#~ msgstr "" +#~ "Επιλέξτε Λίστα ετικετών για ενεργοποίηση " +#~ "του προσθέτου." + +#~ msgid "" +#~ "Access the tag list by selecting View " +#~ "Side Pane, or by pressing F9." +#~ msgstr "" +#~ "Προσπελάστε την λίστα ετικετών επιλέγοντας Προβολή Πλευρική στήλη, ή " +#~ "πατώντας το F9." + +#~ msgid "" +#~ "The side pane will initially show a list of open documents, so to view " +#~ "and use the Tag List, you will need to click on the tab " +#~ "showing the \"plus\" icon at the bottom of the side pane. The icon will " +#~ "look similar to this:" +#~ msgstr "" +#~ "Η πλευρική στήλη αρχικά δείχνει μια λίστα ανοιχτών εγγράφων, οπότε για να " +#~ "προβάλετε και να χρησιμοποιήσετε την Λίστα ετικετών, θα " +#~ "χρειαστεί να πατήσετε στην καρτέλα που δείχνει το εικονίδιο \"συν\" στο " +#~ "κάτω μέρος της πλευρικής στήλης. Το εικονίδιο θα μοιάζει με αυτό:" + +#~ msgid "Inserting Tags and Special Characters" +#~ msgstr "Εισαγωγή ετικετών και ειδικών χαρακτήρων" + +#~ msgid "" +#~ "The tag list uses a drop-down menu to let you choose from the " +#~ "different types of tags. For example, one tag option is HTML - Tags." +#~ msgstr "" +#~ "Η λίστα ετικετών χρησιμοποιεί ένα αναδυόμενο μενού που σας " +#~ "επιτρέπει να διαλέξετε από τις διάφορες ετικέτες. Για παράδειγμα, μια " +#~ "επιλογή ετικετών είναι οι ετικέτες - HTML." + +#~ msgid "To start inserting tags, complete the following:" +#~ msgstr "Για να αρχίσετε να εισαγωγή ετικετών, κάντε τα ακόλουθα:" + +#~ msgid "" +#~ "Move the cursor to where you will want to insert the tag or special " +#~ "character." +#~ msgstr "" +#~ "Μετακινήστε τον κέρσορα στο μέρος που θέλετε να εισάγετε την ετικέτα ή " +#~ "τον ειδικό χαρακτήρα." + +#~ msgid "" +#~ "Select the desired tag type from the drop-down menu at the top of the " +#~ "side pane." +#~ msgstr "" +#~ "Επιλέξτε τον επιθυμητό τύπο ετικέτας από το αναδυόμενο μενού στο πάνω " +#~ "μέρος της πλευρικής στήλης." + +#~ msgid "Scroll through the list to find the desired tag or character." +#~ msgstr "" +#~ "Κυλήστε τη λίστα ετικετών μέχρι να βρείτε την απαιτούμενη ετικέτα ή " +#~ "χαρακτήρα." + +#~ msgid "Double-click on the tag in the tag list." +#~ msgstr "Διπλοπατήστε στην ετικέτα στην λίστα ετικετών." + +#~ msgid "" +#~ "The tag or special character you have chosen will then be displayed in " +#~ "your document." +#~ msgstr "" +#~ "Η ετικέτα ή ο ειδικός χαρακτήρας που επιλέξατε θα εμφανισθεί τότε στο " +#~ "έγγραφο σας." + +#~ msgid "Tag List Tips" +#~ msgstr "Συμβουλές λίστας ετικετών" + +#~ msgid "" +#~ "You can also insert a tag by pressing Return or " +#~ "ShiftReturn." +#~ msgstr "" +#~ "Μπορείτε επίσης να εισάγετε μια ετικέτα πατώντας Return ή " +#~ "ShiftReturn." + +#~ msgid "" +#~ "Pressing the Return key will insert the tag at the cursor " +#~ "position, and then return focus to the document. Pressing " +#~ "ShiftReturn will insert the tag at " +#~ "the cursor position, but will keep the focus on the tag-list." +#~ msgstr "" +#~ "Πατώντας το πλήκτρο Επιστροφή θα εισάγει την ετικέτα στη θέση " +#~ "του δρομέα και μετά θα επαναφέρει την εστίαση στο έγγραφο. Πατώντας " +#~ "ShiftΕπιστροφή θα εισάγει την " +#~ "ετικέτα στη θέση του δρομέα, αλλά θα κρατήσει την εστίαση στην Λίστα " +#~ "ετικετών." + +#~ msgid "" +#~ "You can see a preview of what text will be inserted for each tag and " +#~ "special character by clicking on the word the Preview at the " +#~ "bottom of the side pane." +#~ msgstr "" +#~ "Μπορείτε να δείτε μια προεπισκόπηση του κειμένου που θα εισαχθεί για κάθε " +#~ "ετικέτα και ειδικό χαρακτήρα πατώντας στην λέξη και Προεπισκόπηση στο κάτω μέρος της πλευρικής στήλης." + +#~ msgid "Add a terminal console to the bottom pane" +#~ msgstr "Προσθέστε μια κονσόλα τερματικού στο κάτω παράθυρο" + +#~ msgid "Embedded terminal" +#~ msgstr "Ενσωματωμένο τερματικό" + +#~ msgid "" +#~ "gedit makes it possible to include an embedded version of " +#~ "GNOME Terminal, the GNOME command-line application, in the " +#~ "bottom pane of the gedit window. This will let you run " +#~ "scripts, install needed software, or test your program without leaving " +#~ "gedit." +#~ msgstr "" +#~ "Το gedit καθιστά δυνατή τη συμπερίληψη μιας ενσωματωμένης " +#~ "έκδοσης του Τερματικού Gnome, την εφαρμογή της γραμμής εντολών " +#~ "GNOME, στο κάτω πλαίσιο του παραθύρου του gedit. Αυτό θα σας " +#~ "επιτρέψει να τρέξετε σενάρια, να εγκαταστήσετε λογισμικό που χρειάζεστε, " +#~ "ή να ελέγξετε το πρόγραμμα σας χωρίς να φύγετε από το gedit." + +#~ msgid "Enable Embedded Terminal" +#~ msgstr "Ενεργοποίηση ενσωματωμένου τερματικού" + +#~ msgid "To enable the Embedded Terminal plugin:" +#~ msgstr "Για ενεργοποίηση του ενσωματωμένου προσθέτου τερματικού:" + +#~ msgid "" +#~ "Select Embedded Terminal to enable the " +#~ "plugin." +#~ msgstr "" +#~ "Επιλέξτε Ενσωματωμένο τερματικό για " +#~ "ενεργοποίηση του προσθέτου." + +#~ msgid "Using Embedded Terminal" +#~ msgstr "Χρήση του ενσωματωμένου τερματικού" + +#~ msgid "" +#~ "Once you have enabled the plugin, to add a terminal to the bottom pane:" +#~ msgstr "" +#~ "Όταν ενεργοποιήσετε το πρόσθετο, για να προσθέσετε ένα τερματικό στο κάτω " +#~ "παράθυρο:" + +#~ msgid "" +#~ "Select View Bottom Pane. Alternatively, you can press " +#~ "CtrlF9." +#~ msgstr "" +#~ "Επιλέξτε Προβολή Κατω παράθυρο. Εναλλακτικά, μπορείτε να πατήστε " +#~ "CtrlF9." + +#~ msgid "Increase or decrease text size" +#~ msgstr "Αυξήστε ή ελαττώστε το μέγεθος του κειμένου" + +#~ msgid "Text Size" +#~ msgstr "Μέγεθος κειμένου" + +#~ msgid "" +#~ "The text size plugin allows you to temporarily change the text size for " +#~ "better readibility in gedit without changing the program's " +#~ "default text size." +#~ msgstr "" +#~ "Το πρόσθετο μέγεθος του κειμένου επιτρέπει την προσωρινή αλλαγή του " +#~ "μεγέθους του κειμένου για καλύτερη αναγνωσιμότητα στο gedit " +#~ "χωρίς να αλλάξετε το προεπιλεγμένο μέγεθος κειμένου της εφαρμογής." + +#~ msgid "Enable Text Size Plugin" +#~ msgstr "Ενεργοποίηση προσθέτου μεγέθους κειμένου" + +#~ msgid "To enable Text Size plugin:" +#~ msgstr "Για να ενεργοποιήσετε το πρόσθετο μεγέθους κειμένου:" + +#~ msgid "Select Text Size to enable the plugin." +#~ msgstr "" +#~ "Επιλέξτε Μέγεθος κειμένου για την " +#~ "ενεργοποίηση του προσθέτου." + +#~ msgid "Use Text Size Plugin" +#~ msgstr "Χρήση προσθέτου μεγέθους κειμένου" + +#~ msgid "" +#~ "Once you have enabled the plugin, do any of the following to change the " +#~ "text size in gedit:" +#~ msgstr "" +#~ "Όταν ενεργοποιήσετε το πρόσθετο, κάντε ένα από τα παρακάτω για να " +#~ "αλλάξετε το μέγεθος του κειμένου στο gedit:" + +#~ msgid "" +#~ "To increase the text size, press Ctrl+." +#~ msgstr "" +#~ "Για αύξηση του μεγέθους του κειμένου, πατήστε Ctrl+." + +#~ msgid "" +#~ "To decrease the text size, press Ctrl-." +#~ msgstr "" +#~ "Για μείωση του μεγέθους του κειμένου, πατήστε Ctrl-." + +#~ msgid "" +#~ "To reset the text size to the default size, press " +#~ "Ctrl0." +#~ msgstr "" +#~ "Για επαναφορά του μεγέθους του κειμένου στο προεπιλεγμένο " +#~ "μέγεθος, πατήστε Ctrl0." + +#~ msgid "Autocomplete words or portions of code as you type" +#~ msgstr "Αυτόματη συμπλήρωση λέξεων ή τμημάτων κώδικα καθώς πληκτρολογείτε" + +#~ msgid "Word completion" +#~ msgstr "Συμπλήρωση λέξεων" + +#~ msgid "" +#~ "The Word Completion plugin can speed up your editing by " +#~ "suggesting completions of words as you type. To enable the plugin:" +#~ msgstr "" +#~ "Με το πρόσθετο Συμπλήρωση λέξεων μπορείτε να επιταχύνετε την " +#~ "επεξεργασία διότι προτείνονται συμπληρώσεις λέξεων καθώς πληκτρολογείτε. " +#~ "Για να ενεργοποιήσετε το πρόσθετο:" + +#~ msgid "" +#~ "Select Edit Preferences Plugins." +#~ msgstr "" +#~ "Επιλέξτε Επεξεργασία Προτιμήσεις Πρόσθετα." + +#~ msgid "" +#~ "Select Word Completion to enable the plugin." +#~ msgstr "" +#~ "Επιλέξτε Συμπλήρωση λέξεων για ενεργοποίηση " +#~ "του προσθέτου." + +#~ msgid "" +#~ "While editing, the Word Completion plugin will automatically " +#~ "display a pop-up list of words that begin with the letters you have " +#~ "already typed. Word suggestions are based upon words that appear " +#~ "elsewhere in your document and upon pre-defined keywords if your document " +#~ "is of a recognised format." +#~ msgstr "" +#~ "Κατά την επεξεργασία, το πρόσθετο Συμπλήρωση λέξεων θα " +#~ "εμφανίσει αυτόματα μια λίστα λέξεων που θα ξεκινούν με τα γράμματα που " +#~ "έχετε πληκτρολογήσει. Οι υποδείξεις λέξεων βασίζονται σε λέξεις που " +#~ "εμφανίζονται στο έγγραφο σας και σε προκαθορισμένες λέξεις κλειδιά αν το " +#~ "έγγραφο σας είναι μιας αναγνωρίσιμης μορφής." + +#~ msgid "" +#~ "To insert a suggested word, double-click on it in the pop-up list or " +#~ "press AltNum, where Num " +#~ "is the number displayed next to your desired word." +#~ msgstr "" +#~ "Για να εισαγάγετε μια λέξη, διπλοπατήστε στην αναδυόμενη λίστα ή πατήστε " +#~ "AltNum, όπου Num είναι " +#~ "ο αριθμός που εμφανίζεται στην επιθυμητή σας λέξη." + +#~ msgid "" +#~ "The list of available languages will vary, depending on the configuration " +#~ "of your system." +#~ msgstr "" +#~ "Η λίστα των διαθέσιμων γλωσσών θα ποικίλει, ανάλογα με τη διαμόρφωση του " +#~ "συστήματός σας." + +#~ msgid "Once you've enabled it, here is how to use the plugin:" +#~ msgstr "" +#~ "Μόλις το ενεργοποιήσετε, δείτε πως μπορείτε να χρησιμοποιήσετε το " +#~ "πρόσθετο:" + +#~ msgid "" +#~ "The Quick Open plugin will only display files that you have " +#~ "previously opened." +#~ msgstr "" +#~ "Το πρόσθετο Γρήγορο άνοιγμα εμφανίζει μόνο τα αρχεία που " +#~ "είχατε ανοίξει προηγουμένως." + +#~| msgid "" +#~| "Select gedit Preferences Font & Colors." +#~ msgid "" +#~ "Select Manage " +#~ "Snippets.." +#~ msgstr "" +#~ "Επιλέξτε Διαχείριση " +#~ "αποσπασμάτων.." + +#~ msgid "" +#~ "To enable the Snippets plugin, select gedit PreferencesPluginsSnippets." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε το πρόσθετο Αποσπάσματα, επιλέξτε " +#~ " gedit ΠροτιμήσειςΠρόσθεταΑποσπάσματα." + +#~ msgid "Using, Modifying and creating snippets" +#~ msgstr "Χρήση, επεξεργασία και δημιουργία αποσπασμάτων" + +#~ msgid "Inserting snippets of text into your files" +#~ msgstr "Εισαγωγή αποσπασμάτων κειμένου στα αρχεία σας" + +#~ msgid "The following points will help you get started with using snippets:" +#~ msgstr "" +#~ "Τα ακόλουθα στοιχεία θα σας βοηθήσουν να ξεκινήσετε με τα αποσπάσματα:" + +#~ msgid "Make sure the syntax is set appropriately." +#~ msgstr "Σιγουρευτείτε πως έχει οριστεί σωστά η σύνταξη." + +#~ msgid "Review the default snippets." +#~ msgstr "Αναθεώρηση των προεπιλεγμένων αποσπασμάτων." + +#~ msgid "" +#~ "Select ToolsManage Snippets. " +#~ "Review the snippets that are available for your language or syntax. Find " +#~ "some basic snippets that you think might be useful for you." +#~ msgstr "" +#~ "Επιλέξτε ΕργαλείαΔιαχείριση αποσπασμάτων. Αναθεωρήστε τα αποσπάσματα που είναι διαθέσιμα για τη γλώσσα ή " +#~ "τη σύνταξη σας. Βρείτε μερικά βασικά αποσπάσματα που πιθανόν να είναι " +#~ "χρήσιμα για εσάς." + +#~ msgid "Try using some of the snippets." +#~ msgstr "Δοκιμάστε να χρησιμοποιήσετε μερικά αποσπάσματα." + +#~ msgid "" +#~ "To enable the Sort plugin, select gedit PreferencesPluginsSort." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε το πρόσθετο Ταξινόμηση, επιλέξτε " +#~ "gedit ΠροτιμήσειςΠρόσθεταΤαξινόμηση." + +#~ msgid "" +#~ "After you have enabled the Sort plugin, use it by selecting " +#~ "the lines of text you want to sort, and then clicking geditSort." +#~ msgstr "" +#~ "Αφού ενεργοποιήσετε το πρόσθετο Ταξινόμηση, χρησιμοποιήστε το " +#~ "επιλέγοντας τις γραμμές κειμένου που θέλετε να ταξινομήσετε, και έπειτα " +#~ "πατώντας στην geditΤαξινόμηση." + +#~ msgid "" +#~ "To use the Tag List plugin, you will need to enable the " +#~ "plugin, and then activate the tag-list portion of the side pane." +#~ msgstr "" +#~ "Για να χρησιμοποιήσετε το πρόσθετο Λίστα ετικετών, θα " +#~ "χρειαστεί να ενεργοποιήσετε το πρόσθετο, και μετά να ενεργοποιήσετε το " +#~ "τμήμα της λίστας ετικετών του πλευρικού παράθυρου." + +#~ msgid "" +#~ "You can activate the plugin by selecting gedit PreferencesPluginsTag List. Once you have activated the plugin, " +#~ "access it by selecting ViewSide Pane, or by pressing F9." +#~ msgstr "" +#~ "Μπορείτε να ενεργοποιήσετε το πρόσθετο επιλέγοντας gedit ΠροτιμήσειςΠρόσθεταΛίστα ετικετών. Αφού " +#~ "ενεργοποιήσετε το πρόσθετο, πηγαίνετε σε αυτό επιλέγοντας " +#~ "ΠροβολήΠλευρική στήλη, ή πατώντας " +#~ "F9." + +#~ msgid "" +#~ "To enable this plugin, select gedit " +#~ "PreferencesPlugins Embedded " +#~ "Terminal." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε αυτό το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθεταΕνσωματωμένο τερματικό." + +#~ msgid "" +#~ "Once you have enabled the plugin, add the terminal to the bottom pane by " +#~ "selecting ViewBottom Pane, or just " +#~ "press CtrlF9." +#~ msgstr "" +#~ "Αφού ενεργοποιήσετε το πρόσθετο, προσθέστε το τερματικό στο κάτω παράθυρο " +#~ "επιλέγοντας ΠροβολήΚάτω παράθυρο, " +#~ "ή απλά πατήστε CtrlF9." + +#~ msgctxt "_" +#~ msgid "external ref='reverse-collate.png' md5='__failed__'" +#~ msgstr "external ref='reverse-collate.png' md5='__failed__'" + +#~ msgid "To reverse the order:" +#~ msgstr "Για να αντιστρέψετε τη σειρά:" + +#~ msgid "" +#~ "In the General tab of the Print window under Copies, " +#~ "check Reverse. The last page will be printed first, and so on." +#~ msgstr "" +#~ "Στην καρτέλα Γενικά του παραθύρου Εκτύπωση κάτω από τα " +#~ "Αντίγραφα επιλέξτε Αντίστροφη σειρά. Η τελευταία " +#~ "σελίδα θα εκτυπωθεί πρώτη και ούτω καθεξής." + +#~ msgid "Printing output to a file" +#~ msgstr "Εκτύπωση σε αρχείο" + +#~ msgid "" +#~ "You can also use gedit to print to a file. To do so, select " +#~ "FilePrintPrint to File." +#~ msgstr "" +#~ "Μπορείτε επίσης να χρησιμοποιήσετε το gedit για να εκτυπώσετε " +#~ "ένα. Για αν το κάνετε, επιλέξτε ΑρχείοΕκτύπωσηΕκτύπωση σε αρχείο." + +#~ msgctxt "_" +#~ msgid "external ref='print-select.png' md5='__failed__'" +#~ msgstr "external ref='print-select.png' md5='__failed__'" + +#~ msgid "To only print certain pages from the document:" +#~ msgstr "Για να εκτυπώσετε συγκεκριμένες σελίδες από το έγγραφο:" + +#~ msgid "Click File Print..." +#~ msgstr "" +#~ "Πατήστε στο Αρχείο Εκτύπωση...." + +#~ msgid "" +#~ "For example, if you enter \"1,3,5-7,9\" in the Pages textbox, " +#~ "pages 1, 3, 5, 6, 7 and 9 will be printed." +#~ msgstr "" +#~ "Για παράδειγμα, εάν εισάγετε\"1,3,5-7,9\" στο πλαίσιο κειμένου " +#~ "σελίδες, θα τυπωθούν οι σελίδες 1, 3, 5, 6, 7 και 9." + +#~ msgid "Ctrl + Alt + PageUp" +#~ msgstr "Ctrl + Alt + PageUp" + +#~ msgid "Ctrl + Alt + PageDown" +#~ msgstr "Ctrl + Alt + PageDown" + +#~ msgid "Ctrl + W" +#~ msgstr "Ctrl + W" + +#~ msgid "Ctrl + Shift + L" +#~ msgstr "Ctrl + Shift + L" + +#~ msgid "Ctrl + Shift + W" +#~ msgstr "Ctrl + Shift + W" + +#~ msgid "Alt + n" +#~ msgstr "Alt + n" + +#~ msgid "Ctrl + N" +#~ msgstr "Ctrl + N" + +#~ msgid "Ctrl + O" +#~ msgstr "Ctrl + O" + +#~ msgid "Ctrl + S" +#~ msgstr "Ctrl + S" + +#~ msgid "Ctrl + Shift + S" +#~ msgstr "Ctrl + Shift + S" + +#~ msgid "Ctrl + P" +#~ msgstr "Ctrl + P" + +#~ msgid "Ctrl + Shift + P" +#~ msgstr "Ctrl + Shift + P" + +#~ msgid "Ctrl + Q" +#~ msgstr "Ctrl + Q" + +#~ msgid "Ctrl + Z" +#~ msgstr "Ctrl + Z" + +#~ msgid "Ctrl + Shift + Z" +#~ msgstr "Ctrl + Shift + Z" + +#~ msgid "Ctrl + X" +#~ msgstr "Ctrl + X" + +#~ msgid "Ctrl + C" +#~ msgstr "Ctrl + C" + +#~ msgid "Ctrl + V" +#~ msgstr "Ctrl + V" + +#~ msgid "Ctrl + A" +#~ msgstr "Ctrl + A" + +#~ msgid "Ctrl + D" +#~ msgstr "Ctrl + D" + +#~ msgid "Alt + Up Arrow" +#~ msgstr "Alt + πάνω βέλος" + +#~ msgid "Alt + Down Arrow" +#~ msgstr "Alt + κάτω βέλος" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Ctrl + F9" +#~ msgstr "Ctrl + F9" + +#~ msgid "Ctrl + F" +#~ msgstr "Ctrl + F" + +#~ msgid "Ctrl + G" +#~ msgstr "Ctrl + G" + +#~ msgid "Ctrl + Shift + G" +#~ msgstr "Ctrl + Shift + G" + +#~ msgid "Ctrl + H" +#~ msgstr "Ctrl + H" + +#~ msgid "Ctrl + Shift + K" +#~ msgstr "Ctrl + Shift + K" + +#~ msgid "Ctrl + I" +#~ msgstr "Ctrl + I" + +#~ msgid "Shift + F7" +#~ msgstr "Shift + F7" + +#~ msgid "Alt + F12" +#~ msgstr "Alt + F12" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Ctrl + Shift + D" +#~ msgstr "Ctrl + Shift + D" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "To enable the plugin, select gedit PreferencesPlugins Spell " +#~ "Checker." +#~ msgstr "" +#~ "Για να ενεργοποιήσετε το πρόσθετο, επιλέξτε gedit ΠροτιμήσειςΠρόσθετα Ορθογραφικός έλεγχος." + +#~ msgid "" +#~ "gedit will only check your document's spelling when you choose " +#~ "ToolsCheck Spelling. To have " +#~ "gedit automatically check your spelling, select " +#~ "ToolsHighlight Misspelled Words." +#~ msgstr "" +#~ "Το gedit θα ελέγξει μόνο την ορθογραφία του εγγράφου σας, εάν " +#~ "επιλέξετε ΕργαλείαΈλεγχος ορθογραφίας. Για να ελέγχει το gedit αυτόματα την ορθογραφία σας, " +#~ "επιλέξτε ΕργαλείαΕπισήμανση ανορθόγραφων λέξεων." + +#~ msgid "Click and hold the mouse button on the tab" +#~ msgstr "Πατήστε και κρατήστε το κουμπί του ποντικιού στην καρτέλα" + +#~ msgid "Release the mouse button" +#~ msgstr "Απελευθερώστε το κουμπί του ποντικιού" + +#~ msgid "" +#~ "Select EditPreferencesFont & " +#~ "Colors." +#~ msgstr "" +#~ "Επιλέξτε ΕπεξεργασίαΠροτιμήσειςΓραμματοσειρά & Χρώματα." + +#~ msgid "" +#~ "Select EditPreferencesFont & " +#~ "Colors." +#~ msgstr "" +#~ "Επιλέξτε ΕπεξεργασίαΠροτιμήσειςΓραμματοσειρά & χρώματα." + +#~ msgid "" +#~ "If the color that you want to select is currently on your screen, click " +#~ "on the icon that looks like an eyedropper." +#~ msgstr "" +#~ "Αν το χρώμα που θέλετε να επιλέξετε εμφανίζεται στην οθόνη σας, τότε " +#~ "κάντε κλικ στο εικονίδιο που μοιάζει με σταγονόμετρο." + +#~ msgid "" +#~ "Your mouse pointer will change appearance, and will look like an " +#~ "eyedropper." +#~ msgstr "" +#~ "Ο δείκτης του ποντικιού σας θα αλλάξει εμφάνιση, και θα μοιάζει με " +#~ "σταγονόμετρο." + +#~ msgid "" +#~ "Use the eyedropper and click on the portion of your screen that contains " +#~ "the color you want to use. The color code for that color will appear in " +#~ "the color picker window." +#~ msgstr "" +#~ "Χρησιμοποιήστε το σταγονόμετρο και κάντε κλικ στο τμήμα της οθόνης που " +#~ "περιέχει το χρώμα που θέλετε να χρησιμοποιήσετε. Ο κωδικός του χρώματος " +#~ "θα εμφανιστεί στο παράθυρο του επιλογέα χρώματος." + +#~ msgid "" +#~ "Using the spell-check feature in gedit requires that you first " +#~ "enable the spell-check plugin. To enable the plugin, select " +#~ "Edit PreferencesPluginsSpell Checker ." +#~ msgstr "" +#~ "Η χρήση του ορθογραφικού ελέγχου στο gedit απαιτεί αρχικά να " +#~ "ενεργοποιήσετε το πρόσθετο του ορθογραφικού ελέγχου. Για να " +#~ "ενεργοποιήσετε το πρόσθετο, επιλέξτε Επεξεργασία ΠροτιμήσειςΠρόσθεταΟρθογραφικός έλεγχος ." + +#~ msgid "" +#~ "Select ToolsAutocheck Spelling to " +#~ "make gedit highlight spelling errors while you type." +#~ msgstr "" +#~ "Επιλέξτε ΕργαλείαΑυτόματος ορθογραφικός έλεγχος για να κάνετε το gedit να επισημαίνει " +#~ "ορθογραφικά σφάλματα καθώς πληκτρολογείτε." + +#~ msgid "To drag a tab into a new window:" +#~ msgstr "Για να σύρετε μία καρτέλα σε ένα νέο παράθυρο:" + +#~ msgid "jwcampbell@gmail.com" +#~ msgstr "jwcampbell@gmail.com" + +#~ msgid "dneelyep@gmail.com" +#~ msgstr "dneelyep@gmail.com" + +#~ msgid "" +#~ "We all make mistakes. Even gedit users make mistakes. " +#~ "Fortunately, gedit can help you recover from mistakes. To undo " +#~ "an action in gedit, press CtrlZ, or click EditUndo." +#~ msgstr "" +#~ "Όλοι κάνουμε λάθη. Ακόμα και οι χρήστες του gedit κάνουν λάθη. " +#~ "Ευτυχώς, το gedit μπορεί νας σας βοηθήσει να ανακτήσετε από τα " +#~ "λάθη. Για να αναιρέσετε μια ενέργεια στο gedit, πατήστε " +#~ "CtrlZ, ή κάντε κλικ στην " +#~ "ΕπεξεργασίαΑναίρεση." + +#~ msgid "Drag the tab out of the space it occupies" +#~ msgstr "Σύρετε την καρτέλα έξω από το πεδίο που καταλαμβάνει" + +#~ msgid "" +#~ "It's difficult to drag a tab into a new window when either the old or new " +#~ "window is maximized. For best results, un-maximize the windows before " +#~ "dragging the tab." +#~ msgstr "" +#~ "Είναι δύσκολο να σύρετε μια καρτέλα σε ένα νέο παράθυρο όταν είτε το " +#~ "παλιό ή το νέο παράθυρο είναι μεγιστοποιημένα. Για καλύτερα αποτελέσματα, " +#~ "σμικρύνετε τα παράθυρο πριν σύρετε την καρτέλα." + +#~ msgid "To close the search window, press Esc." +#~ msgstr "" +#~ "Για να κλείσετε το παράθυρο αναζήτησης, πατήστε το πλήκτρο " +#~ "Esc." + +#~ msgid "" +#~ "@@image: 'figures/gedit3-screenshot.png'; " +#~ "md5=174aac884967f8e4226ab33d9498c60b" +#~ msgstr "" +#~ "@@image: 'figures/gedit3-screenshot.png'; " +#~ "md5=174aac884967f8e4226ab33d9498c60b" + +#~ msgid "Coming soon!" +#~ msgstr "Έρχεται σύντομα!" + +#~ msgid "Install Additional gedit Plugins" +#~ msgstr "Εγκατάσταση επιπλέον προσθέτων gedit" + +#~ msgid "Obtain" +#~ msgstr "Απόκτηση" + +#~ msgid "" +#~ "The first step to install a plugin in gedit is to obtain the " +#~ "plugin. Third-party plugins will often be obtained by downloading them " +#~ "from the plugin's web site. Refer to the plugin's documentation for " +#~ "further information on obtaining the plugin - instructions will vary " +#~ "depending on the plugin." +#~ msgstr "" +#~ "Το πρώτο βήμα για να εγκαταστήσετε ένα πρόσθετο στο gedit " +#~ "είναι να το αποκτήσετε. Τα πρόσθετα τρίτων συχνά θα αποκτούνται " +#~ "κατεβάζοντας τα από την ιστοσελίδα του προσθέτου. Ανατρέξτε στην " +#~ "τεκμηρίωση του προσθέτου για περισσότερες πληροφορίες στην απόκτηση του - " +#~ "οι οδηγίες θα ποικίλλουν ανάλογα το πρόσθετο." + +#~ msgid "Install" +#~ msgstr "Εγκατάσταση" + +#~ msgid "Installing a Plugin" +#~ msgstr "Εγκατάσταση ενός προσθέτου" + +#~ msgid "Locate the plugin files to be installed." +#~ msgstr "Εντοπίστε τα αρχεία του πρόσθετου για να εγκατασταθούν." + +#~ msgid "Install the plugin files:" +#~ msgstr "Εγκατάσταση των πρόσθετων αρχείων:" + +#~ msgid "Do more with gedit by using gedit plugins." +#~ msgstr "Κάντε περισσότερα με το gedit χρησιμοποιώντας πρόσθετα gedit." + +#~ msgid "" +#~ "This will activate the file-browser mode of the side panel. You can then use the navigation buttons at the top of the pane to " +#~ "locate and open your desired files." +#~ msgstr "" +#~ "Αυτό θα ενεργοποιήσει την λειτουργία πλοήγηση-αρχείων της " +#~ "Πλευρικής μπάρας. Μπορείτε να χρησιμοποιήσετε τα κουμπιά " +#~ "πλοήγησης στο πάνω μέρος της μπάρας για να βρείτε και να ανοίξετε τα " +#~ "επιθυμητά αρχεία σας." + +#~ msgid "" +#~ "Be careful. If you make a mistake outside of gedit (e.g., If " +#~ "you say something mean to your friend) gedit will not be able " +#~ "to help you undo that mistake." +#~ msgstr "" +#~ "Προσέξτε. Αν κάνετε κάποιο λάθος έξω από το gedit (π.χ., Αν " +#~ "πείτε κάτι άσχημο στον φίλο σας) το gedit δεν θα είναι σε θέση " +#~ "να σας βοηθήσει να αναιρέσετε αυτό το λάθος." + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. When you start gedit, a " +#~ "single tab will be displayed above the contents of the current file." +#~ msgstr "" +#~ "Η εργασία με καρτέλες στο gedit σας επιτρέπει να " +#~ "παρακολουθείτε αρκετά αρχεία σε ένα μόνο παράθυρο. Όταν εκκινήσετε το " +#~ "gedit, μια μοναδική καρτέλα θα εμφανίζετε πάνω από τα " +#~ "περιεχόμενα του τρέχων αρχείου." + +#~ msgid "" +#~ "To view the contents of a specific tab, click the tab itself. The " +#~ "contents of the file will be displayed below the currently open tabs. " +#~ "Clicking the X on the side of the tab will " +#~ "close that file." +#~ msgstr "" +#~ "Για να προβάλετε τα περιεχόμενα μιας συγκεκριμένης καρτέλας, κάντε κλικ " +#~ "στην ίδια την καρτέλα. Τα περιεχόμενα του αρχείου θα προβληθούν κάτω από " +#~ "τις τρέχουσες ανοιχτές καρτέλες. Κάνοντας κλικ στο X στην άκρη της καρτέλας θα κλείσει το αρχείο αυτό." + +#~ msgid "" +#~ "There are several different ways to organize your tabs in gedit." +#~ msgstr "" +#~ "Υπάρχουν πολλοί διάφοροι τρόποι για να οργανώσετε τις καρτέλες στο " +#~ "gedit." + +#~ msgid "" +#~ "The following section provides options that can help you replace text " +#~ "more efficiently with gedit." +#~ msgstr "" +#~ "Η ακόλουθη ενότητα παρέχει επιλογές που μπορούν να σας βοηθήσουν να " +#~ "αντικαταστήσετε κείμενο πιο αποδοτικά με το gedit." + +#~| msgid "Find and Replace Options" +#~ msgid "Find/Replace options" +#~ msgstr "Επιλογές εύρεσης και αντικατάστασης" + +#, fuzzy +#~ msgid "" +#~ "To set the page options, choose File Page Setup to display the Page Setup " +#~ "dialog. The Page Setup dialog enables you to specify the following print " +#~ "options: General Tabbed Section Fonts General Tabbed Section Print syntax " +#~ "highlighting Select this option to print syntax highlighting. For more " +#~ "information about syntax highlighting, see Section 7.1 ― Syntax " +#~ "Highlighting. Print page headers Select this option to include a header " +#~ "on each page that you print. You cannot configure the header. Line " +#~ "Numbers Select the Print line numbers option to include line numbers when " +#~ "you print a file. Use the Number every ... lines spin box to specify how " +#~ "often to print the line numbers, for example every 5 lines, every 10 " +#~ "lines, and so on. Text Wrapping Select the Enable text wrapping option to " +#~ "wrap text onto the next line, at a character level, when you print a " +#~ "file. The application counts wrapped lines as one line for line numbering " +#~ "purposes. Select the Do not split words over two lines option to wrap " +#~ "text onto the next line, at a word level, when you print a file. Fonts " +#~ "Body Click on this button to select the font to use to print the body " +#~ "text of a file. Line numbers Click on this button to select the font to " +#~ "use to print line numbers. Headers and footers Click on this button to " +#~ "select the font to use to print the headers and footers in a file. To " +#~ "reset the fonts to the default fonts for printing a file from gedit, " +#~ "click Restore Default Fonts." +#~ msgstr "" +#~ "Για να ορίσετε τις επιλογές σελίδας, διαλέξτε την Ρύθμιση σελίδας αρχείου " +#~ "για να εμφανιστεί ο διάλογος Ρύθμισης της σελίδας. Ο διάλογος της " +#~ "Ρύθμισης σελίδας σας επιτρέπει να προσδιορίσετε τις ακόλουθες επιλογές " +#~ "εκτύπωσης:" diff --git a/help/el/figures/gedit-html-snippet.png b/help/el/figures/gedit-html-snippet.png new file mode 100644 index 0000000..34cf8cd Binary files /dev/null and b/help/el/figures/gedit-html-snippet.png differ diff --git a/help/el/figures/gedit3-screenshot.png b/help/el/figures/gedit3-screenshot.png new file mode 100644 index 0000000..1c8b49a Binary files /dev/null and b/help/el/figures/gedit3-screenshot.png differ diff --git a/help/en_GB/en_GB.po b/help/en_GB/en_GB.po new file mode 100644 index 0000000..575d8a8 --- /dev/null +++ b/help/en_GB/en_GB.po @@ -0,0 +1,3495 @@ +# British English translation for gedit. +# Copyright (C) 2020 gedit's COPYRIGHT HOLDER +# This file is distributed under the same license as the gedit package. +# Zander Brown , 2020. +# Bruce Cowan , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2020-08-03 01:01+0000\n" +"PO-Revision-Date: 2020-08-13 19:57+0100\n" +"Last-Translator: Bruce Cowan \n" +"Language-Team: English - United Kingdom \n" +"Language: en_GB\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 3.36.0\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "Zander Brown , 2020" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Change the text and background colours in gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimovac" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Change the colour scheme" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit includes several different colour schemes, allowing you to " +"change the appearance of the main text window." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "To change the colour scheme:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colours." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Choose your desired colour scheme." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "The new colour scheme will be applied immediately." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Use a Custom Colour Scheme" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"You can also use colour schemes that have been created by others, or create " +"and use your own colour schemes." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instructions on how to install custom colour schemes, as well as examples of " +"colour schemes that you can download and use, are available on the gedit " +"wiki." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Use a custom font for your text in gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Change the default font" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "To change the default font in gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Select gedit Preferences Font & Colours." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Untick the box next to the phrase, \"Use the system fixed-width font.\"" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Click Select, and then click Close." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Exit from the file you are using." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Close a file" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Open a new file for editing." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Create a new file" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Use administrative privileges to edit a file." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Edit a file as the root user" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"You would then launch gedit using the gedit command." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Learn the basics of how to work with files in gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "File basics: Open, close, and save files" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Set gedit to use the entire screen." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Use fullscreen mode" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Turn on fullscreen mode" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Turn off fullscreen mode" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Use gedit's side pane as a file browser." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "View and open files from the side panel" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"To activate the side panel, select View Side Panel, or just press the F9 key." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Opening files from the side panel" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Using the side panel to switch between open files" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Clicking on any file name in the side panel will open that file for editing." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Open files to start working on them." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Open a file or set of files" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"This will cause the Open dialogue to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"To close the Open dialogue without opening a file, click " +"Cancel." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Access files that are stored on a different computer." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Open a file that is located on a server" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "In the header bar, click on Open." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Click Other Locations." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Enter the IP Address or URL of the appropriate server." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Find and select the file that you wish to open." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Click Open." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Access files that you have previously opened in gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Reopen a recently-used file" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Click the arrow button next to the Open button in the header bar." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most-recently used files." +msgstr "" +"gedit will display a menu with the ten most-recently used files." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Select the desired file, and it will open in a new tab." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse a recently-used file from the menu, the full " +"path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"When hovering with the mouse a recently-used file from the menu, the full " +"path to the file is displayed in the status bar at the bottom of the " +"gedit window." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Use plug-ins to customise how gedit works for you." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configure and use gedit plug-ins" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"You can do more with gedit by using plug-ins. Several plug-ins " +"are installed by default, but a large number of other plug-ins are available " +"separately." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Many Linux distributions make a group of these plug-ins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plug-ins available to gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Install gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Default gedit Plug-ins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Additional gedit Plug-ins" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Change the case of selected text." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Change case" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"This plug-in helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plug-in, select geditPreferences " +"Plug-insChange Case." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Once the Change Case plug-in is enabled, you can use it by " +"completing the following steps:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Highlight the portion of text that you want to change." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Select geditChange Case" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Choose your desired text-formatting option." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "The updates to the text formatting will take place immediately." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"If you have not highlighted any text, the Change Case feature will " +"be greyed-out. You need to select a portion of text before you use the " +"Change Case feature." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "View document statistics." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Document statistics" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"The Document Statistics plug-in shows you various statistics about " +"your current document. To enable this plug-in, select geditPreferences Plug-insDocument Statistics." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Using Document Statistics" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Once the plug-in is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Run scripts on your current files, and interact with other applications." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "External tools" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"The External Tools plug-in can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plug-in, " +"select gedit PreferencesPlug-ins External Tools." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configure the external tools plug-in" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Once you have enabled the plug-in, you will need to configure it to suit " +"your needs. The configuration options are available by selecting " +"ToolsManage External Tools." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"This plug-in is for advanced users, and requires knowledge of scripting to " +"be used effectively. Use this plug-in with care, as mistakes with your " +"scripts can affect your work in unintended ways." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Use the side panel to browse and open files." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "File browser panel" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plug-in. This plug-in embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"You can enable the side panel by selecting geditPreferences Plug-insFile Browser Panel." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Insert the current date/time at the cursor position." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Insert date/time" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"As this name of this plug-in suggests, the Insert Date/Time plug-" +"in allows you to insert the date and/or time at the current cursor position." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "To enable the plug-in:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plug-" +"ins." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Select Insert Date/Time to enable the plug-in." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"To use the plug-in, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"By default, the Insert Date/Time plug-in will prompt you to " +"choose your preferred date/time format each time that you use the plug-in. " +"However, you can choose your own default date and time format by pressing " +"the menu button in the top-right corner of the window and selecting " +"PreferencesPlug-ins Insert Date/TimePreferences." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "How to install third-party plug-ins." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Additional gedit plug-ins" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Installing third-party plug-ins gives you extra functionality that isn't " +"available in default gedit plug-ins, or even the extra plug-ins " +"that are part of the gedit-plugins package. An online list of " +"third-party plug-ins is kept here." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Installing a third-party plug-in involves downloading the plug-in, placing " +"the plug-in files in the right directory, and activating the plug-in." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"You can usually download a plug-in from the plug-in's website, but may need " +"to use a revision-control program like git, bazaar, " +"or subversion to copy a plug-in's software repository from the " +"internet. Refer to the plug-in's documentation for information on getting " +"the plug-in." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Place the plug-in files into the /home/username/.local/" +"share/gedit/plugins directory." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Of course, replace the word username with your own username." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"After you have placed the plug-in files into the correct directory, the plug-" +"in will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlug-ins[Name of Plug-in] to enable the plug-in." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Click Close." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"After you have enabled the plug-in, it should be available for you to use." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Emacs, Kate and Vim-style modelines support for gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Modelines" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"The Modelines plug-in allows gedit to analyse the " +"lines of text at the start and end of a file, and then apply a set of " +"document preferences to the file. The Modelines plug-in supports " +"a subset of the options used by the Emacs, Kate and " +"Vim text editors." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"To enable the Modelines plug-in, select gedit PreferencesPlug-insModelines." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "General Modeline Options" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "The following options can be set using gedit modelines:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tab width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Indent width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Inserting spaces instead of tabs" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Text Wrapping" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Right margin width" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialogue." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"For more information about Kate modelines, visit the Kate website." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"For more information on Vim modelines, visit the Vim website." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Add an interactive Python console to the bottom pane." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Python console" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlug-ins Python Console." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"If you have also enabled the Embedded Terminal plug-in, the " +"Python Console will appear as a separate tab in the bottom pane." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Quickly open a file or set of files." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Quick open" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"As the name of this plug-in would imply, the Quick Open plug-in " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plug-in, select gedit PreferencesPlug-insQuick Open." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Once you have enabled the Quick Open plug-in you can use it as " +"follows:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Open the Quick Open dialogue box by pressing CtrlAltO, or by selecting Quick Open…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "The Quick Open file dialogue will appear." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Use your mouse to select the file or files that you want to open." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Quick Open will look for files in:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "The directory of the currently opened document" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"The root directory of the File " +"Browser Panel plug-in" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Recent documents which are also shown in the Recent folder in " +"Files" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Directories which you have bookmarked in Files" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Your Desktop directory" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Your Home directory" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Use snippets to quickly insert often-used pieces of text." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Snippets" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Enable Snippets Plug-in" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "To enable the Snippets plug-in:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Select gedit Preferences Plug-ins." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "Select Snippets to enable the plug-in." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Browse Snippets" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "To browse available snippets:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Select Tools Manage Snippets." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "In this example, the language is set to HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Browse the snippets that are available for your language or syntax." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Using Snippets" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "To insert a snippet into your current document:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Type the desired snippet name anywhere in your current document." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Press Tab to insert the snippet associated with the input term." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Snippet Example Usage" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Adding Snippets" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Select Tools Manage Snippets." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "New Snippet Example" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Sort lines of text into alphabetical order." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Sort" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"The Sort plug-in arranges selected lines of text into alphabetical order." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Enable Sort Plug-in" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "To enable the Sort plug-in:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "Select Sort to enable the plug-in." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Using Sort Plug-in" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "To use the Sort plug-in:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Select the desired lines of text." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Select Tools Sort…" +"." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"The Sort dialogue will open, allowing you to choose between " +"several sorting options:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Reverse order will arrange the text in reverse alphabetical order." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Remove duplicates will remove duplicate values from the list." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "Ignore case will ignore case sensitivity." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "To perform the sort operation, click Sort." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Set the pages to print in a certain order." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Getting Copies To Print In The Correct Order" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Reverse" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Select File Print." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"In the General tab of the Print dialogue under Copies, tick Reverse." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "The last page will be printed first, and so on." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Collate" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "To Collate:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Click File Print." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"In the General tab of the Print dialogue under Copies tick Collate." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Print the files that you create with gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Printing documents" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit allows you to print both to a file and to paper." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Print Preview" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Printing To Paper" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Select File Print General." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Select the desired printer from the list of printers available." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Print Multiple Copies And Between Specified Ranges" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"You can set Range and Copies options to help you:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Printing To File" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Select File Print Print to File." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"Printing is enabled for the following file formats, you may select from:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"To print the document to file, click Print." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Choose the pages that you want to print." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Only print certain pages" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Select File Print…" +"." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"In the General tab in the Print dialogue choose " +"Pages from the Range section." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "A brief introduction to gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Get started with gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Replace portions of text in a file." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Replace text" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Replace text in gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "" +"Enter the text that you wish to replace into the Find field." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Enter the new, replacement text into the Replace with field." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "To replace only the next match, click Replace." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"To replace all occurrences of the searched-for text, click " +"Replace All." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "More options" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "If you wish, you can add some extra parameters to your search:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Match case" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Match entire word only" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Search backwards" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Wrap around" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Using escape sequences" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Newline" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Carriage return" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Save your file to work on it later." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Save a file" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"If you are saving a new file, a dialogue will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Find a portion of text within a file." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Search for text" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"The Find tool can help you find specific sequences of text within in your " +"file." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Finding text" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Type the text you wish to search for in the search window." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "To scroll through the search results, do any of the following:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Click on the up or down facing arrows next to the search window." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Press the up arrow or down arrow keys on your keyboard." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Press CtrlG or CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Search tips" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "Select Match Case to make the search case sensitive." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Select Match Entire Word Only to search only complete words." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Check your files for spelling errors." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Spell-check your document" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Enable the spell checker" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"The Spell-check feature is provided as a plug-in in gedit which " +"can be enabled as required. To enable the plug-in:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Select Spell Checker to enable the plug-in." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "To check for misspelt words in your document:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Select Tools Check " +"Spelling." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelt Words." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Using spell-check" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialogue. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Suggestions: lists the available substitutions for " +"the word." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignore allows you to bypass spell check for " +"a instance of current word." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Change substitutes the misspelt or unrecognised " +"word with a chosen substitute from the Suggestions: list." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Change all substitutes all misspelt or " +"unrecognised words with the chosen substitute from the Suggestions: list." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognise the word " +"in documents and thus will not be highlighted as a misspelt word." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Define the language to use for spell checking" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Dictionaries" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Highlight your text to make it easier to read." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Turn on syntax highlighting" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Syntax highlighting" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognises the " +"syntax being used when you open a file, it will automatically highlight the " +"text." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Group similar tabs together." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organise files in grouped tabs" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organised. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Open a new tab group in the gedit window" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "To open a new tab group you can:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "Right click on a tab and select Move to New Tab Group." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Use the CtrlAltN shortcut." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"To close a tab group pane just close all the tabs that are opened inside it." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Move a tab to another tab group" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "If you want to move a tab from one tab group to another:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Click and hold the mouse button on the tab." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Drag the tab to another tab group pane." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Place it beside other tabs in the tab group." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Release the mouse button." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Change the position of a tab in the gedit window." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Move and re-order tabs" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Change the order of tabs in the gedit window" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "To change the ordering of tabs in a window:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Move the tab to the desired position among the other tabs." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Move a tab, creating a new gedit window" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "To create a new window from an existing tab:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Drag the tab out of the gedit window." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"To move a tab into a new window when gedit is maximised, drag the " +"tab onto the top bar at the top of the screen." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Move a tab to another gedit window" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "If you want to move a tab from one window to another:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Drag the tab to the new window." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Place it beside other tabs in the new window." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Create or close tabs in the gedit window." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Add and remove tabs" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Adding tabs" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Removing tabs" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Revert a recent change to one of your files." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Undo/redo a recent action" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"You cannot undo a change after you have closed a gedit file." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"To redo the change that was undone, press CtrlShiftZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit Text Editor" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit Text Editor" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Home page of the gedit help guide." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit Text Editor" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Working With Files" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Configure gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "gedit Plug-ins" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Printing with gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported Licence" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "This work is licensed under a <_:link-1/>." diff --git a/help/es/es.po b/help/es/es.po new file mode 100644 index 0000000..9ade28b --- /dev/null +++ b/help/es/es.po @@ -0,0 +1,9581 @@ +# translation of gedit.help.master.po to Español +# translation of gedit manual to Spanish +# +# Francisco Javier F. Serrador , 2006. +# María Majadas , 2005. +# Jorge González , 2006, 2007, 2009, 2010, 2011. +# +# +# Daniel Mustieles , 2011-2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit.help.master\n" +"POT-Creation-Date: 2020-07-08 15:05+0000\n" +"PO-Revision-Date: 2020-09-04 12:47+0200\n" +"Last-Translator: Daniel Mustieles \n" +"Language-Team: Spanish - Spain \n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 3.36.0\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Daniel Mustieles , 2011-2020\n" +"Jorge González , 2006-2011\n" +"María Majadas , 2005b" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Cambiar los colores del texto y del fondo en gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Cambiar el esquema de color" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit incluye diferentes esquemas de colores, permitiéndole " +"cambiar la apariencia de la ventana de texto principal." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Para cambiar el esquema de color:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Pulse el botón de menú en la esquina superior derecha de la ventana " +"seleccione Preferencias " +"Tipografía y colores." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Elija el esquema de color que quiera." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Se aplicará el nuevo esquema de color inmediatamente." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Usar un esquema de color personalizado" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"También puede usar esquemas de colores creados por otros o crear y usar su " +"propio esquema de colores." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Las instrucciones para instalar esquemas de colores personalizados, así como " +"ejemplos de esquemas de colores que puede descargar y usar, están " +"disponibles en el wiki de gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Usar una tipografía personalizada para su texto en gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Cambiar la tipografía predeterminada" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit usará de manera predeterminada en sistema de tipografía de " +"ancho fijo, pero puede cambiar la tipografía predeterminada de gedit para que se ajuste a sus necesidades." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Para cambiar la tipografía predeterminada en gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Seleccione gedit Preferencias Tipografía y colores." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Desmarque la casilla junto a la frase «Usar la tipografía de ancho fijo del " +"sistema.»" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Pulse sobre el nombre de la tipografía actual. gedit abrirá una " +"ventana para elegir tipografías, que le permitirá ver las tipografías " +"disponibles y elegir la que prefiere." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Después de elegir una tipografía nueva, use el deslizador para " +"establecer el tamaño predeterminado de la tipografía." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Pulse Seleccionar, y luego pulse Guardar." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Cerrar el archivo que está usando." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Cerrar un archivo" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +#| msgid "" +#| "To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +#| "CtrlS." +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Para guardar un archivo en gedit, pulse el botón x en la parte derecha de la pestaña de archivos o pulse " +"CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Cualquiera de estas acciones cerrará un archivo en gedit. Si su " +"archivo contiene cambios que no se han guardado, gedit le " +"preguntará si quiere guardarlos antes de cerrar el archivo." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Abrir un archivo nuevo para editarlo." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Crear un archivo nuevo" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +#| msgid "" +#| "The easiest way to create a new file in gedit, is to click the " +#| "Create a new document button on the left side of the toolbar, " +#| "or press CtrlT." +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"La manera más sencilla de crear un documento nuevo en gedit, es " +"pulsando el botón Crear un documento nuevo en la parte izquierda " +"de la barra de cabecera o pulsando CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Cualquiera de estas acciones creará un archivo nuevo en gedit. Si " +"tiene abiertos otros archivos en gedit, el archivo nuevo que cree " +"aparecerá como una pestaña nueva a la derecha de esos archivos." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Usar privilegios de administración para editar un archivo." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Editar un archivo como root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Editar archivos como superusuario es potencialmente peligroso y puede romper " +"su sistema. Tenga mucho cuidado al editar archivos como superusuario." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Para editar archivos como superusuario lance gedit desde la " +"terminal introduciendo:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Usando el comando sudo deberá introducir correctamente su " +"contraseña antes de que gedit se abra." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Como alternativa al comando sudo puede obtener privilegios de " +"administración introduciendo:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Después podrá lanzar gedit usando el comando gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Una vez que haya abierto gedit con privilegios de administración, " +"gedit retendrá esos privilegios hasta que la cierre." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "" +"Aprender los conceptos básicos sobre cómo funcionan los archivos en gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Operaciones básicas con archivos: abrir, cerrar y guardar archivos" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +#| msgid "" +#| "If you are new to gedit, these topics will help you with " +#| "creating, saving, and opening and closing files." +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Si es nuevo en gedit, estos temas le ayudarán a crear, guardar, " +"abrir y cerrar archivos." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Configurar gedit para que use toda la pantalla." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Usar el modo a pantalla completa" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Cuando trabaje con un documento grande, puede resultarle útil trabajar en el " +"modo a pantalla completa de gedit. Usando el modo a pantalla " +"completa se ocultarán la barra de menú, la barra de " +"pestañas y la barra de herramientas, mostrándole más texto " +"y permitiéndole centrarse mejor en sus tareas." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Abrir en modo a pantalla completa" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Para activar el modo a pantalla completa, pulse F11. El menú, el " +"título y las barras de pestañas de gedit se ocultarán, y sólo se " +"mostrará el texto de su archivo actual." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Si necesita realizar una acción desde el menú de gedit mientras " +"trabaja en modo a pantalla completa, mueva el cursor de su ratón hasta la " +"parte superior de la pantalla. La barra de menú de gedit " +"reaparecerá, y podrá seleccionar la acción que quiera." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Para cambiar entre pestañas en modo a pantalla completa, pulse " +"CtrlAltRe Pág o " +"CtrlAltAv Pág." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Desactivar el modo a pantalla completa" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Para salir del modo a pantalla completa y volver a la ventana normal de " +"gedit, pulse F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"También puede mover el cursor del ratón hasta la parte superior de la " +"pantalla y espere a que aparezca la barra de menú. Cuando la " +"barra de menú aparezca, seleccione Salir del modo a pantalla " +"completa." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Usar el panel lateral de gedit como un examinador de archivos." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Ver y abrir archivos desde el panel lateral" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"La manera más habitual de cambiar entre archivos en gedit es " +"usando las pestañas en la parte superior de la ventana de gedit. " +"Sin embargo, en algunos casos, especialmente cuando está trabajando con " +"muchos archivos abiertos, puede resultarle más cómodo usar el panel lateral." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Para activar el panel lateral, seleccione VerPanel " +"lateral, o simplemente pulse la tecla F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Puede abrir o cerrar el panel lateral pulsando F9 en cualquier " +"momento." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Abrir archivos desde el panel lateral" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Para abrir archivos desde el panel lateral, primero abra el " +"panel lateral seleccionando VerPanel " +"lateral (o simplemente F9), y entonces pulse en el " +"icono Examinador de archivos en la parte inferior del panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Esto activará el modo examinador de archivos del panel lateral. " +"Después puede usar los botones de navegación en la parte superior del panel " +"para ubicar y abrir los archivos que quiera." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Usar el panel lateral para cambiar entre archivos abiertos" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Una vez que tenga varios archivos abiertos puede usar el panel lateral para " +"cambiar entre archivos abiertos. Para ver los archivos abiertos elija " +"Documentos en el desplegable de la parte superior del panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Pulsando en cualquier nombre de archivo en el panel lateral abrirá ese " +"archivo para editarlo." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Abrir archivos para empezar a trabajr con ellos." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Abrir un archivo o un conjunto de archivos" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Para abrir un archivo en gedit, pulse el botón Abrir, " +"o pulse CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Esto hará que aparezca el diálogo Abrir. Use su ratón o su " +"teclado para seleccionar el archivo que quiere abrir y pulse Abrir. El archivo que ha seleccionado se abrirá en una pestaña nueva." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Para cerrar el diálogo Abrir sin abrir un archivo pulse " +"Cancelar." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Puede usar las teclas Ctrl y Shift para abrir más de " +"un archivo al mismo tiempo. Si mantiene pulsada la tecla Ctrl " +"mientras seleccionar varios archivos, al pulsar Abrir se abrirá " +"cada uno de los archivos que ha seleccionado." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Manteniendo pulsada la tecla Mayús mientras selecciona varios " +"archivos, abrirá el primer y el último archivo que haya seleccionado, y " +"todos los archivos que hubiera entre ellos." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Acceder a archivos que se guardan en otro equipo." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Abrir un archivo ubicado en un servidor" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Antes de abrir un archivo desde un servidor con gedit, necesita " +"conocer cierta información técnica sobre el servidor. Por ejemplo, necesita " +"saber la dirección IP o el URL del servidor, y puede necesitar conocer qué " +"tipo de servidor es (ej. HTTP, FTP, etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Además, algunos tipos de servidores imponen restricciones sobre qué puede " +"hacer con los archivos almacenados en el servidor. Por ejemplo, puede ser " +"capaz de abrir un archivo de un servidor, pero puede necesitar guardar los " +"cambios en el archivo de manera local, o en su propio equipo." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Con estas advertencias en mente, realice los siguientes pasos para abrir un " +"archivo desde un servidor usando gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "En la barra de cabecera pulse Abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +#| msgid "Click Other Documents…." +msgid "Click Other Locations." +msgstr "Pulse en Otras ubicaciones." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Introduzca la dirección IP o el URL del servidor apropiado." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Buscar y seleccionar el archivo que quiere abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Use la lista desplegable «Codificación de caracteres» para seleccionar la " +"codificación de caracteres apropiada." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Pulse Abrir." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +#| msgid "" +#| "Valid types of URI include http:, ftp:, file:, and all of the methods " +#| "supported by gvfs." +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Los tipos de URI válidos incluyen http:, ftp:, file: y todos los métodos " +"soportados por GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Archivos desde algunos tipos de URI se abren como sólo lectura, y cualquier " +"cambio que realice deberá guardarlo en una ubicación diferente. Por ejemplo, " +"HTTP sólo permite lectura de archivos. Los archivos abiertos desde FTP son " +"de sólo lectura porque no todos los servidores FTP trabajan correctamente " +"con guardado remoto de archivos." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +#| msgid "Access files that you have updated recently." +msgid "Access files that you have previously opened in gedit." +msgstr "Acceder a archivos que ha abierto anteriormente en gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Reabrir un archivo usado recientemente" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +#| msgid "" +#| "By default, gedit provides easy access to five of your most " +#| "recently-used files. Here is how you can open a recently-used file:" +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit proporciona acceso fácil a los diez archivos más " +"recientemente usados, abiertos previamente en gedit. Aquí se " +"muestra cómo puede abrir un archivo usado recientemente:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +#| msgid "Click the arrow button next to the Open button." +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Pulse el botón de flecha junto al botón Abrir en la barra de " +"cabecera." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +#| msgid "" +#| "gedit will display a list of the five most-recently used files." +msgid "" +"gedit will display a menu with the ten most-recently used files." +msgstr "" +"gedit mostrará un menú con los diez archivos más recientemente " +"usados." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Seleccione el archivo que quiera y se abrirá en una pestaña nueva." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse a recently-used file from the menu, the full " +"path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Al pasar el ratón por encima de un archivo usado recientemente en el menú se " +"muestra la ruta completa del archivo en la barra de estado en l aparte " +"inferior de la ventana de gedit." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Usar complementos para personalizar la funcionalidad de gedit." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configurar y usar los complementos de gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Puede hacer más con gedit usando los complementos. Varios " +"complementos están instalados de forma predeterminada, pero existe un gran " +"número de complementos disponibles de forma separada." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"La mayoría de las distribuciones de Linux agrupan estos complementos en un " +"paquete llamado gedit-plugins. Instale el paquete gedit-" +"plugins para hacer que estos complementos estén disponibles en " +"gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Instalar gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Complementos predeterminados de gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Complementos adicionales de gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Cambiar el uso de mayúsculas y minúsculas del texto seleccionado." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Cambiar capitalización" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Este complemento le ayuda a cambiar la capitalización de fragmentos de texto " +"seleccionados. Puede usarlo para cambiar todo el texto a minúsculas, a " +"mayúsculas, para invertir la capitalización o para aplicar títulos. Para " +"activar este complemento, seleccione gedit PreferenciasComplementosCambiar " +"capitalización." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Una vez que el complemento Cambiar capitalización está activado, " +"puede usarlo completando los siguientes pasos:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Resalte el fragmento de texto que quiere cambiar." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Seleccione geditCambiar " +"capitalización" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Elija la opción de formateo de texto que quiera." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Las actualizaciones del formato del texto se aplicarán inmediatamente." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"La opción Invertir capitalización convertirá todas las letras en " +"minúscula a mayúsculas, y todas las letras en mayúscula a minúsculas." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"La opción Capitalización de titular cambiará la primera letra de " +"cada palabra a mayúsculas. El resto de las letras se cambiarán a minúsculas." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Si no ha resaltado ningún texto, la característica Cambiar " +"capitalización estará en gris. Debe seleccionar una parte del texto " +"antes de poder usar la característica Cambiar capitalización." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Ver las estadísticas del documento." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Estadísticas del documento" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"El complemento Estadísticas del documento puede mostrarle varias " +"estadísticas sobre el documento actual. Para activar este complemento, " +"seleccione gedit PreferenciasComplementos Estadísticas del " +"documento." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Usar «Estadísticas del documento»" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Una vez que el complemento esté activado, úselo seleccionando " +"HerramientasEstadísticas del documento. Una ventana mostrará la información estadística del documento, " +"incluyendo el número de palabras, de líneas, de caracteres, de caracteres " +"sin espacios y el tamaño en bytes de su archivo." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"También puede usar las Estadísticas del documento para mostrar " +"información sobre un fragmento de su documento. Para hacer esto, use el " +"ratón para seleccionar el fragmento de texto que quiere examinar y " +"seleccione HerramientasEstadísticas del documento. Gedit mostrará información del documento completo " +"y del fragmento de texto que ha resaltado." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Ejecutar scripts sobre sus archivos actuales e interactuar con otras " +"aplicaciones." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Herramientas externas" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"El complemento Herramientas externas puede ayudarle a simplificar " +"tareas repetitivas. Específicamente, amplía gedit ayudándole a " +"ejecutar scripts en los archivos en los que está trabajando, y permitiendo a " +"gedit interactuar con otros programas de su equipo. Para activar " +"el complemento Herramientas externas, seleccione gedit PreferenciasComplementosHerramientas externas." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configurar el complemento de herramientas externas" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Una vez que haya activado el complemento, tendrá que configurarlo para " +"ajustarlo a sus necesidades. Las opciones de configuración están disponibles " +"seleccionando HerramientasGestionar herramientas " +"externas." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Este complemento es para usuarios avanzados y para usarlo correctamente " +"requiere conocimientos de «script». Use este complemento con cuidado, ya que " +"errores con sus «script» pueden afectar a su trabajo de forma no " +"intencionada." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Usar el panel lateral para examinar y abrir archivos." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panel del examinador de archivos" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +#| msgid "" +#| "Depending on how you use gedit, you may find it helpful to use " +#| "the File Browser pane plugin. This plugin embeds a file " +#| "browser in the side panel, giving you easy access to your " +#| "frequently-used files." +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Dependiendo de cómo use gedit, puede resultarle útil usar el " +"complemento Panel del examinador de archivos. Este complemento " +"empotra un examinador de archivos en el panel lateral, " +"proporcionándole un acceso fácil a sus archivos usados frecuentemente." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Puede activar el panel lateral seleccionando geditPreferencias ComplementosPanel del examinador de archivos." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Inserta la fecha y hora actuales en la posición del cursor." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Insertar fecha/hora" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"como su propio nombre sugiere el complemento Insertar fecha y hora le permite insertar la fecha y/o la hora en la posición actual del " +"cursor." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Para activar el complemento:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Pulse el botón de menú en la esquina superior derecha de la ventana y " +"seleccione Preferencias " +"Complementos." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Seleccione Insertar fecha y hora para activar " +"el complemento." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Para usar el complemento pulse el botón de menú en la esquina superior " +"derecha de la ventana y seleccione Herramientas Insertar fecha y hora…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +#| msgid "" +#| "By default, the Insert Date/Time plugin will prompt you to " +#| "choose your preferred date/time format each time that you use the plugin. " +#| "However, you can choose your own default date and time format by pressing " +#| "the menu button in the top-right corner of the window and selecting " +#| " PreferencesPlugins Insert Date/TimeConfigure." +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"De manera predeterminada, el complemento Insertar fecha y hora le " +"pedirá su formato de fecha y hora preferido cada vez que use el complemento. " +"Sin embargo, puede seleccionar el formato de fecha y hora predeterminado " +"pulse el botón de menú en la esquina superior derecha de la ventana y " +"seleccionando PreferenciasComplementos Insertar fecha y horaPreferencias." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Cómo instalar complementos de terceras partes." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Complementos adicionales de gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Instalar complementos de terceras partes le da una funcionalidad que no está " +"incluida de manera predeterminada en los complementos de gedit ni " +"en los complementos adicionales que forman parte del paquete gedit-" +"plugins. Aquí " +"se mantiene una lista de complementos de terceras partes." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Instalar un complemento de terceras partes implica descargar el complemento, " +"copiar los archivos del complemento en la carpeta correcta y activarlo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Generalmente puede descargar el complemento de su página web, pero puede " +"necesitar un programa de control de versiones como git, " +"bazaar, or subversion para copiar el repositorio de " +"software de un complemento desde Internet. Consulte la documentación del " +"complemento para obtener más información." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Copie el complemento en la carpeta /home/nombre_de_usuario/." +"local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Por supuesto, reemplace la palabra nombre_de_usuario con su " +"nombre de usuario." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Después de mover el complemento a la carpeta correcta, aparecerá en el menú " +"«Preferencias». Pulse el botón de menú en la esquina superior derecha de la " +"ventana y elija PreferenciasComplementos[Nombre del complemento] para " +"activarlo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Pulse Cerrar." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Después de activar el complemento, debería estar disponible para usarse." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"La carpeta .local esta oculta de manera predeterminada. Para " +"mostrar los archivos ocultos, seleccione VerMostrar " +"archivos ocultos o pulse CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Si la carpeta .local/share/gedit/plugins/ no está presente en " +"su sistema, deberá crearla." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "" +"Soporte para gedit para los estilos de los modos de líneas de Emacs, Kate y " +"Vim." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Modos de líneas" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"El complemento Modos de líneas permite a gedit " +"analizar las líneas de texto del principio y del final de un documento,y " +"aplicar un conjunto de preferencias del documento al archivo. El complemento " +"Modos de líneas soporta un subconjunto de las opciones usadas por " +"los editores de texto Emacs, Kate y Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Para activar el complemento Modos de líneas seleccione " +"gedit PreferenciasComplementosModos de líneas." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Opciones generales de los modos de líneas" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Se pueden configurar las siguientes opciones usando los modos de líneas de " +"gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Ancho de tabulación" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Anchura de la sangría" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Insertar espacios en lugar de tabuladores" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Ajuste de texto" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Anchura del margen derecho" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Las preferencias establecidas para usar líneas de modo tienen preferencia " +"sobre las especificadas en el diálogo de preferencias." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Líneas de modo Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Las primeras dos líneas de un documento se analizan buscando líneas de modos " +"Emacs, y gedit soporta las siguientes opciones de " +"líneas de modos Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Para obtener más información sobre los modos de líneas de Emacs, " +"visite el Manual de GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Líneas de modo Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"La primera y las diez últimas líneas de un documento se analizan buscando " +"líneas de modo Kate, y gedit soporta " +"las siguientes opciones de líneas de modos Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Para obtener más información sobre los modos de líneas de Kate, " +"visite la página web de Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Líneas de modo Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"La primera y las 3 últimas líneas de un documento se analizan buscando " +"líneas de modo Vim, y gedit soporta " +"las siguientes opciones de líneas de modos Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandir tabulador)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (detener tabulador)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (cambiar anchura)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Para obtener más información acerca de Vim visite el sitio web de Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Añadir una consola interactiva de Python en en panel inferior." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Consola de Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Puede añadir una consola de Python al panel inferior, lo que le permite " +"probar sus scripts Python sin salir de gedit. Para activar la " +"consola de Python, seleccione gedit PreferenciasComplementos Consola " +"Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Una vez que la consola de Python esté activa, la puede abrir seleccionando " +"VerPanel inferior." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Si también tiene activado el complemento Terminal empotrada, la " +"Consola Python aparecerá en una pestaña separada en el panel " +"inferior." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Abrir rápidamente un archivo o un conjunto de archivos." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Apertura rápida" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Como su propio nombre indica, el complemento de Apertura rápida " +"le ayuda a abrir archivos más rápidamente que de la manera habitual. Para " +"activar este complemento, seleccione gedit PreferenciasComplementosApertura rápida." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Una vez que haya activado el complemento de Apertura rápida puede " +"usarlo de la siguiente manera:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Abra el diálogo Apertura rápida pulsando CtrlAltO, o seleccionando Apertura rápida…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Aparecerá el diálogo Apertura rápida de archivos." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Use su ratón para seleccionar los archivos que quiere abrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Para seleccionar varios archivos individuales, mantenga pulsada la tecla " +"Ctrl mientras pulsa sobre los archivos que quiere abrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Para seleccionar un grupo de archivos, pulse sobre el primero de ellos, " +"mantenga pulsada la tecla Mayús, y pulse sobre el último archivo " +"de la lista de archivos que quiera abrir." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Apertura rápida buscará archivos en:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "La carpeta del documento abierto actualmente" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +#| msgid "" +#| "The root directory of the File " +#| "Browser Pane plugin" +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"La carpeta raíz del complemento Panel del examinador de archivos plugin" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Los documentos recientes, que también se muestran en la carpeta " +"Recientes en Archivos" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Carpetas que ha añadido como marcadores en Archivos" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Su carpeta Escritorio" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Su Carpeta personal" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Apertura rápida muestra archivos en cualquiera de las ubicaciones " +"anteriores, sin importar si los ha abierto o no anteriormente." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Usar recortes para insertar rápidamente fragmentos de texto usados " +"frecuentemente." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Recortes" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Los Recortes proporcionan una manera adecuada de insertar " +"porciones de código repetitivas en sus archivos. Por ejemplo, un recorte " +"HTML para la etiqueta <img> insertará los fragmentos de " +"apertura y cierre de la etiqueta, así como lugares fijos donde puede " +"introducir los atributos de la imagen. Esto hace que escribir código sea más " +"fácil y rápido." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Activar el complemento de recortes" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Para activar el complemento Recortes:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Seleccione gedit Preferencias Complementos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Seleccione Recortes para activar el " +"complemento." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Examinar los recortes" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Para examinar los recortes disponibles:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Seleccione Herramientas Gestionar recortes." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Asegúrese de que la sintaxis está configurada correctamente. La barra de " +"estado en la parte inferior de la ventana de gedit mostrará la " +"configuración del lenguaje actual, que es lo que permite a gedit insertar " +"los recortes adecuados. Normalmente, Gedit detectará el lenguaje " +"o la sintaxis del archivo que está usando, pero es posible que algunas veces " +"deba establecerlo." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "En este ejemplo, el lenguaje establecido es HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Examinar los fragmentos disponibles para su lenguage o sintaxis." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Usar los recortes" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Para insertar un recorte en su documento actual:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Escriba el nombre del recorte que quiere en cualquier lugar de su documento " +"actual." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Pulse Tab para insertar el recorte asociado al término de entrada." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Ejemplo de uso de Recortes" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Por ejemplo, si establece que la sintaxis es HTML, escriba " +"head, y pulse la tecla Tab. El texto se debería " +"autocompletar con este recorte:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Título de la página</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Añadir recortes" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Puede añadir recortes nuevos que funcionen globalmente (es decir, para " +"cualquier lenguaje) o sólo para una sintaxis determinada." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Seleccione Herramientas " +"Gestionar recortes." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Desde la barra lateral de Gestionar recortes, seleccione la " +"sintaxis que quiere y pulse el icono «+» para listar los recortes existentes " +"para la sintaxis seleccionada." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Para añadir un recorte que funcione globalmente (es decir, cuando no se ha " +"establecido una sintaxis o un lenguaje concreto para el documento), " +"seleccione Global en la barra lateral de Gestionar recortes." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Para añadir un recorte nuevo,pulse en el icono «+» en la barra lateral de " +"Gestionar recortes sidebar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Introduzca un nombre para el recorte nuevo. El nombre del recorte puede ser " +"diferente del recorte que quiere añadir." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"En la sección Activación debe introducir un " +"término en el área de texto Disparador:. Deberá " +"usar este término para insertar el recorte." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Si quiere insertar un recorte con un atajo de teclado, pulse con el ratón en " +"el área de texto Tecla rápida: y pulse la " +"combinación de teclas que quiere. Una vez que haya pulsado y soltado las " +"teclas, el atajo de teclado quedará configurado." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Introduzca el texto que quiere para el recorte en el área de texto Editar:. Puede usar ${n} para indicar " +"variables, donde n se reemplaza con un número que representa el " +"orden numérico de las variables incluidas." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Ejemplo de recorte nuevo" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Considere que ha creado un recorte con el término felicidades en " +"Disparador:. El área de texto Editar: contiene:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <felicidades>¡Hola ${1:maravilloso}${2:increíble} mundo!\n" +" </felicidades>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Puede insertar este fragmento escribiendo felicidades en el " +"documento y pulsando la tecla Tab key. Se insertará el siguiente " +"recorte de texto:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <felicidades>¡Hola maravillosoincreíble mundo!</felicidades>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Las palabras «maravilloso» e «increíble», se pueden conservar o se pueden " +"eliminar, dependiendo de lo que elija. Para eliminarlas, pulse Tab para elegir entre «maravilloso» e «increíble» y pulse Del " +"para eliminar la opción elegida." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Ordenar líneas de texto alfabéticamente." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Ordenar" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"El complemento «Ordenar» coloca las líneas seleccionadas en orden alfabético." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Activar el complemento Ordenar" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Para activar el complemento Ordenar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Seleccione Ordenar para activar el complemento." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Usar el complemento Ordenar" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Para usar el complemento Ordenar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +#| msgid "Drag and highlight the desired lines of text." +msgid "Select the desired lines of text." +msgstr "Seleccione las línea de texto que quiere." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Seleccione Herramientas Ordenar…." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"El diálogo Ordenar se abrirá, permitiéndole elegir entre varias " +"opciones de ordenación:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "Orden inverso ordenará el texto en orden alfabético inverso." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "Quitar duplicados quitará los valores duplicados de la lista." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "Ignorar capitalización ignorará la capitalización." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Para que la ordenación ignore los caracteres al principio de las líneas, " +"establezca el primer carácter que debería usarse para ordenar en la columna " +"del marcador incremental Empezar en." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Para efectuar la ordenación pulse el botón Ordenar." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Configurar las páginas que imprimir en un orden determinado." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Imprimir copias en el orden correcto" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Invertir" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Generalmente, las impresoras imprimen primero la primera página, y luego la " +"última, por lo que las páginas acaban en orden inverso cuando las coge. Para " +"invertir el orden:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Seleccione Archivo Imprimir…." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"En la pestaña General de la ventana de impresión, " +"en Copias seleccione Invertir." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "La última página se imprimirá primero, y así sucesivamente." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Intercalar" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Si está imprimiendo más de una copia del documento, de forma predeterminada " +"las impresiones se agruparán por número de página. (Ej.: saldrán todas las " +"copias de la página uno, después de la página dos, etc.) Intercalarlas hará " +"que cada copia salga con sus páginas agrupadas." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Para intercalar:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Pulse en Archivo Imprimir." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"En la pestaña General de la ventana de impresión, en Copies marque Intercalar." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Imprimir los archivos que ha creado con gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Imprimir documentos" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Imprimir con gedit requiere que tenga conectada y configurada una " +"impresora. Si no lo ha hecho, consulte la ayuda para imprimir en GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit le permite imprimir a un archivo o en papel." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Vista previa de impresión" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Antes de imprimir su documento, también puede previsualizar cómo quedará el " +"documento imprimido usando la característica de Vista previa de " +"impresión." + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Seleccione Archivo Vista previa de impresión. Alternativamente puede pulsar " +"MayúsCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Se abrirá una vista previa del documento en la misma pestaña del archivo. " +"Puede examinar esta vista previa con la ayuda de los botones de navegación y " +"de las herramientas de la barra de herramientas de la parte superior de la " +"pestaña del documento. Para cerrar la vista previa y volver al documento, " +"pulse en Cerrar vista previa." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Imprimir en papel" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Puede imprimir sus documentos en papel usando una impresora local o remota. " +"Para imprimir un archivo:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Seleccione Archivo Imprimir General." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "" +"Seleccione la impresora que quiere de la lista de impresoras disponibles." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Puede previsualizar el archivo usando el botón de Vista previa de impresión y, una vez que esté satisfecho con la " +"configuración, pulse Imprimir para enviar el " +"archivo a la impresora." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Adicionalmente, en la pestaña Configuración de página puede elegir las opciones Distribución y " +"Papel options. Dado que estas opciones están " +"disponibles en todos los programas de GNOME, consulte la ayuda " +"sobre Opciones de distribución " +"y de papel." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Imprimir varias copias y entre rangos especificados" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Puede establecer las opciones Rango y Copias para ayduarle:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Imprimir a un archivo" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"También puede usar gedit para imprimir a un archivo. Para " +"imprimir su documento a un archivo con otro formato:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Seleccione Archivo Imprimir Imprimir a un archivo." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "La impresión está activada para los siguientes formatos de archivo:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Formato de documento portable (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Gráfico vectorial escalable (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Para imprimir el documento a un archivo, pulse Imprimir." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Elegir las páginas que quiere imprimir." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Imprimir sólo determinadas páginas" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Puede imprimir solo ciertas páginas del documento de manera selectiva. Por " +"ejemplo, si quiere imprimir las páginas «1,3,5-7,9», solo se imprimirán las " +"páginas 1, 3, 5, 6, 7 y 9. Para imprimir páginas a su elección:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Seleccione Archivo Imprimir…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"En la pestaña General, en la ventana «Imprimir», " +"elija Páginas de la sección Rango." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Escriba los números de las páginas quiere imprimir en el documento, " +"separados por comas. Use un guión para indicar un rango de páginas." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Una breve introducción a gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Inicio" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit es un editor de textos lleno de características para el " +"entorno de escritorio GNOME. Puede usarlo para preparar simples notas y " +"documentos, o puede usar algunas de sus características avanzadas, haciendo " +"que sea su entorno de desarrollo de software." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +#| msgid "" +#| "Once gedit launches, you can start writing right away. To save " +#| "your text, just click the Save icon in the gedit " +#| "toolbar." +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Una vez que lance gedit podrá comenzar a escribir de inmediato. " +"Para guardar su texto, simplemente pulse el icono Guardar en la " +"barra cabecera de gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Para aprender más acerca de las características de gedit y para " +"obtener ayuda para realizar tareas adicionales, explore las otras partes de la ayuda de gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Reemplazar fragmentos de texto en un archivo." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Reemplazar texto" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Editar texto puede consumir mucho tiempo. Para ahorrar tiempo gedit incluye una función Reemplazar que le ayuda a buscar y " +"reemplazar partes de texto." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Reemplazar texto en gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Abra la herramienta Reemplazar pulsando en el Botón del menúBuscar y reemplazar… o pulse CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "" +"Introduzca el texto que quiere reemplazar en el campo Buscar." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Introduzca el nuevo texto de reemplazo en el campo Reemplazar con." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Una vez que haya introducido el texto original y el de reemplazo, puede " +"añadir parámetros adicionales a la búsqueda. También puede elegir qué quiere " +"reemplazar." + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Para reemplazar sólo el siguiente fragmento de texto que coincida, " +"pulse Reemplazar." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Para reemplazar todas apariciones del texto buscado, pulse " +"Reemplazar todo." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Use la función Reemplazar todo con cuidado. Reemplazar todo se ejecuta en todo el texto del archivo y no le permite marcar partes " +"del texto donde no se aplicará la función." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Más opciones" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Si quiere, puede añadir algunas parámetros adicionales a su búsqueda:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Coincidir con capitalización" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"La opción Coincidir con capitalización le permite especificar si " +"quiere que su búsqueda sea sensible a mayúsculas/minúsculas. Si se " +"selecciona esta opción, las búsquedas serán sensibles a mayúsculas/" +"minúsculas. De lo contrario no lo serán." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Coincidir sólo con la palabra completa" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Use esta opción para buscar una palabra específica sin incluir partes de " +"otras palabras. Por ejemplo, si buscó el término «por» con la opción " +"seleccionada, se encontrará la palabra «por», pero no así las palabras " +"portal, porque y estupor." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Buscar hacia atrás" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Este comando se comporta de forma idéntica al comando Buscar anterior. " +"Seleccione esta opción si quiere pasar a través de los resultados de la " +"búsqueda desde el final al principio." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Ajustar aproximadamente" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Con la opción Ajustar aproximadamente activada, gedit " +"reiniciará la acción de buscar/reemplazar en la parte superior del archivo, " +"después de haber llegado al final. Esto le asegura que su acción de buscar/" +"reemplazar se realiza en todo el archivo." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Usar secuencias de escape" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Puede usar secuencias de escape para buscar saltos de línea, " +"retornos de carro y tabulaciones." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nueva línea" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Retorno de carro" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabulación" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Actualmente, si quiere buscar una \\ (barra invertida) o " +"una de las secuencias de escape en el texto, debe añadir una barra invertida " +"adicional. Por ejemplo, para buscar \\, debe introducir " +"\\\\ en el cuadro de búsqueda o de reemplazo. Puede buscar " +"secuencias de escape de la misma manera: para buscar o reemplazar " +"\\n, use el término \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Guardar el archivo para trabajar con él más tarde." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Guardar un archivo" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +#| msgid "" +#| "To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +#| "CtrlS." +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Para guardar un archivo en gedit, pulse el botón Guardar en la parte derecha de la barra de cabecera o " +"simplemente pulse CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Si está guardando un archivo nuevo, aparecerá un diálogo, y podrá " +"seleccionar un nombre para el archivo, así como la carpeta en la que quiere " +"guardar el archivo." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Buscar un fragmento de texto e un archivo." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Buscar texto" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"La herramienta de búsqueda le puede ayudar a encontrar secuencias de texto " +"específicas en su archivo." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Buscar texto" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Abra la ventana de búsqueda pulsando en el Botón del menú Buscar… o pulsando CtrlF. Esto moverá " +"su cursor hasta el principio de la ventana de búsqueda." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "" +"Introduzca el texto que quiere buscar en la ventana de búsqueda." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"A medida que escribe, gedit empezará a resaltar los recortes de " +"texto que coniciden con lo que ha escrito." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Para desplazarse por los resultados de la búsqueda, realice cualquiera de " +"los siguientes pasos:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Pulse en las flechas arriba o abajo junto a la ventana de búsqueda" + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Pulse las teclas flecha arriba o flecha abajo en su " +"teclado." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Pulse CtrlG orCtrlMayúsG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Para cerrar la ventana de búsqueda pulse Esc o " +"Intro. Al pulsar Esc el cursor volverá a la posición " +"donde estaba antes de comenzar la búsqueda. Al pulsar Intro el " +"cursor volverá a la posición actual en los resultados de la búsqueda." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Consejos de búsqueda" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Si resalta un fragmento de texto con el ratón y pulsa CtrlF, el texto que ha resaltado aparecerá en la ventana " +"de búsqueda." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Para opciones de búsqueda avanzadas, pulse el icono de la Lupa en la ventana de búsqueda, o pulse con el botón derecho en " +"cualquier parte de la ventana de búsqueda. Puede seleccionar una o más de " +"las siguientes opciones de búsqueda:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Seleccione Coincidir con capitalización para que la búsqueda " +"distinga entre mayúsculas y minúsculas." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Seleccione Coincidir sólo con la palabra completa para buscar " +"solo palabras completas." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Seleccione Volver al principio para buscar el texto de arriba a " +"abajo y volver a empezar." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"El texto que ha buscado permanecerá resaltado en gedit, aunque haya " +"terminado la búsqueda. Para quitar el resaltado, pulse Quitar resaltado, o pulse CtrlMayúsK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Revisar los errores ortográficos de sus archivos." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Comprobar la ortografía de su documento" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Activar la comprobación de ortografía" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"La característica de corrección ortográfica es un complemento de gedit que se puede activar si lo necesita. Para activar el complemento:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Seleccione Corrector ortográfico para activar " +"el complemento." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Para comprobar si hay palabras mal escritas en su documento:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Seleccione Herramientas Comprobar ortografía." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Para hacer que gedit resalte automáticamente las palabras mal " +"escritas en su documento a medida que escribe, seleccione HerramientasResaltar palabras mal " +"escritas." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Usar la corrección ortográfica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Puede elegir sustituir las palabras mal escritas usando el diálogo del " +"corrector ortográfico. La palabra mal escrita analizada por el corrector se " +"muestra en negrita junto a Palabra mal escrita:. Puede elegir " +"entre las siguientes opciones del corrector:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Cambiar a: le permite escribir una palabra y usar " +"la opción Comprobar palabra para verificar su " +"ortografía." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Sugerencias: lista las sustituciones disponibles " +"para la palabra." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorar todo le permite omitir la corrección " +"ortográfica para una instancia de la palabra actual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignorar todo le permite omitir la corrección " +"ortográfica para todas las instancias de la palabra actual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Cambiar sustituye la palabra mal escrita o no " +"reconocida por una palabra elegida de la lista de Sugerencias:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Cambiar todo sustituye todas las " +"palabras mal escritas o no reconocidas con la palabra elegida de la lista de " +"Sugerencias:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Añadir palabra le permite añadir la palabra " +"actual al Diccionario del usuario de gedit. Añadir una " +"palabra personalizada al Diccionario del usuario permitirá a " +"gedit reconocer la palabra en los documentos y, por lo tanto, no " +"se resaltará como una palabra mal escrita." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Definir el idioma que usar para la comprobación de la ortografía" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"De manera predeterminada, gedit usará su idioma actual para " +"comprobar la ortografía del documento. Si necesita usar otro idioma, elija " +"HerramientasEstablecer idioma…, y elija el idioma que quiere usar." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Diccionarios" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit usa Enchant, una pequeña utilidad del sistema para comprobar la " +"ortografía. Enchant puede usar varios diccionarios diferentes para comprobar " +"la ortografía. Dos posibles «backend» de diccionario son Hunspell y " +"Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Si el idioma que quiere usar no está disponible en gedit, use el " +"instalador o el gestor de paquetes de su equipo para instalar el «backend» " +"del diccionario que quiere." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Resaltar el texto para que sea más fácil de leer." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Activar el resaltado de sintaxis" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Resaltado de sintaxis" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit proporciona resaltado de sintaxis para un muchos lenguajes " +"de marcado, programación y científicos. Si gedit reconoce la " +"sintaxis usada al abrir el archivo, automáticamente resaltará el texto." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Si su sintaxis o lenguaje no están resaltados desde el principio, puede " +"seleccionar la sintaxis o lenguaje apropiado pulsando Ver Modo de resaltado, " +"y después seleccionando la sintaxis que quiere. Alternativamente, puede " +"seleccionar el nombre de la sintaxis desde una lista en la parte inferior de " +"la ventana de gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Agrupar juntas las pestañas similares." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organizar archivos en pestañas agrupadas" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +#| msgid "" +#| "If you are working with multiple tabs in gedit you can group " +#| "them, making it easier to keep your opened files organized. Adding a new " +#| "tab group will divide the gedit window in two panes, open a " +#| "new \"Untitled Document\" in the new pane, and make it active. You can " +#| "open files into that tab group and move tabs from one tab group to " +#| "another." +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Si está trabajando con varias pestañas en gedit puede agruparlas, " +"haciendo que sea más fácil mantener sus archivos abiertos organizados. Al " +"añadir un nuevo grupo de pestañas se dividirá la ventana de gedit " +"en dos paneles. abra un «Documento sin título» en el panel nuevo y actívelo. " +"Puede abrir varios archivos en ese grupo de pestañas y mover pestañas de un " +"grupo a otro." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Abrir un grupo de pestañas en la ventana de gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Para abrir un grupo de pestañas nuevo puede:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Pulse con el botón derecho sobra una pestaña y elija Mover a un grupo " +"de pestañas nuevo." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Use el atajo CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +#| msgid "" +#| "This action will divide the gedit window in two panes, and the " +#| "pane with the new tab group will be placed on the right of the active " +#| "tab. You can move the handle right or left assigning more or less space " +#| "of gedit window between panes according to your needs." +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Esta acción dividirá la ventana de gedit en dos paneles, y el " +"panel con el nuevo grupo de pestañas se colocará a la derecha de la pestaña " +"activa. Puede moverlo a la derecha o a la izquierda para darle más o menos " +"espacio a la ventana de gedit entre los paneles de acuerdo a sus " +"necesidades.." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +#| msgid "" +#| "You can open as much tab groups in gedit window as your screen " +#| "allows, but you will have to move the handle in order to see them " +#| "correctly." +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Puede abrir tantos grupos de pestañas en geditcomo le permita el " +"tamaño de su pantalla, pero deberá modificar sus tamaños para verlos " +"correctamente." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Para cerrar un grupo de pestañas simplemente cierre todas las pestañas que " +"haya abiertas en él." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Mover una pestaña a otro grupo de pestañas" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Si quiere mover una pestaña de un grupo de pestañas a otro:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Pulse y mantenga pulsado el botón del ratón en la pestaña." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Arrastre la pestaña al panel del otro grupo de pestañas." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Sitúela junto a las otras pestañas, en el grupo de pestañas." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Suelte el botón del ratón." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Cambiar la posición de una pestaña en en la ventana de gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Mover y reordenar pestañas" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Las pestañas en gedit se pueden mover, haciendo que sea más fácil " +"trabajar con sus archivos. Las pestañas se pueden reordenar en la misma " +"ventana, mover fuera de gedit (creando una ventana de gedit nueva) y moverse de una ventana a otra." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Cambiar el orden de las pestañas en en la ventana de gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Para cambiar el orden de las pestañas en una ventana:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +#| msgid "Move the tab to the desired position among the other tab." +msgid "Move the tab to the desired position among the other tabs." +msgstr "Mueva la pestaña a la posición que quiera entre las demás pestañas." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"La pestaña se ubicará en la posición más cercana a donde suelte la pestaña, " +"junto a otras pestañas abiertas." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Mover una pestaña, creando una ventana nueva de gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Para crear una ventana nueva desde una pestaña existente:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Arrastre la pestaña fuera de la ventana de gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Para mover una pestaña a una ventana nueva cuando gedit está " +"maximizado, arrastre la pestaña a la barra superior de la pantalla." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Mover una pestaña a otra ventana de gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Si quiere mover una pestaña de una ventana a otra:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Arrastre la pestaña a la nueva ventana." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Sitúela junto a las otras pestañas, en la ventana nueva." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Es posible que le resulte más fácil mover una pestaña de una ventana a otra " +"arrastrando la pestaña a la esquina activa del menú de Actividades de GNOME Shell. Esto mostrará el resto de ventanas de " +"gedit abiertas. Puede soltar la pestaña en la ventana de " +"gedit que quiera." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Crear o cerrar pestañas en en la ventana de gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Añadir y quitar pestañas" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +#| msgid "" +#| "Working with tabs in gedit allows you to keep an eye on " +#| "several files in a single window. When you start gedit, a " +#| "single tab will be displayed above the contents of the current file." +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Trabajar con pestañas en gedit le permite vigilar varios archivos " +"en una sola ventana." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Añadir pestañas" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +#| msgid "" +#| "To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Para añadir una pestaña nueva, cree un archivo nuevo con el botón Crear " +"un documento nuevo en la parte izquierda de la barra de cabecera o " +"pulse CtrlT. Se añadirá la pestaña a " +"la derecha de cualquier otra pestaña." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Quitar pestañas" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +#| msgid "" +#| "To remove a tab, click the × on the tab's " +#| "right side. To remove all open tabs, press Ctrl " +#| "ShiftW." +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Para quitar una pestaña pulse la × en la parte " +"derecha de la pestaña o pulse CtrlW. " +"Para quitar todas las pestañas abiertas pulse CtrlMayúsW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Revertir un cambio reciente en uno de sus archivos." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +#| msgid "Undo a recent action" +msgid "Undo/redo a recent action" +msgstr "Deshacer/rehacer una acción reciente" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +#| msgid "" +#| "If you make a mistake while using gedit, you can undo it by " +#| "pressing CtrlZ." +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Si comete un error al editar un documento en gedit, puede " +"deshacerlo pulsando CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"No puede deshacer un cambio después de cerrar una archivo de gedit." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +#| msgid "Press CtrlShiftJ." +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Para volver a hacer la acción deshecha pulse CtrlMayúsZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Editor de textos gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Editor de textos gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Página principal de la ayuda de gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Editor de textos gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +#| msgid "" +#| "Welcome to the gedit help guide. For a quick introduction into " +#| "both gedit's most basic features, as well as some advanced " +#| "keyboard shortcuts, visit the Get started " +#| "with gedit and Shortcut keys pages." +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Bienvenido/a a la guía de ayuda de gedit. Para una rápida " +"introducción en las características básicas de gedit consulte la " +"página Primeros pasos con gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Otros temas de ayuda están agrupados en secciones más abajo. Disfrute usando " +"gedit." + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Trabajar con archivos" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Configurar gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Complementos de gedit" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Imprimir con gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons de Atribución-Compartir Igual 3.0 sin soporte" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Este trabajo está licenciado bajo la <_:link-1/>." + +#~ msgid "" +#~ "To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears " +#~ "on the right-side of the file's tab, or press Ctrl " +#~ "W." +#~ msgstr "" +#~ "Para cerrar un archivo en gedit, seleccione Cerrar. Alternativamente, puede pulsar la «X» que " +#~ "aparece en la parte derecha de la pestaña del archivo.o pulsar " +#~ "Ctrl W." + +#~ msgid "" +#~ "Press CtrlL in the Open " +#~ "dialog." +#~ msgstr "" +#~ "Pulse CtrlL en el diálogo " +#~ "Abrir." + +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "Para ajustar el número de archivos usados recientemente que muestra " +#~ "gedit, debe usar la aplicación dconf-editor." + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "Ejecute dconf-editor y seleccione orggnomegeditpreferencesui " +#~ "max-recents." + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "" +#~ "Pulse dos veces en el número junto a max-recents y cambie el " +#~ "número al valor que quiera." + +#~ msgid "" +#~ "To open files from the side panel, first open the side panel by selecting " +#~ "View Side Panel (or just press " +#~ "F9), and then choose File Browser from the dropdown " +#~ "at the top of the pane." +#~ msgstr "" +#~ "Para abrir archivos desde el panel lateral, primero abra el " +#~ "panel lateral seleccionando VerPanel lateral (o simplemente F9), y entonces pulse en " +#~ "Examinador de archivos en el desplegable de la parte superior " +#~ "del panel." + +#~ msgid "" +#~ "This will activate the File Browser mode of the side panel. You " +#~ "can then use the navigation buttons at the top of the pane to locate and " +#~ "open your desired files." +#~ msgstr "" +#~ "Esto activará el modo examinador de archivos del panel lateral. " +#~ "Después puede usar los botones de navegación en la parte superior del " +#~ "panel para ubicar y abrir los archivos que quiera." + +#~ msgid "" +#~ "This plugin currently does not work!" +#~ msgstr "" +#~ "Actualmente este complemento no funciona" + +#~ msgid "Use keyboard shortcuts to help you work more quickly." +#~ msgstr "Usar atajos del teclado para ayudarle a trabajar más rápidamente." + +#~ msgid "Paolo Borelli" +#~ msgstr "Paolo Borelli" + +#~ msgid "Jesse van den Kieboom" +#~ msgstr "Jesse van den Kieboom" + +#~ msgid "Steve Frécinaux" +#~ msgstr "Steve Frécinaux" + +#~ msgid "Ignacio Casal Quinteiro" +#~ msgstr "Ignacio Casal Quinteiro" + +#~ msgid "Shortcut keys" +#~ msgstr "Teclas rápidas" + +#~ msgid "" +#~ "Use shortcut keys to perform common tasks more quickly than " +#~ "with the mouse and menus. The following tables list all of gedit's shortcut keys." +#~ msgstr "" +#~ "Use las teclas rápidas para realizar tareas comunes más " +#~ "rápidamente que con el ratón y los menús. Las siguientes tablas listan " +#~ "todas las teclas rápidas de gedit." + +#~ msgid "Tab-related Shortcut keys" +#~ msgstr "Tecla rápidas relacionadas con las pestañas" + +#~ msgid "Action" +#~ msgstr "Acción" + +#~ msgid "Keyboard shortcut" +#~ msgstr "Atajo del teclado" + +#~ msgid "Switch to the next tab to the left" +#~ msgstr "Cambiar a la siguiente pestaña a la izquierda" + +#~ msgid "CtrlAlt PageUp" +#~ msgstr "CtrlAlt Re Pag" + +#~ msgid "Switch to the next tab to the right" +#~ msgstr "Cambiar a la siguiente pestaña a la derecha" + +#~ msgid "CtrlAlt PageDown" +#~ msgstr "CtrlAlt Av Pag" + +#~ msgid "Close tab" +#~ msgstr "Cerrar pestaña" + +#~ msgid "CtrlW" +#~ msgstr "CtrlW" + +#~ msgid "Save all tabs" +#~ msgstr "Guardar todas las pestañas." + +#~ msgid "CtrlShift L" +#~ msgstr "CtrlMayús L" + +#~ msgid "Close all tabs" +#~ msgstr "Cerrar todas las pestañas." + +#~ msgid "CtrlShiftW" +#~ msgstr "CtrlMayúsW" + +#~ msgid "Reopen the most recently closed tab" +#~ msgstr "Reabrir la pestaña cerrada más recientemente" + +#~ msgid "CtrlShiftT" +#~ msgstr "CtrlMayúsT" + +#~ msgid "Jump to nth tab" +#~ msgstr "Saltar a la na pestaña." + +#~ msgid "Alt n" +#~ msgstr "Alt n" + +#~ msgid "New tab group" +#~ msgstr "Grupo de pestañas nuevo" + +#~ msgid "CtrlAltN" +#~ msgstr "CtrlAltN" + +#~ msgid "Previous tab group" +#~ msgstr "Grupo de pestañas anterior" + +#~ msgid "" +#~ "ShiftCtrlAltPage up" +#~ msgstr "" +#~ "MayúsCtrlAltRe pág" + +#~ msgid "Next tab group" +#~ msgstr "Siguiente grupo de pestañas" + +#~ msgid "" +#~ "ShiftCtrlAltPage down" +#~ msgstr "" +#~ "MayúsCtrlAltAv Pag" + +#~ msgid "Shortcut keys for working with files" +#~ msgstr "Teclas rápidas para trabajar con archivos" + +#~ msgid "Create a new document in a new window" +#~ msgstr "Crear un documento nuevo en una ventana nueva" + +#~ msgid "CtrlN" +#~ msgstr "CtrlN" + +#~ msgid "Create a new document in a new tab" +#~ msgstr "Crear un documento nuevo en una pestaña nueva" + +#~ msgid "CtrlT" +#~ msgstr "CtrlT" + +#~ msgid "Open a document" +#~ msgstr "Abrir un documento" + +#~ msgid "CtrlO" +#~ msgstr "CtrlO" + +#~ msgid "Save the current document" +#~ msgstr "Guardar el documento actual" + +#~ msgid "CtrlS" +#~ msgstr "CtrlS" + +#~ msgid "Save the current document with a new filename" +#~ msgstr "Guardar el documento actual con un nombre de archivo nuevo" + +#~ msgid "CtrlShift S" +#~ msgstr "CtrlMayús S" + +#~ msgid "Print the current document" +#~ msgstr "Imprimir el documento actual" + +#~ msgid "Ctrl P" +#~ msgstr "Ctrl P" + +#~ msgid "Close the current document" +#~ msgstr "Cerrar el documento actual" + +#~ msgid "Quit gedit" +#~ msgstr "Salir de gedit" + +#~ msgid "CtrlQ" +#~ msgstr "CtrlQ" + +#~ msgid "Shortcut keys for editing files" +#~ msgstr "Teclas rápidas para editar archivos" + +#~ msgid "Move the selected word right one word" +#~ msgstr "Mover la palabra seleccionada una palabra a la derecha" + +#~ msgid "AltRight Arrow" +#~ msgstr "AltFlecha derecha" + +#~ msgid "Move the selected word left one word" +#~ msgstr "Mover la palabra seleccionada una palabra a la izquierda" + +#~ msgid "AltLeft Arrow" +#~ msgstr "AltFlecha izquierda" + +#~ msgid "Undo the last action" +#~ msgstr "Deshacer la última acción" + +#~ msgid "CtrlZ" +#~ msgstr "CtrlZ" + +#~ msgid "Redo the last undone action" +#~ msgstr "Rehacer la última acción deshecha" + +#~ msgid "CtrlShift Z" +#~ msgstr "CtrlMayús Z" + +#~ msgid "Cut the selected text or region and place it on the clipboard" +#~ msgstr "Cortar el texto o región seleccionada y ubicarlo en el portapapeles" + +#~ msgid "CtrlX" +#~ msgstr "CtrlX" + +#~ msgid "Copy the selected text or region onto the clipboard" +#~ msgstr "Copiar el texto o región seleccionado al portapapeles" + +#~ msgid "CtrlC" +#~ msgstr "CtrlC" + +#~ msgid "Paste the contents of the clipboard" +#~ msgstr "Pegar el contenido del portapapeles" + +#~ msgid "CtrlV" +#~ msgstr "CtrlV" + +#~ msgid "Select all text in the file" +#~ msgstr "Seleccionar todo el texto en el archivo" + +#~ msgid "CtrlA" +#~ msgstr "CtrlA" + +#~ msgid "Unselect all text" +#~ msgstr "Deseleccionar todo el texto." + +#~ msgid "CtrlBackslash" +#~ msgstr "Ctrl\\" + +#~ msgid "Delete the current line" +#~ msgstr "Eliminar la línea actual" + +#~ msgid "CtrlD" +#~ msgstr "CtrlD" + +#~ msgid "Move the selected line up one line" +#~ msgstr "Mover la línea seleccionada una línea arriba" + +#~ msgid "AltUp Arrow" +#~ msgstr "AltFlecha arriba" + +#~ msgid "Move the selected line down one line" +#~ msgstr "Mover la línea seleccionada una línea abajo" + +#~ msgid "AltDown Arrow" +#~ msgstr "AltFlecha abajo" + +#~ msgid "Add a tab stop" +#~ msgstr "Añadir una tabulación" + +#~ msgid "Tab" +#~ msgstr "Tab" + +#~ msgid "Remove a tab stop" +#~ msgstr "Quitar una tabulación" + +#~ msgid "ShiftTab" +#~ msgstr "MayúsTab" + +#~ msgid "Convert the selected text to upper case" +#~ msgstr "Convertir el texto seleccionado a mayúsculas" + +#~ msgid "CtrlU" +#~ msgstr "CtrlU" + +#~ msgid "Convert the selected text to lower case" +#~ msgstr "Convertir el texto seleccionado a minúsculas" + +#~ msgid "CtrlL" +#~ msgstr "CtrlL" + +#~ msgid "Toggle case of the selected text" +#~ msgstr "Cambiar la capitalización del texto seleccionado" + +#~ msgid "Ctrl~" +#~ msgstr "Ctrl~" + +#~ msgid "Toggle cursor visibility" +#~ msgstr "Conmutar la visibilidad del cursor" + +#~ msgid "F7" +#~ msgstr "F7" + +#~ msgid "Shortcut keys for showing and hiding panes" +#~ msgstr "Teclas rápidas para mostrar y ocultar paneles" + +#~ msgid "Show / hide the side panel" +#~ msgstr "Mostrar/ocultar el panel lateral" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Open the file menu" +#~ msgstr "Abrir el menú del archivo" + +#~ msgid "F10" +#~ msgstr "F10" + +#~ msgid "Shortcut keys for navigation" +#~ msgstr "Atajos de teclas para la navegación" + +#~ msgid "Move to matching bracket" +#~ msgstr "Mover al corchete coincidente" + +#~ msgid "Ctrl%" +#~ msgstr "Ctrl%" + +#~ msgid "Goto line" +#~ msgstr "Ir a la línea" + +#~ msgid "CtrlI" +#~ msgstr "CtrlI" + +#~ msgid "Move to the beginning of the current line" +#~ msgstr "Mover al principio de la línea actual" + +#~ msgid "Home" +#~ msgstr "Inicio" + +#~ msgid "Move to the end of the current line" +#~ msgstr "Mover al final de la línea actual" + +#~ msgid "End" +#~ msgstr "Fin" + +#~ msgid "Move to the beginning of the document" +#~ msgstr "Mover al principio del documento" + +#~ msgid "CtrlHome" +#~ msgstr "CtrlInicio" + +#~ msgid "Move to the end of the document" +#~ msgstr "Mover al final del documento" + +#~ msgid "CtrlEnd" +#~ msgstr "CtrlFin" + +#~ msgid "Move viewport up within the file" +#~ msgstr "Mover la sección hacia arriba en el archivo" + +#~ msgid "ShiftAltUp" +#~ msgstr "MayúsAltArriba" + +#~ msgid "Move viewport down within the file" +#~ msgstr "Mover la sección hacia abajo en el archivo" + +#~ msgid "ShiftAltDown" +#~ msgstr "MayúsAltAbajo" + +#~ msgid "Move viewport to beginning of file" +#~ msgstr "Mover la sección al principio del archivo" + +#~ msgid "ShiftAltHome" +#~ msgstr "MayúsAltInicio" + +#~ msgid "Move viewport to end of file" +#~ msgstr "Mover la sección al final del archivo" + +#~ msgid "ShiftAltEnd" +#~ msgstr "MayúsAltFin" + +#~ msgid "Shortcut keys for searching" +#~ msgstr "Teclas rápidas para búsquedas" + +#~ msgid "Find a string" +#~ msgstr "Buscar una cadena" + +#~ msgid "CtrlF" +#~ msgstr "CtrlF" + +#~ msgid "Find the next instance of the string" +#~ msgstr "Buscar la siguiente instancia de la cadena" + +#~ msgid "CtrlG" +#~ msgstr "CtrlG" + +#~ msgid "Find the previous instance of the string" +#~ msgstr "Buscar la instancia anterior de la cadena" + +#~ msgid "CtrlShiftG" +#~ msgstr "CtrlMayúsG" + +#~ msgid "Search and Replace" +#~ msgstr "Buscar y reemplazar" + +#~ msgid "CtrlH" +#~ msgstr "CtrlH" + +#~ msgid "Clear highlight" +#~ msgstr "Limpiar el resaltado" + +#~ msgid "CtrlShift K" +#~ msgstr "CtrlMayús K" + +#~ msgid "Shortcut keys for tools" +#~ msgstr "Teclas rápidas para las herramientas" + +#~ msgid "Check spelling" +#~ msgstr "Comprobar ortografía" + +#~ msgid "ShiftF7" +#~ msgstr "MayúsF7" + +#~ msgid "Remove trailing spaces (with plugin)" +#~ msgstr "Eliminar espacios finales (con complemento)" + +#~ msgid "AltF12" +#~ msgstr "AltF12" + +#~ msgid "Run \"make\" in the current directory (with plugin)" +#~ msgstr "Ejecutar «make» en la carpeta actual (con complemento)" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Directory listing (with plugin)" +#~ msgstr "Listado de carpeta (con complemento)" + +#~ msgid "CtrlShift D" +#~ msgstr "CtrlMayús D" + +#~ msgid "Shortcut keys for user help" +#~ msgstr "Teclas rápidas para la ayuda" + +#~ msgid "Open the gedit user guide" +#~ msgstr "Abrir la guía de usuario de gedit" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "Go to DocumentsNew Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Vaya a DocumentosNuevo grupo de pestañas en el menú principal." + +#~ msgid "Move through tab groups" +#~ msgstr "Moverse entre grupos de pestañas" + +#~ msgid "To move forward (on the next) tab group:" +#~ msgstr "Para moverse al siguiente grupo de pestañas:" + +#~ msgid "" +#~ "Go to DocumentsNext Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Vaya a DocumentosSiguiente grupo de pestañas en el menú principal." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "down shortcut." +#~ msgstr "" +#~ "Use el atajo MayúsCtrlAltAv " +#~ "Pág." + +#~ msgid "To move backward (on the previous) tab group:" +#~ msgstr "Para moverse al grupo de pestañas anterior:" + +#~ msgid "" +#~ "Go to DocumentsPrevious Tab Group " +#~ "in the main menu." +#~ msgstr "" +#~ "Vaya a DocumentosGrupo de pestañas anterior en el menú principal." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "up shortcut." +#~ msgstr "" +#~ "Use el atajo MayúsCtrlAltRe " +#~ "Pág." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tab groups." +#~ msgstr "" +#~ "Consulte los atajos relacionados con " +#~ "las pestañas que simplifican la gestión de sus grupos de pestañas." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tabs." +#~ msgstr "" +#~ "Consulte los atajos relacionados con " +#~ "las pestañas que simplifican la gestión de sus pestañas." + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. The tab that is larger than the other " +#~ "tabs indicates the file that is currently open. The smaller tabs indicate " +#~ "other files that are available to work on." +#~ msgstr "" +#~ "Trabajar con pestañas en gedit le permite trabajar sobre " +#~ "varios archivos en una única ventana. La pestaña que es más grande que " +#~ "las demás indica que el archivo está abierto actualmente. Las pestañas " +#~ "más pequeñas indican otros archivos que están disponibles para trabajar " +#~ "en ellos." + +#~ msgid "Click the Open button." +#~ msgstr "Pulse el botón Abrir." + +#~ msgid "Open the Quick Open window" +#~ msgstr "Abra la ventana Apertura rápida" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Print preview" +#~ msgstr "Vista previa de impresión" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlMayús P" + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "Como su propio nombre indica, el complemento Insertar fecha y hora le permite insertar la fecha y/o la hora en posición actual del " +#~ "cursor. Para activar este complemento, seleccione gedit PreferenciasComplementosInsertar fecha y hora. Para usar el complemento, " +#~ "pulse EditarInsertar fecha y hora." + +#~| msgid "Indent (with plugin)." +#~ msgid "Insert timestamp (with plugin)" +#~ msgstr "Insertar marca de tiempo (con complemento)" + +#~| msgid "CtrlShift L" +#~ msgid "CtrlShift B" +#~ msgstr "CtrlMayús B" + +#~ msgid "" +#~ "This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +#~ "locate and open your desired files." +#~ msgstr "" +#~ "Esto activará el modo examinador de archivos del panel " +#~ "lateral. Entonces podrá usar los botones de navegación en la parte " +#~ "superior del panel para ubicar y abrir los archivos que quiera." + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "Seleccione ArchivoAbrir para " +#~ "mostrar el diálogo Abrir archivos." + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "" +#~ "Seleccione el icono Lápiz en la parte superior del diálogo " +#~ "Abrir archivos." + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "Para activar y usar el Panel lateral, seleccione " +#~ "VerPanel lateral (o pulseF9), y pulse el icono examinador de archivos en la parte " +#~ "inferior del panel." + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "No puede usar la característica Deshacer para corregir una " +#~ "operación de Ordenar, por lo que se recomienda que guarde el " +#~ "archivo inmediatamente antes de hacer la ordenación. Si comete un error " +#~ "al ordenar, puede volver a la versión del archivo guardada anteriormente " +#~ "seleccionando ArchivoRevertir." + +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "Seleccione gedit Ordenar." + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "Pulse Ctrl y use el deslizador de su ratón o " +#~ "«touchpad» para moverse hacia arriba o hacia abajo a través del texto." + +#~ msgid "Show / hide the bottom pane" +#~ msgstr "Mostrar/ocultar el panel inferior" + +#~ msgid "CtrlF9" +#~ msgstr "CtrlF9" + +#~ msgid "To Do This" +#~ msgstr "Para hacer esto" + +#~ msgid "Press This" +#~ msgstr "Pulsar esto" + +#~ msgid "Enable and use spell-checking feature" +#~ msgstr "Activar y usar la característica de comprobación de ortografía" + +#~ msgid "View a list of files in the side pane" +#~ msgstr "Ver una lista de archivos en el panel lateral" + +#~ msgid "" +#~ "Keeping track of a large number of files using tabs can be difficult. One " +#~ "way of managing large numbers of files is viewing them in a side pane. " +#~ "Side panes allow you to view more files at a time than is possible using " +#~ "tabs alone." +#~ msgstr "" +#~ "Mantener un seguimiento de un gran número de archivos usando pestañas " +#~ "puede ser difícil. Una forma de gestionar grandes números de archivos es " +#~ "verlos en un panel lateral. Los paneles laterales le permiten ver más " +#~ "archivos al mismo tiempo que sólo usando pestañas." + +#~ msgid "" +#~ "To view a list of open files in a side pane, click View Side Pane. A " +#~ "pane will appear to the left of the workspace with a listing of all " +#~ "currently open files. Clicking a file in the side pane will display that " +#~ "file in the workspace." +#~ msgstr "" +#~ "Para ver una lista de los archivos abiertos en un panel lateral, pulse " +#~ "Ver Panel " +#~ "lateral. Aparecerá un panel a la izquierda del área de " +#~ "trabajo con una lista de todos los archivos actualmente abiertos. Pulsar " +#~ "en un archivo en el panel lateral hará que su contenido se muestre en el " +#~ "área de trabajo." + +#~ msgid "documents icon" +#~ msgstr "icono de documentos" + +#~ msgid "" +#~ "The side pane also contains a File Browser view. If the pane " +#~ "displays a file directory instead of currently open files, click <_:" +#~ "media-1/> at the bottom of the pane to switch to the Documents " +#~ "view." +#~ msgstr "" +#~ "El panel lateral también contiene una vista de Examinador de " +#~ "archivos. Si el panel lateral muestra una lista de archivos en " +#~ "lugar de los archivos abiertos actualmente, pulse <_:media-1/> en la " +#~ "parte inferior del panel para cambiar a la vista de Documentos." + +#~ msgid "" +#~ "The side pane only displays files that are open in the current window. " +#~ "When multiple windows are open, only the files in the current window will " +#~ "be displayed in the side pane." +#~ msgstr "" +#~ "El panel lateral sólo muestra los archivos abiertos en la ventana actual. " +#~ "Cuando hay varias ventanas abiertas, en el panel lateral sólo se muestran " +#~ "los archivos abiertos en la ventana actual." + +#~ msgid "To change the color scheme, complete the following steps:" +#~ msgstr "Para cambiar el esquema de colores complete los siguientes pasos:" + +#~ msgid "http://creativecommons.org/licenses/by-sa/3.0/" +#~ msgstr "http://creativecommons.org/licenses/by-sa/3.0/" + +#~ msgid "" +#~ "This work is licensed under the Creative Commons Attribution-ShareAlike " +#~ "3.0 Unported License. To view a copy of this license, visit <_:link-1/> " +#~ "or send a letter to Creative Commons, 444 Castro Street, Suite 900, " +#~ "Mountain View, California, 94041, USA." +#~ msgstr "" +#~ "Este trabajo usa la licencia Creative Commons Compartir-igual de " +#~ "atribución sin soporte 3.0. Para ver una copia de esta licencia, visite " +#~ "<_:link-1/> o envíe una carta a Creative Commons, 444 Castro Street, " +#~ "Suite 900, Mountain View, California, 94041, USA." + +#~ msgid "Log user activity for documents which are opened in gedit" +#~ msgstr "" +#~ "Registrar la actividad del usuario para documentos abiertos en gedit" + +#~ msgid "Zeitgeist dataprovider" +#~ msgstr "Proveedor de datos de Zeitgeist" + +#~ msgid "" +#~ "Zeitgeist is a service that logs user activities and events. Zeitgeist " +#~ "lets other applications access this information in the form of statistics " +#~ "and timelines.The Zeitgeist dataprovider plugin for gedit " +#~ "records user activity for documents used with gedit giving easy access to " +#~ "recently-used and frequently-used files." +#~ msgstr "" +#~ "Zeitgeist es un servicio que registra la actividad del usuario y los " +#~ "eventos. Zeitgeist permite a otras aplicaciones acceder a esta " +#~ "información en forma de estadísticas y líneas de tiempo. El complemento " +#~ "Proveedor de datos de Zeitgeist para gedit registra la " +#~ "actividad del usuario para documentos usados con gedit, permitiendo el " +#~ "acceso a los últimos archivos usados y a los más frecuentemente usados " +#~ "con facilidad." + +#~ msgid "Enable Zeitgeist dataprovider" +#~ msgstr "Activa el proveedor de datos de Zeitgeist" + +#~ msgid "Select Zietgeist Dataprovider." +#~ msgstr "" +#~ "Seleccione Proveedor de datos de Zietgeist." + +#~ msgid "" +#~ "or, while the tab to be moved is open, choose Documents Move to New Window" +#~ msgstr "" +#~ "o, mientras la pestaña se mueve seleccione DocumentosMover a la ventana nueva" + +#~| msgid "CtrlShift L" +#~ msgid "CtrlShiftL" +#~ msgstr "CtrlMayúsL" + +#~ msgid "" +#~ "To save a file in gedit, click on the disk-drive icon with the " +#~ "word Save next to it. You may also select " +#~ "File Save, or just press CtrlS." +#~ msgstr "" +#~ "Para guardar un archivo en gedit, pulse en el icono de la " +#~ "unidad de disco con la palabra Guardar junto " +#~ "a él. También puede seleccionar Archivo " +#~ "Guardar, o simplemente pulsar " +#~ "CtrlS." + +#~ msgid "" +#~ "If you make a mistake while using gedit, you can undo it by " +#~ "pressing CtrlZ, or by clicking " +#~ "gedit Undo. Doing so will cause gedit to undo one set of " +#~ "similar actions." +#~ msgstr "" +#~ "Si comete un error mientras usa gedit, puede deshacerlo " +#~ "pulsando CtrlZ, o pulsando " +#~ "geditDeshacer. Esto " +#~ "hará que gedit deshaga un conjunto de acciones similares." + +#~ msgid "" +#~ "Undoing a \"set of similar actions\" means, for example, that gedit will remove an entire word rather than removing each character in " +#~ "the word one at a time. This makes gedit's undo " +#~ "feature more efficient." +#~ msgstr "" +#~ "Deshacer «un conjunto de acciones similares» significa que, por ejemplo, " +#~ "gedit quitará una palabra completa en lugar de quitar cada " +#~ "carácter de la palabra de uno en uno. Esto hace que la característica " +#~ "deshacer de gedit sea más eficiente." + +#~ msgid "" +#~ "The easiest way to create a new file in gedit, is to click the " +#~ "icon in the toolbar that looks like a blank piece of paper. If you " +#~ "prefer, you may also select FileNew, or press CtrlN." +#~ msgstr "" +#~ "La manera más fácil de crear un archivo nuevo en gedit es " +#~ "pulsar en el icono que parece un trozo de papel en blanco con un signo " +#~ "«+» junto a él. Si lo prefiere, también puede seleccionar " +#~ "ArchivoNuevo, o pulsar " +#~ "CtrlN." + +#~ msgid "" +#~ "The list of available languages will vary, depending on the configuration " +#~ "of your system." +#~ msgstr "" +#~ "La lista de los idiomas disponible variará dependiendo de la " +#~ "configuración de su sistema." + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-icon.png' " +#~ "md5='a7174de2671462e1ac4f80a82ad09184'" +#~ msgstr "" +#~ "external ref='figures/gedit-icon.png' " +#~ "md5='a7174de2671462e1ac4f80a82ad09184'" + +#~ msgid "" +#~ " " +#~ " gedit Text Editor" +#~ msgstr "" +#~ " " +#~ " Editor de textos gedit" + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane1.png' " +#~ "md5='ac9c80cb0552d63b593c71f23be69b53'" +#~ msgstr "" +#~ "external ref='figures/gedit-side-pane1.png' " +#~ "md5='ac9c80cb0552d63b593c71f23be69b53'" + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane2.png' " +#~ "md5='e7a12a43adc9c9cb8c992ad22a815a57'" +#~ msgstr "" +#~ "external ref='figures/gedit-side-pane2.png' " +#~ "md5='e7a12a43adc9c9cb8c992ad22a815a57'" + +#~ msgid "Record commonly-referenced locations with bookmarks" +#~ msgstr "Grabar ubicaciones usadas frecuentemente con los marcadores" + +#~ msgid "Bookmarks" +#~ msgstr "Marcadores" + +#~ msgid "" +#~ "Gedit bookmarks allow you to highlight important lines of text within " +#~ "your document or program, making them easier to find. You can also move " +#~ "up or down between bookmarks, making document navigation a bit faster." +#~ msgstr "" +#~ "Los marcadores de gedit le permiten resaltar líneas de texto importantes " +#~ "en su documento o en su programa, haciendo que sean más fáciles de " +#~ "encontrar. Puede moverse entre los marcadores, agilizando la navegación " +#~ "por el documento." + +#~ msgid "" +#~ "To enable the bookmark plugin, select gedit PreferencesPlugins " +#~ "Bookmarks." +#~ msgstr "" +#~ "Para activar el complemento de marcadores, seleccione gedit PreferenciasComplementos Marcadores." + +#~ msgid "" +#~ "Bookmarks are inserted and removed by completing the same action. To " +#~ "insert or remove bookmarks:" +#~ msgstr "" +#~ "Los marcadores se insertan y se quitan realizando la misma acción. Para " +#~ "insertar o quitar marcadores:" + +#~ msgid "" +#~ "Navigate to the line where you want to insert or remove the bookmark." +#~ msgstr "" +#~ "Navegue hasta la línea en la que quiere insertar o quitar el marcador." + +#~ msgid "" +#~ "Press CtrlAltB, or " +#~ "click Edit Toggle Bookmark." +#~ msgstr "" +#~ "Pulse CtrlAltB, o pulse " +#~ "en Editar Alternar marcador." + +#~ msgid "To move between bookmarks:" +#~ msgstr "Para moverse entre marcadores:" + +#~ msgid "" +#~ "Press CtrlB to move to the next " +#~ "bookmark." +#~ msgstr "" +#~ "Pulse CtrlB para moverse al " +#~ "siguiente marcador." + +#~ msgid "" +#~ "Press CtrlShiftB to " +#~ "move to the previous bookmark." +#~ msgstr "" +#~ "Pulse CtrlShiftB para " +#~ "moverse al marcador anterior." + +#~ msgid "" +#~ "If you prefer using the mouse, you can click gedit Go to Next Bookmark " +#~ "or Edit Go to " +#~ "Previous Bookmark." +#~ msgstr "" +#~ "Si prefiere usar el ratón, puede pulsar EditarIr " +#~ "al siguiente marcador o EditarIr al marcador anterior." + +#~ msgid "Auto-complete closing brackets" +#~ msgstr "Autocompletar cerrado de paréntesis" + +#~ msgid "Bracket completion" +#~ msgstr "Completado de corchetes" + +#~ msgid "" +#~ "The Bracket Completion plugin will auto-complete closing " +#~ "brackets for curly braces, parentheses, and square brackets." +#~ msgstr "" +#~ "El complemento Completar paréntesis completará automáticamente " +#~ "los paréntesis, llaves y corchetes." + +#~ msgid "" +#~ "To enable the plugin, select gedit PreferencesPlugins Bracket " +#~ "Completion." +#~ msgstr "" +#~ "Para activar el complemento seleccione gedit PreferenciasComplementosCompletar " +#~ "paréntesis." + +#~ msgid "This plugin does not automatically insert closing HTML or XML tags." +#~ msgstr "" +#~ "Este complemento no inserta automáticamente etiquetas de cierre HTML o " +#~ "XML." + +#~ msgid "Paul Weaver" +#~ msgstr "Paul Weaver" + +#~ msgid "Insert special characters just by clicking on them" +#~ msgstr "Insertar caracteres especiales simplemente pulsando sobre ellos" + +#~ msgid "Character map" +#~ msgstr "Mapa de caracteres" + +#~ msgid "" +#~ "The Character Map plugin enables you to insert characters into " +#~ "your document that you may not be able to type easily using your " +#~ "keyboard. To enable this plugin, select gedit PreferencesPlugins Character Map." +#~ msgstr "" +#~ "El complemento Mapa de caracteres le permite insertar en su " +#~ "documento caracteres que es posible que sean fáciles de escribir usando " +#~ "su teclado. Para activar este complemento, seleccione gedit PreferenciasComplementos Mapa de caracteres." + +#~ msgid "Using Character Map" +#~ msgstr "Usar el mapa de caracteres" + +#~ msgid "" +#~ "Once the plugin is enabled, you can add characters from the Character " +#~ "Map tab of the side panel (View Side Panel)." +#~ msgstr "" +#~ "Una vez que el complemento esté activado, puede añadir caracteres desde " +#~ "la pestaña Mapa de caracteres en el panel lateral " +#~ "(VerPanel lateral)." + +#~ msgid "" +#~ "Place the cursor at the point in your document at which you would like " +#~ "your special character." +#~ msgstr "" +#~ "Sitúe el cursor en el punto del documento en el que quiere insertar el " +#~ "carácter especial." + +#~ msgid "" +#~ "Open the side panel by selecting View Side Panel, or by pressing F9." +#~ msgstr "" +#~ "Abra el panel lateral seleccionando VerPanel " +#~ "lateral, o pulsando F9." + +#~ msgid "Select the Character Map tab in the side panel." +#~ msgstr "" +#~ "Seleccione la pestaña Mapa de caracteres en el panel lateral." + +#~ msgid "" +#~ "If neccessary, choose the character set to which your character belongs " +#~ "from the list at the top of the Character Map tab (e.g., Arabic)." +#~ msgstr "" +#~ "Si es necesario, elija el conjunto de caracteres al que pertenece su " +#~ "carácter de la lista de la parte superior de la pestaña Mapa de " +#~ "caracteres (ej, Árabe)." + +#~ msgid "Double click your desired character to insert it." +#~ msgstr "Pulse dos veces en el carácter que quiere para insertarlo." + +#~ msgid "" +#~ "You must click on the editing view of your document to continue editing " +#~ "normally." +#~ msgstr "" +#~ "Debe pulsar en la vista de edición de su documento para continuar " +#~ "editándolo normalmente." + +#~ msgid "Real-time error highlighting for supported languages" +#~ msgstr "Resaltado de errores en tiempo real para lenguajes soportados" + +#~ msgid "Code assistance" +#~ msgstr "Asistente de código" + +#~ msgid "" +#~ "The gedit-code-assistance plugin provides real-time error " +#~ "highlighting for C, C++ and Objective-C. To enable this plugin, select " +#~ "geditPreferences PluginsCode Assistance." +#~ msgstr "" +#~ "El complemento asistente de código de gedit proporciona " +#~ "resaltado de errores en tiempo real para C, C++ y Objective-C. Para " +#~ "activar este complemento, seleccione geditPreferencias ComplementosAsistente de código." + +#~ msgid "How the code assistance plugin works" +#~ msgstr "Cómo funciona el complemento «asistente de código»" + +#~ msgid "" +#~ "The plugin currently relies on information in the makefile to deduce the " +#~ "Clang error-highlighting rules. It examines the make rules " +#~ "and determines which targets depend on the the file that is being parsed. " +#~ "The plugin then extracts the compiler flags by simulating an execution of " +#~ "those targets." +#~ msgstr "" +#~ "Actualmente, el complemento se basa en la información del makefile para " +#~ "deducir las reglas de resaltado de errores de Clang. Examina las reglas " +#~ "de make y determina qué objetivos dependen del archivo que " +#~ "se está analizando. Entonces, el complemento extrae las opciones del " +#~ "compilador simulando una ejecución de estos objetivos." + +#~ msgid "" +#~ "This is not completely fool proof, of course. In the future, the plugin " +#~ "will allow you to manually specify the compile flags." +#~ msgstr "" +#~ "Por supuesto, esto no es a prueba de fallos. En el futuro, el complemento " +#~ "permitirá especificar manualmente las opciones del compilador." + +#~ msgid "Comment-out or uncomment a block of code" +#~ msgstr "Comentar o descomentar un bloque de código" + +#~ msgid "Code comment" +#~ msgstr "Comentar código" + +#~ msgid "" +#~ "Code comments are portions of text that make it easier for people to " +#~ "understand a program's code, but they don't affect how a program works. " +#~ "Comments are separated from other parts of a program by special " +#~ "characters." +#~ msgstr "" +#~ "Los comentarios del código son fragmentos de texto que facilitan a la " +#~ "gente entender el código de un programa, pero no afectan al " +#~ "funcionamiento del mismo. Los comentarios se separan del resto de partes " +#~ "del programa mediante caracteres especiales." + +#~ msgid "" +#~ "The code comment plugin makes it easier to quickly create or " +#~ "remove code comments. To enable the code comment plugin, select " +#~ "geditPreferences PluginsCode comment." +#~ msgstr "" +#~ "El complemento comentar código hace que sea más sencillo " +#~ "añadir o quitar comentarios al código. Para activar el complemento de " +#~ "comentar código, seleccione geditPreferencias ComplementosComentar código." + +#~ msgid "To create or remove a comment:" +#~ msgstr "Para crear o quitar un comentario:" + +#~ msgid "" +#~ "Highlight the portion of text where you want to add or remove a comment." +#~ msgstr "" +#~ "Resalte el fragmento de texto donde quiere añadir o quitar o comentario." + +#~ msgid "" +#~ "To add a comment, click gedit " +#~ "Comment Code, or press Ctrl " +#~ "M." +#~ msgstr "" +#~ "Para añadir un comentario, pulse gedit " +#~ "Comentar código, o pulse Ctrl " +#~ "M." + +#~ msgid "" +#~ "To remove a comment, click gedit " +#~ "Uncomment Code, or press Shift " +#~ "CtrlM." +#~ msgstr "" +#~ "Para quitar un comentario, pulse geditDescomentar código, o pulse MayúsCtrlM." + +#~ msgid "" +#~ "gedit will automatically use the correct style of comment " +#~ "based on the language or syntax of the file. If gedit doesn't " +#~ "identify your language or syntax, you can select it from the language " +#~ "list in the bottom Status bar." +#~ msgstr "" +#~ "gedit usará automáticamente el estilo de comentario correcto " +#~ "basándose en el lenguaje o la sintaxis del archivo. Si gedit " +#~ "no identifica el lenguaje ni la sintaxis, puede seleccionarlo de la lista " +#~ "de lenguajes en la Barra de estado inferior." + +#~ msgid "Pick a color from a dialog and insert its hexadecimal representation" +#~ msgstr "" +#~ "Seleccionar un color de un diálogo e insertar su representación " +#~ "hexadecimal" + +#~ msgid "Color picker" +#~ msgstr "Selector de color" + +#~ msgid "" +#~ "The color picker plugin helps you to insert the character " +#~ "codes that represent a certain color. This can make it easier to choose " +#~ "and use the correct color in your programs." +#~ msgstr "" +#~ "El complemento selector de color le ayuda a insertar el código " +#~ "de caracteres que representa un color determinado. Esto puede simplificar " +#~ "el elegir y usar el color correcto en sus programas." + +#~ msgid "" +#~ "To enable the color picker plugin, select geditPreferences PluginsColor Picker." +#~ msgstr "" +#~ "Para activar el selector de color, seleccione gedit PreferenciasComplementosSelector de color." + +#~ msgid "To open and use the color picker:" +#~ msgstr "Para abrir y usar el selector de color:" + +#~ msgid "" +#~ "Place your cursor at the point in your document where you want to insert " +#~ "the color code." +#~ msgstr "" +#~ "Sitúe el cursor en el punto del documento en el que quiere insertar el " +#~ "código del color." + +#~ msgid "" +#~ "Select ToolsPick Color.... The " +#~ "color picker dialog will appear." +#~ msgstr "" +#~ "Seleccione HerramientasSeleccionar color.... aparecerá el diálogo del selector de color." + +#~ msgid "Click on the desired color in the color picker window." +#~ msgstr "Pulse en el color que quiera en la ventana del selector de color." + +#~ msgid "" +#~ "The appropriate color code will be inserted where you had placed your " +#~ "cursor." +#~ msgstr "" +#~ "El código del color seleccionado se insertará donde tenga situado el " +#~ "cursor." + +#~ msgid "To close the color picker, click Close." +#~ msgstr "" +#~ "Para cerrar el selector de color, pulse Cerrar." + +#~ msgid "" +#~ "You can make fine-grained adjustments to the color by adjusting the " +#~ "values for Hue, Saturation, Value, Red, Green, or Blue." +#~ msgstr "" +#~ "Puede hacer ajustes más precisos en el color modificando los valores de " +#~ "Tono, Saturación, Valor, Rojo, Verde o Azul." + +#~ msgid "" +#~ "Additionally, you can save colors by right-clicking on any of the colored " +#~ "boxes in the color picker, and selecting Save color here. This " +#~ "will make it easier to insert commonly-used colors later." +#~ msgstr "" +#~ "Además, puede guardar colores pulsando con el botón derecho en cualquiera " +#~ "de las cajas coloreadas en el selector de color, y seleccionando " +#~ "Guardar color aquí. Esto hará más sencillo insertar colores " +#~ "usados habitualmente más tarde." + +#~ msgid "Use a command-line interface for advanced editing" +#~ msgstr "Usar una interfaz de línea de comandos para edición avanzada" + +#~ msgid "Commander" +#~ msgstr "Comando" + +#~ msgid "" +#~ "The Commander plugin is a plugin for advanced gedit " +#~ "users that allows you to perform command-line actions on the current " +#~ "file. To enable the commander plugin, select geditPreferences PluginsCommander." +#~ msgstr "" +#~ "El complemento Comando es para usuarios avanzados de " +#~ "gedit que permite realizar acciones de línea de comandos sobre " +#~ "el archivo actual. Para activar el complemento «Comando», seleccione " +#~ "geditPreferencias ComplementosComando." + +#~ msgid "" +#~ "Once you have enabled the plugin, activate it by pressing " +#~ "Ctrl.." +#~ msgstr "" +#~ "Una vez que haya instalado el complemento, actívelo pulsando " +#~ " Ctrl.." + +#~ msgid "The last key in the above key combination is a period." +#~ msgstr "" +#~ "La última tecla de la combinación de teclas indicada es un punto («.»)." + +#~ msgid "See an overview of available commands" +#~ msgstr "Ver una descripción de los comandos disponibles" + +#~ msgid "Tab + Tab" +#~ msgstr "Tab + Tab" + +#~ msgid "/ foo " +#~ msgstr "/ foo" + +#~ msgid "This will find the word foo." +#~ msgstr "Esto buscará la palabra foo." + +#~ msgid "// foo bar" +#~ msgstr "// foo bar" + +#~ msgid "This will replace foo with bar." +#~ msgstr "Esto reemplazará foo por bar." + +#~ msgid "Move the cursor to a certain line number in your file" +#~ msgstr "Mover el cursos a un determinado número de línea en su archivo" + +#~ msgid "go [line number] or just g [line number]" +#~ msgstr "" +#~ "go [número de línea] o simplemente g [número de línea]" + +#~ msgid "Toggle the bookmark indicator for the current line" +#~ msgstr "Conmutar el indicador de marcador para la línea actual" + +#~ msgid "bookmark or just b" +#~ msgstr "bookmark o simplemente b" + +#~ msgid "" +#~ "Some commands, such as the bookmark command require that the " +#~ "appropriate plugin be installed and activated. If you do not have the " +#~ "appropriate plugin installed and activated, you will receive an error " +#~ "message." +#~ msgstr "" +#~ "Algunos comandos, como bookmark, necesitan que se insale y " +#~ "active el complemento adecuado. Si no tiene el complemento instalado y " +#~ "activado, obtendrá un mensaje de error." + +#~ msgid "Display recently-used and most-used files on startup" +#~ msgstr "" +#~ "Mostrar los archivos usados recientemente y los archivos más usados al " +#~ "inicio" + +#~ msgid "Dashboard" +#~ msgstr "Tablero" + +#~ msgid "" +#~ "The Dashboard plugin provides quick access to your most " +#~ "recently-used files and most-frequently used files. To activate the " +#~ "Dashboard plugin, select geditPreferences PluginsDashboard. You will need to restart gedit to activate the Dashboard plugin." +#~ msgstr "" +#~ "El complemento Tablero proporciona un rápido acceso a los " +#~ "archivos usados más recientemente y a los más frecuentemente usados. Para " +#~ "activar el complemento Tablero, seleccione gedit PreferenciasComplementos Tablero. Deberá reiniciar " +#~ "gedit para activar el complemento Tablero." + +#~ msgid "" +#~ "The dashboard also includes a Search window, " +#~ "allowing you to search for files that may not appear in the list of files." +#~ msgstr "" +#~ "El tablero también incluye una ventana Buscar, que " +#~ "le permite buscar archivos que pueden no aparecer en la lista de archivos." + +#~ msgid "Recently used files" +#~ msgstr "Archivos usados recientemente" + +#~ msgid "" +#~ "The dashboard will initially display a shortcut for an empty " +#~ "document and seven of your most recently-used files. Click on the " +#~ "empty document to create a new file. Click on any of the other " +#~ "files to open that file." +#~ msgstr "" +#~ "El tablero mostrará inicialmente un atajo a un documento vacío " +#~ "y a siete de sus archivos usados más recientemente. Pulse en el " +#~ "documento vacío para crear un archivo nuevo. Pulse en " +#~ "cualquiera de los otros archivos para abrirlo." + +#~ msgid "Most frequently-used files" +#~ msgstr "Archivos más frecuentemente usados" + +#~ msgid "" +#~ "Similarly, the dashboard displays a shortcut for an empty document and seven of your most frequently-used files. Click on the " +#~ "empty document to create a new file. Click on any of the other " +#~ "files to open that file." +#~ msgstr "" +#~ "De igual manera, el tablero muestra un atajo a un documento vacío y a siete de sus archivos usados más frecuentemente. Pulse en el " +#~ "documento vacío para crear un archivo nuevo. Pulse en " +#~ "cualquiera de los otros archivos para abrirlo." + +#~ msgid "" +#~ "Once activated, the dashboard will be displayed by default " +#~ "when you open gedit. You can also open the dashboard by clicking FileNew , or by " +#~ "pressing CtrlN." +#~ msgstr "" +#~ "Una vez activado, el tablero se mostrará de manera " +#~ "predeterminada cuando abra gedit. También puede abrir el " +#~ "tablero pulsando ArchivoNuevo, o pulsando CtrlN." + +#~ msgid "Show white space between words or portions of code" +#~ msgstr "Mostrar espacios en blanco entre palabras o fragmentos de código" + +#~ msgid "Draw spaces" +#~ msgstr "Dibujar espacios" + +#~ msgid "" +#~ "The Draw Spaces plugin is a simple plugin that can mark " +#~ "spaces, tabs, and other types of whitespace with a small, visible marker. " +#~ "By making whitespace visible, you can more easily see how whitespace is " +#~ "used in a document, and can apply spacing strategies more consistently." +#~ msgstr "" +#~ "El complemento Dibujar espacios es un sencillo complemento que " +#~ "puede marcar espacios, tabuladores y otros tipos de espacios en blanco " +#~ "con un pequeño marcador visible. Marcando estos espacios como visibles, " +#~ "puede ver más fácilmente cómo se usan los espacios en blanco en un " +#~ "documento, y puede aplicar estrategias de espaciado de manera más " +#~ "consistente." + +#~ msgid "" +#~ "To enable this plugin, select gedit " +#~ "PreferencesPlugins Draw " +#~ "Spaces. After you have enabled the plugin, you can set its " +#~ "options by highlighting the plugin and selecting Preferences." +#~ msgstr "" +#~ "Para activar este complemento, seleccione gedit PreferenciasComplementos Dibujar espacios. Una vez " +#~ "que haya activado el complemento, puede establecer sus opciones marcando " +#~ "el complemento y seleccionando Preferencias." + +#~ msgid "" +#~ "By default, the Draw Spaces plugin will mark the following " +#~ "types of whitespace in a file:" +#~ msgstr "" +#~ "De manera predeterminada, el complemento Dibujar espacios " +#~ "marcará los siguientes tipos de espacios en blanco en un archivo:" + +#~ msgid "Spaces" +#~ msgstr "Espacios" + +#~ msgid "Leading spaces" +#~ msgstr "Espacios iniciales" + +#~ msgid "Spaces in text" +#~ msgstr "Espacios en el texto" + +#~ msgid "Trailing spaces" +#~ msgstr "Espacios sobrantes" + +#~ msgid "You can also set the plugin to mark:" +#~ msgstr "También puede configurar el complemento para marcar:" + +#~ msgid "New Lines" +#~ msgstr "Líneas nuevas" + +#~ msgid "Non-breaking spaces" +#~ msgstr "Espacios de no ruptura" + +#~ msgid "" +#~ "Though you will be able to see the dots when you work on a file, the dots " +#~ "will not be visible when you print a file to paper." +#~ msgstr "" +#~ "Aunque podrá ver los puntos cuando trabaje en un archivo, estos puntos no " +#~ "serán visibles cuando imprima el archivo en papel." + +#~ msgid "Join several lines of text, or split long lines" +#~ msgstr "Unir varias líneas de texto o dividir líneas largas" + +#~ msgid "Join/Split lines" +#~ msgstr "Unir/dividir líneas" + +#~ msgid "" +#~ "The Join/Split Lines plugin can join shorter lines into one " +#~ "longer line, or can split a long line into multiple shorter lines." +#~ msgstr "" +#~ "El complemento Unir/dividir líneas puede unir líneas cortas en " +#~ "una línea larga o puede dividir una línea larga en varias líneas más " +#~ "cortas." + +#~ msgid "" +#~ "To enable this plugin, select gedit " +#~ "PreferencesPlugins Join/" +#~ "Split Lines." +#~ msgstr "" +#~ "Para activar este complemento seleccione gedit PreferenciasComplementosUnir/" +#~ "dividir líneas." + +#~ msgid "To join multiple lines into one longer line:" +#~ msgstr "Para unir varias líneas en una sola línea larga:" + +#~ msgid "" +#~ "Select the lines that you want to join. To do this, you can use the " +#~ "mouse, or you can press ShiftUp Arrow or ShiftDown Arrow." +#~ msgstr "" +#~ "Seleccione las líneas que quiere unir. Para hacerlo, puede usar el ratón " +#~ "o pulsar MayúsFlecha arriba o " +#~ "MayúsFlecha abajo." + +#~ msgid "The lines that you selected will be joined into one longer line." +#~ msgstr "Las líneas que seleccione se unirán en una sola línea larga." + +#~ msgid "To split one line into multiple lines:" +#~ msgstr "Para dividir una línea en varias líneas:" + +#~ msgid "" +#~ "Select the line that you want to split by placing your cursor anywhere on " +#~ "that line." +#~ msgstr "" +#~ "Seleccione las líneas que dividir situando el cursor el cualquier parte " +#~ "de la línea." + +#~ msgid "" +#~ "The line will be split into multiple lines. Spaces are used to determine " +#~ "where it is safe to split a line, and the length of each line will not " +#~ "exceed 80 characters." +#~ msgstr "" +#~ "La línea se dividirá en varias líneas. Los espacios se usan para " +#~ "determinar dónde es seguro dividir una línea, y que la longitud de la " +#~ "línea no supere los 80 caracteres." + +#~ msgid "2011" +#~ msgstr "2011" + +#~ msgid "Edit a document in multiple places at once" +#~ msgstr "Editar un documento en varios sitios a la vez" + +#~ msgid "Multi edit" +#~ msgstr "Edición múltiple" + +#~ msgid "" +#~ "The Multi Edit plugin allows you to edit a document in " +#~ "multiple places at once. This can be helpful when performing tedious " +#~ "editing tasks. To enable the Multi Edit plugin, select gedit PreferencesPluginsMulti " +#~ "Edit." +#~ msgstr "" +#~ "El complemento Edición múltiple le permite editar un documento " +#~ "en varios sitios a la vez. Esto puede ser útil para realizar tareas de " +#~ "edición tediosas. Para activar este complemento de edición múltiple, " +#~ "seleccione gedit PreferenciasComplementos Edición múltiple." + +#~ msgid "" +#~ "After you have enabled the plugin, turn-on Multi Edit mode by pressing " +#~ "CtrlShiftC, or clicking " +#~ "geditMulti Edit Mode. You can then select the points in your file that you would like " +#~ "start editing." +#~ msgstr "" +#~ "Después de activar el complemento, active el modo de edición múltiple " +#~ "pulsando CtrlMayúsC, o " +#~ "pulsando geditModo de edición " +#~ "múltiple. Puede seleccionar los puntos en el archivo que " +#~ "quiere empezar a editar." + +#~ msgid "To insert editing points in your file:" +#~ msgstr "Para insertar puntos de edición en su archivo:" + +#~ msgid "Place your cursor at your first desired editing point." +#~ msgstr "Sitúe el cursor en el primer punto de edición que quiera." + +#~ msgid "Press CtrlE." +#~ msgstr "Pulse CtrlE." + +#~ msgid "" +#~ "Move to your next editing point, and press Ctrl " +#~ "E again." +#~ msgstr "" +#~ "Muévase al siguiente punto de edición y pulse CtrlE otra vez." + +#~ msgid "Continue inserting editing points, adding as many as you need." +#~ msgstr "" +#~ "Continúe insertando puntos de edición, añadiendo tantos como necesite." + +#~ msgid "" +#~ "Once you have inserted all of your editing points, you can make your " +#~ "desired edits." +#~ msgstr "" +#~ "Una vez que haya insertado todos los puntos de edición, puede hacer las " +#~ "ediciones que quiera." + +#~ msgid "" +#~ "To remove editing points, press the Esc key. This will remove " +#~ "all of the editing points. Pressing the Esc key again will " +#~ "turn off Multi Edit mode, returning the editor back to its normal state." +#~ msgstr "" +#~ "Para quitar puntos de edición, pulse la tecla Esc. Esto " +#~ "quitará todos los puntos de edición. Si pulsa la tecla Esc " +#~ "otra vez, desactivará el modo de edición múltiple, devolviendo el editor " +#~ "a su estado normal." + +#~ msgid "Save and restore your working sessions" +#~ msgstr "Guardar y restaurar sus sesiones de trabajo" + +#~ msgid "Session Saver" +#~ msgstr "Guardador de sesiones" + +#~ msgid "" +#~ "The Session Saver plugin saves groups of files together so " +#~ "that you can open them together at a later time. To enable the plugin, " +#~ "select gedit PreferencesPlugins Session Saver." +#~ msgstr "" +#~ "El complemento Guardador de sesiones guarda grupos de archivos " +#~ "juntos, por lo que que puede puede abrirlos juntos más tarde. Para " +#~ "activar este complemento, seleccione gedit PreferenciasComplementos " +#~ "Guardador de sesiones." + +#~ msgid "To save a new session:" +#~ msgstr "Para guardar una sesión nueva:" + +#~ msgid "" +#~ "Select FileSaved SessionsSave current " +#~ "session." +#~ msgstr "" +#~ "Seleccione ArchivoSesiones guardadasGuardar sesión actual." + +#~ msgid "Type a session name in the Save session dialog box." +#~ msgstr "" +#~ "Escriba un nombre para la sesión en el cuadro de diálogo Guardar " +#~ "sesión." + +#~ msgid "Click Save." +#~ msgstr "Pulse Guardar." + +#~ msgid "To open an existing session:" +#~ msgstr "Para abrir una sesión existente:" + +#~ msgid "Select FileSaved Sessions." +#~ msgstr "" +#~ "Seleccione ArchivoSesiones guardadas." + +#~ msgid "Click the name of your desired session." +#~ msgstr "Pulse en el nombre de la sesión que quiere." + +#~ msgid "To delete an existing session:" +#~ msgstr "Para eliminar una sesión existente:" + +#~ msgid "" +#~ "Select FileSaved Sessions Manage saved " +#~ "sessions." +#~ msgstr "" +#~ "Seleccione ArchivoSesiones guardadasGestionar sesiones guardadas." + +#~ msgid "Select the name of the session that you want to delete." +#~ msgstr "Seleccione el nombre de la sesión que quiere eliminar." + +#~ msgid "Click Delete." +#~ msgstr "Pulse Eliminar." + +#~ msgid "" +#~ "The session name will still be listed in your list of sessions until you " +#~ "close gedit." +#~ msgstr "" +#~ "El nombre de la sesión aparecerá en su lista de sesiones hasta que cierre " +#~ "gedit." + +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane3.png' " +#~ "md5='4b800d370193ac0ed8db9eb33b86e11c'" +#~ msgstr "" +#~ "external ref='figures/gedit-side-pane3.png' " +#~ "md5='4b800d370193ac0ed8db9eb33b86e11c'" + +#~ msgid "" +#~ "Automatically insert tags, strings and special characters into a document" +#~ msgstr "" +#~ "Insertar automáticamente etiquetas, cadenas y caracteres especiales en un " +#~ "documento" + +#~ msgid "Tag list" +#~ msgstr "Lista de etiquetas" + +#~ msgid "" +#~ "The Tag List plugin allows you to insert common tags and " +#~ "special characters from a list in the side pane. By default, the plugin " +#~ "can insert tags and special characters for HTML, XHTML, XSLT, XUL and LaTeX." +#~ msgstr "" +#~ "El complemento Lista de etiquetas le permite insertar " +#~ "etiquetas comunes y caracteres especiales de una lista en el panel " +#~ "lateral. De forma predeterminada el complemento puede insertar etiquetas " +#~ "y caracteres especiales para HTML, XHTML, XSLT, XUL y LaTeX." + +#~ msgid "Enable Tag List Plugin" +#~ msgstr "Activar el complemento Lista de etiquetas" + +#~ msgid "To enable the Tag List plugin:" +#~ msgstr "Para activar el complemento de Lista de etiquetas:" + +#~ msgid "Select Tag List to enable the plugin." +#~ msgstr "" +#~ "Seleccione Lista de etiquetas para activar " +#~ "el complemento." + +#~ msgid "" +#~ "Access the tag list by selecting View " +#~ "Side Pane, or by pressing F9." +#~ msgstr "" +#~ "Acceda a la lista de tareas seleccionando Ver Panel lateral, o " +#~ "pulsando F9." + +#~ msgid "" +#~ "The side pane will initially show a list of open documents, so to view " +#~ "and use the Tag List, you will need to click on the tab " +#~ "showing the \"plus\" icon at the bottom of the side pane. The icon will " +#~ "look similar to this:" +#~ msgstr "" +#~ "El panel lateral mostrará inicialmente una lista de documentos abiertos, " +#~ "por lo que para ver y usar la Lista de etiquetas, deberá " +#~ "pulsar en la pestaña que muestra el icono «más» en la parte inferior del " +#~ "panel lateral. El icono se parece a esto:" + +#~ msgid "Inserting Tags and Special Characters" +#~ msgstr "Insertar etiquetas y caracteres especiales" + +#~ msgid "" +#~ "The tag list uses a drop-down menu to let you choose from the " +#~ "different types of tags. For example, one tag option is HTML - Tags." +#~ msgstr "" +#~ "La Lista de etiquetas usa un menú desplegable para permitirle " +#~ "elegir de entre diferentes tipos de etiquetas. Por ejemplo, una opción es " +#~ "HTML: etiquetas." + +#~ msgid "To start inserting tags, complete the following:" +#~ msgstr "Para insertar etiquetas, complete lo siguiente:" + +#~ msgid "" +#~ "Move the cursor to where you will want to insert the tag or special " +#~ "character." +#~ msgstr "" +#~ "Mueva el cursor a donde quiera insertar la etiqueta o el carácter " +#~ "especial." + +#~ msgid "" +#~ "Select the desired tag type from the drop-down menu at the top of the " +#~ "side pane." +#~ msgstr "" +#~ "Seleccione la etiqueta que quiere en el menú desplegable en la parte " +#~ "inferior del panel lateral." + +#~ msgid "Scroll through the list to find the desired tag or character." +#~ msgstr "" +#~ "Desplácese en la lista hasta encontrar la etiqueta o el carácter que " +#~ "quiere." + +#~ msgid "Double-click on the tag in the tag list." +#~ msgstr "Doble pulsación en la etiqueta en la lista de etiquetas." + +#~ msgid "" +#~ "The tag or special character you have chosen will then be displayed in " +#~ "your document." +#~ msgstr "" +#~ "La etiqueta o el carácter especial que ha elegido se mostrará en su " +#~ "documento." + +#~ msgid "Tag List Tips" +#~ msgstr "Consejos de la Lista de etiquetas" + +#~ msgid "" +#~ "You can also insert a tag by pressing Return or " +#~ "ShiftReturn." +#~ msgstr "" +#~ "También puede insertar una etiqueta pulsando Intro o " +#~ "MayúsIntro." + +#~ msgid "" +#~ "Pressing the Return key will insert the tag at the cursor " +#~ "position, and then return focus to the document. Pressing " +#~ "ShiftReturn will insert the tag at " +#~ "the cursor position, but will keep the focus on the tag-list." +#~ msgstr "" +#~ "Pulsando la tecla Intro se insertará la etiqueta en la " +#~ "posición del cursor y se devolverá el foco al documento. Pulsando " +#~ "MayúsIntro la etiqueta se " +#~ "insertará en la posición del cursor, pero se mantendrá el foco en la " +#~ "Lista de etiquetas." + +#~ msgid "" +#~ "You can see a preview of what text will be inserted for each tag and " +#~ "special character by clicking on the word the Preview at the " +#~ "bottom of the side pane." +#~ msgstr "" +#~ "Puede ver una vista previa de qué texto se insertará por cada etiqueta y " +#~ "cada carácter especial pulsando en la palabra la Vista previa " +#~ "en la parte inferior del panel lateral." + +#~ msgid "Add a terminal console to the bottom pane" +#~ msgstr "Añadir una consola de terminal al panel inferior" + +#~ msgid "Embedded terminal" +#~ msgstr "Terminal empotrada" + +#~ msgid "" +#~ "gedit makes it possible to include an embedded version of " +#~ "GNOME Terminal, the GNOME command-line application, in the " +#~ "bottom pane of the gedit window. This will let you run " +#~ "scripts, install needed software, or test your program without leaving " +#~ "gedit." +#~ msgstr "" +#~ "gedit hace que sea posible incluir una versión empotrada de la " +#~ "Terminal de GNOME, la aplicación de línea de comandos de " +#~ "GNOME, en el panel inferior de la ventana de gedit. Esto le " +#~ "permite ejecutar scripts, instalar software necesario o probar su " +#~ "programa sin salir de gedit." + +#~ msgid "Enable Embedded Terminal" +#~ msgstr "Activar la terminal empotrada" + +#~ msgid "To enable the Embedded Terminal plugin:" +#~ msgstr "Para activar el complemento de Terminal empotrada:" + +#~ msgid "" +#~ "Select Embedded Terminal to enable the " +#~ "plugin." +#~ msgstr "" +#~ "Seleccione Terminal empotrada para activar " +#~ "el complemento." + +#~ msgid "Using Embedded Terminal" +#~ msgstr "Usar la terminal empotrada" + +#~ msgid "" +#~ "Once you have enabled the plugin, to add a terminal to the bottom pane:" +#~ msgstr "" +#~ "Una vez activado el complemento, para añadir una terminal al panel " +#~ "inferior:" + +#~ msgid "" +#~ "Select View Bottom Pane. Alternatively, you can press " +#~ "CtrlF9." +#~ msgstr "" +#~ "Seleccione Ver Panel inferior. Alternativamente, puede pulsar " +#~ "CtrlF9." + +#~ msgid "Increase or decrease text size" +#~ msgstr "Aumentar o disminuir el tamaño del texto" + +#~ msgid "Text Size" +#~ msgstr "Tamaño del texto" + +#~ msgid "" +#~ "The text size plugin allows you to temporarily change the text size for " +#~ "better readibility in gedit without changing the program's " +#~ "default text size." +#~ msgstr "" +#~ "El complemento de tamaño del texto le permite cambiar temporalmente el " +#~ "tamaño del texto en gedit sin cambiar el tamaño del texto " +#~ "predeterminado del programa." + +#~ msgid "Enable Text Size Plugin" +#~ msgstr "Activar el complemento Tamaño del texto" + +#~ msgid "Use Text Size Plugin" +#~ msgstr "Usar el complemento Tamaño del texto" + +#~ msgid "" +#~ "Once you have enabled the plugin, do any of the following to change the " +#~ "text size in gedit:" +#~ msgstr "" +#~ "Una vez activado el complemento, realice cualquiera de estas acciones " +#~ "para cambiar el texto en gedit:" + +#~ msgid "" +#~ "To increase the text size, press Ctrl+." +#~ msgstr "" +#~ "Para aumentar el tamaño del texto, pulse Ctrl " +#~ "+." + +#~ msgid "" +#~ "To decrease the text size, press Ctrl-." +#~ msgstr "" +#~ "Para disminuir el tamaño del texto, pulse Ctrl -." + +#~ msgid "" +#~ "To reset the text size to the default size, press " +#~ "Ctrl0." +#~ msgstr "" +#~ "Para restablecer el tamaño del texto a su tamaño predeterminado, " +#~ "seleccione Ctrl0." + +#~ msgid "Autocomplete words or portions of code as you type" +#~ msgstr "Autocompletar palabras o recortes de código según escribe" + +#~ msgid "Word completion" +#~ msgstr "Completado de palabras" + +#~ msgid "" +#~ "The Word Completion plugin can speed up your editing by " +#~ "suggesting completions of words as you type. To enable the plugin:" +#~ msgstr "" +#~ "El complemento Completado de palabras puede acelerar la " +#~ "edición sugiriéndole completados de palabras a medida que escribe. Para " +#~ "activar este complemento:" + +#~ msgid "" +#~ "Select Edit Preferences Plugins." +#~ msgstr "" +#~ "Seleccione Editar Preferencias Complementos." + +#~ msgid "" +#~ "Select Word Completion to enable the plugin." +#~ msgstr "" +#~ "Seleccione Completado de palabras para " +#~ "activar el complemento." + +#~ msgid "" +#~ "While editing, the Word Completion plugin will automatically " +#~ "display a pop-up list of words that begin with the letters you have " +#~ "already typed. Word suggestions are based upon words that appear " +#~ "elsewhere in your document and upon pre-defined keywords if your document " +#~ "is of a recognised format." +#~ msgstr "" +#~ "Mientras edita, el complemento de Completado de palabras " +#~ "mostrará automáticamente una lista emergente de palabras que comiencen " +#~ "por las letras que ya haya escrito. Las sugerencias de palabras se basan " +#~ "en palabras que aparecen en cualquier parte del documento y en palabras " +#~ "calve predefinidas si su documento tiene un formato reconocido." + +#~ msgid "" +#~ "To insert a suggested word, double-click on it in the pop-up list or " +#~ "press AltNum, where Num " +#~ "is the number displayed next to your desired word." +#~ msgstr "" +#~ "Para insertar una palabra sugerida, pulse dos veces en la lista emergente " +#~ "o pulse AltNum, donde Num es el número mostrado junto a la palabra que quiere." + +#~ msgid "Once you've enabled it, here is how to use the plugin:" +#~ msgstr "" +#~ "Una vez que lo haya activado, aquí se explica cómo usar el complemento:" + +#~ msgid "" +#~ "The Quick Open plugin will only display files that you have " +#~ "previously opened." +#~ msgstr "" +#~ "El complemento de Apertura rápida sólo mostrará los archivos " +#~ "que haya abierto previamente." + +#~| msgid "" +#~| "Select gedit Preferences Font & Colors." +#~ msgid "" +#~ "Select Manage " +#~ "Snippets.." +#~ msgstr "" +#~ "Seleccione Gestionar recortes.." + +#~ msgid "" +#~ "To enable the Snippets plugin, select gedit PreferencesPluginsSnippets." +#~ msgstr "" +#~ "Para activar el complemento Recortes seleccione gedit PreferenciasComplementos Recortes." + +#~ msgid "Using, Modifying and creating snippets" +#~ msgstr "Usar, modificar y crear recortes" + +#~ msgid "Inserting snippets of text into your files" +#~ msgstr "Insertar recortes de texto en sus archivos" + +#~ msgid "The following points will help you get started with using snippets:" +#~ msgstr "Los puntos siguientes le ayudarán a empezar a usar los recortes:" + +#~ msgid "Make sure the syntax is set appropriately." +#~ msgstr "Asegúrese de que la sintaxis está configurada correctamente." + +#~ msgid "Review the default snippets." +#~ msgstr "Revisar los recortes predeterminados." + +#~ msgid "" +#~ "Select ToolsManage Snippets. " +#~ "Review the snippets that are available for your language or syntax. Find " +#~ "some basic snippets that you think might be useful for you." +#~ msgstr "" +#~ "Seleccione HerramientasGestionar recortes. Revise los recortes disponibles para su lenguaje o sintaxis. " +#~ "Busque algunos recortes básicos que crea que pueden serle útiles." + +#~ msgid "Try using some of the snippets." +#~ msgstr "Pruebe a usar algunos de los recortes." + +#~ msgid "" +#~ "To enable the Sort plugin, select gedit PreferencesPluginsSort." +#~ msgstr "" +#~ "Para activar el complemento Ordenar seleccione gedit PreferenciasComplementosOrdenar." + +#~ msgid "" +#~ "After you have enabled the Sort plugin, use it by selecting " +#~ "the lines of text you want to sort, and then clicking geditSort." +#~ msgstr "" +#~ "Después de que haya activado el complemento Ordenar, úselo " +#~ "seleccionando las líneas de texto que quiere ordenar, y pulse " +#~ "geditOrdenar." + +#~ msgid "" +#~ "To use the Tag List plugin, you will need to enable the " +#~ "plugin, and then activate the tag-list portion of the side pane." +#~ msgstr "" +#~ "Para usar el complemento Lista de etiquetas deberá activar el " +#~ "complemento y después activar la parte de la lista de etiquetas en el " +#~ "panel lateral." + +#~ msgid "" +#~ "You can activate the plugin by selecting gedit PreferencesPluginsTag List. Once you have activated the plugin, " +#~ "access it by selecting ViewSide Pane, or by pressing F9." +#~ msgstr "" +#~ "Puede activar el complemento seleccionando geditPreferencias " +#~ "ComplementosLista de etiquetas. Una vez " +#~ "que lo haya activado, acceda a él seleccionando VerPanel lateral, o pulsando F9." + +#~ msgid "" +#~ "To enable this plugin, select gedit " +#~ "PreferencesPlugins Embedded " +#~ "Terminal." +#~ msgstr "" +#~ "Para activar este complemento, seleccione gedit PreferenciasComplementos Terminal empotrada." + +#~ msgid "" +#~ "Once you have enabled the plugin, add the terminal to the bottom pane by " +#~ "selecting ViewBottom Pane, or just " +#~ "press CtrlF9." +#~ msgstr "" +#~ "Una vez que haya activado el complemento, añada la terminal al panel " +#~ "inferior seleccionando VerPanel inferior, o simplemente pulse CtrlF9." + +#~ msgctxt "_" +#~ msgid "external ref='reverse-collate.png' md5='__failed__'" +#~ msgstr "external ref='reverse-collate.png' md5='__failed__'" + +#~ msgid "To reverse the order:" +#~ msgstr "Para invertir el orden:" + +#~ msgid "" +#~ "In the General tab of the Print window under Copies, " +#~ "check Reverse. The last page will be printed first, and so on." +#~ msgstr "" +#~ "En la pestaña General de la ventana de impresión, en " +#~ "Copias, seleccione Invertir. La última página se " +#~ "imprimirá primero, y así sucesivamente." + +#~ msgid "Printing output to a file" +#~ msgstr "Imprimir la salida en un archivo" + +#~ msgid "" +#~ "You can also use gedit to print to a file. To do so, select " +#~ "FilePrintPrint to File." +#~ msgstr "" +#~ "También puede usar gedit para imprimir a un archivo. Para " +#~ "hacerlo, seleccione ArchivoImprimirImprimir a un archivo." + +#~ msgctxt "_" +#~ msgid "external ref='print-select.png' md5='__failed__'" +#~ msgstr "external ref='print-select.png' md5='__failed__'" + +#~ msgid "To only print certain pages from the document:" +#~ msgstr "Para imprimir solo ciertas páginas del documento:" + +#~ msgid "Click File Print..." +#~ msgstr "Pulse Archivo Imprimir..." + +#~ msgid "" +#~ "For example, if you enter \"1,3,5-7,9\" in the Pages textbox, " +#~ "pages 1, 3, 5, 6, 7 and 9 will be printed." +#~ msgstr "" +#~ "Por ejemplo, si escribe «1,3,5-7,9» en la caja de texto Páginas,se imprimirán las páginas 1,3,5,6,7 y 9." + +#~ msgid "Ctrl + Alt + PageUp" +#~ msgstr "Ctrl + Alt + Re Pág" + +#~ msgid "Ctrl + Alt + PageDown" +#~ msgstr "Ctrl + Alt + Av Pág" + +#~ msgid "Ctrl + W" +#~ msgstr "Ctrl + W" + +#~ msgid "Ctrl + Shift + L" +#~ msgstr "Ctrl + Mayús. + L" + +#~ msgid "Ctrl + Shift + W" +#~ msgstr "Ctrl + Mayús. + W" + +#~ msgid "Alt + n" +#~ msgstr "Alt + n" + +#~ msgid "Ctrl + N" +#~ msgstr "Ctrl + N" + +#~ msgid "Ctrl + O" +#~ msgstr "Ctrl + O" + +#~ msgid "Ctrl + S" +#~ msgstr "Ctrl + S" + +#~ msgid "Ctrl + Shift + S" +#~ msgstr "Ctrl + Mayús. + S" + +#~ msgid "Ctrl + P" +#~ msgstr "Ctrl + P" + +#~ msgid "Ctrl + Shift + P" +#~ msgstr "Ctrl + Mayús. + P" + +#~ msgid "Ctrl + Q" +#~ msgstr "Ctrl + Q" + +#~ msgid "Ctrl + Z" +#~ msgstr "Ctrl + Z" + +#~ msgid "Ctrl + Shift + Z" +#~ msgstr "Ctrl + Mayús. + Z" + +#~ msgid "Ctrl + X" +#~ msgstr "Ctrl + X" + +#~ msgid "Ctrl + C" +#~ msgstr "Ctrl + C" + +#~ msgid "Ctrl + V" +#~ msgstr "Ctrl + V" + +#~ msgid "Ctrl + A" +#~ msgstr "Ctrl + A" + +#~ msgid "Ctrl + D" +#~ msgstr "Ctrl + D" + +#~ msgid "Alt + Up Arrow" +#~ msgstr "Alt + flecha arriba" + +#~ msgid "Alt + Down Arrow" +#~ msgstr "Alt + flecha abajo" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Ctrl + F9" +#~ msgstr "Ctrl + F9" + +#~ msgid "Ctrl + F" +#~ msgstr "Ctrl + F" + +#~ msgid "Ctrl + G" +#~ msgstr "Ctrl + G" + +#~ msgid "Ctrl + Shift + G" +#~ msgstr "Ctrl + Mayús. + G" + +#~ msgid "Ctrl + H" +#~ msgstr "Ctrl + H" + +#~ msgid "Ctrl + Shift + K" +#~ msgstr "Ctrl + Mayús. + K" + +#~ msgid "Ctrl + I" +#~ msgstr "Ctrl + I" + +#~ msgid "Shift + F7" +#~ msgstr "Mayús. + F7" + +#~ msgid "Alt + F12" +#~ msgstr "Alt + F12" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Ctrl + Shift + D" +#~ msgstr "Ctrl + Mayús. + D" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "To enable the plugin, select gedit PreferencesPlugins Spell " +#~ "Checker." +#~ msgstr "" +#~ "Para activar el complemento seleccione gedit PreferenciasComplementosCorrector " +#~ "ortográfico." + +#~ msgid "" +#~ "gedit will only check your document's spelling when you choose " +#~ "ToolsCheck Spelling. To have " +#~ "gedit automatically check your spelling, select " +#~ "ToolsHighlight Misspelled Words." +#~ msgstr "" +#~ "gedit sólo comprobará la ortografía del documento cuando elija " +#~ "HerramientasComprobar ortografía. " +#~ "Para hacer que gedit compruebe la ortografía automáticamente, " +#~ "seleccione Herramientas Resaltar palabras mal " +#~ "escritas." + +#~ msgid "Click and hold the mouse button on the tab" +#~ msgstr "Pulse y mantenga pulsado el botón del ratón en la pestaña" + +#~ msgid "Release the mouse button" +#~ msgstr "Suelte el botón del ratón" + +#~ msgid "" +#~ "Select EditPreferencesFont & " +#~ "Colors." +#~ msgstr "" +#~ "Seleccione EditarPreferenciasTipografía y colores." + +#~ msgid "" +#~ "Using the spell-check feature in gedit requires that you first " +#~ "enable the spell-check plugin. To enable the plugin, select " +#~ "Edit PreferencesPluginsSpell Checker ." +#~ msgstr "" +#~ "Usar la característica de comprobación de ortografía en gedit " +#~ "requiere que primero active el complemento del corrector ortográfico. " +#~ "Para activar este complemento, seleccione EditarPreferenciasComplementosCorrector " +#~ "ortográfico." + +#~ msgid "" +#~ "Select ToolsAutocheck Spelling to " +#~ "make gedit highlight spelling errors while you type." +#~ msgstr "" +#~ "Seleccione HerramientasComprobar ortografía... para que gedit resalte errores ortográficos al " +#~ "escribir." + +#~ msgid "" +#~ "Select EditPreferencesFont & " +#~ "Colors." +#~ msgstr "" +#~ "Seleccione EditarPreferenciasTipografía y colores." + +#~ msgid "" +#~ "If the color that you want to select is currently on your screen, click " +#~ "on the icon that looks like an eyedropper." +#~ msgstr "" +#~ "Si el color que quiere seleccionar está actualmente en su pantalla, pulse " +#~ "en el icono que parece un cuentagotas." + +#~ msgid "" +#~ "Your mouse pointer will change appearance, and will look like an " +#~ "eyedropper." +#~ msgstr "" +#~ "El puntero de su ratón cambiará su apariencia, y se parecerá a un " +#~ "cuentagotas." + +#~ msgid "" +#~ "Use the eyedropper and click on the portion of your screen that contains " +#~ "the color you want to use. The color code for that color will appear in " +#~ "the color picker window." +#~ msgstr "" +#~ "Use el cuenta gotas y pulse en una parte de su pantalla que contenga el " +#~ "color que quiere usar. El código del color aparecerá en la ventana del " +#~ "selector de color." + +#~ msgid "To drag a tab into a new window:" +#~ msgstr "Arrastrar una pestaña a una ventana nueva:" + +#~ msgid "" +#~ "We all make mistakes. Even gedit users make mistakes. " +#~ "Fortunately, gedit can help you recover from mistakes. To undo " +#~ "an action in gedit, press CtrlZ, or click EditUndo." +#~ msgstr "" +#~ "Todos cometemos errores. Incluso los usuarios de gedit los " +#~ "cometen. Afortunadamente gedit puede ayudarle a solucionar " +#~ "errores. Para deshacer una acción en gedit pulse " +#~ "CtrlZ o pulse EditarDeshacer." + +#~ msgid "" +#~ "gedit will undo one action every time you press " +#~ "CtrlZ or select EditUndo." +#~ msgstr "" +#~ "geditdeshará una acción cada vez que pulse CtrlZ o seleccione EditarDeshacer." + +#~ msgid "Drag the tab out of the space it occupies" +#~ msgstr "Arrastre la pestaña fuera del espacio que ocupa" + +#~ msgid "" +#~ "It's difficult to drag a tab into a new window when either the old or new " +#~ "window is maximized. For best results, un-maximize the windows before " +#~ "dragging the tab." +#~ msgstr "" +#~ "Es difícil arrastrar una pestaña en una ventana nueva cuando la ventana " +#~ "nueva o la vieja están maximizadas. Para obtener el mejor resultado, " +#~ "desmaximice las ventanas antes de arrastrar la pestaña." + +#~ msgid "jwcampbell@gmail.com" +#~ msgstr "jwcampbell@gmail.com" + +#~ msgid "dneelyep@gmail.com" +#~ msgstr "dneelyep@gmail.com" + +#~ msgid "@@image: 'print-select.png'; md5=THIS FILE DOESN'T EXIST" +#~ msgstr "@@image: 'print-select.png'; md5=THIS FILE DOESN'T EXIST" + +#~| msgid "jwcampbell@gmail.com" +#~ msgid "philbull@gmail.com" +#~ msgstr "philbull@gmail.com" + +#~ msgid "@@image: 'reverse-collate.png'; md5=THIS FILE DOESN'T EXIST" +#~ msgstr "@@image: 'reverse-collate.png'; md5=THIS FILE DOESN'T EXIST" + +#~ msgid "File" +#~ msgstr "Archivo" + +#~| msgid "Printer" +#~ msgid "Print" +#~ msgstr "Imprimir" + +#~ msgid "ch3pjw@bath.ac.uk" +#~ msgstr "ch3pjw@bath.ac.uk" + +#~ msgid "" +#~ "This assumes the reader knows how to use gedit in general. By the end of " +#~ "this page, the reader will be able to use the character map plugin to " +#~ "insert characters into their documents." +#~ msgstr "" +#~ "Esto asume que el lector conoce cómo usar gedit a nivel general. Al final " +#~ "de esta página, el lector podrá usar el complemento de mapa de caracteres " +#~ "para insertar caracteres en sus documentos." + +#~ msgid "Do more with gedit by using gedit plugins." +#~ msgstr "Hacer más con gedit usando los complementos de gedit." + +#~ msgid "" +#~ "To enable the commander plugin, select Edit " +#~ "PreferencesPluginsCommander." +#~ msgstr "" +#~ "Para activar el complemento de comandos, seleccione Editar PreferenciasComplementosComando." + +#~ msgid "First step..." +#~ msgstr "Primer paso..." + +#~ msgid "Second step..." +#~ msgstr "Segundo paso..." + +#~ msgid "Third step..." +#~ msgstr "Tercer paso..." + +#~ msgid "" +#~ "Some gedit plugins need to be manually installed. Here is how to install " +#~ "them." +#~ msgstr "" +#~ "Algunos complementos de gedit pueden necesitar instalación manual. Aquí " +#~ "se explica cómo instalarlos." + +#~ msgid "Obtain" +#~ msgstr "Obtenerlo" + +#~ msgid "" +#~ "The first step to install a plugin in gedit is to obtain the " +#~ "plugin. Third-party plugins will often be obtained by downloading them " +#~ "from the plugin's web site. Refer to the plugin's documentation for " +#~ "further information on obtaining the plugin - instructions will vary " +#~ "depending on the plugin." +#~ msgstr "" +#~ "El primer paso para instalar un complemento en gedit es " +#~ "obtenerlo. Los complementos de terceras partes a menudo se obtendrán " +#~ "desde la página web del complemento. Consulte la documentación del " +#~ "complemento para obtener información sobe cómo obtenerlo; las " +#~ "instrucciones pueden variar dependiendo del complemento." + +#~ msgid "Install" +#~ msgstr "Instalar" + +#~ msgid "Installing a Plugin" +#~ msgstr "Instalar un complemento" + +#~ msgid "Locate the plugin files to be installed." +#~ msgstr "Localice los archivos del complemento que instalar." + +#~ msgid "Install the plugin files:" +#~ msgstr "Instalar los archivos del complemento:" + +#~ msgid "Coming soon!" +#~ msgstr "Muy pronto" + +#~ msgid "" +#~ "This assumes the reader knows how to use gedit in general. By the end of " +#~ "this page the reader will be able to use the word completion plugin " +#~ "whilst editing text documents or code." +#~ msgstr "" +#~ "Esto asume que el lector conoce cómo usar gedit a nivel general. Al final " +#~ "de esta página, el lector podrá usar el complemento de completado de " +#~ "palabras mientras edita documentos de texto o código." + +#~ msgid "To close the search window, press Esc." +#~ msgstr "" +#~ "Para cerrar la ventana de búsqueda, pulse Esc." + +#~ msgid "Install Additional gedit Plugins" +#~ msgstr "Instalar complementos adicionales de gedit" + +#~ msgid "" +#~ "Use the up or down facing arrows next to the " +#~ "search window (or CtrlG " +#~ "or CtrlShiftG) to " +#~ "scroll up or down through the highlighted text." +#~ msgstr "" +#~ "Use las flechas arriba o abajo junto a la " +#~ "ventana de búsqueda (o CtrlG o CtrlMayúsG) " +#~ "para desplazarse arriba o abajo a través del texto resaltado." + +#~ msgid "" +#~ "Be careful. If you make a mistake outside of gedit (e.g., If " +#~ "you say something mean to your friend) gedit will not be able " +#~ "to help you undo that mistake." +#~ msgstr "" +#~ "Tenga cuidado. Si comete errores fuera de gedit (ej.: si le " +#~ "dice algo ofensivo a un amigo) gedit no podrá ayudarle a " +#~ "deshacer ese error." + +#~ msgid "" +#~ "To view the contents of a specific tab, click the tab itself. The " +#~ "contents of the file will be displayed below the currently open tabs. " +#~ "Clicking the X on the side of the tab will " +#~ "close that file." +#~ msgstr "" +#~ "Para ver el contenido de una pestaña específica, pulse sobre la pestaña " +#~ "en si. Se mostrará el contenido del archivo debajo de las pestañas. " +#~ "Pulsar en la X en el lateral de la pestaña." +#~ "cerrará el archivo." + +#~ msgid "" +#~ "There are several different ways to organize your tabs in gedit." +#~ msgstr "" +#~ "Existen diferentes maneras de organizar sus pestañas en gedit." + +#~ msgid "" +#~ "The following section provides options that can help you replace text " +#~ "more efficiently with gedit." +#~ msgstr "" +#~ "La siguiente selección proporciona opciones que le pueden ayudar a " +#~ "reemplazar texto, de forma más efectiva, con gedit." + +#~ msgid "Find/Replace options" +#~ msgstr "Opciones de buscar/reemplazar" + +#~ msgid "*Insert often used pieces of text in a fast way." +#~ msgstr "* Insertar de forma rápida trozos de texto comúnmente usados." + +#~ msgid "*Quickly open files." +#~ msgstr "* Abrir archivos rápidamente." + +#~ msgid "Check for updates to gedit (Windows and Mac OS X only)" +#~ msgstr "" +#~ "Comprobar si hay actualizaciones de gedit (sólo en Windows y en Mac OS X)" + +#~ msgid "Open a recently-used file" +#~ msgstr "Abrir un archivo usado recientemente" + +#~ msgid "" +#~ "Saving to FTP servers can be enabled with Configuration Editor, setting " +#~ "the key /apps/gedit-2/preferences/editor/save/writable_vfs_schemes, but " +#~ "this may cause errors." +#~ msgstr "" +#~ "Guardar a servidores FTP se puede actiar con el Editor de configuración, " +#~ "estableciendo la clave «/apps/gedit-2/preferences/editor/save/" +#~ "writable_vfs_schemes», pero puede causar errores." + +#~ msgid "*Spell checker" +#~ msgstr "* Corrector ortográfico" + +#~ msgid "" +#~ "." +#~ msgstr "" +#~ "." + +#~ msgid "" +#~ ".
" +#~ msgstr "" +#~ ".
" + +#~ msgid "Execute external commands and shell scripts." +#~ msgstr "Ejecutar comandos externos y «shell scripts»." + +#~ msgid "Create your own gedit Plugins" +#~ msgstr "Crear sus propios complementos de gedit" + +#~ msgid "Find and replace text" +#~ msgstr "Buscar y reemplazar texto" + +#~ msgid "Find text" +#~ msgstr "Buscar texto" + +#~ msgid "Replace the text:" +#~ msgstr "Reemplazar el texto:" + +#~ msgid "Incremental Search" +#~ msgstr "Búsqueda incremental " + +#~ msgid "Find Next/Find Previous" +#~ msgstr "Buscar siguiente/Buscar anterior" + +#~ msgid "Clear Highlight" +#~ msgstr "Limpiar el resaltado" + +#~ msgid "?" +#~ msgstr "?" + +#~ msgid "To open a file from a server, perform the following steps:" +#~ msgstr "Para abrir un archivo desde un servidor, realice estos pasos:" + +#~ msgid "The GNOME Documentation Project" +#~ msgstr "El Proyecto de documentación de GNOME" + +#~ msgid "" +#~ "*A file browser plugin allowing to easily access your file system " +#~ "(includes remote mounts, creating new files/directories, monitor " +#~ "directories for changes, etc.)" +#~ msgstr "" +#~ "* Un complemento de examinador de archivos que permite acceso fácil a su " +#~ "sistema de archivos (incluye montajes remotos, crear archivos y " +#~ "directorios nuevos, monitorizar cambios en carpetas, etc.)" + +#, fuzzy +#~| msgid "Description" +#~ msgid "Short description" +#~ msgstr "Descripción" + +#, fuzzy +#~| msgid "The currently selected text." +#~ msgid "*Sorts a document or selected text." +#~ msgstr "El texto actualmente seleccionado." + +#~ msgid "" +#~ "Permission is granted to copy, distribute and/or modify this document " +#~ "under the terms of the GNU Free Documentation License (GFDL), Version 1.1 " +#~ "or any later version published by the Free Software Foundation with no " +#~ "Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You " +#~ "can find a copy of the GFDL at this link or in the file COPYING-DOCS distributed with this manual." +#~ msgstr "" +#~ "Se concede permiso para copiar, distribuir o modificar este documento " +#~ "según las condiciones de la GNU Free Documentation License (GFDL), " +#~ "versión 1.1 o cualquier versión posterior publicada por la Free Software " +#~ "Foundation, sin Secciones invariantes, Textos de portada y Textos de " +#~ "contraportada. Encontrará una copia de la GFDL en este enlace o en el archivo COPYING-DOCS " +#~ "distribuido con este manual." + +#~ msgid "" +#~ "This manual is part of a collection of GNOME manuals distributed under " +#~ "the GFDL. If you want to distribute this manual separately from the " +#~ "collection, you can do so by adding a copy of the license to the manual, " +#~ "as described in section 6 of the license." +#~ msgstr "" +#~ "Este manual forma parte de una colección de documentos de GNOME " +#~ "distribuidos según la GFDL. Si desea distribuir este manual de forma " +#~ "independiente de la colección, puede hacerlo agregando una copia de la " +#~ "licencia al documento, según se describe en la sección 6 de la misma." + +#~ msgid "" +#~ "Many of the names used by companies to distinguish their products and " +#~ "services are claimed as trademarks. Where those names appear in any GNOME " +#~ "documentation, and the members of the GNOME Documentation Project are " +#~ "made aware of those trademarks, then the names are in capital letters or " +#~ "initial capital letters." +#~ msgstr "" +#~ "Muchos de los nombres utilizados por las empresas para distinguir sus " +#~ "productos y servicios se consideran marcas comerciales. Cuando estos " +#~ "nombres aparezcan en la documentación de GNOME, y siempre que se haya " +#~ "informado a los miembros del Proyecto de documentación de GNOME de dichas " +#~ "marcas comerciales, los nombres aparecerán en mayúsculas o con las " +#~ "iniciales en mayúsculas." + +#~ msgid "" +#~ "DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +#~ "EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES " +#~ "THAT THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +#~ "MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +#~ "RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +#~ "MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +#~ "MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +#~ "WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +#~ "SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES " +#~ "AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED " +#~ "VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS " +#~ "DISCLAIMER; AND UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER " +#~ "IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, " +#~ "INITIAL WRITER, ANY CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR " +#~ "MODIFIED VERSION OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, " +#~ "BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR " +#~ "CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, " +#~ "DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR " +#~ "MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES ARISING OUT OF OR " +#~ "RELATING TO USE OF THE DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT, " +#~ "EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH " +#~ "DAMAGES." +#~ msgstr "" +#~ "EL DOCUMENTO SE OFRECE «TAL CUAL», SIN GARANTÍA DE NINGÚN TIPO, EXPRESA O " +#~ "IMPLÍCITA, INCLUYENDO, PERO SIN LIMITARSE A ELLA, LA GARANTÍA DE QUE EL " +#~ "DOCUMENTO O LA VERSIÓN MODIFICADA DEL MISMO ESTÉ LIBRE DE DEFECTOS, " +#~ "GARANTÍA DE COMERCIALIZACIÓN, APTITUD PARA UN USO EN PARTICULAR O " +#~ "INCUMPLIMIENTO. TODOS LOS RIESGOS RELATIVOS A LA CALIDAD, EXACTITUD O " +#~ "RENDIMIENTO DEL DOCUMENTO O LA VERSIÓN MODIFICADA DEL MISMO SON ASUMIDOS " +#~ "POR VD. EN CASO DE QUE EL DOCUMENTO O LA VERSIÓN MODIFICADA SEAN " +#~ "DEFECTUOSOS, VD. (NO EL ESCRITOR ORIGINAL NI EL AUTOR NI NINGUNO DE LOS " +#~ "COLABORADORES) ASUMIRÁ EL COSTE DE CUALQUIER MANTENIMIENTO, REPARACIÓN O " +#~ "CORRECCIÓN QUE SEAN NECESARIOS. ESTA RENUNCIA DE GARANTÍA CONSTITUYE UNA " +#~ "PARTE ESENCIAL DE ESTA LICENCIA NO SE AUTORIZA EL USO DE NINGÚN DOCUMENTO " +#~ "NI VERSIÓN MODIFICADA DEL MISMO, SALVO EN LAS CONDICIONES ESPECIFICADAS " +#~ "EN ESTA RENUNCIA; Y BAJO NINGUNA CIRCUNSTANCIA NI SUPUESTO LEGAL, YA SEA " +#~ "POR AGRAVIO (INCLUIDA LA NEGLIGENCIA), CONTRATO U OTROS CASOS, SERÁN " +#~ "RESPONSABLES EL AUTOR, EL ESCRITOR ORIGINAL, CUALQUIERA DE LOS " +#~ "COLABORADORES O DISTRIBUIDORES DEL DOCUMENTO O UNA VERSIÓN MODIFICADA DEL " +#~ "MISMO NI CUALQUIER PROVEEDOR DE TALES PARTES ANTE UN TERCERO, POR " +#~ "CUALQUIER PERJUICIO DIRECTO, INDIRECTO, ESPECIAL, ACCIDENTAL O " +#~ "CONSECUTIVO DE CUALQUIER TIPO, INCLUYENDO SIN LIMITACIÓN LOS DAÑOS POR " +#~ "PÉRDIDA DE CLIENTES, INTERRUPCIONES DEL TRABAJO, FALLO DE SISTEMAS O " +#~ "MALFUNCIONAMIENTO, O CUALQUIER OTRO DAÑO O PÉRDIDA CAUSADA O RELACIONADA " +#~ "CON EL USO DEL DOCUMENTO Y LAS VERSIONES MODIFICADAS DEL MISMO, AUN " +#~ "CUANDO SE HAYA INFORMADO DE LA POSIBILIDAD DE DICHOS DAÑOS." + +#~ msgid "" +#~ "DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE " +#~ "TERMS OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER " +#~ "UNDERSTANDING THAT: " +#~ msgstr "" +#~ "ESTE DOCUMENTO Y LAS VERSIONES MODIFICADAS DEL MISMO SE OFRECEN SEGÚN LAS " +#~ "CONDICIONES ESTABLECIDAS EN LA LICENCIA DE DOCUMENTACIÓN LIBRE DE GNU " +#~ "(GFDL) Y TENIENDO EN CUENTA QUE: " + +#~ msgid "" +#~ "@@image: 'figures/gedit_recent_files_menu_icon.png'; " +#~ "md5=62b4bede31db64226f7e7f9b18f5eb74" +#~ msgstr "@@image: 'figures/_gedit.png'; md5=62b4bede31db64226f7e7f9b18f5eb74" + +#~ msgid "Gedit Manual" +#~ msgstr "Manual de Gedit" + +#~ msgid "2002" +#~ msgstr "2002" + +#~ msgid "2003" +#~ msgstr "2003" + +#~ msgid "2004" +#~ msgstr "2004" + +#~ msgid "Sun Microsystems" +#~ msgstr "Sun Microsystems" + +#~ msgid "2000" +#~ msgstr "2000" + +#~ msgid "Eric Baudais" +#~ msgstr "Eric Baudais" + +#~ msgid "Joachim" +#~ msgstr "Joachim" + +#~ msgid "Noreiko" +#~ msgstr "Noreiko" + +#~ msgid "GNOME" +#~ msgstr "GNOME" + +#~ msgid "Hal" +#~ msgstr "Hal" + +#~ msgid "Canary" +#~ msgstr "Canary" + +#~ msgid "Added the Shortcut Keys Table" +#~ msgstr "Añadida la tabla de teclas rápidas" + +#~ msgid "Sun Java Desktop System Documentation Team" +#~ msgstr "Equipo de documentación de Sun Java Desktop System" + +#~ msgid "gdocteam@sun.com" +#~ msgstr "gdocteam@sun.com" + +#~ msgid "Eric" +#~ msgstr "Eric" + +#~ msgid "Baudais" +#~ msgstr "Baudais" + +#~ msgid "baudais@okstate.edu" +#~ msgstr "baudais@okstate.edu" + +#~ msgid "Baris" +#~ msgstr "Baris" + +#~ msgid "" +#~ "Cicek provided information from earlier revisions of the gedit " +#~ "application." +#~ msgstr "" +#~ "Cicek proporcionó información sobre las revisiones anteriores de la " +#~ "aplicación gedit." + +#~ msgid "Acknowledgements" +#~ msgstr "Reconocimientos" + +#~ msgid "Ajit" +#~ msgstr "Ajit" + +#~ msgid "George provided information about plugins." +#~ msgstr "George ha ofrecido información acerca de los complementos." + +#~ msgid "gedit V1.0" +#~ msgstr "gedit V1.0" + +#~ msgid "Eric Baudais baudais@okstate.edu" +#~ msgstr "Eric Baudais baudais@okstate.edu" + +#~ msgid "gedit Manual V2.0" +#~ msgstr "Manual de gedit V2.0" + +#~ msgid "March 2002" +#~ msgstr "Marzo 2002" + +#~ msgid "Sun GNOME Documentation Team" +#~ msgstr "Equipo de documentación de Sun GNOME" + +#~ msgid "gedit Manual V2.1" +#~ msgstr "Manual de gedit V2.1" + +#~ msgid "June 2002" +#~ msgstr "Junio 2002" + +#~ msgid "gedit Manual V2.2" +#~ msgstr "Manual de gedit V2.2" + +#~ msgid "August 2002" +#~ msgstr "Agosto 2002" + +#~ msgid "gedit Manual V2.3" +#~ msgstr "Manual de gedit V2.3" + +#~ msgid "September 2002" +#~ msgstr "Septiembre 2002" + +#~ msgid "gedit Manual V2.4" +#~ msgstr "Manual de gedit V2.4" + +#~ msgid "January 2003" +#~ msgstr "Enero 2003" + +#~ msgid "gedit Manual V2.5" +#~ msgstr "Manual de gedit V2.5" + +#~ msgid "March 2003" +#~ msgstr "Marzo 2003" + +#~ msgid "gedit Manual V2.6" +#~ msgstr "Manual de gedit V2.6" + +#~ msgid "September 2003" +#~ msgstr "Septiembre 2003" + +#~ msgid "gedit Manual V2.7" +#~ msgstr "Manual de gedit V2.7" + +#~ msgid "March 2004" +#~ msgstr "Marzo 2004" + +#~ msgid "gedit Manual V2.8" +#~ msgstr "Manual de gedit V2.8" + +#~ msgid "July 2006" +#~ msgstr "Junio de 2006" + +#~ msgid "gedit Manual V2.9" +#~ msgstr "Manual de gedit V2.9" + +#~ msgid "GNOME Documentation Team" +#~ msgstr "Equipo de documentación de GNOME" + +#~ msgid "This manual describes version 2.16 of gedit." +#~ msgstr "Este manual describe la versión 2.16 de gedit." + +#~ msgid "Feedback" +#~ msgstr "Comentarios" + +#~ msgid "" +#~ "To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the " +#~ "GNOME " +#~ "Feedback Page." +#~ msgstr "" +#~ "Para informar de un error o hacer alguna sugerencia sobre la aplicación " +#~ "gedit o el presente manual, siga las " +#~ "instrucciones que aparecen en la Página de comentarios de GNOME." + +#~ msgid "" +#~ "gedit is a text editor for the GNOME Desktop featuring basic yet robust " +#~ "capabilities such as printing, spell checking, find and replace, and " +#~ "syntax highlighting. More advanced features are available as plugins." +#~ msgstr "" +#~ "gedit es un editor de textos para el Escritorio GNOME con características " +#~ "básicas pero robustas, tales como impresión, corrección ortográfica, " +#~ "busqueda y reemplazo y resaltado de sintaxis. Existen características más " +#~ "avanzadas como complementos." + +#~ msgid "Introduction" +#~ msgstr "Introducción" + +#~ msgid "" +#~ "The gedit application enables you to create " +#~ "and edit text files." +#~ msgstr "" +#~ "La aplicación gedit le permite crear y editar " +#~ "archivos de texto." + +#~ msgid "" +#~ "The aim of gedit is to be a simple and easy to " +#~ "use text editor. More powerful features can be enabled with different " +#~ "plugins, allowing a variety of tasks related to " +#~ "text-editing." +#~ msgstr "" +#~ "El objetivo de gedit es ser un editor de texto " +#~ "simple y fácil de usar. Se pueden activar características mas potentes " +#~ "con diferentes complementos, permitiendo una " +#~ "variedad de tareas relativas a la edición de texto." + +#~ msgid "Getting Started" +#~ msgstr "Procedimientos iniciales" + +#~ msgid "" +#~ "You can start gedit in the following ways:" +#~ msgstr "" +#~ "Para iniciar la aplicación gedit, siga estos " +#~ "pasos:" + +#~ msgid "Applications menu" +#~ msgstr "Aplicaciones menú" + +#~ msgid "" +#~ "Choose AccessoriesText " +#~ "Editor." +#~ msgstr "" +#~ "Seleccione AccesoriosEditor " +#~ "de texto." + +#~ msgid "Command line" +#~ msgstr "Línea de comandos" + +#~ msgid "Execute the following command: gedit" +#~ msgstr "Ejecute el comando siguiente: gedit" + +#~ msgid "" +#~ "By default, when you open a text document in the file manager, gedit will " +#~ "start, and display the document." +#~ msgstr "" +#~ "Por omisión, cuando abra un documento de texto en el gestor de archivos, " +#~ "gedit arrancará, y mostrará el documento." + +#~ msgid "The gedit Window" +#~ msgstr "La ventana de gedit" + +#~ msgid "" +#~ "When you start gedit, the following window is " +#~ "displayed:" +#~ msgstr "" +#~ "Cuando inicia gedit, aparece la ventana " +#~ "siguiente:" + +#~ msgid "gedit Window" +#~ msgstr "Ventana de gedit" + +#~ msgid "Shows gedit main window." +#~ msgstr "Muestra la ventana principal de gedit." + +#~ msgid "" +#~ "The gedit window contains the following " +#~ "elements:" +#~ msgstr "" +#~ "La ventana de gedit contiene los elementos " +#~ "siguientes:" + +#~ msgid "Menubar" +#~ msgstr "Barra de menús" + +#~ msgid "" +#~ "The menus on the menubar contain all of the commands you need to work " +#~ "with files in gedit." +#~ msgstr "" +#~ "Los menús de esta barra contienen todos los comandos necesarios para " +#~ "trabajar con archivos de gedit." + +#~ msgid "Toolbar" +#~ msgstr "Barra de herramientas" + +#~ msgid "" +#~ "The toolbar contains a subset of the commands that you can access from " +#~ "the menubar." +#~ msgstr "" +#~ "La barra de herramientas contiene un subconjunto de comandos a los que " +#~ "puede acceder desde la barra de menús." + +#~ msgid "Display area" +#~ msgstr "Área de visualización" + +#~ msgid "The display area contains the text of the file that you are editing." +#~ msgstr "" +#~ "El área de visualización contiene el texto del archivo que se está " +#~ "editando." + +#~ msgid "Statusbar" +#~ msgstr "Barra de estado" + +#~ msgid "" +#~ "The statusbar displays information about current gedit activity and contextual information about the menu items. " +#~ "The statusbar also displays the following information:" +#~ msgstr "" +#~ "La barra de estado muestra información sobre la actividad actual de " +#~ "gedit e información contextual sobre los " +#~ "elementos de menú:" + +#~ msgid "" +#~ "Cursor position: the line number and column number where the cursor is " +#~ "located." +#~ msgstr "Muestra el número de línea y columna en que se encuentra el cursor." + +#~ msgid "" +#~ "Edit mode: If the editor is in insert mode, the statusbar contains the " +#~ "text INS. If the editor is in overwrite mode, the " +#~ "statusbar contains the text OVR. Press the " +#~ "Insert key to change edit mode." +#~ msgstr "" +#~ "Muestra la modalidad de edición. Si el editor está en modalidad de " +#~ "inserción, la barra de estado contiene la palabra INS. Si el editor está en modalidad de sobreescritura, la barra de " +#~ "estado contiene la palabra SOB. Pulse la tecla " +#~ "Insert para cambiar el modo de edición." + +#~ msgid "Side Pane" +#~ msgstr "Panel lateral" + +#~ msgid "" +#~ "The side pane displays a list of open documents, and other information " +#~ "depending on which plugins are enabled." +#~ msgstr "" +#~ "El panel lateral muestra una lista de los documentos abiertos y otra " +#~ "información dependiendo de los complementos que estén activados." + +#~ msgid "" +#~ "By default the side pane is not shown. To show it, choose " +#~ "ViewSide Pane." +#~ msgstr "" +#~ "Por omisión el panel lateral no se muestra. Para mostrarlo, " +#~ "elijaVerPanel lateral." + +#~ msgid "Bottom Pane" +#~ msgstr "Panel inferior" + +#~ msgid "" +#~ "The bottom pane is used by programming tools such as the " +#~ "Python Console plugin to display output." +#~ msgstr "" +#~ "El panel inferior lo usan las herramientas de programación tales como el " +#~ "complemento de Consola Python para mostrar la " +#~ "salida. Por omisión no se muestra." + +#~ msgid "" +#~ "By default the bottom pane is not shown. To show it, choose " +#~ "ViewBottom Pane." +#~ msgstr "" +#~ "De forma predeterminada no se muestra el panel inferior. Para mostrarlo, " +#~ "elija VerPanel inferior." + +#~ msgid "" +#~ "When you right-click in the gedit window, the " +#~ "application displays a popup menu. The popup menu contains the most " +#~ "common text editing commands." +#~ msgstr "" +#~ "Cuando se pulsa el botón derecho del ratón en la ventana de " +#~ "gedit, la aplicación muestra un menú " +#~ "emergente. El menú emergente contiene los comandos de edición de texto " +#~ "más habituales." + +#~ msgid "" +#~ "Like other GNOME applications, actions in gedit can be performed in several ways: with the menu, with the " +#~ "toolbar, or with shortcut keys. Shortcuts keys common to all applications " +#~ "are listed in the User Guide." +#~ msgstr "" +#~ "Como en otras aplicaciones de GNOME, las acciones en gedit pueden realizarse de varios modos: con el menú, con la barra " +#~ "de herramientas, o con combinaciones de teclas. Las combinaciones de " +#~ "teclas comunes a todas las aplicaciones están en la Guía de usuario." + +#~ msgid "Running gedit from a Command Line" +#~ msgstr "Para abrir gedit desde una línea de comandos" + +#~ msgid "" +#~ "You can run gedit from a command line and open " +#~ "a single file or multiple files. To open multiple files from a command " +#~ "line, type the following command, then press Return:" +#~ msgstr "" +#~ "Puede ejecutar gedit desde una línea de " +#~ "comandos y abrir uno o varios archivos. Para abrir varios archivos desde " +#~ "una línea de comandos, escriba este comando y pulse la tecla " +#~ "Intro:" + +#~ msgid "file1.txt file2.txt file3.txt" +#~ msgstr "archivo1.txt archivo2.txt archivo3.txt" + +#~ msgid "gedit " +#~ msgstr "gedit " + +#~ msgid "Alternatively, you can specify a URI instead of a filename." +#~ msgstr "" +#~ "Alternativamente, puede especificar un URI en vez de un nombre de archivo." + +#~ msgid "" +#~ "For more information on how to run gedit from " +#~ "a command line, see the unix manual page for gedit, gedit1." +#~ msgstr "" +#~ "Para obtener más información acerca de la ejecución de " +#~ "gedit desde una línea de comandos, consulte la " +#~ "página del manual de unix para gedit gedit1." + +#~ msgid "Creating a New Document" +#~ msgstr "Creación de un documento" + +#~ msgid "" +#~ "To create a new document, choose FileNew. The application " +#~ "displays a new blank document in the gedit " +#~ "window." +#~ msgstr "" +#~ "Para crear un documento nuevo, seleccione ArchivoNuevo. La aplicación " +#~ "mostrará un documento nuevo en blanco en la ventana gedit." + +#~ msgid "Opening a File" +#~ msgstr "Apertura de un archivo" + +#~ msgid "" +#~ "To open a file, choose FileOpen to display the " +#~ "Open File dialog. Select the file that you want to " +#~ "open, then click Open. The file is displayed in " +#~ "the gedit window." +#~ msgstr "" +#~ "Para abrir un archivo, seleccione ArchivoAbrir para que se muestre " +#~ "el cuadro de diálogo Abrir archivo. Seleccione el " +#~ "archivo que desee abrir y después pulse Aceptar. " +#~ "El archivo se muestra en la ventana gedit." + +#~ msgid "Shows Recent Files menu icon." +#~ msgstr "Icono del menú «Mostrar archivos recientes»." + +#~ msgid "" +#~ "The application records the paths and filenames of the five most recent " +#~ "files that you edited and displays the files as menu items on the " +#~ "File menu. You can also click " +#~ "on the icon on the toolbar to display the list of recent " +#~ "files." +#~ msgstr "" +#~ "La aplicación registra las rutas de acceso y los nombres de los últimos " +#~ "cinco archivos que se han editado y los muestra como elementos de menú en " +#~ "el menú Archivo. También " +#~ "puede pulsar en el icono de la barra de herramientas " +#~ "para mostrar la lista de archivos recientes." + +#~ msgid "" +#~ "You can open multiple files in gedit. The " +#~ "application adds a tab for each open file to the window. For more on this " +#~ "see ." +#~ msgstr "" +#~ "Puede abrir múltiples archivos en gedit. La " +#~ "aplicación añade a la ventana una pestaña para cada archivo abierto. Para " +#~ "más sobre ello vea la ." + +#~ msgid "You can save files in the following ways:" +#~ msgstr "Puede guardar archivos de cualquiera de estas maneras:" + +#~ msgid "" +#~ "To save changes to an existing file, choose FileSave." +#~ msgstr "" +#~ "Para guardar los cambios a un archivo existente, elija " +#~ "ArchivoGuardar." + +#~ msgid "" +#~ "To save a new file or to save an existing file under a new filename, " +#~ "choose FileSave As. Enter a name for the file in the " +#~ "Save As dialog, then click Save." +#~ msgstr "" +#~ "Para guardar un archivo nuevo o para guardar un archivo existente con un " +#~ "nombre nuevo, seleccione ArchivoGuardar como. Escriba un " +#~ "nombre para el archivo en el cuadro de diálogo Guardar como y después pulse en Guardar." + +#~ msgid "" +#~ "To save all of the files that are currently open in gedit, choose DocumentsSave All." +#~ msgstr "" +#~ "Para guardar todos los archivos que estén abiertos en este momento en " +#~ "gedit, seleccione " +#~ "DocumentosGuardar todo." + +#~ msgid "" +#~ "To close all of the files that are currently open in gedit, choose DocumentsClose All." +#~ msgstr "" +#~ "Para cerrar todos los archivos que estén abiertos en ese momento en " +#~ "gedit, seleccione " +#~ "DocumentosCerrar todo." + +#~ msgid "" +#~ "To open a file from a Uniform Resource Identifier (URI), perform the " +#~ "following steps:" +#~ msgstr "" +#~ "Para abrir un archivo desde un identificador de recursos uniforme (URI), " +#~ "lleve a cabo los siguientes pasos:" + +#~ msgid "Working With Tabs" +#~ msgstr "Trabajar con pestañas" + +#~ msgid "" +#~ "When more than one file is open, gedit shows a " +#~ "tab for each document above the display area. To " +#~ "switch to another document, click on its tab." +#~ msgstr "" +#~ "Cuando se abre más de un archivo, gedit " +#~ "muestra una pestaña para cada documento en la " +#~ "parte superior del área de visualización. Para cambiar a otro documento, " +#~ "pulse en su pestaña." + +#~ msgid "" +#~ "To move a document to another gedit window, " +#~ "drag the tab corresponding to the file to the window you want to move it " +#~ "to." +#~ msgstr "" +#~ "Para mover un documento a otra ventana de gedit, arrastre la pestaña correspondiente al archivo a la ventana " +#~ "a la que la quiere mover." + +#~ msgid "" +#~ "To move a document to a new gedit window, " +#~ "either drag its tab to the desktop, or choose " +#~ "DocumentsMove to New Window." +#~ msgstr "" +#~ "Para mover un documento a una ventana nueva de gedit, arrastre la pestaña al escritorio, o elija " +#~ "DocumentosMover a una ventana " +#~ "nueva." + +#~ msgid "Working with Text" +#~ msgstr "Trabajar con el texto" + +#~ msgid "Editing Text" +#~ msgstr "Editar texto" + +#~ msgid "You can edit the text of a file in the following ways:" +#~ msgstr "El texto de un archivo se puede editar de las siguientes maneras:" + +#~ msgid "" +#~ "Type new text from the keyboard. The blinking insertion " +#~ "cursor marks the point where new text appears. To change " +#~ "this, use the arrow keys on the keyboard or click with the mouse." +#~ msgstr "" +#~ "Escriba el texto nuevo desde el teclado. El cursor de " +#~ "inserción parpadeante marca donde aparece el texto. Para " +#~ "cambiar ésto, use las teclas de flechas del teclado o pulse con el ratón." + +#~ msgid "" +#~ "To copy the selected text to the clipboard, choose " +#~ "EditCopy." +#~ msgstr "" +#~ "Para copiar el texto seleccionado en un portapapeles, seleccione " +#~ "EditarCopiar." + +#~ msgid "" +#~ "To delete the selected text from the file and move the selected text to " +#~ "the clipboard, choose EditCut." +#~ msgstr "" +#~ "Para borrar el texto seleccionado del archivo y trasladarlo al " +#~ "portapapeles, seleccione EditarCortar." + +#~ msgid "" +#~ "To permanently delete the selected text from the file, choose " +#~ "EditDelete." +#~ msgstr "" +#~ "Para eliminar el texto seleccionado del archivo de forma permanente, " +#~ "seleccione EditarBorrar." + +#~ msgid "" +#~ "To insert the contents of the clipboard at the cursor position, choose " +#~ "EditPaste. You must cut or copy text before you can paste text into the " +#~ "file, either from gedit or another application." +#~ msgstr "" +#~ "Para insertar el contenido del portapapeles en la posición del cursor, " +#~ "seleccione EditarPegar. Debe cortar o copiar antes de pegar el texto " +#~ "en el archivo, desde gedit u otra aplicación." + +#~ msgid "" +#~ "To select all of the text in a file, choose EditSelect All." +#~ msgstr "" +#~ "Para seleccionar todo el texto de un archivo, seleccione " +#~ "EditarSeleccionar todo." + +#~ msgid "Undoing and Redoing Changes" +#~ msgstr "Deshacer y rehacer cambios" + +#~ msgid "" +#~ "To undo a change you have made, choose EditUndo. To reverse this " +#~ "action, choose EditRedo." +#~ msgstr "" +#~ "Para deshacer un cambio que haya realizado, elija " +#~ "EditarDeshacer. Para deshacer esta acción, elija " +#~ "EditarRehacer." + +#~ msgid "Finding and Replacing" +#~ msgstr "Búsqueda y reemplazo" + +#~ msgid "" +#~ "In gedit, there are two ways of searching for " +#~ "text. You can use the Find dialog to search for a " +#~ "specific piece of text, or Incremental Search to " +#~ "highlight matching text as you type it." +#~ msgstr "" +#~ "En gedit, hay dos modos de buscar un texto. " +#~ "Puede usar el diálogo Buscar para buscar un " +#~ "fragmento específico del texto, o Búsqueda incremental para resaltar el texto coincidente a medida que lo teclea." + +#~ msgid "" +#~ "Choose SearchFind to display the Find dialog." +#~ msgstr "" +#~ "Seleccione BuscarBuscar para que se muestre el cuadro de diálogo " +#~ "Buscar." + +#~ msgid "" +#~ "Type the string that you want to find in the Search for field. You can include special characters such as a new line or " +#~ "tab: see ." +#~ msgstr "" +#~ "Escriba la cadena que desea buscar en el campo Buscar. Puede incluir caracteres especiales como línea nueva o " +#~ "tabulador: vea la ." + +#~ msgid "" +#~ "Click Find to search the file for the first " +#~ "occurrence of the string after your current cursor position. If " +#~ "gedit finds the string, the application " +#~ "selects first occurrence of the string. Other occurrences of the string " +#~ "are highlighted." +#~ msgstr "" +#~ "Pulse Buscar para buscar el archivo por la primera " +#~ "aparición de la cadena después de la posición actual del cursor. Si " +#~ "gedit encuentra la cadena, la aplicación " +#~ "selecciona la primera aparición de la cadena. Otras apariciones de la " +#~ "cadena se resaltan." + +#~ msgid "" +#~ "To find the next occurrence of the string, click Find or choose SearchFind Next. To find the " +#~ "previous occurrence of the text, choose SearchFind Previous." +#~ msgstr "" +#~ "Para encontrar la siguiente aparición de la cadena, pulse " +#~ "Buscar o elija BuscarBuscar siguiente. Para " +#~ "encontrar la aparición anterior del texto, elija " +#~ "BuscarBuscar anterior." + +#~ msgid "" +#~ "After you have closed the Find dialog, you can still " +#~ "move the selection to other occurrences of the text by choosing " +#~ "SearchFind Next and SearchFind Previous." +#~ msgstr "" +#~ "Después de haber cerrado el diálogo Buscar, aún " +#~ "podrá mover la selección a otras apariciones en el texto seleccionando " +#~ "BuscarBuscar siguiente y BuscarBuscar anterior." + +#~ msgid "" +#~ "To remove the highlighting from the text, choose " +#~ "SearchClear Highlight." +#~ msgstr "" +#~ "Para quitar el resaltado del texto, elija BuscarQuitar resaltado." + +#~ msgid "" +#~ "Incremental search highlights matching text in the document as you type " +#~ "it letter by letter. (This is similar to the search feature in several " +#~ "web browsers.)" +#~ msgstr "" +#~ "La búsqueda incremental resalta el texto que coincide en el documento a " +#~ "medida que lo teclea letra a letra. (Esto es similar a la función de " +#~ "búsqueda en muchos navegadores web.)" + +#~ msgid "" +#~ "To start an incremental search, choose SearchIncremental Search. The " +#~ "search box appears at the top of the display area." +#~ msgstr "" +#~ "Para empezar un búsqueda incremental, elija BuscarBúsqueda incremental. La " +#~ "caja de búsqueda aparece en parte de arriba del área de visualización." + +#~ msgid "" +#~ "Begin typing, and text that matches will be highlighted in the document. " +#~ "The first instance after the cursor position is also selected." +#~ msgstr "" +#~ "Empiece a teclear, y el texto que coincida será resaltado en el " +#~ "documento. La primera instancia después la posición del cursor también se " +#~ "selecciona." + +#~ msgid "" +#~ "To advance the selection to the next match while keeping the incremental " +#~ "search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +#~ msgstr "" +#~ "Para avanzar la selección a la siguiente coincidencia mientras mantiene " +#~ "la casilla de búsqueda incremental abierta, pulse CtrlG. Pulse CtrlMayúsG para volver a " +#~ "la coincidencia anterior." + +#~ msgid "" +#~ "You can also use the up and down arrow keys or the mouse wheel to move " +#~ "the selection between matches." +#~ msgstr "" +#~ "También puede usar las teclas de flechas arriba y abajo o la rueda del " +#~ "ratón para mover la selección entre coincidencias." + +#~ msgid "" +#~ "To search a file for a string, and replace the string with an alternative " +#~ "string, perform the following steps:" +#~ msgstr "" +#~ "Para buscar en un archivo una cadena y sustituirla por por otra, lleve a " +#~ "cabo los pasos siguientes:" + +#~ msgid "" +#~ "Choose SearchReplace to display the Replace " +#~ "dialog." +#~ msgstr "" +#~ "Seleccione BuscarReemplazar para que se muestre el cuadro de diálogo " +#~ "Reemplazar." + +#~ msgid "" +#~ "Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +#~ "tab: see ." +#~ msgstr "" +#~ "Teclee la cadena que desea buscar, en el campo Buscar. Puede incluir caracteres especiales como linea nueva o " +#~ "tabulador: vea la ." + +#~ msgid "" +#~ "Type the string that you want to use to replace the string that you find, " +#~ "in the Replace with field." +#~ msgstr "" +#~ "Escriba la cadena que desea usar para reemplazar a la que se ha " +#~ "encontrado en el campo Reemplazar por." + +#~ msgid "" +#~ "To examine each occurrence of the string before replacing it, click " +#~ "Find. If gedit finds " +#~ "the string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +#~ "next occurrence of the string, click Find again." +#~ msgstr "" +#~ "Para examinar cada aparición de la cadena antes de sustituirla, pulse " +#~ "Buscar. Si gedit " +#~ "encuentra la cadena, la aplicación la selecciona. Pulse " +#~ "Sustituir para sustituir la aparición de la cadena " +#~ "seleccionada. Para encontrar la siguiente aparición de la cadena, pulse " +#~ "otra vez Buscar." + +#~ msgid "" +#~ "The Find dialog and the Replace " +#~ "dialog both have the following options:" +#~ msgstr "" +#~ "El diálogo Buscar y el diálogo Reemplazar tienen las siguientes opciones:" + +#~ msgid "" +#~ "Select the Match case option to only find " +#~ "occurrences of the string that match the case of the text that you type. " +#~ "For example, with Match case selected, \"TEXT\" will " +#~ "not match \"text\"." +#~ msgstr "" +#~ "Seleccione la opción Coincidir con capitalización " +#~ "para encontrar solamente los casos en que la cadena coincida con la " +#~ "capitalización del texto que ha escrito. Por ejemplo, seleccionando " +#~ "Coincidir con capitalización , \"TEXTO\" no " +#~ "coincidirá con \"texto\"." + +#~ msgid "" +#~ "Select the Match entire word only option to only " +#~ "find occurrences of the string that match the entire words of the text " +#~ "that you type. For example, with Match entire word only selected, \"text\" will not match \"texture\"." +#~ msgstr "" +#~ "Seleccione la opción Coincidir sólo con la palabra completa para encontrar solamente los casos en que el texto coincida " +#~ "exactamente con las palabras completas que se hayan escrito. Por ejemplo, " +#~ "seleccionando Coincidir sólo con la palabra completa," +#~ "\"texto\" no coincidirá con \"textura\"." + +#~ msgid "" +#~ "Select the Search backwards option to search " +#~ "backwards towards the beginning of the document." +#~ msgstr "" +#~ "Seleccione la opción Buscar atrás para buscar hacia " +#~ "atrás hasta el principio del documento." + +#~ msgid "" +#~ "Select the Wrap around option to search to one end " +#~ "of the document and then continue the search from the other end of the " +#~ "file." +#~ msgstr "" +#~ "Seleccione la opción Continuar desde el principio " +#~ "para buscar hasta el final del documento y entonces continuar la búsqueda " +#~ "desde el principio del documento." + +#~ msgid "" +#~ "You can include the following escape sequences in the text to find or " +#~ "replace to represent special characters:" +#~ msgstr "" +#~ "Puede incluir las siguientes secuencias de escape en el texto para buscar " +#~ "o reemplazar para representar caracteres especiales:" + +#~ msgid "Specifies a new line." +#~ msgstr "Especifica una línea nueva." + +#~ msgid "Specifies a tab character." +#~ msgstr "Especifica un carácter tabulador." + +#~ msgid "\\\\" +#~ msgstr "\\\\" + +#~ msgid "" +#~ "The backslash character itself must be escaped if it is being searched " +#~ "for. For example, if you are looking for the \"\\n\" " +#~ "literal, you will have to type \"\\\\n\" in the Search for field. Or if you are looking for a sequence of backslashes, you " +#~ "will have to double the number of searched backslashes." +#~ msgstr "" +#~ "El carácter barra invertida debe escaparse si es lo que se está buscando. " +#~ "Por ejemplo, si está buscando «\\n» literalmente, " +#~ "deberá escribir «\\\\n» en el campo Buscar:. O si " +#~ "está buscando una secuencia de barras invertidas, deberá duplicar el " +#~ "número de barras invertidas buscadas." + +#~ msgid "Positioning the Cursor on a Specific Line" +#~ msgstr "Situar el cursor en una línea específica" + +#~ msgid "" +#~ "To position the cursor on a specific line in the current file, choose " +#~ "SearchGo to Line. The line number box appears at the top of the " +#~ "display area." +#~ msgstr "" +#~ "Para posicionar el cursor en una línea específica del archivo actual, " +#~ "elija BuscarIr a la línea. La caja de número de línea aparece en parte de " +#~ "arriba del área de visualización." + +#~ msgid "" +#~ "Begin typing the number of the line that you want to move the cursor to " +#~ "and the document will scroll to the specified line." +#~ msgstr "" +#~ "Escriba el número de la línea a la que desea desplazar el cursor y el " +#~ "documento se deslizará hasta la línea especificada." + +#~ msgid "" +#~ "To dismiss the box and move the cursor to the specified line, press " +#~ "Return." +#~ msgstr "" +#~ "Para quitar la caja y mover el cursor a la línea especificada, pulse " +#~ "Intro." + +#~ msgid "Setting the Page Options" +#~ msgstr "Establecimiento de opciones de página" + +#~ msgid "" +#~ "To set the page options, choose FilePage Setup to display the " +#~ "Page Setup dialog." +#~ msgstr "" +#~ "Para establecer las opciones de página, seleccione " +#~ "ArchivoConfiguración de " +#~ "página para mostrar el diálogo " +#~ "Configuración de página." + +#~ msgid "" +#~ "The Page Setup dialog enables you to specify the " +#~ "following print options:" +#~ msgstr "" +#~ "El cuadro de diálogo Configuración de página le " +#~ "permite especificar las opciones de impresión siguientes:" + +#~ msgid "" +#~ "Select this option to print syntax highlighting. For more information " +#~ "about syntax highlighting, see ." +#~ msgstr "" +#~ "Seleccione esta opción para imprimir con sintaxis resaltada. Para más " +#~ "información sobre el resaltado de sintaxis, vea la ." + +#~ msgid "Print page headers" +#~ msgstr "Imprimir cabeceras de página" + +#~ msgid "" +#~ "Select this option to include a header on each page that you print. You " +#~ "cannot configure the header." +#~ msgstr "" +#~ "Seleccione esta opción para que se incluya una cabecera en todas las " +#~ "páginas que se impriman. La cabecera no se puede configurar." + +#~ msgid "Line Numbers" +#~ msgstr "Números de línea" + +#~ msgid "" +#~ "Select the Print line numbers option to include line " +#~ "numbers when you print a file." +#~ msgstr "" +#~ "Seleccione la opción Impresión de números de línea " +#~ "para incluir los números de línea cuando imprime un archivo." + +#~ msgid "" +#~ "Use the Number every ... lines spin box to specify " +#~ "how often to print the line numbers, for example every 5 lines, every 10 " +#~ "lines, and so on." +#~ msgstr "" +#~ "Use el marcador incrementable Número cada … líneas " +#~ "para especificar la frecuencia con la que desea que se impriman los " +#~ "números de línea, por ejemplo cada 5 líneas, cada 10 líneas, etc." + +#~ msgid "" +#~ "Select the Enable text wrapping option to wrap text " +#~ "onto the next line, at a character level, when you print a file. The " +#~ "application counts wrapped lines as one line for line numbering purposes." +#~ msgstr "" +#~ "Seleccione la opción Activar ajuste de texto para " +#~ "desplazar el resto del texto a la siguiente línea, cuando se llega a un " +#~ "número de carácter determinado, al imprimir un archivo. La aplicación " +#~ "cuenta las líneas desplazadas como si fueran una sola en lo que respecta " +#~ "a la numeración." + +#~ msgid "" +#~ "Select the Do not split words over two lines option " +#~ "to wrap text onto the next line, at a word level, when you print a file." +#~ msgstr "" +#~ "Seleccione la opción No partir palabras en dos líneas para ajustar texto a la línea siguiente, en el nivel de " +#~ "palabra, cuando imprime un archivo." + +#~ msgid "Fonts" +#~ msgstr "Tipografía" + +#~ msgid "Body" +#~ msgstr "Cuerpo" + +#~ msgid "" +#~ "Click on this button to select the font to use to print the body text of " +#~ "a file." +#~ msgstr "" +#~ "Pulse en este botón con el fin de seleccionar la tipografía que desea " +#~ "usar para imprimir el cuerpo del texto de un archivo." + +#~ msgid "Line numbers" +#~ msgstr "Números de línea" + +#~ msgid "" +#~ "Click on this button to select the font to use to print line numbers." +#~ msgstr "" +#~ "Pulse en este botón para seleccionar la tipografía que desea usar para " +#~ "imprimir los números de línea." + +#~ msgid "Headers and footers" +#~ msgstr "Encabezamientos y pies de página" + +#~ msgid "" +#~ "Click on this button to select the font to use to print the headers and " +#~ "footers in a file." +#~ msgstr "" +#~ "Pulse en este botón con el fin de seleccionar la tipografía que desea " +#~ "usar para imprimir las cabeceras en un archivo." + +#~ msgid "" +#~ "To reset the fonts to the default fonts for printing a file from " +#~ "gedit, click Restore Default Fonts." +#~ msgstr "" +#~ "Para restablecer las tipografías a los valores predeterminados para " +#~ "imprimir un archivo desde gedit pulse en el " +#~ "botón Restablecer las tipografía predeterminada." + +#~ msgid "" +#~ "You can use gedit to perform the following " +#~ "print operations:" +#~ msgstr "" +#~ "La aplicación gedit se puede utilizar para " +#~ "realizar las operaciones de impresión siguientes:" + +#~ msgid "Print a document to a printer." +#~ msgstr "Imprimir un documento en una impresora." + +#~ msgid "Print the output of the print command to a file." +#~ msgstr "Imprimir la salida del comando de impresión en un archivo." + +#~ msgid "" +#~ "If you print to a file, gedit sends the output " +#~ "of the file to a pre-press format file. The most common pre-press formats " +#~ "are PostScript and Portable Document Format (PDF)." +#~ msgstr "" +#~ "Si imprime en un archivo, gedit envía la " +#~ "salida a un archivo de formato de preimpresión. Los formatos de " +#~ "preimpresión más comunes son PostScript y Portable Document Format (PDF)." + +#~ msgid "" +#~ "To preview the pages that you want to print, choose " +#~ "FilePrint Preview." +#~ msgstr "" +#~ "Para ver una vista preliminar de las páginas que desea imprimir " +#~ "seleccioneArchivoVista " +#~ "preliminar de impresión." + +#~ msgid "" +#~ "To print the current file to a printer or a file, choose " +#~ "FilePrint to display the Print dialog." +#~ msgstr "" +#~ "Para imprimir el archivo actual en una impresora o archivo, seleccione " +#~ "ArchivoImprimir para mostrar el cuadro de diálogo " +#~ "Imprimir." + +#~ msgid "" +#~ "The Print dialog enables you to specify the " +#~ "following print options:" +#~ msgstr "" +#~ "El cuadro de diálogo Imprimir permite especificar " +#~ "las opciones de impresión siguientes:" + +#~ msgid "Job Tabbed Section" +#~ msgstr "Sección de la pestaña Tarea" + +#~ msgid "Print range" +#~ msgstr "Rango de impresión" + +#~ msgid "" +#~ "Select one of the following options to determine how many pages to print:" +#~ msgstr "" +#~ "Seleccione una de las opciones siguientes para determinar cuántas páginas " +#~ "quiere imprimir:" + +#~ msgid "All" +#~ msgstr "Todo" + +#~ msgid "Select this option to print all of the pages in the file." +#~ msgstr "Seleccione esta opción para imprimir todas las páginas del archivo." + +#~ msgid "" +#~ "Select this option to print the specified lines only. Use the " +#~ "From and To spin boxes to " +#~ "specify the line range." +#~ msgstr "" +#~ "Seleccione esta opción para imprimir sólo las líneas especificadas. Use " +#~ "los marcadores incrementables Desde y A para especificar el rango de líneas." + +#~ msgid "Selection" +#~ msgstr "Selección" + +#~ msgid "" +#~ "Select this option to print the selected text only. This option is only " +#~ "available if you select text." +#~ msgstr "" +#~ "Seleccione esta opción para imprimir sólo el texto seleccionado. Esta " +#~ "opción sólo está disponible si previamente se ha seleccionado texto." + +#~ msgid "Copies" +#~ msgstr "Copias" + +#~ msgid "" +#~ "Use the Number of copies spin box to specify the " +#~ "number of copies of the file that you want to print." +#~ msgstr "" +#~ "Use el marcador incrementable Número de copias para " +#~ "especificar el número de copias del archivo que desea imprimir." + +#~ msgid "" +#~ "If you print multiple copies of the file, select the Collate option to collate the printed copies." +#~ msgstr "" +#~ "Si va a imprimir varias copias del archivo, seleccione la opción " +#~ "Intercalar para intercalar las copias impresas." + +#~ msgid "Printer Tabbed Section" +#~ msgstr "Sección de la pestaña Impresora" + +#~ msgid "" +#~ "Use this drop-down list to select the printer to which you want to print " +#~ "the file." +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar la impresora en la que quiera " +#~ "imprimir el archivo." + +#~ msgid "Settings" +#~ msgstr "Configuración" + +#~ msgid "Use this drop-down list to select the printer settings." +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar la configuración de la " +#~ "impresora." + +#~ msgid "" +#~ "To configure the printer, click Configure. For " +#~ "example, you can enable or disable duplex printing, or schedule delayed " +#~ "printing, if this functionality is supported by the printer." +#~ msgstr "" +#~ "Para configurar la impresora, pulse Configurar. " +#~ "Por ejemplo, puede permitir o no la impresión dúplex, o programar una " +#~ "impresión para más tarde, si ésta función está soportada en la impresora." + +#~ msgid "Location" +#~ msgstr "Ubicación" + +#~ msgid "" +#~ "Use this drop-down list to select one of the following print destinations:" +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar uno de las siguientes " +#~ "destinos de impresión:" + +#~ msgid "CUPS" +#~ msgstr "CUPS" + +#~ msgid "Print the file to a CUPS printer." +#~ msgstr "Imprime el archivo a una impresora CUPS." + +#~ msgid "" +#~ "If the selected printer is a CUPS printer, CUPS is " +#~ "the only entry in this drop-down list." +#~ msgstr "" +#~ "Si la impresora seleccionada es una impresora CUPS, CUPS es la única entrada en esta lista desplegable." + +#~ msgid "lpr" +#~ msgstr "lpr" + +#~ msgid "Print the file to a PostScript file." +#~ msgstr "Imprime el archivo en un archivo PostScript." + +#~ msgid "" +#~ "Click Save As to display a dialog where you " +#~ "specify the name and location of the PostScript file." +#~ msgstr "" +#~ "Pulse Guardar como para mostrar un diálogo cuando " +#~ "especifique el nombre y ubicación del archivo PostScript." + +#~ msgid "Custom" +#~ msgstr "Personalizado" + +#~ msgid "" +#~ "Type the name of the command in the text box. Include all command-line " +#~ "arguments." +#~ msgstr "" +#~ "Teclee el nombre del comando en la caja de texto. Incluya todos los " +#~ "argumentos de línea de comandos." + +#~ msgid "State" +#~ msgstr "Estado" + +#~ msgid "This functionality is not supported in this version of gedit." +#~ msgstr "Esta funcionalidad no está soportada en esta versión de gedit." + +#~ msgid "Type" +#~ msgstr "Tipo" + +#~ msgid "Paper Tabbed Section" +#~ msgstr "Sección de la pestaña Papel" + +#~ msgid "Paper size" +#~ msgstr "Tamaño del papel" + +#~ msgid "" +#~ "Use this drop-down list to select the size of the paper to which you want " +#~ "to print the file." +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar el tamaño del papel en el que " +#~ "desea imprimir el archivo." + +#~ msgid "Width" +#~ msgstr "Anchura" + +#~ msgid "" +#~ "Use this spin box to specify the width of the paper. Use the adjacent " +#~ "drop-down list to change the measurement unit." +#~ msgstr "" +#~ "Use este marcador incrementable para especificar la anchura del papel. " +#~ "Use la lista desplegable contigua para cambiar la unidad de medida." + +#~ msgid "Height" +#~ msgstr "Altura" + +#~ msgid "Use this spin box to specify the height of the paper." +#~ msgstr "" +#~ "Use este marcador incrementable para especificar la altura del papel." + +#~ msgid "Feed orientation" +#~ msgstr "Orientación del alimentador" + +#~ msgid "" +#~ "Use this drop-down list to select the orientation of the paper in the " +#~ "printer." +#~ msgstr "" +#~ "Utilice esta lista desplegable para seleccionar la orientación del papel " +#~ "en la impresora." + +#~ msgid "Page orientation" +#~ msgstr "Orientación de la página" + +#~ msgid "Use this drop-down list to select the page orientation." +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar la orientación de la página." + +#~ msgid "Layout" +#~ msgstr "Disposición" + +#~ msgid "" +#~ "Use this drop-down list to select the page layout. A preview of each " +#~ "layout that you select is displayed in the Preview " +#~ "area." +#~ msgstr "" +#~ "Use esta lista desplegable para determinar la disposición de la página. " +#~ "En el área de Previsualización se muestra una vista " +#~ "previa de la disposición de las páginas que haya seleccionado." + +#~ msgid "Paper tray" +#~ msgstr "Bandeja de papel" + +#~ msgid "Use this drop-down list to select the paper tray." +#~ msgstr "Use esta lista desplegable para seleccionar la bandeja de papel." + +#~ msgid "Programming Features" +#~ msgstr "Características de programación" + +#~ msgid "" +#~ "Several of gedit's features for programming " +#~ "are provided with plugins. For example, the Tag List plugin provides a " +#~ "list of commonly-used tags for different markup languages: see ." +#~ msgstr "" +#~ "Varias de las características para programación de gedit las proporcionan complementos. Por ejemplo, el complemento " +#~ "Lista de etiquetas proporciona una lista de etiquetas comúnmente usadas " +#~ "para diferentes lenguajes de marcado: vea ." + +#~ msgid "" +#~ "Syntax highlighting makes source code easier to read by showing different " +#~ "parts of the text in different colors." +#~ msgstr "" +#~ "El resaltado de sintaxis hace el código fuente más legible mostrando " +#~ "diferentes partes del texto en diferentes colores." + +#~ msgid "" +#~ "gedit chooses an appropriate syntax " +#~ "highlighting mode based on a document's type. To override the syntax " +#~ "highlighting mode, choose ViewHighlight Mode, then " +#~ "choose one of the following menu items:" +#~ msgstr "" +#~ "gedit elije un modo de resaltado de sintaxis " +#~ "apropiado según el tipo de documento. Para reemplazar el modo de " +#~ "resaltado de sintaxis, elija VerModo de resaltado, " +#~ "después seleccione uno de los siguientes elementos de menú:" + +#~ msgid "Normal" +#~ msgstr "Normal" + +#~ msgid "Do not display any syntax highlighting." +#~ msgstr "No mostrar ningún resaltado de sintaxis." + +#~ msgid "" +#~ "Display syntax highlighting to edit source code. Use the " +#~ "Sources submenu to select the source code type." +#~ msgstr "" +#~ "Muestra el resaltado de sintaxis para editar código fuente. Use el " +#~ "submenú Fuentes para seleccionar el tipo de " +#~ "código fuente." + +#~ msgid "Markup" +#~ msgstr "Marcado" + +#~ msgid "" +#~ "Display syntax highlighting to edit markup code. Use the " +#~ "Markup submenu to select the markup code type." +#~ msgstr "" +#~ "Muestra resaltado de sintaxis para editar código marcado. Use el submenú " +#~ "Marcado para seleccionar el tipo de marcado de " +#~ "código." + +#~ msgid "" +#~ "Display syntax highlighting to edit script code. Use the " +#~ "Scripts submenu to select the script code type." +#~ msgstr "" +#~ "Muestra resaltado de sintaxis para editar código de scripts. Use el " +#~ "submenú Scripts para seleccionar el tipo de " +#~ "código de script." + +#~ msgid "Others" +#~ msgstr "Otros" + +#~ msgid "" +#~ "Display syntax highlighting to edit other types of code. Use the " +#~ "Others submenu to select the code type." +#~ msgstr "" +#~ "Muestra el marcado de sintaxis para editar otros tipos de código. Use el " +#~ "submenú Otros para seleccionar el tipo de código." + +#~ msgid "Piping the Output of a Command to a File" +#~ msgstr "Redirección la salida de un comando a un archivo" + +#~ msgid "" +#~ "You can use gedit to pipe the output of a " +#~ "command to a text file. For example, to pipe the output of an " +#~ "ls command to a text file, type ls | gedit, then press Return." +#~ msgstr "" +#~ "La aplicación gedit se puede usar para " +#~ "redirigir la salida de un comando a un archivo de texto. Por ejemplo, " +#~ "para redirigir la salida del comando ls a un archivo " +#~ "de texto, escriba ls | gedit y a continuación pulse " +#~ "Intro." + +#~ msgid "" +#~ "The output of the ls command is displayed in a new " +#~ "text file in the gedit window." +#~ msgstr "" +#~ "La salida del comando ls se muestra en un archivo de " +#~ "texto nuevo de la ventana gedit." + +#~ msgid "" +#~ "Alternatively, you can use the External tools " +#~ "plugin to pipe command output to the current file." +#~ msgstr "" +#~ "Alternativamente, puede usar el complemento Herramientas " +#~ "externas para conducir la salida de un comando al archivo " +#~ "actual." + +#~ msgid "Shortcut Keys" +#~ msgstr "Teclas rápidas" + +#~ msgid "" +#~ "For more on shortcut keys, see the Desktop User Guide." +#~ msgstr "" +#~ "Para obtener más información sobre las teclas rápidas, vea la Guía del usuario del " +#~ "escritorio." + +#~ msgid "Shortcuts for tabs:" +#~ msgstr "Teclas rápidas para las pestañas:" + +#~ msgid "Shortcut Key" +#~ msgstr "Tecla rápida" + +#~ msgid "Alt + n" +#~ msgstr "Alt + n" + +#~ msgid "Files" +#~ msgstr "Archivos" + +#~ msgid "Ctrl + L" +#~ msgstr "Ctrl + L" + +#~ msgid "Open a location." +#~ msgstr "Abrir un lugar." + +#~ msgid "Edit" +#~ msgstr "Editar" + +#~ msgid "Panes" +#~ msgstr "Paneles" + +#~ msgid "Ctrl + K" +#~ msgstr "Ctrl + K" + +#~ msgid "Interactive search." +#~ msgstr "Búsqueda interactiva." + +#~ msgid "Tools" +#~ msgstr "Herramientas" + +#~ msgid "Ctrl + T" +#~ msgstr "Ctrl + T" + +#~ msgid "Ctrl + Shift + T" +#~ msgstr "Ctrl + Mayús. + T" + +#~ msgid "Remove Indent (with plugin)." +#~ msgstr "Quitar sangría (con complemento)." + +#~ msgid "Help" +#~ msgstr "Ayuda" + +#~ msgid "Open gedit's user manual." +#~ msgstr "Abra el manual del usuario de gedit." + +#~ msgid "Preferences" +#~ msgstr "Preferencias" + +#~ msgid "" +#~ "To configure gedit, choose " +#~ "EditPreferences. The Preferences dialog " +#~ "contains the following categories:" +#~ msgstr "" +#~ "Para configurar gedit, seleccione " +#~ "EditarPreferencias. El cuadro de diálogo Preferencias contiene las categorías siguientes:" + +#~ msgid "View Preferences" +#~ msgstr "Preferencias de visualización" + +#~ msgid "" +#~ "Select the Enable text wrapping option to have long " +#~ "lines of text flow into paragraphs instead of running off the edge of the " +#~ "text window. This avoids having to scroll horizontally" +#~ msgstr "" +#~ "Seleccione la opción Activar ajuste de texto para " +#~ "hacer que las líneas largas que se conviertan en párrafos en lugar de " +#~ "perderse por el borde de la ventana de texto. Esto evita tener que " +#~ "desplazarse horizontalmente" + +#~ msgid "" +#~ "Select the Do not split words over two lines option " +#~ "to have the text wrapping option preserve whole words when flowing text " +#~ "to the next line. This makes text easier to read." +#~ msgstr "" +#~ "Seleccione la opción No partir palabras en dos líneas para que la opción de ajustar el texto conserve las palabras " +#~ "enteras cuando el texto salte a la siguiente línea. Esto hace el texto " +#~ "más fácil de leer." + +#~ msgid "" +#~ "Select the Display line numbers option to display " +#~ "line numbers on the left side of the gedit " +#~ "window." +#~ msgstr "" +#~ "Seleccione esta opción para que se muestren números de línea en la parte " +#~ "izquierda de la ventana de gedit." + +#~ msgid "Current Line" +#~ msgstr "Línea actual" + +#~ msgid "" +#~ "Select the Highlight current line option to " +#~ "highlight the line where the cursor is placed." +#~ msgstr "" +#~ "Seleccione la opción Resaltar la línea actual para " +#~ "resaltar la línea donde se ubica el cursor." + +#~ msgid "Right Margin" +#~ msgstr "Margen derecho" + +#~ msgid "" +#~ "Select the Display right margin option to display a " +#~ "vertical line that indicates the right margin." +#~ msgstr "" +#~ "Seleccionar Visualizar margen derecho opción para " +#~ "visualizar la linea vertical que indica el margen derecho." + +#~ msgid "" +#~ "Use the Right margin at column spin box to specify " +#~ "the location of the vertical line." +#~ msgstr "" +#~ "El cuadro de diálogo Imprimir permite especificar " +#~ "las opciones de impresión siguientes." + +#~ msgid "" +#~ "Select the Highlight matching bracket option to " +#~ "highlight the corresponding bracket when the cursor is positioned on a " +#~ "bracket character." +#~ msgstr "" +#~ "Seleccione la opción Resaltar coincidencia de corchetes para resaltar el corchete correspondiente cuando el cursor está " +#~ "posicionado en un carácter corchete." + +#~ msgid "Editor Preferences" +#~ msgstr "Preferencias del Editor" + +#~ msgid "" +#~ "Use the Tab width spin box to specify the width of " +#~ "the space that gedit inserts when you press " +#~ "the Tab key." +#~ msgstr "" +#~ "Use el marcador incrementable Ancho de tabulador " +#~ "para especificar la anchura de espacio que gedit inserta cuando se pulsa la tecla Tabulador." + +#~ msgid "" +#~ "Select the Insert spaces instead of tabs option to " +#~ "specify that gedit inserts spaces instead of " +#~ "a tab character when you press the Tab key." +#~ msgstr "" +#~ "Seleccione la opción Insertar espacios en lugar de tabuladores para especificar que gedit inserte " +#~ "espacios en lugar de caracteres de tabulador al pulsar la tecla " +#~ "Tabulador." + +#~ msgid "Auto Indentation" +#~ msgstr "Sangría automática" + +#~ msgid "" +#~ "Select the Enable auto indentation option to specify " +#~ "that the next line starts at the indentation level of the current line." +#~ msgstr "" +#~ "Seleccione la opción Activar sangría automática para " +#~ "especificar que la línea siguiente empiece con el nivel de sangrado de la " +#~ "línea actual." + +#~ msgid "File Saving" +#~ msgstr "Guardado de archivos" + +#~ msgid "" +#~ "Select the Create a backup copy of files before saving option to create a backup copy of a file each time you save the " +#~ "file. The backup copy of the file contains a ~ at the end of the filename." +#~ msgstr "" +#~ "Seleccione la opción Crear una copia de respaldo de los " +#~ "archivos antes de guardar para crear una copia de seguridad de " +#~ "los archivos cada vez que se procede a guardarlos. La copia de seguridad " +#~ "de un archivo contiene una tilde (~) al final del nombre de archivo." + +#~ msgid "" +#~ "Select the Autosave files every ... minutes option " +#~ "to automatically save the current file at regular intervals. Use the spin " +#~ "box to specify how often you want to save the file." +#~ msgstr "" +#~ "Seleccione la opción Autoguardar archivos cada … minutos para guardar automáticamente el archivo actual a intervalos " +#~ "regulares. Use el marcador incrementable para especificar el intervalo " +#~ "para guardar el archivo." + +#~ msgid "Font & Colors Preferences" +#~ msgstr "Preferencias de Tipografías y colores" + +#~ msgid "Font" +#~ msgstr "Fuentes" + +#~ msgid "" +#~ "Select the Use default theme font option to use the " +#~ "default system font for the text in the gedit " +#~ "text window." +#~ msgstr "" +#~ "Seleccione esta opción para usar la fuente de sistema predeterminada para " +#~ "el texto de la ventana de gedit." + +#~ msgid "" +#~ "The Editor font field displays the font that " +#~ "gedit uses to display text. Click on the " +#~ "button to specify the font type, style, and size to use for text." +#~ msgstr "" +#~ "Este campo muestra la fuente que gedit usa " +#~ "para mostrar texto. Pulse en el botón para especificar el tipo, estilo y " +#~ "tamaño de fuente que desea usar para el texto." + +#~ msgid "" +#~ "You can choose a color scheme from the list of color schemes. By default, " +#~ "the following color schemes are installed:" +#~ msgstr "" +#~ "Puede elegir un esquema de color de la lista de esquemas de colores. Los " +#~ "siguientes esquemas de color están instalados de forma predeterminada:" + +#~ msgid "Classic" +#~ msgstr "Clásico" + +#~ msgid "Classic color scheme based on the gvim color scheme." +#~ msgstr "Esquema de color clásico basado en el esquema de color de gvim." + +#~ msgid "Kate" +#~ msgstr "Kate" + +#~ msgid "Color scheme used in the Kate text editor." +#~ msgstr "Esquema de color usado en el editor de textos Kate." + +#~ msgid "Oblivion" +#~ msgstr "Oblivion" + +#~ msgid "Dark color scheme using the Tango color palette." +#~ msgstr "Esquema de color oscuro usando la paleta de color Tango." + +#~ msgid "Tango" +#~ msgstr "Tango" + +#~ msgid "Color scheme using the Tango color scheme." +#~ msgstr "Esquema de color usando el esquema de color Tango." + +#~ msgid "" +#~ "You can add a new color scheme by clicking on Add..., and selecting a color scheme file" +#~ msgstr "" +#~ "Puede añadir un esquema de color nuevo pulsando en Añadir... y seleccionando un archivo de esquema de color." + +#~ msgid "" +#~ "You can remove the selected color scheme by clicking on Remove" +#~ msgstr "" +#~ "Puede quitar el esquema de color seleccionar pulsando en " +#~ "Quitar" + +#~ msgid "Plugins Preferences" +#~ msgstr "Preferencias de Complementos" + +#~ msgid "" +#~ "Plugins add extra features to gedit. For more " +#~ "information on plugins and how to use the built-in plugins, see ." +#~ msgstr "" +#~ "Los complementos añaden características extras a gedit. Para más información acerca de los complementos y cómo usar " +#~ "los complementos integrados, vea la ." + +#~ msgid "" +#~ "To enable a gedit plugin, perform the " +#~ "following steps:" +#~ msgstr "" +#~ "Para activar un complemento de gedit, realice " +#~ "los siguientes pasos:" + +#~ msgid "" +#~ "Choose EditPreferences." +#~ msgstr "" +#~ "Seleccione Editar " +#~ "Preferencias." + +#~ msgid "Select the Plugins tab." +#~ msgstr "Seleccione la pestaña Complementos." + +#~ msgid "" +#~ "Click Close to close the Preferences dialog." +#~ msgstr "" +#~ "Pulse en Cerrar para cerrar el cuadro de diálogo " +#~ "Preferencias." + +#~ msgid "" +#~ "A plugin remains enabled when you quit gedit." +#~ msgstr "" +#~ "Un complemento permanece activado cuando sale de gedit." + +#~ msgid "" +#~ "To disable a gedit plugin, perform the " +#~ "following steps:" +#~ msgstr "" +#~ "Para desactivar un complemento de gedit, " +#~ "realice los siguientes pasos:" + +#~ msgid "" +#~ "Deselect the check box next to the name of the plugin that you want to " +#~ "disable." +#~ msgstr "" +#~ "Deseleccione la casilla junto al nombre del complemento que desea " +#~ "desactivar." + +#~ msgid "Plugins" +#~ msgstr "Complementos" + +#~ msgid "Working with Plugins" +#~ msgstr "Trabajar con complementos" + +#~ msgid "" +#~ "You can add extra features to gedit by " +#~ "enabling plugins. A plugin is a supplementary " +#~ "program that enhances the functionality of an application. Plugins add " +#~ "new items to the gedit menus for the new " +#~ "features they provide." +#~ msgstr "" +#~ "Puede añadir características extras a gedit " +#~ "añadiendo complementos. Un complemento es un " +#~ "programa suplementario que aumenta la funcionalidad de una aplicación. " +#~ "Los complementos añaden elementos nuevos a los menús de " +#~ "gedit para las características nuevas que " +#~ "proporcionan." + +#~ msgid "" +#~ "Several plugins come built-in with gedit, and " +#~ "you can install more. The gedit website lists third-party plugins." +#~ msgstr "" +#~ "Varios complementos vienen integrados con gedit, y puede instalar más. El sitio web de gedit lista " +#~ "complementos de terceros." + +#~ msgid "" +#~ "To enable and disable plugins, or see which plugins are currently " +#~ "enabled, use the Plugins " +#~ "Preferences." +#~ msgstr "" +#~ "Para activar o desactivar complementos, o ver qué complementos están " +#~ "activados use las Preferencias de " +#~ "complementos." + +#~ msgid "" +#~ "Change Case allows you to change the case of the selected text." +#~ msgstr "" +#~ "Cambio de " +#~ "capitalización le permite cambiar la capitalización " +#~ "del texto seleccionado." + +#~ msgid "" +#~ "Document " +#~ "Statistics shows the number of lines, words, and " +#~ "characters in the document." +#~ msgstr "" +#~ "Estadísticas del documento muestra el número de " +#~ "líneas, palabras, y caracteres en el documento." + +#~ msgid "" +#~ "External " +#~ "Tools allows you to execute external commands from " +#~ "gedit." +#~ msgstr "" +#~ "Herramientas " +#~ "externas le permite ejecutar comandos externos desde " +#~ "gedit." + +#~ msgid "" +#~ "File Browser allows you to browse your files " +#~ "and folders in the side pane." +#~ msgstr "" +#~ "Examinador de archivos le permite examinar sus " +#~ "archivos y carpetas en los paneles laterales." + +#~ msgid "" +#~ "Indent Lines adds or removes indentation from the selected lines." +#~ msgstr "" +#~ "Sangría de " +#~ "líneas añade o elimina la sangría de las líneas " +#~ "seleccionadas." + +#~ msgid "" +#~ "Insert Date/" +#~ "Time adds the current date and time into a document." +#~ msgstr "" +#~ "Insertar " +#~ "fecha/hora añade la fecha actual y la hora a un " +#~ "documento." + +#~ msgid "" +#~ "Modelines allows you to set editing preferences for individual " +#~ "documents, and supports Emacs, " +#~ "Kate and Vim-style " +#~ "modelines." +#~ msgstr "" +#~ "Líneas de modo le permite establecer preferencias de edición para " +#~ "documentos individuales, soportando estilos de líneas de modo de " +#~ "Emacs, Kate y " +#~ "Vim." + +#~ msgid "" +#~ "Python " +#~ "Console allows you to run commands in the python " +#~ "programming language." +#~ msgstr "" +#~ "Consola " +#~ "Python le permite ejecutar comandos en el lenguaje " +#~ "de programación python." + +#~ msgid "" +#~ "Snippets allows you to store frequently-used pieces of text and " +#~ "insert them quickly into a document." +#~ msgstr "" +#~ "El complemento Recortes le permite almacenar trozos de texto " +#~ "usados frecuentemente, llamados recortes, e " +#~ "insertarlos rápidamente en un documento." + +#~ msgid "" +#~ "Sort arranges selected lines of text into alphabetical order." +#~ msgstr "" +#~ "Ordenar ordena las líneas seleccionadas de texto en orden alfabético." + +#~ msgid "" +#~ "Spell Checker corrects the spelling in the selected text, or marks " +#~ "errors automatically in the document." +#~ msgstr "" +#~ "Ortografía corrige la ortografía en el texto seleccionado, o " +#~ "marca errores automáticamente en el documento." + +#~ msgid "" +#~ "Tag List lets you insert commonly-used tags for HTML and other " +#~ "languages from a list in the side pane." +#~ msgstr "" +#~ "Lista de etiquetas le permite insertar etiquetas usadas comúnmente para " +#~ "HTML y otros lenguajes de una lista en el panel lateral." + +#~ msgid "Change Case Plugin" +#~ msgstr "Complemento Cambiar capitalización" + +#~ msgid "" +#~ "The Change Case plugin changes the case of the " +#~ "selected text." +#~ msgstr "" +#~ "El complemento Cambiar capitalización le " +#~ "permite cambiar la capitalización del texto seleccionado." + +#~ msgid "" +#~ "The following items are added to the Edit menu when " +#~ "the Change Case plugin is enabled:" +#~ msgstr "" +#~ "Los siguientes elementos se añaden al menú Editar " +#~ "cuando está activado el complemento Cambiar capitalización:" + +#~ msgid "Menu Item" +#~ msgstr "Elemento del menú" + +#~ msgid "Example" +#~ msgstr "Ejemplo" + +#~ msgid "All Upper Case" +#~ msgstr "Todo en mayúscula" + +#~ msgid "Change each character to uppercase." +#~ msgstr "Cambiar cada carácter a mayúsculas." + +#~ msgid "This text becomes THIS TEXT" +#~ msgstr "" +#~ "Este texto se convierte ESTE TEXTO" + +#~ msgid "All Lower Case" +#~ msgstr "Todo en minúscula" + +#~ msgid "Change each character to lowercase." +#~ msgstr "Cambia cada carácter a minúsculas." + +#~ msgid "This Text becomes this text" +#~ msgstr "" +#~ "Este Texto se convierte en este texto" + +#~ msgid "Invert Case" +#~ msgstr "Capitalización invertida" + +#~ msgid "This Text becomes tHIS tEXT" +#~ msgstr "" +#~ "Este Texto se convierte en eSTE tEXTO" + +#~ msgid "Title Case" +#~ msgstr "Capitalización de título" + +#~ msgid "Change the first character of each word to uppercase." +#~ msgstr "Cambiar el primer carácter de cada palabra a mayúscula." + +#~ msgid "this text becomes This Text" +#~ msgstr "" +#~ "este texto se convierte en Este Texto" + +#~ msgid "" +#~ "The Document Statistics plugin counts the " +#~ "number of lines, words, characters with spaces, characters without " +#~ "spaces, and bytes in the current file. The plugin displays the results in " +#~ "a Document Statistics dialog. To use the Document " +#~ "Statistics plugin, perform the following steps:" +#~ msgstr "" +#~ "El complemento Estadísticas del documento " +#~ "cuenta el número de líneas, palabras, caracteres con espacios, caracteres " +#~ "sin espacios y bytes del archivo actual. El complemento muestra el " +#~ "resultado en un diálogo Estadísticas del documento. " +#~ "Para utilizar el complemento Estadísticas del documento, siga estos pasos:" + +#~ msgid "" +#~ "Choose ToolsDocument " +#~ "Statistics to display the Document " +#~ "Statistics dialog. The Document Statistics dialog displays the following information about the file:" +#~ msgstr "" +#~ "Seleccione HerramientasEstadísticas del documento para abrir el diálogo Estadísticas del documento. El diálogo Estadísticas del documento " +#~ "muestra la información siguiente acerca del archivo:" + +#~ msgid "Number of characters, including spaces, in the current document." +#~ msgstr "Número de caracteres, espacios incluidos, del documento actual." + +#~ msgid "Number of characters, not including spaces, in the current document." +#~ msgstr "Número de caracteres, espacios excluidos, del documento actual." + +#~ msgid "Number of bytes in the current document." +#~ msgstr "Número de bytes del documento actual." + +#~ msgid "" +#~ "You can continue to update the gedit file " +#~ "while the Document Statistics dialog is open. To " +#~ "refresh the contents of the Document Statistics " +#~ "dialog, click Update." +#~ msgstr "" +#~ "Puede seguir actualizando el archivo de gedit " +#~ "mientras el diálogo Estadísticas del documento esté " +#~ "abierto. Para actualizar el contenido del cuadro de diálogo " +#~ "Estadísticas del documento, pulse en el botón " +#~ "Actualizar." + +#~ msgid "" +#~ "The External Tools plugin allows you to " +#~ "execute external commands from gedit. You can " +#~ "pipe some content into a command and exploit its output (for example, " +#~ "sed), or launch a predefined command (for " +#~ "example, make)." +#~ msgstr "" +#~ "El complemento Herramientas externas permite " +#~ "ejecutar comandos externos desde gedit. Puede " +#~ "encauzar contenido a un comando y explotar su salida (por ejemplo, " +#~ "sed), o lanzar un comando predefinido (por " +#~ "ejemplo, make)." + +#~ msgid "" +#~ "Use the External Tools Manager to create and edit " +#~ "commands. To run an external command, choose it from the Tools menu." +#~ msgstr "" +#~ "Use el Gestor de herramientas externas para crear y " +#~ "editar comandos. Para ejecutar un comando externo, elíjalo de entre el " +#~ "menú Herramientas." + +#~ msgid "Built-in Commands" +#~ msgstr "Comandos integrados" + +#~ msgid "" +#~ "The following commands are provided with the External Tools plugin:" +#~ msgstr "" +#~ "Los siguientes comandos se proporcionan con el complemento " +#~ "Herramientas externas:" + +#~ msgid "Build" +#~ msgstr "Construir" + +#~ msgid "" +#~ "Runs make in the current document's directory." +#~ msgstr "" +#~ "Ejecuta la aplicación make en el directorio " +#~ "del documento actual." + +#~ msgid "Directory Listing" +#~ msgstr "Listado de directorio" + +#~ msgid "" +#~ "Lists the contents of the current document's directory in a new document." +#~ msgstr "" +#~ "Lista el contenido del directorio del documento actual en un nuevo " +#~ "documento." + +#~ msgid "Environment Variables" +#~ msgstr "Variables de entorno" + +#~ msgid "Displays the environment variables list in the bottom pane." +#~ msgstr "Muestra la lista de variables de entorno en el panel inferior." + +#~ msgid "Grep" +#~ msgstr "Grep" + +#~ msgid "" +#~ "Searches for a term in all files in the current document directory, using " +#~ "pattern matching. Results are shown in the bottom pane." +#~ msgstr "" +#~ "Busca un término en todos los archivos en el directorio actual del " +#~ "documento, usando coincidencia de patrones. El resultado se muestra en el " +#~ "panel inferior." + +#~ msgid "Removes all spaces from the end of lines in the document." +#~ msgstr "Quita todos los espacios del final de las líneas en el documento." + +#~ msgid "Defining a Command" +#~ msgstr "Definir un comando" + +#~ msgid "" +#~ "To add an external command, choose ToolsExternal Tools." +#~ msgstr "" +#~ "Para añadir un comando externo, elija HerramientasHerramientas externas." + +#~ msgid "" +#~ "In the External Tools Manager window, click " +#~ "New. You can speficy the following details for the " +#~ "new command:" +#~ msgstr "" +#~ "En la ventana del Gestor de herramientas externas, " +#~ "pulse Nuevo. Puede especificar los siguientes " +#~ "detalles para el comando nuevo:" + +#~ msgid "" +#~ "This description is shown in the statusbar when the menu command is " +#~ "chosen." +#~ msgstr "" +#~ "Esta descripción se muestra en la barra de estado cuando se elije el " +#~ "comando de menú." + +#~ msgid "Accelerator" +#~ msgstr "Acelerador" + +#~ msgid "Enter a keyboard shortcut for the command." +#~ msgstr "Introduzca un atajo de teclado para el comando." + +#~ msgid "Commands" +#~ msgstr "Comandos" + +#~ msgid "" +#~ "The actual commands to be run. Several gedit " +#~ "environment variables can be used to pass content to these commands: see " +#~ "." +#~ msgstr "" +#~ "Los comandos actuales para ejecutar. Se pueden usar varias variables de " +#~ "entorno de gedit para pasar contenido a estos " +#~ "comandos: vea ." + +#~ msgid "Input" +#~ msgstr "Entrada" + +#~ msgid "" +#~ "The content to give to the commands (as stdin): " +#~ "the entire text of the current document, the current selection, line, or " +#~ "word." +#~ msgstr "" +#~ "El contenido para dar a los comandos (como stdin): el texto entero del documento actual, la selección, la " +#~ "línea o palabra actual." + +#~ msgid "Output" +#~ msgstr "Salida" + +#~ msgid "" +#~ "What to do with the output of the commands: display in the bottom pane, " +#~ "put in a new document, or place in the current document, at the end, at " +#~ "the cursor position, or replacing the selection or the entire document." +#~ msgstr "" +#~ "Qué hacer con la salida de los comandos: mostrarla en el panel inferior, " +#~ "ponerla en un documento nuevo, colocarla en el documento actual, al " +#~ "final, en la posición del cursor, o reemplazar la selección del documento " +#~ "entero." + +#~ msgid "Applicability" +#~ msgstr "Aplicabilidad" + +#~ msgid "" +#~ "Determines which sort of documents can be affected by the command, for " +#~ "example whether saved or not, and local or remote." +#~ msgstr "" +#~ "Determina qué clase de documentos pueden verse afectados por el comando, " +#~ "por ejemplo si están guardados o no, los locales o los remotos." + +#~ msgid "Editing and Removing Tools" +#~ msgstr "Editar y quitar herramientas" + +#~ msgid "" +#~ "To edit a tool, select it in the list and make changes to its properties." +#~ msgstr "" +#~ "Para editar una herramienta, selecciónela en la lista y haga cambios a " +#~ "sus propiedades." + +#~ msgid "To rename a tool, click it again in the list." +#~ msgstr "Para renombrar una herramienta, pulse otra vez en la lista." + +#~ msgid "" +#~ "To restore a built-in tool that you have changed, press Revert." +#~ msgstr "" +#~ "Para restaurar una herramienta integrada que haya modificado, pulse " +#~ "Revertir." + +#~ msgid "" +#~ "To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have " +#~ "created yourself." +#~ msgstr "" +#~ "Para quitar una herramienta, selecciónela en la lista y pulse " +#~ "Quitar. No puede quitar los herramientas " +#~ "integradas, sólo aquellas que haya creado." + +#~ msgid "Variables" +#~ msgstr "Variables" + +#~ msgid "" +#~ "You can use the following variables in the Commands " +#~ "field of the command definition:" +#~ msgstr "" +#~ "Puede usar las siguientes variables en el campo Comandos de la definición del comando:" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_URI" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_URI" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_NAME" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_NAME" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_SCHEME" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_PATH" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_PATH" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_DIR" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_DIR" + +#~ msgid "GEDIT_DOCUMENTS_URI" +#~ msgstr "GEDIT_DOCUMENTS_URI" + +#~ msgid "GEDIT_DOCUMENTS_PATH" +#~ msgstr "GEDIT_DOCUMENTS_PATH" + +#~ msgid "" +#~ "The File Browser Plugin shows your files and " +#~ "folders in the side pane, allowing you to quickly open files." +#~ msgstr "" +#~ "El complemento del Examinador de archivos " +#~ "muestra sus archivos y carpetas en el panel lateral, permitiéndole abrir " +#~ "rápidamente archivos." + +#~ msgid "Browsing your Files" +#~ msgstr "Examinar sus archivos" + +#~ msgid "" +#~ "The File Browser tab initially shows your file manager bookmarks. To " +#~ "browse the contents of any item, double-click it." +#~ msgstr "" +#~ "La pestaña del visor de archivos muestra inicialmente sus marcadores del " +#~ "gestor de archivos. Para examinar el contenido de cualquier elemento, " +#~ "pulse dos veces en él." + +#~ msgid "" +#~ "To show a parent folder, choose from the drop-down list, or press the up " +#~ "arrow on the File Browser's toolbar." +#~ msgstr "" +#~ "Para mostrar una carpeta madre, elija de la lista desplegable, o pulse la " +#~ "flecha arriba en la barra de herramientas del gestor de archivos." + +#~ msgid "" +#~ "To show the folder that contains the document you are currently working " +#~ "on, right-click in the file list and choose Set root to " +#~ "active document." +#~ msgstr "" +#~ "Para mostrar la carpeta que contiene el documento en el que está " +#~ "trabajando actualmente, pulse dos veces en la lista del archivo y elija " +#~ "Establecer raíz al documento activo." + +#~ msgid "" +#~ "To open a file in gedit, double-click it in " +#~ "the file list." +#~ msgstr "" +#~ "Para abrir un archivo en gedit, pulse dos " +#~ "veces en él en la lista de archivos." + +#~ msgid "Creating Files and Folders" +#~ msgstr "Crear archivos y carpetas" + +#~ msgid "" +#~ "To create a new, empty text file in the current folder shown in the " +#~ "browser, right-click in the file list and choose New File." +#~ msgstr "" +#~ "Para crear un archivo de texto nuevo vacío en la carpeta actual mostrada " +#~ "en el examinador, pulse con el botón derecho en la lista de archivos y " +#~ "elija Archivo nuevo." + +#~ msgid "" +#~ "To create a new folder in the current folder shown in the browser, right-" +#~ "click in the file list and choose New Folder." +#~ msgstr "" +#~ "Para crear una carpeta nueva en la carpeta actual mostrada en el " +#~ "examinador, pulse con el botón derecho en la lista de archivos y elija " +#~ "Nueva carpeta." + +#~ msgid "Indent Lines Plugin" +#~ msgstr "Complemento Sangrar líneas" + +#~ msgid "" +#~ "The Indent Lines plugin adds or removes space " +#~ "from the beginning of lines of text." +#~ msgstr "" +#~ "El complemento de Sangrar líneas añade o quita " +#~ "espacio del principio de las líneas de texto." + +#~ msgid "To indent or unindent text, perform the following steps:" +#~ msgstr "" +#~ "Para sangrar o quitar la sangría del texto, realice los siguientes pasos:" + +#~ msgid "" +#~ "To indent the text, choose EditIndent." +#~ msgstr "" +#~ "Para sangrar el texto, elija EditarSangrar." + +#~ msgid "" +#~ "To remove the indentation, choose EditUnindent." +#~ msgstr "" +#~ "Para anular la sangría, seleccione elija EditarQuitar sangría." + +#~ msgid "" +#~ "The amount of space used, and whether tab character or space characters " +#~ "are used, depends on the Tab Stops settings in the " +#~ "Editor Preferences: see ." +#~ msgstr "" +#~ "La cantidad de espacio usado, y dependiendo de si se usan caracteres de " +#~ "tabulación o caracteres de espacio, depende de los ajustes de " +#~ "Puntos de tabulación en las preferencias del Editor: " +#~ "vea ." + +#~ msgid "" +#~ "The Insert Date/Time plugin inserts the " +#~ "current date and time into a document. To use the Insert Date/Time " +#~ "plugin, perform the following steps:" +#~ msgstr "" +#~ "El complemento Insertar fecha/hora inserta la " +#~ "fecha y la hora actuales en un documento. Para utilizar el complemento " +#~ "Insertar fecha/hora, realice los siguientes pasos:" + +#~ msgid "" +#~ "Choose EditInsert Date and " +#~ "Time." +#~ msgstr "" +#~ "Seleccione EditarInsertar " +#~ "fecha y hora." + +#~ msgid "" +#~ "If you have not configured the Insert Date/Time plugin to automatically " +#~ "insert the date/time without prompting you for the format, " +#~ "gedit displays the Insert Date and " +#~ "Time dialog. Select the appropriate date/time format from the " +#~ "list. Click Insert to close the Insert " +#~ "Date and Time dialog. gedit inserts " +#~ "the date/time at the cursor position in the current file." +#~ msgstr "" +#~ "Si no ha configurado el complemento Insertar fecha/hora para insertar " +#~ "automáticamente la fecha y la hora sin solicitar el formato, " +#~ "gedit mostrará el diálogo Insertar " +#~ "fecha y hora. Seleccione el formato de fecha/hora apropiado en " +#~ "la lista. Pulse en el botón Insertar para cerrar " +#~ "el diálogo Insertar fecha y hora;gedit insertará la fecha y la hora en el archivo actual, en la " +#~ "posición del cursor." + +#~ msgid "" +#~ "If you have configured gedit to use one " +#~ "particular date/time format, the Insert Date and Time dialog is not displayed. The date/time is automatically entered " +#~ "at the cursor position in the current file." +#~ msgstr "" +#~ "Si ha configurado gedit para que utilice un " +#~ "formato de fecha/hora especifico, no se mostrará el diálogo " +#~ "Insertar fecha y hora; la fecha y la hora se " +#~ "insertarán automáticamente en el archivo actual, en la posición del " +#~ "cursor." + +#~ msgid "" +#~ "To configure the Insert Date/Time plugin, perform the following steps:" +#~ msgstr "" +#~ "Para configurar el complemento Insertar fecha/hora, realice los " +#~ "siguientes pasos:" + +#~ msgid "Select the Insert Date/Time plugin." +#~ msgstr "Seleccione el complemento Insertar fecha/hora." + +#~ msgid "" +#~ "Click Configure Plugin to display the " +#~ "Configure insert date/time plugin dialog." +#~ msgstr "" +#~ "Pulse en Configurar el complemento para abrir el " +#~ "cuadro de diálogo Configurar el complemento Insertar fecha/" +#~ "hora." + +#~ msgid "Select one of the options, as follows:" +#~ msgstr "Seleccione una de las siguientes opciones:" + +#~ msgid "" +#~ "To specify the date/time format each time you insert the date/time, " +#~ "select the Prompt for a format option." +#~ msgstr "" +#~ "Para especificar el formato de fecha/hora cada vez que inserte este dato, " +#~ "seleccione la opción Preguntar por un formato." + +#~ msgid "" +#~ "To use the same gedit-provided date/time " +#~ "format each time you insert the date/time, select the Use the " +#~ "selected format option, then select the appropriate format " +#~ "from the list. When you select this option, gedit does not prompt you for the date/time format when you choose " +#~ "EditInsert Date and Time." +#~ msgstr "" +#~ "Para utilizar el mismo formato, proporcionado por la aplicación " +#~ "gedit, cada vez que se inserte la fecha o la " +#~ "hora, seleccione la opción Usar el formato seleccionado y elija el formato apropiado en la lista. Si se selecciona esta " +#~ "opción, gedit no solicita el formato de fecha/" +#~ "hora cuando se elige EditarInsertar fecha/hora." + +#~ msgid "" +#~ "To use the same customized date/time format each time you insert the date/" +#~ "time, select the Use custom format option, then " +#~ "enter the appropriate format in the text box. For more information about " +#~ "how to specify a custom format, see strftime3. When you select this option, " +#~ "gedit does not prompt you for the date/time " +#~ "format when you choose EditInsert Date and Time." +#~ msgstr "" +#~ "Para utilizar el mismo formato personalizado cada vez que se inserte la " +#~ "fecha o la hora, seleccione la opción Usar el formato " +#~ "personalizado y escriba el formato apropiado en el cuadro de " +#~ "texto. Para obtener más información acerca de cómo especificar un formato " +#~ "personalizado, consulte strftime3. Si se selecciona esta opción, " +#~ "gedit no solicita el formato de fecha/hora " +#~ "cuando se elige EditarInsertar fecha/hora." + +#~ msgid "" +#~ "Click OK to close the Configure insert " +#~ "date/time plugin dialog." +#~ msgstr "" +#~ "Pulse en Aceptar para cerrar el cuadro de diálogo " +#~ "Configurar el complemento Insertar fecha/hora." + +#~ msgid "Modelines Plugin" +#~ msgstr "Complemento líneas de modo" + +#~ msgid "" +#~ "The Modelines plugin allows you to set " +#~ "preferences for individual documents. A modeline " +#~ "is a line of text at the start or end of the document with settings that " +#~ "gedit recognises." +#~ msgstr "" +#~ "El complemento Líneas de modo le permite " +#~ "establecer preferencias para documentos individuales. Una " +#~ "línea de modo es una línea de texto al principio o " +#~ "final del documento con ajustes que gedit " +#~ "reconoce." + +#~ msgid "You can set the following preferences with modelines:" +#~ msgstr "Puede establecer las siguientes preferencias con líneas de modos:" + +#~ msgid "" +#~ "The Modelines plugin supports a subset of the " +#~ "options used by other text editors Emacs, " +#~ "Kate and Vim." +#~ msgstr "" +#~ "El complemento Líneas de Modos soporta un " +#~ "subconjunto de las opciones usadas por los otros editores de texto " +#~ "Emacs, Kate y " +#~ "Vim." + +#~ msgid "" +#~ "The Emacs options for tab-width, indent-" +#~ "offset, indent-tabs-mode and autowrap are supported. For more " +#~ "information, see the GNU Emacs Manual." +#~ msgstr "" +#~ "Se soportan las opciones Emacs para tab-width, " +#~ "indent-offset, indent-tabs-mode y autowrap. Para obtener más información, " +#~ "consulte el manual de GNU Emacs." + +#~ msgid "" +#~ "The Kate options for tab-width, indent-width, " +#~ "space-indent, word-wrap and word-wrap-column are supported. For more " +#~ "information, see the Kate website." +#~ msgstr "" +#~ "Se soportan las opciones Kate para tab-width, " +#~ "indent-width, space-indent, word-wrap and word-wrap-column. Para más " +#~ "información, vea el sitio web de Kate." + +#~ msgid "" +#~ "The Vim options for et, expandtab, ts, " +#~ "tabstop, sw, shiftwidth, wrap, and textwidth are supported. For more " +#~ "information, see the Vim website." +#~ msgstr "" +#~ "Se soportan las opciones Vim para et, " +#~ "expandtab, ts, tabstop, sw, shiftwidth, wrap, y textwidth. Para obtener " +#~ "más información, consulte la \">página web de Vim." + +#~ msgid "" +#~ "The Python Console Plugin allows you to run " +#~ "commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This " +#~ "shows recent output and a command prompt field." +#~ msgstr "" +#~ "El complemento Consola Python le permite " +#~ "ejecutar comandoes en el lenguaje de programación Python desde " +#~ "gedit. Activando el complemento se añade una " +#~ "pestaña al panel inferior. Esta muestra su salida reciente y un campo de " +#~ "entrada de comandos." + +#~ msgid "" +#~ "Commands entered into the python console are not checked before they are " +#~ "run. It is therefore possible to hang gedit, " +#~ "for example by entering an infinite loop." +#~ msgstr "" +#~ "Los comandos introducidos en la consola de python no se comprueban antes " +#~ "de ejecutarlos. Es posible entonces colgar gedit, por ejemplo entrando un bucle infinito." + +#~ msgid "" +#~ "The Snippets plugin allows you to store " +#~ "frequently-used pieces of text, called snippets, " +#~ "and insert them quickly into a document." +#~ msgstr "" +#~ "El complemento Recortes le permite almacenar " +#~ "trozos de texto usados frecuentemente, llamados recortes, e insertarlos rápidamente en un documento." + +#~ msgid "" +#~ "Snippets are specific to the language syntax of the current document. For " +#~ "example, when you are working with an HTML document, you can choose from " +#~ "a list of snippets that are useful for HTML. In addition, some snippets " +#~ "are global, and are available in all documents." +#~ msgstr "" +#~ "Los recortes son específicos a la sintaxis del lenguaje del documento " +#~ "actual. Por ejemplo, cuando esta trabajando en un documento HTML, puede " +#~ "elegir de una lista de recortes que son útiles para HTML. Además, algunos " +#~ "recortes son globales, y están disponibles para todos los documentos." + +#~ msgid "" +#~ "A number of built-in snippets are installed with gedit, which can be modified." +#~ msgstr "" +#~ "Junto con gedit, se instalan varios recortes, " +#~ "que pueden modificarse." + +#~ msgid "" +#~ "To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +#~ "usually the first few letters of the snippet, or something else that is " +#~ "short and easy to remember." +#~ msgstr "" +#~ "Para insertar un recorte en un documento, teclee su " +#~ "disparador y pulse Tab. El " +#~ "disparador de un recorte es usualmente las primeras pocas letras del " +#~ "recorte, o algo parecido que sea corto y fácil de recordar." + +#~ msgid "" +#~ "Alternatively, press CtrlSpace to see a list of snippets you can insert." +#~ msgstr "" +#~ "Alternativamente, pulse CtrlEspacio para ver una lista de recortes que puede insertar." + +#~ msgid "" +#~ "Choose ToolsManage Snippets. The Snippets Manager " +#~ "window opens." +#~ msgstr "" +#~ "Seleccione HerramientasGestión de Recortes. La " +#~ "ventana del Gestor de Recortes se abre." + +#~ msgid "" +#~ "The list of snippets is grouped by language. Select the language you want " +#~ "to add a snippet to, or a snippet in that language group. To add a " +#~ "snippet for all languages, choose Global at the top of the list. The " +#~ "syntax of the document you are currently working with is shown by default." +#~ msgstr "" +#~ "La lista de recortes esta agrupada por lenguajes. Seleccione el lenguaje " +#~ "con el que quiere añadir el recorte, o un recorte en ese grupo de " +#~ "lenguajes. Para añadir un recorte para todos los lenguajes, elija Global " +#~ "en la parte superior de la lista. La sintaxis del documento con el que " +#~ "esta trabajando actualmente se muestra por omisión." + +#~ msgid "Click New. A new snippet appears in the list." +#~ msgstr "" +#~ "Pulse Nuevo. Aparece un recorte nuevo en la lista." + +#~ msgid "Enter the following information for the new snippet:" +#~ msgstr "Introduzca la siguiente información para el recorte nuevo:" + +#~ msgid "Name" +#~ msgstr "Nombre" + +#~ msgid "" +#~ "Enter a name for the snippet in the text field within the snippet list. " +#~ "The name of a snippet serves only as a reminder of its purpose. You can " +#~ "change name of a snippet you create by clicking on it in the list." +#~ msgstr "" +#~ "Introduzca un nombre para el recorte en el campo de texto dentro de la " +#~ "lista de recortes. El nombre de un recorte sirve sólo como recordatorio " +#~ "de su propósito. Puede cambiar el nombre de un recorte que cree para " +#~ "pulsar en él en la lista." + +#~ msgid "Snippet text" +#~ msgstr "Texto del recorte" + +#~ msgid "" +#~ "Enter the text of the snippet in the Edit snippet " +#~ "text box. For special codes you can use, see ." +#~ msgstr "" +#~ "Introduzca el texto del recorte en la caja de texto Editar " +#~ "recorte. Para códigos especiales, que pueda usar, vea ." + +#~ msgid "" +#~ "You can switch back to the document window to copy text without closing " +#~ "the Snippets Manager window." +#~ msgstr "" +#~ "Puede volver a la ventana del documento para copiar texto sin cerrar la " +#~ "ventana del Gestor de recortes." + +#~ msgid "Tab Trigger" +#~ msgstr "Disparador de tabulador" + +#~ msgid "" +#~ "Enter the tab trigger for the snippet. This is the text that you type " +#~ "before pressing Tab to insert the snippet." +#~ msgstr "" +#~ "Introduzca el disparado para el recorte. Este es el texto que teclea " +#~ "antes de pulsar la tecla Tab para insertar el recorte." + +#~ msgid "" +#~ "The tag must be either a single word comprising only letters, or any " +#~ "single character. The Tab trigger will highlight in " +#~ "red if an invalid tab trigger is entered." +#~ msgstr "" +#~ "La etiqueta debe ser o una sola palabra comprendiendo sólo letras, o " +#~ "cualquier carácter en solitario. El disparador se " +#~ "resaltará en rojo si se introduce un disparador inválido." + +#~ msgid "Type a shortcut key to use for inserting the snippet." +#~ msgstr "" +#~ "Teclee una tecla de acceso rápido para usarla para insertar el recorte." + +#~ msgid "" +#~ "To edit a snippet, select it in the list and make changes to its text and " +#~ "activation properties." +#~ msgstr "" +#~ "Para editar un recorte, selecciónelo en la lista y haga cambios a sus " +#~ "propiedades de activación de texto." + +#~ msgid "To rename a snippet, click it again in the list." +#~ msgstr "Para renombrar un recorte, pulse otra vez en la lista." + +#~ msgid "" +#~ "To restore a built-in snippet that you have changed, press " +#~ "Revert." +#~ msgstr "" +#~ "Para restaurar un recorte integrado que haya modificado, pulse " +#~ "Revertir." + +#~ msgid "" +#~ "To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +#~ "created yourself." +#~ msgstr "" +#~ "Para quitar un disparador, selecciónelo en la lista y pulse " +#~ "Quitar. No puede quitar los recortes integrados, " +#~ "sólo aquellos que usted haya creado." + +#~ msgid "Snippet Substitutions" +#~ msgstr "Sustituciones de recortes" + +#~ msgid "" +#~ "In addition to inserting stored text, a snippet can include customizable " +#~ "text, or mark spaces where you can add text once the snippet is inserted " +#~ "in your document." +#~ msgstr "" +#~ "Además de insertar texto almacenado, un recorte puede incluir texto " +#~ "personalizado, o marcar espacios donde puede añadir texto una vez que el " +#~ "recorte se ha insertado en su documento." + +#~ msgid "You can use the following placeholder codes in snippet text:" +#~ msgstr "" +#~ "Puede usar los siguientes códigos de reserva de espacio en el texto del " +#~ "recorte:" + +#~ msgid "Tab placeholders" +#~ msgstr "Reservas de espacio para tabuladores" + +#~ msgid "" +#~ "$n defines a tab " +#~ "placeholder, where n is any number from 1 upwards." +#~ msgstr "" +#~ "$n define un lugar de " +#~ "reserva de tabulador donde n es cualquier número " +#~ "desde 1 en adelante." + +#~ msgid "" +#~ "${n:default} defines a tab placeholder with a default value." +#~ msgstr "" +#~ "${n:default} define una reserva de espacio de tabulación con " +#~ "un valor diferente." + +#~ msgid "" +#~ "A tab placeholder marks a place in the snippet text where you can add " +#~ "extra text after the snippet is inserted." +#~ msgstr "" +#~ "Una reserva de espacio de tabulación marca un lugar en el texto de un " +#~ "recorte donde puede añadir texto adicional después de insertar el recorte." + +#~ msgid "" +#~ "To use tab placeholders, insert the snippet as normal. The cursor is " +#~ "placed at the first tab placeholder. Type text, and press Tab to advance to the next tab placeholder. The number in the " +#~ "placeholder code defines the order in which tab advances to each place in " +#~ "the text." +#~ msgstr "" +#~ "Para usar las reservas de espacio, inserte el recorte de forma normal. El " +#~ "cursor se coloca en la primera reserva de espacio. Teclee el texto, pulse " +#~ "la tecla Tab para avanzar a la siguiente reserva de " +#~ "espacio. El número en el código de la reserva de espacio define el orden " +#~ "en que cada tabulación avanza a cada lugar del texto." + +#~ msgid "" +#~ "Press ShiftTab to " +#~ "return to the previous tab placeholder. Pressing Tab " +#~ "when there are no more tab placeholders moves the cursor to the end of " +#~ "the snippet text, or to the end placeholder if it exists." +#~ msgstr "" +#~ "Pulse MayúsTab " +#~ "para volver al anterior reserva de espacio para tabulador. Pulsando " +#~ "Tab cuando no hay más reservas de espacio de tabulador " +#~ "mueve el cursor al final del recorte de texto, o a la reserva de espacio " +#~ "al final si existe." + +#~ msgid "Mirror placeholders" +#~ msgstr "Replicar reservas de espacio" + +#~ msgid "" +#~ "A repeated tab placeholder will mirror the placeholder already defined. " +#~ "This allows you to type in text only once that you want to appear several " +#~ "times in the snippet." +#~ msgstr "" +#~ "Una reserva de espacio repetida replicará la reserva de espacio ya " +#~ "definida. Esto permite teclear texto sólo una vez cuando quiere que " +#~ "aparezca varias veces en el recorte." + +#~ msgid "End placeholder" +#~ msgstr "Terminar reserva de espacio" + +#~ msgid "" +#~ "$0 defines the end placeholder. This allows you to " +#~ "finish working with the snippet with the cursor at a point other than the " +#~ "end of the snippet text." +#~ msgstr "" +#~ "$0 define el final de la reserva de espacio. Esto le " +#~ "permite terminar de trabajar con el recorte con el cursor en un punto " +#~ "distinto que el final del texto recortado." + +#~ msgid "Environmental variables" +#~ msgstr "Variables de entorno" + +#~ msgid "" +#~ "Environmental variable such as $PATH and " +#~ "$HOME are substituted in snippet text. The following variables " +#~ "specific to gedit can also be used:" +#~ msgstr "" +#~ "Las variables de entorno como $PATH y $HOME se sustituyen en el texto del recorte. Las siguientes variables " +#~ "específicas de gedit se pueden usar también:" + +#~ msgid "$GEDIT_SELECTED_TEXT" +#~ msgstr "$GEDIT_SELECTED_TEXT" + +#~ msgid "$GEDIT_FILENAME" +#~ msgstr "$GEDIT_FILENAME" + +#~ msgid "" +#~ "The full filename of the document, or an empty string if the document " +#~ "isn't saved yet." +#~ msgstr "" +#~ "El nombre completo del documento, o una cadena vacía si el documento no " +#~ "está guardado aún." + +#~ msgid "$GEDIT_BASENAME" +#~ msgstr "$GEDIT_BASENAME" + +#~ msgid "" +#~ "The basename of the filename of the document, or an empty string if the " +#~ "document isn't saved yet." +#~ msgstr "" +#~ "El nombre base del nombre de archivo del documento, o una cadena vacía si " +#~ "el documento aún no se ha guardado." + +#~ msgid "$GEDIT_CURRENT_WORD" +#~ msgstr "$GEDIT_CURRENT_WORD" + +#~ msgid "" +#~ "The word at the cursor's location in the document. When this variable is " +#~ "used, the current word will be replaced by the snippet text." +#~ msgstr "" +#~ "La palabra en al lugar del cursor en el documento. Cuando esta variable " +#~ "se esté usando, la palabra actual se reemplazará con el texto del recorte." + +#~ msgid "Shell placeholders" +#~ msgstr "Reservas de espacio de shell" + +#~ msgid "" +#~ "$(cmd) is replaced by the " +#~ "result of executing cmd in a shell." +#~ msgstr "" +#~ "$(cmd) se reemplaza por el " +#~ "resultado de ejecutar cmd en una shell." + +#~ msgid "" +#~ "$(n:cmd) allows you to give this placeholder a reference, where " +#~ "n is any number from 1 upwards. Use " +#~ "$n to use the output from one shell " +#~ "placeholder as input in another." +#~ msgstr "" +#~ "$(n:cmd) le permite dar esta reserva de espacio una referencia, donde " +#~ "n es cualquier número desde 1 hacia adelante. " +#~ "Use $n para usar la salida " +#~ "desde una reserva de espacio de shell como entrada en otra." + +#~ msgid "Python placeholders" +#~ msgstr "Reservas de espacio de Python" + +#~ msgid "" +#~ "$<cmd> is replaced by " +#~ "the result of evaluating cmd in the python " +#~ "interpreter." +#~ msgstr "" +#~ "$<cmd> se reemplaza " +#~ "por el resultado de evaluar cmd en el " +#~ "intérprete de python." + +#~ msgid "" +#~ "$<a:cmd> specifies another python placeholder as a " +#~ "dependency, where a gives its order in the " +#~ "snippet. This allows you to use python functions defined in another " +#~ "snippet. To specify several dependencies, separate the numbers with " +#~ "commas thus: $<a,b:cmd>" +#~ msgstr "" +#~ "$<a:cmd> especifica otra reserva de espacio python como " +#~ "una dependencia, donde a da su orden en el " +#~ "recorte. Esto le permite usar funciones python definidas en otro recorte. " +#~ "Para especificar varias dependencias, separe los números con comas así: " +#~ "$<a,b:" +#~ "cmd>" + +#~ msgid "" +#~ "To use a variable in all other python snippets, declare it as " +#~ "global." +#~ msgstr "" +#~ "Para usar una variable en todos los otros recortes de python, declárela " +#~ "como global." + +#~ msgid "" +#~ "Choose EditSort. The Sort dialog opens." +#~ msgstr "" +#~ "Seleccione EditarOrdenar. El diálogo Ordenar se " +#~ "abre." + +#~ msgid "" +#~ "To arrange the text in reverse order, select Reverse order." +#~ msgstr "" +#~ "Para ordenar el texto en orden inverso, seleccione la opción " +#~ "Orden inverso." + +#~ msgid "" +#~ "To delete duplicate lines, select Remove duplicates." +#~ msgstr "" +#~ "Para borrar las líneas duplicadas, seleccione la opción " +#~ "Eliminar duplicados." + +#~ msgid "To ignore case sensitivity, select Ignore case." +#~ msgstr "" +#~ "Para no distinguir entre mayúsculas y minúsculas, seleccione la opción " +#~ "Ignorar capitalización." + +#~ msgid "" +#~ "The Spell Checker plugin checks the spelling " +#~ "in the selected text. You can configure gedit " +#~ "to check the spelling automatically, or you can check the spelling " +#~ "manually, in the specified language. The language setting, and the " +#~ "autocheck spelling properties, apply per document. To use the Spell " +#~ "checker plugin, perform the following steps:" +#~ msgstr "" +#~ "El complemento Corrector ortográfico revisa la ortografía del texto " +#~ "seleccionado. Puede configurar gedit para " +#~ "revisar la ortografía automáticamente, o puede revisar la ortografía " +#~ "manualmente, en el idioma especificado. El idioma y las propiedades del " +#~ "revisor de ortografía, se aplican por cada documento. Para usar el " +#~ "complemento Corrector ortográfico, realice los siguientes pasos:" + +#~ msgid "" +#~ "Choose ToolsSet Language to display the Set language dialog. Select the appropriate language from the list. Click " +#~ "OK to close the Set language " +#~ "dialog." +#~ msgstr "" +#~ "Para abrir un archivo, seleccione HerramientasEstablecer idioma… para " +#~ "que se muestre el cuadro de diálogo Establecer idioma…. Seleccione el idioma apropiado de la lista. Pulse " +#~ "Aceptar para cerrar el cuadro de diálogo " +#~ "Establecer idioma…." + +#~ msgid "" +#~ "To check the spelling automatically, choose ToolsAutocheck Spelling. To " +#~ "unset the automatic spell check, choose ToolsAutocheck Spelling again. " +#~ "When automatic spell checking is set, an icon is displayed beside the " +#~ "Autocheck Spelling menu item. Automatic spell " +#~ "checking is unset by default, each time gedit " +#~ "starts." +#~ msgstr "" +#~ "Para revisar la ortografía automáticamente, seleccione " +#~ "HerramientasRevisar " +#~ "Ortografía Automáticamente. Para quitar el " +#~ "revisor de ortografía automático, seleccione " +#~ "HerramientasRevisar " +#~ "ortografía automáticamente otra vez. Cuando el " +#~ "revisor de ortografía automático es seleccionado, un icono se visualiza " +#~ "al lado de Revisar Ortografía Automáticamente " +#~ "artículo de menú. El revisor de ortografía automático está sin " +#~ "seleccionar por omisión, cada vez que gedit " +#~ "comienza." + +#~ msgid "" +#~ "Unknown spellings are displayed in a different color, and underlined. " +#~ "Right-click on an unknown spelling, then select Spelling " +#~ "Suggestions from the popup menu:" +#~ msgstr "" +#~ "Las ortografías desconocidas se muestran en un color diferente, y " +#~ "subrayado. Pulse en el botón derecho en una ortografía desconocida, " +#~ "después seleccione Sugerencias de ortografía del menú " +#~ "emergente:" + +#~ msgid "" +#~ "To replace the unknown spelling with another spelling in the list, select " +#~ "the replacement spelling from the Spelling Suggestions " +#~ "popup menu." +#~ msgstr "" +#~ "Para sustituir la ortografía desconocida por otra ortografía en la lista, " +#~ "seleccione sustituir ortografía desde Sugerencias de ortografía del menú emergente." + +#~ msgid "" +#~ "To add the unknown spelling to your personal dictionary, select " +#~ "Spelling SuggestionsAdd." +#~ msgstr "" +#~ "Para anular la sangría, seleccione las líneas y elija " +#~ "EditarAnular sangría." + +#~ msgid "" +#~ "To ignore all occurrences of the unknown spelling, so that they are no " +#~ "longer flagged as unknown but are not added to your personal dictionary, " +#~ "select Spelling SuggestionsIgnore All. The unknown " +#~ "word is ignored in the current gedit session " +#~ "only." +#~ msgstr "" +#~ "Para ignorar todas las palabras de ortografía desconocida, así que no se " +#~ "volverán a ver como desconocidas pero no serán añadidas a su diccionario " +#~ "personal, seleccione Sugerencias de ortografíaIgnorar todo. La palabra " +#~ "desconocida es ignorada sólo en la actual sesión de gedit." + +#~ msgid "" +#~ "To check the spelling manually, choose ToolsCheck Spelling." +#~ msgstr "" +#~ "Para seleccionar todo el texto de un archivo, seleccione " +#~ "EditarSeleccionar todo." + +#~ msgid "" +#~ "If there are no spelling errors, an Information " +#~ "dialog displays a message stating that the document does not contain " +#~ "misspelled words. Click OK to close the " +#~ "Information dialog." +#~ msgstr "" +#~ "Si no hay errores de ortografía, un diálogo de Información visualiza un mensaje expone que el documento no contiene " +#~ "palabras mal escritas. Pulse Aceptar para cerrar " +#~ "el diálogo de Información." + +#~ msgid "" +#~ "If there are spelling errors, the Check Spelling " +#~ "dialog is displayed:" +#~ msgstr "" +#~ "Si hay errores de ortografía, el Revisor de Ortografía diálogo se visualiza:" + +#~ msgid "" +#~ "The Misspelled word is displayed at the top of the " +#~ "dialog." +#~ msgstr "" +#~ "La Palabra mal escrita se visualiza en la parte de " +#~ "arriba del diálogo." + +#~ msgid "" +#~ "A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +#~ "selecting a spelling from the Suggestions list, or " +#~ "you can enter text directly into the Change to text " +#~ "box." +#~ msgstr "" +#~ "Una sugerencia de ortografía conocida es visualizada en la casilla de " +#~ "textoCambiar a. Puede sustituirse ésta con otra " +#~ "palabra conocida seleccionado una ortografía de la lista de " +#~ "Sugerencias, o puede introducir el texto " +#~ "directamente en la casilla de texto de Cambiar a." + +#~ msgid "" +#~ "To check the spelling of the text in the Change to " +#~ "text box, click Check Word. If this is a known " +#~ "word, the Suggestions list is replaced with the text " +#~ "(correct spelling). If the word is not known, new " +#~ "entries appear in the Suggestions list." +#~ msgstr "" +#~ "Para revisar la ortografía del texto en la casilla de texto de " +#~ "Cambiar por, pulse Comprobar palabra. Si ésta es una palabra conocida, la lista " +#~ "Sugerenciasserá sustituida con el texto " +#~ "(ortografía correcta). Si la palabra es desconocida, " +#~ "aparecerán nuevas entradas en la lista de Sugerencias." + +#~ msgid "" +#~ "To ignore the current occurrence of the unknown word, click " +#~ "Ignore. To ignore all occurrences of the unknown " +#~ "word, click Ignore All. The unknown word is " +#~ "ignored in the current gedit session only." +#~ msgstr "" +#~ "Para ignorar en ese momento la palabra desconocida señalada, pulse " +#~ "Ignorar. Para ignorar todas las palabras " +#~ "desconocidas, pulse Ignorar todo. La palabra " +#~ "desconocida es ignorada sólo en la sesión actual de gedit." + +#~ msgid "" +#~ "To change the current occurrence of the unknown word to the text in the " +#~ "Change to text box, click Change. To change all occurrences of the unknown word to the text in " +#~ "the Change to text box, click Change All." +#~ msgstr "" +#~ "Para cambiar la palabra desconocida señalada al texto en la casilla de " +#~ "texto Cambiar a, pulse Cambiar. Para cambiar todas las palabras desconocidas al texto en la " +#~ "casilla de texto Cambiar por, pulse " +#~ "Cambiar todo." + +#~ msgid "" +#~ "To add the unknown word to your personal dictionary, click Add " +#~ "word." +#~ msgstr "" +#~ "Para añadir la palabra desconocida a su diccionario personal, pulse el " +#~ "botón Añadir palabra." + +#~ msgid "" +#~ "To close the Check Spelling dialog, click " +#~ "Close." +#~ msgstr "" +#~ "Para cerrar el cuadro de diálogo Ir a la línea, " +#~ "pulse en el botón Cerrar." + +#~ msgid "" +#~ "The Tag List plugin allows you to insert " +#~ "common tags from a list in the side pane." +#~ msgstr "" +#~ "La aplicación Lista de etiquetas le permite " +#~ "insertar etiquetas comunes de una lista en el panel lateral." + +#~ msgid "To use the Tag List plugin, perform the following steps:" +#~ msgstr "" +#~ "Para utilizar el complemento Lista de etiquetas, realice los siguientes " +#~ "pasos:" + +#~ msgid "" +#~ "Choose ViewSide Pane." +#~ msgstr "" +#~ "Elija EditarPanel lateral." + +#~ msgid "" +#~ "By default, the side pane shows a tab containing a list of open " +#~ "documents. Click on the tab showing a + icon at the bottom of the side " +#~ "pane to show the tag list tab." +#~ msgstr "" +#~ "Por omisión, el panel lateral muestra una pestaña conteniendo una lista " +#~ "de documentos abiertos. Pulse en la pestaña que muestra un icono «+» en " +#~ "la parte de abajo del panel lateral para mostrar la pestaña de listas de " +#~ "etiquetas." + +#~ msgid "" +#~ "Select the appropriate tag category from the drop-down list. For example, " +#~ "HTML - Tags." +#~ msgstr "" +#~ "Seleccione la categoría de etiquetas apropiada en la lista desplegable; " +#~ "por ejemplo, Etiquetas HTML." + +#~ msgid "" +#~ "To insert a tag at the cursor position in the current file, double-click " +#~ "on the tag in the tag list. You can also insert a tag as follows:" +#~ msgstr "" +#~ "Para insertar una etiqueta en la posición del cursor del archivo actual, " +#~ "pulse dos veces sobre la etiqueta en la lista. También puede emplear este " +#~ "procedimiento:" + +#~ msgid "" +#~ "To insert a tag in the current file and change the focus from the side " +#~ "pane to the display area, press Return." +#~ msgstr "" +#~ "Para insertar una etiqueta en el archivo actual y cambiar el foco desde " +#~ "el panel lateral al área de visualización, pulse Intro." + +#~ msgid "" +#~ "To insert a tag in the current file and maintain the focus on the " +#~ "Tag list plugin window, press " +#~ "ShiftReturn." +#~ msgstr "" +#~ "Para insertar una etiqueta en el archivo actual y mantener el foco en la " +#~ "ventana del complemento Lista de etiquetas, pulse " +#~ "MayúsIntro." + +#~ msgid "" +#~ "User Name inserts the username of the current user into the document." +#~ msgstr "" +#~ "Nombre de usuario inserta el nombre de usuario del usuario actual en el " +#~ "documento." + +#~ msgid "" +#~ "The User name plugin inserts the username of " +#~ "the current user into the document." +#~ msgstr "" +#~ "El complemento Nombre de usuario inserta el " +#~ "nombre del usuario actual en el documento." + +#~ msgid "" +#~ "To insert your username at the cursor position, choose " +#~ "EditInsert User Name." +#~ msgstr "" +#~ "Para insertar su nombre de usuario en la posición del cursor, elija " +#~ "EditarInsertar nombre de " +#~ "usuario." + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_strikethrough.png'; " +#~ "md5=cf962f5d9df721c1f4f4cef2780915ed" +#~ msgstr "@@image: 'figures/_gedit.png'; md5=cf962f5d9df721c1f4f4cef2780915ed" + +#~ msgid "" +#~ "For more information about how to configure syntax highlighting, see " +#~ "." +#~ msgstr "" +#~ "Para más información sobre cómo configurar el resaltado de sintaxis, vea " +#~ "la ." + +#~ msgid "Syntax Highlighting Preferences" +#~ msgstr "Preferencias de Resaltado de Sintaxis" + +#~ msgid "Enable syntax highlighting" +#~ msgstr "Permitir subrayado de sintaxis" + +#~ msgid "" +#~ "Select this option to highlight the syntax of the text that you edit." +#~ msgstr "" +#~ "Seleccione esta opción para resaltar la sintaxis del texto que está " +#~ "editando." + +#~ msgid "Highlight mode" +#~ msgstr "Modo de resaltado" + +#~ msgid "Use this drop-down list to select a syntax mode to configure." +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar un modo de sintaxis que " +#~ "configurar." + +#~ msgid "Elements" +#~ msgstr "Elementos" + +#~ msgid "Use this list box to select a syntax element to configure." +#~ msgstr "" +#~ "Use esta lista desplegable para seleccionar un elemento de sintaxis para " +#~ "configurar." + +#~ msgid "Format buttons" +#~ msgstr "Botones de formato" + +#~ msgid "" +#~ "Use the following buttons to change the format of the selected syntax " +#~ "element:" +#~ msgstr "" +#~ "Use los siguientes botones para cambiar el formato de la sintaxis " +#~ "seleccionada:" + +#~ msgid "Button" +#~ msgstr "Botón" + +#~ msgid "Shows icon for bold format." +#~ msgstr "Mostrar icono para formato negrita." + +#~ msgid "Bold" +#~ msgstr "Cuerpo" + +#~ msgid "Shows icon for italic format." +#~ msgstr "Mostrar icono para formato cursiva." + +#~ msgid "Shows icon for underline." +#~ msgstr "Mostrar icono para subrayar." + +#~ msgid "Underline" +#~ msgstr "Sangrar líneas" + +#~ msgid "Shows icon for strikethrough." +#~ msgstr "Mostrar icono para tachar." + +#~ msgid "Strikethrough" +#~ msgstr "Tachar" + +#~ msgid "Foreground" +#~ msgstr "Primer plano" + +#~ msgid "" +#~ "Select this option to change the font color of the selected syntax " +#~ "element. Click on the color button to display the color selector dialog, " +#~ "then select the font color." +#~ msgstr "" +#~ "Seleccione ésta opción para cambiar la fuente de color del elemento de " +#~ "sintaxis seleccionado. Pulse en el botón de color para visualizar el " +#~ "diálogo de selección de color, entonces seleccione la fuente de color." + +#~ msgid "Background" +#~ msgstr "Color del fondo" + +#~ msgid "" +#~ "Select this option to change the background color of the selected syntax " +#~ "element. Click on the color button to display the color selector dialog, " +#~ "then select the background color." +#~ msgstr "" +#~ "Seleccione ésta opción para cambiar el color de fondo del elemento de " +#~ "sintaxis seleccionado. Pulse en el botón de color para visualizar el " +#~ "diálogo de selección de color, entonces seleccione el color de fondo." + +#~ msgid "Reset to Default" +#~ msgstr "Escritorio predeterminado" + +#~ msgid "" +#~ "Click on this button to reset the foreground color and background color " +#~ "of the selected syntax element to the default values." +#~ msgstr "" +#~ "Pulse en éste botón para reiniciar los valores por omisión del color de " +#~ "primer plano y el color de fondo del elemento de sintaxis seleccionado." + +#~ msgid "Colors" +#~ msgstr "Colores" + +#~ msgid "" +#~ "Select the Use default theme colors option to use " +#~ "the default theme colors in the gedit text " +#~ "window." +#~ msgstr "" +#~ "Seleccione esta opción para usar los colores predeterminados del tema en " +#~ "la ventana de texto de gedit." + +#~ msgid "" +#~ "Click on the Normal text color color button to " +#~ "display the color selector dialog. Select a color to use to display " +#~ "normal text in the gedit text window." +#~ msgstr "" +#~ "Pulse en el botón Color del texto para que se " +#~ "muestre el cuadro de diálogo del selector de colores. Seleccione el color " +#~ "que desea usar para la visualización del texto en la ventana de " +#~ "gedit." + +#~ msgid "" +#~ "Click on the Background color color button to " +#~ "display the color selector dialog. Select a background color for the " +#~ "gedit text window." +#~ msgstr "" +#~ "Pulse en el botón Color del fondo para que se " +#~ "muestre el cuadro de diálogo del selector de colores. Seleccione un color " +#~ "de fondo para la ventana de texto de gedit." + +#~ msgid "" +#~ "Click on the Selected text color color button to " +#~ "display the color selector dialog. Select a color to use to display " +#~ "selected text." +#~ msgstr "" +#~ "Pulse en el botón Color de texto seleccionado para " +#~ "que se muestre el cuadro de diálogo del selector de colores. Seleccione " +#~ "el color que desee usar en la visualización del texto seleccionado." + +#~ msgid "" +#~ "Click on the Selection color color button to " +#~ "display the color selector dialog. Select a background color to use to " +#~ "highlight a text selection." +#~ msgstr "" +#~ "Pulse en el botón Color de selección para que se " +#~ "muestre el cuadro de diálogo del selector de colores. Seleccione el color " +#~ "de fondo que desee usar para resaltar una selección de texto." diff --git a/help/eu/eu.po b/help/eu/eu.po new file mode 100644 index 0000000..b1f2d9c --- /dev/null +++ b/help/eu/eu.po @@ -0,0 +1,4512 @@ +# translation of gedit.help.gnome-2-30.po to Basque +# Iñaki Larrañaga Murgoitio , 2011. +# Basque translation for gedit. +# Copyright (C) 2010 gedit's COPYRIGHT HOLDER +# This file is distributed under the same license as the gedit package. +msgid "" +msgstr "" +"Project-Id-Version: gedit.help.gnome-2-30\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-06 10:56+0000\n" +"PO-Revision-Date: 2011-04-14 18:35+0200\n" +"Last-Translator: Iñaki Larrañaga Murgoitio \n" +"Language-Team: Basque \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n\n" +"\n" + +#: C/legal.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or in " +"the file COPYING-DOCS distributed with this manual." +msgstr "" +"Baimena ematen da dokumentu hau kopiatu, banatu eta/edo aldatzeko Free " +"Software Foundation-ek argitaratutako GNU Dokumentazio Librearen " +"Lizentziaren 1.1. bertsioan edo berriago batean ezarritako baldintzak " +"betetzen badira; Atal Aldaezinik, Aurreko azaleko testurik eta Atzeko " +"azaleko testurik gabe. GFDL lizentziaren kopia esteka honetan edo eskuliburu honekin batera ematen " +"den COPYING-DOCS fitxategian aurkituko duzu." + +#: C/legal.xml:12(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" +"Eskuliburu hau GFDL lizentziarekin banatzen diren GNOME eskuliburuen " +"bildumakoa da. Eskuliburu hau bildumatik bereizita banatu nahi baduzu, bana " +"dezakezu, baina eskuliburuari lizentziaren kopia bat gehitu beharko diozu, " +"lizentzian bertan 6. atalean azaltzen den bezala." + +#: C/legal.xml:19(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" +"Enpresek euren produktu eta zerbitzuak bereizteko erabiltzen dituzten izen " +"asko marka erregistratu moduan hartu behar dira. Izen horiek GNOMEren " +"edozein agiritan agertzen direnean, eta GNOMEren Dokumentazio Proiektuko " +"kideak marka komertzialak direla konturatu badira, orduan izen horiek " +"maiuskulaz idatzita egongo dira, osorik edo hasierako letra maiuskulaz " +"jarrita." + +#: C/legal.xml:35(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" +"DOKUMENTUA \"DAGOEN-DAGOENEAN\" EMATEN DA, INOLAKO BERMERIK GABE, EZ ESPRESUKI " +"ADIERAZITAKORIK ETA EZ INPLIZITURIK ERE; BESTEAK BESTE (MUGARIK GABE), EZ " +"DA BERMATZEN DOKUMENTUA EDO BERTSIO ALDATUA AKATSIK GABEA DENIK, " +"MERKATURATZEKO EDO XEDE JAKIN BATERAKO EGOKIA DENIK EDO ARAURIK HAUSTEN EZ " +"DUENIK. DOKUMENTUAREN EDO DOKUMENTUAREN BERTSIO ALDATUAREN KALITATEARI, " +"ZEHAZTASUNARI ETA PERFORMANTZIARI BURUZKO ERANTZUKIZUN OSOA ZUREA DA. " +"DOKUMENTUREN BATEK EDO BERTSIO ALDATUREN BATEK EDOZEIN MOTATAKO AKATSIK " +"IZANEZ GERO, ZUK (EZ HASIERAKO IDAZLEAK, EZ EGILEAK ETA EZ INONGO " +"KOLABORATZAILEK) ZEURE GAIN HARTU BEHARKO DUZU BERRIKUSTEKO, KONPONTZEKO EDO " +"ZUZENTZEKO BEHARREZKO ZERBITZU GUZTIEN KOSTUA. BERME-UKATZE HAU LIZENTZIA " +"HONEN FUNTSEZKO ZATIA DA. EZ DA BAIMENIK EMATEN EZEIN DOKUMENTU EDO BERTSIO " +"ALDATU ERABILTZEKO, BALDIN ETA EZ BADA BERME-UKATZE HAU ONARTZEN; EZINGO DA " +"INONGO ZIRKUNSTANTZIA EDO LEGE-TEORIARIK OINARRI HARTU --EZ ERANTZUKIZUN " +"ZIBILARI BURUZKORIK (ZABARKERIA BARNE HARTUTA) EZ KONTRATUARI BURUZKORIK, EZ " +"BESTERIK-- DOKUMENTU HONEN EDO BERTSIO ALDATU BATEN EGILEA, HASIERAKO " +"IDAZLEA, EDOZEIN KOLABORATZAILE EDO BANATZAILE, EDO ALDERDI HORIEN EDOZEIN " +"HORNITZAILE BESTE PERTSONA BATEN AURREAN ERANTZULE EGITEKO, PERTSONA HORREK " +"EDOZEIN MOTATAKO KALTE ZUZENEKO, ZEHARKAKO, BEREZI, INTZIDENTAL EDO " +"ONDORIOZKOAK JASAN DITUELAKO, BESTEAK BESTE (MUGARIK GABE), BEZEROAK " +"GALTZEAREN, LANA ETEN BEHARRAREN, ORDENAGAILUAK EZ IBILTZEAREN EDO GAIZKI " +"IBILTZEAREN ONDORIOZKO KALTEAK, EDO DOKUMENTUA NAHIZ HAREN BERTSIO ALDATUAK " +"ERABILTZETIK ONDORIOZTATZEN DIREN EDO ERABILERA HORREKIN ZERIKUSIA DUEN " +"EDOZEIN KALTE EDO GALERA, ALDERDIARI KALTE HORIEK GERTA ZITEZKEELA ADITZERA " +"EMAN BAZAIO ERE." + +#: C/legal.xml:28(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" +"DOKUMENTUA ETA DOKUMENTUAREN BERTSIO ALDATUAK GNU DOKUMENTAZIO LIBREAREN " +"LIZENTZIAREN BALDINTZEN ARABERA EMATEN DIRA, ETA ONDOREN ZEHAZTEN DIRENAK " +"ONARTZERA BEHARTZEN DUTE: " + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:268(None) +msgid "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgstr "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:349(None) +msgid "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" +msgstr "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" + +#: C/gedit.xml:23(title) +msgid "Gedit Manual" +msgstr "Gedit-en eskuliburua" + +#: C/gedit.xml:25(year) +msgid "2007" +msgstr "2007" + +#: C/gedit.xml:26(holder) +#: C/gedit.xml:45(publishername) +#: C/gedit.xml:56(firstname) +#: C/gedit.xml:79(orgname) +#: C/gedit.xml:120(para) +#: C/gedit.xml:128(para) +#: C/gedit.xml:136(para) +#: C/gedit.xml:144(para) +#: C/gedit.xml:152(para) +#: C/gedit.xml:160(para) +#: C/gedit.xml:168(para) +#: C/gedit.xml:176(para) +#: C/gedit.xml:184(para) +#: C/gedit.xml:192(para) +#: C/gedit.xml:200(para) +msgid "GNOME Documentation Project" +msgstr "GNOME dokumentazio-proiektua" + +#: C/gedit.xml:28(year) +msgid "2002" +msgstr "2002" + +#: C/gedit.xml:29(year) +msgid "2003" +msgstr "2003" + +#: C/gedit.xml:30(year) +msgid "2004" +msgstr "2004" + +#: C/gedit.xml:31(holder) +#: C/gedit.xml:71(orgname) +msgid "Sun Microsystems" +msgstr "Sun Microsystems" + +#: C/gedit.xml:33(year) +#: C/gedit.xml:116(date) +msgid "2000" +msgstr "2000" + +#: C/gedit.xml:34(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: C/gedit.xml:52(firstname) +msgid "Joachim" +msgstr "Joachim" + +#: C/gedit.xml:53(surname) +msgid "Noreiko" +msgstr "Noreiko" + +#: C/gedit.xml:59(orgname) +msgid "GNOME" +msgstr "GNOME" + +#: C/gedit.xml:63(firstname) +msgid "Hal" +msgstr "Hal" + +#: C/gedit.xml:64(surname) +msgid "Canary" +msgstr "Canary" + +#: C/gedit.xml:65(contrib) +msgid "Added the Shortcut Keys Table" +msgstr "Laster-teklen taula gehitu da" + +#: C/gedit.xml:68(firstname) +#: C/gedit.xml:191(para) +msgid "Sun Java Desktop System Documentation Team" +msgstr "Sun Java Mahaigaineko Sistemaren Dokumentazio-taldea" + +#: C/gedit.xml:72(email) +msgid "gdocteam@sun.com" +msgstr "gdocteam@sun.com" + +#: C/gedit.xml:76(firstname) +msgid "Eric" +msgstr "Eric" + +#: C/gedit.xml:77(surname) +msgid "Baudais" +msgstr "Baudais" + +#: C/gedit.xml:80(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: C/gedit.xml:84(firstname) +msgid "Baris" +msgstr "Baris" + +#: C/gedit.xml:85(surname) +msgid "Cicek provided information from earlier revisions of the gedit application." +msgstr "" +"Cicek-ek informazioa horbnitu du gedit aplikazioaren lehenagoko " +"berrikuspenei buruz." + +#: C/gedit.xml:86(contrib) +#: C/gedit.xml:91(contrib) +msgid "Acknowledgements" +msgstr "Eskertzak" + +#: C/gedit.xml:89(firstname) +msgid "Ajit" +msgstr "Ajit" + +#: C/gedit.xml:90(surname) +msgid "George provided information about plugins." +msgstr "George-k informazioa hornitu du pluginei buruz." + +#: C/gedit.xml:115(revnumber) +msgid "gedit V1.0" +msgstr "gedit V1.0" + +#: C/gedit.xml:118(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu " + +#: C/gedit.xml:124(revnumber) +msgid "gedit Manual V2.0" +msgstr "gedit-en eskuliburuaren 2.0 bertsioa" + +#: C/gedit.xml:125(date) +msgid "March 2002" +msgstr "2002ko martxoa" + +#: C/gedit.xml:127(para) +#: C/gedit.xml:135(para) +#: C/gedit.xml:143(para) +#: C/gedit.xml:151(para) +#: C/gedit.xml:159(para) +#: C/gedit.xml:167(para) +#: C/gedit.xml:175(para) +#: C/gedit.xml:183(para) +msgid "Sun GNOME Documentation Team" +msgstr "Sun-eko GNOMEren dokumentazio-taldea" + +#: C/gedit.xml:132(revnumber) +msgid "gedit Manual V2.1" +msgstr "gedit-en eskuliburuaren 2.1 bertsioa" + +#: C/gedit.xml:133(date) +msgid "June 2002" +msgstr "2002ko ekaina" + +#: C/gedit.xml:140(revnumber) +msgid "gedit Manual V2.2" +msgstr "gedit-en eskuliburuaren 2.2 bertsioa" + +#: C/gedit.xml:141(date) +msgid "August 2002" +msgstr "2002ko abuztua" + +#: C/gedit.xml:148(revnumber) +msgid "gedit Manual V2.3" +msgstr "gedit-en eskuliburuaren 2.3 bertsioa" + +#: C/gedit.xml:149(date) +msgid "September 2002" +msgstr "2002ko iraila" + +#: C/gedit.xml:156(revnumber) +msgid "gedit Manual V2.4" +msgstr "gedit-en eskuliburuaren 2.4 bertsioa" + +#: C/gedit.xml:157(date) +msgid "January 2003" +msgstr "2003ko urtarrila" + +#: C/gedit.xml:164(revnumber) +msgid "gedit Manual V2.5" +msgstr "gedit-en eskuliburuaren 2.5 bertsioa" + +#: C/gedit.xml:165(date) +msgid "March 2003" +msgstr "2003ko martxoa" + +#: C/gedit.xml:172(revnumber) +msgid "gedit Manual V2.6" +msgstr "gedit-en eskuliburuaren 2.6 bertsioa" + +#: C/gedit.xml:173(date) +msgid "September 2003" +msgstr "2003ko iraila" + +#: C/gedit.xml:180(revnumber) +msgid "gedit Manual V2.7" +msgstr "gedit-en eskuliburuaren 2.7 bertsioa" + +#: C/gedit.xml:181(date) +msgid "March 2004" +msgstr "2004ko martxoa" + +#: C/gedit.xml:188(revnumber) +msgid "gedit Manual V2.8" +msgstr "gedit-en eskuliburuaren 2.8 bertsioa" + +#: C/gedit.xml:189(date) +#: C/gedit.xml:197(date) +msgid "July 2006" +msgstr "2006ko uztaila" + +#: C/gedit.xml:196(revnumber) +msgid "gedit Manual V2.9" +msgstr "gedit-en eskuliburuaren 2.9 bertsioa" + +#: C/gedit.xml:199(para) +msgid "GNOME Documentation Team" +msgstr "GNOMEren dokumentazio-taldea" + +#: C/gedit.xml:204(releaseinfo) +msgid "This manual describes version 2.16 of gedit." +msgstr "Eskuliburu honetan gedit-en 2.16 bertsioa azaltzen da." + +#: C/gedit.xml:207(title) +msgid "Feedback" +msgstr "Oharra" + +#: C/gedit.xml:208(para) +msgid "" +"To report a bug or make a suggestion regarding the " +"gedit application or this manual, follow the " +"directions in the GNOME Feedback Page." +msgstr "" +"gedit aplikazioari edo eskuliburu honi buruzko " +"akatsen berri emateko edo oharrak bidaltzeko, GNOMEra oharrak bidaltzeko orrian aurkituko " +"dituzu argibideak." + +#: C/gedit.xml:213(para) +msgid "" +"gedit is a text editor for the GNOME Desktop featuring basic yet robust " +"capabilities such as printing, spell checking, find and replace, and syntax " +"highlighting. More advanced features are available as plugins." +msgstr "" +"gedit GNOME mahaigainaren testu-editorea da; gaitasun sendoak ditu: " +"inprimatzea, ortografia-egiaztatzailea, bilatzea eta ordeztea, eta sintaxi-" +"nabarmentzea. Bestelako eginbide aurreratuak ere badaude erabilgarri, " +"pluginak esate baterako." + +#: C/gedit.xml:218(primary) +msgid "gedit" +msgstr "gedit" + +#: C/gedit.xml:219(primary) +msgid "text editor" +msgstr "testu-editorea" + +#: C/gedit.xml:224(title) +msgid "Introduction" +msgstr "Sarrera" + +#: C/gedit.xml:229(para) +msgid "" +"The gedit application enables you to create and " +"edit text files." +msgstr "" +"gedit aplikazioak aukera ematen dizu testu-" +"fitxategiak sortzeko eta editatzeko." + +#: C/gedit.xml:231(para) +msgid "" +"The aim of gedit is to be a simple and easy to " +"use text editor. More powerful features can be enabled with different " +"plugins, allowing a variety of tasks related to text-" +"editing." +msgstr "" +"gedit aplikazioaren helburua da testu-editorea " +"erabiltzea sinplea eta erraza izatea. Eginbide ahaltsuagoak gaitu daitezke " +"hainbat pluginekin, eta testu-edizioarekin lotutako " +"hainbat ataza erabilgarri daude." + +#: C/gedit.xml:235(title) +msgid "Getting Started" +msgstr "Erabiltzen hasteko" + +#: C/gedit.xml:239(title) +msgid "Starting gedit" +msgstr "gedit abiaraztea" + +#: C/gedit.xml:240(para) +msgid "You can start gedit in the following ways:" +msgstr "Aukera hauek dituzu gedit abiarazteko:" + +#: C/gedit.xml:243(term) +msgid "Applications menu" +msgstr "Aplikazioak menua" + +#: C/gedit.xml:245(para) +msgid "" +"Choose AccessoriesText " +"Editor." +msgstr "" +"Aukeratu GehigarriakTestu-" +"editorea." + +#: C/gedit.xml:249(term) +msgid "Command line" +msgstr "Komando-lerroa" + +#: C/gedit.xml:251(para) +msgid "Execute the following command: gedit" +msgstr "Exekutatu komando hau: gedit" + +#: C/gedit.xml:255(para) +msgid "" +"By default, when you open a text document in the file manager, gedit will " +"start, and display the document." +msgstr "" +"Modu lehenetsian, testu-dokumentu bat irekitzen duzunean fitxategi-" +"kudeatzailean, gedit abiaraziko da, eta dokumentua bistaratuko du." + +#: C/gedit.xml:260(title) +msgid "The gedit Window" +msgstr "gedit-en leihoa" + +#: C/gedit.xml:261(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "gedit abiarazten duzunean, leiho hau azalduko da:" + +#: C/gedit.xml:264(title) +msgid "gedit Window" +msgstr "gedit-en leihoa" + +#: C/gedit.xml:270(phrase) +msgid "Shows gedit main window." +msgstr "gedit-en leiho nagusia erakusten du." + +#: C/gedit.xml:276(para) +msgid "The gedit window contains the following elements:" +msgstr "gedit leihoak honako elementuak ditu:" + +#: C/gedit.xml:279(term) +msgid "Menubar" +msgstr "Menu-barra" + +#: C/gedit.xml:281(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"Menu-barrako menuek gedit-en fitxategiekin lan " +"egiteko behar dituzun komando guztiak dituzte." + +#: C/gedit.xml:284(term) +msgid "Toolbar" +msgstr "Tresna-barra" + +#: C/gedit.xml:286(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "" +"Tresna-barrak menu-barraren bidez erabil ditzakezun komandoetako batzuk " +"izaten ditu." + +#: C/gedit.xml:289(term) +msgid "Display area" +msgstr "Bistaratze-area" + +#: C/gedit.xml:291(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "Bistaratze-arean editatzen ari zaren fitxategiko testua dago." + +#: C/gedit.xml:294(term) +msgid "Statusbar" +msgstr "Egoera-barra" + +#: C/gedit.xml:296(para) +msgid "" +"The statusbar displays information about current " +"gedit activity and contextual information about " +"the menu items. The statusbar also displays the following information:" +msgstr "" +"Egoera-barran gedit-en uneko jarduerari buruzko " +"informazioa eta menu-elementuei buruzko informazioa azaltzen dira. Egoera-" +"barrak informazio hau ere erakusten du:" + +#: C/gedit.xml:299(para) +msgid "" +"Cursor position: the line number and column number where the cursor is " +"located." +msgstr "" +"Kurtsorearen posizioa: kurtsorea kokatuta dagoen lerro-zenbakia eta zutabe-" +"zenbakia." + +#: C/gedit.xml:302(para) +msgid "" +"Edit mode: If the editor is in insert mode, the statusbar contains the text " +"INS. If the editor is in overwrite mode, the statusbar " +"contains the text OVR. Press the " +"Insert key to change edit mode." +msgstr "" +"Editatzeko modua: Editorea txertatzeko moduan badago, egoera-barran " +"TXER ikusiko da. Editorea gainidazteko moduan badago, " +"egoera-barran GAIN ikusiko da. Sakatu " +"Txertatu tekla editatzeko modua aldatzeko." + +#: C/gedit.xml:307(term) +msgid "Side Pane" +msgstr "Albo-panela" + +#: C/gedit.xml:309(para) +msgid "" +"The side pane displays a list of open documents, and other information " +"depending on which plugins are enabled." +msgstr "" +"Albo-panelean irekitako dokumentuen zerrenda azaltzen da, eta beste datu " +"batzuk, gaituta dauden pluginen arabera." + +#: C/gedit.xml:310(para) +msgid "" +"By default the side pane is not shown. To show it, choose " +"ViewSide " +"Pane." +msgstr "" +"Modu lehenetsian, albo-panela ez da erakusten. Albo-panela erakusteko, " +"aukeratu IkusiAlbo-" +"panela." + +#: C/gedit.xml:313(term) +msgid "Bottom Pane" +msgstr "Beheko panela" + +#: C/gedit.xml:315(para) +msgid "" +"The bottom pane is used by programming tools such as the Python " +"Console plugin to display output." +msgstr "" +"Beheko panela hainbat programazio-tresnak erabiltzen dute " +"(Python kontsola pluginak, esate baterako) " +"irteera bistaratzeko." + +#: C/gedit.xml:316(para) +msgid "" +"By default the bottom pane is not shown. To show it, choose " +"ViewBottom " +"Pane." +msgstr "" +"Modu lehenetsian, beheko panela ez da erakusten. Albo-panela erakusteko, " +"aukeratu IkusiBeheko " +"panela." + +#: C/gedit.xml:320(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"gedit leihoan eskuin-botoiarekin klik egiten " +"duzunean, aplikazioak laster-menu bat bistaratzen du. Laster-menuak testuak " +"editatzeko komando ohikoenak izaten ditu." + +#: C/gedit.xml:322(para) +msgid "" +"Like other GNOME applications, actions in gedit " +"can be performed in several ways: with the menu, with the toolbar, or with " +"shortcut keys. Shortcuts keys common to all applications are listed in the " +"User Guide." +msgstr "" +"Beste GNOME aplikazio batzuen kasuan bezala, " +"gedit ekintzak hainbat modutan egin daitezke: " +"menuarekin, tresna-barrarekin edo laster-teklekin. Aplikazio guztiteako " +"laster-teklak Erabiltzailearen gidan azaltzen dira." + +#: C/gedit.xml:327(title) +msgid "Running gedit from a Command Line" +msgstr "gedit komando-lerro batetik exekutatzea" + +#: C/gedit.xml:328(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" +"gedit komando-lerro batetik exekuta dezakezu, eta " +"fitxategi bakarra nahiz batzuk ireki. Komando-lerro batetik hainbat " +"fitxategi irekitzeko, idatzi ondoko komandoa, eta sakatu " +"Sartu:" + +#: C/gedit.xml:329(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "fitxategia1.txt fitxategia2.txt fitxategia3.txt" + +#: C/gedit.xml:329(command) +msgid "gedit " +msgstr "gedit " + +#: C/gedit.xml:330(para) +msgid "Alternatively, you can specify a URI instead of a filename." +msgstr "Bestela, eman URI bat fitxategi-izen baten ordez." + +#: C/gedit.xml:331(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see the unix manual page for gedit, gedit1." +msgstr "" +"gedit komando-lerro batetik nola exekutatu " +"jakiteko, ikus unix eskuliburuaren gedit-en orria, gedit1." + +#: C/gedit.xml:336(title) +msgid "Working with Files" +msgstr "Fitxategiekin lan egitea" + +#: C/gedit.xml:340(title) +msgid "Creating a New Document" +msgstr "Dokumentu berria sortzea" + +#: C/gedit.xml:341(para) +msgid "" +"To create a new document, choose FileNew. The application displays a new blank " +"document in the gedit window." +msgstr "" +"Dokumentu berri bat sortzeko, aukeratu FitxategiaBerria. Aplikazioak dokumentu " +"huts berria bistaratuko du gedit leihoan." + +#: C/gedit.xml:346(title) +#: C/gedit.xml:1597(title) +msgid "Opening a File" +msgstr "Fitxategi bat irekitzea" + +#: C/gedit.xml:347(para) +msgid "" +"To open a file, choose FileOpen<" +"/guimenuitem> to display the Open File " +"dialog. Select the file that you want to open, then click " +"Open. The file is displayed in the " +"gedit window." +msgstr "" +"Fitxategi bat irekitzeko, aukeratu Fitxategia" +"Ireki, Ireki fitxategia " +" elkarrizketa-koadroa bistaratzeko. Hautatu ireki nahi duzun fitxategia, " +"eta egin klik Ireki botoian. Fitxategia " +"gedit leihoan bistaratuko da." + +#: C/gedit.xml:349(phrase) +msgid "Shows Recent Files menu icon." +msgstr "'Azken fitxategiak' menu-ikonoa erakusten du." + +#: C/gedit.xml:349(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the icon on the toolbar to display the list of recent " +"files." +msgstr "" +"Aplikazioak azkena editatutako bost fitxategien bide-izenak eta fitxategi-" +"izenak grabatzen ditu eta fitxategiak menu-elementu gisa bistaratzen ditu " +"Fitxategia menuan. Bestela, egin " +"klik tresna-barrako ikonoan, editatu diren azken fitxategien zerrenda " +"bistaratzeko." + +#: C/gedit.xml:351(para) +msgid "" +"You can open multiple files in gedit. The " +"application adds a tab for each open file to the window. For more on this " +"see ." +msgstr "" +"Hainbat fitxategi ireki ditzakezu batera " +"gedit-en. Aplikazioak fitxa bat gehitzen du " +"leihoan, irekitako fitxategi bakoitzeko. Honi buruz gehiago jakiteko, ikus " +"." + +#: C/gedit.xml:357(title) +msgid "Saving a File" +msgstr "Fitxategiak gordetzea" + +#: C/gedit.xml:358(para) +msgid "You can save files in the following ways:" +msgstr "Aukera hauek dituzu fitxategiak gordetzeko:" + +#: C/gedit.xml:360(para) +msgid "" +"To save changes to an existing file, choose FileSave." +msgstr "" +"Lehendik dagoen fitxategi batean aldaketak gordetzeko, aukeratu " +"FitxategiaGorde." + +#: C/gedit.xml:362(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave " +"As. Enter a name for the file in the " +"Save As dialog, then click Save." +msgstr "" +"Fitxategi berri bat gordetzeko edo lehendik dagoena fitxategi-izen berri " +"batekin gordetzeko, aukeratu " +"FitxategiaGorde " +"honela. Sartu izen bat fitxategirako " +"Gorde honela elkarrizketa-koadroan, eta egin klik " +"Gorde botoian." + +#: C/gedit.xml:364(para) +msgid "" +"To save all of the files that are currently open in " +"gedit, choose " +"DocumentsSave " +"All." +msgstr "" +"Une honetan gedit-en irekita dauden fitxategi " +"guztiak gordetzeko, aukeratu " +"DokumentuakGorde " +"dena." + +#: C/gedit.xml:367(para) +msgid "" +"To close all of the files that are currently open in " +"gedit, choose " +"DocumentsClose " +"All." +msgstr "" +"Une honetan gedit-en irekita dauden fitxategi " +"guztiak ixteko, aukeratu " +"DokumentuakItxi " +"denak." + +#: C/gedit.xml:372(title) +msgid "Opening a File from a URI" +msgstr "URItik fitxategia irekitzea" + +#: C/gedit.xml:373(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform the " +"following steps:" +msgstr "" +"Fitxategia URI (Uniform Resource Identifier) batetik irekitzeko, jarraitu " +"urrats hauek:" + +#: C/gedit.xml:376(para) +msgid "" +"Choose FileOpen " +"Location to display the Open " +"Location dialog." +msgstr "" +"Aukeratu FitxategiaIreki " +"kokalekua, Ireki kokalekua " +"elkarrizketa-koadroa bistaratzeko." + +#: C/gedit.xml:379(para) +msgid "Enter the URI of the file that you want to open." +msgstr "Sartu ireki nahi duzun fitxategiaren URIa." + +#: C/gedit.xml:382(para) +msgid "" +"Use the Character coding drop-down list to select the " +"appropriate character coding." +msgstr "" +"Erabili goitibeherako karaktere-kodeketa zerrenda, " +"dagokion karaktere-kodeketa hautatzeko." + +#: C/gedit.xml:385(para) +msgid "Click Open." +msgstr "Sakatu Ireki." + +#: C/gedit.xml:388(para) +msgid "" +"Valid types of URI include " +"http:, ftp:, file:, " +"and all of the methods supported by gnome-vfs." +msgstr "" +"Baliozko URIak dira, besteak beste, " +"http:, ftp:, file:, " +"eta gnome-vfs-ek onartutako metodo guztiak." + +#: C/gedit.xml:389(para) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. HTTP only allows files to be " +"read. Files opened from FTP are read-only because because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"URI mota batzuetako fitxategiak irakurtzeko soilik irekiko dira, eta zuk " +"egindako aldaketa guztiak beste kokaleku batean gorde behar dira. HTTPk " +"fitxategiak irakurtzea bakarrik onartzen du. FTPtik irekitako fitxategiak " +"irakurtzeko soilik dira, FTP zerbitzari guztiek ez dutelako ondo " +"funtzionatzen urruneko fitxategiak gordetzean." + +#: C/gedit.xml:390(para) +msgid "" +"Saving to FTP servers can be enabled with Configuration Editor, " +"setting the key /apps/gedit-2/preferences/editor/save/writable_v" +"fs_schemes, but this may cause errors." +msgstr "" +"FTP zerbitzarietan gordetzea Konfigurazio-editorearekin gaitu " +"daitezke, /apps/gedit-2/preferences/editor/save/writable_vfs_sch" +"emes gakoa ezarriz, baina erroreak sor ditzake." + +#: C/gedit.xml:395(title) +msgid "Working With Tabs" +msgstr "Fitxekin lan egitea" + +#: C/gedit.xml:397(para) +msgid "" +"When more than one file is open, gedit shows a " +"tab for each document above the display area. To " +"switch to another document, click on its tab." +msgstr "" +"Fitxategi bat baino gehiago irekita daudenean, " +"gedit-ek fitxa bat " +"erakutsiko du dokumentu bakoitzeko bistaratze-arearen gainean. Beste " +"dokumentu batera aldatzeko, egin klik fitxa honetan." + +#: C/gedit.xml:398(para) +msgid "" +"To move a document to another gedit window, drag " +"the tab corresponding to the file to the window you want to move it to." +msgstr "" +"Dokumentu bat beste gedit leiho batera " +"eramateko, arrastatu fitxategiari dagokion fitxa eraman nahi duzun " +"leihoraino." + +#: C/gedit.xml:399(para) +msgid "" +"To move a document to a new gedit window, either " +"drag its tab to the desktop, or choose " +"DocumentsMove to New " +"Window." +msgstr "" +"Dokumentu gedit-en leiho berri batera eramateko, " +"arrasta ezazu haren fitxa mahaigainera, edo aukeratu " +"DokumentuakEraman leiho " +"berrira." + +#: C/gedit.xml:405(title) +msgid "Working with Text" +msgstr "Testuarekin lan egitea" + +#: C/gedit.xml:409(title) +msgid "Editing Text" +msgstr "Testua editatzea" + +#: C/gedit.xml:410(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "Fitxategi baten testua editatzeko aukera hauek dituzu:" + +#: C/gedit.xml:412(para) +msgid "" +"Type new text from the keyboard. The blinking insertion " +"cursor marks the point where new text appears. To change this, " +"use the arrow keys on the keyboard or click with the mouse." +msgstr "" +"Testu berria teklatuaren bidez idatzi. Txertatze-" +"kurtsore keinukariak markatzen du testu berria azaltzen den " +"puntua. Hau aldatzeko, erabili teklatuko gezi-teklak, edo egin klik " +"saguarekin." + +#: C/gedit.xml:414(para) +msgid "" +"To copy the selected text to the clipboard, choose Edit" +"Copy." +msgstr "" +"Hautatutako testua arbelean kopiatzeko, aukeratu Editat" +"uKopiatu." + +#: C/gedit.xml:416(para) +msgid "" +"To delete the selected text from the file and move the selected text to the " +"clipboard, choose EditCut." +msgstr "" +"Hautatutako testua fitxategitik ezabatzeko eta arbelera eramateko, aukeratu <" +"menuchoice>EditatuEbaki." + +#: C/gedit.xml:418(para) +msgid "" +"To permanently delete the selected text from the file, choose Edit
Delete
." +msgstr "" +"Hautatutako testua fitxategitik betiko ezabatzeko, aukeratu Editatu
Ezabatu
." + +#: C/gedit.xml:420(para) +msgid "" +"To insert the contents of the clipboard at the cursor position, choose EditPaste
. " +"You must cut or copy text before you can paste text into the file, either " +"from gedit or another application." +msgstr "" +"Arbeleko edukia kurtsorearen kokalekuan txertatzeko, aukeratu EditatuItsatsi. " +"Testua ebaki edo kopiatu behar duzu fitxategian itsatsi ahal izateko, bai " +"gedit-en eta bai beste edozein aplikaziotan." + +#: C/gedit.xml:422(para) +msgid "" +"To select all of the text in a file, choose " +"EditSelect " +"All." +msgstr "" +"Fitxategi bateko testu osoa hautatzeko, aukeratu " +"EditatuHautatu " +"dena." + +#: C/gedit.xml:428(title) +msgid "Undoing and Redoing Changes" +msgstr "Aldaketak desegitea eta berregitea" + +#: C/gedit.xml:429(para) +msgid "" +"To undo a change you have made, choose EditUndo. To reverse this action, choose <" +"menuchoice>EditRedo." +msgstr "" +"Zuk egindako aldaketa bat desegiteko, aukeratu Editatu<" +"/guimenu>Desegin. Ekintza hau " +"desegiteko, aukeratu EditatuBerr" +"egin." + +#: C/gedit.xml:434(title) +msgid "Finding and Replacing" +msgstr "Bilatzea eta ordeztea" + +#: C/gedit.xml:436(para) +msgid "" +"In gedit, there are two ways of searching for " +"text. You can use the Find dialog to search for a " +"specific piece of text, or Incremental Search to " +"highlight matching text as you type it." +msgstr "" +"gedit-en, bi modu daude testua bilatzeko. " +"Bilatu elkarrizketa-koadroa erabil dezakezu testu zati jakin " +"bat bilatzeko, edo Bilaketa inkrementala, bat datorren " +"testua zuk idatzi ahala nabarmentzeko." + +#: C/gedit.xml:441(title) +msgid "Finding Text" +msgstr "Testua bilatzea" + +#: C/gedit.xml:442(para) +msgid "To search a file for a string of text, perform the following steps:" +msgstr "Fitxategian testu-kate bat bilatzeko, jarraitu urrats hauei:" + +#: C/gedit.xml:444(para) +msgid "" +"Choose SearchFind<" +"/menuchoice> to display the Find dialog." +msgstr "" +"Aukeratu BilatuBilatu, Bilatu elkarrizketa-koadroa bistaratzeko." + +#: C/gedit.xml:446(para) +msgid "" +"Type the string that you want to find in the Search for " +"field. You can include special characters such as a new line or tab: see " +"." +msgstr "" +"Idatzi bilatu nahi duzun katea Bilatu eremuan. " +"Karaktere bereziak sar ditzakezu, lerro edo tabuladore berri bat esate baterako: " +"ikus ." + +#: C/gedit.xml:448(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string after your current cursor position. If " +"gedit finds the string, the application selects " +"first occurrence of the string. Other occurrences of the string are " +"highlighted." +msgstr "" +"Egin klik Bilatu botoian, zure kurtsorearen uneko " +"kokalekutik aurrera katea lehen aldiz noiz azaltzen den bilatzeko. " +"gedit-ek katea aurkitzen badu, aplikazioak " +"katearen lehen agerraldia hautatzen du. Katearen beste agerraldiak " +"nabarmenduko dira." + +#: C/gedit.xml:450(para) +msgid "" +"To find the next occurrence of the string, click Find " +"or choose SearchFind " +"Next. To find the previous occurrence of the " +"text, choose SearchFind " +"Previous." +msgstr "" +"Katearen hurrengo agerraldia aurkitzeko, egin klik " +"Bilatu botoian, edo aukeratu " +"BilatuBilatu " +"hurrengoa. Testuaren aurreko agerraldi bat " +"aurkitzeko, aukeratu " +"EditatuBilatu " +"aurrekoa." + +#: C/gedit.xml:453(para) +msgid "" +"After you have closed the Find dialog, you can still " +"move the selection to other occurrences of the text by choosing " +"SearchFind " +"Next and " +"SearchFind " +"Previous." +msgstr "" +"Behin Bilatu elkarrizketa-koadroa itxita, hautapena eraman " +"dezakezu testuaren beste agerraldi batzuetara: " +"BilatuBilatu " +"hurrengoa eta " +"BilatuBilatu " +"aurrekoa." + +#: C/gedit.xml:454(para) +msgid "" +"To remove the highlighting from the text, choose " +"SearchClear " +"Highlight." +msgstr "" +"Testuaren nabarmentzea kentzeko, aukeratu " +"BilatuGarbitu " +"nabarmentzea." + +#: C/gedit.xml:458(title) +msgid "Incremental Search" +msgstr "Bilaketa inkrementala" + +#: C/gedit.xml:460(para) +msgid "" +"Incremental search highlights matching text in the document as you type it " +"letter by letter. (This is similar to the search feature in several web " +"browsers.)" +msgstr "" +"Bilaketa inkrementalak bat datorren testua zuk idatzi ahala nabarmentzen du " +"dokumentuan. (Hainbat arakatzailetako bilaketa-eginbidearen antzekoa da)." + +#: C/gedit.xml:461(para) +msgid "" +"To start an incremental search, choose " +"SearchIncremental " +"Search. The search box appears at the top of the " +"display area." +msgstr "" +"Bilaketa inkrementala abiarazteko, aukeratu " +"BilatuBilaketa " +"inkrementala. Bilaketa-koadroa bistaratze-arearen " +"goialdean azaltzen da." + +#: C/gedit.xml:462(para) +msgid "" +"Begin typing, and text that matches will be highlighted in the document. The " +"first instance after the cursor position is also selected." +msgstr "" +"Hasi idazten, eta bat datorren testua nabarmenduko da dokumentuan. " +"Kurtsorearen ondoren azaltzen den lehen instantzia ere hautatuko da." + +#: C/gedit.xml:463(para) +msgid "" +"To advance the selection to the next match while keeping the incremental " +"search box open, press " +"CtrlG. Press CtrlShiftG
" +"to go back to the previous match." +msgstr "" +"Bilaketa inkrementalaren koadroa irekita daukazula hautapena bat datorren " +"hurrengo agerraldira eramateko, sakatu " +"KtrlG. Sakatu KtrlMaiusG
" +"bat datorren aurrekora joateko." + +#: C/gedit.xml:464(para) +msgid "" +"You can also use the up and down arrow keys or the mouse wheel to move the " +"selection between matches." +msgstr "" +"Gora eta behera gezi-teklak ere erabil ditzakezu, edo saguaren gurpila, " +"hautapena bat datozen agerraldien artean mugitzeko." + +#: C/gedit.xml:469(title) +msgid "Replacing Text" +msgstr "Testua ordeztea" + +#: C/gedit.xml:471(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "" +"Fitxategian kate bat bilatu eta hura beste kate batekin ordezteko, jarraitu " +"urrats hauei:" + +#: C/gedit.xml:473(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"Aukeratu BilatuOrdeztu, Ordeztu elkarrizketa-koadroa bistaratzeko." + +#: C/gedit.xml:475(para) +msgid "" +"Type the string that you want to find, in the Search " +"for field. You can include special characters such as a new line " +"or tab: see ." +msgstr "" +"Idatzi bilatu nahi duzun katea Bilatu eremuan. " +"Karaktere bereziak sar ditzakezu, lerro edo fitxa berri bat esate baterako: " +"ikus ." + +#: C/gedit.xml:476(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "" +"Idatzi Ordeztu honekin eremuan aurkitu duzun katea " +"ordezteko erabili nahi duzun katea." + +#: C/gedit.xml:480(para) +msgid "" +"To examine each occurrence of the string before replacing it, click " +"Find. If gedit finds the " +"string, the application selects the string. Click " +"Replace to replace the selected occurrence of the " +"string. To find the next occurrence of the string, click " +"Find again." +msgstr "" +"Katearen agerraldi bakoitza ikusteko ordeztu aurretik, egin klik " +"Bilatu botoian. gedit-ek " +"katea aurkitzen badu, aplikazioak katea hautatzen du. Egin klik " +"Ordeztu botoian, hautatutako kate-agerraldia " +"ordezteko. Katearen hurrengo agerraldia bilatzeko, egin klik " +"Bilatu botoian." + +#: C/gedit.xml:481(para) +msgid "" +"To replace all occurrences of the string throughout the document, click " +"Replace All." +msgstr "" +"Kateak dokumentuan dituen agerraldi guztiak ordezteko, egin klik " +"Ordeztu denak botoian." + +#: C/gedit.xml:486(title) +msgid "Find and Replace Options" +msgstr "Bilatzeko eta ordezteko aukerak" + +#: C/gedit.xml:487(para) +msgid "" +"The Find dialog and the Replace " +"dialog both have the following options:" +msgstr "" +"Bilatu eta Ordeztu elkarrizketek " +"ondoko aukerak dituzte:" + +#: C/gedit.xml:489(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type. For example, " +"with Match case selected, \"TEXT\" will not match \"text\"." +msgstr "" +"Bilaketan maiuskulak eta minuskulak bereiztea nahi baduzu, hautatu " +"Maiuskula/minuskula aukera. Esate baterako, " +"Maiuskula/Minuskula hautatuta dagoela, \"TESTUA\" eta " +"\"testua\" ez dira bat etorriko." + +#: C/gedit.xml:491(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type. For example, with Match entire word only " +"selected, \"text\" will not match \"texture\"." +msgstr "" +"Bilaketan idatzitako testuaren hitz osoekin bat datorren katearen " +"agerraldiak bakarrik aurkitzea nahi baduzu, hautatu Hitz osoak " +"soilik aukera. Esate baterako, Hitz osoak " +"soilik hautatuta dagoela, \"testua\" eta \"testura\" ez dira bat " +"etorriko." + +#: C/gedit.xml:493(para) +msgid "" +"Select the Search backwards option to search backwards " +"towards the beginning of the document." +msgstr "" +"Hautatu Bilatu gorantz aukera gorantz bilatzeko, " +"dokumentuaren hasierarantz." + +#: C/gedit.xml:495(para) +msgid "" +"Select the Wrap around option to search to one end of " +"the document and then continue the search from the other end of the file." +msgstr "" +"Hautatu Itzulbiratu, fitxategiaren amaierara iristen " +"denean orriaren hasieratik bilatzen jarraitzea nahi baduzu." + +#: C/gedit.xml:502(title) +msgid "Special Characters" +msgstr "Karaktere bereziak" + +#: C/gedit.xml:503(para) +msgid "" +"You can include the following escape sequences in the text to find or " +"replace to represent special characters:" +msgstr "" +"Ondoko ihes-sekuentziak sar ditzakezu testuan, karaktere bereziak " +"adierazteko bilatu edo ordeztu nahi dituzunean:" + +#: C/gedit.xml:506(literal) +msgid "\\n" +msgstr "\\n" + +#: C/gedit.xml:508(para) +msgid "Specifies a new line." +msgstr "Lerro berria adierazten du." + +#: C/gedit.xml:512(literal) +msgid "\\t" +msgstr "\\t" + +#: C/gedit.xml:514(para) +msgid "Specifies a tab character." +msgstr "Tabuladore-karakterea adierazten du." + +#: C/gedit.xml:518(literal) +msgid "\\r" +msgstr "\\r" + +#: C/gedit.xml:520(para) +msgid "Specifies a carriage return." +msgstr "Orga-itzulera adierazten du." + +#: C/gedit.xml:524(literal) +msgid "\\\\" +msgstr "\\\\" + +#: C/gedit.xml:526(para) +msgid "" +"The backslash character itself must be escaped if it is being searched for. " +"For example, if you are looking for the \"\\n\" literal, you " +"will have to type \"\\\\n\" in the Search for field. Or if " +"you are looking for a sequence of backslashes, you will have to double the " +"number of searched backslashes." +msgstr "" +"Alderantzizko barra bera ihes egin behar da, bilatu nahi bada. Esate " +"baterako, \"\\n\" literala bilatzeko, \"\\\\n\" idatzi behar " +"duzu Bilatu eremuan. Edo, alderantzizko barren " +"sekuentzia bat bilatzen ari bazara, bilatutako alderantzizko barren kopurua " +"bikoiztu beharko duzu." + +#: C/gedit.xml:538(title) +msgid "Positioning the Cursor on a Specific Line" +msgstr "Kurtsorea lerro jakin batean kokatzea" + +#: C/gedit.xml:540(para) +msgid "" +"To position the cursor on a specific line in the current file, choose " +"SearchGo to " +"Line. The line number box appears at the top of " +"the display area." +msgstr "" +"Kurtsorea uneko fitxategiko lerro jakin batean kokatzek, aukeratu " +"BilatuJoan " +"lerrora. Lerro-zenbakiaren koadroa bistaratze-" +"arearen goialdean azaltzen da." + +#: C/gedit.xml:541(para) +msgid "" +"Begin typing the number of the line that you want to move the cursor to and " +"the document will scroll to the specified line." +msgstr "" +"Hasi idazten kurtsorea joatea nahi duzun lerroaren zenbakia, eta dokumentua " +"zehaztutako lerrora korrituko da." + +#: C/gedit.xml:542(para) +msgid "" +"To dismiss the box and move the cursor to the specified line, press " +"Return." +msgstr "" +"Koadroa baztertzeko eta kurtsorea zehaztutako lerrora mugitzeko, sakatu " +"Sartu." + +#: C/gedit.xml:548(title) +msgid "Printing" +msgstr "Inprimatzea" + +#: C/gedit.xml:552(title) +msgid "Setting the Page Options" +msgstr "Orrialdearen aukerak ezartzea" + +#: C/gedit.xml:554(para) +msgid "" +"To set the page options, choose " +"FilePage " +"Setup to display the Page " +"Setup dialog." +msgstr "" +"Orrialdearen aukerak ezartzeko, aukeratu " +"FitxategiaPrestatu " +"orrialdea, Prestatu " +"orrialdea elkarrizketa-koadroa bistaratzeko." + +#: C/gedit.xml:556(para) +msgid "" +"The Page Setup dialog enables you to specify the " +"following print options:" +msgstr "" +"Prestatu orrialdea elkarrizketa-koadroak ondoko inprimatze-" +"aukerak zehazteko aukera ematen dizu:" + +#: C/gedit.xml:559(title) +msgid "General Tabbed Section" +msgstr "Orokorra fitxa" + +#: C/gedit.xml:561(guilabel) +msgid "Print syntax highlighting" +msgstr "Inprimatu sintaxiaren nabarmentzea" + +#: C/gedit.xml:563(para) +msgid "" +"Select this option to print syntax highlighting. For more information about " +"syntax highlighting, see ." +msgstr "" +"Hautatu aukera hau sintaxi-nabarmentzea inprimatzeko. Sintaxi-inprimatzeari " +"buruzko informazio gehiago lortzeko, ikus ." + +#: C/gedit.xml:566(guilabel) +msgid "Print page headers" +msgstr "Inprimatu orrialde-goiburuak" + +#: C/gedit.xml:568(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "" +"Hautatu aukera hau goiburu bat sartzeko inprimatzen duzun orrialde " +"bakoitzean. Ezin duzu goiburua konfiguratu." + +#: C/gedit.xml:571(guilabel) +#: C/gedit.xml:1183(guilabel) +msgid "Line Numbers" +msgstr "Lerro-zenbakiak" + +#: C/gedit.xml:574(para) +msgid "" +"Select the Print line numbers option to include line " +"numbers when you print a file." +msgstr "" +"Hautatu Inprimatu lerro-zenbakiak aukera zenbakiak " +"sartzeko fitxategi bat inprimatzen duzunean." + +#: C/gedit.xml:575(para) +msgid "" +"Use the Number every ... lines spin box to specify how " +"often to print the line numbers, for example every 5 lines, every 10 lines, " +"and so on." +msgstr "" +"Erabili Zenbakitu ... lerroz behin biratze-botoia " +"lerro-zenbakiak inprimatzeko maiztasuna zehazteko: 5 lerroz behin, 10 lerroz " +"behin..." + +#: C/gedit.xml:578(guilabel) +#: C/gedit.xml:1176(guilabel) +#: C/gedit.xml:1693(para) +msgid "Text Wrapping" +msgstr "Testu-itzulbiratzea" + +#: C/gedit.xml:580(para) +msgid "" +"Select the Enable text wrapping option to wrap text " +"onto the next line, at a character level, when you print a file. The " +"application counts wrapped lines as one line for line numbering purposes." +msgstr "" +"Hautatu Gaitu testu-itzulbiratzea aukera testua " +"hurrengo lerrora itzulbiratzeko, karaktere maila batean, fitxategi bat " +"inprimatzen duzunean. Aplikazioak lerro bakar gisa zenbatzen ditu " +"itzulbiratutako lerroak." + +#: C/gedit.xml:582(para) +msgid "" +"Select the Do not split words over two lines option to " +"wrap text onto the next line, at a word level, when you print a file." +msgstr "" +"Hautatu Ez banatu zatiak bi lerroren artean aukera " +"testua hitzaren mailan hurrengo lerrora itzulbiratzeko fitxategi bat " +"inprimatzean." + +#: C/gedit.xml:590(title) +msgid "Fonts" +msgstr "Letra-tipoak" + +#: C/gedit.xml:592(guilabel) +msgid "Body" +msgstr "Testua" + +#: C/gedit.xml:594(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "" +"Egin klik botoi honetan fitxategi bateko testua inprimatzean erabili behar " +"den letra-tipoa hautatzeko." + +#: C/gedit.xml:597(guilabel) +msgid "Line numbers" +msgstr "Lerro-zenbakiak" + +#: C/gedit.xml:600(para) +msgid "Click on this button to select the font to use to print line numbers." +msgstr "" +"Egin klik botoi honetan lerro-zenbakiak inprimatzean erabili behar den " +"letra-tipoa hautatzeko." + +#: C/gedit.xml:603(guilabel) +msgid "Headers and footers" +msgstr "Goiburuak eta orri-oinak" + +#: C/gedit.xml:605(para) +msgid "" +"Click on this button to select the font to use to print the headers and " +"footers in a file." +msgstr "" +"Egin klik botoi honetan, fitxategi batean goiburuak inprimatzean erabili " +"behar den letra-tipoa hautatzeko." + +#: C/gedit.xml:609(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit, click Restore Default " +"Fonts." +msgstr "" +"Fitxategi bat gedit-etik inprimatzeko letra-tipo " +"lehenetsiak berrezartzeko, egin klik Leheneratu letra-tipo " +"lehenetsietara botoian." + +#: C/gedit.xml:616(title) +msgid "Printing a Document" +msgstr "Dokumentu bat inprimatzea" + +#: C/gedit.xml:617(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "" +"gedit erabil dezakezu ondoko inprimatze-" +"eragiketak egiteko:" + +#: C/gedit.xml:619(para) +msgid "Print a document to a printer." +msgstr "Fitxategia inprimagailuan inprimatzea." + +#: C/gedit.xml:621(para) +msgid "Print the output of the print command to a file." +msgstr "Inprimatze-komandoaren irteera fitxategi batean inprimatzea." + +#: C/gedit.xml:624(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" +"Fitxategi batean inprimatzen baduzu, gedit-ek " +"fitxategiaren irteera aurrez inprimatzeko formatua duen fitxategira " +"bidaltzen du. Aurrez inprimatzeko formatu ohikoenak PostScript eta Portable " +"Document Format (PDF) dira." + +#: C/gedit.xml:626(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint " +"Preview." +msgstr "" +"Inprimatu nahi dituzun orrialdeen aurrebista lortzeko, aukeratu " +"FitxategiaInprimatzeko " +"aurrebista." + +#: C/gedit.xml:628(para) +msgid "" +"To print the current file to a printer or a file, choose FilePrint to display the " +"Print dialog." +msgstr "" +"Uneko fitxategia inprimagailu nahiz fitxategi batean inprimatzeko, aukeratu <" +"menuchoice>FitxategiaInprimatu" +"
, Inprimatu elkarrizketa-koadroa bistaratzeko." + +#: C/gedit.xml:630(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "" +"Inprimatu elkarrizketa-koadroak ondoko inprimatze-aukerak " +"zehazteko aukera ematen dizu:" + +#: C/gedit.xml:633(title) +msgid "Job Tabbed Section" +msgstr "Lana fitxa" + +#: C/gedit.xml:635(guilabel) +msgid "Print range" +msgstr "Inprimatze-areak" + +#: C/gedit.xml:637(para) +msgid "Select one of the following options to determine how many pages to print:" +msgstr "" +"Hautatu aukera hauetako bat zenbat orrialde inprimatu nahi dituzun " +"zehazteko:" + +#: C/gedit.xml:640(guilabel) +msgid "All" +msgstr "Dena" + +#: C/gedit.xml:641(para) +msgid "Select this option to print all of the pages in the file." +msgstr "Hautatu aukera hau fitxategiko orrialde guztiak inprimatzeko." + +#: C/gedit.xml:644(guilabel) +msgid "Lines" +msgstr "Lerroak" + +#: C/gedit.xml:645(para) +msgid "" +"Select this option to print the specified lines only. Use the " +"From and To spin boxes to specify " +"the line range." +msgstr "" +"Hautatu aukera hau zehaztutako lerroak bakarrik inprimatzeko. Erabili " +"Nondik eta Nora biratze-botoiak " +"lerro-barrutia zehazteko." + +#: C/gedit.xml:648(guilabel) +msgid "Selection" +msgstr "Hautapena" + +#: C/gedit.xml:649(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" +"Hautatu aukera hau hautatutako testua bakarrik inprimatzeko. Aukera hau " +"erabilgarri egoteko testua hautatuta eduki behar duzu." + +#: C/gedit.xml:655(guilabel) +msgid "Copies" +msgstr "Kopiak" + +#: C/gedit.xml:657(para) +msgid "" +"Use the Number of copies spin box to specify the number " +"of copies of the file that you want to print." +msgstr "" +"Erabili Kopia kopurua biratze-botoia inprimatu nahi " +"duzun fitxategiaren kopia kopurua zehazteko." + +#: C/gedit.xml:658(para) +msgid "" +"If you print multiple copies of the file, select the " +"Collate option to collate the printed copies." +msgstr "" +"Fitxategiaren hainbat kopia inprimatzeko, hautatu " +"Tartekatu aukera, inprimatutako kopiak tartekatzeko." + +#: C/gedit.xml:665(title) +msgid "Printer Tabbed Section" +msgstr "Inprimagailua fitxa" + +#: C/gedit.xml:667(guilabel) +msgid "Printer" +msgstr "Inprimagailua" + +#: C/gedit.xml:669(para) +msgid "" +"Use this drop-down list to select the printer to which you want to print the " +"file." +msgstr "" +"Erabili goitibeherako zerrenda hau fitxategia zein inprimagailutan inprimatu " +"nahi duzun hautatzeko." + +#: C/gedit.xml:672(guilabel) +msgid "Settings" +msgstr "Ezarpenak" + +#: C/gedit.xml:674(para) +msgid "Use this drop-down list to select the printer settings." +msgstr "Erabili goitibeherako zerrenda hau inprimagailuaren ezarpenak hautatzeko." + +#: C/gedit.xml:676(para) +msgid "" +"To configure the printer, click Configure. For " +"example, you can enable or disable duplex printing, or schedule delayed " +"printing, if this functionality is supported by the printer." +msgstr "" +"Inprimagailua konfiguratzeko, egin klik Konfiguratu " +"botoian. Esate baterako, inprimatze bikoitza gaitu edo desgaitu dezakezu, " +"edo geroago inprimatzea programatu, inprimagailuak funtzionaltasun hori " +"onartzen badu." + +#: C/gedit.xml:680(guilabel) +msgid "Location" +msgstr "Kokalekua" + +#: C/gedit.xml:682(para) +msgid "Use this drop-down list to select one of the following print destinations:" +msgstr "" +"Erabili goitibeherako zerrenda hau onodko inprimatze-helburu hauetako bat " +"hautatzeko:" + +#: C/gedit.xml:687(guilabel) +msgid "CUPS" +msgstr "CUPS" + +#: C/gedit.xml:689(para) +msgid "Print the file to a CUPS printer." +msgstr "Inprimatu fitxategia CUPS inprimagailuan." + +#: C/gedit.xml:693(para) +msgid "" +"If the selected printer is a CUPS printer, CUPS is the " +"only entry in this drop-down list." +msgstr "" +"Hautatutako inprimagailua CUPS inprimagailua bada, CUPS " +"izango da goitibeherako zerrendako sarrera bakarra." + +#: C/gedit.xml:700(guilabel) +msgid "lpr" +msgstr "lpr" + +#: C/gedit.xml:702(para) +msgid "Print the file to a printer." +msgstr "Inprimatu fitxategia inprimagailuan." + +#: C/gedit.xml:708(guilabel) +msgid "File" +msgstr "Fitxategia" + +#: C/gedit.xml:710(para) +msgid "Print the file to a PostScript file." +msgstr "Inprimatu fitxategia PostScript inprimagailuan." + +#: C/gedit.xml:713(para) +msgid "" +"Click Save As to display a dialog where you specify " +"the name and location of the PostScript file." +msgstr "" +"Egin klik Gorde honela botoian PostScript " +"fitxategiaren izena eta kokalekua zehazteko elkarrizketa-koadroa bistaratzeko." + +#: C/gedit.xml:719(guilabel) +msgid "Custom" +msgstr "Pertsonalizatu" + +#: C/gedit.xml:721(para) +msgid "Use the specified command to print the file." +msgstr "Erabili zehaztutako komandoa fitxategia inprimatzeko." + +#: C/gedit.xml:724(para) +msgid "" +"Type the name of the command in the text box. Include all command-line " +"arguments." +msgstr "" +"Idatzi komandoaren izena testu-koadroan. Sartu komando-lerroko argumentu " +"guztiak." + +#: C/gedit.xml:732(guilabel) +msgid "State" +msgstr "Egoera" + +#: C/gedit.xml:734(para) +#: C/gedit.xml:740(para) +#: C/gedit.xml:746(para) +msgid "This functionality is not supported in this version of gedit." +msgstr "gedit-en bertsio honek ez du onartzen funtzionaltasun hau." + +#: C/gedit.xml:738(guilabel) +msgid "Type" +msgstr "Mota" + +#: C/gedit.xml:744(guilabel) +msgid "Comment" +msgstr "Iruzkina" + +#: C/gedit.xml:754(title) +msgid "Paper Tabbed Section" +msgstr "Papera fitxa" + +#: C/gedit.xml:756(guilabel) +msgid "Paper size" +msgstr "Paperaren tamaina" + +#: C/gedit.xml:758(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "" +"Erabili goitibeherako zerrenda hau fitxategia zein paper-tamainatan " +"inprimatu nahi duzun hautatzeko." + +#: C/gedit.xml:761(guilabel) +msgid "Width" +msgstr "Zabalera" + +#: C/gedit.xml:763(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit." +msgstr "" +"Erabili biratze-botoi hau paperaren zabalera zehazteko. Erabili ondoko " +"goitibeherako zerrenda neurri-unitatea aldatzeko." + +#: C/gedit.xml:766(guilabel) +msgid "Height" +msgstr "Altuera" + +#: C/gedit.xml:768(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "Erabili biratze-botoi hau paperaren altuera zehazteko." + +#: C/gedit.xml:771(guilabel) +msgid "Feed orientation" +msgstr "Elikatzeko orientazioa" + +#: C/gedit.xml:773(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "" +"Erabili goitibeherako zerrenda hau inprimagailuan paperaren orientazioa " +"hautatzeko." + +#: C/gedit.xml:776(guilabel) +msgid "Page orientation" +msgstr "Paperaren orientazioa" + +#: C/gedit.xml:778(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "Erabili goitibeherako zerrenda hau paperaren orientazioa hautatzeko." + +#: C/gedit.xml:781(guilabel) +msgid "Layout" +msgstr "Diseinua" + +#: C/gedit.xml:783(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" +"Erabili goitibeherako zerrenda hau orri-diseinua hautatzeko. Zuk hautatutako " +"diseinu bakoitzaren aurrebista bistaratzen da " +"Aurrebista arean." + +#: C/gedit.xml:786(guilabel) +msgid "Paper tray" +msgstr "Paper-erretilua" + +#: C/gedit.xml:788(para) +msgid "Use this drop-down list to select the paper tray." +msgstr "Erabili goitibeherako zerrenda hau paper-erretilua hautatzeko." + +#: C/gedit.xml:799(title) +msgid "Programming Features" +msgstr "Programazio-eginbideak" + +#: C/gedit.xml:801(para) +msgid "" +"Several of gedit's features for programming are " +"provided with plugins. For example, the Tag List plugin provides a list of " +"commonly-used tags for different markup languages: see ." +msgstr "" +"gedit-en programatzeko eginbide batzuk pluginekin " +"hornitzen dira. Esate baterako, Etiketa-zerrendaren pluginak markatzeko " +"lengoaia batzuekin gehien erabilitako etiketen zerrenda bat hornitzen du: " +"ikus ." + +#: C/gedit.xml:805(title) +msgid "Syntax Highlighting" +msgstr "Sintaxiaren nabarmentzea" + +#: C/gedit.xml:806(para) +msgid "" +"Syntax highlighting makes source code easier to read by showing different " +"parts of the text in different colors." +msgstr "" +"Sintaxi-nabarmentzeak iturburu-kodea irakurtzea errazten du, testuaren " +"zatiak kolore desberdinetan erakusten dituelako." + +#: C/gedit.xml:808(para) +msgid "" +"gedit chooses an appropriate syntax highlighting " +"mode based on a document's type. To override the syntax highlighting mode, " +"choose ViewHighlight " +"Mode, then choose one of the following menu " +"items:" +msgstr "" +"gedit-ek sintaxi-nabarmentzearen modu egokia " +"aukeratzen du, dokumentu mota batean oinarrituta. Sintaxi-nabarmentzearen " +"modua gainidazteko, aukeratu " +"IkusiNabarmentzeko " +"modua, eta, ondoren, ondoko menu-elementuetako " +"bat:" + +#: C/gedit.xml:811(guimenuitem) +msgid "Normal" +msgstr "Normala" + +#: C/gedit.xml:813(para) +msgid "Do not display any syntax highlighting." +msgstr "Ez bistaratu sintaxi-nabarmentzerik." + +#: C/gedit.xml:817(guisubmenu) +msgid "Sources" +msgstr "Iturburuak" + +#: C/gedit.xml:819(para) +msgid "" +"Display syntax highlighting to edit source code. Use the " +"Sources submenu to select the source code type." +msgstr "" +"Bistaratu sintaxi-nabarmentzea iturburu-kodea editatzeko. Erabili " +"Iturburuak azpimenua, iturburuaren kode mota " +"hautatzeko." + +#: C/gedit.xml:823(guisubmenu) +msgid "Markup" +msgstr "Markatu" + +#: C/gedit.xml:825(para) +msgid "" +"Display syntax highlighting to edit markup code. Use the " +"Markup submenu to select the markup code type." +msgstr "" +"Bistaratu sintaxi-nabarmentzea markatzeko kodea editatzeko. Erabili " +"Markatu azpimenua, markatzeko kode mota hautatzeko." + +#: C/gedit.xml:829(guisubmenu) +msgid "Scripts" +msgstr "Scriptak" + +#: C/gedit.xml:831(para) +msgid "" +"Display syntax highlighting to edit script code. Use the " +"Scripts submenu to select the script code type." +msgstr "" +"Bistaratu sintaxi-nabarmentzea script-kodea editatzeko. Erabili " +"Scriptak azpimenua, scripten kode mota hautatzeko." + +#: C/gedit.xml:835(guisubmenu) +msgid "Others" +msgstr "Bestelakoak" + +#: C/gedit.xml:837(para) +msgid "" +"Display syntax highlighting to edit other types of code. Use the " +"Others submenu to select the code type." +msgstr "" +"Bistaratu sintaxi-nabarmentzea beste kode mota batzuk editatzeko. Erabili " +"Bestelakoak azpimenua kode mota hautatzeko." + +#: C/gedit.xml:845(title) +msgid "Piping the Output of a Command to a File" +msgstr "Komando baten irteera fitxategi batera kanalizatzea" + +#: C/gedit.xml:846(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" +"gedit erabil dezakezu komando baten irteera " +"testu-fitxategi batera kanalizatzeko. Esate baterako, ls " +"komando baten irteera testu-fitxategi batera kanalizatzeko, idatzi " +"ls | gedit, eta sakatu Sartu." + +#: C/gedit.xml:847(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" +"ls komandoaren irteera testu-fitxategi berri batean " +"bistaratzen da gedit-en leihoan." + +#: C/gedit.xml:848(para) +msgid "" +"Alternatively, you can use the External tools " +"plugin to pipe command output to the current file." +msgstr "" +"Bestela, Kanpoko tresnak plugina erabil dezakezu " +"komando-irteera uneko fitxategira kanalizatzeko." + +#: C/gedit.xml:854(title) +msgid "Shortcut Keys" +msgstr "Laster-teklak" + +#: C/gedit.xml:855(para) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the mouse " +"and menus. The following tables list all of " +"gedit's shortcut keys." +msgstr "" +"Erabili laster-teklak ohiko zereginak saguarekin eta menuekin baino " +"bizkorrago egiteko. gedit-en laster-tekla guztien " +"zerrenda azaltzen da ondoko tauletan." + +#: C/gedit.xml:856(para) +msgid "" +"For more on shortcut keys, see the Desktop User Guide." +msgstr "" +"Laster-teklei buruz gehiago jakiteko, ikus Mahaigaineko erabiltzailearen gida." + +#. ============= Tabs ======================== +#: C/gedit.xml:859(bridgehead) +#: C/gedit.xml:1215(guilabel) +msgid "Tabs" +msgstr "Fitxak" + +#: C/gedit.xml:860(para) +msgid "Shortcuts for tabs:" +msgstr "Fitxen laster-teklak:" + +#: C/gedit.xml:868(para) +#: C/gedit.xml:912(para) +#: C/gedit.xml:968(para) +#: C/gedit.xml:1024(para) +#: C/gedit.xml:1052(para) +#: C/gedit.xml:1099(para) +#: C/gedit.xml:1142(para) +msgid "Shortcut Key" +msgstr "Laster-tekla" + +#: C/gedit.xml:870(para) +#: C/gedit.xml:914(para) +#: C/gedit.xml:970(para) +#: C/gedit.xml:1026(para) +#: C/gedit.xml:1054(para) +#: C/gedit.xml:1101(para) +#: C/gedit.xml:1144(para) +msgid "Command" +msgstr "Komandoa" + +#: C/gedit.xml:875(para) +msgid "Ctrl + Alt + PageUp" +msgstr "Ktrl + Alt + OrrGor" + +#: C/gedit.xml:876(para) +msgid "Switches to the next tab to the left." +msgstr "Ezkerreko hurrengo fitxara doa." + +#: C/gedit.xml:879(para) +msgid "Ctrl + Alt + PageDown" +msgstr "Ktrl + Alt + OrrBeh" + +#: C/gedit.xml:880(para) +msgid "Switches to the next tab to the right." +msgstr "Eskuineko hurrengo fitxara doa." + +#: C/gedit.xml:883(para) +#: C/gedit.xml:947(para) +msgid "Ctrl + W" +msgstr "Ktrl + W" + +#: C/gedit.xml:884(para) +msgid "Close tab." +msgstr "Fitxa ixten du." + +#: C/gedit.xml:887(para) +msgid "Ctrl + Shift + L" +msgstr "Ktrl + Maius + L" + +#: C/gedit.xml:888(para) +msgid "Save all tabs." +msgstr "Fitxa guztiak gordetzen ditu." + +#: C/gedit.xml:891(para) +msgid "Ctrl + Shift + W" +msgstr "Ktrl + Maius + W" + +#: C/gedit.xml:892(para) +msgid "Close all tabs." +msgstr "Fitxa guztiak ixten ditu." + +#: C/gedit.xml:895(para) +msgid "Alt + n" +msgstr "Alt + n" + +#: C/gedit.xml:896(para) +msgid "Jump to nth tab." +msgstr "ngarren fitxara doa." + +#. ============= Files ======================== +#: C/gedit.xml:903(bridgehead) +msgid "Files" +msgstr "Fitxategiak" + +#: C/gedit.xml:904(para) +msgid "Shortcuts for working with files:" +msgstr "Fitxategiekin lan egiteko laster-teklak:" + +#: C/gedit.xml:919(para) +msgid "Ctrl + N" +msgstr "Ktrl + N" + +#: C/gedit.xml:920(para) +msgid "Create a new document." +msgstr "Dokumentu berria sortzen du." + +#: C/gedit.xml:923(para) +msgid "Ctrl + O" +msgstr "Ktrl + O" + +#: C/gedit.xml:924(para) +msgid "Open a document." +msgstr "Dokumentu bat irekitzen du." + +#: C/gedit.xml:927(para) +msgid "Ctrl + L" +msgstr "Ktrl + L" + +#: C/gedit.xml:928(para) +msgid "Open a location." +msgstr "Kokaleku bat irekitzen du." + +#: C/gedit.xml:931(para) +msgid "Ctrl + S" +msgstr "Ktrl + S" + +#: C/gedit.xml:932(para) +msgid "Save the current document to disk." +msgstr "Uneko dokumentua diskoan gordetzen du." + +#: C/gedit.xml:935(para) +msgid "Ctrl + Shift + S" +msgstr "Ktrl + Maius + S" + +#: C/gedit.xml:936(para) +msgid "Save the current document with a new filename." +msgstr "Uneko dokumentua fitxategi-izen berri batekin gordetzen du." + +#: C/gedit.xml:939(para) +msgid "Ctrl + P" +msgstr "Ktrl + P" + +#: C/gedit.xml:940(para) +msgid "Print the current document." +msgstr "Uneko dokumentua inprimatzen du." + +#: C/gedit.xml:943(para) +msgid "Ctrl + Shift + P" +msgstr "Ktrl + Maius + P" + +#: C/gedit.xml:944(para) +msgid "Print preview." +msgstr "Inprimatzeko aurrebista." + +#: C/gedit.xml:948(para) +msgid "Close the current document." +msgstr "Uneko dokumentua ixten du." + +#: C/gedit.xml:951(para) +msgid "Ctrl + Q" +msgstr "Ktrl + Q" + +#: C/gedit.xml:952(para) +msgid "Quit Gedit." +msgstr "Gedit-etik irteten da." + +#. ============= Edit ======================= +#: C/gedit.xml:959(bridgehead) +#: C/gedit.xml:1414(guimenu) +#: C/gedit.xml:1420(guimenu) +#: C/gedit.xml:1426(guimenu) +#: C/gedit.xml:1432(guimenu) +msgid "Edit" +msgstr "Editatu" + +#: C/gedit.xml:960(para) +msgid "Shortcuts for editing documents:" +msgstr "Dokumentuak editatzeko laster-teklak:" + +#: C/gedit.xml:975(para) +msgid "Ctrl + Z" +msgstr "Ktrl + Z" + +#: C/gedit.xml:976(para) +msgid "Undo the last action." +msgstr "Azken ekintza desegiten du." + +#: C/gedit.xml:979(para) +msgid "Ctrl + Shift + Z" +msgstr "Ktrl + Maius + Z" + +#: C/gedit.xml:980(para) +msgid "Redo the last undone action ." +msgstr "Desegin den azken ekintza berregiten du." + +#: C/gedit.xml:983(para) +msgid "Ctrl + X" +msgstr "Ktrl + X" + +#: C/gedit.xml:984(para) +msgid "Cut the selected text or region and place it on the clipboard." +msgstr "Hautatutako testua edo area ebaki eta arbelean jartzen du." + +#: C/gedit.xml:987(para) +msgid "Ctrl + C" +msgstr "Ktrl + C" + +#: C/gedit.xml:988(para) +msgid "Copy the selected text or region onto the clipboard." +msgstr "Hautatutako testua edo area arbelean kopiatzen du." + +#: C/gedit.xml:991(para) +msgid "Ctrl + V" +msgstr "Ktrl + V" + +#: C/gedit.xml:992(para) +msgid "Paste the contents of the clipboard." +msgstr "Arbeleko edukia itsasten du." + +#: C/gedit.xml:995(para) +msgid "Ctrl + A" +msgstr "Ktrl + A" + +#: C/gedit.xml:996(para) +msgid "Select all." +msgstr "Dena hautatzen da." + +#: C/gedit.xml:999(para) +msgid "Ctrl + D" +msgstr "Ktrl + D" + +#: C/gedit.xml:1000(para) +msgid "Delete current line." +msgstr "Uneko lerroa ezabatzen du." + +#: C/gedit.xml:1003(para) +msgid "Alt + Up" +msgstr "Alt + Gora" + +#: C/gedit.xml:1004(para) +msgid "Move the selected line up one line." +msgstr "Hautatutako lerroa lerro bat gora eramaten du." + +#: C/gedit.xml:1007(para) +msgid "Alt + Down" +msgstr "Alt + Behera" + +#: C/gedit.xml:1008(para) +msgid "Move the selected line down one line." +msgstr "Hautatutako lerroa lerro bat behera eramaten du." + +#. ============= Panes ======================= +#: C/gedit.xml:1015(bridgehead) +msgid "Panes" +msgstr "Panelak" + +#: C/gedit.xml:1016(para) +msgid "Shortcuts for showing and hiding panes:" +msgstr "Panelak bistaratzeko eta ezkutatzeko laster-teklak:" + +#: C/gedit.xml:1031(para) +msgid "F9" +msgstr "F9" + +#: C/gedit.xml:1032(para) +msgid "Show/hide the side pane." +msgstr "Albo-panela bistaratzen/ezkutatzen du." + +#: C/gedit.xml:1035(para) +msgid "Ctrl + F9" +msgstr "Ktrl + F9" + +#: C/gedit.xml:1036(para) +msgid "Show/hide the bottom pane." +msgstr "Beheko panela bistaratzen/ezkutatzen du." + +#. ============= Search ======================= +#: C/gedit.xml:1043(bridgehead) +msgid "Search" +msgstr "Bilatu" + +#: C/gedit.xml:1044(para) +msgid "Shortcuts for searching:" +msgstr "Bilatzeko laster-teklak:" + +#: C/gedit.xml:1059(para) +msgid "Ctrl + F" +msgstr "Ktrl + F" + +#: C/gedit.xml:1060(para) +msgid "Find a string." +msgstr "Kate bat bilatzen du." + +#: C/gedit.xml:1063(para) +msgid "Ctrl + G" +msgstr "Ktrl + G" + +#: C/gedit.xml:1064(para) +msgid "Find the next instance of the string." +msgstr "Katearen hurrengo agerraldia bilatzen du." + +#: C/gedit.xml:1067(para) +msgid "Ctrl + Shift + G" +msgstr "Ktrl + Maius + G" + +#: C/gedit.xml:1068(para) +msgid "Find the previous instance of the string." +msgstr "Katearen aurreko agerraldia bilatzen du." + +#: C/gedit.xml:1071(para) +msgid "Ctrl + K" +msgstr "Ktrl + K" + +#: C/gedit.xml:1072(para) +msgid "Interactive search." +msgstr "Bilaketa interaktiboa." + +#: C/gedit.xml:1075(para) +msgid "Ctrl + H" +msgstr "Ktrl + H" + +#: C/gedit.xml:1076(para) +msgid "Search and replace." +msgstr "Bilatzen eta ordezten du." + +#: C/gedit.xml:1079(para) +msgid "Ctrl + Shift + K" +msgstr "Ktrl + Maius + K" + +#: C/gedit.xml:1080(para) +msgid "Clear highlight." +msgstr "Nabarmentzea garbitzen du." + +#: C/gedit.xml:1083(para) +msgid "Ctrl + I" +msgstr "Ktrl + I" + +#: C/gedit.xml:1084(para) +msgid "Goto line." +msgstr "Lerro honetara doa." + +#. ============= Tools ======================= +#: C/gedit.xml:1090(bridgehead) +msgid "Tools" +msgstr "Tresnak" + +#: C/gedit.xml:1091(para) +msgid "Shortcuts for tools:" +msgstr "Tresnen laster-teklak:" + +#: C/gedit.xml:1106(para) +msgid "Shift + F7" +msgstr "Maius + F7" + +#: C/gedit.xml:1107(para) +msgid "Check spelling (with plugin)." +msgstr "Ortografia egiaztatzen du (pluginarekin)." + +#: C/gedit.xml:1110(para) +msgid "Alt + F12" +msgstr "Alt + F12" + +#: C/gedit.xml:1111(para) +msgid "Remove trailing spaces (with plugin)." +msgstr "Atzeko zuriuneak kentzen ditu (pluginarekin)." + +#: C/gedit.xml:1114(para) +msgid "Ctrl + T" +msgstr "Ktrl + T" + +#: C/gedit.xml:1115(para) +msgid "Indent (with plugin)." +msgstr "Koskatzen du (pluginarekin)." + +#: C/gedit.xml:1118(para) +msgid "Ctrl + Shift + T" +msgstr "Ktrl + Maius + T" + +#: C/gedit.xml:1119(para) +msgid "Remove Indent (with plugin)." +msgstr "Koska kentzen du (pluginarekin)." + +#: C/gedit.xml:1122(para) +msgid "F8" +msgstr "F8" + +#: C/gedit.xml:1123(para) +msgid "Run \"make\" in current directory (with plugin)." +msgstr "\"make\" exekutatzen du uneko direktorioan (pluginarekin)." + +#: C/gedit.xml:1126(para) +msgid "Ctrl + Shift + D" +msgstr "Ktrl + Maius + D" + +#: C/gedit.xml:1127(para) +msgid "Directory listing (with plugin)." +msgstr "Direktorioak zerrendatzen ditu (pluginarekin)." + +#. ============= Help ======================= +#: C/gedit.xml:1133(bridgehead) +msgid "Help" +msgstr "Laguntza" + +#: C/gedit.xml:1134(para) +msgid "Shortcuts for help:" +msgstr "Laguntzarako laster-teklak:" + +#: C/gedit.xml:1149(para) +msgid "F1" +msgstr "F1" + +#: C/gedit.xml:1150(para) +msgid "Open gedit's user manual." +msgstr "" +"gedit-en erabiltzailearen eskuliburua irekitzen " +"du." + +#: C/gedit.xml:1162(title) +msgid "Preferences" +msgstr "Hobespenak" + +#: C/gedit.xml:1164(para) +msgid "" +"To configure gedit, choose E" +"ditPreferences. The " +"Preferences dialog contains the following categories:" +msgstr "" +"gedit konfiguratzeko, aukeratu EditatuHobespenak. " +"Hobespenak elkarrizketa-koadroak ondoko kategoriak dauzka:" + +#: C/gedit.xml:1173(title) +msgid "View Preferences" +msgstr "Ikuspegia" + +#: C/gedit.xml:1178(para) +msgid "" +"Select the Enable text wrapping option to have long " +"lines of text flow into paragraphs instead of running off the edge of the " +"text window. This avoids having to scroll horizontally" +msgstr "" +"Hautatu Gaitu testu-itzulbiratzea aukera testu-lerro " +"luzeak paragrafoetan ikus daitezen, testu-leihoaren ertzeraino joan gabe. " +"Honek eragozten du horizontalki korritu behar izatea" + +#: C/gedit.xml:1179(para) +msgid "" +"Select the Do not split words over two lines option to " +"have the text wrapping option preserve whole words when flowing text to the " +"next line. This makes text easier to read." +msgstr "" +"Hautatu Ez zatitu hitzak bi lerrotan aukera testua " +"itzulbiratzeko aukerak hitzak osorik manten ditzan testua hurrengo lerrora " +"eramatean. Horrek irakurtzea errazten du." + +#: C/gedit.xml:1185(para) +msgid "" +"Select the Display line numbers option to display line " +"numbers on the left side of the gedit window." +msgstr "" +"Hautatu Bistaratu lerro-zenbakiak aukera lerro-" +"zenbakiak bistaratzeko gedit leihoaren " +"ezkerraldean." + +#: C/gedit.xml:1189(guilabel) +msgid "Current Line" +msgstr "Uneko lerroa" + +#: C/gedit.xml:1191(para) +msgid "" +"Select the Highlight current line option to highlight " +"the line where the cursor is placed." +msgstr "" +"Hautatu Nabarmendu uneko lerroa aukera, kurtsorea " +"dagoen lerroa nabarmentzeko." + +#: C/gedit.xml:1195(guilabel) +msgid "Right Margin" +msgstr "Eskuineko marjina" + +#: C/gedit.xml:1197(para) +msgid "" +"Select the Display right margin option to display a " +"vertical line that indicates the right margin." +msgstr "" +"Hautatu Bistaratu eskuineko marjina aukera, eskuineko " +"marjina adierazten duen lerro bertikala bistaratzeko." + +#: C/gedit.xml:1198(para) +msgid "" +"Use the Right margin at column spin box to specify the " +"location of the vertical line." +msgstr "" +"Erabili Eskuineko marjina zutabe honetan biratze-botoia " +"lerro bertikalaren kokalekua zehazteko." + +#: C/gedit.xml:1202(guilabel) +msgid "Bracket Matching" +msgstr "Parentesi bikoteak" + +#: C/gedit.xml:1204(para) +msgid "" +"Select the Highlight matching bracket option to " +"highlight the corresponding bracket when the cursor is positioned on a " +"bracket character." +msgstr "" +"Hautatu Nabarmendu parentesi bikotekidea aukera " +"kurtsorea parentesi-karaktere batean kokatuta dagoenean parentesi " +"bikotekidea nabarmentzeko." + +#: C/gedit.xml:1212(title) +msgid "Editor Preferences" +msgstr "Editorearen hobespenak" + +#: C/gedit.xml:1217(para) +msgid "" +"Use the Tab width spin box to specify the width of the " +"space that gedit inserts when you press the " +"Tab key." +msgstr "" +"Erabili Tabulazio-zabalera biratze-botoia zuk " +"Tabuladorea tekla sakatzen " +"duzuneangedit-ek txertatuko duen zuriunearen " +"zabalera." + +#: C/gedit.xml:1218(para) +msgid "" +"Select the Insert spaces instead of tabs option to " +"specify that gedit inserts spaces instead of a " +"tab character when you press the Tab key." +msgstr "" +"Hautatu Txertatu zuriuneak tabuladoreen ordez aukera, " +"gedit-ek zuriuneak txerta ditzan, tabulazio-" +"karaktereen ordez, zuk Tabuladorea tekla sakatzen duzunean." + +#: C/gedit.xml:1222(guilabel) +msgid "Auto Indentation" +msgstr "Koska automatikoa" + +#: C/gedit.xml:1224(para) +msgid "" +"Select the Enable auto indentation option to specify " +"that the next line starts at the indentation level of the current line." +msgstr "" +"Hautatu Gaitu koska automatikoa aukera hurrengo lerroa " +"uneko lerroaren koskaren mailan hasten dela adierazteko." + +#: C/gedit.xml:1228(guilabel) +msgid "File Saving" +msgstr "Fitxategiak gordetzea" + +#: C/gedit.xml:1230(para) +msgid "" +"Select the Create a backup copy of files before saving " +"option to create a backup copy of a file each time you save the file. The " +"backup copy of the file contains a ~ at the end of the filename." +msgstr "" +"Hautatu Sortu fitxategien babeskopia gorde aurretik " +"aukera, fitxategi bakoitzaren babeskopia sortzeko fitxategia gordetzen duzun " +"bakoitzean. Fitxategiaren babeskopiak ~ bat dauka fitxategi-izenaren " +"amaieran." + +#: C/gedit.xml:1231(para) +msgid "" +"Select the Autosave files every ... minutes option to " +"automatically save the current file at regular intervals. Use the spin box " +"to specify how often you want to save the file." +msgstr "" +"Hautatu Gorde fitxategiak automatikoki ... minutuz " +"behin aukera uneko fitxategia maiztasun erregular batekin " +"gordetzeko. Erabili biratze-botoia fitxategia gordetzeko maiztasuna " +"zehazteko." + +#: C/gedit.xml:1238(title) +msgid "Font & Colors Preferences" +msgstr "Letra-tipoen eta koloreen hobespenak" + +#: C/gedit.xml:1241(guilabel) +msgid "Font" +msgstr "Letra-tipoa" + +#: C/gedit.xml:1243(para) +msgid "" +"Select the Use default theme font option to use the " +"default system font for the text in the gedit " +"text window." +msgstr "" +"Hautatu Erabili gaiaren letra-tipo lehenetsia aukera " +"sistemaren letra-tipo lehenetsia erabiltzeko testurako " +"gedit-en testu-leihoan." + +#: C/gedit.xml:1244(para) +msgid "" +"The Editor font field displays the font that " +"gedit uses to display text. Click on the button " +"to specify the font type, style, and size to use for text." +msgstr "" +"Editorearen letra-tipoa eremuak " +"gedit-ek testua bistaratzeko darabilen letra-" +"tipoa bistaratzen du. Egin klik botoian testuan erabili beharreko letra-" +"tipoa, estiloa eta tamaina zehazteko." + +#: C/gedit.xml:1248(guilabel) +msgid "Color Scheme" +msgstr "Kolore-eskema" + +#: C/gedit.xml:1250(para) +msgid "" +"You can choose a color scheme from the list of color schemes. By default, " +"the following color schemes are installed:" +msgstr "" +"Kolore-eskema bat aukera dezakezu kolore-eskemen zerrendan. Modu " +"lehenetsian, kolore-eskema hauek daude instalatuta:" + +#: C/gedit.xml:1253(guilabel) +msgid "Classic" +msgstr "Klasikoa" + +#: C/gedit.xml:1255(para) +msgid "Classic color scheme based on the gvim color scheme." +msgstr "gvim kolore-eskeman oinarritutako kolore-eskema klasikoa." + +#: C/gedit.xml:1259(guilabel) +msgid "Cobalt" +msgstr "Kobaltoa" + +#: C/gedit.xml:1261(para) +msgid "Blue based color scheme." +msgstr "Urdinean oinarritutako kolore-eskema." + +#: C/gedit.xml:1265(guilabel) +msgid "Kate" +msgstr "Kate" + +#: C/gedit.xml:1267(para) +msgid "Color scheme used in the Kate text editor." +msgstr "Kate testu-editorean erabilitako kolore-eskema." + +#: C/gedit.xml:1271(guilabel) +msgid "Oblivion" +msgstr "Oblivion" + +#: C/gedit.xml:1273(para) +msgid "Dark color scheme using the Tango color palette." +msgstr "Tango kolore-paleta darabilen kolore-eskema iluna." + +#: C/gedit.xml:1277(guilabel) +msgid "Tango" +msgstr "Tangoa" + +#: C/gedit.xml:1279(para) +msgid "Color scheme using the Tango color scheme." +msgstr "Tango kolore-paleta darabilen kolore-eskema." + +#: C/gedit.xml:1283(para) +msgid "" +"You can add a new color scheme by clicking on Add..., " +"and selecting a color scheme file" +msgstr "" +"Kolore-eskema berria gehitzeko, hautatu Gehitu..., eta " +"hautatu kolore-eskemaren fitxategi bat" + +#: C/gedit.xml:1284(para) +msgid "" +"You can remove the selected color scheme by clicking on " +"Remove" +msgstr "Hautatutako kolore-eskema kentzeko, hautatu Kendu" + +#: C/gedit.xml:1291(title) +msgid "Plugins Preferences" +msgstr "Plugin-hobespenak" + +#: C/gedit.xml:1292(para) +msgid "" +"Plugins add extra features to gedit. For more " +"information on plugins and how to use the built-in plugins, see ." +msgstr "" +"Pluginek eginbide estrak gehitzen dituzte " +"gedit-en. Pluginei buruz eta plugin inkorporatuak " +"nola erabili jakiteko, ikus ." + +#: C/gedit.xml:1296(title) +msgid "Enabling a Plugin" +msgstr "Plugin bat gaitzea" + +#: C/gedit.xml:1297(para) +msgid "" +"To enable a gedit plugin, perform the following " +"steps:" +msgstr "gedit plugin bat gaitzeko, jarraitu urrats hauek:" + +#: C/gedit.xml:1300(para) +#: C/gedit.xml:1321(para) +#: C/gedit.xml:1643(para) +msgid "" +"Choose EditPreferences." +msgstr "" +"Aukeratu EditatuHobespenak." + +#: C/gedit.xml:1303(para) +#: C/gedit.xml:1324(para) +#: C/gedit.xml:1646(para) +msgid "Select the Plugins tab." +msgstr "Hautatu Pluginak fitxa." + +#: C/gedit.xml:1306(para) +msgid "Select the check box next to the name of the plugin that you want to enable." +msgstr "Hautatu gaitu nahi duzun pluginaren izenaren ondoko kontrol-laukia." + +#: C/gedit.xml:1309(para) +#: C/gedit.xml:1330(para) +msgid "" +"Click Close to close the " +"Preferences dialog." +msgstr "" +"Egin klik Itxi botoian, " +"Hobespenak elkarrizketa-koadroa ixteko." + +#: C/gedit.xml:1316(title) +msgid "Disabling a Plugin" +msgstr "Plugin bat desgaitzea" + +#: C/gedit.xml:1317(para) +msgid "A plugin remains enabled when you quit gedit." +msgstr "" +"Plugina gaituta geratzen da gedit-etik " +"irtendakoan." + +#: C/gedit.xml:1318(para) +msgid "" +"To disable a gedit plugin, perform the following " +"steps:" +msgstr "" +"gedit plugin bat desgaitzeko, jarraitu urrats " +"hauek:" + +#: C/gedit.xml:1327(para) +msgid "" +"Deselect the check box next to the name of the plugin that you want to " +"disable." +msgstr "Desautatu desgaitu nahi duzun pluginaren izenaren ondoko kontrol-laukia." + +#: C/gedit.xml:1339(title) +msgid "Plugins" +msgstr "Pluginak" + +#: C/gedit.xml:1341(title) +msgid "Working with Plugins" +msgstr "Pluginekin lan egitea" + +#: C/gedit.xml:1342(para) +msgid "" +"You can add extra features to gedit by enabling " +"plugins. A plugin is a supplementary program that " +"enhances the functionality of an application. Plugins add new items to the " +"gedit menus for the new features they provide." +msgstr "" +"gedit-i eginbide estrak gehitzeko, gaitu " +"pluginak. Pluginak aplikazio baten funtzionaltasuna " +"hobetzen duten programa osagarriak dira. Pluginek elementu berriak gehitzen " +"dituzte gedit-en menuetan, hornitzen dituzten " +"eginbide berrietarako." + +#: C/gedit.xml:1344(para) +msgid "" +"Several plugins come built-in with gedit, and you " +"can install more. The gedit website lists third-" +"party plugins." +msgstr "" +"Hainbat plugin inkorporatuta datoz gedit-ekin, " +"eta gehiago instala ditzakezu. Hirugarrenen pluginak azaltzen dira gedit-en " +"webguneko zerrendan." + +#: C/gedit.xml:1345(para) +msgid "" +"To enable and disable plugins, or see which plugins are currently enabled, " +"use the Plugins Preferences." +msgstr "" +"Pluginak gaitzeko eta desgaitzeko, edo zein plugin dagoen gaituta ikusteko, " +"erabili Plugin-hobespenak." + +#: C/gedit.xml:1346(para) +msgid "The following plugins come built-in with gedit:" +msgstr "Ondoko pluginak datoz inkorporatuta gedit-ekin:" + +#: C/gedit.xml:1352(para) +msgid "" +"Change " +"Case allows you to change the case of the selected " +"text." +msgstr "" +"Aldatu " +"maiuskulak/minuskulak pluginak aukera ematen dizu " +"hautautako testuaren maiuskulak eta minuskulak aldatzeko." + +#: C/gedit.xml:1355(para) +msgid "" +"Document " +"Statistics shows the number of lines, words, and " +"characters in the document." +msgstr "" +"Dokumentuaren " +"estatistikak pluginak dokumentuko lerroen, hitzen eta " +"karaktereen kopuruak erakusten ditu." + +#: C/gedit.xml:1358(para) +msgid "" +"External " +"Tools allows you to execute external commands from " +"gedit." +msgstr "" +"Kanpoko " +"tresnak pluginak aukera ematen dizu kanpoko komandoak " +"exekutatzeko gedit-etik." + +#: C/gedit.xml:1361(para) +msgid "" +"File Browser allows you to browse your files and " +"folders in the side pane." +msgstr "" +"Fitxategi-arakatzailea pluginak aukera ematen " +"dizu zure fitxategi eta karpetetan arakatzeko albo-panelean." + +#: C/gedit.xml:1364(para) +msgid "" +"Indent " +"Lines adds or removes indentation from the selected " +"lines." +msgstr "" +"Koskatu " +"lerroak pluginak koska gehitzen edo kentzen du " +"hautatutako lerroetan." + +#: C/gedit.xml:1367(para) +msgid "" +"Insert " +"Date/Time adds the current date and time into a " +"document." +msgstr "" +"Txertatu " +"data/ordua pluginak uneko data eta ordua gehitzen ditu " +"dokumentuan." + +#: C/gedit.xml:1370(para) +msgid "" +"Modelines allows you to set editing preferences " +"for individual documents, and supports Emacs, " +"Kate and Vim-style " +"modelines." +msgstr "" +"Modulerroak pluginak aukera ematen dizu fitxategi indibidualak " +"editatzeko hobespenak ezartzeko, eta Emacs, " +"Kate eta Vim " +"estiloetako modulerroak onartzen ditu." + +#: C/gedit.xml:1373(para) +msgid "" +"Python " +"Console allows you to run commands in the python " +"programming language." +msgstr "" +"Python " +"kontsola pluginak aukera ematen dizu komandoak python " +"programazio-lengoaian exekutatzeko." + +#: C/gedit.xml:1376(para) +msgid "" +"Snippets allows you to store frequently-used " +"pieces of text and insert them quickly into a document." +msgstr "" +"Snippet-" +"ak pluginak aukera ematen dizu gehien erabilitako testu " +"zatiak gordetzeko eta bizkor sartzeko dokumentuan." + +#: C/gedit.xml:1379(para) +msgid "" +"Sort " +"arranges selected lines of text into alphabetical order." +msgstr "" +"Ordenatu " +"pluginak testu batean hautatutako lerroak ordena alfabetikoan jartzen ditu." + +#: C/gedit.xml:1382(para) +msgid "" +"Spell " +"Checker corrects the spelling in the selected text, or " +"marks errors automatically in the document." +msgstr "" +"Ortografia-" +"egiaztatzailea pluginak hautatutako testuaren " +"ortografia zuzentzen du, edo automatikoki markatzen ditu akatsak " +"dokumentuan." + +#: C/gedit.xml:1385(para) +msgid "" +"Tag " +"List lets you insert commonly-used tags for HTML and " +"other languages from a list in the side pane." +msgstr "" +"Etiketa-" +"zerrenda pluginak aukera ematen dizu gehien erabilitako " +"etiketak txertatzeko HTMLn eta albo-paneleko zerrenda bateko beste " +"lengoiaia batzuetan." + +#: C/gedit.xml:1389(para) +msgid "" +"For more information on creating plugins, see the gedit " +"website." +msgstr "" +"Pluginak sortzeari buruzko informazio gehiago lortzeko, ikus gedit " +"webgunea." + +#: C/gedit.xml:1393(title) +msgid "Change Case Plugin" +msgstr "'Aldatu maiuskulak/minuskulak' plugina" + +#: C/gedit.xml:1394(para) +msgid "" +"The Change Case plugin changes the case of the " +"selected text." +msgstr "" +"Aldatu maiuskulak/minuskulak pluginak hautatutako " +"testuaren maiuskulak eta minuskulak aldatzen ditu." + +#: C/gedit.xml:1395(para) +msgid "" +"The following items are added to the Edit menu when the " +"Change Case plugin is enabled:" +msgstr "" +"Ondoko elementuak gehitzen dira Editatu menuan " +"Aldatu maiuskulak/minuskulak plugina gaituta " +"dagoenean:" + +#: C/gedit.xml:1405(para) +msgid "Menu Item" +msgstr "Menu-elementua" + +#: C/gedit.xml:1407(para) +msgid "Action" +msgstr "Ekintza" + +#: C/gedit.xml:1409(para) +msgid "Example" +msgstr "Adibidea" + +#: C/gedit.xml:1415(guisubmenu) +#: C/gedit.xml:1421(guisubmenu) +#: C/gedit.xml:1427(guisubmenu) +#: C/gedit.xml:1433(guisubmenu) +msgid "Change Case" +msgstr "Aldatu maiuskulak/minuskulak" + +#: C/gedit.xml:1415(guimenuitem) +msgid "All Upper Case" +msgstr "Denak maiuskulak" + +#: C/gedit.xml:1416(para) +msgid "Change each character to uppercase." +msgstr "Karaketere guztiak maiuskula bihurtzen ditu." + +#: C/gedit.xml:1417(para) +msgid "This text becomes THIS TEXT" +msgstr "Testu hau TESTU HAU bihurtuko da." + +#: C/gedit.xml:1421(guimenuitem) +msgid "All Lower Case" +msgstr "Denak minuskulak" + +#: C/gedit.xml:1422(para) +msgid "Change each character to lowercase." +msgstr "Karaketere guztiak minuskula bihurtzen ditu." + +#: C/gedit.xml:1423(para) +msgid "This Text becomes this text" +msgstr "Testu hau testu hau bihurtuko da." + +#: C/gedit.xml:1427(guimenuitem) +msgid "Invert Case" +msgstr "Alderantzikatu maiuskulak/minuskulak" + +#: C/gedit.xml:1428(para) +msgid "" +"Change each lowercase character to uppercase, and change each uppercase " +"character to lowercase." +msgstr "Minuskula bakoitza maiuskula bihurtzen du, eta maiuskula bakoitza minuskula." + +#: C/gedit.xml:1429(para) +msgid "This Text becomes tHIS tEXT" +msgstr "Testu hau tESTU HAU bihurtuko da." + +#: C/gedit.xml:1433(guimenuitem) +msgid "Title Case" +msgstr "Hitzen lehen letra maiuskulaz" + +#: C/gedit.xml:1434(para) +msgid "Change the first character of each word to uppercase." +msgstr "Hitz bakoitzaren lehenengo karakterea maiuskula bihurtzen du." + +#: C/gedit.xml:1435(para) +msgid "this text becomes This Text" +msgstr "testu hau Testu Hau bihurtuko da." + +#: C/gedit.xml:1444(title) +msgid "Document Statistics Plugin" +msgstr "Dokumentuaren estatistiken pluginak" + +#: C/gedit.xml:1445(para) +msgid "" +"The Document Statistics plugin counts the number " +"of lines, words, characters with spaces, characters without spaces, and " +"bytes in the current file. The plugin displays the results in a " +"Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" +"Dokumentauren estatistikak pluginak uneko " +"dokumentuko lerroen, hitzen, zuriunedun karaktereen, zuriunerik gabeko " +"karaktereen eta byteen kopuruak zenbatzen ditu. Pluginak " +"Dokumentuaren estatistikak elkarrizketa-koadroan bistaratzen " +"ditu emaitzak. Dokumentuaren estatistikak plugina erabiltzeko, jarraitu " +"urrats hauei:" + +#: C/gedit.xml:1447(para) +msgid "" +"Choose ToolsDocument " +"Statistics to display the Document " +"Statistics dialog. The Document Statistics " +"dialog displays the following information about the file:" +msgstr "" +"Aukeratu TresnakDokumentuaren " +"estatistikak, Dokumentuaren " +"estatistikak elkarrizketa-koadroa bistaratzeko. Dokumentuaren " +"estatistikak elkarrizketa-koadroak ondorengo informazioa bistaratzen du " +"fitxategiari buruz:" + +#: C/gedit.xml:1450(para) +msgid "Number of lines in the current document." +msgstr "Uneko dokumentuko lerro kopurua." + +#: C/gedit.xml:1453(para) +msgid "Number of words in the current document." +msgstr "Uneko dokumentuko hitz kopurua." + +#: C/gedit.xml:1456(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "Uneko dokumentuko karaktere kopurua (zuriuneekin)." + +#: C/gedit.xml:1459(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "Uneko dokumentuko karaktere kopurua (zuriunerik gabe)." + +#: C/gedit.xml:1462(para) +msgid "Number of bytes in the current document." +msgstr "Uneko dokumentuko byte kopurua." + +#: C/gedit.xml:1467(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click " +"Update." +msgstr "" +"Jarrai dezakezu gedit fitxategia eguneratzen " +"Dokumentuaren estatistikak elkarrizketa-koadroa irekita dagoen " +"bitartean. Dokumentuaren estatistikak elkarrizketa-koadroko " +"edukia freskatzeko, egin klik Eguneratu botoian." + +#: C/gedit.xml:1474(title) +msgid "External Tools Plugin" +msgstr "'Kanpoko tresnak' plugina" + +#: C/gedit.xml:1475(para) +msgid "" +"The External Tools plugin allows you to execute " +"external commands from gedit. You can pipe some " +"content into a command and exploit its output (for example, " +"sed), or launch a predefined command (for " +"example, make)." +msgstr "" +"Kanpoko tresnak pluginak aukera ematen dizu " +"kanpoko komandoak exekutatzeko gedit-etik. Edukia " +"kanaliza dezakezu komando batera eta haren irteera ustiatu (esate baterako, " +"sed), edo aurrez definitutako komando bat " +"abiarazi (adibidez, make)." + +#: C/gedit.xml:1476(para) +msgid "" +"Use the External Tools Manager to create and edit " +"commands. To run an external command, choose it from the " +"Tools menu." +msgstr "" +"Erabili Kanpoko tresnen kudeatzailea komandoak sortzeko " +"eta editatzeko. Kanpoko komando bat exekutatzeko, aukera ezazu " +"Tresnak menuan." + +#: C/gedit.xml:1479(title) +msgid "Built-in Commands" +msgstr "Komando inkorporatuak" + +#: C/gedit.xml:1480(para) +msgid "" +"The following commands are provided with the External " +"Tools plugin:" +msgstr "" +"Komando hauek hornitzen dira Kanpoko tresnak " +"pluginarekin:" + +#: C/gedit.xml:1482(term) +msgid "Build" +msgstr "Eraiki" + +#: C/gedit.xml:1484(para) +msgid "Runs make in the current document's directory." +msgstr "" +"make abiarazten du uneko dokumentuaren " +"direktorioan." + +#: C/gedit.xml:1487(term) +msgid "Directory Listing" +msgstr "Direktorio-zerrenda" + +#: C/gedit.xml:1489(para) +msgid "Lists the contents of the current document's directory in a new document." +msgstr "" +"Uneko dokumentuaren direktorioaren edukia dokumentu berri batean " +"zerrendatzen du." + +#: C/gedit.xml:1492(term) +msgid "Environment Variables" +msgstr "Ingurune-aldagaiak" + +#: C/gedit.xml:1494(para) +msgid "Displays the environment variables list in the bottom pane." +msgstr "Beheko panelean bistaratzen ditu ingurune-aldagaiak." + +#: C/gedit.xml:1497(term) +msgid "Grep" +msgstr "Grep" + +#: C/gedit.xml:1499(para) +msgid "" +"Searches for a term in all files in the current document directory, using " +"pattern matching. Results are shown in the bottom pane." +msgstr "" +"Termino bat bilatzen du uneko dokumentuaren direktorioko fitxategi " +"guztietan, eredu-parekatzea erabiliz. Emaitzak beheko panelean erakusten " +"dira." + +#: C/gedit.xml:1502(term) +msgid "Remove Trailing Spaces" +msgstr "Kendu atzeko zuriuneak" + +#: C/gedit.xml:1504(para) +msgid "Removes all spaces from the end of lines in the document." +msgstr "Zuriune guztiak kentzen ditu dokumentuko lerroen amaieretatik." + +#: C/gedit.xml:1511(title) +msgid "Defining a Command" +msgstr "Komando bat definitzea" + +#: C/gedit.xml:1512(para) +msgid "" +"To add an external command, choose " +"ToolsExternal " +"Tools." +msgstr "" +"Kanpoko komando bat gehitzeko, aukeratu " +"TresnakKanpoko " +"tresnak." + +#: C/gedit.xml:1513(para) +msgid "" +"In the External Tools Manager window, click " +"New. You can speficy the following details for the " +"new command:" +msgstr "" +"Kanpoko tresnen kudeatzailea leihoan, egin klik " +"Berria botoian. Komando berriaren ondoko xehetasunak " +"zehatz ditzakezu:" + +#: C/gedit.xml:1515(term) +msgid "Description" +msgstr "Azalpena" + +#: C/gedit.xml:1517(para) +msgid "This description is shown in the statusbar when the menu command is chosen." +msgstr "Azalpen hau bistaratuko da egoera-barran menu-komandoa aukeratzen denean." + +#: C/gedit.xml:1520(term) +msgid "Accelerator" +msgstr "Bizkortzailea" + +#: C/gedit.xml:1522(para) +msgid "Enter a keyboard shortcut for the command." +msgstr "Sartu laster-tekla bat komandorako." + +#: C/gedit.xml:1525(term) +msgid "Commands" +msgstr "Komandoak" + +#: C/gedit.xml:1527(para) +msgid "" +"The actual commands to be run. Several gedit " +"environment variables can be used to pass content to these commands: see " +"." +msgstr "" +"Exekutatu beharreko uneko komandoak. Hainbat " +"gedit ingurune-aldagai erabil daitezke edukia " +"komando hauetara pasatzeko: ikus ." + +#: C/gedit.xml:1530(term) +msgid "Input" +msgstr "Sarrera" + +#: C/gedit.xml:1532(para) +msgid "" +"The content to give to the commands (as stdin): the " +"entire text of the current document, the current selection, line, or word." +msgstr "" +"Komandoei eman beharreko edukia (stdin adib.): " +"uneko dokumentuaren testu osoa, uneko hautapena, lerroa edo hitza." + +#: C/gedit.xml:1535(term) +msgid "Output" +msgstr "Irteera" + +#: C/gedit.xml:1537(para) +msgid "" +"What to do with the output of the commands: display in the bottom pane, put " +"in a new document, or place in the current document, at the end, at the " +"cursor position, or replacing the selection or the entire document." +msgstr "" +"Zer egin komandoen irteerarekin: beheko panelean bistaratu, dokumentu berri " +"batean jarri, edo uneko dokumentuan jarri, amaieran, kurtsorearen " +"kokalekuan, edo hautapena nahiz dokumentu osoa ordeztu." + +#: C/gedit.xml:1540(term) +msgid "Applicability" +msgstr "Aplikagarritasuna" + +#: C/gedit.xml:1542(para) +msgid "" +"Determines which sort of documents can be affected by the command, for " +"example whether saved or not, and local or remote." +msgstr "" +"Komandoak zein dokumentu motatan duen eragina erabakitzen du, adibidez, " +"gordetakoetan edo gorde gabeetan, eta lokaletan edo urrunekoetan." + +#: C/gedit.xml:1550(title) +msgid "Editing and Removing Tools" +msgstr "Tresnak editatzea eta kentzea" + +#: C/gedit.xml:1551(para) +msgid "To edit a tool, select it in the list and make changes to its properties." +msgstr "" +"Tresna bat editatzeko, hauta ezazu zerrendan, eta egin aldaketak haren " +"propietateetan." + +#: C/gedit.xml:1552(para) +msgid "To rename a tool, click it again in the list." +msgstr "Tresna bati izena aldatzeko, egin klik berriro bertan zerrendan." + +#: C/gedit.xml:1553(para) +msgid "" +"To restore a built-in tool that you have changed, press " +"Revert." +msgstr "" +"Zuk aldatutako tresna inkorporatu bat leheneratzeko, sakatu " +"Leheneratu." + +#: C/gedit.xml:1554(para) +msgid "" +"To remove a tool, select it in the list and press " +"Remove. You can not remove built-in tools, only those " +"you have created yourself." +msgstr "" +"Tresna bat kentzeko, hauta ezazu zerrendan, eta sakatu " +"Kendu. Ezin duzu kendu tresna inkorporaturik, zuk " +"sortutakoak bakarrik." + +#: C/gedit.xml:1558(title) +msgid "Variables" +msgstr "Aldagaiak" + +#: C/gedit.xml:1559(para) +msgid "" +"You can use the following variables in the Commands " +"field of the command definition:" +msgstr "" +"Ondoko aldagaiak erabil ditzakezu komando-definizioaren " +"Komandoak eremuan:" + +#: C/gedit.xml:1562(para) +msgid "GEDIT_CURRENT_DOCUMENT_URI" +msgstr "GEDIT_CURRENT_DOCUMENT_URI" + +#: C/gedit.xml:1565(para) +msgid "GEDIT_CURRENT_DOCUMENT_NAME" +msgstr "GEDIT_CURRENT_DOCUMENT_NAME" + +#: C/gedit.xml:1568(para) +msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +msgstr "GEDIT_CURRENT_DOCUMENT_SCHEME" + +#: C/gedit.xml:1571(para) +msgid "GEDIT_CURRENT_DOCUMENT_PATH" +msgstr "GEDIT_CURRENT_DOCUMENT_PATH" + +#: C/gedit.xml:1574(para) +msgid "GEDIT_CURRENT_DOCUMENT_DIR" +msgstr "GEDIT_CURRENT_DOCUMENT_DIR" + +#: C/gedit.xml:1577(para) +msgid "GEDIT_DOCUMENTS_URI" +msgstr "GEDIT_DOCUMENTS_URI" + +#: C/gedit.xml:1580(para) +msgid "GEDIT_DOCUMENTS_PATH" +msgstr "GEDIT_DOCUMENTS_PATH" + +#: C/gedit.xml:1587(title) +msgid "File Browser Plugin" +msgstr "'Fitxategi-arakatzailea' plugina" + +#: C/gedit.xml:1588(para) +msgid "" +"The File Browser Plugin shows your files and " +"folders in the side pane, allowing you to quickly open files." +msgstr "" +"Fitxategi-arakatzailea pluginak zure fitxategiak " +"eta karpetak erakusten ditu albo-panelean, fitxategiak bizkor ireki ahal izan " +"ditzazun." + +#: C/gedit.xml:1589(para) +msgid "" +"To view the File Browser, choose " +"ViewSide " +"Pane and then click on the tab showing the File " +"Browser icon at the bottom of the side pane." +msgstr "" +"Fitxategi-arakatzailea ikusteko, aukeratu " +"IkusiAlbo-" +"panela, eta egin klik Fitxategi-arakatzailea " +"erakusten duen fitxan, albo-panelaren behealdean." + +#: C/gedit.xml:1591(title) +msgid "Browsing your Files" +msgstr "Zure fitxategiak arakatzea" + +#: C/gedit.xml:1592(para) +msgid "" +"The File Browser tab initially shows your file manager bookmarks. To browse " +"the contents of any item, double-click it." +msgstr "" +"Fitxategi-arakatzailearen fitxak zure fitxategi-kudeatzailearen laster-" +"markak erakusten ditu hasieran. Elementuren baten edukia arakatzeko, egin " +"klik bikoitza elementu horretan." + +#: C/gedit.xml:1593(para) +msgid "" +"To show a parent folder, choose from the drop-down list, or press the up " +"arrow on the File Browser's toolbar." +msgstr "" +"Karpeta guraso bat erakusteko, aukera ezazu goitibeherako zerrendan, edo " +"sakatu gora gezia Fitxategi-arakatzailearen tresna-barran." + +#: C/gedit.xml:1594(para) +msgid "" +"To show the folder that contains the document you are currently working on, " +"right-click in the file list and choose Set root to active " +"document." +msgstr "" +"Une horretan lanean ari zaren dokumentua daukan karpeta erakusteko, egin " +"klik eskuin-botoiarekin fitxategi-zerrendan, eta aukeratu " +"Ezarri erroa dokumentu aktiboari." + +#: C/gedit.xml:1598(para) +msgid "" +"To open a file in gedit, double-click it in the " +"file list." +msgstr "" +"Fitxategi bat gedit-en irekitzeko, egin klik " +"bikoitza fitxategi-zerrendan." + +#: C/gedit.xml:1601(title) +msgid "Creating Files and Folders" +msgstr "Fitxategiak eta karpetak sortzea" + +#: C/gedit.xml:1602(para) +msgid "" +"To create a new, empty text file in the current folder shown in the browser, " +"right-click in the file list and choose New " +"File." +msgstr "" +"Arakatzailean unean erakutsitako karpetan testu-fitxategi huts berri bat " +"sortzeko, egin klik eskuin-botoiarekin zerrendan, eta aukeratu " +"Fitxategi berria." + +#: C/gedit.xml:1603(para) +msgid "" +"To create a new folder in the current folder shown in the browser, right-" +"click in the file list and choose New Folder." +msgstr "" +"Arakatzailean unean erakutsitako karpetan karpeta berri bat " +"sortzeko, egin klik eskuin-botoiarekin zerrendan, eta aukeratu " +"Karpeta berria." + +#: C/gedit.xml:1608(title) +msgid "Indent Lines Plugin" +msgstr "Lerroak koskatzeko plugina" + +#: C/gedit.xml:1609(para) +msgid "" +"The Indent Lines plugin adds or removes space " +"from the beginning of lines of text." +msgstr "" +"Koskatu lerroak pluginak zuriunea gehitzen edo " +"kentzen du testu-lerroen hasieratik." + +#: C/gedit.xml:1610(para) +msgid "To indent or unindent text, perform the following steps:" +msgstr "Testuari koska jartzeko nahiz kentzeko, jarraitu urrats hauek:" + +#: C/gedit.xml:1612(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" +"Hautatu koskatu nahi dituzun lerroak. Lerro bakar bati koska jartzeko nahiz " +"kentzeko, jarri kurtsorea edonon lerro horretan." + +#: C/gedit.xml:1617(para) +msgid "" +"To indent the text, choose EditI" +"ndent." +msgstr "" +"Testua koskatzeko, aukeratu EditatuKoska." + +#: C/gedit.xml:1620(para) +msgid "" +"To remove the indentation, choose EditUnindent." +msgstr "" +"Koska kentzeko, aukeratu " +"EditatuKendu " +"koska." + +#: C/gedit.xml:1625(para) +msgid "" +"The amount of space used, and whether tab character or space characters are " +"used, depends on the Tab Stops settings in the Editor " +"Preferences: see ." +msgstr "" +"Erabilitako zuriunearen zabalera, eta tabulazio- nahiz zuriune-karaktereak " +"erabili ala ez, Editorearen hobespenetako Tabulazioak " +"ezarpenen arabera izango da: ikus ." + +#: C/gedit.xml:1630(title) +msgid "Insert Date/Time Plugin" +msgstr "Data/Ordua sartzeko plugina" + +#: C/gedit.xml:1631(para) +msgid "" +"The Insert Date/Time plugin inserts the current " +"date and time into a document. To use the Insert Date/Time plugin, perform " +"the following steps:" +msgstr "" +"Sartu data/ordua pluginak uneko data eta ordua " +"gehitzen ditu dokumentuan. Data/Ordua sartzeko plugina erabiltzeko, jarraitu " +"urrats hauei:" + +#: C/gedit.xml:1633(para) +msgid "" +"Choose EditInsert Date and " +"Time." +msgstr "" +"Aukeratu EditatuSartu data eta " +"ordua." + +#: C/gedit.xml:1634(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click Insert to close the Insert Date " +"and Time dialog. gedit inserts the " +"date/time at the cursor position in the current file." +msgstr "" +"Ez baduzu konfiguratu data eta ordua sartzeko plugina automatikoki sar " +"ditzan data eta ordua formatuari buruz galdetu gabe, " +"gedit-ek Sartu data eta " +"ordua elkarrizketa-koadroa bistaratuko du. Hautatu dagozkion data- eta " +"ordu-formatua zerrendan. Egin klik Txertatu botoian, " +"Sartu data eta ordua elkarrizketa-koadroa ixteko. " +"gedit-ek kurtsorearen kokalekuan txertatzen ditu " +"data eta ordua uneko fitxategian." + +#: C/gedit.xml:1635(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed. The date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" +"Konfiguratu baduzu gedit data- eta ordu- formatu " +"jakin bat erabiltzeko, Sartu data eta ordua " +"elkarrizketa-koadroa ez da bistaratuko. Datua eta ordua automatikoki sartzen dira " +"kurtsorearen kokalekuan uneko fitxategian." + +#: C/gedit.xml:1640(title) +msgid "Configuring the Insert Date/Time Plugin" +msgstr "Data/ordua sartzeko plugina konfiguratzea" + +#: C/gedit.xml:1641(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "Data/ordua sartzeko plugina konfiguratzeko, jarraitu urrats hauei:" + +#: C/gedit.xml:1649(para) +msgid "Select the Insert Date/Time plugin." +msgstr "Hautatu Sartu data eta ordua plugina." + +#: C/gedit.xml:1652(para) +msgid "" +"Click Configure Plugin to display the " +"Configure insert date/time plugin dialog." +msgstr "" +"Egin klik Konfiguratu plugina botoian " +"Konfiguratu data/ordua sartzeko plugina elkarrizketa-koadroa " +"bistaratzeko." + +#: C/gedit.xml:1655(para) +msgid "Select one of the options, as follows:" +msgstr "Hautatu aukera hauetako bat:" + +#: C/gedit.xml:1657(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" +"Data/ordua sartzen dituzun bakoitzean dataren eta orduaren formatua " +"zehazteko, hautatu Eskatu formatu bat aukera." + +#: C/gedit.xml:1660(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and " +"Time." +msgstr "" +"gedit-ek hornitutako data- eta ordu-formatua " +"erabiltzeko data eta ordua sartzen dituzun bakoitzean, hautatu " +"Erabili hautatutako formatua aukera, eta hautatu " +"zerrendan formatua. Aukera hau hautatzen duzunean, " +"gedit-ek ez dizu eskatuko data- eta ordu-formatua " +"EditatuSartu data eta " +"ordua aukeratzen duzunean." + +#: C/gedit.xml:1663(para) +msgid "" +"To use the same customized date/time format each time you insert the " +"date/time, select the Use custom format option, then " +"enter the appropriate format in the text box. For more information about how " +"to specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose " +"EditInsert Date and " +"Time." +msgstr "" +"Pertsonalizatutako data- eta ordu-formatu bera erabili nahi badituzu data " +"eta ordua sartzen dituzun bakoitzean, hautatu Erabili formatu " +"pertsonalizatua aukera, eta sartu testu-koadroan dagokion " +"formatua. Formatu pertsonalizatu bat nola zehaztu jakiteko, ikus strftime3. Aukera hau hautatzen " +"duzunean, gedit-ek ez dizu eskatuko data- eta " +"ordu-formatua EditatuSartu data " +"eta ordua aukeratzen duzunean." + +#: C/gedit.xml:1668(para) +msgid "" +"Click OK to close the Configure insert " +"date/time plugin dialog." +msgstr "" +"Egin klik Ados botoian Konfiguratu " +"data/ordua sartzeko plugina elkarrizketa-koadroa ixteko." + +#: C/gedit.xml:1671(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" +"Hobespenak elkarrizketa-koadroa ixteko, egin klik " +"Itxi botoian." + +#: C/gedit.xml:1678(title) +msgid "Modelines Plugin" +msgstr "'Modulerroak' plugina" + +#: C/gedit.xml:1679(para) +msgid "" +"The Modelines plugin allows you to set " +"preferences for individual documents. A modeline is a " +"line of text at the start or end of the document with settings that " +"gedit recognises." +msgstr "" +"Modulerroak pluginak aukera ematen dizu dokumentu " +"indibidualen hobespenak ezartzeko. Modulerroa lerroak " +"gedit-ek ezagutzen dituen ezarpenak dauzkaten " +"dokumentuaren hasierako nahiz amaierako testu-lerroak dira." + +#: C/gedit.xml:1680(para) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Modulerroa motako lerroekin ezarritako hobespenek lehentasuna dute hobespenen " +"elkarrizketa-koadroan zehaztutakoen gainetik." + +#: C/gedit.xml:1681(para) +msgid "You can set the following preferences with modelines:" +msgstr "Hobespen hauek ezar ditzakezu modulerroak lerroekin:" + +#: C/gedit.xml:1684(para) +msgid "Tab width" +msgstr "Tabulazio-zabalera" + +#: C/gedit.xml:1687(para) +msgid "Indent width" +msgstr "Koska-zabalera" + +#: C/gedit.xml:1690(para) +msgid "Insert spaces instead of tabs" +msgstr "Txertatu zuriuneak tabulazioen ordez" + +#: C/gedit.xml:1696(para) +msgid "Right margin width" +msgstr "Eskuineko marjinaren zabalera" + +#: C/gedit.xml:1700(para) +msgid "" +"The Modelines plugin supports a subset of the " +"options used by other text editors Emacs, " +"Kate and Vim." +msgstr "" +"Modulerroak pluginak beste testu-editore batzuek " +"erabilitako aukeren azpimultzoa onartzen du " +"(Emacs, Kate, " +"Vim...)." + +#: C/gedit.xml:1703(title) +msgid "Emacs Modelines" +msgstr "Emacs modulerroak" + +#: C/gedit.xml:1704(para) +msgid "" +"The first two lines of a document are scanned for " +"Emacs modelines." +msgstr "" +"Dokumentu baten lehehengo bi lerroak eskaneatzen dira " +"Emacs modulerroen bila." + +#: C/gedit.xml:1705(para) +msgid "" +"The Emacs options for tab-width, indent-offset, " +"indent-tabs-mode and autowrap are supported. For more information, see the " +"GNU Emacs " +"Manual." +msgstr "" +"Tabulazio-zabalerarako, koska-desplazamendurako, koska-tabulazio modurako " +"eta itzulbiratze automatikorako Emacs aukerak " +"onartzen dira. Informazio gehiago lortzeko, ikus GNUren Emacs " +"eskuliburua." + +#: C/gedit.xml:1708(title) +msgid "Kate Modelines" +msgstr "Kate modulerroak" + +#: C/gedit.xml:1709(para) +msgid "" +"The first and last ten lines a document are scanned for " +"Kate modelines." +msgstr "" +"Dokumentu baten lehehengo eta azkeneko hamar lerroak eskaneatzen dira " +"Kate modulerroen bila." + +#: C/gedit.xml:1710(para) +msgid "" +"The Kate options for tab-width, indent-width, " +"space-indent, word-wrap and word-wrap-column are supported. For more " +"information, see the Kate website." +msgstr "" +"Tabulazio-zabalerarako, koska-desplazamendurako, koska-zabalerarako, " +"zuriune-koskarako, hitz-itzulbiratzerako eta hitz-itzulbiratzeen zutaberako " +"Kate aukerak onartzen dira. Informazio gehiago " +"lortzeko, ikus Kate webgunea." + +#: C/gedit.xml:1713(title) +msgid "Vim Modelines" +msgstr "Vim modulerroak" + +#: C/gedit.xml:1714(para) +msgid "" +"The first and last three lines a document are scanned for " +"Vim modelines." +msgstr "" +"Dokumentu baten lehehengo eta azkeneko hiru lerroak eskaneatzen dira " +"Vim modulerroen bila." + +#: C/gedit.xml:1715(para) +msgid "" +"The Vim options for et, expandtab, ts, tabstop, " +"sw, shiftwidth, wrap, and textwidth are supported. For more information, see " +"the Vim " +"website." +msgstr "" +"Vim aukerak (et, expandtab, ts, tabstop, sw, " +"shiftwidth, wrap, eta textwidth) onartzen dira. Informazio gehiago lortzeko, " +"ikus Vim " +"webgunea." + +#: C/gedit.xml:1720(title) +msgid "Python Console Plugin" +msgstr "'Python kontsola' plugina" + +#: C/gedit.xml:1721(para) +msgid "" +"The Python Console Plugin allows you to run " +"commands in the python programming language from " +"gedit. Enabling the plugin adds a tab to the " +"bottom pane. This shows recent output and a command prompt field." +msgstr "" +"Python kontsola pluginak aukera ematen dizu " +"komandoak python programazio-lengoaian exekutatzeko " +"gedit-etik. Plugina gaituz gero, fitxa bat " +"gehituko da beheko panelean. Azken irteera eta komando-gonbiterako eremu bat " +"azalduko dira bertan." + +#: C/gedit.xml:1722(para) +msgid "" +"Commands entered into the python console are not checked before they are " +"run. It is therefore possible to hang gedit, for " +"example by entering an infinite loop." +msgstr "" +"Python kontsolan sartutako komandoak ez dira aztertzen exekutatu aurretik. " +"Beraz, gedit eseki daiteke, begizta infinitu bat " +"sortuz gero, esate baterako." + +#: C/gedit.xml:1726(title) +msgid "Snippets Plugin" +msgstr "'Snippet-ak' plugina" + +#: C/gedit.xml:1727(para) +msgid "" +"The Snippets plugin allows you to store " +"frequently-used pieces of text, called snippets, and " +"insert them quickly into a document." +msgstr "" +"Snippet-ak pluginak aukera ematen dizu maiz " +"erabilitako snippet izeneko testu zatiak gordetzeko, " +"eta dokumentuan bizkor txertatzeko." + +#: C/gedit.xml:1728(para) +msgid "" +"Snippets are specific to the language syntax of the current document. For " +"example, when you are working with an HTML document, you can choose from a " +"list of snippets that are useful for HTML. In addition, some snippets are " +"global, and are available in all documents." +msgstr "" +"Snippet-ak uneko dokumentuaren lengoaia-sintaxiari dagozkio. Esate baterako, " +"HTML dokumentu batekin lanean ari bazara, HTMLrako erabilgarriak diren " +"snippet-zerrenda batean hauta ditzakezu. Beste snippet batzuk, berriz, " +"globalak dira, eta dokumentu guztietan egoten dira erabilgarri." + +#: C/gedit.xml:1729(para) +msgid "" +"A number of built-in snippets are installed with " +"gedit, which can be modified." +msgstr "" +"Hainbat snippet inkorporatu instalatzen dira " +"gedit-ekin, eta alda daitezke." + +#: C/gedit.xml:1732(title) +msgid "Inserting Snippets" +msgstr "Snippet-ak txertatzea" + +#: C/gedit.xml:1733(para) +msgid "" +"To insert a snippet into a document, type its tab " +"trigger and press Tab. A snippet's tab trigger " +"is usually the first few letters of the snippet, or something else that is " +"short and easy to remember." +msgstr "" +"Snippet bat dokumentu batean txertatzeko, idatz ezazu haren " +"aktibatzailea, eta sakatu Tabuladorea tekla. " +"Snippet-en aktibatzailea snippet-aren lehenengo letrak izaten dira " +"normalean, edo gogoratzeko laburra eta erraza den beste zerbait." + +#: C/gedit.xml:1734(para) +msgid "" +"Alternatively, press " +"CtrlSpace to see a " +"list of snippets you can insert." +msgstr "" +"Bestela, sakatu " +"KtrlZuriunea, txerta " +"ditzakezun snippet-en zerrenda ikusteko." + +#: C/gedit.xml:1738(title) +msgid "Adding Snippets" +msgstr "Snippet-ak gehitzea" + +#: C/gedit.xml:1739(para) +msgid "To create a new snippet, do the following:" +msgstr "Snippet berria sortzeko, egin ondokoa:" + +#: C/gedit.xml:1742(para) +msgid "" +"Choose ToolsManage " +"Snippets. The Snippets " +"Manager window opens." +msgstr "" +"Aukeratu TresnakKudeatu snippet-" +"ak. Snippet-en " +"kudeatzailearen leihoa irekiko da." + +#: C/gedit.xml:1745(para) +msgid "" +"The list of snippets is grouped by language. Select the language you want to " +"add a snippet to, or a snippet in that language group. To add a snippet for " +"all languages, choose Global at the top of the list. The syntax of the " +"document you are currently working with is shown by default." +msgstr "" +"Snippet-en zerrenda hizkuntzaren arabera taldekatzen da. Hautatu snippet bat " +"gehitu nahi diozun hizkuntza, edo hizkunta-talde bateko snippet-a. Snippet " +"bat gehitzeko hizkuntza guztietarako, aukeratu 'Globala' zerrendaren " +"goialdean. Unean lantzen ari zaren dokumentuaren sintaxia bistaratuko da " +"modu lehenetsian." + +#: C/gedit.xml:1748(para) +msgid "Click New. A new snippet appears in the list." +msgstr "" +"Egin klik Berria botoian. Snippet berria azalduko da " +"zerrendan." + +#: C/gedit.xml:1751(para) +msgid "Enter the following information for the new snippet:" +msgstr "Sartu snippet berriari dagokion informazio osoa:" + +#: C/gedit.xml:1753(term) +msgid "Name" +msgstr "Izena" + +#: C/gedit.xml:1755(para) +msgid "" +"Enter a name for the snippet in the text field within the snippet list. The " +"name of a snippet serves only as a reminder of its purpose. You can change " +"name of a snippet you create by clicking on it in the list." +msgstr "" +"Sartu snippet-aren izena snippet-en zerrendako testu-koadroan. Snippet-en " +"izenek balio dute beren helburua gogoratzen laguntzeko. Snippet baten izena " +"alda dezakezu, zerrendan snippet horretan klik eginez." + +#: C/gedit.xml:1758(term) +msgid "Snippet text" +msgstr "Snippet-aren testua" + +#: C/gedit.xml:1760(para) +msgid "" +"Enter the text of the snippet in the Edit snippet text " +"box. For special codes you can use, see ." +msgstr "" +"Sartu snippet-aren testua Editatu snippet-a testu-" +"koadroan. Erabil ditzakezun kode bereziei buruz, ikus ." + +#: C/gedit.xml:1761(para) +msgid "" +"You can switch back to the document window to copy text without closing the " +"Snippets Manager window." +msgstr "" +"Dokumentuaren leihora itzul zaitezke testua kopiatzeko Snippet-en " +"kudeatzailea leihoa itxi gabe." + +#: C/gedit.xml:1764(term) +msgid "Tab Trigger" +msgstr "Aktibatzailea" + +#: C/gedit.xml:1766(para) +msgid "" +"Enter the tab trigger for the snippet. This is the text that you type before " +"pressing Tab to insert the snippet." +msgstr "" +"Sartu snippet-aren aktibatzailea. Aktibatzailea da Tabuladorea " +"tekla sakatu aurretik snippet-a txertatzeko idazten duzun testua." + +#: C/gedit.xml:1767(para) +msgid "" +"The tag must be either a single word comprising only letters, or any single " +"character. The Tab trigger will highlight in red if an " +"invalid tab trigger is entered." +msgstr "" +"Etiketa letrak bakarrik dituen hitz bakarra izan daiteke, nahiz karaktere " +"bakar bat. Aktibatzailea gorriz azalduko da sartutako " +"aktibatzailea baliogabea bada." + +#: C/gedit.xml:1770(term) +msgid "Shortcut key" +msgstr "Laster-tekla" + +#: C/gedit.xml:1772(para) +msgid "Type a shortcut key to use for inserting the snippet." +msgstr "Idatzi laster-tekla bat snippet-a txertatzeko erabiltzeko." + +#: C/gedit.xml:1781(title) +msgid "Editing and Removing Snippets" +msgstr "Snippet-ak editatzea eta kentzea" + +#: C/gedit.xml:1782(para) +msgid "" +"To edit a snippet, select it in the list and make changes to its text and " +"activation properties." +msgstr "" +"Snippet bat editatzeko, hauta ezazu zerrendan, eta egin aldaketak haren " +"testuan eta aktibatzeko propietateetan." + +#: C/gedit.xml:1783(para) +msgid "To rename a snippet, click it again in the list." +msgstr "Snippet bati izena aldatzeko, egin klik berriro bertan zerrendan." + +#: C/gedit.xml:1784(para) +msgid "" +"To restore a built-in snippet that you have changed, press " +"Revert." +msgstr "" +"Zuk aldatutako snippet inkorporatu bat leheneratzeko, sakatu " +"Leheneratu." + +#: C/gedit.xml:1785(para) +msgid "" +"To remove a snippet, select it in the list and press " +"Remove. You can not remove built-in snippets, only " +"those you have created yourself." +msgstr "" +"Snippet bat kentzeko, hauta ezazu zerrendan, eta sakatu " +"Kendu. Ezin duzu kendu snippet inkorporaturik, zuk " +"sortutakoak bakarrik." + +#: C/gedit.xml:1789(title) +msgid "Snippet Substitutions" +msgstr "Snippet ordezpenak" + +#: C/gedit.xml:1790(para) +msgid "" +"In addition to inserting stored text, a snippet can include customizable " +"text, or mark spaces where you can add text once the snippet is inserted in " +"your document." +msgstr "" +"Gordetako testua txertatzeaz gain, snippet batek testu pertsonalizagarria " +"eduki dezake, edo zuriuneak markatu testua gehi dezakezun lekuan, behin " +"snippet-a dokumentuan txertatuta." + +#: C/gedit.xml:1794(para) +msgid "You can use the following placeholder codes in snippet text:" +msgstr "Leku-marken kode hauek erabil ditzakezu snippet-en testuan:" + +#: C/gedit.xml:1796(term) +msgid "Tab placeholders" +msgstr "Tabulazioen leku-markak" + +#: C/gedit.xml:1798(para) +msgid "" +"$n defines a tab placeholder, " +"where n is any number from 1 upwards." +msgstr "" +"$n: tabulazioen leku-marka bat " +"definitzen du, eta n 1etik gorako zenbaki bat da." + +#: C/gedit.xml:1799(para) +msgid "" +"${n:default}<" +"/literal> defines a tab placeholder with a default value." +msgstr "" +"${n:default}<" +"/literal>: balio lehenetsia duen tabulazioen leku-marka definitzen du." + +#: C/gedit.xml:1800(para) +msgid "" +"A tab placeholder marks a place in the snippet text where you can add extra " +"text after the snippet is inserted." +msgstr "" +"Tabulazioen leku-markak leku bat markatzen du snippet-aren testuan zuk testu " +"estra gehitu ahal izateko snippet-a txertatu ondoren." + +#: C/gedit.xml:1801(para) +msgid "" +"To use tab placeholders, insert the snippet as normal. The cursor is placed " +"at the first tab placeholder. Type text, and press Tab to " +"advance to the next tab placeholder. The number in the placeholder code " +"defines the order in which tab advances to each place in the text." +msgstr "" +"Tabulazioen leku-markak erabiltzeko, txertatu snippet-a modu normalean. " +"Kurtsorea tabulazioen lehenengo leku-markan jarrita dago. Idatzi testua, eta " +"sakatu Tabuladorea tekla, tabulazioen hurrengo leku-markara " +"joateko. Leku-markaren kodearen zenbakiak tabuladorea testuko hurrengo " +"lekura joateko ordena definitzen du." + +#: C/gedit.xml:1802(para) +msgid "" +"Press ShiftTab to " +"return to the previous tab placeholder. Pressing Tab when " +"there are no more tab placeholders moves the cursor to the end of the " +"snippet text, or to the end placeholder if it exists." +msgstr "" +"Sakatu MaiusTabuladorea " +"tabulazioen aurreko leku-markara itzultzeko. Tabuladorea sakatuz " +"gero tabulazioen leku-marka gehiago ez daudenean, kurtsorea snippet-" +"testuaren amaierara joango da, edo amaierako leku-markara, baldin badago." + +#: C/gedit.xml:1805(term) +msgid "Mirror placeholders" +msgstr "Ispilatu leku-markak" + +#: C/gedit.xml:1807(para) +msgid "" +"A repeated tab placeholder will mirror the placeholder already defined. This " +"allows you to type in text only once that you want to appear several times " +"in the snippet." +msgstr "" +"Tabulazioen leku-marka errepikatu batek lehendik definitutako leku-marka " +"ispilatuko du. Honek aukera ematen dizu testua behin tekleatzeko, snippet-" +"ean hainbat aldiz agertzea nahi duzunean." + +#: C/gedit.xml:1810(term) +msgid "End placeholder" +msgstr "Amaitu leku-marka" + +#: C/gedit.xml:1812(para) +msgid "" +"$0 defines the end placeholder. This allows you to finish " +"working with the snippet with the cursor at a point other than the end of " +"the snippet text." +msgstr "" +"$0: amaierako leku-marka definitzen du. Honek aukera " +"ematen dizu snippet-arekin lan egiten amaitzeko, kurtsorea snippet-testuaren " +"amaiera ez den beste puntu batean dagoenean." + +#: C/gedit.xml:1815(term) +msgid "Environmental variables" +msgstr "Ingurune-aldagaiak" + +#: C/gedit.xml:1817(para) +msgid "" +"Environmental variable such as $PATH and " +"$HOME are substituted in snippet text. The following " +"variables specific to gedit can also be used:" +msgstr "" +"Ingurune-aldagaiak, $PATH eta $HOME, " +"esate baterako, ordezten dira snippet-testuan. " +"gedit-en aldagai espezifiko hauek ere erabil " +"daitezke:" + +#: C/gedit.xml:1819(term) +msgid "$GEDIT_SELECTED_TEXT" +msgstr "$GEDIT_SELECTED_TEXT" + +#: C/gedit.xml:1821(para) +msgid "The currently selected text." +msgstr "Unean hautatutako testua." + +#: C/gedit.xml:1824(term) +msgid "$GEDIT_FILENAME" +msgstr "$GEDIT_FILENAME" + +#: C/gedit.xml:1826(para) +msgid "" +"The full filename of the document, or an empty string if the document isn't " +"saved yet." +msgstr "" +"Dokumentuaren fitxategi-izen osoa, edo kate huts bat, dokumentua oraindik " +"gorde ez bada." + +#: C/gedit.xml:1829(term) +msgid "$GEDIT_BASENAME" +msgstr "$GEDIT_BASENAME" + +#: C/gedit.xml:1831(para) +msgid "" +"The basename of the filename of the document, or an empty string if the " +"document isn't saved yet." +msgstr "" +"Dokumentuaren fitxategi-izenaren oinarrizko izena, edo kate huts bat, dokumentua " +"oraindik gorde ez bada." + +#: C/gedit.xml:1834(term) +msgid "$GEDIT_CURRENT_WORD" +msgstr "$GEDIT_CURRENT_WORD" + +#: C/gedit.xml:1836(para) +msgid "" +"The word at the cursor's location in the document. When this variable is " +"used, the current word will be replaced by the snippet text." +msgstr "" +"Dokumentuan kurtsorearen kokapenean dagoen hitza. Aldagai hau erabiltzen denean, " +"snippet-testuak ordeztuko du uneko hitza." + +#: C/gedit.xml:1844(term) +msgid "Shell placeholders" +msgstr "Shell leku-markak" + +#: C/gedit.xml:1846(para) +msgid "" +"$(cmd) is replaced by the " +"result of executing cmd in a shell." +msgstr "" +"$(cmd): shell batean " +"cmd exekutatzearen ondoriozko emaitzak ordezten " +"du." + +#: C/gedit.xml:1847(para) +msgid "" +"$(n:cmd) allows you to give this placeholder a reference, where " +"n is any number from 1 upwards. Use " +"$n to use the output from one " +"shell placeholder as input in another." +msgstr "" +"$(n:cmd): aukera ematen dizu leku-marka honi erreferentzia bat emateko, eta " +"n 1etik gorako zenbaki bat da. Erabili " +"$n shell leku-marka baten " +"irteera beste baten sarrera gisa erabiltzeko." + +#: C/gedit.xml:1850(term) +msgid "Python placeholders" +msgstr "Python leku-markak" + +#: C/gedit.xml:1852(para) +msgid "" +"$<cmd> is replaced by " +"the result of evaluating cmd in the python " +"interpreter." +msgstr "" +"$<cmd>: " +"cmd Python interpretatzailean ebaluatzearen " +"ondoriozko emaitzak ordezten du." + +#: C/gedit.xml:1853(para) +msgid "" +"$<a:cmd>" +"; specifies another python placeholder as a dependency, where " +"a gives its order in the snippet. This allows you " +"to use python functions defined in another snippet. To specify several " +"dependencies, separate the numbers with commas thus: $<a,b:cmd>" +msgstr "" +"$<a:cmd>" +";: beste python leku-marka bat zehazten du mendekotasun gisa, eta " +"a-k ematen dio ordena snippet-ean. Honek aukera " +"ematen dizu beste snippet batean definitutako python funtzioak erabiltzeko. " +"Hainbat mendekotasun zehazteko, bereizi zenbakiak komekin honela: $" +"<a,b:c" +"md>" + +#: C/gedit.xml:1854(para) +msgid "" +"To use a variable in all other python snippets, declare it as " +"global." +msgstr "" +"Aldagai bat beste python snippet batzuetan erabiltzeko, deklaratu " +"global gisa." + +#: C/gedit.xml:1863(title) +msgid "Sort Plugin" +msgstr "Ordenatzeko plugina" + +#: C/gedit.xml:1864(para) +msgid "" +"The Sort plugin arranges selected lines of text " +"into alphabetical order." +msgstr "" +"Ordenatu pluginak testu batean hautatutako " +"lerroak ordena alfabetikoan jartzen ditu." + +#: C/gedit.xml:1865(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRever" +"t." +msgstr "" +"Ezin duzu desegin ordenatzeko eragiketa; beraz, gorde fitxategia ordenatu " +"aurretik. Fitxategiaren gordetako bertsiora leheneratzeko ordenatzeko " +"eragiketaren ondoren, aukeratu FitxategiaLeheneratu." + +#: C/gedit.xml:1868(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "Ordenatzeko plugina erabiltzeko, jarraitu urrats hauei:" + +#: C/gedit.xml:1871(para) +msgid "Select the lines of text you want to sort." +msgstr "Hautatu ordenatu nahi duzun testuko lerroak." + +#: C/gedit.xml:1873(para) +msgid "" +"Choose EditSort. The Sort dialog opens." +msgstr "" +"Aukeratu EditatuOrdenatu. Ordenatu elkarrizketa-koadroa irekiko da." + +#: C/gedit.xml:1876(para) +msgid "Choose the options you want for the sort:" +msgstr "Aukeratu ordenatu nahi dituzun aukerak:" + +#: C/gedit.xml:1879(para) +msgid "" +"To arrange the text in reverse order, select Reverse " +"order." +msgstr "" +"Testua alderantzizko ordenan antolatzeko, hautatu Alderantzikatu " +"ordena." + +#: C/gedit.xml:1882(para) +msgid "To delete duplicate lines, select Remove duplicates." +msgstr "" +"Bikoiztutako lerroak ezabatzeko, hautatu Kendu " +"bikoiztuak." + +#: C/gedit.xml:1885(para) +msgid "To ignore case sensitivity, select Ignore case." +msgstr "" +"Maiuskulei/minuskulei ez ikusi egiteko, hautatu Ez ikusi egin " +"maiuskulei eta minuskulei." + +#: C/gedit.xml:1888(para) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Ordenak lerroen hasierako karaktereak kontuan hartzea nahi ez baduzu, ezarri " +"ordenatu beharreko lehenengo karakterea Zutabe honetatik " +"hasi biratze-botoia." + +#: C/gedit.xml:1893(para) +msgid "To perform the sort operation, click Sort." +msgstr "" +"Ordenatzeko eragiketa egiteko, egin klik Ordenatu " +"botoian." + +#: C/gedit.xml:1900(title) +msgid "Spell Checker Plugin" +msgstr "Ortografia egiaztatzeko plugina" + +#: C/gedit.xml:1901(para) +msgid "" +"The Spell Checker plugin checks the spelling in " +"the selected text. You can configure gedit to " +"check the spelling automatically, or you can check the spelling manually, in " +"the specified language. The language setting, and the autocheck spelling " +"properties, apply per document. To use the Spell checker plugin, perform the " +"following steps:" +msgstr "" +"Ortografia-egiaztatzailea pluginak hautatutako " +"testuaren ortografia egiaztatzen du. gedit " +"konfigura dezakezu ortografia automatikoki egiaztatzeko, edo ortografia " +"eskuz egiazta dezakezu, zehaztutako hizkuntzan. Hizkuntza-ezarpena, eta " +"autografia-egiaztatze automatikoaren propietateak, dokumentu bakoitzean " +"aplikatzen dira. Ortografia-egiaztatzailea erabiltzeko, jarraitu urrats " +"hauei:" + +#: C/gedit.xml:1903(para) +msgid "" +"Choose ToolsSet " +"Language to display the Set " +"language dialog. Select the appropriate language from the list. " +"Click OK to close the Set " +"language dialog." +msgstr "" +"Aukeratu TresnakEzarri " +"hizkuntza, Ezarri hizkuntza " +"elkarrizketa-koadroa bistaratzeko. Hautatu hizkuntza zerrendan. Egin klik " +"Ados botoian, Ezarri hizkuntza " +"elkarrizketa-koadroa ixteko." + +#: C/gedit.xml:1906(para) +msgid "" +"To check the spelling automatically, choose " +"ToolsAutocheck " +"Spelling. To unset the automatic spell check, " +"choose ToolsAutocheck " +"Spelling again. When automatic spell checking is " +"set, an icon is displayed beside the Autocheck " +"Spelling menu item. Automatic spell checking is unset by " +"default, each time gedit starts." +msgstr "" +"Ortografia automatikoki egiaztatzeko, aukeratu " +"TresnakOrtografia automatikoki " +"egiaztatzea. Ortografia automatikoki egiaztatzea " +"nahi ez baduzu, aukeratu " +"TresnakOrtografia automatikoki " +"egiaztatzea berriro. Ortografia-egiaztatze " +"automatikoa ezarrita dagoenean, ikono bat bistaratzen da " +"Ortografia automatikoki egiaztatzea menu-" +"elementuaren gainean. Ortografia-egiaztatze automatikoa ezarri gabe dago " +"modu lehenetsian, gedit abiarazten den " +"bakoitzean." + +#: C/gedit.xml:1907(para) +msgid "" +"Unknown spellings are displayed in a different color, and underlined. Right-" +"click on an unknown spelling, then select Spelling " +"Suggestions from the popup menu:" +msgstr "" +"Ortografia ezezagunak beste kolore batean bistaratzen dira, eta " +"azpimarratuta. Egin klik eskuin-botoiarekin ortografia ezezagun batean, eta " +"hautatu Ortografia-iradokizunak laster-menuan:" + +#: C/gedit.xml:1910(para) +msgid "" +"To replace the unknown spelling with another spelling in the list, select " +"the replacement spelling from the Spelling Suggestions " +"popup menu." +msgstr "" +"Ortografia ezezaguna zerrendako zerrendako beste ortografia batekin " +"ordezteko, hautatu ordezteko ortografia Ortografia-" +"iradokizunak laster-menuan." + +#: C/gedit.xml:1913(para) +msgid "" +"To add the unknown spelling to your personal dictionary, select " +"Spelling " +"SuggestionsAdd." +msgstr "" +"Ortografia ezezaguna zure hiztegi pertsonalean gehitzeko, hautatu " +"Ortografia-" +"iradokizunakGehitu." + +#: C/gedit.xml:1916(para) +msgid "" +"To ignore all occurrences of the unknown spelling, so that they are no " +"longer flagged as unknown but are not added to your personal dictionary, " +"select Spelling " +"SuggestionsIgnore All. The " +"unknown word is ignored in the current gedit " +"session only." +msgstr "" +"Ortografia ezezagunaren agerraldi guztiei ez ikusi egiteko, ezezaguntzat ez " +"jotzeko baina zure hiztegi pertsonalean ez gehitzeko moduan, hautatu " +"Ortografia-iradokizunakEz ikusi " +"egin denei. Hitz ezezagunari uneko " +"gedit saioan bakarrik ez ikusi egingo zaio." + +#: C/gedit.xml:1921(para) +msgid "" +"To check the spelling manually, choose " +"ToolsCheck " +"Spelling." +msgstr "" +"Ortografia eskuz egiaztatzeko, aukeratu " +"TresnakEgiaztatu " +"ortografia." + +#: C/gedit.xml:1923(para) +msgid "" +"If there are no spelling errors, an Information dialog " +"displays a message stating that the document does not contain misspelled " +"words. Click OK to close the " +"Information dialog." +msgstr "" +"Ortografia-akatsik ez badago, Informazioa elkarrizketa-koadroak " +"mezu bat bistaratuko du dokumentuan gaizki idatzitako hitzik ez dagoela " +"esateko. Egin klik Ados botoian, " +"Informazioa elkarrizketa-koadroa ixteko." + +#: C/gedit.xml:1925(para) +msgid "" +"If there are spelling errors, the Check Spelling dialog " +"is displayed:" +msgstr "" +"Ortografia-akatsak badaude, Egiaztatu ortografia " +"elkarrizketa-koadroa bistaratuko da:" + +#: C/gedit.xml:1928(para) +msgid "" +"The Misspelled word is displayed at the top of the " +"dialog." +msgstr "" +"Ortografia-akatsa bistaratuko da elkarrizketa-koadroaren " +"goialdean." + +#: C/gedit.xml:1931(para) +msgid "" +"A suggested known spelling is displayed in the Change " +"to text box. You can replace this with another known spelling by " +"selecting a spelling from the Suggestions list, or you " +"can enter text directly into the Change to text box." +msgstr "" +"Iradokitako ortografia ezaguna bistaratuko da Aldatu " +"testu-koadroan. Hori beste ortografia ezagun batekin ordeztu dezakezu " +"Iradokizunak zerrendan ortografia bat hautatuz, edo " +"testua zuzenean sar dezakezu Aldatu testu-koadroan." + +#: C/gedit.xml:1934(para) +msgid "" +"To check the spelling of the text in the Change to text " +"box, click Check Word. If this is a known word, the " +"Suggestions list is replaced with the text " +"(correct spelling). If the word is not known, new entries " +"appear in the Suggestions list." +msgstr "" +"Aldatu testu-koadroko testuaren ortografia " +"egiaztatzeko, egin klik Egiaztatu hitza botoian. " +"Hitza ezaguna bada, (ortografia zuzena) testuak ordeztuko " +"du Iradokizunak zerrenda. Hitza ezezaguna bada, " +"berriz, sarrera berriak azalduko dira Iradokizunak " +"zerrendan." + +#: C/gedit.xml:1937(para) +msgid "" +"To ignore the current occurrence of the unknown word, click " +"Ignore. To ignore all occurrences of the unknown " +"word, click Ignore All. The unknown word is ignored " +"in the current gedit session only." +msgstr "" +"Hitz ezezagunaren uneko agerraldiari ez ikusi egiteko, egin klik " +"Ez ikusi egin botoian. Hitz ezezagunaren agerraldi " +"guztiei ez ikusi egiteko, egin klik Ez ikusi egin " +"denei botoian. Hitz ezezagunari uneko " +"gedit saioan bakarrik ez ikusi egingo zaio." + +#: C/gedit.xml:1940(para) +msgid "" +"To change the current occurrence of the unknown word to the text in the " +"Change to text box, click " +"Change. To change all occurrences of the unknown word " +"to the text in the Change to text box, click " +"Change All." +msgstr "" +"Hitz ezezagunaren uneko agerraldia Aldatu testu-" +"koadroko hitzarekin ordezteko, egin klik Aldatu " +"botoian. Hitz ezezagunaren agerraldi guztiak Aldatu " +"testu-koadroko hitzarekin ordezteko, egin klik Aldatu " +"dena botoian." + +#: C/gedit.xml:1943(para) +msgid "" +"To add the unknown word to your personal dictionary, click Add " +"word." +msgstr "" +"Hitz ezezaguna hiztegi pertsonalean gehitzeko, egin klik Gehitu " +"hitza botoian." + +#: C/gedit.xml:1946(para) +msgid "" +"To close the Check Spelling dialog, click " +"Close." +msgstr "" +"Egiaztatu ortografia elkarrizketa-koadroa ixteko, egin " +"klik Itxi botoian." + +#: C/gedit.xml:1955(title) +msgid "Tag List Plugin" +msgstr "Etiketa-zerrendaren plugina" + +#: C/gedit.xml:1956(para) +msgid "" +"The Tag List plugin allows you to insert common " +"tags from a list in the side pane." +msgstr "" +"Etiketa-zerrenda pluginak aukera ematen dizu " +"zerrenda batetik etiketa ohikoenak txertatzeko albo-panelean." + +#: C/gedit.xml:1957(para) +msgid "To use the Tag List plugin, perform the following steps:" +msgstr "Etiketa-zerrenda plugina erabiltzeko, jarraitu urrats hauei:" + +#: C/gedit.xml:1959(para) +msgid "" +"Choose ViewSide " +"Pane." +msgstr "" +"Aukeratu IkusiAlbo-" +"panela." + +#: C/gedit.xml:1963(para) +msgid "" +"By default, the side pane shows a tab containing a list of open documents. " +"Click on the tab showing a + icon at the bottom of the side pane to show the " +"tag list tab." +msgstr "" +"Modu lehenetsian, albo-panelak irekitako dokumentuen zerrenda daukan fitxa " +"bat erakusten du. Egin klik albo-paneleko behealdeko + ikonoan, etiketa-" +"zerrendaren fitxa bistaratzeko." + +#: C/gedit.xml:1965(para) +msgid "" +"Select the appropriate tag category from the drop-down list. For example, " +"HTML - Tags." +msgstr "" +"Hautatu nahi duzun etiketa-kategoria goitibeherako zerrendan. Adibidez, " +"HTML - Etiketak." + +#: C/gedit.xml:1968(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "Mugitu etiketa-zerrendan zehar, behar den etiketa bilatzeko." + +#: C/gedit.xml:1971(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" +"Etiketa bat uneko fitxategian kurtsorearen kokalekuan txertatzeko, egin klik " +"bikoitza etiketa-zerrendako etiketan. Etiketa bat honela ere txerta " +"dezakezu:" + +#: C/gedit.xml:1973(para) +msgid "" +"To insert a tag in the current file and change the focus from the side pane " +"to the display area, press Return." +msgstr "" +"Etiketa bat uneko fitxategian txertatzeko eta fokua albo-paneletik " +"bistaratze-areara aldatzeko, sakatu Sartu." + +#: C/gedit.xml:1976(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press " +"ShiftReturn." +msgstr "" +"Etiketa bat uneko fitxategian txertatzeko eta fokua Etiketa-" +"zerrendaren plugina leihoan edukitzeko, sakatu " +"MaiusSartu." + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2 +#: C/gedit.xml:0(None) +msgid "translator-credits" +msgstr "Hizkuntza Politikarako Sailburuordetza , 2011" + diff --git a/help/fi/fi.po b/help/fi/fi.po new file mode 100644 index 0000000..2671338 --- /dev/null +++ b/help/fi/fi.po @@ -0,0 +1,4404 @@ +# gedit's Finnish translation. +# Copyright (C) 2008-2010 Free Software Foundation, Inc. +# +# +# comments from sampo555 regarding translation: +# "Tulostusohjeen puolella alkoi vähän ideat loppumaan järkevien +# käännösten osalta, joten ainakin sitä voisi joku vilkaista. +# Typojakin jäi varmasti muutama, vaikka ajoinkin käännökset oikoluvun +# läpi. Mitään suurempia ongelmia käännöksissä ei kuitenkaan pitäisi olla..." +# +# sampo555 , 2012. +# Valto Wirkola , 2008-2010. +# Tommi Vainikainen (Legal Notices), 2006. +# Lasse Liehu , 2014. +msgid "" +msgstr "" +"Project-Id-Version: gedit\n" +"POT-Creation-Date: 2014-08-09 05:12+0000\n" +"PO-Revision-Date: 2014-08-09 13:29+0300\n" +"Last-Translator: Lasse Liehu \n" +"Language-Team: Finnish \n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Lokalize 1.5\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"sampo555 , 2012.\n" +"Valto Wirkola , 2008, 2010\n" +"Tommi Vainikainen , 2006." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:9 C/gedit-change-default-font.page:9 +#: C/gedit-close-file.page:9 C/gedit-create-new-file.page:11 +#: C/gedit-edit-as-root.page:9 C/gedit-files-basic.page:9 +#: C/gedit-full-screen.page:11 C/gedit-open-files-from-sidepane.page:10 +#: C/gedit-open-files.page:16 C/gedit-open-on-server.page:9 +#: C/gedit-open-recent.page:9 C/gedit-plugin-guide.page:9 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:14 +#: C/gedit-plugins-insert-date-time.page:14 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:9 +#: C/gedit-plugins-quick-open.page:10 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:13 C/gedit-printing.page:9 +#: C/gedit-quickstart.page:11 C/gedit-replace.page:11 +#: C/gedit-save-file.page:11 C/gedit-search.page:10 +#: C/gedit-shortcut-keys.page:12 C/gedit-spellcheck.page:11 +#: C/gedit-syntax-highlighting.page:9 C/gedit-tabs-moving.page:12 +#: C/gedit-tabs.page:13 C/gedit-undo-recent-action.page:11 +#: C/gedit-view-open-files-in-sidepane.page:10 C/index.page:13 +msgid "Jim Campbell" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:14 +msgid "Change the color scheme" +msgstr "Väriteeman vaihtaminen" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:16 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"geditin mukana toimitetaan useita väriteemoja, joilla voi muuttaa " +"pääikkunan ulkoasua." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:19 +msgid "To change the color scheme, complete the following steps:" +msgstr "Väriteeman vaihtaminen onnistuu seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:21 C/gedit-change-default-font.page:23 +#, fuzzy +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Valitse MuokkaaAsetuksetFontit & " +"Värit." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:24 +msgid "Choose your desired color scheme." +msgstr "Valitse haluamasi väriteema" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:27 +msgid "The new color scheme will be applied immediately." +msgstr "Valittu väriteema otetaan käyttöön välittömästi." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:30 +msgid "Use a Custom Color Scheme" +msgstr "Mukautetun väriteeman käyttäminen" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:35 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Voit myös käyttää muiden käyttäjien luomia väriteemoja, tai luoda itsellesi " +"oman väriteeman ja käyttää sitä." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:37 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Tarkemmat ohjeet väriteemojen asentamiseen muutaman esimerkkiteeman kera " +"löytyvät geditin wikistä." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:11 +msgid "2011 2012 2013" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:15 +msgid "Change the default font" +msgstr "Oletusfontin muuttaminen" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:17 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit käyttää oletuksena järjestelmän tasalevyistä fonttia, mutta " +"voit muuttaa geditin oletusfontin mieleiseksesi." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:22 +msgid "To change the default font in gedit:" +msgstr "Oletusfontin muuttaminen onnistuu geditissä seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:26 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "Poista rasti kohdasta ”Käytä järjestelmän tasalevyistä fonttia.”" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:28 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:31 +#, fuzzy +#| msgid "" +#| "Choose your desired font, and use the slider to set the " +#| "default font size." +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Valitse haluamasi fontti ja säädä sen kokoa liukusäätimellä." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:33 +msgid "Click Select, and then click Close." +msgstr "Napsauta Valitse ja Sulje." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:14 +msgid "Close a file" +msgstr "Tiedoston sulkeminen" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:16 +msgid "" +"To close a file in gedit, select File " +"Close. Alternately, you can click the small \"X\" that " +"appears on the right-side of the file's tab, or press Ctrl W." +msgstr "" +"Tiedoston sulkeminen geditissä onnistuu valitsemalla " +"Tiedosto Sulje, painamalla tiedoston " +"välilehden oikeassa reunassa olevaa rastia tai käyttämällä näppäinkomentoa " +"Ctrl W ." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Mikä tahansa edellä mainituista toiminnoista sulkee tiedoston " +"geditissä. Jos tiedostoon on tehty muutoksia viimeisimmän " +"tallennuksen jälkeen, gedit antaa mahdollisuuden tallentaa " +"muutokset ennen tiedoston sulkemista." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:15 C/gedit-full-screen.page:15 +#: C/gedit-open-files.page:20 C/gedit-plugins-quick-open.page:14 +#: C/gedit-save-file.page:19 C/gedit-search.page:22 C/gedit-tabs.page:30 +#: C/gedit-undo-recent-action.page:23 +msgid "Shobha Tyagi" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:21 +msgid "Create a new file" +msgstr "Uuden asiakirjan luominen" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:23 +#, fuzzy +#| msgid "" +#| "To open a file in gedit, click the Open button, or " +#| "press CtrlO." +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"Tiedoston avaaminen geditissä onnistuu napsauttamalla Avaa-painiketta tai käyttämällä näppäinyhdistelmää CtrlO." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:27 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Mikä tahansa edellä mainituista toiminnoista luo uuden tiedoston " +"geditiin. Jos geditissä on jo muita tiedostoja " +"avoinna, uusi tiedosto ilmestyy uutena välilehtenä vanhojen tiedostojen " +"oikealle puolelle." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:14 +#, fuzzy +#| msgid "Edit a file as the root (administative) user" +msgid "Edit a file as the root user" +msgstr "Tiedoston muokkaaminen pääkäyttäjänä" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:17 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Tiedostojen muokkaaminen pääkäyttäjänä voi olla vaarallista ja saattaa " +"aiheuttaa pahoja järjestelmäongelmia. Noudata erityistä varovaisuutta " +"muokatessasi tiedostoja pääkäyttäjänä." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:22 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Tiedostojen muokkaaminen pääkäyttäjänä onnistuu käynnistämällä gedit päätteestä komennolla:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:24 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:26 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Koska sudo-komennon käyttäminen vaatii tunnistautumista, " +"gedit käynnistyy vasta, kun olet syöttänyt salasanasi " +"onnistuneesti." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:29 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Vaihtoehtona sudo-komennolle pääkäyttäjän oikeudet voidaan " +"hankkia kirjoittamalla:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:31 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:33 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Tämän jälkeen geditin käynnistäminen onnistuu gedit " +"komennolla." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:37 +#, fuzzy +#| msgid "" +#| "Once you have opened gedit with administrative privileges, the " +#| "application will retain those privileges until you close it." +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Kun gedit käynnistetään pääkäyttäjän oikeuksin, ohjelma säilyttää " +"nämä oikeudet aina sen sulkemiseen asti." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:14 +msgid "File basics: Open, close, and save files" +msgstr "Tiedostojen perustoiminnot: Avaaminen, sulkeminen ja tallentaminen" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:16 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Jos geditin käyttö ei ole vielä kovin tuttua, nämä aiheet " +"auttavat tiedostojen luomisessa, tallentamisessa, avaamisessa ja " +"sulkemisessa." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:21 +msgid "Use fullscreen mode" +msgstr "Kokoruututilan käyttäminen" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:23 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"geditin kokoruututila saattaa helpottaa suurten tiedostojen " +"käsittelyä. Kokoruututilassa valikkopalkki, välilehtipalkki ja työkalupalkki piilotetaan, mikä jättää enemmän tilaa " +"tekstille ja antaa mahdollisuuden keskittyä itse tehtävään." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:30 +msgid "Turn on fullscreen mode" +msgstr "Kokoruututilaan siirtyminen" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:31 +#, fuzzy +#| msgid "" +#| "To turn on fullscreen mode, select ViewFullscreen, or press F11. " +#| "gedit's menu, title, and tab-bars will hide, and you will only " +#| "be presented with the text of your current file." +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Kokoruututilaan siirtyminen onnistuu joko valitsemalla NäytäKokoruutu tai painamalla F11-näppäintä. " +"geditin valikko-, otsikko- ja välilehtipalkit piilotetaan ja " +"ruutu käytetään kokonaisuudessaan valitun tiedoston sisällön esittämiseen." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:34 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Jos tarvitset geditin valikon toimintoja työskennellessäsi " +"kokoruututilassa, siirrä hiiren osoitin näytön yläreunaan. Tämän jälkeen " +"voit valita esiin ilmestyvästä geditin valikkopalkista " +"tarvitsemasi toiminnon." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:40 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Avoinna olevien välilehtien välillä siirtyminen kokoruututilassa onnistuu " +"näppäinyhdistelmillä CtrlAltPgUp ja CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:48 +msgid "Turn off fullscreen mode" +msgstr "Kokoruututilasta poistuminen" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:49 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +#, fuzzy +#| msgid "" +#| "To turn off fullscreen mode and return to the standard gedit " +#| "window, move your mouse cursor to the top of the screen, and wait for the " +#| "menu bar to appear. When the menu bar appears, " +#| "select Leave Fullscreen. You can also press F11 to " +#| "turn off fullscreen mode." +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select Leave Fullscreen." +msgstr "" +"Kokoruututilasta poistuminen ja normaaliin tilaan palaaminen onnistuu " +"siirtämällä hiiren osoitin näytön yläreunaan ja odottamalla " +"valikkopalkin ilmestymistä. Kun valikkopalkki tulee " +"näkyviin, valitse Peru kokoruututila. Kokoruututilasta " +"poistuminen onnistuu myös painamalla F11-näppäintä." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:15 +msgid "View and open files from the side pane" +msgstr "Tiedostojen selaaminen ja avaaminen sivupaneelista" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:16 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side pane." +msgstr "" +"Välilehdet geditin ikkunan yläreunassa ovat yleisin tapa avoimien " +"tiedostojen hallintaan. Jos tiedostoja kuitenkin on useita kymmeniä, " +"sivupaneelin käyttäminen saattaa olla parempi vaihtoehto avoimien " +"tiedostojen hallitsemiseen." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:23 +#, fuzzy +#| msgid "" +#| "To activate the side pane, select ViewSide Pane, or just press the F9 key." +msgid "" +"To activate the side pane, select View " +"Side Pane, or just press the F9 key." +msgstr "" +"Sivupaneelin käyttöönotto onnistuu valitsemalla " +"NäytäSivupaneeli tai painamalla " +"F9-näppäintä." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:29 +msgid "" +"You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "" +"Sivupaneelin avaaminen tai sulkeminen onnistuu milloin tahansa " +"F9-näppäimellä." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:36 +#: C/gedit-plugins-file-browser.page:32 +msgid "Opening files from the side pane" +msgstr "Tiedoston avaaminen sivupalkista" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:37 +#, fuzzy +#| msgid "" +#| "To open files from the side pane, first open the side " +#| "pane by selecting ViewSide Pane, then click on the file-browser icon at the bottom of " +#| "the pane." +msgid "" +"To open files from the side pane, first open the side pane by selecting View Side Pane, " +"then click on the file-browser icon at the bottom of the pane." +msgstr "" +"Tiedostojen avaaminen sivupaneelista onnistuu avaamalla " +"sivupaneeli valitsemalla NäytäSivupaneeli ja painamalla tiedostoselaimen kuvaketta paneelin alareunassa." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:46 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +"locate and open your desired files." +msgstr "" +"Tämä avaa sivupaneeliin tiedostoselaimen, jota voit " +"käyttää tiedostojen etsimiseen ja avaamiseen. Tiedostoselainta hallitaan " +"sivupaneelin yläosasta löytyvien painikkeiden avulla." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:54 +msgid "Using the side pane to switch between open files" +msgstr "Avoimien tiedostojen hallinta sivupaneelista" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:55 +msgid "" +"Once you have several files open, you can use the side pane to switch " +"between open files. To activate the file browser portion of the side " +"pane, click on the file icon at the bottom of the side " +"pane." +msgstr "" +"Sivupaneelia voidaan käyttää myös avoimien asiakirjojen hallintaan. " +"Sivupaneelin asiakirjaselaimen avaaminen onnistuu napsauttamalla " +"tyhjän asiakirjan kuvaketta sivupaneelin alareunassa." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:64 +msgid "" +"Clicking on any file name in the side pane will open that file " +"for editing." +msgstr "" +"Tiedosto avautuu muokattavaksi napsauttamalla sen nimeä sivupaneelissa." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:26 +msgid "Open a file or set of files" +msgstr "Avaa yksi tai useampi tiedosto" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:28 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Tiedoston avaaminen geditissä onnistuu napsauttamalla Avaa-painiketta tai käyttämällä näppäinyhdistelmää CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:30 +#, fuzzy +#| msgid "" +#| "This will cause the Open Files dialog to appear. Use your " +#| "mouse or keyboard to select the file that you wish to open, and then " +#| "click Open. The file that you've selected will open in a new " +#| "tab." +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Aukeavasta Avaa tiedostoja -ikkunasta voit valita haluamasi " +"tiedoston hiiren tai näppäimistön avulla. Valittu tiedosto avautuu uuteen " +"välilehteen painamalla Avaa-painiketta." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:33 +#, fuzzy +#| msgid "" +#| "To close the Open Files dialog without opening a file, click " +#| "Cancel." +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Avaa tiedostoja -ikkunan sulkeminen avaamatta yhtään tiedostoa " +"onnistuu napsauttamalla Peru-painiketta." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:36 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Useiden tiedostojen avaaminen kerralla onnistuu Ctrl- ja " +"Vaihto-näppäimillä. Jos Ctrl-näppäin on painettu " +"pohjaan tiedostoja valittaessa, kaikki valitut tiedostot avautuvat " +"Avaa-painikkeella." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:43 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Vaihto-näppäimen painaminen tiedostojen avaamisen yhteydessä avaa " +"ensimmäisen ja viimeisen valitun tiedoston sekä kaikki niiden välissä olevat " +"tiedostot." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:14 +msgid "Open a file that is located on a server" +msgstr "Palvelimella sijaitsevan tiedoston avaaminen" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:16 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Ennen kuin gedit voi avata tiedostoja verkkopalvelimelta, " +"gedit tarvitsee teknisiä tietoja kyseisestä palvelimesta. " +"gedit vaatii ainakin palvelimen IP- tai verkko-osoitteen ja " +"mahdollisesti myös palvelimen tyypin (esim. HTTP, FTP, jne.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:21 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Jotkut palvelimet rajoittavat palvelimella olevien tiedostojen muokkaamista. " +"Tiedoston voi esimerkiksi avata palvelimelta, mutta muutokset täytyy " +"tallentaa paikallisesti omalle tietokoneelle." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:26 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Tiedostojen avaaminen verkkopalvelimelta geditillä onnistuu " +"seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:30 +msgid "" +"Choose FileOpen to display the " +"Open Files dialog." +msgstr "" +"Valitse TiedostoAvaa ja Avaa " +"tiedostoja -ikkuna avautuu." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "" +"Select the Pencil icon near the top of the Open Files " +"dialog." +msgstr "" +"Napsauta kynää Avaa tiedostoja -ikkunan yläreunassa." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Anna palvelimen IP- tai verkko-osoite." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Etsi ja valitse haluamasi tiedosto." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character coding drop-down list to select the appropriate character " +"coding." +msgstr "" +"Valitse Merkistökoodaus-pudotusvalikosta tiedostolle asianmukainen " +"merkistökoodaus." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:43 +msgid "Click Open." +msgstr "Napsauta Avaa." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Tuettuja URI-tyyppejä ovat mm. http:, ftp:, file:, ja kaikki gvfs:n tukemat muodot." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Osa URI-tyypeistä avataan \"vain-luku\"-tilassa, ja kaikki muutokset täytyy " +"tallentaa muualle. HTTP sallii vain tiedostojen lukemisen. FTP:llä avatut " +"tiedostot ovat \"vain-luku\"-tilassa, koska kaikki FTP-palvelimet eivät osaa " +"tallentaa muutoksia." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:14 +msgid "Reopen a recently-used file" +msgstr "Äskettäin käytetyn tiedoston avaaminen" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:16 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"Oletuksena gedit tarjoaa nopean pääsyn viiteen viimeisimpään " +"tiedostoon. Äskettäin käytetyn tiedoston avaaminen onnistuu seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:19 +msgid "" +"Click the downward-facing arrow to the right of the Open button." +msgstr "" +"Napsauta alaspäin osoittavaa nuolta Avaa-painikkeen oikealla " +"puolella." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:21 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "gedit näyttää viiden tuoreimman tiedoston listan." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Valitse haluamasi tiedosto, ja se avautuu uuteen välilehteen" + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:26 +#, fuzzy +#| msgid "" +#| "To adjust the number of recently-used files that gedit displays, you will " +#| "need to use the gconf-editor application." +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"Näytettävien viimeisimpien tiedostojen määrää voi säätää gconf-editor-ohjelmalla." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:30 +#, fuzzy +#| msgid "" +#| "Launch gconf-editor and select appsgedit-2preferencesuirecents." +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Käynnistä gconf-editor ja valitse appsgedit-2preferencesuirecents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:33 +#, fuzzy +#| msgid "" +#| "Double-click on the number next to max_recents and change the " +#| "number to your desired value." +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Kaksoisnapsauta numeroa max_recents-tekstin vieressä ja anna " +"haluamasi arvo." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:14 +msgid "Configure and use gedit Plugins" +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:15 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:19 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:24 +msgid "Default gedit Plugins" +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:28 +msgid "Additional gedit Plugins" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:10 +#: C/gedit-plugins-insert-date-time.page:9 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:9 +#: C/gedit-replace.page:15 C/gedit-search.page:14 C/gedit-tabs-moving.page:16 +#: C/gedit-tabs.page:17 C/gedit-undo-recent-action.page:15 +#: C/gedit-view-open-files-in-sidepane.page:14 +msgid "Daniel Neel" +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +#, fuzzy +#| msgid "Change Case" +msgid "Change case" +msgstr "Vaihda kirjainkokoa" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +#, fuzzy +#| msgid "Select the lines of text you want to sort." +msgid "Highlight the portion of text that you want to change." +msgstr "Valitse tekstirivit, jotka haluat järjestää." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +#, fuzzy +#| msgid "Click FilePrint" +msgid "" +"Select geditChange Case" +msgstr "Valitse TiedostoTulosta" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +#, fuzzy +#| msgid "" +#| "Change each lowercase character to uppercase, and change each uppercase " +#| "character to lowercase." +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "Vaihtaa jokaisen ison kirjaimen pieneksi ja pienen kirjaimen isoksi." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "View document statistics" +msgstr "Asiakirjan tilastot -liitännäinen" + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "Document statistics" +msgstr "Asiakirjan tilastot -liitännäinen" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +#, fuzzy +#| msgid "" +#| "Using the spell-check feature in gedit requires that you first " +#| "enable the spell-check plugin. To enable the plugin, select " +#| "Edit PreferencesPluginsSpell Checker ." +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences " +"PluginsDocument Statistics." +msgstr "" +"Oikeinkirjoituksen tarkistus geditissä vaatii oikoluku-lisäosan " +"käyttöönottoa. Lisäosa voidaan ottaa käyttöön valitsemalla " +"Muokkaa AsetuksetLisäosatOikoluku ." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "Using Document Statistics" +msgstr "Asiakirjan tilastot -liitännäinen" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "Run scripts on your current files, and interact with other applications" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +#, fuzzy +#| msgid "External Tools Plugin" +msgid "External tools" +msgstr "Ulkoiset työkalut -liitännäinen" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +#, fuzzy +#| msgid "External Tools Plugin" +msgid "Configure the external tools plugin" +msgstr "Ulkoiset työkalut -liitännäinen" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:17 +#, fuzzy +#| msgid "Use the specified command to print the file." +msgid "Use the side pane to browse and open files" +msgstr "Käytä määritettyä komentoa tiedoston tulostukseen." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:20 +#, fuzzy +#| msgid "File Browser Plugin" +msgid "File browser pane" +msgstr "Tiedostoselain -liitännäinen" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:22 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side pane, giving you easy access to your frequently-" +"used files." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:27 +#, fuzzy +#| msgid "" +#| "Launch gconf-editor and select appsgedit-2preferencesuirecents." +msgid "" +"You can enable the Side Pane by selecting geditPreferences " +"PluginsFile Browser Pane." +msgstr "" +"Käynnistä gconf-editor ja valitse appsgedit-2preferencesuirecents." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:33 +#, fuzzy +#| msgid "" +#| "To view the File Browser, choose ViewSide Pane and then click " +#| "on the tab showing the File Browser icon at the bottom of the side pane." +msgid "" +"To activate and use the side pane, select ViewSide pane (or just press F9), and then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" +"Näyttääksesi tiedostoselaimen, valitse NäytäSivupaneeli ja napsauta " +"sitten välilehteä, joka näyttää tiedostoselainkuvakkeen sivupaneelin " +"alaosassa." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:17 +msgid "Insert the current date/time at the cursor position" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:20 +#, fuzzy +#| msgid "Insert Date/Time Plugin" +msgid "Insert date/time" +msgstr "Päiväys/aika -liitännäinen" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:22 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select gedit PreferencesPlugins Insert Date/" +"Time. To use the plugin, press EditInsert Date and Time." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:29 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"geditPreferences PluginsInsert Date/TimeConfigure." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins [Name " +"of Plugin] to enable the plugin." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:45 +#, fuzzy +#| msgid "Click Open." +msgid "Click Close." +msgstr "Napsauta Avaa." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:48 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:52 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:59 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +#, fuzzy +#| msgid "Vim Modelines" +msgid "Modelines" +msgstr "Vim-tilarivit" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +#, fuzzy +#| msgid "" +#| "Launch gconf-editor and select appsgedit-2preferencesuirecents." +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Käynnistä gconf-editor ja valitse appsgedit-2preferencesuirecents." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +#, fuzzy +#| msgid "General Tabbed Section" +msgid "General Modeline Options" +msgstr "Yleiset-välilehtiosio" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +#, fuzzy +#| msgid "" +#| "The following plugins come built-in with gedit:" +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Seuraavat liitännäiset ovat sisäänrakennettuina gedit:ssä:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Sarkaimen leveys" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Sisennyksen leveys" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +#, fuzzy +#| msgid "Insert spaces instead of tabs" +msgid "Inserting spaces instead of tabs" +msgstr "Välilyöntien syöttö sarkaimien sijaan" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Tekstin rivitys" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Oikean kehyksen leveys" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "Tilarivien asettamat asetukset ohittavat asetusdialogin asetukset." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs-tilarivit" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +#, fuzzy +#| msgid "" +#| "The first two lines of a document are scanned for Emacs modelines." +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Ensimmäisiltä kahdelta riviltä etsitään Emacs-" +"tilarivejä." + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +#, fuzzy +#| msgid "Tab width" +msgid "Tab-width" +msgstr "Sarkaimen leveys" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs " +"Manual." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate-tilarivit" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +#, fuzzy +#| msgid "" +#| "The first and last ten lines a document are scanned for " +#| "Kate modelines." +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Ensimmäisiltä ja viimeisiltä kymmeneltä riviltä etsitään Kate-tilarivejä." + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +#, fuzzy +#| msgid "Tab width" +msgid "tab-width" +msgstr "Sarkaimen leveys" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +#, fuzzy +#| msgid "Indent width" +msgid "indent-width" +msgstr "Sisennyksen leveys" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim-tilarivit" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +#, fuzzy +#| msgid "" +#| "The first and last three lines a document are scanned for " +#| "Vim modelines." +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Ensimmäisiltä ja viimeisiltä kolmelta riviltä etsitään Vim-tilarivejä." + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +#, fuzzy +#| msgid "Indent width" +msgid "textwidth" +msgstr "Sisennyksen leveys" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +#, fuzzy +#| msgid "" +#| "For more information on creating plugins, see the gedit website." +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Lisätietoa liitännäisten luomisesta, katso gedit:in web-" +"sivusto." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:12 +msgid "Add an interactive Python console to the bottom pane" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:15 +#, fuzzy +#| msgid "Python Console Plugin" +msgid "Python console" +msgstr "Python-konsoli -liitännäinen" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:17 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:23 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Pane, or just press " +"ShiftF9." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:27 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:18 +msgid "Quickly open a file or set of files" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:21 +msgid "Quick open" +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:23 +#, fuzzy +#| msgid "" +#| "Using the spell-check feature in gedit requires that you first " +#| "enable the spell-check plugin. To enable the plugin, select " +#| "Edit PreferencesPluginsSpell Checker ." +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Oikeinkirjoituksen tarkistus geditissä vaatii oikoluku-lisäosan " +"käyttöönottoa. Lisäosa voidaan ottaa käyttöön valitsemalla " +"Muokkaa AsetuksetLisäosatOikoluku ." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:28 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:32 +#, fuzzy +#| msgid "" +#| "If you make a mistake while using gedit, you can undo it by " +#| "pressing CtrlZ, or by clicking " +#| "EditUndo. Doing so will cause " +#| "gedit to undo one set of similar actions." +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "" +"Jos teet virheen käyttäessäsi geditiä, voit kumota sen " +"näppäinyhdistelmällä CtrlZ tai " +"valitsemalla MuokkaaKumoa. Kumoaminen " +"kumoaa kerralla sarjan samanlaisia toimintoja." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:35 +msgid "The Quick Open file dialog will appear." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +#, fuzzy +#| msgid "Enter the URI of the file that you want to open." +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Syötä avattavan tiedoston URI-osoite." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:38 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:40 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:46 +msgid "Quick Open will look for files in:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:49 +#, fuzzy +#| msgid "Print the current document" +msgid "The directory of the currently opened document" +msgstr "Tulosta nykyinen asiakirja" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:53 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:55 +msgid "Directories which you have bookmarked in Files" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:57 +msgid "Your Desktop directory" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Home directory" +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:62 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" + +#. (itstool) path: media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:17 +#: C/gedit-printing-order.page:14 C/gedit-printing.page:13 +#: C/gedit-printing-select.page:13 C/gedit-quickstart.page:15 +#: C/gedit-replace.page:19 C/gedit-save-file.page:15 C/gedit-search.page:18 +#: C/gedit-shortcut-keys.page:28 C/gedit-spellcheck.page:19 +#: C/gedit-syntax-highlighting.page:13 C/gedit-tabs-moving.page:20 +#: C/gedit-tabs.page:21 C/gedit-undo-recent-action.page:19 +#: C/gedit-view-open-files-in-sidepane.page:18 C/index.page:17 +msgid "Sindhu S" +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +#, fuzzy +#| msgid "Snippet text" +msgid "Snippets" +msgstr "Leiketeksti" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +#, fuzzy +#| msgid "Snippets Plugin" +msgid "Enable Snippets Plugin" +msgstr "Tekstileikkeet-liitännäinen" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:44 +#: C/gedit-spellcheck.page:36 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Select gedit Preferences Plugins." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +#, fuzzy +#| msgid "Snippet text" +msgid "Browse Snippets" +msgstr "Leiketeksti" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +#, fuzzy +#| msgid "Adding Snippets" +msgid "Using Snippets" +msgstr "Tekstileikkeiden lisääminen valikoimaan." + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +#, fuzzy +#| msgid "Number of lines in the current document." +msgid "To insert a snippet into your current document:" +msgstr "Rivien määrän asiakirjassa." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-" +"8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +#, fuzzy +#| msgid "Adding Snippets" +msgid "Adding Snippets" +msgstr "Tekstileikkeiden lisääminen valikoimaan." + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:21 +msgid "Sort lines of text into alphabetical order" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:24 +msgid "Sort" +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:26 +#, fuzzy +#| msgid "" +#| "The Sort plugin arranges selected lines of " +#| "text into alphabetical order." +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Lajittelu-liitännäinen järjestää valitut " +"tekstirivit aakkosjärjestykseen." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:30 +#, fuzzy +#| msgid "" +#| "You cannot undo the Sort operation, so you should save the file before " +#| "performing the sort. To revert to the saved version of the file after the " +#| "sort operation, choose FileRevert." +msgid "" +"You cannot use the Undo feature to correct a Sort " +"operation, so we recommend that you save the file immediately before " +"performing the sort. If you make a mistake with the sort, you can revert to " +"the previously-saved version of the file by selecting FileRevert." +msgstr "" +"Et voi peruuttaa lajittelutoimintoa, joten sinun tulisi tallentaa tiedosto " +"ennen lajittelu suorittamista. Palataksesi tallennettuun versioon, valitse " +"TiedostoPalauta levyltä." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:38 +#, fuzzy +#| msgid "Sort Plugin" +msgid "Enable Sort Plugin" +msgstr "Lajittelu-liitännäinen" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:40 +msgid "To enable the Sort plugin:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:49 +msgid "Select Sort to enable the plugin." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:56 +#, fuzzy +#| msgid "Sort Plugin" +msgid "Using Sort Plugin" +msgstr "Lajittelu-liitännäinen" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:58 +msgid "To use the Sort plugin:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "Drag and highlight the desired lines of text." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:65 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Select gedit Sort." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:69 +#, fuzzy +#| msgid "" +#| "The Print dialog enables you to specify the " +#| "following print options:" +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Tulosta-dialogi päästää sinut määrittämään seuraavat " +"tulostusasetukset:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:73 +#, fuzzy +#| msgid "" +#| "The Sort plugin arranges selected lines of " +#| "text into alphabetical order." +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Lajittelu-liitännäinen järjestää valitut " +"tekstirivit aakkosjärjestykseen." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:77 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:81 +msgid "Ignore case will ignore case sensitivity." +msgstr "" + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:83 +#, fuzzy +#| msgid "" +#| "To have the sort ignore the characters at the start of the lines, set the " +#| "first character that should be used for sorting in the Start at " +#| "column spin box." +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Jättääksesi huomiotta rivien ensimmäisiä kirjaimia lajiteltaessa, aseta " +"ensimmäinen kirjain, jota tulisi käyttää järjestettäessä Aloita " +"sarakkeesta: -lukurullaaan." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:91 +#, fuzzy +#| msgid "To perform the sort operation, click Sort." +msgid "To perform the sort operation, click Sort." +msgstr "" +"Suorittaaksesi lajittelutehtävän, paina Lajittele." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:10 C/gedit-printing-select.page:9 +msgid "Phil Bull" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:20 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Kopioiden tulostaminen oikeassa järjestyksessä" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:23 +msgid "Reverse" +msgstr "Käänteinen" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:25 +#, fuzzy +#| msgid "" +#| "Printers usually print the first page first, and the last page last, so " +#| "the pages end up in reverse order when you pick them up." +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Tulostimet tulostavat normaalisti ensimmäisen sivun ensimmäisenä ja " +"viimeisen viimeisenä, joten tulostuksen valmistuttua sivut ovat käänteisessä " +"järjestyksessä eli viimeinen sivu on pinon päällimmäisenä." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:31 +#, fuzzy +#| msgid "Click FilePrint" +msgid "" +"Select File Print." +msgstr "Valitse TiedostoTulosta" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:35 +#, fuzzy +#| msgid "" +#| "In the General tab of the Print window under Copies " +#| "check Collate." +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Valitse Kerää tulostusikkunan Yleiset-välilehdeltä " +"Kopioita-otsakkeen alta." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:41 +msgid "The last page will be printed first, and so on." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:45 +msgid "Collate" +msgstr "Kerää" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:47 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Jos asiakirjasta tulostetaan useampia kopioita, tulosteet ryhmitellään " +"automaattisesti sivunumeron mukaan eli ensin tulostetaan kaikki kopiot " +"ensimmäisestä sivusta, seuraavaksi kaikki kopiot toisesta sivusta ja niin " +"edelleen. Kerääminen tulostaa kaikki asiakirjan sivut peräkkäin ennen " +"seuraavan kopion tulostamista." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:52 +msgid "To Collate:" +msgstr "Tulosteiden kerääminen" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:55 +#, fuzzy +#| msgid "Click FilePrint" +msgid "" +"Click File Print." +msgstr "Valitse TiedostoTulosta" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:59 +#, fuzzy +#| msgid "" +#| "In the General tab of the Print window under Copies " +#| "check Collate." +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Valitse Kerää tulostusikkunan Yleiset-välilehdeltä " +"Kopioita-otsakkeen alta." + +#. (itstool) path: page/title +#: C/gedit-printing.page:19 +#, fuzzy +#| msgid "Printing a Document" +msgid "Printing documents" +msgstr "Asiakirjan tulostus" + +#. (itstool) path: note/p +#: C/gedit-printing.page:22 +#, fuzzy +#| msgid "" +#| "Printing with gedit requires that you have connected and " +#| "configured your printer. If you have not done this, please consult the " +#| "printing help for GNOME." +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Tulostin täytyy kiinnittää ja asentaa ennen kuin voit tulostaa geditin asiakirjoja. Jos et ole vielä tehnyt sitä, tutustu GNOME:n tulostusohjeeseen." + +#. (itstool) path: page/p +#: C/gedit-printing.page:27 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-printing.page:30 +#, fuzzy +#| msgid "Print preview" +msgid "Print Preview" +msgstr "Tulostuksen esikatselu" + +#. (itstool) path: section/p +#: C/gedit-printing.page:32 +#, fuzzy +#| msgid "" +#| "gedit allows you to both print output to a file, as well as " +#| "printing output to paper. Prior to printing your document, you can also " +#| "preview how the printed document will look by using the Print " +#| "Preview feature." +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"gedit mahdollistaa asiakirjojen tulostamisen tiedostoon ja " +"paperille. Tulostuksen esikatselu mahdollistaa tulosteen ulkoasun " +"tarkistamisen ennen tulostusta." + +#. (itstool) path: item/p +#: C/gedit-printing.page:37 +#, fuzzy +#| msgid "" +#| "Open the Replace tool by clicking SearchReplace or press CtrlH." +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Avaa korvaustyökalu valitsemalla EtsiKorvaa tai paina CtrlH." + +#. (itstool) path: section/p +#: C/gedit-printing.page:44 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-printing.page:52 +#, fuzzy +#| msgid "Printing to paper" +msgid "Printing To Paper" +msgstr "Asiakirjan tulostaminen paperille" + +#. (itstool) path: section/p +#: C/gedit-printing.page:54 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing.page:59 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Select File Print General." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing.page:64 +#, fuzzy +#| msgid "Select the desired file, and it will open in a new tab." +msgid "Select the desired printer from the list of printers available." +msgstr "Valitse haluamasi tiedosto, ja se avautuu uuteen välilehteen" + +#. (itstool) path: item/p +#: C/gedit-printing.page:67 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-printing.page:73 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-printing.page:83 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-printing.page:85 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-printing.page:91 +#, fuzzy +#| msgid "Printing to paper" +msgid "Printing To File" +msgstr "Asiakirjan tulostaminen paperille" + +#. (itstool) path: section/p +#: C/gedit-printing.page:93 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing.page:98 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Select File Print Print to File." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing.page:103 +#, fuzzy +#| msgid "Printing is enabled for the following file formats:" +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Tiedostoon tulostaminen tukee seuraavia tiedostomuotoja:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:107 +msgid "Portable Document Format (.pdf)" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing.page:110 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:113 +msgid "Scalable Vector Graphic (.svg)" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing.page:118 +#, fuzzy +#| msgid "To perform the sort operation, click Sort." +msgid "To print the document to file, click Print." +msgstr "" +"Suorittaaksesi lajittelutehtävän, paina Lajittele." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:19 +msgid "Only Printing Certain Pages" +msgstr "Valittujen sivujen tulostaminen" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:21 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:27 +#, fuzzy +#| msgid "Click FilePrint" +msgid "" +"Select File Print…." +msgstr "Valitse TiedostoTulosta" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:31 +#, fuzzy +#| msgid "" +#| "In the General tab in the Print window choose Pages " +#| "from the Range section." +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Valitse Sivut tulostusikkunan Yleiset-välilehdeltä " +"Alue-otsakkeen alta." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:35 +#, fuzzy +#| msgid "" +#| "Type the numbers of the pages you want to print in the textbox, separated " +#| "by commas. Use a dash to denote a range of pages." +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Anna haluamasi sivunumerot pilkuilla erotettuina tekstikenttään. " +"Väliviivalla voit ilmaista sivujoukon." + +#. (itstool) path: media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:27 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='883fe82b057396bce097926551bb109e'" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:21 +msgid "Get started with gedit" +msgstr "Pikaopas geditin käyttöön" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:22 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit on ominaisuusrikas GNOME-työpöytäympäristön tekstimuokkain. " +"Sitä voi käyttää yksinkertaisten muistiinpanojen ja asiakirjojen " +"muokkaamiseen, tai jopa ohjelmistokehitysympäristönä geditin " +"edistyneempien ominaisuuksien ansiosta." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:29 +#, fuzzy +#| msgid "" +#| "Once gedit launches, you can start writing right away. To save " +#| "your text, just click Save." +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"Voit aloittaa kirjoittamisen välittömästi geditin käynnistyttyä. " +"Tekstin tallentaminen onnistuu painamalla Tallenna." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:33 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Lisää tietoa geditin ominaisuuksista ja apua sen käyttämiseen " +"löytyy geditin ohjeen muista osioista." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:23 +msgid "Ekaterina Gerasimova" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-replace.page:29 +msgid "Replace text" +msgstr "Tekstin korvaaminen" + +#. (itstool) path: page/p +#: C/gedit-replace.page:31 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Tekstin muokkaaminen voi välillä olla hidasta. Ajan säästämiseksi " +"gedit sisältää Korvaustoiminnon, joka auttaa tietyn " +"tekstin korvaamisessa toisella." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:36 +msgid "Replace text in gedit" +msgstr "Tekstin korvaaminen geditissä" + +#. (itstool) path: item/p +#: C/gedit-replace.page:38 +#, fuzzy +#| msgid "" +#| "Open the Replace tool by clicking SearchReplace or press CtrlH." +msgid "" +"Open the Replace tool by clicking SearchReplace… " +"or press CtrlH." +msgstr "" +"Avaa korvaustyökalu valitsemalla EtsiKorvaa tai paina CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:43 +#, fuzzy +#| msgid "" +#| "Enter the text that you wish to replace into the 'Search for:' field." +msgid "" +"Enter the text that you wish to replace into the Search for: " +"field." +msgstr "Kirjoita korvattava teksti Hakusana-kenttään." + +#. (itstool) path: item/p +#: C/gedit-replace.page:47 +#, fuzzy +#| msgid "Enter the new, replacement text into the 'Replace with:' field." +msgid "" +"Enter the new, replacement text into the Replace with: field." +msgstr "Kirjoita uusi, korvaava teksti Korvaava merkkijono -kenttään." + +#. (itstool) path: item/p +#: C/gedit-replace.page:51 +#, fuzzy +#| msgid "" +#| "Once you have entered the original and replacement text, select your " +#| "desired replacement options:" +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Kun alkuperäinen ja korvaava teksti on annettu, valitse haluamasi " +"korvaustapa:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:56 +#, fuzzy +#| msgid "" +#| "To replace only the next matching portion of text, click " +#| "Replace." +msgid "To replace only the next match, click Replace." +msgstr "" +"Korvataksesi vain seuraavan osuman, napsauta Korvaa." + +#. (itstool) path: item/p +#: C/gedit-replace.page:60 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Korvataksesi kaikki osumat, napsauta Korvaa kaikki." + +#. (itstool) path: note/p +#: C/gedit-replace.page:68 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Ole varovainen käyttäessäsi Korvaa kaikki -toimintoa. Se " +"vaikuttaa aina koko asiakirjaan eikä se korosta korvattavia tekstinpätkiä " +"etukäteen." + +#. (itstool) path: section/title +#: C/gedit-replace.page:75 +msgid "More options" +msgstr "Lisäasetukset" + +#. (itstool) path: section/p +#: C/gedit-replace.page:77 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "" + +#. (itstool) path: item/title +#: C/gedit-replace.page:81 +msgid "Match case" +msgstr "Huomioi kirjainkoko" + +#. (itstool) path: item/p +#: C/gedit-replace.page:82 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Kirjainkoon huomiointi määrittää, onko kirjainkoolla merkitystä. " +"Jos tämä asetus on valittu, kirjainkoko vaikuttaa haun tuloksiin. Jos ei, " +"kirjainkoolla ei ole merkitystä." + +#. (itstool) path: item/title +#: C/gedit-replace.page:87 +msgid "Match entire word only" +msgstr "Etsi kokonaista sanaa" + +#. (itstool) path: item/p +#: C/gedit-replace.page:88 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Määritä, etsitäänkö kokonaisia sanoja vai myös sanojen osia. Esimerkiksi, " +"jos hakusana on \"ja\", sana \"ja\" täsmäisi hakuun, mutta sanat " +"\"kirja\" ja \"kirjain\" eivät." + +#. (itstool) path: item/title +#: C/gedit-replace.page:95 +msgid "Search backwards" +msgstr "Etsi taaksepäin" + +#. (itstool) path: item/p +#: C/gedit-replace.page:96 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Tämän valinnan ollessa valittuna, haku suoritetaan takaperin eli etsitään " +"edellistä vastaavuutta seuraavan sijasta." + +#. (itstool) path: item/title +#: C/gedit-replace.page:101 +msgid "Wrap around" +msgstr "Jatka alusta" + +#. (itstool) path: item/p +#: C/gedit-replace.page:102 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Kun Jatka alusta -asetus on valittuna ja haku- tai " +"korvaustoiminto pääsee asiakirjan loppuun, gedit jatkaa kyseistä " +"toimintoa asiakirjan alusta. Tällä voit varmistaa, että haku tai korvaus " +"suoritetaan aina asiakirjan alusta loppuun saakka." + +#. (itstool) path: section/title +#: C/gedit-replace.page:112 +msgid "Using escape sequences" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-replace.page:114 +msgid "" +"You can use escape sequences to search for line breaks and tabs." +msgstr "" + +#. (itstool) path: item/title +#: C/gedit-replace.page:119 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:120 +#, fuzzy +#| msgid "Vim Modelines" +msgid "Newline" +msgstr "Vim-tilarivit" + +#. (itstool) path: item/title +#: C/gedit-replace.page:123 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:124 +#, fuzzy +#| msgid "Tabs" +msgid "Tab" +msgstr "Välilehdet" + +#. (itstool) path: item/title +#: C/gedit-replace.page:127 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:128 +#, fuzzy +#| msgid "Specifies a carriage return." +msgid "Carriage return" +msgstr "Määrittää alkuunkelauksen." + +#. (itstool) path: section/p +#: C/gedit-replace.page:132 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-save-file.page:26 +msgid "Save a file" +msgstr "Tiedoston tallentaminen" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:28 +#, fuzzy +#| msgid "" +#| "To open a file in gedit, click the Open button, or " +#| "press CtrlO." +msgid "" +"To save a file in gedit, click on the Save " +"the current file button with the disk-drive icon on the right side of " +"the toolbar or just press CtrlS." +msgstr "" +"Tiedoston avaaminen geditissä onnistuu napsauttamalla Avaa-painiketta tai käyttämällä näppäinyhdistelmää CtrlO." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:31 +#, fuzzy +#| msgid "" +#| "If you are saving a new file, the Save File dialog will " +#| "appear, and you can select a name for the file, as well as the directory " +#| "where you would like the file to be saved." +msgid "" +"If you are saving a new file, the Save As dialog will appear, and " +"you can select a name for the file, as well as the directory where you would " +"like the file to be saved." +msgstr "" +"Jos tallennat uutta tiedostoa, Tallenna nimellä -ikkuna avautuu, " +"josta voit valita tiedoston nimen ja tallennuskansion." + +#. (itstool) path: page/title +#: C/gedit-search.page:28 +msgid "Search for text" +msgstr "Tekstin etsiminen" + +#. (itstool) path: page/p +#: C/gedit-search.page:30 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Etsintätyökalu auttaa tietyn tekstinpätkän löytämisessä tiedoston sisältä." + +#. (itstool) path: steps/title +#: C/gedit-search.page:34 +msgid "Finding text" +msgstr "Tekstin etsiminen" + +#. (itstool) path: item/p +#: C/gedit-search.page:36 +#, fuzzy +#| msgid "" +#| "Open the search window by clicking " +#| "SearchFind or pressing " +#| "CtrlF. This will move your cursor " +#| "to the start of the search window." +msgid "" +"Open the search window by clicking Search Find or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Avaa haku valitsemalla HakuEtsi tai näppäinyhdistelmällä CtrlF. Tämä siirtää kursorin hakuun." + +#. (itstool) path: item/p +#: C/gedit-search.page:43 +msgid "Type the text you wish to search for in the search window." +msgstr "Kirjoita etsittävä teksti hakuun." + +#. (itstool) path: item/p +#: C/gedit-search.page:47 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"gedit alkaa korostamaan hakusanaa vastaavia tekstinpätkiä " +"välittömästi." + +#. (itstool) path: page/p +#: C/gedit-search.page:52 +msgid "To scroll through the search results, do any of the following:" +msgstr "Hakutulosten selaaminen onnistuu seuraavin tavoin:" + +#. (itstool) path: item/p +#: C/gedit-search.page:55 +#, fuzzy +#| msgid "" +#| "Click on the up or down facing arrows next to the " +#| "search window" +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Paina ylös- tai alaspäin osoittavia nuolia " +"haussa" + +#. (itstool) path: item/p +#: C/gedit-search.page:60 +#, fuzzy +#| msgid "" +#| "Press the up arrow or down arrow keys on your " +#| "keyboard" +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "Paina näppäimistön Ylös tai Alas nuolinäppäimiä" + +#. (itstool) path: item/p +#: C/gedit-search.page:64 +#, fuzzy +#| msgid "" +#| "Press CtrlG or CtrlShiftG." +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Paina CtrlG tai CtrlVaihtoG." + +#. (itstool) path: item/p +#: C/gedit-search.page:68 +msgid "" +"Press the Ctrl and use your mouse or touchpad's scroll " +"feature to move up or down through the text." +msgstr "" +"Paina Ctrl pohjaan ja siirry tekstissä ylös- tai alaspäin hiiren " +"tai kosketusalustan vieritysominaisuudella." + +#. (itstool) path: page/p +#: C/gedit-search.page:73 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Haun sulkeminen onnistuu joko Esc- tai Enter-näppäimellä. Esc-näppäin palauttaa tekstikursorin kohtaan, " +"jossa se oli ennen haun alkua ja Enter puolestaan siirtää " +"tekstikursorin valitun hakutuloksen kohdalle." + +#. (itstool) path: list/title +#: C/gedit-search.page:79 +msgid "Search tips" +msgstr "Hakuvinkkejä" + +#. (itstool) path: item/p +#: C/gedit-search.page:81 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Jos korostat hiirelläsi tekstinpätkän ja painat CtrlF, korostettu teksti täytetään hakuun." + +#. (itstool) path: item/p +#: C/gedit-search.page:86 +#, fuzzy +#| msgid "" +#| "For advanced search options, you can click on the Magnifying Glass icon in the search window, or you can right-click on any portion of " +#| "the search window." +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Haun asetusten mukauttaminen onnistuu napsauttamalla suurennuslasia hiiren vasemmalla tai hakukenttää hiiren oikealla painikkeella." + +#. (itstool) path: item/p +#: C/gedit-search.page:92 +msgid "Select Match Case to make the search case sensitive." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-search.page:95 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-search.page:99 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-search.page:105 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click " +"SearchClear Highlight, or press " +"CtrlShiftK." +msgstr "" +"gedit korostaa haetun tekstin myös haun valmistumisen jälkeen. Korostuksen " +"poistaminen onnistuu valitsemalla EtsiÄlä korosta " +"osumia tai näppäinyhdistelmällä CtrlVaihtoK." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:16 +msgid "Paolo Borelli" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:19 +msgid "Jesse van den Kieboom" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:22 +msgid "Steve Frécinaux" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:25 +msgid "Ignacio Casal Quinteiro" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:32 C/gedit-tab-groups.page:14 +#: C/gedit-tabs-moving.page:24 C/gedit-tabs.page:25 +msgid "Radina Matic" +msgstr "" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:16 +#: C/gedit-tabs-moving.page:26 C/gedit-tabs.page:27 +msgid "2013" +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:39 +msgid "Shortcut keys" +msgstr "Pikanäppäimet" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:41 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Pikanäppäimet nopeuttavat yleisten tehtävien suorittamista. " +"Seuraavat taulukot luettelevat kaikki geditin pikanäppäimet." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:46 +msgid "Tab-related Shortcut keys" +msgstr "Pikanäppäimet välilehtien hallintaan" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:49 C/gedit-shortcut-keys.page:105 +#: C/gedit-shortcut-keys.page:151 C/gedit-shortcut-keys.page:245 +#: C/gedit-shortcut-keys.page:266 C/gedit-shortcut-keys.page:303 +#: C/gedit-shortcut-keys.page:332 +msgid "To Do This" +msgstr "Toiminto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:50 C/gedit-shortcut-keys.page:106 +#: C/gedit-shortcut-keys.page:152 C/gedit-shortcut-keys.page:246 +#: C/gedit-shortcut-keys.page:267 C/gedit-shortcut-keys.page:304 +#: C/gedit-shortcut-keys.page:333 +msgid "Press This" +msgstr "Näppäinyhdistelmä" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:55 +msgid "Switch to the next tab to the left" +msgstr "Siirry vasemmalla olevaan välilehteen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:56 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlAlt PageUp" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:60 +msgid "Switch to the next tab to the right" +msgstr "Siirry oikealla olevaan välilehteen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:61 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlAlt PageDown" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:65 +msgid "Close tab" +msgstr "Sulje välilehti" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:66 C/gedit-shortcut-keys.page:138 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "Save all tabs" +msgstr "Tallenna kaikki välilehdet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:70 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShift L" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 +msgid "Close all tabs" +msgstr "Sulje kaikki välilehdet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:75 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShiftW" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +#, fuzzy +#| msgid "Reopen a recently-used file" +msgid "Reopen the most recently closed tab" +msgstr "Äskettäin käytetyn tiedoston avaaminen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:79 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShiftT" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Jump to nth tab" +msgstr "Siirry välilehteen n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "New tab group" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:88 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Previous tab group" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:92 +#, fuzzy +#| msgid "" +#| "Press CtrlG or CtrlShiftG." +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"Paina CtrlG tai CtrlVaihtoG." + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "Next tab group" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +#, fuzzy +#| msgid "" +#| "Press CtrlG or CtrlShiftG." +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"Paina CtrlG tai CtrlVaihtoG." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:102 +msgid "Shortcut keys for working with files" +msgstr "Pikanäppäimet tiedostojen käsittelyyn" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:111 +msgid "Create a new document" +msgstr "Luo uusi asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:112 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:115 +msgid "Open a document" +msgstr "Avaa asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:116 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Save the current document" +msgstr "Tallenna nykyinen asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Save the current document with a new filename" +msgstr "Tallenna nykyinen asiakirja uudella nimellä" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShift S" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "Print the current document" +msgstr "Tulosta nykyinen asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:129 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "Print preview" +msgstr "Tulostuksen esikatselu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:133 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShift P" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:137 +msgid "Close the current document" +msgstr "Sulje nykyinen asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:141 +msgid "Quit gedit" +msgstr "Sulje gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:142 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:148 +msgid "Shortcut keys for editing files" +msgstr "Pikanäppäimet asiakirjojen muokkaamiseen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:157 +#, fuzzy +#| msgid "Delete the current line" +msgid "Move to the beginning of the current line" +msgstr "Poista nykyinen rivi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:158 +msgid "Home" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:161 +#, fuzzy +#| msgid "Delete the current line" +msgid "Move to the end of the current line" +msgstr "Poista nykyinen rivi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:162 +msgid "End" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:165 +#, fuzzy +#| msgid "Save the current document" +msgid "Move to the beginning of the document" +msgstr "Tallenna nykyinen asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:166 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlHome" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:169 +#, fuzzy +#| msgid "Save the current document" +msgid "Move to the end of the document" +msgstr "Tallenna nykyinen asiakirja" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:170 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlEnd" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +#, fuzzy +#| msgid "Move the selected line up one line" +msgid "Move the selected word right one word" +msgstr "Siirrä valittu rivi yhden rivin verran ylöspäin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:174 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "AltRight Arrow" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +#, fuzzy +#| msgid "Move the selected line up one line" +msgid "Move the selected word left one word" +msgstr "Siirrä valittu rivi yhden rivin verran ylöspäin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:178 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "AltLeft Arrow" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Undo the last action" +msgstr "Kumoa viimeisin toiminto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:182 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +msgid "Redo the last undone action" +msgstr "Palauta viimeisin kumottu toiminto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShift Z" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Leikkaa valittu teksti tai alue ja siirrä se leikepöydälle" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:192 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:195 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Kopioi valittu teksti tai alue leikepöydälle" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:196 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:199 +msgid "Paste the contents of the clipboard" +msgstr "Liitä leikepöydän sisältö" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:200 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:203 +msgid "Select all text in the file" +msgstr "Valitse kaikki" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:204 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:207 +msgid "Delete the current line" +msgstr "Poista nykyinen rivi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:208 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "Move the selected line up one line" +msgstr "Siirrä valittu rivi yhden rivin verran ylöspäin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:212 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "AltUp Arrow" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Move the selected line down one line" +msgstr "Siirrä valittu rivi yhden rivin verran alaspäin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:216 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "AltDown Arrow" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +#, fuzzy +#| msgid "Adding tabs" +msgid "Add a tab stop" +msgstr "Välilehtien avaaminen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:220 +msgid "Tab" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +#, fuzzy +#| msgid "Removing tabs" +msgid "Remove a tab stop" +msgstr "Välilehtien sulkeminen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:224 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "ShiftTab" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +#, fuzzy +#| msgid "Move the selected line up one line" +msgid "Convert the selected text to upper case" +msgstr "Siirrä valittu rivi yhden rivin verran ylöspäin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:228 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +#, fuzzy +#| msgid "Move the selected line down one line" +msgid "Convert the selected text to lower case" +msgstr "Siirrä valittu rivi yhden rivin verran alaspäin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:232 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "Toggle case of the selected text" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:236 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "Ctrl~" +msgstr "" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:242 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Pikanäppäimet paneelien näyttämiseen ja piilottamiseen" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:251 +msgid "Show / hide the side pane" +msgstr "Näytä / piilota sivupaneeli" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:252 +msgid "F9" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:255 +msgid "Show / hide the bottom pane." +msgstr "Näytä / piilota alapaneeli" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:256 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlF9" +msgstr "CtrlF9" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:263 +msgid "Shortcut keys for searching" +msgstr "Pikanäppäimet hakuun" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:272 +msgid "Find a string" +msgstr "Etsi merkkijonoa" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:273 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:276 +msgid "Find the next instance of the string" +msgstr "Etsi seuraava osuma merkkijonolle" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:277 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:280 +msgid "Find the previous instance of the string" +msgstr "Etsi edellinen osuma merkkijonolle" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:281 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShiftG" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:284 +msgid "Search and Replace" +msgstr "Etsi ja korvaa" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:285 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:288 +msgid "Clear highlight" +msgstr "Poista korostukset" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:289 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShift K" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:293 +msgid "Goto line" +msgstr "Siirry riville" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:294 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlI" +msgstr "" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:300 +msgid "Shortcut keys for tools" +msgstr "Pikanäppäimet työkaluille" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:309 +msgid "Check spelling" +msgstr "Tarkista oikeinkirjoitus" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:310 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "ShiftF7" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:313 +msgid "Remove trailing spaces (with plugin)" +msgstr "Poista välilyönnit rivin lopusta (liitännäisellä)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:314 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:317 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Suorittaa komennon \"make\" nykyisessä hakemistossa (liitännäisellä)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:318 +msgid "F8" +msgstr "" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:321 +msgid "Directory listing (with plugin)" +msgstr "Hakemistolistaus (liitännäisellä)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:322 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "CtrlShift D" +msgstr "" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:329 +msgid "Shortcut keys for user help" +msgstr "Pikanäppäimet ohjeelle" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:338 +msgid "Open the gedit user guide" +msgstr "Avaa geditin ohje" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:339 +msgid "F1" +msgstr "" + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:15 +msgid "Baptiste Mille-Mathias" +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:25 +msgid "Enable and use spell-checking feature" +msgstr "" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Asiakirjan oikoluku" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +#, fuzzy +#| msgid "" +#| "To check the spelling manually, choose ToolsCheck Spelling." +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Tarkistaaksesi oikeinkirjoituksen itse, valitse " +"TyökalutTarkista " +"oikeinkirjoitus." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. Enchant can " +"use several different dictionaries to check your spelling. Two such " +"dictionary back-ends are Hunspell and Aspell." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:19 +msgid "Turn on syntax highlighting" +msgstr "Syntaksivärityksen käyttäminen" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:22 +msgid "Syntax Highlighting" +msgstr "Syntaksiväritys" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:23 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit tarjoaa syntaksiväritykset laajalle valikoimalle merkki-, " +"ohjelmointi- ja tieteiskieliä. Jos gedit tunnistaa tiedoston " +"muodon , syntaksiväritys suoritetaan automaattisesti." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:28 +#, fuzzy +#| msgid "" +#| "If your syntax or language is not highlighted upon startup, you can " +#| "select the appropriate syntax or language by clicking ViewHighlight Mode, and then choosing the desired " +#| "syntax. Alternately, you can select the syntax name from a list at the " +#| "bottom of the gedit window." +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and then choosing the desired syntax. Alternately, you can select " +"the syntax name from a list at the bottom of the gedit window." +msgstr "" +"Jos syntaksia tai kieltä ei korosteta tiedoston avaamisen yhteydessä, voit " +"valita oikean syntaksin tai kielen NäytäVäritystila -valikosta. Vaihtoehtoisesti voit valita käytettävän " +"värityksen geditin ikkunan alareunasta löytyvästä luettelosta." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +#, fuzzy +#| msgid "Move a tab to another gedit window" +msgid "Open a new tab group in the gedit window" +msgstr "Välilehden siirtäminen toiseen geditin ikkunaan" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +#, fuzzy +#| msgid "" +#| "Choose FileOpen to display the " +#| "Open Files dialog." +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Valitse TiedostoAvaa ja Avaa " +"tiedostoja -ikkuna avautuu." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:41 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:46 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:51 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:55 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:61 +msgid "Move through tab groups" +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:63 +msgid "To move forward (on the next) tab group:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:67 +#, fuzzy +#| msgid "" +#| "Choose FileOpen to display the " +#| "Open Files dialog." +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Valitse TiedostoAvaa ja Avaa " +"tiedostoja -ikkuna avautuu." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:71 +#| msgid "" +#| "Select EditPreferencesFont & " +#| "Colors." +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:76 +msgid "To move backward (on the previous) tab group:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:80 +#, fuzzy +#| msgid "FilePrint" +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "TiedostoTulosta" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:84 +#, fuzzy +#| msgid "" +#| "Press CtrlG or CtrlShiftG." +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Paina CtrlG tai CtrlVaihtoG." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:92 +#, fuzzy +#| msgid "Move a tab to another gedit window" +msgid "Move a tab to another tab group" +msgstr "Välilehden siirtäminen toiseen geditin ikkunaan" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:94 +#, fuzzy +#| msgid "If you want to move a tab from one window to another:" +msgid "If you want to move a tab from one tab group to another:" +msgstr "Jos haluat siirtää välilehden ikkunasta toiseen, toimi seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:98 C/gedit-tabs-moving.page:44 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:91 +msgid "Click and hold the mouse button on the tab." +msgstr "Napsauta ja pidä hiiren painike pohjassa välilehden päällä." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:101 +#, fuzzy +#| msgid "Drag the tab to the new window" +msgid "Drag the tab to another tab group pane." +msgstr "Raahaa välilehti uuteen ikkunaan" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:104 +#, fuzzy +#| msgid "Place it beside other tabs in the new window" +msgid "Place it beside other tabs in the tab group." +msgstr "Aseta se ikkunan muiden välilehtien rinnalle" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:107 C/gedit-tabs-moving.page:50 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:100 +msgid "Release the mouse button." +msgstr "Vapauta hiiren painike." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:111 +#, fuzzy +#| msgid "" +#| "See for " +#| "shortcuts to make it easier to manage your tabs." +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Helpottaaksesi välilehtien hallintaa, tutustu välilehtienhallinnan pikanäppäimiin." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:31 +msgid "Move and re-order tabs" +msgstr "Välilehtien siirtäminen ja järjesteleminen" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:32 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"geditin välilehtiä voidaan siirtää työskentelyn helpottamiseksi. " +"Välilehtiä voi järjestellä ikkunakohtaisesti, siirtää geditin " +"ikkunan ulkopuolelle (luo uuden gedit-ikkunan) ja siirtää " +"ikkunasta toiseen." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:38 +msgid "Change the order of tabs in the gedit window" +msgstr "Välilehtien uudelleenjärjestäminen" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:40 +msgid "To change the ordering of tabs in a window:" +msgstr "Välilehtien järjestyksen muuttaminen onnistuu seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:47 +#, fuzzy +#| msgid "Move the tab to the desired position among the other tabs" +msgid "Move the tab to the desired position among the other tab." +msgstr "Siirrä välilehti haluamaasi kohtaan" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:54 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Välilehti asetetaan mahdollisimman lähelle sitä kohtaa, jossa hiiren painike " +"vapautetaan, muiden välilehtien joukkoon." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Uuden ikkunan avaaminen välilehteä siirtämällä" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Raahaa välilehti gedit-ikkunan ulkopuolelle." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:75 +msgid "" +"or, while the tab to be moved is open, choose Documents Move to New Window" +msgstr "" +"tai kun välilehti on avoinna, valitse Asiakirjat Siirrä uuteen ikkunaan" + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:79 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Jos geditin ikkuna on suurennettu, raahaa välilehti " +"valikkopalkkiin näytön yläreunassa siirtääksesi välilehden uuteen ikkunaan." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:85 +msgid "Move a tab to another gedit window" +msgstr "Välilehden siirtäminen toiseen geditin ikkunaan" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:87 +msgid "If you want to move a tab from one window to another:" +msgstr "Jos haluat siirtää välilehden ikkunasta toiseen, toimi seuraavasti:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +#, fuzzy +#| msgid "Drag the tab to the new window" +msgid "Drag the tab to the new window." +msgstr "Raahaa välilehti uuteen ikkunaan" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:97 +#, fuzzy +#| msgid "Place it beside other tabs in the new window" +msgid "Place it beside other tabs in the new window." +msgstr "Aseta se ikkunan muiden välilehtien rinnalle" + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:106 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:113 +#, fuzzy +#| msgid "" +#| "See for " +#| "shortcuts to make it easier to manage your tabs." +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Helpottaaksesi välilehtien hallintaa, tutustu välilehtienhallinnan pikanäppäimiin." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:37 +msgid "Add and remove tabs" +msgstr "Välilehtien avaaminen ja sulkeminen" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:38 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Välilehtien käyttö geditissä mahdollistaa useamman asiakirjan " +"muokkaamisen samassa ikkunassa. Välilehti, joka on muita välilehtiä " +"suurempi, ilmaisee sillä hetkellä avoinna olevan välilehden. Pienemmät " +"välilehdet puolestaan kuvaavat muita avattuja asiakirjoja." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:44 +msgid "Adding tabs" +msgstr "Välilehtien avaaminen" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:45 +#, fuzzy +#| msgid "" +#| "To add a new tab, create a new file with CtrlN. The tab will be added to the right side of any other tabs." +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Uuden välilehden avaaminen onnistuu pikanäppäimellä CtrlN. Välilehti lisätään avoinna olevien välilehtien " +"oikealle puolelle." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Välilehtien sulkeminen" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +#, fuzzy +#| msgid "" +#| "To remove a tab, click the X on the tab's " +#| "right side. To remove all open tabs, press CtrlShiftW" +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Välilehden voi sulkea painamalla X välilehden " +"oikeassa reunassa. Kaikkien avoimien välilehtien sulkeminen puolestaan " +"onnistuu pikanäppäimellä CtrlVaihtoW" + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:30 +msgid "Undo a recent action" +msgstr "Toiminnon kumoaminen" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:32 +#, fuzzy +#| msgid "" +#| "To open a file in gedit, click the Open button, or " +#| "press CtrlO." +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Tiedoston avaaminen geditissä onnistuu napsauttamalla Avaa-painiketta tai käyttämällä näppäinyhdistelmää CtrlO." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:36 +#, fuzzy +#| msgid "You cannot undo a change after you have saved it." +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "Muutosten kumoaminen ei onnistu asiakirjan tallentamisen jälkeen." + +#. (itstool) path: page/title +#: C/gedit-view-open-files-in-sidepane.page:24 +msgid "View a list of files in the side pane" +msgstr "Asiakirjalistan näyttäminen sivupaneelissa" + +#. (itstool) path: page/p +#: C/gedit-view-open-files-in-sidepane.page:26 +msgid "" +"Keeping track of a large number of files using tabs can be difficult. One " +"way of managing large numbers of files is viewing them in a side pane. Side " +"panes allow you to view more files at a time than is possible using tabs " +"alone." +msgstr "" +"Useiden kymmenien asiakirjojen hallinta välilehtien avulla saattaa olla " +"hankalaa. Eräs tapa suuren asiakirjamäärän hallintaan on niiden listaaminen " +"sivupaneeliin, johon mahtuu kerralla esille suurempi määrä asiakirjoja " +"välilehtipalkkiin verrattuna." + +#. (itstool) path: page/p +#: C/gedit-view-open-files-in-sidepane.page:31 +#, fuzzy +#| msgid "" +#| "To view a list of open files in a side pane, click ViewSide Pane. A pane will appear to the left of the " +#| "workspace with a listing of all currently open files. Clicking a file in " +#| "the side pane will display that file in the workspace." +msgid "" +"To view a list of open files in a side pane, click View Side Pane. " +"A pane will appear to the left of the workspace with a listing of all " +"currently open files. Clicking a file in the side pane will display that " +"file in the workspace." +msgstr "" +"Sivupaneelin asiakirjalistauksen saa avattua valitsemalla " +"NäytäSivupaneeli. Työalueen " +"vasemmalle puolelle ilmestyy paneeli, joka listaa kaikki sillä hetkellä " +"avoinna olevat asiakirjat. Asiakirjan valitseminen sivupaneelissa avaa sen " +"työtilaan." + +#. (itstool) path: media/span +#: C/gedit-view-open-files-in-sidepane.page:39 +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "documents icon" +msgstr "Asiakirjan tilastot -liitännäinen" + +#. (itstool) path: page/p +#: C/gedit-view-open-files-in-sidepane.page:37 +#, fuzzy +#| msgid "" +#| "The side pane also contains a File Browser view. If the pane " +#| "displays a file directory instead of currently open files, click documents icon at the bottom of the pane to switch to the " +#| "Documents view." +msgid "" +"The side pane also contains a File Browser view. If the pane " +"displays a file directory instead of currently open files, click <_:media-1/" +"> at the bottom of the pane to switch to the Documents view." +msgstr "" +"Sivupaneeli sisältää myös tiedostoselaimen. Jos sivupaneelissa on " +"avoinna kansio asiakirjalistan sijaan, napsauta asiakirjakuvaketta paneelin alareunassa siirtyäksesi Asiakirjanäkymään." + +#. (itstool) path: note/p +#: C/gedit-view-open-files-in-sidepane.page:44 +msgid "" +"The side pane only displays files that are open in the current window. When " +"multiple windows are open, only the files in the current window will be " +"displayed in the side pane." +msgstr "" +"Sivupaneeli on ikkunakohtainen. Jos useampi ikkuna on avoinna " +"samanaikaisesti, vain nykyisen ikkunan asiakirjat näytetään sivupaneelissa." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit Tekstimuokkain" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit Tekstimuokkain" + +#. (itstool) path: page/title +#: C/index.page:25 +#, fuzzy +#| msgctxt "link" +#| msgid "gedit Text Editor" +msgid "<_:media-1/> gedit Text Editor" +msgstr "gedit Tekstimuokkain" + +#. (itstool) path: page/p +#: C/index.page:29 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Tervetuloa gedit-ohjeen pariin. Pikainen katsaus geditin perusominaisuuksiin sekä hyödyllisiin pikanäppäimiin löytyy geditin pikaoppaasta ja pikanäppäinlistasta." + +#. (itstool) path: page/p +#: C/index.page:35 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Ohjeen muut aiheet ovat ryhmitelty alla oleviin osioihin. Nautinnollisia " +"hetkiä geditin parissa!" + +#. (itstool) path: section/title +#: C/index.page:39 +msgid "Working With Files" +msgstr "Tiedostojen hallinta" + +#. (itstool) path: section/title +#: C/index.page:44 +msgid "Configure gedit" +msgstr "geditin mukauttaminen" + +#. (itstool) path: section/title +#: C/index.page:48 +msgid "gedit Plugins" +msgstr "geditin lisäosat" + +#. (itstool) path: section/title +#: C/index.page:52 +msgid "Printing with gedit" +msgstr "Tiedostojen tulostaminen" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "http://creativecommons.org/licenses/by-sa/3.0/" +msgstr "" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "" +"This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 " +"Unported License. To view a copy of this license, visit <_:link-1/> or send " +"a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, " +"California, 94041, USA." +msgstr "" diff --git a/help/fr/figures/gedit-html-snippet.png b/help/fr/figures/gedit-html-snippet.png new file mode 100644 index 0000000..7595d54 Binary files /dev/null and b/help/fr/figures/gedit-html-snippet.png differ diff --git a/help/fr/figures/gedit3-screenshot.png b/help/fr/figures/gedit3-screenshot.png new file mode 100644 index 0000000..af18bf9 Binary files /dev/null and b/help/fr/figures/gedit3-screenshot.png differ diff --git a/help/fr/fr.po b/help/fr/fr.po new file mode 100644 index 0000000..c113fbb --- /dev/null +++ b/help/fr/fr.po @@ -0,0 +1,4288 @@ +# French translation of gedit documentation. +# Copyright (C) 2006-2012 Free Software Foundation, Inc. +# This file is distributed under the same license as the gedit documentation +# package. +# +# +# +# Vincent Untz , 2006. +# Jonathan Ernst , 2006. +# Philippe Lefevre , 2006. +# Christophe Bliard , 2006. +# Claude Paroz , 2007-2011. +# Bruno Brouard , 2011, 2012. +# Luc Pionchon , 2011. +# Alain Lojewski , 2011-2015. +# Alexandre Franke , 2013. +# Julien Hardelin , 2013. +# Guillaume Bernard , 2018-2020. +# Charles Monzat , 2018-2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit fr doc\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-10-13 16:32+0000\n" +"PO-Revision-Date: 2020-10-21 22:38+0200\n" +"Last-Translator: Charles Monzat \n" +"Language-Team: GNOME French Team \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Gtranslator 3.36.0\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Vincent Untz , 2006.\n" +"Jonathan Ernst , 2006.\n" +"Philippe Lefevre , 2006.\n" +"Christophe Bliard , 2006.\n" +"Claude Paroz , 2007-2011.\n" +"Bruno Brouard , 2011.\n" +"Luc Pionchon , 2011.\n" +"Alain Lojewski , 2011-2014.\n" +"Alexandre Franke , 2013.\n" +"Julien Hardelin , 2013.\n" +"Guillaume Bernard , 2018\n" +"Charles Monzat , 2020" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Modifier le texte et les couleurs d’arrière-plan dans gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Modification du jeu de couleurs" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit inclut plusieurs jeux de couleurs différents pour vous " +"permettre de modifier l’apparence de la fenêtre principale du texte." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Pour changer de jeu de couleurs :" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Cliquez sur le bouton de menu situé dans le coin supérieur droit de la " +"fenêtre, puis choisissez PréférencesPolice et couleurs." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Sélectionnez le jeu de couleurs désiré." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Le nouveau jeu de couleurs est pris en compte immédiatement." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Utilisation d’un jeu de couleurs personnalisé" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Vous pouvez aussi utiliser des jeux de couleurs créés par d’autres ou créer " +"et utiliser votre propre jeu de couleurs." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Les instructions sur la façon d’installer des jeux de couleurs " +"personnalisés, ainsi que des exemples de jeux de couleurs téléchargeables et " +"utilisables sont disponibles sur le wiki de gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Utiliser une police personnalisée pour le texte de gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Modification de la police par défaut" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit utilise par défaut la police système à chasse fixe, mais " +"vous pouvez modifier la police par défaut de gedit pour l’adapter " +"à votre goût." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Pour modifier la police par défaut dans gedit :" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Choisissez gedit PréférencesPolice et couleurs." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Décochez la case à côté de la phrase « Utiliser la police système à chasse " +"fixe »." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Cliquez sur le nom de la police actuelle. gedit ouvre alors une " +"fenêtre de sélection de police, vous permettant de voir les polices " +"disponibles et de choisir celle que vous préférez." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Après avoir sélectionné la police souhaitée, utilisez le curseur " +"sous la liste des polices pour définir la taille de police par défaut." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Cliquez sur Sélectionner puis sur Fermer." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Quitter le fichier actuellement utilisé." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Fermeture d’un fichier" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Pour fermer un fichier dans gedit, cliquez sur le bouton × qui apparaît sur le côté droit de l’onglet du " +"fichier, ou appuyez sur CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"N’importe laquelle de ces actions ferme un fichier dans gedit. Si " +"votre fichier contient des modifications qui n’ont pas été enregistrées, " +"gedit vous demande si vous souhaitez enregistrer ces " +"modifications avant de fermer le fichier." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Ouvrir un nouveau fichier pour le modifier." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Création d’un nouveau fichier" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"La façon la plus simple pour créer un nouveau fichier dans gedit " +"est de cliquer sur le bouton Créer un nouveau document situé sur " +"le côté gauche de la barre d’en-tête, ou d’appuyer sur CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"N’importe laquelle de ces actions crée un nouveau fichier dans la fenêtre " +"gedit. Si vous avez d’autres fichiers ouverts dans gedit, le nouveau fichier que vous avez créé apparaît dans un nouvel onglet à " +"droite de ces fichiers." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Utiliser les privilèges administrateur pour modifier un fichier." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Modification d’un fichier en tant qu’utilisateur root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Modifier des fichiers en tant qu’utilisateur root est potentiellement " +"dangereux et peut détériorer sévèrement votre système. Faites bien attention " +"lorsque vous modifiez des fichiers en tant qu’utilisateur root." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Pour modifier des fichiers en tant qu’utilisateur root, démarrez gedit à partir du terminal en saisissant :" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"En utilisant la commande sudo, vous devez saisir votre mot de " +"passe correctement avant que gedit ne s’ouvre." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Comme alternative à la commande sudo, vous pouvez obtenir les " +"privilèges administrateur en saisissant :" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "Lancez ensuite gedit avec la commande gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Une fois que vous avez ouvert gedit avec les privilèges " +"administrateur, gedit conserve ces privilèges jusqu’à sa " +"fermeture." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Apprendre les bases du maniement des fichiers avec gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "" +"Opérations de base sur les fichiers : ouverture, fermeture et enregistrement" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Si vous ne connaissez pas bien gedit, ces pages vous aideront à " +"créer, enregistrer, ouvrir et fermer des fichiers." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Configurer gedit pour utiliser le mode plein écran." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Utilisation du mode plein écran" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Lorsque vous travaillez avec un grand document, il peut être utile " +"d’utiliser le mode plein écran de gedit. L’utilisation du mode " +"plein écran masque la barre des menus, la barre des onglets et la barre d’outils, ce qui permet d’afficher une plus " +"grande partie de texte et de mieux vous concentrer sur vos travaux." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Basculement en mode plein écran" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Pour passer en mode plein écran, appuyez sur F11. Les barres des " +"menus, des onglets et d’outils de gedit disparaissent et seul le " +"texte du fichier actuel s’affiche." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Si vous avez besoin de réaliser une action à partir du menu gedit " +"alors que vous travaillez en mode plein écran, déplacez le pointeur de la " +"souris en haut de l’écran. La barre de menus de gedit réapparaît " +"et vous pouvez sélectionner l’action souhaitée." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Pour basculer entre les onglets ouverts en mode plein écran, appuyez soit " +"sur CtrlAltPage haut ou " +"CtrlAltPage bas." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Sortie du mode plein écran" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Pour quitter le mode plein écran et retrouver la fenêtre standard de " +"gedit, appuyez sur F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Vous pouvez aussi déplacer le curseur de la souris en haut de l’écran et " +"attendre que la barre des menus apparaisse. Sélectionnez ensuite " +"le bouton Quitter le mode plein écran." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Utiliser le panneau latéral de gedit comme explorateur de fichiers." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Affichage et ouverture de fichiers à partir du panneau latéral" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"La façon la plus courante de basculer entre les fichiers dans gedit est d’utiliser les onglets en haut de la fenêtre gedit. Dans " +"certains cas néanmoins, particulièrement lorsque vous travaillez avec un " +"grand nombre de fichiers ouverts, il est possible que vous trouviez plus " +"facile d’utiliser le panneau latéral." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Pour activer le panneau latéral, choisissez Affichage " +"Panneau latéral ou appuyez simplement sur la touche " +"F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Vous pouvez afficher ou masquer le panneau latéral en appuyant sur F9 quand vous voulez." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Ouverture de fichiers à partir du panneau latéral" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Pour ouvrir des fichiers à partir du panneau latéral, commencez par ouvrir " +"le panneau latéral en choisissant AffichagePanneau " +"latéral (ou appuyez sur F9), puis cliquez sur " +"Navigateur de fichiers dans le menu déroulant en haut du panneau." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Cela active le mode explorateur de fichiers du panneau latéral. " +"Vous pouvez maintenant utiliser les boutons de navigation en haut du panneau " +"pour localiser et ouvrir les fichiers que vous voulez." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "" +"Utilisation du panneau latéral pour basculer entre les fichiers ouverts" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Une fois que vous avez ouvert plusieurs fichiers, vous pouvez utiliser le " +"panneau latéral pour basculer entre les fichiers ouverts. Pour activer la " +"partie explorateur de fichiers du panneau latéral, cliquez sur l’icône " +"Documents dans le menu déroulant en haut du panneau." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Un clic sur n’importe quel nom de fichier dans le panneau latéral ouvre ce " +"fichier pour l’édition." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Ouvrir les fichiers pour y travailler." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Ouverture d’un fichier ou d’un ensemble de fichiers" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Pour ouvrir un fichier dans gedit, cliquez sur le bouton " +"Ouvrir ou appuyez sur CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"La boîte de dialogue Ouvrir apparaît. Utilisez votre souris ou " +"votre clavier pour sélectionner le fichier que vous souhaitez ouvrir, puis " +"cliquez sur Ouvrir. Le fichier que vous avez sélectionné s’ouvre " +"dans un nouvel onglet." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Pour fermer la boîte de dialogue Ouvrir sans ouvrir de fichier, " +"cliquez sur Annuler." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Vous pouvez utiliser les touches Ctrl et Maj pour " +"ouvrir plus d’un fichier à la fois. Si vous maintenez enfoncée la touche " +"Ctrl pendant que vous sélectionnez plusieurs fichiers, un clic " +"sur Ouvrir ouvre chaque fichier sélectionné." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"En gardant la touche Maj enfoncée pendant que vous sélectionnez " +"plusieurs fichiers, le premier fichier, le dernier et tous les fichiers " +"intermédiaires s’ouvrent." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Accéder à des fichiers situés sur un autre ordinateur." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Ouverture d’un fichier situé sur un serveur" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Avant d’ouvrir un fichier sur un serveur à partir de gedit, vous " +"devez posséder des informations techniques sur le serveur. Par exemple, vous " +"devez connaître l’adresse IP ou l’URL du serveur et il est possible que vous " +"deviez connaître le type du serveur (par ex. HTTP, FTP, etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Certains types de serveurs imposent également des restrictions sur ce que " +"vous pouvez faire avec les fichiers enregistrés sur le serveur. Par exemple, " +"il se peut que vous puissiez ouvrir un fichier du serveur mais que vous " +"deviez enregistrer les modifications du fichier localement sur votre propre " +"ordinateur." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Après cette mise en garde, réalisez les actions suivantes pour ouvrir un " +"fichier à partir d’un serveur en utilisant gedit :" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Dans la barre d’en-tête, cliquez sur Ouvrir." + +# ATTENTION : point final et supression des points de suspension dans le bouton. +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Cliquez sur Autres emplacements." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Saisissez l’adresse IP ou l’URL du serveur approprié." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Cherchez et sélectionnez le fichier que vous souhaitez ouvrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Choisissez le codage qui convient dans la liste déroulante Codage des " +"caractères." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Cliquez sur Ouvrir." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Voici quelques exemples d’URI pouvant être utilisés : http:, ftp:, file: " +"ainsi que toutes les méthodes prises en charge par GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Les fichiers de certains types d’URI sont ouverts en lecture seule et toute " +"modification d’un tel fichier doit être enregistrée à un autre emplacement. " +"Par exemple, HTTP ne permet que l’accès en lecture aux fichiers. Les " +"fichiers ouverts par FTP sont en lecture seule car certains serveurs FTP ne " +"gèrent pas correctement l’enregistrement de fichiers distants." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Accéder aux fichiers précédemment ouverts dans gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Réouverture d’un fichier récemment ouvert" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit fournit un accès rapide aux dix fichiers les plus récemment " +"ouverts. Voici comment procéder :" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Cliquez sur le bouton flèche situé à côté du bouton Ouvrir dans " +"la barre d’en-tête." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +#| msgid "" +#| "gedit will display a menu with the ten most-recently used " +#| "files." +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "" +"gedit affiche un menu contenant les dix fichiers les plus " +"récemment ouverts." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "" +"Choisissez le fichier souhaité et il sera ouvert dans un nouvel onglet." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +#| msgid "" +#| "When hovering with the mouse a recently-used file from the menu, the full " +#| "path to the file is displayed in the status bar at the bottom of the " +#| "gedit window." +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Lorsque vous survolez avec la souris un fichier récemment utilisé dans le " +"menu, le chemin complet du fichier est affiché dans la barre d’état en bas " +"de la fenêtre de gedit." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Utiliser des greffons pour personnaliser gedit à votre convenance." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configuration et utilisation des greffons gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Vous pouvez faire plus de choses avec gedit en utilisant des " +"greffons. Plusieurs greffons sont installés par défaut mais un grand nombre " +"d’autres greffons sont disponibles à part." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Beaucoup de distributions Linux regroupent dans un paquet appelé gedit-" +"plugins un certain nombre de greffons disponibles. Installez le paquet " +"gedit-plugins pour rendre ces greffons supplémentaires " +"disponibles pour gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Installer « gedit-plugins »" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Greffons gedit par défaut" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Greffons gedit supplémentaires" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Modifier la casse du texte sélectionné." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Modification de la casse" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Ce greffon vous aide à modifier la casse du morceau de texte que vous avez " +"sélectionné. Vous pouvez l’utiliser pour mettre du texte tout en minuscules, " +"tout en majuscules, pour inverser la casse ou pour appliquer une casse de " +"titre. Pour activer ce greffon, choisissez geditPréférences GreffonsModifier la casse." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Une fois que le greffon Modifier la casse est activé, vous pouvez " +"l’utiliser de la manière suivante :" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Sélectionnez le morceau de texte que vous voulez modifier." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Choisissez geditModifier la casse" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Choisissez l’option de mise en forme de texte souhaitée." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Les mises à jour du format du texte s’effectuent immédiatement." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"L’option Inverser la casse convertit toutes les minuscules en " +"majuscules et réciproquement." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"L’option Casse de titre convertit la première lettre de chaque " +"mot en majuscules. Toutes les autres lettres sont converties en minuscules." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Si aucun texte n’est sélectionné, la fonction Modifier la casse est " +"grisée (non active). Vous devez sélectionner un morceau de texte avant " +"d’utiliser la fonction Modifier la casse." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Afficher les statistiques du document." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Statistiques du document" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Le greffon Statistiques du document affiche un grand nombre de " +"statistiques concernant votre document. Pour activer ce greffon, choisissez " +"geditPréférencesGreffonsStatistiques du document." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Utilisation des statistiques du document" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Une fois que le greffon est activé, utilisez-le en sélectionnant " +"OutilsStatistiques du document. Une " +"fenêtre affiche alors des informations statistiques sur votre document, dont " +"le nombre de mots, lignes, caractères, caractères sans les espaces et la " +"taille de votre fichier en octets." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Vous pouvez aussi utiliser Statistiques du document pour afficher " +"des informations sur une partie du document. Pour cela, sélectionnez à " +"l’aide de la souris la partie de texte que vous voulez analyser, puis " +"choisissez OutilsStatistiques du document. Gedit affiche des informations sur le document complet " +"et sur la partie de texte sélectionnée." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Lancer des scripts sur les fichiers courants et interagir avec des " +"applications externes." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Outils externes" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Le greffon Outils externes peut vous aider à simplifier des tâches " +"répétitives. Plus particulièrement, il étend gedit en vous aidant " +"à lancer des scripts sur vos fichiers de travail et en permettant à " +"gedit d’interagir avec d’autres programmes sur votre ordinateur. " +"Pour activer le greffon Outils externes, choisissez gedit PréférencesGreffons Outils externes." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configuration du greffon Outils externes" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Une fois que le greffon est activé, vous devez le configurer en fonction de " +"vos besoins. Les options de configuration sont disponibles en choisissant " +"OutilsGérer les outils externes." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Ce greffon est destiné aux utilisateurs avancés et nécessite des " +"connaissances sur la manière d’écrire des scripts pour être utilisé de " +"manière efficace. Utilisez ce greffon avec prudence car des erreurs avec vos " +"scripts peuvent affecter involontairement votre travail." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Utiliser le panneau latéral pour explorer et ouvrir des fichiers." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panneau de l’explorateur de fichiers" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"En fonction de la façon dont vous utilisez gedit, vous pouvez " +"trouver utile l’utilisation du greffon Panneau de l’explorateur de " +"fichiers. Ce greffon permet d’inclure un explorateur de fichiers dans le panneau latéral, ce qui vous permet d’accéder facilement aux " +"fichiers que vous utilisez fréquemment." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Vous pouvez activer le panneau latéral en choisissant geditPréférencesGreffonsPanneau de l’explorateur de fichiers." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Insérer la date et l’heure actuelles à la position du curseur." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Insertion de la date et de l’heure" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Comme son nom l’indique, le greffon Insérer la date et l’heure " +"vous permet d’insérer la date et, ou l’heure à la position actuelle du " +"curseur." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Pour activer le greffon :" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Cliquez sur le bouton de menu situé dans le coin supérieur droit de la " +"fenêtre, puis choisissez PréférencesGreffons." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Sélectionnez Insérer la date et l’heure pour " +"activer le greffon." + +# ATTENTION : pas de points de suspension mais point final dans la traduction (Charles). +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Pour utiliser le greffon, cliquez sur le bouton de menu situé dans le coin " +"supérieur droit de la fenêtre, puis choisissez Outils Insérer la date et l’heure." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Par défaut, le greffon Insérer la date et l’heure vous demande de " +"choisir votre format de date/heure préféré à chaque fois que vous utilisez " +"le greffon. Cependant, vous pouvez choisir votre propre format de date et " +"d’heure par défaut en cliquant sur le bouton de menu situé dans le coin " +"supérieur droit de la fenêtre, puis en sélectionnant PréférencesGreffonsInsérer " +"la date et l’heurePréférences." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Installer des greffons de tierce-partie." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Greffons gedit supplémentaires" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"L’installation de greffons de tierce-partie procure des fonctionnalités " +"supplémentaires non incluses dans les greffons gedit par défaut " +"et dans le paquet gedit-plugins. Une liste en ligne de greffons " +"de tierce-partie est maintenue à jour ici." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"L’installation d’un greffon de tierce-partie consiste à télécharger le " +"greffon, à la mise en place des fichiers du greffon dans le bon répertoire " +"et à l’activation du greffon." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Vous pouvez normalement télécharger un greffon à partir du site Web du " +"greffon mais il peut être nécessaire d’installer des programmes de contrôle " +"de version comme git, bazaar ou subversion " +"pour copier un dépôt logiciel de greffon à partir d’Internet. Consultez la " +"documentation du greffon pour apprendre comment récupérer le greffon." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Placez les fichiers du greffon dans le dossier /home/" +"nom_utilisateur/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Bien sûr, remplacez le terme nom_utilisateur par votre propre nom " +"d’utilisateur." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Après avoir placé les fichiers du greffon dans le bon répertoire, le greffon " +"apparaît dans le menu Préférences. Cliquez sur le bouton de menu situé dans " +"le coin supérieur droit de la fenêtre, et sélectionnez PréférencesGreffons[nom du " +"greffon] pour activer le greffon." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Cliquez sur Fermer." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "Après avoir activé le greffon, il devrait être prêt à l’emploi." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Le répertoire .local est caché par défaut. Pour l’afficher " +"ainsi que tous les autres fichiers cachés, cliquez sur " +"AffichageAfficher les fichiers cachés " +"ou appuyez sur CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Si le répertoire .local/share/gedit/plugins/ n’existe pas, vous " +"devez le créer." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Prendre en charge les modificateurs Emacs, Kate et Vim dans gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Modificateurs" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Le greffon Modificateurs permet à gedit d’analyser les " +"lignes de texte au début et à la fin d’un fichier, puis d’appliquer un " +"ensemble de préférences au fichier. Le greffon Modificateurs " +"prend en charge un sous-ensemble des options utilisées par les éditeurs de " +"texte Emacs, Kate et Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Pour activer le greffon Modificateurs, choisissez geditPréférencesGreffonsModificateurs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Options générales des modificateurs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Les options suivantes peuvent être définies en utilisant les modificateurs " +"de gedit :" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Largeur des tabulations" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Largeur d’indentation" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Insertion d’espaces au lieu de tabulations" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Renvoi automatique à la ligne" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Largeur de la marge à droite" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Les préférences définies avec les modificateurs ont la priorité sur celles " +"définies dans la boîte de dialogue des préférences." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Modificateurs d’Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Les deux premières lignes d’un document sont analysées pour trouver les " +"modificateurs d’Emacs. gedit prend en charge les " +"options des modificateurs d’Emacs suivantes :" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Pour plus d’informations sur les modificateurs d’Emacs, consultez " +"le manuel de GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Modificateurs de Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Les modificateurs de Kate sont recherchés dans la première et les " +"dix dernières lignes du document. gedit prend en charge les " +"options des modificateurs de Kate suivantes :" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Pour plus d’informations sur les modificateurs de Kate, consultez " +"le site Web de Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Modificateurs de Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Les modificateurs de Vim sont recherchés dans la première et les " +"trois dernières lignes du document. gedit prend en charge les " +"options des modificateurs de Vim suivantes :" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Pour plus d’informations sur les modificateurs de Vim, consultez " +"le site Web de Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Ajouter une console Python interactive dans le panneau inférieur." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Console Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Vous pouvez ajouter une console Python dans le panneau inférieur afin de " +"vous permettre de tester des scripts Python sans quitter gedit. " +"Pour activer la console Python, choisissez geditPréférencesGreffonsConsole Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Une fois que la console Python est activée, vous pouvez l’ouvrir en " +"sélectionnant AffichagePanneau inférieur." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Si vous avez également activé le greffon Terminal intégré, la " +"console Python apparaît dans un onglet séparé dans le panneau " +"inférieur." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Ouvrir rapidement un fichier ou un ensemble de fichiers." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Ouverture rapide" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Comme le nom du greffon l’indique, le greffon Ouverture rapide " +"vous aide à ouvrir des fichiers plus rapidement qu’en utilisant la manière " +"traditionnelle. Pour l’activer, choisissez geditPréférencesGreffonsOuverture " +"rapide." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Une fois l’activation du greffon Ouverture rapide faite, vous " +"pouvez l’utiliser comme cela :" + +# ATTENTION : point final sans points de suspension pour le bouton. +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Ouvrez la boîte de dialogue Ouverture rapide en appuyant sur " +"CtrlAltO ou en " +"sélectionnant Ouverture rapide." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "La boîte de dialogue Ouverture rapide s’affiche." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Utilisez votre souris pour sélectionner le ou les fichiers que vous " +"souhaitez ouvrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Pour sélectionner plusieurs fichiers individuels, maintenez appuyée la " +"touche Ctrl pendant que vous cliquez sur les fichiers que vous " +"voulez ouvrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Pour sélectionner un groupe de fichiers, cliquez sur le premier fichier que " +"vous voulez ouvrir, maintenez appuyée la touche Maj, puis cliquez " +"sur le dernier fichier du groupe de fichiers que vous voulez ouvrir." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Ouverture rapide va rechercher des fichiers dans :" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "le répertoire du document ouvert actuel," + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"le répertoire racine du greffon Panneau de l’explorateur de fichiers," + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"les documents récents, aussi présents dans le dossier Récents " +"du menu Fichiers," + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "les répertoires que vous avez marqués dans Fichiers," + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "votre répertoire Bureau," + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "votre Dossier personnel." + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Ouverture rapide affiche les fichiers dans n’importe lequel de " +"ces emplacements, indépendamment du fait qu’ils soient déjà ouverts ou non." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Utiliser des fragments de code pour insérer rapidement les morceaux de texte " +"fréquemment utilisés." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Fragments de code" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Fragments de code permet une insertion aisée de morceaux de texte " +"fréquemment utilisés dans vos fichiers. Par exemple, un fragment de code " +"HTML pour l’étiquette <img> insère les parties ouvrante " +"et fermante de l’étiquette mais aussi les emplacements fixés où vous pouvez " +"saisir les attributs de l’image. Cela peut accélérer et vous faciliter " +"l’écriture du code." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Activation du greffon Fragments de code" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Pour activer le greffon Fragments de code :" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Choisissez geditPréférencesGreffons." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Sélectionnez Fragments de code pour activer le " +"greffon." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Parcourir les fragments de code" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Pour parcourir les fragments de code disponibles :" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Choisissez OutilsGestion des fragments de code." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Assurez-vous que la syntaxe est correctement configurée. La barre d’état en " +"bas de la fenêtre gedit affiche le paramétrage actuel de langage. " +"Ce paramétrage est ce qui permet à gedit d’insérer les fragments de code " +"corrects. Gedit devrait normalement détecter le langage ou la " +"syntaxe du fichier que vous êtes en train d’utiliser, mais parfois il est " +"nécessaire de le définir." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Dans cet exemple, le langage est défini à HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Parcourez les fragments de code disponibles pour votre langage ou votre " +"syntaxe." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Utilisation des fragments de code" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Pour insérer un fragment de code dans le document actuel :" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Saisissez le nom du fragment de code voulu n’importe où dans le document " +"actuel." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Appuyez sur la touche Tab pour insérer le fragment de code " +"associé au nom que vous avez saisi." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Exemple d’utilisation de fragment de code" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Par exemple, si vous paramétrez la syntaxe à HTML, saisissez " +"head et appuyez sur la touche Tab. Le texte devrait " +"s’être autocomplété en un fragment de code tel que :" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Ajout de fragments de code" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Vous pouvez ajouter d’autres fragments de code fonctionnant soit globalement " +"(c’est-à-dire indépendamment du langage), soit dans une syntaxe particulière." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Choisissez OutilsGestion des fragments de code." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Dans le panneau latéral de Gestion des fragments de code, " +"choisissez la syntaxe voulue et cliquez sur le bouton « + » pour dérouler la " +"liste des fragments de code existants concernant la syntaxe choisie." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Pour ajouter un fragment de code fonctionnant globalement (c’est à dire sans " +"qu’aucune syntaxe ou aucun langage n’ait été défini pour le document), " +"choisissez Global dans le panneau latéral de Gestion des " +"fragments de code." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Pour ajouter un nouveau fragment de code, cliquez sur l’icône « plus » dans " +"le panneau latéral de Gestion des fragments de code." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Saisissez un nom pour le nouveau fragment de code. Ce nom peut être " +"différent du contenu du fragment de code." + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Dans la rubrique Activation, vous devez saisir un " +"terme dans la zone de texte Mot déclencheur. Vous " +"utiliserez ce terme pour insérer votre fragment de code." + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Si vous souhaitez insérer un fragment de code avec un raccourci clavier, " +"cliquez sur la zone de texte Touche de raccourci " +"et appuyez sur la combinaison de touche voulue. Après pression puis " +"relâchement des touches, le raccourci clavier est défini." + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Dans la zone de texte Édition, saisissez le texte " +"du fragment de code. Vous pouvez utiliser ${n} pour indiquer " +"les variables, où n est à remplacer par un nombre représentant " +"l’ordre numérique des variables incluses." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Exemple d’un nouveau fragment de code" + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Supposons que vous ayez créé un fragment de code avec le terme " +"greetings dans Mot déclencheur. La " +"zone de texte Édition contient :" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Vous pouvez insérer ce fragment de code en saisissant greetings " +"dans le document et en appuyant sur la touche Tab. Le texte du " +"fragment de code suivant est alors inséré :" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Les mots « wonderful » et « amazing » peuvent être retenus ou supprimés " +"selon votre choix d’utilisation. Pour ce faire, appuyez sur la touche " +"Tab pour choisir entre « wonderful » et « amazing » et appuyez " +"sur Suppr pour supprimer l’option à rejeter." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Trier des lignes de texte dans l’ordre alphabétique." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Trier" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Le greffon « Trier » trie les lignes sélectionnées dans l’ordre alphabétique." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Activation du greffon Trier" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Pour activer le greffon Trier :" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Choisissez Trier pour activer le greffon." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Utilisation du greffon Trier" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Pour utiliser le greffon Trier :" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Sélectionnez les lignes de texte souhaitées." + +# ATTENTION : point final et pas de points de suspension dans les boutons +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Choisissez OutilsTrier." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"La boîte de dialogue Trier s’ouvre afin de vous permettre de " +"choisir parmi différentes options de tri :" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Inverser l’ordre classe le texte dans l’ordre alphabétique " +"inverse." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Enlever les doublons supprime les valeurs de la liste en double." + +# Modification de la traduction « Ignorer la casse » par « Sensible à la casse », afin d’uniformiser avec l’interface utilisateur. +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "Sensible à la casse ne tient pas compte de la casse." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Pour que le tri ignore les caractères en début de ligne, indiquez dans le " +"champ de saisie numérique Commencer à la colonne le numéro de " +"colonne du premier caractère devant être utilisé pour le tri." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Pour lancer le tri, cliquez sur le bouton Trier." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Configurer les pages pour qu’elles s’impriment dans un certain ordre." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Impression des pages dans le bon ordre" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Inversion" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Normalement, les imprimantes impriment en premier la première page et en " +"dernier la dernière page et elles se retrouvent donc dans l’ordre inverse " +"quand vous les prenez. Pour inverser cet ordre :" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Choisissez FichierImprimer." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Dans l’onglet Général de la fenêtre Imprimer, dans " +"la colonne Copies, cochez la case Inverser." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "La dernière page sera alors imprimée en premier, et ainsi de suite." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Rassemblement" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Si vous imprimez plusieurs copies du document, les épreuves vont être " +"groupées par défaut par leur numéro de page (toutes les copies de la " +"première page ensemble, puis toutes les copies de la deuxième, etc.). La " +"fonction Rassembler va faire sortir chaque copie du document avec toutes ses " +"pages regroupées dans le bon ordre." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Pour rassembler :" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Cliquez sur FichierImprimer." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Dans l’onglet Général de la fenêtre Imprimer, dans " +"la colonne Copies, cochez la case Rassembler." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Imprimer les fichiers créés avec gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Impression de documents" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Pour imprimer avec gedit, il est nécessaire d’avoir une " +"imprimante connectée et configurée. Si vous ne l’avez pas encore fait, " +"consultez la documentation " +"d’assistance pour l’impression de GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" +"gedit permet d’imprimer soit sur papier, soit dans un fichier." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Aperçu avant impression" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Avant d’imprimer votre document, vous pouvez aussi prévisualiser la façon " +"dont le document apparaîtra en utilisant la fonctionnalité Aperçu avant " +"impression. Pour prévisualiser le document :" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Cliquez sur FichierAperçu avant impression, ou appuyez sur MajCtrlP." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Un aperçu du document s’ouvre dans le même onglet que le fichier. Vous " +"pouvez parcourir cet aperçu à l’aide des boutons de navigation et des outils " +"de la barre d’outils en haut de l’onglet de l’aperçu du document. Pour " +"fermer et retourner au document, cliquez sur le bouton Fermer l’aperçu." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Impression sur papier" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Vous pouvez imprimer le document sur papier en utilisant une imprimante " +"locale ou distante. Pour imprimer un fichier :" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Choisissez FichierImprimerGénéral." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "" +"Choisissez l’imprimante voulue dans la liste des imprimantes disponibles." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Vous pouvez prévisualiser le fichier grâce au bouton Aperçu avant impression et, lorsque vous êtes satisfait(e) du " +"résultat de vos modifications, cliquez sur le bouton Imprimer pour envoyer le fichier à l’imprimante." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"En outre, dans l’onglet Mise en page, vous avez le " +"choix entre différentes options d’Agencement et " +"de Papier. Comme ces réglages sont disponibles " +"dans l’ensemble des programmes GNOME, reportez-vous au manuel " +"d’utilisation du bureau à la rubrique Différents formats de papier et agencements." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Impression de copies multiples ou dans des plages spécifiées" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Vous pouvez régler les options Plage et Copies :" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Impression dans un fichier" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Vous pouvez aussi utiliser gedit pour imprimer dans un fichier. " +"Pour imprimer le document dans un fichier d’un format différent :" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Choisissez FichierImprimerImprimer dans un fichier." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"L’impression est disponible pour les formats de fichiers suivants ; " +"choisissez-en un :" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Pour imprimer le document dans un fichier, cliquez alors sur le bouton Imprimer." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Choisir les pages que vous souhaitez imprimer." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Impression de pages spécifiques" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Vous pouvez imprimer uniquement certaines pages du document. Par exemple, si " +"vous indiquez les numéros de pages « 1,3,5-7,9 », seules les pages 1, 3, 5, " +"6, 7 et 9 seront imprimées. Pour imprimer les pages de votre choix :" + +# ATTENTION : point final et pas de points de suspenssion dans les boutons +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Choisissez FichierImprimer." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Dans l’onglet Général de la fenêtre Imprimer, " +"choisissez Pages dans la colonne Plage." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Saisissez dans le champ de texte les numéros des pages que vous souhaitez " +"imprimer en les séparant par une virgule. Mettez un tiret pour définir une " +"plage de numéros." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Décrire brièvement gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Premiers pas avec gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit est un éditeur de texte complet pour l’environnement de " +"bureau GNOME. Vous pouvez l’utiliser pour préparer des notes et des " +"documents simples ou vous pouvez utiliser certaines de ses fonctionnalités " +"avancées pour en faire votre propre environnement de développement logiciel." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='53a80e9613aa561ea64383123f21622b'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Une fois que gedit est démarré, vous pouvez commencer à écrire " +"aussitôt. Pour enregistrer votre texte, cliquez simplement sur le bouton " +"Enregistrer situé dans la barre d’en-tête de gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Pour apprendre les fonctionnalités supplémentaires de gedit et " +"pour obtenir de l’aide sur la réalisation de tâches supplémentaires, " +"explorez les autres parties de l’aide " +"gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Remplacer des portions de texte dans un fichier." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Remplacement de texte" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Modifier du texte peut prendre beaucoup de temps. Pour en gagner, " +"gedit possède une fonction Remplacer qui vous aide à " +"chercher et remplacer des portions de texte." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Remplacement de texte dans gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Ouvrez l’outil Remplacer en cliquant sur le bouton menuRechercher et remplacer…" +" ou appuyez sur CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "" +"Saisissez le texte que vous voulez remplacer dans le champ Rechercher." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Saisissez le nouveau texte de remplacement dans le champ Remplacer par." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Une fois que vous avez saisi le texte original et de remplacement, vous " +"pouvez ajouter des conditions supplémentaires de recherche. Vous pouvez " +"aussi choisir les options de remplacement souhaitées :" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Pour remplacer seulement la prochaine occurrence, cliquez sur " +"Remplacer." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Pour remplacer toutes les occurrences du texte recherché, cliquez " +"sur Tout remplacer." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Utilisez la fonction Tout remplacer avec prudence. Tout " +"remplacer travaille sur le texte complet de votre fichier et ne vous " +"permet pas de colorer les portions de texte que la fonction va remplacer." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Options supplémentaires" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "" +"Si vous le souhaitez, vous pouvez ajouter quelques conditions " +"supplémentaires à votre recherche :" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Respect de la casse" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"L’option Respecter la casse vous permet d’indiquer si la recherche " +"à réaliser est sensible à la casse (distinction entre minuscules et " +"majuscules). Si cette option est sélectionnée, les recherches sont sensibles " +"à la casse." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Mots entiers seulement" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Utilisez cette option pour rechercher un mot spécifique qui ne comprend pas " +"de parties d’autres mots. Par exemple, si vous recherchez le mot « ou » avec " +"cette option sélectionnée, le mot « ou » correspond mais les mots " +"« verrou » et « bout » ne correspondent pas." + +# Modification de la traduction « Recherche en arrière » par « Rechercher en arrière », afin d’uniformiser avec l’interface utilisateur. +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Rechercher en arrière" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Cette commande se comporte de la même manière que la commande Rechercher le " +"précédent. Si vous souhaitez parcourir les résultats de la recherche du bas " +"vers le haut, choisissez cette option." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Recherche circulaire" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Avec l’option Recherche circulaire activée, gedit " +"reprend l’action rechercher/remplacer en haut du fichier après qu’il a " +"atteint la fin du fichier. Cela vous assure que l’action rechercher/" +"remplacer s’effectue sur la totalité du fichier." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Utilisation des séquences d’échappement" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Les séquences d’échappement permettent de rechercher les retours à " +"la ligne, les retours de chariot et les tabulations." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nouvelle ligne" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Retour à la ligne" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabulation" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Si vous souhaitez rechercher des \\ (barres obliques " +"inverses) ou une des séquences d’échappement dans le texte, vous devez " +"doubler les barres obliques inverses. Par exemple, pour trouver \\, vous devez saisir \\\\ dans le champ de recherche ou " +"de remplacement. La méthode est la même pour trouver des séquences " +"d’échappement : pour rechercher ou remplacer \\n, saisissez " +"\\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Enregistrer votre document." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Enregistrement d’un document" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Pour enregistrer un fichier dans gedit, cliquez sur le bouton " +"Enregistrer situé sur le côté droit de la barre " +"d’en-tête, ou appuyez sur CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Si vous enregistrez un nouveau fichier, une boîte de dialogue s’affiche et " +"vous pouvez nommer le fichier ainsi que le répertoire dans lequel vous " +"désirez l’enregistrer." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Rechercher un morceau de texte dans un fichier." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Recherche de texte" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"L’outil Recherche peut vous aider à trouver des morceaux de texte " +"particuliers dans votre fichier." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Recherche de texte" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Ouvrez le champ de recherche en cliquant sur le bouton menuRechercher… ou en appuyant sur CtrlF. " +"Cela déplace le curseur au début du champ de recherche." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "" +"Saisissez le texte que vous voulez rechercher dans le champ de " +"recherche." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Au fur et à mesure de votre saisie, gedit commence à mettre en " +"surbrillance les parties de texte qui correspondent à ce que vous avez saisi." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Pour parcourir les résultats de recherche, effectuez l’une des opérations " +"suivantes :" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Cliquez sur les flèches haut ou bas situées à côté du champ de recherche." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Appuyez sur les touches flèche haut ou flèche bas de " +"votre clavier." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Appuyez sur CtrlG ou " +"CtrlMajG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Pour fermer le champ de recherche, appuyez sur la touche " +"Échap ou sur la touche Entrée. La touche Échap positionne le curseur là où il était avant d’avoir lancé la recherche, " +"tandis que la touche Entrée positionne le curseur là où il est " +"dans les résultats de la recherche." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Astuces pour la recherche" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Si vous sélectionnez une portion de texte avant d’appuyer sur " +"CtrlF, le texte surligné apparaît " +"dans le champ de recherche." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Pour accéder à plus d’options de recherche, cliquez sur l’icône loupe du champ de recherche, ou faites un clic droit " +"n’importe où dans le champ de recherche. Vous accédez alors à une ou " +"plusieurs de ces options supplémentaires :" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Sélectionnez Respecter la casse pour rendre la recherche sensible " +"à la casse." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Sélectionnez Mots entiers seulement pour ne rechercher que des " +"mots entiers." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Sélectionnez Recherche circulaire pour rechercher du texte depuis " +"votre position actuelle jusqu’en bas et recommencer le cycle depuis le haut." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Le texte que vous avez recherché reste coloré, même après la fin de la " +"recherche. Pour supprimer la coloration, cliquez sur Supprimer la coloration ou appuyez sur CtrlMajK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Vérifier l’orthographe de vos fichiers." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Vérification orthographique du document" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Activation du vérificateur orthographique" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"La fonction de vérification orthographique est fournie, dans gedit, sous forme d’un greffon qui peut être activé en fonction des " +"nécessités. Pour activer ce greffon :" + +# Modification du terme « Vérification orthographique » par « Vérificateur orthographique », afin d’uniformiser avec l’interface utilisateur. +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Choisissez Vérificateur orthographique pour " +"activer ce greffon." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Pour rechercher les mots mal orthographiés dans le document :" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Choisissez OutilsVérification orthographique." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Pour que gedit surligne automatiquement les mots mal " +"orthographiés dans le document au fur et à mesure que vous saisissez le " +"texte, choisissez OutilsMettre en évidence les mots mal orthographiés." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Utilisation du vérificateur orthographique" + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Vous pouvez choisir de substituer la forme correcte au mot mal orthographié " +"grâce à la boîte de dialogue Vérifier l’orthographe. Le mot mal orthographié " +"détecté par le vérificateur orthographique est affiché près de l’étiquette " +"Mot mal orthographié. Vous avez le choix entre les actions " +"correctives suivantes :" + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Remplacer par vous permet de saisir un mot et de " +"vérifier sa validité en cliquant sur le bouton Vérifier le mot." + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Suggestions donne la liste des substitutions " +"possible pour le mot." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorer vous permet de passer la correction " +"orthographique pour l’instance présente du mot en cours d’étude." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Toujours ignorer vous permet de passer la " +"correction orthographique de toutes les instances du mot étudié." + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Remplacer substitue, à l’instance actuelle du " +"mot mal orthographié ou inconnu, un mot choisi dans la liste des Suggestions." + +# Retrait du caractère « deux-points », afin d’obtenir une meilleure lisibilité dans la documentation. +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Tout remplacer substitue, à toutes les instances " +"du mot dans le texte, le mot choisi dans la liste des Suggestions." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Ajouter le mot vous permet d’ajouter le mot " +"actuel dans le Dictionnaire de l’utilisateur de gedit. " +"Ainsi, ce mot ne sera désormais plus désigné comme mal orthographié, quel " +"que soit le document traité." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Choix de la langue pour la vérification orthographique" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Par défaut, gedit utilise votre langue actuelle pour effectuer la " +"vérification de votre document. Si vous souhaitez utiliser une autre langue, " +"allez dans OutilsDéfinir la langue… et choisissez celle que vous voulez." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Dictionnaires" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit utilise Enchant, un petit utilitaire, pour vérifier l’orthographe. " +"Enchant est susceptible de mettre en œuvre plusieurs dictionnaires " +"différents pour cette vérification. Hunspell et Aspell " +"sont deux moteurs de ces dictionnaires." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Si la langue que vous voulez utiliser n’est pas disponible dans gedit, servez-vous de l’installateur de logiciels ou de paquets de votre " +"système pour installer le moteur du dictionnaire dont vous avez besoin." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "" +"Colorer le texte en fonction de la syntaxe pour en faciliter la lecture." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Activation de la coloration syntaxique" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Coloration syntaxique" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit fournit une coloration syntaxique pour un grand nombre de " +"langages de balisage, de programmation et langages scientifiques. Si " +"gedit reconnaît la syntaxe utilisée lorsque vous ouvrez un " +"fichier, il colore automatiquement le texte." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Si votre syntaxe ou langage n’est pas mis en couleur dès le démarrage, vous " +"pouvez choisir la syntaxe ou le langage approprié en cliquant sur " +"AffichageMode de " +"coloration puis en choisissant la syntaxe désirée. Vous " +"pouvez aussi sélectionner le nom de la syntaxe à partir de la liste " +"déroulante en bas de la fenêtre gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Regrouper les onglets similaires." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organisation des fichiers dans des onglets groupés" + +# Remplacement du terme « Document sans nom 1 » par « Document 1 sans titre », afin d’uniformiser avec l’interface utilisateur. +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Lorsque vous travaillez avec de nombreux onglets dans gedit, vous " +"pouvez les grouper pour améliorer l’organisation des fichiers ouverts. " +"Ajouter un nouveau groupe d’onglets divise la fenêtre de gedit en " +"deux panneaux, ouvre un nouveau « Document 1 sans titre » dans le deuxième " +"et le rend actif. Vous pouvez alors ouvrir des fichiers dans ce nouveau " +"groupe d’onglets et déplacer les onglets d’un groupe à un autre." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Ouverture d’un nouveau groupe d’onglets dans la fenêtre gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Pour ouvrir un nouveau groupe d’onglets :" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Faites un clic droit sur un onglet et sélectionnez Déplacer dans un " +"nouveau groupe d’onglets." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Ou bien utilisez le raccourci CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Cette action divise la fenêtre de gedit en deux parties, le " +"nouveau panneau du nouveau groupe d’onglets se trouvant à droite de l’onglet " +"actif. Vous pouvez redimensionner selon vos besoins les panneaux de la " +"fenêtre de gedit à l’aide des poignées droite ou gauche." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Vous pouvez ouvrir autant de groupes d’onglets dans une fenêtre de " +"gedit que votre écran peut en contenir, en sachant malgré tout " +"qu’il vous faudra les redimensionner à l’aide des poignées pour les voir " +"correctement." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Pour fermer un panneau contenant un groupe d’onglets, fermez tous les " +"onglets s’y trouvant." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Déplacement d’un onglet vers un autre groupe" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Pour déplacer un onglet vers un autre groupe :" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "cliquez sur l’onglet sans relâcher le bouton de la souris," + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "faites glisser l’onglet dans un autre groupe d’onglets," + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "positionnez-le à côté d’un des autres onglets de l’autre groupe," + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "relâchez le bouton de la souris." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Modifier la position d’un onglet dans la fenêtre gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Déplacement et réorganisation des onglets" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Les onglets dans gedit peuvent être déplacés pour faciliter votre " +"travail avec les fichiers. Les onglets peuvent être réorganisés dans la même " +"fenêtre, déplacés à l’extérieur de gedit (en créant une nouvelle " +"fenêtre gedit) et déplacés d’une fenêtre à une autre." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Modification de l’ordre des onglets dans la fenêtre gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Pour changer l’ordre des onglets dans une fenêtre :" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "déplacez l’onglet à la position souhaitée parmi les autres onglets," + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"L’onglet se positionne à la position la plus proche de l’endroit où vous " +"l’avez relâché, immédiatement à côté d’un des autres onglets présents." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Déplacement d’un onglet en créant une nouvelle fenêtre" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Pour créer une nouvelle fenêtre à partir d’un onglet existant :" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "faites glisser l’onglet en dehors de la fenêtre gedit," + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Pour déplacer un onglet dans une nouvelle fenêtre lorsque gedit " +"est maximisé, déplacez l’onglet sur la barre supérieure en haut de l’écran." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Déplacement d’un onglet dans une autre fenêtre gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Si vous voulez déplacer un onglet d’une fenêtre vers une autre :" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "faites glisser l’onglet vers la nouvelle fenêtre," + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "positionnez-le à côté d’un des autres onglets de la nouvelle fenêtre." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Il est cependant plus aisé de déplacer un onglet d’une fenêtre à une autre " +"en le glissant dans le coin Activités de GNOME Shell, " +"car cette action affiche toutes les fenêtres actives de gedit. Il " +"suffit ensuite de relâcher l’onglet dans la fenêtre choisie de gedit." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Créer ou fermer des onglets dans la fenêtre gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Ajout et suppression d’onglets" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Le travail avec les onglets dans gedit vous permet de garder un " +"œil sur plusieurs fichiers dans une seule fenêtre." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Ajout d’onglets" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Pour ajouter un nouvel onglet afin de créer un nouveau fichier, cliquez sur " +"le bouton Créer un nouveau document situé sur le côté gauche de " +"la barre d’en-tête, ou appuyez sur CtrlT. L’onglet est ajouté à droite de tous les autres onglets." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Suppression d’onglets" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Pour supprimer un onglet, cliquez sur le bouton × situé sur le côté droit de l’onglet, ou appuyez sur CtrlW. Pour fermer tous les onglets ouverts, appuyez sur " +"Ctrl MajW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Annuler une action récente sur l’un de vos fichiers." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Annulation ou rétablissement d’une action récente" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Pour corriger une erreur dans gedit, appuyez sur " +"CtrlZ pour annuler l’action." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Vous ne pouvez pas annuler une action après avoir fermé le fichier " +"gedit." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Pour rétablir l’action qui a été annulée, appuyez sur CtrlMajZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Éditeur de texte gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Éditeur de texte gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Page d’accueil du manuel d’aide de gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Éditeur de texte gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Bienvenue dans le manuel d’aide de gedit. Pour accéder à une " +"courte introduction à la plupart des fonctionnalités de base de gedit, consultez la page Premiers pas avec " +"gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Les autres thèmes d’aide sont regroupés dans les sections ci-dessous. Bon " +"travail avec gedit !" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Manipulation des fichiers" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Configuration de gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Greffons de gedit" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Impression avec gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "" +"Creative Commons Paternité - Partage sous les mêmes conditions 3.0 non " +"transposé" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Ce travail est sous licence <_:link-1/>." + +#~ msgid "" +#~ "To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears " +#~ "on the right-side of the file's tab, or press Ctrl " +#~ "W." +#~ msgstr "" +#~ "Pour fermer un fichier dans gedit, choisissez Fermer. Vous pouvez aussi cliquer sur le petit « X » " +#~ "qui apparaît sur le bord droit de l’onglet du fichier, ou appuyer sur " +#~ "CtrlW." + +#~ msgid "" +#~ "Press CtrlL in the Open " +#~ "dialog." +#~ msgstr "" +#~ "Appuyez sur CtrlL dans la boîte de " +#~ "dialogue Ouvrir." + +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "Pour paramétrer le nombre de fichiers récemment ouverts affichés par " +#~ "gedit, vous devez utiliser l’application dconf-editor." + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "Démarrez dconf-editor et sélectionnez orggnomegeditpreferencesuimax-recents." + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "" +#~ "Double-cliquez sur le nombre à côté de max-recents et modifiez-" +#~ "le à la valeur souhaitée." + +#~ msgid "" +#~ "To open files from the side panel, first open the side panel by selecting " +#~ "View Side Panel (or just press " +#~ "F9), and then choose File Browser from the dropdown " +#~ "at the top of the pane." +#~ msgstr "" +#~ "Pour ouvrir des fichiers à partir du panneau latéral, commencez par " +#~ "ouvrir le panneau latéral en choisissant AffichagePanneau latéral (ou appuyez sur F9), " +#~ "puis cliquez sur l’icône Navigateur de fichiers dans le menu " +#~ "déroulant en haut du panneau." + +#~ msgid "" +#~ "This will activate the File Browser mode of the side panel. You " +#~ "can then use the navigation buttons at the top of the pane to locate and " +#~ "open your desired files." +#~ msgstr "" +#~ "Cela active le mode Navigateur de fichiers du panneau latéral. " +#~ "Vous pouvez maintenant utiliser les boutons de navigation en haut du " +#~ "panneau pour localiser et ouvrir les fichiers que vous voulez." + +#~ msgid "Use keyboard shortcuts to help you work more quickly." +#~ msgstr "Utiliser les raccourcis clavier pour travailler plus rapidement." + +#~ msgid "Paolo Borelli" +#~ msgstr "Paolo Borelli" + +#~ msgid "Jesse van den Kieboom" +#~ msgstr "Jesse van den Kieboom" + +#~ msgid "Steve Frécinaux" +#~ msgstr "Steve Frécinaux" + +#~ msgid "Ignacio Casal Quinteiro" +#~ msgstr "Ignacio Casal Quinteiro" + +#~ msgid "Shortcut keys" +#~ msgstr "Raccourcis clavier" + +#~ msgid "" +#~ "Use shortcut keys to perform common tasks more quickly than " +#~ "with the mouse and menus. The following tables list all of gedit's shortcut keys." +#~ msgstr "" +#~ "Les raccourcis clavier permettent d’effectuer des tâches " +#~ "courantes plus rapidement qu’avec la souris et les menus. Les tableaux " +#~ "suivants énumèrent tous les raccourcis clavier de gedit." + +#~ msgid "Tab-related Shortcut keys" +#~ msgstr "Raccourcis clavier en relation avec les onglets" + +#~ msgid "Action" +#~ msgstr "Action" + +#~ msgid "Keyboard shortcut" +#~ msgstr "Raccourci clavier" + +#~ msgid "Switch to the next tab to the left" +#~ msgstr "Basculer sur l’onglet suivant vers la gauche" + +#~ msgid "CtrlAlt PageUp" +#~ msgstr "CtrlAltPage haut" + +#~ msgid "Switch to the next tab to the right" +#~ msgstr "Basculer sur l’onglet suivant vers la droite" + +#~ msgid "CtrlAlt PageDown" +#~ msgstr "CtrlAltPage bas" + +#~ msgid "Close tab" +#~ msgstr "Fermer l’onglet" + +#~ msgid "CtrlW" +#~ msgstr "CtrlW" + +#~ msgid "Save all tabs" +#~ msgstr "Enregistrer tous les onglets" + +#~ msgid "CtrlShift L" +#~ msgstr "CtrlMajL" + +#~ msgid "Close all tabs" +#~ msgstr "Fermer tous les onglets" + +#~ msgid "CtrlShiftW" +#~ msgstr "CtrlMajW" + +#~ msgid "Reopen the most recently closed tab" +#~ msgstr "Rouvrir le dernier onglet fermé" + +#~ msgid "CtrlShiftT" +#~ msgstr "CtrlMajT" + +#~ msgid "Jump to nth tab" +#~ msgstr "Activer le nième onglet" + +#~ msgid "Alt n" +#~ msgstr "Altn" + +#~ msgid "New tab group" +#~ msgstr "Nouveau groupe d’onglets" + +#~ msgid "CtrlAltN" +#~ msgstr "CtrlAltN" + +#~ msgid "Previous tab group" +#~ msgstr "Groupe d’onglets précédent" + +#~ msgid "" +#~ "ShiftCtrlAltPage up" +#~ msgstr "" +#~ "MajCtrlAltPage haut" + +#~ msgid "Next tab group" +#~ msgstr "Groupe d’onglets suivant" + +#~ msgid "" +#~ "ShiftCtrlAltPage down" +#~ msgstr "" +#~ "MajCtrlAltPage bas" + +#~ msgid "Shortcut keys for working with files" +#~ msgstr "Raccourcis clavier pour la manipulation des fichiers" + +#~ msgid "Create a new document in a new window" +#~ msgstr "Créer un nouveau document dans une nouvelle fenêtre" + +#~ msgid "CtrlN" +#~ msgstr "CtrlN" + +#~ msgid "Create a new document in a new tab" +#~ msgstr "Créer un nouveau document dans un nouvel onglet" + +#~ msgid "CtrlT" +#~ msgstr "CtrlT" + +#~ msgid "Open a document" +#~ msgstr "Ouvrir un document" + +#~ msgid "CtrlO" +#~ msgstr "CtrlO" + +#~ msgid "Save the current document" +#~ msgstr "Enregistrer le document actuel" + +#~ msgid "CtrlS" +#~ msgstr "CtrlS" + +#~ msgid "Save the current document with a new filename" +#~ msgstr "Enregistrer le document actuel sous un nouveau nom" + +#~ msgid "CtrlShift S" +#~ msgstr "CtrlMajS" + +#~ msgid "Print the current document" +#~ msgstr "Imprimer le document actuel" + +#~ msgid "Ctrl P" +#~ msgstr "CtrlP" + +#~ msgid "Close the current document" +#~ msgstr "Fermer le document actuel" + +#~ msgid "Quit gedit" +#~ msgstr "Quitter gedit" + +#~ msgid "CtrlQ" +#~ msgstr "CtrlQ" + +#~ msgid "Shortcut keys for editing files" +#~ msgstr "Raccourcis clavier pour la modification des documents" + +#~ msgid "Move the selected word right one word" +#~ msgstr "Déplacer le mot sélectionné d’un mot à droite" + +#~ msgid "AltRight Arrow" +#~ msgstr "AltFlèche droite" + +#~ msgid "Move the selected word left one word" +#~ msgstr "Déplacer le mot sélectionné d’un mot à gauche" + +#~ msgid "AltLeft Arrow" +#~ msgstr "AltFlèche gauche" + +#~ msgid "Undo the last action" +#~ msgstr "Annuler la dernière action" + +#~ msgid "CtrlZ" +#~ msgstr "CtrlZ" + +#~ msgid "Redo the last undone action" +#~ msgstr "Rétablir la dernière action annulée" + +#~ msgid "Cut the selected text or region and place it on the clipboard" +#~ msgstr "" +#~ "Couper le texte ou la zone sélectionné et le placer dans le presse-papiers" + +#~ msgid "CtrlX" +#~ msgstr "CtrlX" + +#~ msgid "Copy the selected text or region onto the clipboard" +#~ msgstr "Copier le texte ou la zone sélectionné dans le presse-papiers" + +#~ msgid "CtrlC" +#~ msgstr "CtrlC" + +#~ msgid "Paste the contents of the clipboard" +#~ msgstr "Coller le contenu du presse-papiers" + +#~ msgid "CtrlV" +#~ msgstr "CtrlV" + +#~ msgid "Select all text in the file" +#~ msgstr "Sélectionner tout le texte du fichier" + +#~ msgid "CtrlA" +#~ msgstr "CtrlA" + +#~ msgid "Unselect all text" +#~ msgstr "Désélectionner tout le texte" + +#~ msgid "CtrlBackslash" +#~ msgstr "CtrlBarre oblique inverse" + +#~ msgid "Delete the current line" +#~ msgstr "Supprimer la ligne actuelle" + +#~ msgid "CtrlD" +#~ msgstr "CtrlD" + +#~ msgid "Move the selected line up one line" +#~ msgstr "Déplacer la ligne sélectionnée d’une ligne vers le haut" + +#~ msgid "AltUp Arrow" +#~ msgstr "AltFlèche haut" + +#~ msgid "Move the selected line down one line" +#~ msgstr "Déplacer la ligne sélectionnée d’une ligne vers le bas" + +#~ msgid "AltDown Arrow" +#~ msgstr "AltFlèche bas" + +#~ msgid "Add a tab stop" +#~ msgstr "Ajouter une tabulation" + +#~ msgid "Tab" +#~ msgstr "Tab" + +#~ msgid "Remove a tab stop" +#~ msgstr "Supprimer une tabulation" + +#~ msgid "ShiftTab" +#~ msgstr "MajTab" + +#~ msgid "Convert the selected text to upper case" +#~ msgstr "Mettre le texte sélectionné en majuscules" + +#~ msgid "CtrlU" +#~ msgstr "CtrlU" + +#~ msgid "Convert the selected text to lower case" +#~ msgstr "Mettre le texte sélectionné en minuscules" + +#~ msgid "CtrlL" +#~ msgstr "CtrlL" + +#~ msgid "Toggle case of the selected text" +#~ msgstr "Modifier la casse du texte sélectionné" + +#~ msgid "Ctrl~" +#~ msgstr "Ctrl~" + +#~ msgid "Toggle cursor visibility" +#~ msgstr "Afficher ou masquer le curseur" + +#~ msgid "F7" +#~ msgstr "F7" + +#~ msgid "Shortcut keys for showing and hiding panes" +#~ msgstr "Raccourcis clavier pour l’affichage et le masquage des panneaux" + +#~ msgid "Show / hide the side panel" +#~ msgstr "Afficher ou masquer le panneau latéral" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Open the file menu" +#~ msgstr "Ouvrir le menu Fichier" + +#~ msgid "F10" +#~ msgstr "F10" + +#~ msgid "Shortcut keys for navigation" +#~ msgstr "Raccourcis clavier pour la navigation" + +#~ msgid "Move to matching bracket" +#~ msgstr "Aller à l’accolade correspondante" + +#~ msgid "Ctrl%" +#~ msgstr "Ctrl%" + +#~ msgid "Goto line" +#~ msgstr "Se rendre à une ligne" + +#~ msgid "CtrlI" +#~ msgstr "CtrlI" + +#~ msgid "Move to the beginning of the current line" +#~ msgstr "Aller au début de la ligne actuelle" + +#~ msgid "Home" +#~ msgstr "Origine" + +#~ msgid "Move to the end of the current line" +#~ msgstr "Aller à la fin de la ligne actuelle" + +#~ msgid "End" +#~ msgstr "Fin" + +#~ msgid "Move to the beginning of the document" +#~ msgstr "Aller au début du document" + +#~ msgid "CtrlHome" +#~ msgstr "CtrlOrigine" + +#~ msgid "Move to the end of the document" +#~ msgstr "Aller à la fin du document" + +#~ msgid "CtrlEnd" +#~ msgstr "CtrlFin" + +#~ msgid "Move viewport up within the file" +#~ msgstr "Déplacer la vue vers le haut à l’intérieur du fichier" + +#~ msgid "ShiftAltUp" +#~ msgstr "MajAltPage haut" + +#~ msgid "Move viewport down within the file" +#~ msgstr "Déplacer la vue vers le bas à l’intérieur du fichier" + +#~ msgid "ShiftAltDown" +#~ msgstr "MajAltPage bas" + +#~ msgid "Move viewport to beginning of file" +#~ msgstr "Déplacer la vue au début du fichier" + +#~ msgid "ShiftAltHome" +#~ msgstr "MajAltOrigine" + +#~ msgid "Move viewport to end of file" +#~ msgstr "Déplacer la vue à la fin du fichier" + +#~ msgid "ShiftAltEnd" +#~ msgstr "MajAltFin" + +#~ msgid "Shortcut keys for searching" +#~ msgstr "Raccourcis clavier pour la recherche" + +#~ msgid "Find a string" +#~ msgstr "Rechercher du texte" + +#~ msgid "CtrlF" +#~ msgstr "CtrlF" + +#~ msgid "Find the next instance of the string" +#~ msgstr "Rechercher la prochaine occurrence du texte" + +#~ msgid "CtrlG" +#~ msgstr "CtrlG" + +#~ msgid "Find the previous instance of the string" +#~ msgstr "Rechercher l’occurrence précédente du texte" + +#~ msgid "CtrlShiftG" +#~ msgstr "CtrlMajG" + +#~ msgid "Search and Replace" +#~ msgstr "Rechercher et remplacer" + +#~ msgid "CtrlH" +#~ msgstr "CtrlH" + +#~ msgid "Clear highlight" +#~ msgstr "Supprimer la coloration" + +#~ msgid "CtrlShift K" +#~ msgstr "CtrlMajK" + +#~ msgid "Shortcut keys for tools" +#~ msgstr "Raccourcis clavier pour les outils" + +#~ msgid "Check spelling" +#~ msgstr "Vérifier l’orthographe" + +#~ msgid "ShiftF7" +#~ msgstr "MajF7" + +#~ msgid "Remove trailing spaces (with plugin)" +#~ msgstr "Enlever les espaces de fin (avec le greffon)" + +#~ msgid "AltF12" +#~ msgstr "AltF12" + +#~ msgid "Run \"make\" in the current directory (with plugin)" +#~ msgstr "Exécuter « make » dans le répertoire actuel (avec le greffon)" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Directory listing (with plugin)" +#~ msgstr "Afficher le contenu du répertoire (avec le greffon)" + +#~ msgid "CtrlShift D" +#~ msgstr "CtrlMajD" + +#~ msgid "Shortcut keys for user help" +#~ msgstr "Raccourcis clavier pour l’aide utilisateur" + +#~ msgid "Open the gedit user guide" +#~ msgstr "Ouvrir le manuel de gedit" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "Go to DocumentsNew Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Allez dans DocumentsNouveau groupe d’onglets du menu principal." + +#~ msgid "Move through tab groups" +#~ msgstr "Déplacements entre des groupes d’onglets" + +#~ msgid "To move forward (on the next) tab group:" +#~ msgstr "Pour avancer vers le groupe d’onglets suivant :" + +#~ msgid "" +#~ "Go to DocumentsNext Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Allez dans DocumentsGroupe d’onglets suivant du menu principal." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "down shortcut." +#~ msgstr "" +#~ "Ou bien faites le raccourci MajCtrlAltPage bas." + +#~ msgid "To move backward (on the previous) tab group:" +#~ msgstr "Pour revenir vers le groupe d’onglets précédent :" + +#~ msgid "" +#~ "Go to DocumentsPrevious Tab Group " +#~ "in the main menu." +#~ msgstr "" +#~ "Allez dans DocumentsGroupe d’onglets précédent du menu principal." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "up shortcut." +#~ msgstr "" +#~ "Ou bien faites le raccourci MajCtrlAltPage haut." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tab groups." +#~ msgstr "" +#~ "Consultez le tableau des Raccourcis " +#~ "clavier pour des raccourcis facilitant la gestion de vos groupes " +#~ "d’onglets." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tabs." +#~ msgstr "" +#~ "Consultez le tableau des Raccourcis " +#~ "clavier pour des raccourcis facilitant la gestion de vos onglets." + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. The tab that is larger than the other " +#~ "tabs indicates the file that is currently open. The smaller tabs indicate " +#~ "other files that are available to work on." +#~ msgstr "" +#~ "Le travail avec les onglets dans gedit vous permet de garder " +#~ "un œil sur plusieurs fichiers dans une seule fenêtre. L’onglet plus grand " +#~ "que les autres indique le fichier actuellement ouvert. Les onglets plus " +#~ "petits indiquent les autres fichiers disponibles pour votre travail." + +#~ msgid "Click the Open button." +#~ msgstr "Cliquez sur le bouton Ouvrir." + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "Comme son nom l’indique, le greffon Insérer la date et l’heure " +#~ "vous permet d’insérer la date et/ou l’heure à l’emplacement actuel du " +#~ "curseur. Pour activer ce greffon, choisissez geditPréférencesGreffons Insérer la date et l’heure. Pour utiliser le " +#~ "greffon, cliquez sur ÉditionInsérer la date et l’heure." + +#~ msgid "Open the Quick Open window" +#~ msgstr "Ouvrir la boîte de dialogue Ouverture rapide" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Print preview" +#~ msgstr "Aperçu avant impression" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlMajP" + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "Choisissez FichierOuvrir pour " +#~ "afficher la boîte de dialogue Ouverture de fichiers." + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "" +#~ "Sélectionnez l'icône Crayon en haut de la boîte de dialogue " +#~ "Ouverture de fichiers." + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "Pour activer et utiliser le panneau latéral, choisissez " +#~ "AffichagePanneau latéral (ou " +#~ "appuyez sur F9) puis cliquez sur l'icône explorateur de " +#~ "fichiers en bas du panneau." + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "Il est impossible d'utiliser la fonction Annuler pour corriger " +#~ "une opération Trier. Il est donc recommandé d'enregistrer le " +#~ "document immédiatement avant d'en faire usage. En cas d'erreur de tri, " +#~ "choisissez FichierRétablir pour " +#~ "revenir à la dernière version enregistrée." + +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "Choisissez geditTrier. " + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "Pour faire défiler le texte vers le haut ou le bas, maintenez la touche " +#~ "Ctrl enfoncée et utilisez le défilement de votre " +#~ "souris ou de votre pavé tactile." + +#~ msgid "Show / hide the bottom pane" +#~ msgstr "Afficher ou masquer le panneau inférieur" + +#~ msgid "CtrlF9" +#~ msgstr "CtrlF9" diff --git a/help/gl/gl.po b/help/gl/gl.po new file mode 100644 index 0000000..1d1242b --- /dev/null +++ b/help/gl/gl.po @@ -0,0 +1,4325 @@ +# Galician translation for gedit. +# Copyright (C) 2011 gedit's COPYRIGHT HOLDER +# This file is distributed under the same license as the gedit package. +# Fran Diéguez , 2011. +# Leandro Regueiro , 2011. +# Fran Dieguez , 2011, 2012, 2013. +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2020-02-12 17:28+0000\n" +"PO-Revision-Date: 2020-02-15 22:18+0100\n" +"Last-Translator: Fran Diéguez \n" +"Language-Team: gnome-l10n-gl@gnome.org\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.3\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Fran Diéguez , 2011-2020.\n" +"Leandro Regueiro , 2011\n" +"Marcos Lans , 2018." + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Cambiar as cores do texto e fondo de pantalla no gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:11 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-shortcut-keys.page:14 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Cambiar o esquema de cor" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit inclúe diferentes esquemas de cores, permitíndolle cambiar a " +"aparencia da xanela do texto principal." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Cambiar o esquema de cor:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Prema no botón de menú da esquina superior dereita da xanela e seleccione " +"PreferenciasFont & Cores." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Elixa o esquema de color que queira." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Aplicarase o novo esquema de cor inmediatamente." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Usar un esquema de cor personalizado" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create and " +"use your own color schemes." +msgstr "" +"Tamén pode usar esquemas de cor que foran creados por outros, ou crear e usar " +"os seus propios esquemas de cores." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"As instrucións para instalar esquemas de cores personalizados, así como " +"exemplos de esquemas de cores que pode descargar e usar, están dispoñíbeis no " +"wiki " +"de gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Use un tipo de letra personalizado nos seus textos en gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Cambiar o tipo de letra predeterminado" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you can " +"change the default gedit font to suit your preferences." +msgstr "" +"gedit usará de maneira predeterminada en sistema de tipo de letra de " +"ancho fixo, pero pode cambiar o tipo de letra predeterminado de gedit para que se axuste ás suas necesidades." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Para cambiar o tipo de letra predeterminada en gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Seleccione gedit Preferenzas Tipo de letra e cor." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Desmarque a casilla xunto á frase «Usar o tipo de letra de ancho fixo do " +"sistema.»" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you prefer." +msgstr "" +"Prema no nome do tipo de letra actual. gedit abrira a xanela de " +"selección de tipo de letra, que lle permitirá ver os tipos de letra dispoñíbeis " +"e seleccionar a que prefira." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list of " +"fonts to set the default font size." +msgstr "" +"Despois de seleccionar o novo tipo de letra, use o deslizador para " +"estabelecer o tamaño predeterminado do tipo de letra." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Pulse Seleccionar, e logo prema Guardar." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Saír desde o ficheiro que está usando." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Pechar un ficheiro" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears on the right-side " +"of the file's tab, or press Ctrl W." +msgstr "" +"Para pechar un ficheiro no gedit, seleccione Pechar. De forma alternativa, pode premer o pequeno X que aparece na " +"parte dereita da lapela do ficheiro ou premer Ctrl W." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:24 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you to " +"save those changes before closing the file." +msgstr "" +"Calquera destas accións pechará un ficheiro en gedit. Se o seu " +"ficheiro contén cambios que non se gardaran, gedit preguntaralle se " +"quere gardalos antes de pechar o ficheiro." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Abrir un ficheiro novo para editalo." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Crear un ficheiro novo" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"A forma máis sinxela de crear un novo ficheiro no gedit, é premer no " +"botón Crear un novo documento na parte esquerda da barra de " +"ferramentas ou premer CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit window. " +"If you have other files open in gedit, the new file that you create " +"will appear as a new tab to the right of those files." +msgstr "" +"Calquera destas accións creará un ficheiro novo en gedit. Se ten " +"abertos outros ficheiros en gedit, o ficheiro novo que cree " +"aparecerá como unha lapela nova á dereita destes ficheiros." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Usar privilexios administrativos para editar un ficheiro." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Editar un ficheiro como usuario root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Editar ficheiros como superusuario é potencialmente perigoso e pode romper o " +"seu sistema. Teña moito coidado ao editar ficheiros como superusuario." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Para editar ficheiros como superusuario inicie gedit desde o " +"terminal introducindo:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Usar a orde sudo deberá introducir correctamente o seu contrasinal " +"antes de que gedit se abra." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain administrative " +"privileges by entering:" +msgstr "" +"Como alternativa á orde sudo pode obter privilexios de " +"administración introducindo:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "You would then launch gedit using the gedit command." +msgstr "Despois poderá iniciar gedit usando a orde gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Cando teña aberto gedit con privilexios de administración, " +"gedit reterá esos privilexios até que o peche." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Aprende o básico sobre traballar con ficheiros no gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Operacións básicas con ficheiros: abrir, cerrar e gardar ficheiros" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with creating, " +"saving, and opening and closing files." +msgstr "" +"Se é novo en gedit, estes temas axudaranlle a crear, gardar, abrir e " +"pechar ficheiros." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Axustar o gedit para usar toda a pantalla." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Usar o modo a pantalla completa" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, presenting " +"you with more of your text and allowing you to better focus on your tasks." +msgstr "" +"Cando traballe con un documento grande, pode resultarlle útil traballar no modo " +"a pantalla completa de gedit. Usando o modo a pantalla completa " +"ocultarase a barra de menú, a barra de lapelas e a " +"barra de ferramentas, mostrándolle máis texto e permitíndolle " +"centrarse mellor nas súas tarefas." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Abrir o modo a pantalla completa" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text of " +"your current file." +msgstr "" +"Para activar o modo de pantalla completa, premaF11. O menú " +"dogedit, o título e as barras de lapelas ocultaranse e só se amosará " +"o texto do ficheiro actual." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while working " +"in fullscreen mode, move your mouse pointer to the top of the screen. The " +"gedit menu bar will reappear, and you can select your desired action." +msgstr "" +"Se precisa realizar unha acción desde o menú de gedit mentres " +"traballa en modo a pantalla completa, mova o cursor do seu rato até a parte " +"superior da pantalla. A barra de menú de gedit reaparecerá, e poderá " +"seleccionar a acción que queira." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Para cambiar entre lapelas en modo a pantalla completa, prema " +"CtrlAltRe Páx ou " +"CtrlAltAv Páx." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Desactivar o modo a pantalla completa" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit window, " +"press F11." +msgstr "" +"Para desactivar o modo a pantalla completa e volver á xanela estándar de " +"gedit prema F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for the " +"menu bar to appear. When the menu bar appears, select the " +"Leave Fullscreen button." +msgstr "" +"Tamén pode move o cursor do seu rato á parte superior da pantalla e agardar que " +"apareza a barra de menú. Cando apareza a barra de menú " +"seleccione Deixar pantalla completa." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Use o panel lateral do gedit como un explorador de ficheiros." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Ver e abrir ficheiros desde o panel lateral" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using the " +"tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"A maneira máis habitual de cambiar entre ficheiros no gedit é usando " +"as lapelas na parte superior da xanela do gedit. Porén, nalgúns " +"casos, especialmente cando está traballando con moitos ficheiros, quizais lle " +"resulte máis doado usar o panel lateral." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Para activar o panel lateral, seleccione Ver Panel " +"lateral ou simplemente prema a tecla F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at any " +"time." +msgstr "" +"Pode abrir ou pechar o panel lateral premendo F9 en calquera momento." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Abrir ficheiros desde o panel lateral" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press F9), and then choose File Browser from the dropdown at the top of " +"the panel." +msgstr "" +"Para abrir ficheiros desde o panel lateral, primeiro abra o panel lateral " +"seleccionando VerPanel lateral (ou " +"simplemente prema F9), despois prema na icona Explorador de " +"ficheiros na lista despregábel na parte superior do panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open your " +"desired files." +msgstr "" +"Isto activará o modo explorador de ficheiros do panel lateral. Despois " +"pode usar os botóns de navegación na parte superior do panel para localizar e " +"abrir os ficheiros que queira." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Usar o panel lateral para cambiar entre ficheiros abertos" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch between " +"open files. To list open files, choose Documents from the dropdown " +"at the top of the panel." +msgstr "" +"Cando teña varios ficheiros abertos, pode usar o panel lateral para cambiar " +"entre os ficheiros abertos. Para listar os ficheiros abertos, seleccione " +"Documentos na lista despregábel na parte superior do panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Premendo en calquera nome de ficheiro no panel lateral abrirase ese ficheiro " +"para editalo." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Abrir ficheiros para traballar neles." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Abrir un ficheiro ou un conxunto de ficheiros" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or press " +"CtrlO." +msgstr "" +"Para abrir un ficheiro en gedit, prema o botón Abrir ou " +"prema CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Isto fará que apareza o diálogo Abrir. Use o rato ou o seu teclado " +"para seleccionar o ficheiro que quere abrir e prema Abrir. O " +"ficheiro seleccionado abrirase nunha xanela nova." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click Cancel." +msgstr "" +"Para pechar o diálogo Abrir sen abrir un ficheiro, prema " +"Cancelar." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than one " +"file at a time. If you hold down the Ctrl key while you select " +"multiple files, clicking Open will open each of the files that you " +"have selected." +msgstr "" +"Pode usar as teclas Ctrl e Maiús para abrir máis dun " +"ficheiro ao mesmo tempo. Se mantén premida a tecla Ctrl mentres " +"seleccionar varios ficheiros, ao premer Abrir abrirase cada un dos " +"ficheiros que seleccionou." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open the " +"first file that you select, the last file that you select, and all of the files " +"in between." +msgstr "" +"Mantendo premida a tecla Maíus mentres selecciona varios ficheiros, " +"abrirá o primeiro e o último ficheiro que teña seleccionado e tódolos ficheiros " +"que houbera neles." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Acceder a ficheiros gardados nun computador diferente." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Abrir un ficheiro localizado nun servidor" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need to " +"know some technical information about the server. For example, you will need to " +"know the IP Address or URL of the server, and may need to know what kind of " +"server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Antes de abrir un ficheiro desde un servidor con gedit, precisa " +"coñecer certa información técnica sobre o servidor. Por exemplo, precisa saber " +"o enderezo IP ou o URL do servidor, e pode precisar coñecer que tipo de " +"servidor é (p.xx. HTTP, FTP, etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with files " +"stored on the server. For example, you may be able to open a file from a " +"server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Tamén, algúns tipos de servidores impoñen restricións sobre que pode facer cos " +"ficheiros almacenados no servidor. Por exemplo, pode ser capaz de abrir un " +"ficheiro dun servidor, pero pode precisar gardar os cambios no ficheiro de " +"maneira local, ou no seu propio equipo." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from a " +"server using gedit:" +msgstr "" +"Con estas advertencias en mente, realice os seguintes pasos para abrir un " +"ficheiro desde un ficheiro usando gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Na barra do título, prema Abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Documents…." +msgstr "Prema Outros documentos...." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Press CtrlL in the Open " +"dialog." +msgstr "" +"Prema CtrlL no diálogoAbrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Escriba o enderezo IP ou o URL do servidor axeitado." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Buscar e seleccionar o ficheiro que quere abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate character " +"coding." +msgstr "" +"Use a lista despregábel «Codificación de caracteres» para seleccoinar a " +"codificación de caracteres axeitada." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Prema Abrir." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods supported " +"by gvfs." +msgstr "" +"Os tipos de URI válidos inclúen http:, ftp:, file: e tódolos métodos " +"compatíbeis por gnome-vfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you make " +"must be saved to a different location. For example, HTTP only allows files to " +"be read. Files opened from FTP are read-only because not all FTP servers may " +"correctly work with saving remote files." +msgstr "" +"Ficheiros desde algúns tipos de URI ábrense como só lectura, e calquera cambio " +"que realice deberá gardalo nunha localización diferente. Por exemplo, HTTP só " +"permite lectura de ficheiros. Os ficheiros abertos desde FTP son de só lectura " +"porque non tódolos servidores FTP traballan correctamente con gardado remoto de " +"ficheiros." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Acceda a ficheiros usados recentemente." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:17 +msgid "Reopen a recently-used file" +msgstr "Reabrir un ficheiro usado recentemente" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:19 +msgid "" +"By default, gedit provides easy access to five of your most recently-" +"used files. Here is how you can open a recently-used file:" +msgstr "" +"Por omisión, gedit fornece acceso doado a cinco dos ficheiros máis " +"recentes usados. Aquí móstrase como pode abrir un ficheiro usado recentemente:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:22 +msgid "Click the Open button." +msgstr "Prema Abrir." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "gedit will display a list of the five most-recently used files." +msgstr "" +"gedit mostrará unha lista dos cinco ficheiros máis recentes usados." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:25 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Seleccione o ficheiro que queira e abrirase nunha lapela nova." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:28 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will need " +"to use the dconf-editor application." +msgstr "" +"Para axustar o número de ficheiros usados recentemente que mostra gedit, debe " +"usar a aplicación gconf-editor." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:32 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Inicie dconf-editor e seleccione orggeditpreferencesuirecentes." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:35 +msgid "" +"Double-click on the number next to max-recents and change the number " +"to your desired value." +msgstr "" +"Prema dúas veces no número xunto a max-recentes e cambie o número ao " +"valor que desexa." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "" +"Use engadidos para personalizar a forma en que gedit traballa para vostede." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configurar e usar os engadidos de gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Pode facer máis con gedit usando os engadidos. Varios engadidos " +"están instalados de forma predeterminada, pero existe un gran número de " +"engadidos dispoñíbeis de forma separada." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins package " +"to make these extra plugins available to gedit." +msgstr "" +"A maioría das distribucións de Linux agrupan estes engadidos nun paquete co " +"nome gedit-plugins. Instale este paquete gedit-plugins " +"para facer que estes engadidos estean dispoñíbeis en gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Instalar os engadidos dol gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Engadidos predeterminados de gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Engadidos adicionais de gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Cambiar a capitalización do texto seleccionado." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Cambiar capitalización" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You can " +"use it to change text to be all lower case, all upper case, to invert the case, " +"or apply title case. To enable this plugin, select geditPreferences PluginsChange Case." +msgstr "" +"Este engadido axudaralle a cambiar a capitalización dos fragmentos " +"seleccionados. Pode usalo para cambiar todo o texto a minúsculas, a maiúsculas, " +"para inverter a capitalización ou para aplicar títulos. Para activar este " +"engadido, seleccione geditPreferenzas EngadidosCambiar capitalización." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by completing " +"the following steps:" +msgstr "" +"Cando o engadido Cambiar capitalización estea activado, pode usalo " +"completando os seguintes pasos:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Realce o fragmento de texto que quere cambiar." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Seleccionar geditCambiar capitalización" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Escolla a opción de formateo de texto que desexe." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "As actualizacións do formato do texto aplicaranse inmediatamente." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to upper " +"case, and will convert all upper case letters to lower case." +msgstr "" +"A opción Inverter capitalización converterá toda as letras en " +"minúscula a maiúsculas e todas as letras en maiúscula a minúscula." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word to " +"upper case. All other letters will be converted to lower case." +msgstr "" +"A opción Capitalización de titular cambiará a primeira letra de cada " +"palabra a maiúsculas. O resto das letras cambiarase a minúsculas." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will be " +"grayed-out. You need to select a portion of text before you use the Change " +"Case feature." +msgstr "" +"Se non realzou ningún texto, a característica Cambiar capitalización " +"estará en gris. Debe seleccionar unha parte do texto antes de poder uar a " +"característica Cambiar capitalización." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Ver as estatísticas do documento." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Estatísticas do documento" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about your " +"current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"O engadido Estatísticas do documento móstralle varias estatísticas " +"sobre o documento actual. Para activar este engadido, seleccione geditPreferenciasEngadidosEstatísticas do documento." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Usar «Estatísticas do documento»" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the statistical " +"information of your document, including the number of words, lines, characters, " +"non-space characters, and the size of your file in bytes." +msgstr "" +"Cando teña activado este engadido, úseo seleccionando FerramentasEstatísticas do documento. Aparecerá unha xanela con " +"información estatística do seu documento, incluíndo o número de palabras, " +"liñas, caracteres, caracteres sen espazos e o tamaño do seu ficheiro en bytes." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Tamén pode usar as Estatísticas do documento para mostrar información " +"sobre un fragmento do seu documento. Para facer isto, use o punteiro do rato " +"para seleccionar a porción de texto que quere examinar, e logo seleccione " +"FerramenttasEstatísticas do documento. " +"Gedit mostraralle información tanto do documento enteiro como da " +"porción de texto que realzou." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "Run scripts on your current files, and interact with other applications." +msgstr "" +"Execute scripts nos ficheiros actuais e interactúe con outras aplicacións." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Ferramentas externas" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on your " +"working files, and by allowing gedit to interact with other programs " +"on your computer. To enable the External Tools plugin, select " +"gedit PreferencesPlugins External Tools." +msgstr "" +"O engadido Ferramentas externas pode axudarlle a simplificar as " +"tarefas repetitivas. Especificamente, amplía gedit axudándolle a " +"executar scripts nos ficheiros nos que está traballando, e permitíndolle a " +"gedit interactuar con outros programas do seu equipo. Para activar o " +"engadido Ferramentas externas, seleccione gedit PreferenciasEngadidosFerramentas externas." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configurar o engadido de ferramentas externas" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting ToolsManage External Tools." +msgstr "" +"Cando teña activado o engadido, terá que configuralo para axustalo ás súas " +"necesidades. As opcións de configuración están dispoñíbeis seleccionando " +"FerramentasXestionar ferramentas externas." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts can " +"affect your work in unintended ways." +msgstr "" +"Este engadido é para usuarios avanzados, e require coñecementos de «scripting» " +"para ser efectivamente útil. Use este engadido con coidado, calquera erro nos " +"seus «scripts» pode afectar ao traballo de formas non intencionada." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Use o panel lateral para explorar e abrir ficheiros." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panel de explorador de ficheiros" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use the " +"File Browser pane plugin. This plugin embeds a file browser in the side panel, giving you easy access to your frequently-used files." +msgstr "" +"Dependendo de como use o gedit, quizais lle resulte útil o engadido " +"Panel do navegador de ficheiros. Este engadido encaixa un " +"explorador de ficheiros no panel lateral, proporcionándolle un " +"acceso fácil aos ficheiros que usa frecuentemente." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile " +"Browser Panel." +msgstr "" +"Pode activar o Panel lateral seleccionando geditPreferenciasEngadidosPanel do " +"explorador de ficheiros." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press F9), and then choose File Browser from the dropdown at the top of " +"the pane." +msgstr "" +"Para abrir ficheiros desde o panel lateral, primeiro abra o panel lateral " +"seleccionando VerPanel lateral (ou " +"simplemente prema F9), despois seleccione o Explorador de " +"ficheiros na lista despregábel na parte superior do panel." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the pane to locate and open your " +"desired files." +msgstr "" +"Isto activará o modo explorador de ficheiros do panel lateral. Despois " +"pode usar os botóns de navegación na parte superior do panel para localizar e " +"abrir os ficheiros que queira." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Insertar a data e hora actual na posición do cursor." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Inserir data/hora" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Como o nome deste engadido suxire o engadido Inserir Data/Hora " +"permítelle inserir a data e/ou a hora na posición actual do cursor." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Para activar o engadido:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Prema no botón de menú da esquina superior dereita da xanela e seleccione " +"PreferenciasFont & Cores." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Seleccionar Inserir Data/Hora para activar o " +"engadido." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the window " +"and select Tools Insert Date and Time…." +msgstr "" +"Para usar o engadido, prema no botón de menú da esquina superior dereita da " +"xanela e seleccione FerramentasInserir Data e hora…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, you " +"can choose your own default date and time format by pressing the menu button in " +"the top-right corner of the window and selecting PreferencesPlugins Insert Date/TimeConfigure." +msgstr "" +"Por omisión, o engadido Inserir Data/Hora pediralle o seu formato de " +"hora preferido cada vez que use o engadido. Porén, pode seleccionar o formato " +"de data e hora seleccionando premendo no botón de menú na esquina superior " +"dereita da xanela e seleccionando PreferenciasEngadidosInserir Data/HoraConfigurar." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Como instalar engadidos de terceiros." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Engadidos adicionais de gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins that " +"are part of the gedit-plugins package. An online list of third-party " +"plugins is kept here." +msgstr "" +"Instalar engadidos de terceiros proporciónalle funcionalidades adicionais que " +"non están incluídas de maneira predeterminada no gedit nin nos " +"engadidos adicionais que forman parte do paquete gedit-plugins. Unha " +"lista de engadidos de terceiros é mantida aquí." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Instalar un engadido de terceiras partes implica descargar o engadido, copiar " +"os ficheiros do engadido no cartafol correcto e activalo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the internet. " +"Refer to the plugin's documentation for information on getting the plugin." +msgstr "" +"Xeralmente pode descargar o engadido da súa páxina web, pero pode precisar un " +"programa de control de versións como git, bazaar ou " +"subversion para copiar o repositorio de software dun engadido desde " +"Internet. Consulte a documentación do engadido para obter máis información." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Copie o engadido no cartafol /home/nome_de_usuario/.local/" +"share/gedit/plugisn." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Por suposto, substitúa a palabra nome_de_usuario co seu nome de " +"usuario." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the plugin " +"will appear in the Preferences menu. Press the menu button in the top-right " +"corner of the window and select PreferencesPlugins[Name of Plugin] to " +"enable the plugin." +msgstr "" +"Despois de mover o engadido ao cartafol correcto, aparecerá no menú " +"«Preferencias». Seleccione o botón de menú na esquina superior dereita da " +"xanela e seleccione PreferenciasEngadidos[Nome do engadido] para activalo." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Prema Pechar." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "After you have enabled the plugin, it should be available for you to use." +msgstr "Despois de activar o engadido, debería estar dispoñíbel para usarse." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"O cartafol .local está oculto de maneira predeterminada. Para " +"mostrar os ficheiros ocultos, seleccione VerMostrar " +"ficheiros ocultos ou prema CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Se o cartafol .local/share/gedit/plugins/ non está presente no seu " +"sistema, deberá crealo." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Compatibilidade de gedit para os modos de liñas de Emacs, Kate e Vim." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Liñas de modo" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines of " +"text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset of " +"the options used by the Emacs, Kate and Vim " +"text editors." +msgstr "" +"O engadido Modos de liña permítelle a gedit analizar as " +"liñas de texto que comezan e rematan un ficheiro e logo aplicar un conxunto de " +"preferencias do documento ao ficheiro. O engadido Modos de liña son " +"compatíbeis con un subconxunto de opcións usados polos editores de texto " +"Emacs, Kate e Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Para activar o engadido Modos de liña seleccione geditPreferenciasEngadidosModos de liñas." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Opcións xerais dos modos de liña" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Pódense configurar as seguintes opcións usando os modos de liñas de gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Ancho de tabulación" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Ancho da sangría" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Inserir espazos no lugar de tabuladores" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Axuste de texto" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Ancho da marxe dereita" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in the " +"preference dialog." +msgstr "" +"As preferencias estabelecidas para usar liñas de modo teñen preferencia sobre " +"as especificadas no diálogo de preferencias." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Líneas de modo Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs modelines, " +"and gedit supports the following Emacs modeline options:" +msgstr "" +"As primeiras dúas liñas dun documento analízanse buscando liñas de modos " +"Emacs, e gedit admite as seguintes opcións de liñas de " +"modo Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Para obter máis información sobre os modos de liñas de Emacs, visite " +"o Manual de " +"GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Líneas de modo Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate modeline " +"options:" +msgstr "" +"As primeiras e últimas liñas dun documento son analizadas polos modos de liña " +"de Kate e gedit é compatíbel cos seguintes modos de liña " +"de Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Para máis información sobre os modos de liña de Kate, visite a páxina web de Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Líneas de modo Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim modeline " +"options:" +msgstr "" +"A primeira e as últimas 3 liñas dun documento analízanse buscando liñas de modo " +"Vim e gedit admite as seguintes opcións de liñas de modo " +"Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandir tabulador)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (deter tabulador)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (cambiar ancho)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Para obter máis información sobre Vim visite o sitio web de Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Engadir unha consola interactiva de Python na parte inferior do panel." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Consola de Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, select " +"gedit PreferencesPlugins Python Console." +msgstr "" +"Pode engadir unha consola de Python ao panel inferior, o que lle permite probar " +"os seus scripts Python sen saír de gedit. Para activar a consola de " +"Python, seleccione geditPreferenciasEngadidosConsola de Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Unha vez activada a consola Python, poderá abrila seleccionando " +"VerPanel inferior." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Se tamén activou o engadido Terminal empotrado, a Consola " +"Python aparecerá nunha lapela separada no panel inferior." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Abrir rapidamente un ficheiro ou un conxunto de ficheiros." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Apertura rápida" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin helps " +"you to open files more quickly than using the usual ways of opening files. To " +"enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Como o seu propio nome indica, o engadido de Apertura rápida " +"axúdalle a abrir ficheiros máis rapidamente que da maneira habitual. Para " +"activar este engadido, seleccione geditPreferenciasEngadidosApertura rápida." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"En canto active o engadido Apertura rápida poderá usalo como segue:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Abra o diálogo Apertura rápida premendo CtrlAltO ou seleccionando Apertura rápida…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Aparecerá o diálogo Apertura rápida de ficheiros." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Use o seu rato para activar os ficheiros que quere abrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Para seleccionar varios ficheiros individuais, manteña pulsada a tecla " +"Ctrl mentres preme sobre os ficheiros que quere abrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, hold " +"down the Shift key, and then click on the last file in the list that " +"you want to open." +msgstr "" +"Para seleccionar un grupo de ficheiros, prema sobre o primeiro de eles, manteña " +"premida a tecla Maiús e prema sobre o último ficheiro da lista de " +"ficheiros que queira abrir." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Apertura rápida buscará ficheiros en:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "O cartafol do seu documento aberto actualmente" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File Browser " +"Pane plugin" +msgstr "" +"O cartafol raíz do engadido Panel " +"explorador de ficheiros" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Documentos recentes tamén mostrados no cartafol Recentes en " +"Ficheiros" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Cartafoles que marcara en Ficheiros" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "O seu cartafol Escritorio" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "O seu Cartafol persoal" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations regardless " +"of whether or not you have opened them previously." +msgstr "" +"Apertura rápida mostra os ficheiros de calquera das localizacións de " +"arriba sen importar se xa os abrira anteriormente." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Use os fragmentos de texto para inserir de forma rápida pequenas pezas de texto " +"usadas frecuentemente." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Fragmentos" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive portions " +"of code into your files. For example, an HTML snippet for the <img>" +" tag would insert the opening and closing portions of the tag, as well " +"as fixed places where you can enter image attributes. This can make writing " +"code easier and faster." +msgstr "" +"Os Fragmentos fornecen unha maneira axeitada para insertar anacos de " +"código repetitivos nos seus ficheiros. Por exemplo, un recorte HTML para a " +"etiqueta <img> insertará os fragmentos de apertura e peche " +"da etiqueta, así como lugares onde pode introducir os atributos da imaxe. Isto " +"fai que escribir código sexa máis doado e rápido." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Activar o engadido Fragmentos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Para activar o engadido Fragmentos:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Seleccione gedit Preferenzas Engadidos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Seleccione Fragmentos para activar o engadido." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Explorar Fragmentos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Para explorar os fragmentos dispoñíbeis:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage " +"Snippets." +msgstr "" +"Seleccione geditSesións gardadas." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of the " +"gedit window will show the current language setting. This language " +"setting is what allows gedit to insert the proper snippets. Gedit " +"will normally detect the language or syntax of the file that you're using, but " +"sometimes you may need to set it." +msgstr "" +"Asegúrese que a sintaxe está configurada correctamente. A barra de estado na " +"perte inferior da xanela de gedit mostrará a configuración do " +"linguaxe actual, que é o que permite a Gedit inserir os recortes axeitados. " +"Normalmente, Gedit detectará o linguaxe ou a sintaxe de ficheiro que " +"está usando, pero é posíbel que algunhas veces deba estabelecelo." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Neste exemplo, o linguaxe estabelecedido é HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Explore os fragmentos dispoñíbeis para a súa linguaxe ou sintaxe." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Usar fragmentos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Para insertar un fragmento no seu documento actual:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Escriba o nome do fragmento desexado en calquera lugar do seu documento." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "Press Tab to insert the snippet associated with the input term." +msgstr "" +"Prema Tabulador para inserir o fragmento o asociado con dito termo " +"de entrada." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Uso de fragmento de exemplo" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Por exemplo, se estabeleceu que a sintaxe é HTML, escriba head e prema a tecla Tab. O texto debería completarse " +"automaticamente nun fragmento así:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Título da páxina</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Engadir fragmentos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are language " +"agnostic) or only in a particular syntax." +msgstr "" +"Pode engadir novos fragmentos para que funcionen de forma global (isto é, que " +"son agnósticos á linguaxe) ou só para unha sintaxe en particular." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Seleccione FerramentasXestionar fragmentos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and click " +"on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Desde a barra lateral Xestionar fragmentos seleccione a sintaxe " +"desexada e prema o botón «+» para mostrar os fragmentos existentes para a " +"sintaxe desexada." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Para engadir un fragmento que funciona de forma global (isto é, cando non se " +"estabeleceu unha sintaxe ou linguaxe para o documento), seleccione Global desde a barra lateral Xestionar fragmentos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage Snippets sidebar." +msgstr "" +"Para engadir un novo fragmento, prema sobre a icona «máis» na barra lateral " +"Xestionar fragmentos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different from " +"the snippet you want to add." +msgstr "" +"Escriba un nome para o novo fragmento. O nome do fragmento pode ser diferente " +"do fragmento que quere engadir." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a term " +"for the Tab trigger: textarea. You will be using " +"this term to insert your snippet." +msgstr "" +"Baixo a sección Activación, debe escribir o termo no " +"campo Disparador de tabulación:. Usará este termo " +"para inserir o seu fragmento." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your mouse " +"pointer on Shortcut key: textarea and press the " +"desired combination of keys. Once you have pressed and released the keys, the " +"keyboard shortcut will be set." +msgstr "" +"Se desexa inserir un anaco de texto cun atallo do teclado, prema co punteiro do " +"rato sobre Atallo do teclado: área do texto e prema " +"a combinación desexada de teclas. Unha vez premidas e soltadas as teclas, o " +"atallo do teclado estará estabelecido." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired text " +"for the snippet. You may use ${n} to indicate variables, where " +"n is replaced with a number that represents the numerical order of " +"variables included." +msgstr "" +"Baixo a área de texto para Editar: insira o texto " +"desexado para o fragmento de texto. Pode usar ${n} para indicar " +"variábeis onde n se substitúe cun número que representa a orde " +"numérica das variábeis incluídas." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Exemplo de novo fragmento" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in Tab trigger:. The Edit: " +"textarea contains:" +msgstr "" +"Consider you have created a snippet with the term greetings in Tab trigger:. The Edit: " +"textarea contains:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <saudos>Hola ${1:marabilloso}${2:incríbel} mundo!\n" +" </saudos>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document and " +"pressing the Tab key. The following text snippet will be inserted:" +msgstr "" +"Pode inserir este fragmento escribindo saudos no documento e " +"premendo a tecla Tab. Insertarase o seguinte texto do fragmento:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <saudos>Hello marabillsosoincríbel mundo!</saudos>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending on " +"your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"As palabras «marabilloso» e «incríbel» poden retirarse ou seleccionarse " +"dependendo da súa elección de uso. Para facelo prema Tab para " +"seleccionar entre «marabilloso» e «incríbel» e prema Supr para " +"eliminar cando menos a súa opción prefirida." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Ordenar liñas de texto en orde alfabética." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Ordenar" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "O engadido «Ordenar» coloca as liñas seleccionadas en orde alfabético." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Activar o engadido Ordenar" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Para activar o engadido Ordenar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Seleccionar Ordenar para activar o engadido." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Usando o engadido Ordenar" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Para usar o engadido Ordenar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Drag and highlight the desired lines of text." +msgstr "Arrastrar e resaltar as liñas de texto desexadas." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…." +msgstr "" +"Seleccionar Ferramentas Ordenar…." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Abrirase o diálogo Ordenar, permitindo seleccionar entre varias " +"opcións de ordenación:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "Orde inversa ordenará o texto en orde alfabética inversa." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "Remove duplicates will remove duplicate values from the list." +msgstr "Eliminar duplicados retirará os valores duplicados da lista." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Ignorar capitalización ignorará a sensibilidade maiúsculas/minúsculas." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the first " +"character that should be used for sorting in the Start at column " +"spin box." +msgstr "" +"Para que a ordenación ignore os caracteres ao principio das liñas, estabeleza o " +"primeiro carácter que debería usarse para a ordenación na columna do marcado " +"incrementábel Comezar en." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Para efectuar a ordenación prema o botón Ordenar." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Estabelecer as páxinas a imprimir nunha determinada orde." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Imprimir as copias na orde correcta" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Ao revés" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"As impresoras normalmente imprime a primeira páxina primeiro, e a última páxina " +"no último lugar, polo que as páxinas rematarán no orde inverso cando as colla. " +"Para inverter a orde:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Prema FicheiroImprimir." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Na lapela Xeral do diálogo Imprimir baixo Copias marque Inverso." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "A última páxina imprimirase en primeiro lugar e logo as anteriores." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Clasificar" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will be " +"grouped by page number by default. (e.g. The copies of page one come out, then " +"the copies of page two, etc.) Collating will make each copy come out with its " +"pages grouped together." +msgstr "" +"Se está imprimindo máis dunha copia do documento, de forma predeterminada as " +"impresións agruparanse por número de páxina. (P. ex.: imprimiranse todas as " +"copias da páxina 1, despois da páxina 2, etc.) Agrupalas fará que cada copia se " +"imprima coas súas páxinas agrupadas." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Clasificar:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Prema Ficheiro Imprimir." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Na lapela Xeral da xanela Imprimir baixo Copias marque Colación." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Imprimir os ficheiros creados co gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Imprimir documentos" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and configured " +"your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Imprimir con gedit require que teña conectada e configurada unha " +"impresora. Se non o fixo, consulte a documentación sobre a impresión en GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit permítelle imprimir nun ficheiro e en papel." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Vista previa de impresión" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document will " +"look by using Print Preview. To preview the document:" +msgstr "" +"Antes de imprimir un documento, pode previsualizar como se verá impreso usando " +"a Vista previa de impresión. Para previsualizar o documento:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Seleccione Ficheiros Previsualización da impresión. Alternativamente, pode premer " +"MaiúsCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar at " +"the top of the document preview tab. To close and return to the document click " +"Close Preview." +msgstr "" +"Unha previsualización do seu documento abrirase na mesma lapela que o ficheiro. " +"Pode navegar pola previsualización cos botóns de navegación e as ferramentas da " +"barra de ferramentas na banda superior da lapela de previsualización do " +"documento. Para pechar e volver ao documento prema Pechar a previsualización." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Imprimir en papel" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To print " +"a file:" +msgstr "" +"Pode imprimir os seus documentos en papel usando unha impresora local ou " +"remota. Para imprimir nun ficheiro:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Seleccione Ficheiro Imprimir Xeral." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "" +"Seleccione a impresora que queira desde a lista de impresoras dispoñíbeis." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Pode previsualizar o ficheiro usando Vista previa de " +"impresión e en canto estea satisfeito coas preferencias prema Imprimir para enviar o ficheiro á impresora." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose Layout and Paper options. As " +"these settings are available throughout GNOME programs, please " +"consult Layout and Paper options help." +msgstr "" +"Adicionalmente desde a lapela Configuración da páxina: " +"pode seleccionar as opcións Disposición e Papel. Como estas opcións están dispoñíbeis en programas do " +"GNOME, consulte a axuda Opcións de disposición e de papel." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Imprimir varias copias e especificar rangos" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Pode configurar as opcións Rangos e Copias para axudarlle:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Imprimir nun ficheiro" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document to " +"file of a different format:" +msgstr "" +"Tamén pode usar gedit para imprimir nun ficheiro. Para imprimir o " +"seu documento nun ficheiro dun formato diferente:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Seleccione Ficheiro Imprimir Imprimir nun ficheiro." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "Printing is enabled for the following file formats, you may select from:" +msgstr "" +"A impresión está activada para os seguintes formatos dos que pode escoller:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Formato de documento portable (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Gráfico vectorial escalable (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Para imprimir un documento nun ficheiro prema Imprimir." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Seleccione as páxinas a imprimir." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Imprimir só certas páxinas" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, if " +"you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 and 9 " +"will be printed. To print pages of your choice:" +msgstr "" +"Pode imprimir selectivamente só certas páxinas do documento. Por exemplo, pode " +"escribir os números de páxina \"1,3,5-7,9\", polo que só se imprimirán as " +"páxinas 1, 3, 5, 7 e 9. Para imprimir páxinas da súa elección:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…." +msgstr "" +"Seleccione Ficheiro Imprimir…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Na lapela Xeral do diálogo Imprimir seleccione Páxinas desde a sección Rango." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated by " +"commas. Use a dash to specify a range of pages." +msgstr "" +"Escriba os números das páxinas do documento que quere imprimir, separados por " +"comas. Use un guíon para especificar un rango de páxinas." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Unha breve introdución a gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Comezar con gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you can " +"use some of its advanced features, making it your own software development " +"environment." +msgstr "" +"gedit é un editor de texto cheo de características para o contorno " +"de escritorio GNOME. Pode usalo para preparar simples notas e documentos ou " +"pode usar algunhas das súas características avanzadas, facendo que sexa o seu " +"contorno de desenvolvemento de software." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save your " +"text, just click the Save icon in the gedit toolbar." +msgstr "" +"Cando inicie o gedit poderá comezar a escribir de inmediato. Para " +"gardar o texto, simplemente prema a icona Gardar na barra de " +"ferramentas do gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance with " +"performing additional tasks, explore the other portions of the gedit help." +msgstr "" +"Para aprender máis sobre as características de gedit e para obter " +"axuda para realizar tarefas adicionais, explore as outras " +"partes da axuda de gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Substituír fragmentos de texto nun ficheiro." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Substituír texto" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes a " +"Replace function that helps you to find and replace portions of text." +msgstr "" +"Editar texto pode consumir moito tempo. Para aforrar tempo gedit " +"inclúe unha función Substituír que lle axudará a buscar e substituír " +"partes do texto." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Substituír texto en gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu " +"buttonFind and Replace… or press " +"CtrlH." +msgstr "" +"Abra a ferramenta Substituír premendo no botón MenúBuscar e substituír… " +"ou prema CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Escriba o texto que quere substituír no campo Buscar ." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Escriba o texto de substitución no campo Substituír con." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Cando teña introducido o texto orixinal e o de substitución, pode seleccionar " +"opcións adicionais para a busca. Tamén pode escoller o que desexa substituír:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Para substituír a seguinte coincidencia, prema Substituír." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Para substituír tódalas aparicións do texto prema Substituír " +"todo." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All works " +"on the entirety of your text file, and does not allow you to highlight portions " +"of text where the replace function will be performed." +msgstr "" +"Use a función Substituír todo con coidado. Substituír todo execútase en todo o texto do ficheiro e non permite resaltar as partes do " +"texto onde se aplicará a función de substitución." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Máis opcións" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Se o desexa, pode engadir algúns parámetros adicionais á busca:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Coincidir con capitalización" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be case-" +"sensitive. If not, searches will not be case-sensitive." +msgstr "" +"A función Diferenciar maiúsculas de minúsculas permítelle especificar " +"se quere que a súa busca sexa sensíbel a maiúsculas/minúsculas. Se se " +"selecciona esta opción, as buscas serán sensíbeis a maiúsculas/minúsculas. Do " +"contrario non o serán." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Coincidir só coa palabra completa" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this option " +"selected, the word 'and' would be matched, but the words 'sand' and " +"'commander' would not be matched." +msgstr "" +"Use esta opción para buscar unha palabra específica sen incluír partes de " +"outras palabras. Por exemplo, se buscou o termo «por» coa opción seleccionada, " +"atoparase a palabra «por» pero non así as palabras portal, porque e estupor." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Buscar cara atrás" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish to " +"step through search results from end to beginning, select this option." +msgstr "" +"Esta orde compórtase de forma idéntica á orde Buscar anterior. Seleccione esta " +"opción se quere pasar a través dos resultados da busca desde o final ao " +"principio." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Axustar aproximadamente" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-start " +"the search/replace action at the top of the file after it has reached the " +"bottom of the file. This ensures that your search/replace action is made across " +"your entire file." +msgstr "" +"Coa opción Axustar axeitadamente activada, gedit " +"reiniciará a acción de buscar/substituír na parte superior do ficheiro, despois " +"de chegar ao final. Isto asegúralle que a súa acción de buscar/substituír " +"realízase en todo o ficheiro." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Uso de secuencias de escape" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Pode usarsecuencias de escape para atopar quebras de liña, retornos de " +"carro e tabulacións." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nova liña" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Retorno do carro" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Lapela" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one of " +"the escape sequences in the text, you need to escape the backslash with an " +"extra backslash. For example, to search for \\, you need to " +"enter \\\\ into the search or replace field. You can search for " +"escape sequences in the same way: to search for or replace with a \\n, use the \\\\n term." +msgstr "" +"Se realmente quere buscar unha \\ (barra invertida) ou unha " +"das secuencias de escape no texto, precisa escapar da barra invertida cunha " +"barra invertida adicional. Por exemplo, para buscar unha \\, " +"debe introducir\\\\ no campo de busca ou substitución. Pode " +"procurar secuencias de escape do mesmo xeito: para buscar ou substituír " +"\\n, use \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Garde o seu ficheiro para traballar nel máis tarde." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Gardar un ficheiro" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press CtrlS." +msgstr "" +"Para gardar un ficheiro co gedit, prema no botón Gardar na parte dereita da barra de ferramentas ou prema " +"CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a name " +"for the file, as well as the directory where you would like the file to be " +"saved." +msgstr "" +"Se está gardando un ficheiro novo, aparecerá unha caixa de diálogo e poderá " +"seleccionar un nome para o ficheiro así como o cartafol no que quere gardalo." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Buscar un fragmento de texto nun ficheiro." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Buscar texto" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your file." +msgstr "" +"A ferramenta de busca pódelle axudar a atopar secuencias de texto específicas " +"nos seus ficheiros." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Buscar texto" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu " +"Button Find… or pressing " +"CtrlF. This will move your cursor to the " +"start of the search window." +msgstr "" +"Abra a xanela de busca premendo o botón " +"do menú Buscar… ou prema " +"CtrlF. Isto moverá o cursor até o " +"principio da xanela de busca." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Escriba o texto que quere buscar na xanela de busca." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text that " +"match what you have entered." +msgstr "" +"A medida que escribe, gedit comezará a resaltar os fragmentos de " +"texto que coinciden co que escribiu." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Para desprazarse polos resultados da busca, realice calquera dos seguintes " +"pasos:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down " +"facing arrows next to the search window." +msgstr "" +"Prema nas frechas arriba ou abaixo a carón da xanela de busca." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Prema as teclas frecha arriba ou frecha abaixo no seu " +"teclado." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Prema CtrlG ou CtrlMaiúsG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Para prechar a xanela de busca prema Esc ou Intro. Ao pulsar Esc o cursor volverá á posición onde estaba antes de " +"comezar a busca. Ao premer Intro o cursor volverá á posición actual " +"nos resultados da busca." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Consellos de busca" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted will " +"appear in the search window." +msgstr "" +"Se resalta un fragmento de texto co rato e preme CtrlF, o texto que resaltou aparecerá na xanela de busca." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying Glass icon in the search window, or right-click anywhere in the search window. " +"You can select one or more of the following search options:" +msgstr "" +"Para ver máis opcións de busca, prema na icona da Lupa na xanela de busca ou pode premer co botón dereito en calquera parte da " +"xanela de busca. Pode seleccionar unha ou varias das seguintes opcións:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Selecionar Diferenciar maiúsculas de minúsculas para facer a busca " +"sensíbel a maiúsculas e minúsculas." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Seleccione Coincidir só coa palabra completa para buscar termos " +"completos." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle back " +"again." +msgstr "" +"Seleccionar Dar a volta para buscar texto desde o inicio ao remate e " +"volver atrás." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even after " +"you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"O texto que buscou permanecerá realzado no gedit aínda que rematase a busca. " +"Para retirar o resaltado, prema Eliminar o realce " +"ou prema CtrlMaiúsK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Use atallos do teclado para traballar máis rápido." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Atallos de teclado" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the " +"mouse and menus. The following tables list all of gedit's shortcut " +"keys." +msgstr "" +"Use as teclas rápidas para realizar tarefas comúns máis rapidamente " +"que co rato e os menús. As seguintes táboas listan tódalas teclas rápidas de " +"gedit." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Atallos de teclado relacionados coas lapelas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:162 C/gedit-shortcut-keys.page:248 +#: C/gedit-shortcut-keys.page:268 C/gedit-shortcut-keys.page:320 +#: C/gedit-shortcut-keys.page:353 C/gedit-shortcut-keys.page:382 +msgid "Action" +msgstr "Acción" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:163 C/gedit-shortcut-keys.page:249 +#: C/gedit-shortcut-keys.page:269 C/gedit-shortcut-keys.page:321 +#: C/gedit-shortcut-keys.page:354 C/gedit-shortcut-keys.page:383 +msgid "Keyboard shortcut" +msgstr "Atallo de teclado" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Cambiar á seguinte lapela á esquerda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt RePáx" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Cambiar á seguinte lapela á dereita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt AvPáx" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Pechar lapela" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:149 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Gardar todas as lapelas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlMaiús L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Pechar todas as lapelas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlMaiús W" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Reabrir a lapela pechada máis recentemente" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlMaiúsT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Saltar á na lapela" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Grupo de lapelas novo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAlt N" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Grupo de lapelas anterior" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"MaiúsCtrl AltAv páx" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Grupo de lapelas seguinte" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"MaiúsCtrl AltRe páx" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Atallos de teclado para traballar con ficheiros" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Crear un documento novo nunha xanela nova" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Crear un documento novo nunha lapela nova" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Abrir un documento" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Open the Quick Open window" +msgstr "Abrir a xanela de Apertura rápida" + +#. (itstool) path: td/p +#. Translators: Do not blindly translate this to 'O': It is likely wrong! +#. The letter 'O' depends on your translation of msgid '_Open' in the +#. gedit UI! It is the letter after the underscore. +#: C/gedit-shortcut-keys.page:132 +msgid "AltO" +msgstr "AltO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document" +msgstr "Gardar o documento actual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:139 +msgid "Save the current document with a new filename" +msgstr "Gardar o documento actual cun nome do ficheiro novo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "CtrlShift S" +msgstr "CtrlMaiús S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Print the current document" +msgstr "Imprimir o documento actual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:145 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Close the current document" +msgstr "Pechar o documento actual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:152 +msgid "Quit gedit" +msgstr "Saír de gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:153 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:159 +msgid "Shortcut keys for editing files" +msgstr "Atallos de teclado para editar ficheiros" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:168 +msgid "Move the selected word right one word" +msgstr "Mover a selección de palabra á palabra da dereita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:169 +msgid "AltRight Arrow" +msgstr "AltFrecha dereita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:172 +msgid "Move the selected word left one word" +msgstr "Mover a selección de palabra á palabra da esquerda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "AltLeft Arrow" +msgstr "AltFrecha esquerda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:176 +msgid "Undo the last action" +msgstr "Desfacer a última acción" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:180 +msgid "Redo the last undone action" +msgstr "Refacer a última acción" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "CtrlShift Z" +msgstr "CtrlMaiús Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Cortar o texto ou rexión seleccionada e poñelo no portapapeis" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:187 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Copiar o texto ou rexión seleccionado ao portapapeis" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:191 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:194 +msgid "Paste the contents of the clipboard" +msgstr "Pegar o contido do portapapeis" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:195 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:198 +msgid "Select all text in the file" +msgstr "Seleccionar todo o texto no ficheiro" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:199 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:202 +msgid "Unselect all text" +msgstr "Deseleccionar todo o texto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:203 +msgid "CtrlBackslash" +msgstr "CtrlBarra invertida" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:206 +msgid "Delete the current line" +msgstr "Eliminar a liña actual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:207 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:210 +msgid "Move the selected line up one line" +msgstr "Mover a liña seleccionada unha liña arriba" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "AltUp Arrow" +msgstr "AltFrecha arriba" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:214 +msgid "Move the selected line down one line" +msgstr "Mover a liña seleccionada unha liña abaixo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "AltDown Arrow" +msgstr "AltFrecha abaixo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:218 +msgid "Add a tab stop" +msgstr "Engadir unha parada de tabulación" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:222 +msgid "Remove a tab stop" +msgstr "Eliminar unha parada de tabulación" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "ShiftTab" +msgstr "MaiúsTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:226 +msgid "Convert the selected text to upper case" +msgstr "Converter o texto seleccionado a maiúsculas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:230 +msgid "Convert the selected text to lower case" +msgstr "Converter o texto seleccionado a minúsculas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:234 +msgid "Toggle case of the selected text" +msgstr "Cambiar a capitalización do texto seleccionado" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:238 +msgid "Toggle cursor visibility" +msgstr "Trocar a visibilidade do cursor" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:239 +#| msgid "Tab" +msgid "F7" +msgstr "F7" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:245 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Atallos de teclado para mostrar e ocultar paneis" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:254 +msgid "Show / hide the side panel" +msgstr "Mostrar / ocultar o panel lateral" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:255 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:258 +msgid "Open the file menu" +msgstr "Abrir o menú de ficheiros" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:259 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:265 +msgid "Shortcut keys for navigation" +msgstr "Atallos de teclado para a navegación" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:274 +msgid "Move to matching bracket" +msgstr "Moverse á chave coincidente" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:275 +#| msgid "CtrlW" +msgid "Ctrl%" +msgstr "Ctrl%" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:278 +msgid "Goto line" +msgstr "Ir á liña" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:279 +msgid "CtrlI" +msgstr "CtrlJ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:282 +msgid "Move to the beginning of the current line" +msgstr "Moverse ao comezo da liña actual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:283 +msgid "Home" +msgstr "Incio" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:286 +msgid "Move to the end of the current line" +msgstr "Moverse ao final da liña actual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:287 +msgid "End" +msgstr "Fin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:290 +msgid "Move to the beginning of the document" +msgstr "Moverse ao inicio do documento" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:291 +msgid "CtrlHome" +msgstr "CtrlInicio" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:294 +msgid "Move to the end of the document" +msgstr "Moverse ao fin do documento" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:295 +msgid "CtrlEnd" +msgstr "CtrlFin" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:298 +msgid "Move viewport up within the file" +msgstr "Mover o punto de vista cara arriba no ficheiro" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:299 +#| msgid "CtrlAltN" +msgid "ShiftAltUp" +msgstr "MaiúsAltArriba" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:302 +msgid "Move viewport down within the file" +msgstr "Mover o punto de vista cara abaixo no ficheiro" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:303 +msgid "ShiftAltDown" +msgstr "MaiúsAltAbaixo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:306 +msgid "Move viewport to beginning of file" +msgstr "Mover o punto de vista ao inicio do ficheiro" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:307 +msgid "ShiftAltHome" +msgstr "MaiúsAltInicio" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:310 +msgid "Move viewport to end of file" +msgstr "Mover o punto de vista ao final do ficheiro" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:311 +msgid "ShiftAltEnd" +msgstr "MaiúsAltFin" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:317 +msgid "Shortcut keys for searching" +msgstr "Atallos de teclado para buscas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:326 +msgid "Find a string" +msgstr "Buscar unha cadea" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:327 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:330 +msgid "Find the next instance of the string" +msgstr "Buscar a seguinte instancia da cadea" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:331 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:334 +msgid "Find the previous instance of the string" +msgstr "Buscar a seguinte instancia anterior da cadea" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:335 +msgid "CtrlShiftG" +msgstr "CtrlMaiúsG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:338 +msgid "Search and Replace" +msgstr "Buscar e substituír" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:339 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:342 +msgid "Clear highlight" +msgstr "Limpar o resultado" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:343 +msgid "CtrlShift K" +msgstr "CtrlMaiús K" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:350 +msgid "Shortcut keys for tools" +msgstr "Atallos de teclado para as ferramentass" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:359 +msgid "Check spelling" +msgstr "Comprobar ortografía" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:360 +msgid "ShiftF7" +msgstr "MaiúsF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:363 +msgid "Remove trailing spaces (with plugin)" +msgstr "Eliminar espazos finais (con engadido)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:364 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:367 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Executar «make» no cartafol actual (con engadido)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:368 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:371 +msgid "Directory listing (with plugin)" +msgstr "Listado de cartafol (con engadido)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:372 +msgid "CtrlShift D" +msgstr "CtrlMaiús D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:379 +msgid "Shortcut keys for user help" +msgstr "Atallos de teclado para a axuda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:388 +msgid "Open the gedit user guide" +msgstr "Abrir a guía de usuario de gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:389 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Comprobar a ortografía nos ficheiros." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Comprobar a ortografía do seu documento" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Activar a corrección ortografica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which can " +"be enabled as required. To enable the plugin:" +msgstr "" +"A característica de comprobar a ortografía proporciónaa un engadido do " +"gedit que se pode activar cando é requirido. Para activar o engadido:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "Select Spell Checker to enable the plugin." +msgstr "" +"Seleccionar Corrector ortográfico para activar o " +"engadido." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Para comprobar as palabras mal escritas no documento:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Seleccione Ferramentas Verificación ortográfica." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Para facer que o gedit resalte automaticamente as palabras mal " +"escritas no seu documento a medida que escribe, seleccione FerramentasResaltar palabras mal " +"escritas." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Usar a verificación ortográfica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Pode seleccionar a substitución correcta das palabras mal escritas usando o " +"diálogo Corrección ortográfica. A palabra mal escrita mostrarase en estilo " +"groso ao carón de Palabra incorrecta:. Pode escoller algunha das " +"seguintes accións correctivas:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use Check Word to check the validity of the spelling." +msgstr "" +"Cambiar a: permítelle introducir unha palabra e usar " +"Comprobar palabra para verificar a corrección da " +"ortografía." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Suxestións: lista as substitucións dispoñíbeis para a " +"palabra." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for a instance of current word." +msgstr "" +"Ignorar permítelle saltar a comprobación " +"ortográfica a unha instancia da palabra actual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignorar todo permite saltar a comprobación " +"ortográfica para todas as instancias da palabra actual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Cambiar substitúe a palabra mal escrita ou non " +"identificada por unha substituta seleccionada da lista de Suxestións:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Cambiar todas substitúe as all palabras " +"mal escritas ou non identificadas coas substitutas seleccionadas na lista de " +"Suxestións:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to the " +"gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word in " +"documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Engadir palabra permítelle engadir a palabra actual " +"ao Dicionario do usuario do gedit. Engadir palabras ao " +"Dicionario do usuario posibilita ao gedit recoñecer eses " +"termos e non resaltalos como mal escritos." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Define os idiomas a usar na corrección ortográfica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check your " +"document. If you need to use another language, choose ToolsSet Language…, then choose " +"the language you want to use." +msgstr "" +"Por omisión, gedit usará o idioma actual para a corrección " +"ortográfica no seu documento. Se precisa usar outro idioma, seleccione " +"FerramentasDefinir " +"idioma…, logo seleccione o idioma a usar." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Dicionarios" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. Enchant can use " +"several different dictionaries to check your spelling. Two such dictionary back-" +"ends are Hunspell and Aspell." +msgstr "" +"gedit usa Enchant, unha pequena utilidade do sistema para a corrección " +"ortográfica. Enchant pode usar diferentes dicionarios para a comprobación. Dúas " +"destas infraestruturas de dicionarios son Hunspell e Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use your " +"computer's software installer or package manager to install the dictionary back-" +"end that you want." +msgstr "" +"Se o idioma que desexa usar non está dispoñíbel en gedit, use o " +"instalador de software do computador ou o xestor de paquetes para instalar o " +"«back-end» do dicionario que desexa." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Resaltar o texto faino máis doado de ler." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Activar o resaltado de sintaxe" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Resaltado de sintaxe" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit fornece resaltado de sintaxe para moitas linguaxes de marcado, " +"programación e científicos. Se gedit recoñece a sintaxe usada ao " +"abrir o ficheiro, automaticamente resaltará o texto." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select the " +"appropriate syntax or language by clicking View Highlight Mode, and then choosing " +"the desired syntax. Alternately, you can select the syntax name from a list at " +"the bottom of the gedit window." +msgstr "" +"Se a sintaxe ou linguaxe non está resaltada desde o principio, pode seleccionar " +"a sintaxe ou linguaxe axeitada premendo Ver " +"Modo de realce e seleccionando a sintaxe " +"que queira. De forma alternativa, pode seleccionar o nome da sintaxe desde unha " +"lista na parte inferior da xanela do gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Agrupar lapelas semellantes." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Organizar ficheiros en lapelas agrupadas" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group them, " +"making it easier to keep your opened files organized. Adding a new tab group " +"will divide the gedit window in two panes, open a new \"Untitled " +"Document\" in the new pane, and make it active. You can open files into that " +"tab group and move tabs from one tab group to another." +msgstr "" +"Se está traballando con varias lapelas no gedit pode agrupalas " +"facendo máis doado manter organizados os ficheiros abertos. Engadindo un novo " +"grupo de lapelas dividirá a xanela do gedit en dous paneis, abra un " +"«Documento sen título» no novo panel e actíveo. Pode abrir ficheiros dentro do " +"grupo de lapelas e mover lapelas dun grupo a outro." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Abrir un grupo novo de lapelas na xanela de windows" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Para abrir un grupo de lapelas novo pode:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the main " +"menu." +msgstr "" +"Ir a DocumentosNovo grupo de lapelas no " +"menú principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "Use o atallo CtrlAlt N." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the pane " +"with the new tab group will be placed on the right of the active tab. You can " +"move the handle right or left assigning more or less space of gedit " +"window between panes according to your needs." +msgstr "" +"Esta acción dividirá o panel da xanela do gedit en dous paneis. O " +"panel co novo grupo de lapelas situarase á dereita da lapela activa. Pode mover " +"o tirador dereito ou esquerdo asignando máis ou menos espazo da xanela do " +"gedit aos diferentes paneis de acordo coas súas necesidades." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Pode abrir tantos grupos de lapelas como permita a súa pantalla na xanela do " +"gedit pero terá que mover o guiador para velos correctamente." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Para pechar un panel dun grupo de lapelas peche todas as lapelas que están " +"abertas dentro del." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Moverse polos grupos de lapelas" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Para moverse ao seguinte grupo de lapelas:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Vaia a DocumentosSeguinte grupo de lapelas no menú principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Use o atallo MaiúsCtrl AltRe páx." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Para moverse ao anterior grupo de lapelas:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in the " +"main menu." +msgstr "" +"Vaia a DocumentosAnterior grupo de lapelas no menú principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Use o atallo MaiúsCtrlAltAv páx." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Mover unha lapela a outro grupo de lapelas" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Se quere mover unha lapela dun grupo de lapelas a outro:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Prema e manteña o botón do rato na lapela." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Arrastre a lapela a outro panel cun grupo de lapelas." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Posiciónea xunto a outras lapelas no grupo de lapelas." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Solte o botón do rato." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Vexa a táboa de teclas de atallos " +"relacionados con lapelas para facer máis doado xestionar os grupos de " +"lapelas." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Cambiar a posición dunha lapela na xanela do gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Mover e reordenar lapelas" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from one " +"window to another." +msgstr "" +"As lapelas en gedit poden moverse, facendo máis sinxelo traballar " +"cos seus ficheiros. As lapelas poden reordenarse na mesma xanela, movelas fora " +"de gedit (creando unha nova xanela de gedit) e movelas " +"dunha xanela a outra." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Cambie a orde das lapelas na xanela de gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Para cambiar a orde das lapelas nunha xanela:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Mova a lapela á posición que desexe entre as outras lapelas." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"A lapela posicionarase no lugar máis cercano a onde solte a lapela, xunto a " +"outras lapelas abertas." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Mover unha lapela, creando unha xanela nova de gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Para crear unha nova xanela desde a lapela existente:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Arrastre a lapela fóra da xanela de gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Para mover unha lapela a unha xanela nova cando gedit está " +"maximizado, arrastre a lapela á barra superior da pantalla." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Mover unha lapela a outra xanela de gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Se quere mover unha lapela dunha xanela a outra:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Arrastre a lapela á nova xanela." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Posiciónea xunto a outras lapelas, na nova xanela.." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging the " +"tab to the Activities hot-corner of GNOME Shell. This " +"will reveal each of the open gedit windows. You can then release the " +"tab on the desired gedit window." +msgstr "" +"Pode atopar máis doado mover a lapela desde unha xanela a outra arrastrando a " +"lapela á esquina activa de Actividades do GNOME Shell. " +"Isto mostrará cada unha das xanelas abertas do gedit. Logo pode " +"soltar a lapela na xanela do gedit desexada." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Vexa a táboa de teclas de atallos " +"relacionados con lapelas para facer máis doado xestionar as lapelas." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Crear ou pechar lapelas na xanela do gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Engadir e eliminar lapelas" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs indicates " +"the file that is currently open. The smaller tabs indicate other files that are " +"available to work on." +msgstr "" +"Traballar con lapelas en gedit permítelle traballar sobre varios " +"ficheiros nunha única xanela. A lapela que é máis grande que as demais indica " +"que o ficheiro está aberto actualmente. As lapelas máis pequenas indican outros " +"ficheiros que están dispoñíbeis para traballar neles." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Engadir lapelas" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Para engadir unha lapela nova, cree un ficheiro con CtrlT. A lapela engadirase á dereita das outras." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Eliminar lapelas" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Para eliminar unha lapela prema × na parte dereita " +"da lapela. Para eliminar todas as lapelas abertas, prema CtrlMaiúsW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Reverter un cambio recente nun dos seus ficheiros." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Desfacer unha acción recente" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by pressing " +"CtrlZ." +msgstr "" +"Se comete un erro usando o gedit, pode desfacelo premendo " +"CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Non pode desfacer un cambio despois de pechar un ficheiro no gedit." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Editor de texto gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Editor de texto gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Páxina web da guía de axuda do gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Editor de texto gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into both " +"gedit's most basic features, as well as some advanced keyboard " +"shortcuts, visit the Get started with gedit and Shortcut keys pages." +msgstr "" +"Benvido á guía de axuda de gedit. Para unha introdución rápida nas " +"características máis básicas de gedit, así como algúns dos atallos " +"de teclado avanzados visite as páxinas Comezar " +"con gedit e Atallos de teclado." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Pode atopar outros puntos de axuda agrupados nas seccións de embaixo. Desfrute " +"do uso de gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Traballar con ficheiros" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Configure gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "Engadidos de gedit" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Imprimir con gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Atribución-CompartirIgual 3.0 Licenza non portada" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Este traballo está baixo a licenza <_:link-1/>." + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time plugin " +#~ "allows you to insert the date and/or time at the current cursor position. To " +#~ "enable this plugin, select gedit PreferencesPlugins Insert Date/" +#~ "Time. To use the plugin, press EditInsert Date and Time." +#~ msgstr "" +#~ "Como o seu propio nome indica, o engadido Inserir data e hora " +#~ "permítelle inserir a data e/ou hora na posición actual do cursor. Para " +#~ "activar este engadido, seleccione geditPreferenciasEngadidosInserir data e hora. Para usar o engadido, prema " +#~ "EditarInserir data e hora." + +#~ msgid "Print preview" +#~ msgstr "Vista previa de impresión" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlMaiús P" diff --git a/help/hu/figures/gedit-html-snippet.png b/help/hu/figures/gedit-html-snippet.png new file mode 100644 index 0000000..b516eb5 Binary files /dev/null and b/help/hu/figures/gedit-html-snippet.png differ diff --git a/help/hu/figures/gedit3-screenshot.png b/help/hu/figures/gedit3-screenshot.png new file mode 100644 index 0000000..4e39c70 Binary files /dev/null and b/help/hu/figures/gedit3-screenshot.png differ diff --git a/help/hu/hu.po b/help/hu/hu.po new file mode 100644 index 0000000..8c4facd --- /dev/null +++ b/help/hu/hu.po @@ -0,0 +1,4366 @@ +# Hungarian translation for gedit help. +# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2019 Free Software Foundation, Inc. +# This file is distributed under the same license as the gedit help. +# +# Mate Ory , 2007, 2008. +# Gabor Kelemen , 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2019. +# Balázs Úr , 2014, 2015, 2017, 2019. +msgid "" +msgstr "" +"Project-Id-Version: gedit_help master\n" +"POT-Creation-Date: 2019-08-07 01:40+0000\n" +"PO-Revision-Date: 2019-09-03 22:10+0100\n" +"Last-Translator: Gabor Kelemen \n" +"Language-Team: Hungarian \n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 2.0\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Hammer Attila , 2014.\n" +"Kelemen Gábor , 2007, 2008, 2009, 2010, 2011, " +"2012, 2013, 2014, 2015, 2017.\n" +"Őry Máté , 2007, 2008." + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "A szöveg- és háttérszínek módosítása a geditben." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:11 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:14 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Színséma megváltoztatása" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"A gedit számos színsémát tartalmaz, amelyek lehetővé teszik a fő " +"szövegablak megjelenésének módosítását." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "A színséma megváltoztatásához:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Nyomja meg az ablak jobb felső sarkában lévő menügombot, és válassza a " +"BeállításokBetűk és színek menüpontot." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Válassza ki a kívánt színsémát." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Az új színséma azonnal alkalmazásra kerül." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Egyéni színséma használata" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Mások által készített színsémákat is használhat, vagy létrehozhatja saját " +"színsémáit." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Az egyéni színsémák telepítésével kapcsolatos utasításokért, valamint a " +"letölthető és használható színsémákra példák a gedit wikiben érhetők " +"el." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Egyéni betűkészlet használata a geditben." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Alapértelmezett betűkészlet megváltoztatása" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"A gedit alapesetben a rendszer rögzített szélességű betűkészletét " +"használja, de ízlés szerint megváltoztathatja az alapértelmezett gedit betűkészletet." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Alapértelmezett betűkészlet módosításához a geditben:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Válassza a gedit Beállítások Betűk és színek lehetőséget." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Törölje az „A rendszer rögzített szélességű betűkészletének használata.” " +"mondat melletti jelölőnégyzetet." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Kattintson az aktuális betűkészlet nevére. A gedit megjeleníti a " +"betűkészlet-választó ablakot, amely lehetővé teszi az elérhető betűkészletek " +"megjelenítését és a kívánt betűkészlet kiválasztását." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Az új betűkészlet kiválasztása után használja a betűkészletek listája alatti " +"csúszkát az alapértelmezett betűméret beállításához." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Kattintson a Kiválasztás, majd a Bezárás gombra." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Kilépés az éppen használt fájlból." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Fájl bezárása" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears on the right-" +"side of the file's tab, or press Ctrl W." +msgstr "" +"Fájl bezárásához a geditben válassza a Bezárás menüpontot. Ennek alternatívájaként rákattinthat a fájl " +"lapjának jobb oldalán megjelenő kis „X”-re, vagy megnyomhatja a " +"CtrlW kombinációt." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:24 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Ezek bármelyike bezárja a fájlt a geditben. Ha a fájl mentetlen " +"változtatásokat tartalmaz, akkor a gedit figyelmezteti a " +"változtatások mentésére a fájl bezárása előtt." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Új fájl megnyitása szerkesztésre." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Új fájl létrehozása" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"A legegyszerűbben úgy hozhat létre új dokumentumot a gedit " +"alkalmazásban, ha az eszköztár bal oldalán az Új dokumentum " +"létrehozása gombra kattint, vagy lenyomja a CtrlT billentyűkombinációt." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"A fentiek bármelyike létrehoz egy új fájlt a geditben. Ha már más " +"fájljai is nyitva vannak a geditben, akkor az újonnan létrehozott " +"fájl azoktól jobbra, új lapon jelenik meg." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Rendszergazdai jogosultságok használata fájl szerkesztésére." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Fájl szerkesztése root felhasználóként" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"A fájlok root felhasználóként történő szerkesztése veszélyes lehet, és " +"működésképtelenné teheti rendszerét. Legyen nagyon óvatos, amikor a fájlokat " +"root felhasználóként szerkeszti." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"A fájlok root felhasználóként való szerkesztéséhez a következő parancs " +"kiadásával indítsa a geditet a terminálból:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"A sudo parancs használatával meg kell adnia jelszavát a " +"gedit megnyílása előtt." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"A sudo parancs alternatívájaként rendszergazdai jogokhoz juthat a " +"következő parancs kiadásával is:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Ezután a gedit a gedit parancs kiadásával indítható el." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"A gedit rendszergazdai jogokkal történő futtatásakor a " +"gedit addig megtartja ezeket a jogokat, amíg be nem zárja." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Ismerje meg a fájlok kezelésének alapjait a geditben." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Fájlkezelési alapok: fájlok megnyitása, bezárása és mentése" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Ha új gedit felhasználó, akkor ezek a témák segíteni fogják a " +"fájlok létrehozásában, mentésében, megnyitásában és bezárásában." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "A gedit beállítása a teljes képernyő használatára." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Teljes képernyős mód használata" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Nagy dokumentumok kezelésekor hasznos lehet a gedit teljes " +"képernyős módja. A teljes képernyős mód használata elrejti a menüsávot, a lapsávot és az eszköztárat, így a szöveg " +"nagyobb részét láthatja, és jobban koncentrálhat feladataira." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Teljes képernyős mód bekapcsolása" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"A teljes képernyős mód bekapcsolásához nyomja meg az F11 " +"billentyűt. A gedit menüje, címe és lapsávjai eltűnnek, és csak " +"az aktuális fájl szövegét fogja látni." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Ha a gedit egyik menüjéből szeretne végrehajtani egy műveletet, " +"mialatt teljes képernyős módban van, akkor mozgassa az egérmutatót a " +"képernyő tetejére. A gedit menüsávja újra megjelenik, és " +"kiválaszthatja a kívánt menüpontot." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"A nyitott lapok közti váltáshoz teljes képernyős módban nyomja meg a " +"CtrlAltPgUp vagy a " +"CtrlAltPgDn kombinációt." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Teljes képernyős mód kikapcsolása" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"A teljes képernyős mód kikapcsolásához, és a normál gedit " +"ablakhoz való visszatéréshez nyomja meg az F11 billentyűt." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Ezen kívül kurzorát a képernyő tetejére is mozgathatja, és megvárhatja, amíg " +"megjelenik a menüsáv. Amikor megjelenik a menüsáv, " +"nyomja meg a Teljes képernyő elhagyása gombot." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "A gedit oldalpaneljének használata fájlböngészőként." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Fájlok megjelenítése és megnyitása az oldalpanelen" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"A fájlok közti váltás leggyakoribb módja a geditben a gedit ablak tetején lévő lapok használata. Egyes esetekben azonban, különösen " +"ha sok nyitott fájllal dolgozik, egyszerűbb lehet az oldalpanel használata." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Az oldalsó ablaktábla aktiválásához válassza a Nézet " +"Oldalpanel menüpontot, vagy nyomja meg az F9 " +"billentyűt." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Az oldalpanelt bármikor megnyithatja vagy bezárhatja az F9 " +"megnyomásával." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Fájlok megnyitása az oldalpanelről" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Fájlok oldalpanelről való megnyitásához első lépésként nyissa meg az " +"oldalpanelt a Nézet Oldalpanel " +"menüpont kiválasztásával (vagy az F9 billentyű megnyomásával), " +"majd válassza a Fájlböngésző lehetőséget a panel tetején lévő " +"legördülő listából." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Ez aktiválja az oldalpanel fájlböngésző módját. Ezután az " +"oldalpanel tetején lévő navigációs gombok használatával megkeresheti és " +"megnyithatja a kívánt fájlokat." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Az oldalpanel használata a nyitott fájlok közti váltásra" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Ha több fájlja van megnyitva, akkor az oldalpanel használatával is válthat a " +"nyitott fájlok közt. A nyitott fájlok felsorolásához kattintson az " +"oldalpanel tetején lévő Dokumentumok elemre." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Az oldalpanelen bármely fájlnévre kattintva megnyithatja a fájlt " +"szerkesztésre." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Fájlok megnyitása a munka megkezdéséhez." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Fájl vagy fájlok megnyitása" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Fájlok a geditben való megnyitásához kattintson a Megnyitás gombra, vagy nyomja meg a CtrlO " +"kombinációt." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Ekkor megnyílik a Megnyitás ablak. Az egér vagy a billentyűzet " +"használatával válassza ki a megnyitni kívánt fájlt, és nyomja meg a " +"Megnyitás gombot. A kijelölt fájl megnyílik egy új lapon." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"A Megnyitás ablak fájl megnyitása nélküli bezárásához kattintson " +"a Mégse gombra." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"A Ctrl és Shift billentyűk használatával egyszerre " +"több fájlt is megnyithat. Ha a Ctrl billentyű lenyomva tartása " +"mellett több fájlt jelöl ki, akkor a Megnyitás gomb megnyomása az " +"összes kijelölt fájlt megnyitja." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Ha a Shift billentyű lenyomva tartása mellett több fájlt jelöl " +"ki, akkor az első kijelölt fájl, az utolsó kijelölt fájl, és a köztük lévő " +"összes fájl megnyílik." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Másik számítógépen tárolt fájlok elérése." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Kiszolgálón található fájl megnyitása" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"A kiszolgálón található fájlok geditből való megnyitása előtt " +"szüksége lesz néhány technikai információra a kiszolgálóról. Tudnia kell " +"például a kiszolgáló IP-címét vagy URL-címét, és szükség lehet a kiszolgáló " +"típusának (például HTTP, FTP stb.) ismeretére is." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Egyes kiszolgálótípusok korlátozzák, hogy mit tehet a kiszolgálón tárolt " +"fájlokkal. Lehetséges például, hogy meg tud nyitni egy fájlt a " +"kiszolgálóról, de a változtatásokat elmenteni csak helyileg tudja, a saját " +"számítógépére." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Ezeket a kikötéseket szem előtt tartva tegye a következőket a kiszolgálón " +"található fájl megnyitásához a gedittel:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "A fejlécsávon kattintson a Megnyitás gombra." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Documents…." +msgstr "Kattintson az Egyéb dokumentumok gombra." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Press CtrlL in the Open " +"dialog." +msgstr "" +"Nyomja meg a CtrlL kombinációt a " +"Megnyitás ablakban." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Adja meg a megfelelő kiszolgáló IP-címét vagy URL-címét." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Keresse meg, és válassza ki a megnyitni kívánt fájlt." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Válassza ki a megfelelő karakterkódolást a Karakterkódolás legördülő " +"listából." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Kattintson a Megnyitás gombra." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Az érvényes URI-típusok a http:, az ftp:, a file: és minden más, a " +"gvfs által támogatott elérési mód." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Bizonyos típusú URI címekről megnyitott fájlok csak olvasható módban " +"használhatók, a változtatásokat csak más helyre lehet menteni. A HTTP-n " +"keresztül megnyitott fájlok például csak olvashatók. Az FTP-vel megnyitottak " +"azért nem módosíthatók, mert egyes FTP kiszolgálók hibásan kezelik a távoli " +"fájlok mentését." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Legutóbb frissített fájlok elérése." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:17 +msgid "Reopen a recently-used file" +msgstr "Legutóbb használt fájl újranyitása" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:19 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"Alapesetben a gedit az öt utoljára használt fájlhoz biztosít " +"hozzáférést. A legutóbb használt fájlok eléréséhez:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:22 +msgid "Click the Open button." +msgstr "Kattintson a Megnyitás gombra." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "A gedit megjeleníti a legutóbb használt öt fájlt." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:25 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Válassza ki a kívánt fájlt, és az megnyílik egy új lapon." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:28 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"A gedit által megjelenített legutóbb használt fájlok számának módosításához " +"a dconf-editor alkalmazást kell használnia." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:32 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Indítsa el a dconf-editor alkalmazást, és válassza az " +"org gnomegeditpreferencesui max-recents kategóriát." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:35 +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Kattintson duplán a max-recents kulcs melletti számra, és " +"módosítsa a kívánt értékre." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "A gedit működésének személyre szabása bővítményekkel." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "gedit bővítmények beállítása és használata" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"A geditből bővítményekkel többet is kihozhat. Számos bővítmény " +"alapesetben telepítve van, de sok más külön bővítmény is elérhető." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Sok Linux disztribúció ezen bővítmények egy csoportját a gedit-plugins csomagban teszi elérhetővé. Telepítse a gedit-plugins " +"csomagot, hogy elérhetővé tegye a további bővítményeket a gedit " +"alkalmazásban." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"A gedit-plugins telepítése" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "A gedit alap bővítményei" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "További gedit bővítmények" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:9 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "A kijelölt szöveg kis- és nagybetűsségének módosítása." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Kis- és nagybetű módosítása" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Ezen bővítmény segítségével megváltoztathatja a kijelölt szöveg kis- és " +"nagybetűsségét. Használatával a szöveget csupa kisbetűssé, csupa nagybetűssé " +"vagy szókezdő nagybetűs stílusúvá alakíthatja, valamint megfordíthatja a " +"kis- és nagybetűket. A bővítmény engedélyezéséhez válassza a gedit BeállításokBővítményekKis- és nagybetű módosítása " +"lehetőséget." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"A Kis- és nagybetűk módosítása bővítmény engedélyezése után tegye a " +"következőket a használatához:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Jelölje ki a módosítandó szövegrészt." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Válassza a geditKis- és nagybetű " +"módosítása menüpontot." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Válassza ki a kívánt szövegformázási beállítást." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "A szövegformázás változásai azonnal életbe lépnek." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"A Kis- és nagybetűk invertálása lehetőség minden kisbetűt " +"nagybetűre cserél, és minden nagybetűt kisbetűre." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"A Szókezdő beállítás a szavak első betűit nagybetűvé alakítja. " +"Minden más betű kisbetűvé lesz alakítva." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Ha nem jelölt ki szöveget, akkor a Kis- és nagybetűk módosítása " +"menüpont szürkén jelenik meg. A funkció használatához ki kell jelölnie egy " +"szövegrészt a Kis- és nagybetűk módosítása funkció használata előtt." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Dokumentumstatisztika megjelenítése." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Dokumentumstatisztika" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"A Dokumentumstatisztika bővítmény különböző statisztikákat jelenít " +"meg az aktuális dokumentumról. A bővítmény engedélyezéséhez válassza a " +"gedit BeállításokBővítményekDokumentumstatisztika " +"lehetőséget." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "A dokumentumstatisztika használata" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"A bővítmény engedélyezése után válassza az Eszközök " +"Dokumentumstatisztika menüpontot. A megjelenő ablak a " +"dokumentummal kapcsolatos statisztikát tartalmazza, beleértve a szavak, " +"sorok, karakterek, nem szóköz karakterek számát és a fájl méretét bájtban." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"A Dokumentumstatisztika bővítmény használatával korlátozhatja az " +"információk megjelenítését a dokumentum egy részére is. Ehhez az egérrel " +"válassza ki a vizsgálandó szövegrészt, és válassza az EszközökDokumentumstatisztika menüpontot. A gedit " +"megjeleníti a teljes dokumentumra, és a kijelölt szövegrészre vonatkozó " +"információkat is." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Parancsfájlok futtatása az aktuális fájlokon, és együttműködés más " +"alkalmazásokkal." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Külső eszközök" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"A Külső eszközök bővítmény segíthet egyszerűsíteni az ismétlődő " +"feladatokat. Úgy terjeszti ki a geditet, hogy parancsfájlokat " +"futtathasson munkafájljain, és a gedit együttműködhessen a " +"számítógépén található más programokkal. A Külső eszközök " +"bővítmény engedélyezéséhez válassza a gedit BeállításokBővítmények " +"Külső eszközök lehetőséget." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Külső eszközök bővítmény beállítása" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"A bővítmény engedélyezése után be kell azt állítania, hogy megfeleljen " +"igényeinek. A beállítási lehetőségek az EszközökKülső eszközök menüpont kiválasztásával érhetők el." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Ez a bővítmény haladó felhasználóknak készült, és a hatékony használatához " +"ismerni kell a parancsfájlok írását. A bővítményt óvatosan használja, mivel " +"a parancsfájlokban elkövetett hibák munkáját nem tervezett módokon " +"befolyásolhatják." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Az oldalpanel használata fájlok tallózására és megnyitására." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Fájlböngésző ablaktábla" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"A gedit használatának módjától függően hasznos lehet a " +"Fájlböngésző ablaktábla használata. Ez a bővítmény egy " +"fájlböngészőt ágyaz be az oldalpanelbe, egyszerű hozzáférést " +"nyújtva a gyakran használt fájlokhoz." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Az oldalpanel engedélyezhető a gedit Beállítások BővítményekFájlböngésző " +"panel kiválasztásával." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the pane." +msgstr "" +"Fájlok oldalpanelről való megnyitásához első lépésként nyissa meg az " +"oldalpanelt a Nézet Oldalpanel " +"menüpont kiválasztásával (vagy az F9 billentyű megnyomásával), " +"majd válassza a Fájlböngésző lehetőséget a panel tetején lévő " +"legördülő listából." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the pane to locate and open " +"your desired files." +msgstr "" +"Ez aktiválja az oldalpanel fájlböngésző módját. Ekkor az oldalpanel " +"tetején lévő navigációs gombokkal megkeresheti és megnyithatja a kívánt " +"fájlokat." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:17 +msgid "Insert the current date/time at the cursor position." +msgstr "A jelenlegi dátum/idő beszúrása a kurzorpozícióba." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:20 +msgid "Insert date/time" +msgstr "Dátum és idő beszúrása" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:22 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select gedit PreferencesPlugins Insert Date/" +"Time. To use the plugin, press EditInsert Date and Time." +msgstr "" +"Ahogyan a bővítmény neve sugallja, a Dátum/idő beszúrása " +"bővítmény lehetővé teszi a dátum és/vagy az idő beszúrását az aktuális " +"kurzorpozícióba. A bővítmény engedélyezéséhez válassza a gedit BeállításokBővítményekDátum/idő beszúrása " +"lehetőséget. A bővítmény használatához válassza a SzerkesztésDátum és idő beszúrása menüpontot." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:29 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"geditPreferences PluginsInsert Date/TimeConfigure." +msgstr "" +"A Dátum és idő beszúrása bővítmény alapesetben a bővítmény minden " +"használatakor bekéri a kívánt dátum/időformátumot. Azonban kiválaszthatja a " +"saját alap dátum- és időformátumát a gedit " +"Beállítások BővítményekDátum/" +"idő beszúrásaBeállítás gomb kiválasztásával." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Harmadik féltől származó bővítmények telepítése." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "További gedit bővítmények" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Harmadik féltől származó bővítmények telepítése olyan extra funkciókat " +"biztosít, amelyeket sem a gedit alaptelepítése, sem a gedit-" +"plugins csomag nem tartalmaz. A harmadik féltől származó bővítmények " +"online listája itt érhető " +"el." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"A harmadik féltől származó bővítmények telepítése a bővítmény letöltését, a " +"fájlok megfelelő könyvtárba másolását és a bővítmény aktiválását foglalja " +"magában." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Bővítményeket általában azok weboldalairól tölthet le, de szükség lehet " +"verziókezelő programok használatára is, mint például a git, " +"bazaar vagy subversion a bővítményhez tartozó fájlok " +"letöltéséhez az internetről. A bővítmények beszerzésével kapcsolatos " +"információkat azok dokumentációjában találja." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Másolja a bővítmény fájljait a /home/felhasználónév/.local/" +"share/gedit/plugins könyvtárba." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "A felhasználónév helyett saját felhasználónevét használja." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins [Name " +"of Plugin] to enable the plugin." +msgstr "" +"A bővítményfájlok megfelelő könyvtárba helyezése után a bővítmény megjelenik " +"a Beállítások menüben. Válassza a SzerkesztésBeállításokBővítmények [Bővítmény neve] lehetőséget a bővítmény engedélyezéséhez." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:45 +msgid "Click Close." +msgstr "Kattintson a Bezárás gombra." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:48 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "A bővítmény engedélyezése után az azonnal használhatóvá válik." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:52 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"A .local könyvtár alapesetben nem látható. A megjelenítéséhez " +"válassza a NézetRejtett fájlok megjelenítése menüpontot, vagy nyomja meg a CtrlH kombinációt." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:59 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Ha a .local/share/gedit/plugins/ könyvtár nem létezik, akkor " +"hozza létre azt." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Emacs, Kate és Vim-stílusú módsorok támogatása a geditben." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Módsorok" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"A Módsorok bővítmény lehetővé teszi, hogy a gedit " +"elemezze a fájl elején és végén lévő sorokat, majd dokumentumbeállítások " +"halmazát alkalmazza a fájlra. A Módsorok bővítmény az Emacs, Kate és Vim szövegszerkesztők által használt " +"beállítások egy részhalmazát támogatja." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"A Módsorok bővítmény engedélyezéséhez válassza a gedit BeállításokBővítményekMódsorok lehetőséget." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Általános módsor-beállítások" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "A következő beállítások adhatók meg a gedit módsorokkal:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tabulátorszélesség" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Behúzás szélessége" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Tabulátorok helyett szóközök használata" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Szöveg tördelése" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Jobb margó szélessége" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"A módsor beállításai elsőbbséget élveznek a beállítások ablakban " +"megadottakkal szemben." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs módsorok" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"A dokumentum első két sorában kerülnek felismerésre az Emacs " +"módsorok, és a gedit a következő Emacs módsor-" +"beállításokat támogatja:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +#| msgid "" +#| "For more information on Emacs modelines, visit the GNU Emacs Manual." +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Az Emacs módsorokkal kapcsolatos további információkért lásd a " +"GNU Emacs " +"kézikönyvét." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate módsorok" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"A dokumentum első és utolsó 10 sorában kerülnek felismerésre a Kate módsorok, és a gedit a következő Kate módsor-" +"beállításokat támogatja:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +#| msgid "" +#| "For more information about Kate modelines, visit the Kate website." +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"A Kate módsorokkal kapcsolatos további információkért keresse fel " +"a Kate weboldalát." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim módsorok" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"A dokumentum első és utolsó 3 sorában kerülnek felismerésre a Vim " +"módsorok, és a gedit a következő Vim módsor-" +"beállításokat támogatja:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +#| msgid "" +#| "For more information on Vim modelines, visit the Vim website." +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"A Vim módsorokkal kapcsolatos további információkat a Vim weboldalán találhat." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Interaktív Python konzol beágyazása az alsó ablaktáblába." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Python konzol" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Az alsó ablaktáblához hozzáadhat egy Python konzolt, amely lehetővé teszi " +"Python parancsfájlok tesztelését a gedit elhagyása nélkül. A " +"Python konzol engedélyezéséhez válassza a gedit BeállításokBővítményekPython konzol lehetőséget." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"A Python konzol engedélyezése után a megnyitásához válassza a " +"NézetAlsó panel menüpontot." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Ha engedélyezte a Beágyazott terminál bővítményt is, akkor a " +"Python konzol külön lapon jelenik meg az alsó panelen." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Fájl vagy fájlok gyors megnyitása." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Gyors megnyitás" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Ahogy a nevéből sejteni lehet, a Gyors megnyitás bővítmény a " +"fájlok szokásosnál gyorsabb megnyitását teszi lehetővé. A bővítmény " +"engedélyezéséhez válassza a geditBeállításokBővítményekGyors megnyitás lehetőséget." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"A Gyors megnyitás bővítmény engedélyezése után a következőképpen " +"veheti használatba:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Nyissa meg a Gyors megnyitás ablakot a CtrlAltO billentyűkombináció megnyitásával, " +"vagy a Gyors megnyitás menüpont " +"kiválasztásával." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Megjelenik a Gyors megnyitás fájlablak." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Az egérrel válassza ki a megnyitni kívánt fájlokat." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Több fájl kiválasztásához tartsa lenyomva a Ctrl billentyűt, és " +"kattintson a megnyitni kívánt fájlokra." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Fájlcsoport kiválasztásához kattintson az első megnyitni kívánt fájlra, " +"tartsa lenyomva a Shift billentyűt, és kattintson az utolsó " +"megnyitni kívánt fájlra a listában." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "A Gyors megnyitás a következő helyeken keres fájlokat:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "A jelenlegi dokumentumot tartalmazó könyvtár" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"A Fájlböngésző panel " +"bővítmény gyökérkönyvtára" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"A legutóbbi dokumentumok, amelyek a Fájlok alkalmazás " +"Nemrég használt mappájában is megjelennek" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "A Fájlok alkalmazásban könyvjelzőzött könyvtárak" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Az Asztal könyvtár" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "A saját könyvtára" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"A Gyors megnyitás a fenti helyek bármelyikén lévő fájlokat " +"megjeleníti, függetlenül attól, hogy korábban megnyitotta-e már ezeket." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Töredékek használata gyakran használt szövegdarabok gyakori beszúrására." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Töredékek" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"A Töredékek bővítmény kényelmes megoldást kínál ismétlődő " +"kóddarabok beszúrására a fájljaiba. Egy HTML-töredék az <img> címkéhez például beszúrhatja a címke nyitó és záró részeit, valamint " +"rögzített helyeket a kép attribútumainak megadásához. Ez egyszerűbbé és " +"gyorsabbá teheti a kód írását." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Töredékek bővítmény engedélyezése" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "A Töredékek bővítmény engedélyezéséhez:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Válassza a geditBeállításokBővítmények." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Válassza a Töredékek bejegyzést a bővítmény " +"engedélyezéséhez." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Töredékek tallózása" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Az elérhető töredékek tallózásához:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Válassza az Eszközök Töredékek kezelése lehetőséget." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Győződjön meg róla, hogy a szintaxis megfelelően van beállítva. A " +"gedit ablak alján lévő állapotsor megjeleníti az aktuális " +"nyelvbeállítást. Ez a nyelvbeállítás teszi lehetővé a gedit számára a " +"megfelelő töredékek beszúrását. A gedit általában felismeri a " +"használt fájl nyelvét vagy szintaxisát, de néha saját kezűleg kell ezt " +"beállítani." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Ebben a példában a nyelv a HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "LEFORDÍTVA" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Az adott nyelvhez vagy szintaxishoz elérhető töredékeket." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Töredékek használata" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Egy töredék beszúrásához a jelenlegi dokumentumba:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Írja be a kívánt töredék nevét bárhová a jelenlegi dokumentumba." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Nyomja meg a Tab billentyűt a bevitt kifejezéshez társított " +"töredék beszúrásához." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Töredék példa felhasználása" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Ha például a szintaxist HTML-re állította, akkor írja be a " +"head szót, nyomja meg a Tab billentyűt. A szöveg " +"automatikusan kiegészítésre kerül a töredékké valahogy így:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html;" +" charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html;" +" charset=utf-8\" />\n" +" <title>Oldalcím</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Töredékek hozzáadása" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Felvehet globálisan (nyelvfüggetlenül) vagy adott szintaxisban működő " +"töredékeket." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Válassza az Eszközök " +"Töredékek kezelése lehetőséget." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"A Töredékek kezelése oldalsávból válassza ki a kívánt szintaxist, " +"és kattintson a „+” gombra az adott szintaxishoz meglévő töredékek " +"felsorolásához." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Globálisan működő (azaz ha nincs adott szintaxis vagy nyelv beállítva a " +"dokumentumhoz) töredék hozzáadásához válassza a Töredékek kezelése oldalsáv Globális elemét." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Új töredék hozzáadásához kattintson a „+” ikonra a Töredékek kezelése oldalsávon." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Írja be az új töredék nevét. A töredék neve eltérhet a felvenni kívánt " +"töredéktől." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Az Aktiválás szakaszban meg kell adnia egy " +"kifejezést a Tab aktiváló: szövegmezőben. A " +"töredéket ezen a kifejezés használatával fogja tudni beszúrni." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Ha egy töredéket gyorsbillentyűvel szeretne beszúrni, akkor a Gyorsbillentyű: szövegmezőre kattintás után nyomja le a " +"kívánt billentyűkombinációt. Miután megnyomta és felengedte a billentyűket, " +"a gyorsbillentyű be lesz állítva." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"A Szerkesztés mezőben adja meg a töredék kívánt " +"szövegét. A változókat a ${n} használatával jelölheti, ahol az " +"n a felvett változók sorrendjét jelző szám." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Új töredék példa" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Tegyük fel, hogy létrehozott egy töredéket, és a Tab " +"aktiváló alatt az üdvözlet kifejezést adta meg. A Szerkesztés mező a következőt tartalmazza:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <üdvözlet>Szia ${1:csodás}${2:bámulatos} világ!\n" +" </üdvözlet>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Ezt a töredéket az üdvözlet szó dokumentumba beírásával és a " +"Tab billentyű lenyomásával szúrhatja be. A következő " +"szövegtöredék kerül beszúrásra:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <üdvözlet>Szia csodásbámulatos világ!</üdvözlet>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"A „csodálatos” és „bámulatos” szavak az aktuális szóhasználattól függően " +"törölhetők vagy megtarthatók. Ehhez nyomja le a Tab billentyűt a " +"„csodálatos” és „bámulatos” közti választáshoz, és a Del " +"billentyűt a nem kívánt lehetőség törléséhez." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Szövegsorok betűrendbe rendezése." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Rendezés" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "A Rendezés bővítmény a kijelölt sorokat betűrendbe teszi." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Rendezés bővítmény engedélyezése" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "A Rendezés bővítmény engedélyezéséhez:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Válassza a Rendezés bejegyzést a bővítmény " +"engedélyezéséhez." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "A Rendezés bővítmény használata" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "A Rendezés bővítmény használatához:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Drag and highlight the desired lines of text." +msgstr "Jelölje ki a kívánt szövegsorokat." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Válassza az EszközökRendezés… menüpontot." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Megnyílik a Rendezés ablak, és lehetővé teszi a rendezési " +"beállítások kiválasztását." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"A Fordított sorrend beállítás a szöveget fordított betűrendbe " +"rendezi." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"A Másolatok eltávolítása eltávolítja a többször szereplő " +"értékeket a listából." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"A Kis- és nagybetű nem számít nem különbözteti meg a kis- és " +"nagybetűket." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Ahhoz, hogy a rendezésnél a sorok első néhány karaktere ne kerüljön " +"figyelembevételre, válassza ki az első figyelembe veendő karakter számát a " +"Kezdőoszlop léptetőmezőben." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "A rendezés végrehajtásához nyomja meg a Rendezés gombot." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "A nyomtatandó oldalak bizonyos sorrendbe rendezése." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Másolatok nyomtatása a megfelelő sorrendben" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Fordított" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"A nyomtatók általában először az első, utoljára pedig az utolsó oldalt " +"nyomtatják ki, így az oldalakat fordított sorrendben kapja meg. A sorrend " +"megfordításához:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Válassza a Fájl Nyomtatás lehetőséget." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"A Nyomtatás ablak Általános lapján a Másolatok szakaszban jelölje be a Fordított négyzetet." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Ekkor az utolsó oldal kerül elsőként kinyomtatásra." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Szétválogatás" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Ha a dokumentumból több példányt nyomtat, a nyomatok alapbeállítás szerint " +"oldalszám szerint lesznek csoportosítva (azaz az első oldal másolatai " +"készülnek el, majd a második oldal másolatai stb.). A szétválogatás hatására " +"az egyes másolatok oldalai csoportosítva készülnek el." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "A szétválogatáshoz:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Kattintson a FájlNyomtatás menüpontra." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"A Nyomtatás ablak Általános lapján a Másolatok szakaszban jelölje be a Szétválogatás négyzetet." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "A gedittel létrehozott fájlok nyomtatása." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Dokumentumok nyomtatása" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"A geditből való nyomtatáshoz csatlakoztatnia kell nyomtatóját, és " +"be kell azt állítania. Ha ezt még nem tette meg, nézze meg a GNOME nyomtatással kapcsolatos dokumentációját." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" +"A gedit lehetővé teszi a fájlba és a papírra való nyomtatást is." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Nyomtatási kép" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"A dokumentum nyomtatása előtt az Előnézet segítségével " +"megjelenítheti, hogy hogyan fog a kinyomtatott dokumentum kinézni. Az " +"előnézet megjelenítéséhez:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Válassza a Fájl Nyomtatási kép menüpontot, vagy nyomja meg a " +"ShiftCtrl P " +"billentyűkombinációt." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"A dokumentum előnézete ugyanazon a lapon nyílik meg, mint a fájl. Ezt az " +"előnézetet az előnézet lap tetején lévő eszköztár navigációs gombjai és " +"eszközei segítségével tallózhatja. A bezárásához és a dokumentumhoz való " +"visszatéréshez nyomja meg a Nyomtatási kép bezárása gombot." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Nyomtatás papírra" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Dokumentumait helyi vagy távoli nyomtatón is kinyomtathatja. Egy fájl " +"nyomtatásához:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Válassza a Fájl Nyomtatás Általános lapot." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Válassza ki a kívánt nyomtatót az elérhető nyomtatók listából." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"A fájl nyomtatási képét megjelenítheti a Nyomtatási " +"kép megnyomásával, és ha elégedett a beállításokkal, akkor a Nyomtatás gombbal megkezdheti a nyomtatást." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Ezen kívül az Oldalbeállítás lapon: kiválaszthatja " +"az Elrendezés és Papír " +"beállításait. Mivel ezek a beállítások minden GNOME programban " +"megegyezők, nézze meg az Elrendezés- és papírbeállítások súgóját." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Több példány és adott tartományok nyomtatása" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Megadhatja a Tartomány és Példányszám beállításait:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Nyomtatás fájlba" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"A gedittel fájlba is nyomtathat. A dokumentum másik formátumú " +"fájlba nyomtatásához:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Válassza a Fájl Nyomtatás Nyomtatás fájlba " +"lehetőséget." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "A nyomtatás a következő fájlformátumokba engedélyezett:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"A dokumentum fájlba nyomtatásához nyomja meg a Nyomtatás gombot." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Válassza ki a nyomtatandó oldalakat." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Csak bizonyos oldalak nyomtatása" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Kiválaszthatja, hogy a dokumentum mely oldalait szeretné kinyomtatni. Ha " +"például az „1,3,5-7,9” oldalszámokat írja be, akkor csak az 1., 3., 5., 6., " +"7., és 9. oldal kerül kinyomtatásra. A kívánt oldalak kinyomtatásához:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Válassza a Fájl Nyomtatás lehetőséget." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"A Nyomtatás ablak Általános lapján válassza az Oldalak elemet a Tartomány szakaszban." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Vesszőkkel elválasztva írja be a nyomtatni kívánt oldalak számait. " +"Oldaltartomány jelzésére használja a - jelet." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "A gedit rövid bemutatása." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "A gedit bemutatása" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"A gedit egy teljes felszereltségű szövegszerkesztő a GNOME " +"asztali környezethez. Használhatja egyszerű jegyzetek és dokumentumok " +"készítésére, vagy fejlettebb funkcióinak használatával saját " +"szoftverfejlesztői környezetévé alakíthatja." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"A gedit indulása után azonnal megkezdheti az írást. A szöveg " +"mentéséhez kattintson a Mentés ikonra a gedit " +"eszköztáron." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"A gedit további szolgáltatásainak megismeréséhez és a további " +"feladatok elvégzésével kapcsolatos segítségért nézze meg a gedit " +"súgójának további témaköreit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Szöveg részeinek cseréje egy fájlban." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Szöveg cseréje" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"A szöveg szerkesztése időigényes lehet. Az időspórolás érdekében a " +"gedit tartalmazza a Csere funkciót, amely segíti a " +"szövegrészek keresésében és helyettesítésében." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Szöveg cseréje a geditben" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"A Csere eszköz a Menü gombKeresés és csere menüpont " +"kiválasztásával, vagy a CtrlH " +"billentyűkombináció megnyomásával nyitható meg." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "A cserélni kívánt szöveget írja be a Keresés erre mezőbe." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Az új helyettesítő szöveget írja be a Csere ezzel mezőbe." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Az eredeti és helyettesítő szöveg megadása után további paramétereket adhat " +"a kereséshez. Kiválaszthatja azt is, mit kíván cserélni:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Csak a következő előfordulás cseréjéhez kattintson a Csere gombra." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"A dokumentumban lévő összes előfordulás cseréléséhez kattintson az " +"Összes cseréje gombra." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Az Összes cseréje funkciót óvatosan használja. Az Összes " +"cseréje funkció a teljes szövegfájlon működik, és nem teszi lehetővé " +"azon szövegrészek kiemelését, amelyen a csere funkció végrehajtásra kerül." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "További beállítások" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Ha szeretné, a kereséshez további paramétereket is megadhat:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Kis- és nagybetű" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"A Kis- és nagybetű beállítással megadhatja, hogy a keresés " +"megkülönböztesse-e a kis- és nagybetűket. Ha ez be van jelölve, akkor a " +"keresés megkülönbözteti a kis- és nagybetűket, ellenkező esetben nem." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Csak teljes szóra" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Ezen beállítással megadható, hogy adott szóra más szavak töredékeit kizárva " +"szeretne-e keresni. Ha például az „és” szót keresi, és ez a beállítás be van " +"jelölve, akkor az „és” szót megtalálja, de a „kötés” vagy a " +"„késik” szót már nem." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Keresés visszafelé" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Ez a beállítás azonosan működik az Előző keresése paranccsal. Ha a " +"találatokat a vége felől az eleje felé szeretné bejárni, akkor jelölje be " +"ezt a négyzetet." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Körbe" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Ha a körbe négyzet be van jelölve, akkor a gedit a " +"keresés/csere műveletet újraindítja a fájl elejétől, miután elérte a fájl " +"végét. Ez biztosítja, hogy a keresés/csere művelet a teljes fájlra " +"végrehajtásra kerüljön." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Escape sorozatok használata" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Sorvégjelek, kocsivissza-karakterek és tabulátorok kereséséhez használhatja " +"az escape sorozatokat." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Új sor" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Kocsi vissza karakter" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Ha egy \\ (fordított osztásjelet) vagy egy más escape " +"sorozatot szeretne keresni a szövegben, a fordított osztásjelet egy extra \\ " +"jellel kell védenie. Például, a \\ jelek kereséséhez a " +"\\\\ szöveget kell beírnia a keresés vagy csere mezőbe. A különböző " +"escape jelöléseket hasonló módon keresheti: A \\n kereséséhez " +"vagy cseréjéhez használja a \\\\n kifejezést." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Fájl mentése későbbi munkához." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Fájl mentése" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +"CtrlS." +msgstr "" +"Egy fájl mentéséhez a gedit alkalmazással kattintson az eszköztár " +"jobb oldalán található Mentés gombra, vagy " +"nyomja le a CtrlS " +"billentyűkombinációt." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Ha új fájlt ment, akkor megjelenik egy párbeszédablak, és kiválaszthatja a " +"fájl nevét, valamint a könyvtárat, amelybe a fájlt menteni szeretné." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Szöveg keresése a fájlban." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Szöveg keresése" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"A Keresés eszköz segítségével megadott szövegdarabokat kereshet a fájlban." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Szöveg keresése" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"A keresés ablak megnyitásához válassza a Menü gomb Keresés " +"menüpontot, vagy nyomja meg a CtrlF " +"kombinációt. Ez a kurzort a keresés ablak elejére viszi." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Írja be a keresendő szöveget a keresés ablakba." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Gépelés közben a gedit megkezdi a beírt szövegre illeszkedő " +"szövegdarabok kiemelését." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "A találatok közti lépkedéshez tegye a következők egyikét:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Kattintson a keresőablak mellett fel " +"vagy le mutató nyilakra." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "Nyomja meg a fel nyíl vagy le nyíl billentyűt." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Nyomja meg a CtrlG vagy a " +"CtrlShiftG kombinációt." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"A keresés ablak bezárásához nyomja meg az Esc vagy az " +"Enter billentyűt. Az Esc megnyomása visszaviszi a " +"kurzort oda, ahol a keresés megkezdése előtt volt. Az Enter " +"megnyomása visszaviszi a kurzort a keresési eredményekben az aktuális " +"pozícióba." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Keresési tippek" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Ha kijelöl egy szövegrészt az egérrel, majd megnyomja a CtrlF kombinációt, akkor a kijelölt szöveg megjelenik a " +"keresési ablakban." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"További keresési beállítások eléréséhez kattintson a Nagyító ikonra a keresési ablakban, vagy kattintson a jobb " +"egérgombbal a keresési ablak bármely részére. A következő keresési " +"beállítások közül válogathat:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Jelölje be a Kis- és nagybetű négyzetet a kis- és nagybetűk " +"megkülönböztetéséhez kereséskor." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Jelölje be a Csak teljes szóra négyzetet kizárólag a teljes " +"szavak kereséséhez." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Jelölje be a Körbe négyzetet a fentről lefelé keresés " +"újraindításához fentről." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"A keresett szöveg kiemelve marad, még a keresés befejezése után is. A " +"kiemelés eltávolításához válassza a Kiemelés " +"törlése menüpontot, vagy nyomja meg a CtrlShiftK kombinációt." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Gyorsbillentyűk használata a munka gyorsításához." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Gyorsbillentyűk" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"A gyorsbillentyűk segítségével a gyakori feladatok az egér és " +"menük használatánál gyorsabban végezhetők el. A következő táblázatok " +"felsorolják a gedit összes gyorsbillentyűjét." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Lapokkal kapcsolatos gyorsbillentyűk" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:167 C/gedit-shortcut-keys.page:253 +#: C/gedit-shortcut-keys.page:273 C/gedit-shortcut-keys.page:325 +#: C/gedit-shortcut-keys.page:358 C/gedit-shortcut-keys.page:387 +msgid "Action" +msgstr "Művelet" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:168 C/gedit-shortcut-keys.page:254 +#: C/gedit-shortcut-keys.page:274 C/gedit-shortcut-keys.page:326 +#: C/gedit-shortcut-keys.page:359 C/gedit-shortcut-keys.page:388 +msgid "Keyboard shortcut" +msgstr "Gyorsbillentyű" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Váltás a balra lévő lapra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt Page Up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Váltás a jobbra lévő lapra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt Page Down" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Lap bezárása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:154 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Az összes lap mentése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlShift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Az összes lap bezárása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlShiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Legutóbb használt lap újranyitása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlShiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Váltás az n. lapra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Új lapcsoport" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Váltás az előző lapcsoportra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"ShiftCtrlAltPage up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Váltás a következő lapcsoportra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"ShiftCtrlAltPage down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Gyorsbillentyűk fájlok kezeléséhez" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Új dokumentum létrehozása új ablakban" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Új dokumentum létrehozása új lapon" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Dokumentum megnyitása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Open the Quick Open window" +msgstr "A Gyors megnyitás ablak megnyitása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "AltO" +msgstr "AltO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document" +msgstr "A jelenlegi dokumentum mentése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:139 +msgid "Save the current document with a new filename" +msgstr "A jelenlegi dokumentum mentése más fájlnéven" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "CtrlShift S" +msgstr "CtrlShift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Print the current document" +msgstr "A jelenlegi dokumentum nyomtatása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:145 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Print preview" +msgstr "Nyomtatási kép" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlShift P" +msgstr "CtrlShift P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:153 +msgid "Close the current document" +msgstr "A jelenlegi dokumentum bezárása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:157 +msgid "Quit gedit" +msgstr "Kilépés a geditből" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:158 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:164 +msgid "Shortcut keys for editing files" +msgstr "Gyorsbillentyűk fájlok szerkesztéséhez" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "Move the selected word right one word" +msgstr "A kijelölt szó egy szóval jobbra mozgatása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:174 +msgid "AltRight Arrow" +msgstr "AltJobbra nyíl" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "Move the selected word left one word" +msgstr "A kijelölt szó egy szóval balra mozgatása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:178 +msgid "AltLeft Arrow" +msgstr "AltBalra nyíl" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Undo the last action" +msgstr "Az utolsó művelet visszavonása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:182 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +msgid "Redo the last undone action" +msgstr "A visszavont művelet végrehajtása mégis" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "CtrlShift Z" +msgstr "CtrlShift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "A kijelölt szöveg vagy terület kivágása és vágólapra helyezése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:192 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:195 +msgid "Copy the selected text or region onto the clipboard" +msgstr "A kijelölt szöveg vagy terület másolása a vágólapra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:196 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:199 +msgid "Paste the contents of the clipboard" +msgstr "A vágólap tartalmának beillesztése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:200 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:203 +msgid "Select all text in the file" +msgstr "Minden szöveg kijelölése a fájlban" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:204 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:207 +#| msgid "Select all text in the file" +msgid "Unselect all text" +msgstr "Minden szöveg kijelölésének megszüntetése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:208 +#| msgid "CtrlW" +msgid "CtrlBackslash" +msgstr "CtrlVisszaper" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "Delete the current line" +msgstr "A jelenlegi sor törlése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:212 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Move the selected line up one line" +msgstr "A kijelölt sor egy sorral feljebb mozgatása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:216 +msgid "AltUp Arrow" +msgstr "AltFel nyíl" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "Move the selected line down one line" +msgstr "A kijelölt sor egy sorral lejjebb mozgatása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:220 +msgid "AltDown Arrow" +msgstr "AltLe nyíl" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "Add a tab stop" +msgstr "Tabulátor hozzáadása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:224 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "Remove a tab stop" +msgstr "Tabulátor eltávolítása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:228 +msgid "ShiftTab" +msgstr "ShiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "Convert the selected text to upper case" +msgstr "A kijelölt szöveg nagybetűssé alakítása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:232 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "Convert the selected text to lower case" +msgstr "A kijelölt szöveg kisbetűssé alakítása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:236 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:239 +msgid "Toggle case of the selected text" +msgstr "A kijelölt szöveg kis- és nagybetűsségének átváltása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:240 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:243 +msgid "Toggle cursor visibility" +msgstr "Kurzor láthatósága be/ki" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:244 +#| msgid "Tab" +msgid "F7" +msgstr "F7" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:250 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Ablaktáblákat elrejtő és megjelenítő gyorsbillentyűk" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:259 +msgid "Show / hide the side panel" +msgstr "Oldalpanel megjelenítése/elrejtése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:260 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:263 +msgid "Open the file menu" +msgstr "A Fájl menü megnyitása" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:264 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:270 +#| msgid "Shortcut keys for tools" +msgid "Shortcut keys for navigation" +msgstr "Gyorsbillentyűk a navigációhoz" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:279 +msgid "Move to matching bracket" +msgstr "Ugrás a zárójelpár másik tagjához" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:280 +#| msgid "CtrlW" +msgid "Ctrl%" +msgstr "Ctrl%" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:283 +msgid "Goto line" +msgstr "Ugrás sorra" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:284 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:287 +msgid "Move to the beginning of the current line" +msgstr "Az aktuális sor elejére lépés" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:288 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:291 +msgid "Move to the end of the current line" +msgstr "Az aktuális sor végére lépés" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:292 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:295 +msgid "Move to the beginning of the document" +msgstr "Ugrás a dokumentum elejére" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:296 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:299 +msgid "Move to the end of the document" +msgstr "Ugrás a dokumentum végére" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:300 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:303 +msgid "Move viewport up within the file" +msgstr "Nézőpont mozgatása felfelé a fájlban" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:304 +#| msgid "CtrlAltN" +msgid "ShiftAltUp" +msgstr "ShiftAltFel" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:307 +msgid "Move viewport down within the file" +msgstr "Nézőpont mozgatása lefelé a fájlban" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:308 +#| msgid "CtrlAlt PageDown" +msgid "ShiftAltDown" +msgstr "ShiftAltLe" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:311 +#| msgid "Move to the beginning of the document" +msgid "Move viewport to beginning of file" +msgstr "Nézőpont mozgatása a fájl elejére" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:312 +#| msgid "CtrlAltN" +msgid "ShiftAltHome" +msgstr "ShiftAltHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:315 +msgid "Move viewport to end of file" +msgstr "Nézőpont mozgatása a fájl végére" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:316 +#| msgid "CtrlAltN" +msgid "ShiftAltEnd" +msgstr "ShiftAltEnd" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:322 +msgid "Shortcut keys for searching" +msgstr "Gyorsbillentyűk a kereséshez" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:331 +msgid "Find a string" +msgstr "Karakterlánc keresése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:332 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:335 +msgid "Find the next instance of the string" +msgstr "A karakterlánc következő előfordulására ugrás" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:336 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:339 +msgid "Find the previous instance of the string" +msgstr "A karakterlánc előző előfordulására ugrás" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:340 +msgid "CtrlShiftG" +msgstr "CtrlShiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:343 +msgid "Search and Replace" +msgstr "Keresés és csere" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:344 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:347 +msgid "Clear highlight" +msgstr "Kiemelés törlése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:348 +msgid "CtrlShift K" +msgstr "CtrlShift K" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:355 +msgid "Shortcut keys for tools" +msgstr "Gyorsbillentyűk az eszközökhöz" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:364 +msgid "Check spelling" +msgstr "Helyesírás-ellenőrzés" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:365 +msgid "ShiftF7" +msgstr "ShiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:368 +msgid "Remove trailing spaces (with plugin)" +msgstr "Sorvégi szóközök törlése (bővítménnyel)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:369 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:372 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "A „make” futtatása az aktuális könyvtárban (bővítménnyel)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:373 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:376 +msgid "Directory listing (with plugin)" +msgstr "Könyvtár listázása (bővítménnyel)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:377 +msgid "CtrlShift D" +msgstr "CtrlShift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:384 +msgid "Shortcut keys for user help" +msgstr "Súgó gyorsbillentyűi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:393 +msgid "Open the gedit user guide" +msgstr "A gedit súgójának megjelenítése" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:394 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "A dokumentum gépelési hibáinak ellenőrzése." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "A dokumentum helyesírásának ellenőrzése" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Helyesírás-ellenőrző bekapcsolása" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"A helyesírás-ellenőrzés funkciót a geditben egy bővítmény " +"biztosítja, amely igény szerint engedélyezhető. A bővítmény engedélyezéséhez:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Válassza a Helyesírás-ellenőrző bejegyzést a " +"bővítmény engedélyezéséhez." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Az elgépelt szavak kereséséhez a dokumentumban:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Válassza az Eszközök Helyesírás-ellenőrzés menüpontot." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Ha azt szeretné, hogy a gedit gépelés közben automatikusan " +"kiemelje az elgépelt szavakat a dokumentumban, akkor válassza az " +"EszközökElgépelt " +"szavak kiemelése menüpontot." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Helyesírás-ellenőrzés használata" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"A Helyesírás-ellenőrzés ablakban kiválaszthatja az elgépelt szavak megfelelő " +"helyettesítését. A helyesírás-ellenőrző által hibásnak vélt szó a " +"Hibásan írt szó: mellett vastagon jelenik meg. A következő " +"javítási műveletek közül választhat:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Az Erre: mezőbe beírhat egy szót, és a Szó ellenőrzése gombbal ellenőrizheti annak helyesírását." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"A Javaslatok: felsorolja a szóhoz elérhető " +"helyettesítéseket." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"A Kihagyás gomb lehetővé teszi a helyesírás-" +"ellenőrzés elhagyását az aktuális szó egy előfordulásának esetén." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"A Mindet kihagyja gomb lehetővé teszi a " +"helyesírás-ellenőrzés elhagyását az aktuális szó összes " +"előfordulásának esetén." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"A Módosítás gomb az elgépelt vagy ismeretlen szó " +"egy előfordulását lecseréli a Javaslatok: listában kiválasztott kifejezésre." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"A Mindet módosítja gomb az elgépelt vagy " +"ismeretlen szó összes előfordulását lecseréli a Javaslatok: listában kiválasztott kifejezésre." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"A Szó hozzáadása gomb lehetővé teszi az aktuális " +"szó felvételét a gedit Felhasználói szótárába. Az " +"egyéni szavak felvétele a Felhasználói szótárba lehetővé teszi a " +"geditnek, hogy felismerje a szót a dokumentumokban, és azt később " +"már ne emelje ki elgépeltként." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "A helyesírás-ellenőrzés nyelvének megadása" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Alapesetben a gedit az aktuális nyelvet használja a dokumentum " +"helyesírásának ellenőrzéséhez. Ha másik nyelvet szeretne használni, akkor " +"válassza az EszközökNyelv megadása menüpontot, majd válassza ki a használandó " +"nyelvet." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Szótárak" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +#| msgid "" +#| "gedit uses Enchant, a small system utility, for spell checking. " +#| "Enchant can use several different dictionaries to check your spelling. " +#| "Two such dictionary back-ends are Hunspell and Aspell." +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"A gedit az Enchant nevű segédeszközt használja a helyesírás-ellenőrzéshez. Az " +"Enchant több különböző szótárat is tud használni a helyesírás ellenőrzésére, " +"például a Hunspellt vagy az Aspellt." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Ha a használandó nyelv nem érhető el a geditben, akkor telepítse " +"a számítógép szoftvertelepítőjével vagy csomagkezelőjével a kívánt szótár-" +"háttérprogramot." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Szöveg kiemelése az olvasás megkönnyítéséhez." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Szintaxiskiemelés bekapcsolása" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Szintaxiskiemelés" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"A gedit számos jelölő-, programozási és tudományos nyelvhez " +"biztosít szintaxiskiemelést. Ha a gedit felismeri a megnyitott " +"fájlban használt szintaxist, akkor automatikusan kiemeli a szöveget." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Ha a szintaxis vagy a nyelv nem kerül kiemelésre indításkor, akkor " +"kiválaszthatja a megfelelő szintaxist vagy nyelvet a NézetKiemelési mód " +"menüpont, majd a kívánt szintaxis kiválasztásával. Ennek alternatívájaként " +"kiválaszthatja a szintaxisnevet a gedit ablak alján lévő listából." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Hasonló lapok csoportosítása." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Fájlok rendszerezése csoportosított lapokon" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Ha a gedit alkalmazásban több lappal dolgozik, ezeket csoportokba " +"szervezheti, így a megnyitott fájlokat átláthatóbban kezelheti. Az új " +"lapcsoport hozzáadásakor a gedit ablaka két ablaktáblára lesz " +"osztva, az új ablaktáblán megnyílik egy új „Névtelen dokumentum” és az aktív " +"lesz. Egy lapcsoportban fájlokat is megnyithat, ezen kívül a lapokat " +"áthelyezheti egyik lapcsoportból a másikba." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Új lapcsoport nyitása a gedit ablakban" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Új lapcsoport nyitásához tegye a következők egyikét:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"A főmenüben válassza a DokumentumokÚj lapcsoport menüpontot." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Nyomja le a CtrlAltN " +"billentyűkombinációt." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Ez a művelet két részre osztja a gedit ablakát, és az új " +"lapcsoportot tartalmazó ablaktábla az aktív lap jobb széléhez lesz helyezve. " +"Ezután a fogantyút szükség szerint balra és jobbra mozgathatja a hely " +"felosztásához a gedit ablaktáblái között." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"A képernyőmérettől függően több lapcsoportot is megnyithat a gedit alkalmazásban, de a megfelelő láthatósághoz mozgatnia kell a fogantyút." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Egy lapcsoport ablaktábla bezárásához csak zárja be az összes benne nyitott " +"lapot." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Mozgás a lapcsoportok között" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "A következő lapcsoportra ugráshoz tegye a következők egyikét:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"A főmenüben válassza a DokumentumokKövetkező " +"lapcsoport menüpontot." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Használja a ShiftCtrlAltPage " +"down billentyűkombinációt." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Az előző lapcsoportra ugráshoz tegye a következők egyikét:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"A főmenüben válassza a DokumentumokElőző lapcsoport menüpontot." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Használja a ShiftCtrlAltPage " +"up billentyűkombinációt." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Egy lap áthelyezése másik lapcsoportba" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "" +"Ha egy lapot az egyik lapcsoportból a másikba szeretné mozgatni, tegye a " +"következők egyikét:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Kattintson, és tartsa lenyomva az egérgombot a lapon." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Húzza a lapot egy másik lapcsoport-ablaktáblába." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Helyezze az új lapcsoportban lévő lapok mellé." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Engedje fel az egérgombot." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"A lapcsoportok kezelésének megkönnyítéséhez nézze meg a lapokkal kapcsolatos gyorsbillentyűk táblázatát." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Lap elhelyezkedésének módosítása a gedit ablakban." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Lapok mozgatása és átrendezése" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"A gedit lapjai áthelyezhetők, így egyszerűbbé teszik a fájlok " +"kezelését. A lapok áthelyezhetők ugyanazon az ablakon belül, kihúzhatók a " +"gediten kívülre (így új gedit ablakot hozva létre), és " +"az egyik ablakból a másikba mozgathatók." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Lapok sorrendjének módosítása a gedit ablakban" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Lapok sorrendjének megváltoztatásához egy ablakban:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Mozgassa a lapot a kívánt helyre a többi lap között." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"A lap az elengedési helyhez legközelebbi helyre kerül, közvetlenül a " +"megnyitott lapok mellé." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Lap mozgatása új gedit ablak létrehozásával" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Új ablak létrehozásához meglévő lapból:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Húzza ki a lapot a gedit ablakból." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"A lap a teljes méretű gedit ablakból új ablakba mozgatásához " +"húzza a lapot a képernyő tetején lévő felső sávra." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Lap másik gedit ablakba mozgatása" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Ha egy lapot az egyik ablakból a másikba szeretné mozgatni:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Húzza a lapot az új ablakba." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Helyezze az új ablakban lévő lapok mellé." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Egyszerűbb megoldás lehet a lapok egyik ablakból másikba helyezésére, ha a " +"lapot a GNOME Shell Tevékenységek sarkába húzza. Ekkor " +"megjelenik az összes nyitott gedit ablak. Ezután a lapot " +"ráejtheti a kívánt gedit ablakra." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Lásd a lapokkal kapcsolatos " +"gyorsbillentyűk táblázatát a lapok kezelésének megkönnyítéséhez." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Lapok létrehozása vagy bezárása a gedit ablakban." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Lapok hozzáadása és eltávolítása" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"A lapok kezelése a geditben lehetővé teszi számos fájl szemmel " +"tartását egyetlen ablakban. A többinél nagyobb lap jelzi a jelenleg nyitott " +"fájlt. A kisebb lapok további fájlokat jeleznek, amelyeken szintén dolgozhat." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Lapok hozzáadása" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Új lap hozzáadásához hozzon létre egy új fájlt a CtrlT billentyűkombinációval. A lap a többi laptól " +"jobbra kerül felvételre." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Lapok eltávolítása" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Lap eltávolításához kattintson a lap jobb oldalán lévő × gombra. Az összes nyitott lap eltávolításához nyomja meg a " +"Ctrl ShiftW kombinációt." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Legutóbbi változtatások visszavonása a fájlokban." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Utolsó művelet visszavonása" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Ha hibát követett el a gedit használata közben, a hibás műveletet " +"egyszerűen visszavonhatja a CtrlZ " +"billentyűkombinációval." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Ha bezárt egy fájlt a gedit alkalmazásban, a változtatások nem " +"vonhatók vissza." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit szövegszerkesztő" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit szövegszerkesztő" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "A gedit súgójának honlapja." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit szövegszerkesztő" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Üdvözöljük a gedit súgójában. A gedit alapvető " +"funkcióinak bemutatásáért, valamint a gyorsbillentyűkkel kapcsolatban nézze " +"meg A gedit bemutatása és a Gyorsbillentyűk oldalakat." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"A további súgótémakörök az alábbi szakaszokban vannak csoportosítva. Sok " +"sikert a gedit használatához!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Fájlok kezelése" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "A gedit beállítása" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "gedit bővítmények" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Nyomtatás a gedittel" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Nevezd meg!-Így add tovább! 3.0 átíratlan licenc" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Ez a munka a <_:link-1/> feltételei szerint használható." + diff --git a/help/id/id.po b/help/id/id.po new file mode 100644 index 0000000..4cdafaa --- /dev/null +++ b/help/id/id.po @@ -0,0 +1,3543 @@ +# Indonesian translation for gedit. +# Copyright (C) 2013 gedit's COPYRIGHT HOLDER +# This file is distributed under the same license as the gedit package. +# Andika Triwidada , 2013-2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2020-09-25 14:07+0000\n" +"PO-Revision-Date: 2020-10-05 18:36+0700\n" +"Last-Translator: Andika Triwidada \n" +"Language-Team: Indonesian \n" +"Language: id\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.1\n" +"X-Poedit-Bookmarks: -1,118,-1,-1,-1,-1,-1,-1,-1,-1\n" +"Plural-Forms: nplurals=2; plural=n>1;\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Andika Triwidada , 2013, 2014, 2017, 2020\n" +"Kukuh Syafaat , 2016" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Ubah teks dan warna latar belakang di gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Ubah skema warna" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit menyertakan beberapa skema warna, yang memungkinkan Anda " +"mengubah penampilan jendela teks utama." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Untuk mengubah skema warna:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Tekan tombol menu di pojok kanan atas jendela dan pilih PreferensiFonta & Warna." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Pilih skema warna yang Anda inginkan." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Skema warna baru akan seketika diterapkan." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Memakai Skema Warna Gubahan" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Anda juga dapat memakai skema warna yang telah dibuat oleh orang lain, atau " +"membuat skema warna Anda sendiri." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Petunjuk tentang cara memasang skema warna kustom, serta contoh skema warna " +"yang dapat Anda unduh dan gunakan, tersedia di wiki gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Menggunakan fonta kustom untuk teks Anda di gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Ubah fonta baku" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit akan memakai fonta lebar tetap sistem secara baku, tapi " +"Anda bisa mengubah fonta baku gedit agar sesuai dengan kesukaan " +"Anda." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Untuk mengubah fonta baku dalam gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Pilih gedit Preferensi Fonta & Warna." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Jangan contreng kotak di sebelah frasa \"Pakai fonta lebar tetap sistem\"." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Klik pada nama fonta kini. gedit akan membuka suatu jendela " +"pemilih fonta, memungkinkan Anda melihat fonta yang tersedia dan memilih " +"satu yang Anda suka." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Setelah Anda memilih fonta baru, gunakan penggeser di bawh daftar " +"fonta untuk menata ukuran fonta baku." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Klik Pilih, lalu klik Tutup." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Keluar dari berkas yang Anda gunakan." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Tutup berkas" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Untuk menyimpan berkas dalam gedit, klik × yang muncul di sisi kanan tab berkas, atau tekan CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Sebarang aksi ini akan menutup suatu berkas dalam gedit. Bila " +"berkas Anda memuat perubahan yang belum disimpan, gedit akan " +"bertanya apakah Anda akan menyimpan perubahan tersebut sebelum menutup " +"berkas." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Membuka berkas baru untuk menyunting." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Buat berkas baru" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"Cara termudah untuk membuat berkas baru dalam gedit, adalah " +"dengan mengklik tombol Buat dokumen baru di sisi kiri bilah " +"kepala, atau tekan CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Sebarang aksi ini akan membuat suatu berkas baru dalam jendela gedit. Bila Anda memiliki berkas lain yang dibuka dalam gedit, " +"berkas baru yang Anda buat akan muncul sebagai tab baru di sebelah kanan " +"berkas-berkas tersebut." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Gunakan hak akses administratif untuk menyunting berkas." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Sunting suatu berkas sebagai pengguna root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Menyunting berkas sebagai pengguna root secara potensial berbahaya, dan " +"mungkin merusak sistem Anda. Berhati-hatilah ketika menyunting berkas " +"sebagai pengguna root." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Untuk menyunting berkas sebagai pengguna root, luncurkan gedit " +"dari terminal dengan memasukkan:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Memakai perintah sudo, Anda akan perlu berhasil memasukkan sandi " +"Anda sebelum gedit terbuka." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Sebagai alternatif dari perintah sudo, Anda bisa memperoleh " +"privilese administratif dengan memasukkan:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Anda kemudian meluncurkan gedit memakai perintah gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Sekali Anda membuka gedit dengan privilese administratif, " +"gedit akan mempertahankan privilese tersebut sampai Anda " +"menutupnya." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Pelajari dasar-dasar bagaimana bekerja dengan berkas dalam gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Dasar berkas: Buka, tutup, dan simpan berkas" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Bila Anda baru memakai gedit, topik ini akan membantu Anda dalam " +"membuat, menyimpan, membuka, dan menutup berkas." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Setel gedit untuk menggunakan seluruh layar." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Memakai mode layar penuh" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Ketika bekerja dengan suatu dokumen besar, mungkin Anda rasakan membantu " +"untuk bekerja dalam gedit mode layar penuh. Memakai mode layar " +"penuh akan menyembunyikan bilah menu bilah tab, dan " +"bilah alat, menyajikan lebih banyak teks Anda dan memungkinkan " +"Anda fokus lebih baik ke tugas Anda." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Menyalakan mode layar penuh" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Untuk menyalakan mode layar penuh, tekan F11. Menu, judul, dan " +"bilah tab gedit, akan tersembunyi dan Anda akan mendapat " +"penyajian hanya teks dari berkas saat ini." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Bila Anda perlu melakukan suatu aksi dari menu gedit ketika " +"bekerja dalam mode layar penuh, gerakkan penunjuk tetikus Anda ke puncak " +"layar. Bilah menu gedit akan muncul kembali, dan Anda dapat " +"memilih aksi yang Anda inginkan." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Untuk bertukar antara tab yang terbuka dalam mode layar penuh, tekan " +"CtrlAltPgUp atau " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Matikan mode layar penuh" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Untuk mematika mode layar penuh dan kembalik ke jendela gedit " +"standar, tekan F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Anda juga dapat menggerakkan kursor tetikus Anda ke puncak layar, dan " +"menunggu bilah menu muncul. Ketika bilah menu muncul, " +"pilih tombol Tinggalkan Layar Penuh." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Gunakan panel sisi gedit sebagai peramban berkas." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Melihat dan membuka berkas dari panel sisi" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Cara paling umum untuk bertukar antar berkas dalam gedit adalah " +"dengan memakai tab pada puncak jendela gedit. Dalam beberapa " +"kasus, khususnya ketika Anda bekerja dengan sejumlah besar berkas yang " +"terbuka, Anda mungkin merasakan lebih mudah memakai panel sisi." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Untuk mengaktifkan panel sisi, pilih Tilikan Panel " +"Sisi, atau cukup tekan tombol F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Anda dapat membuka atau menutup panel sisi dengan menekan F9 " +"kapanpun." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Membuka berkas dari panel sisi" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Untuk membuka berkas dari panel sisi, pertama buka panel sisi dengan memilih " +"Tilikan Panel Sisi (atau tekan saja " +"F9), lalu klik ikon Peramban Berkas dari dropdown di " +"puncak panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Ini akan mengaktifkan mode Peramban Berkas dari panel sisi. Anda " +"kemudian dapat memakai tombol navigasi di puncak panel untuk mencari dan " +"membuka berkas yang Anda inginkan." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Menggunakan panel sisi untuk bertukar antara berkas yang terbuka" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Sekali Anda memiliki beberapa berkas yang terbuka, Anda dapat memakai panel " +"sisi untuk berpindah antara berkas yang terbuka. Untuk melihat daftar berkas " +"yang terbuka, pilih Dokumen dari dropdown di puncak panel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Mengklik pada sebarang nama berkas pada panel sisi akan membuka berkas " +"tersebut untuk penyuntingan." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Membuka berkas untuk mulai bekerja." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Buka suatu berkas atau suatu set berkas" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Untuk membuka berkas dalam gedit klik tombol Buka, " +"atau tekan CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Ini akan menyebabkan dialog Buka muncul. Gunakan tetikus atau " +"papan tik Anda untuk memilih berkas yang ingin Anda buka, lalu klik " +"Open. Berkas yang telah Anda pilih akan dibuka dalam suatu tab " +"baru." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Untuk menutup dialog Buka tanpa membuka suatu berkas, klik " +"Batal." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Anda dapat memakai tombol Ctrl dan Shift untuk membuka " +"lebih dari satu berkas pada saat yang sama. Bila Anda menahan tombol " +"Ctrl ketika Anda memilih berkas bergada, mengklik Open " +"akan membuka masing-masing berkas yang telah Anda pilih." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Menahan Shift ketika Anda memilih berkas berganda akan membuka " +"berkas pertama yang Anda pilih, berkas terakhir yang Anda pilih, dan semua " +"berkas diantaranya." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Akses berkas yang disimpan pada komputer yang berbeda." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Buka suatu berkas yang terletak pada suatu server" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Sebelum membuka suatu berkas pada server dari gedit, Anda perlu " +"tahu beberapa informasi teknis tentang server. Sebagai contoh, Anda perlu " +"tahu Alamat IP atau URL server, dan mungkin perlu tahu apa jenis server itu " +"(mis. HTTP, FTP, dsb.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Juga, beberapa tipe server menerapkan pembatasan atas apa yang dapat Anda " +"lakukan pada berkas yang disimpan pada server. Sebagai contoh, Anda mungkin " +"bisa membuka berkas dari suatu server, tapi mungkin perlu menyimpan sebarang " +"perubahan ke berkas sercara lokal, pada komputer Anda." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Dengan memahami catatan khusus itu, lakukan langkah-langkah berikut untuk " +"membuka berkas dari suatu server memakai gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Di bilah kepala, klik Buka." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Klik Lokasi Lain." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Masukkan Alamat IP atau URL dari server yang sesuai." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Cari dan pilih berkas yang ingin Anda buka." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Gunakan daftar drop down Pengodean Karakter untuk memilih pengodean karakter " +"yang sesuai." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Klik Buka." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Tipe URI yang valid termasuk http:, ftp:, file:, dan semua metoda yang " +"didukung oleh GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Berkas dari beberapa tipe URI dibuka sebagai hanya-baca, dan sebarang " +"perubahan yang Anda buat mesti disimpan ke lokasi berbeda. Sebagai contoh, " +"HTTP hanya mengijinkan berkas untuk dibaca. Berkas yang dibuka dari FTP " +"hanya-baca karena tidak semua server FTP bisa bekerja dengan benar untuk " +"menyimpan berkas jarak jauh." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Akses berkas yang sebelumnya telah Anda buka di gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Buka ulang berkas yang baru-baru ini dipakai" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit menyediakan akses mudah ke sepuluh berkas Anda yang baru-" +"baru ini digunakan, yang sebelumnya telah dibuka di gedit. " +"Berikut adalah cara membuka berkas yang baru-baru ini digunakan:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "Klik tombol panah di samping tombol Buka di bilah kepala." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "" +"gedit akan menampilkan menu dengan sepuluh berkas yang terakhir " +"digunakan." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Pilih berkas yang diinginkan, dan itu akan dibuka di tab baru." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Saat melayang dengan tetikus di atas berkas yang baru saja digunakan dari " +"menu, path lengkap ke berkas ditampilkan di bilah status di bagian bawah " +"jendela gedit." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Gunakan plugin untuk menyesuaikan cara gedit bekerja untuk Anda." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Menata dan memakai pengaya gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Anda dapat melakukan lebih banyak hal dengan gedit memakai " +"plugin. Beberapa plugin terpasang secara baku, tapi sejumlah besar plugin " +"lain tersedia secara terpisah." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Banyak distribusi Linux yang membuat grup plugin ini tersedia sebagai suatu " +"paket gedit-plugins. Pasanglah paket gedit-plugins " +"untuk membuat plugin tambahan ini tersedia bagi gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Pasang gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Pengaya gedit baku" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Plugin tambahan gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Ubah besar kecil huruf teks yang dipilih." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Ubah kapitalisasi" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Plugin ini membantu Anda mengubah huruf besar kecil dari bagian teks yang " +"dipilih. Anda dapat memakainya untuk mengubah teks menjadi semua huruf " +"kecil, semua huruf besar, membalik besar kecil huruf, atau menerapkan huruf " +"besar judul. Untuk memfungsikan plugin ini, pilih geditPreferensi PluginUbah Kapitalisasi." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Sekali plugin Ubah Kapitalisasi difungsikan, Anda dapat memakainya " +"dengan melengkapi langkah berikut:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Sorot bagian teks yang ingin Anda ubah." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Pilih geditUbah Kapitalisasi" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Pilih opsi pemformatan teks yang Anda kehendaki." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Pemutakhiran ke pemformatan teks akan terjadi seketika." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Opsi Balik Kapitalisasi akan mengkonversi semua huruf kecil " +"menjadi huruf besar, dan semua huruf besar menjadi huruf kecil." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Opsi Kapitalisasi Judul akan mengkonversi huruf pertama dari " +"setiap kata ke huruf besar. Semua huruf lain akan diubah menjadi huruf kecil." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Bila Anda belum menyorot teks manapun, fitur Ubah Kapitalisasi akan " +"menjadi kelabu. Anda perlu memilih suatu bagian teks sebelum Anda memakai " +"fitur Ubah Kapitalisasi." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Lihat statistik dokumen." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Statistik dokumen" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Plugin Statistik Dokumen menunjukkan berbagai statistik tentang " +"dokumen Anda saat ini. Untuk memfungsikan plugin ini, pilih geditPreferensi " +"PluginStatistik Dokumen." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Memakai Statistik Dokumen" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Sekali plugin difungsikan, gunakanlah dengan memilih Perkakas Statistik Dokumen. Suatu jendela akan menampilkan " +"informasi statistik dari dokumen Anda, termasuk banyaknya kata, baris, " +"karakter, karaktor bukan spasi, dan ukuran berkas Anda dalam byte." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Anda juga bisa memakai Statistik Dokumen untuk menampilkan " +"informasi tentang hanya sebagian dokumen Anda. Untuk melakukan ini, gunakan " +"penunjuk tetikus untuk memilih bagian teks yang ingin Anda periksa, lalu " +"pilih PerkakasStatistik Dokumen. " +"Gedit akan menampilkan informasi untuk seluruh dokumen Anda dan " +"bagian teks yang Anda sorot." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Jalankan skrip pada berkas Anda saat ini, dan berinteraksi dengan aplikasi " +"lain." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Alat Luar" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Plugin Alat Eksternal dapat membantu menyederhanakan tugas " +"berulang. Khususnya, ini memperluas gedit dengan membantu Anda " +"menjalankan skrip pada berkas kerja Anda, dan dengan mengijinkan gedit untuk berinteraksi dengan program lain pada komputer Anda. Untuk " +"memfungsikan plugin Perkakas Eksternal, pilih gedit PreferensiPlugin Perkakas Eksternal." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Menata pengaya alat eksternal" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Sekali Anda memfungsikan plugin, Anda akan perlu menatanya agar cocok dengan " +"kebutuhan Anda. Opsi konfigurasi tersedia dengan memilih " +"PerkakasKelola Perkakas Luar." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Plugin ini untuk pengguna tingkat lanjut, dan memerlukan pengetahuan " +"penulisan skrip agar bisa dipakai secara efektif. Gunakan plugin ini dengan " +"hati-hati, karena kesalahan pada skrip Anda bisa mempengaruhi pekerjaan Anda " +"dengan cara yang tak diinginkan." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Menggunakan panel sisi untuk meramban dan membuka berkas." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panel peramban berkas" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Tergantung pada bagaimana Anda menggunakan gedit, Anda mungkin " +"merasa berguna untuk menggunakan pengaya Panel Peramban Berkas. " +"Pengaya ini menyematkan peramban berkas di panel samping, memberi " +"Anda akses mudah ke berkas yang sering digunakan." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Anda dapat memfungsikan panel sisi dengan memilih geditPreferensi PluginPanel Peramban Berkas." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Sisipkan tanggal/waktu saat ini pada posisi kursor sekarang." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Menyisipkan tanggal/waktu" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Sebagaimana yang disarankan oleh nama pengaya ini, pengaya Sisipkan " +"Tanggal/Waktu memungkinkan Anda untuk menyisipkan tanggal dan/atau " +"waktu pada posisi kursor saat ini." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Untuk memfungsikan pengaya:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Tekan tombol menu di pojok kanan atas jendela dan pilih Preferensi Pengaya." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Pilih Sisipkan Tanggal/Waktu untuk " +"memfungsikan pengaya." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Untuk memakai pengaya, tekan tombol menu di pojok kanan atas jendela dan " +"pilih Perkakas Sisipkan Tanggal dan Waktu…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Secara baku, pengaya Masukkan Tanggal/Waktu akan meminta Anda " +"memilih format tanggal/waktu yang Anda sukai setiap kali Anda memakai " +"pengaya tersebut. Namun, Anda dapat memilih format tanggal dan waktu baku " +"Anda sendiri dengan menekan tombol menu di pojok kanan atas jendela dan " +"memilih PreferensiPengayaSisipkan Tanggal/WaktuPreferensi." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Bagaimana memasang plugin pihak ketiga." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Plugin tambahan gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Memasang plugin pihak ketiga memberi Anda fungsionalitas ekstra yang tak " +"tersedia dalam plugin gedit baku, atau bahkan plugin ekstra yang " +"menjadi bagian dari paket gedit-plugins. Suatu daftar daring dari " +"plugin pihak ketiga disimpan di sini." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Memasang suatu plugin pihak ketika melibatkan mengunduh plugin, menempatkan " +"berkas plugin dalam direktori yang benar, dan mengaktifkan plugin." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Anda biasanya dapat mengunduh suatu plugin dari situs web plugin, tapi " +"mungkin perlu memakai suatu program kendali revisi seperti git, " +" bazaar, atau subversion untuk menyalin suatu " +"repositori perangkat lunak plugin dari internet. Lihatlah dokumentasi plugin " +"untuk informasi tentang mendapatkan plugin." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Tempatkan berkas plugin ke dalam direktori /home/namapengguna/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Tentu saja, ganti kata namapengguna dengan nama penggunamu " +"sendiri." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Setelah Anda menempatkan berkas pengaya ke dalam direktori yang benar, " +"pengaya akan muncul dalam menu Preferensi. Tekan tombol menu di pojok kanan " +"atas jendela dan pilih PreferensiPengaya[Nama Pengaya] untuk " +"memfungsikan plugin." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Klik Tutup." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Setelah Anda memfungsikan plugin, itu mestinya jadi siap untuk Anda pakai." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Direktori .local tersembunyi secara baku. Untuk menilik itu dan " +"berkas tersembunyi lainnya, pilih TilikTampilkan " +"Berkas Tersembunyi, atau tekan CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Bila direktori .local/share/gedit/plugins/ tak ada dalam sistem " +"Anda, Anda perlu membuatnya." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Dukungan baris mode gaya Emacs, Kate, dan Vim bagi gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Baris Mode" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Plugin Baris Mode memungkinkan gedit untuk " +"menganalisis baris-baris teks di awal dan akhir berkas, lalu menerapkan " +"suatu set preferensi dokumen ke berkas. Plugin Baris Mode " +"mendukung suatu subset dari opsi-opsi yan dipakai oleh penyunting teks " +"Emacs, Kate, dan Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Untuk memfungsikan plugin Baris Mode, pilih gedit PreferensiPluginBaris Mode." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Opsi Baris Mode Umum" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "Opsi-opsi berikut dapat ditata memakai baris mode gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Lebar tab" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Lebar indentasi" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Menyisipkan spasi sebagai ganti tab" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Pelipatan Teks" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Lebar marjin kanan" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Preferensi yang ditata memakai baris mode menimpa yang dinyatakan dalam " +"dialog preferensi." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Baris Mode Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Dua baris pertama dari dokumen dipindai untuk memeriksa baris mode " +"Emacs, dan gedit mendukung opsi baris mode Emacs berikut:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Untuk lebih banyak informasi tentang baris mode Emacs, kunjungi " +"Manual " +"GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Baris Mode Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Baris pertama dan sepuluh baris terakhir dari suatu dokumen dipindai untuk " +"memeriksa baris mode Kate, dan gedit mendukung opsi " +"baris mode Kate berikut:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Untuk lebih banyak informasi tentang baris mode Kate, kunjungi " +"situs web Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Modeline Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Baris pertama dan tiga baris terakhir dari suatu dokumen dipindai untuk " +"memeriksa baris mode Vim, dan gedit mendukung opsi " +"baris mode Vim berikut:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Untuk lebih banyak informasi tentang baris mode Vim, kunjungi " +"situs web Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Menambahkan konsol Python interaktif ke panel bawah." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Konsol Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Anda dapat menambahkan suatu konsol Python ke panel di dasar, yang " +"memungkinkan Anda menguji skrip Python tanpa meninggalkan gedit. " +"Untuk memfungsikan konsol Pyhton, pilih gedit PreferensiPlugin Konsole " +"Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Sekali konsol Python difungsikan, Anda dapat membukanya dengan memilih " +"TilikPanel Bawah." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Bila Anda juga memfungsikan plugin Terminal Tertanam, Konsol " +"Python akan muncul sebagai tab terpisah dalam panel bawah." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Membuka secara cepat satu berkas atau satu set berkas." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Buka cepat" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Seperti yang disiratkan oleh nama plugin ini, plugin Buka Cepat " +"membantu Anda untuk membuka berkas secara lebih cepat daripada memakai cara " +"biasa untuk membuka berkas. Untuk memfungsikan plugin ini, pilih " +"gedit PreferensiPluginBuka Cepat." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Sekali Anda telah memfungsikan plugin Buka Cepat Anda dapat " +"memakainya sebagai berikut:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Buka kotak dialog Buka Cepat dengan menekan CtrlAltO, atau dengan memilih Buka Cepat." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Dialog berkas Buka Cepat akan muncul." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Gunakan tetikus Anda untuk memilih berkas atau berkas-berkas yang ingin Anda " +"buka." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Untuk memilih beberapa berkas individu, tahan tombol Ctrl Anda " +"ketika Anda mengklik pada berkas yang ingin Anda buka." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Untuk memilih sekelompok berkas, klik pada berkas pertama yang ingin Anda " +"buka, tahan tombol Shift, lalu klik pada berkas terakhir dalam " +"daftar yang ingin Anda buka." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Buka Cepat akan mencari berkas dalam:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Direktori dari dokumen yang sedang dibuka" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"Direktori root dari pengaya Panel " +"Peramban Berkas" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Dokumen baru-baru ini yang juga ditampilkan dalam folder Baru-baru " +"Ini dalam Berkas" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Direktori yang telah dimarkah dalam Berkas" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Direktori Desktop Anda" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Direktori Rumah Anda" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Buka Cepat menampilkan berkas dalam sebarang lokasi di atas tanpa " +"peduli apakah Anda sebelumnya pernah membukanya atau belum." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Memakai snippet untuk secara cepat menyisipkan penggalan teks yang sering " +"dipakai." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Snippet" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Snippet menyediakan cara yang mudah untuk menyisipkan bagian kode " +"yang berulang ke dalam berkas Anda. Sebagai contoh, suatu snippet HTML bagi " +"tag <img> akan menyisipkan bagian pembuka dan penutup " +"dari tag, maupun tempat-tempat tetap dimana Anda dapat memasukkan atribut " +"gambar. Ini dapat membuat penulisan kode lebih mudah dan cepat." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Fungsikan Pengaya Snippet" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Untuk memfungsikan plugin Snippet:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Pilih gedit Preferensi Plugin." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Pilih Snippets untuk memfungsikan plugin." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Ramban Snippet" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Untuk meramban snippet yang tersedia:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Pilih Perkakas Kelola Snippet." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Pastikan bahwa sintaks ditata secara sesuai. Bilah status di dasar jendela " +"gedit akan menampilkan pengaturan bahasa saat ini. Pengaturan " +"bahasa inilah yang memungkinkan gedit menyisipkan snippet yang benar. " +"gedit akan secara normal mendeteksi bahasa atau sintaks dari " +"berkas yang sedang Anda pakai, tapi kadang-kadang Anda mungkin perlu " +"menatanya." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Dalam contoh ini, bahasa diatur ke HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "-" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Ramban snippet yang tersedia bagi bahasa atau sintaks Anda." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Memakai Snippet" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Untuk menyisipkan suatu snippet ke dalam dokumen Anda saat ini:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Ketikkan nama snippet yang dikehendaki dimanapun dalam dokumen Anda saat ini." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Tekan Tab untuk menyisipkan snippet yang terkait dengan istilah " +"masukan." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Cara Pakai Contoh Snippet" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Sebagai contoh, bila Anda telah menata sintaks ke HTML, ketikkan " +"head, dan tekan tombol Tab. Teks akan dilengkapi " +"secara otomatis menjadi snippet:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Judul Halaman</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Menambah Snippet" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Anda dapat menambahkan snippet baru yang bekerja secara global (yaitu, " +"mereka agnostik bahasa) atau hanya dalam sintaks tertentu." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Pilih Perkakas Kelola Snippet." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Dari bilah sisi Kelola Snippet pilih sintaks yang diinginkan dan " +"klik pada tombol \"+\" untuk menampilkan daftar snippet yang ada untuk " +"sintaks yang dipilih." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Untuk menambahkan snippet yang bekerja secara global (yaitu, ketika sintaks " +"atau bahasa tertentu belum ditata bagi dokumen), pilih Global " +"dari bilah sisi Kelola Snippet." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Untuk menambah suatu snippet baru, klik pada ikon \"plus\" dalam bilah sisi " +"Kelola Snippet." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Masukkan suatu nama bagi snippet baru. Nama snippet bisa berbeda dari " +"snippet yang ingin Anda tambahkan." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Di bawah bagian Aktivasi, Anda mesti memasukkan " +"suatu istilah bagi area teks Pemicu tab:. Anda " +"akan memakai istilah ini untuk menyisipkan snippet Anda." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Bila Anda hendak menyisipkan suatu snippet dengan pintasan papan tik, maka " +"klik penunjuk tetikus Anda pada wilayah teks Tombol " +"pintasan: dan tekan kombinasi tombol yang dikehendaki. Sekali Anda " +"telah menekan dan melepas tombol, pintasan papan tik akan ditata." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Di bahwa area teks bagi Sunting:, masukkan teks " +"yang dikehendaki bagi snippet. Anda bisa memakai ${n} untuk " +"mengindikasikan variabel, dimana n digantikan oleh suatu bilangan " +"yang mewakili urutan numerik dari variabel yang disertakan." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Contoh Snippet Baru" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Anggap saja Anda telah membuat suatu snippet dengan istilah greetings dalam in Pemicu tab:. Area teks Sunting: memuat:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Anda bisa menyisipkan snippet ini dengan mengetikkan greetings " +"dalam dokumen dan menekan tombol Tab. Snippet teks berikut akan " +"disisipkan:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Kata \"wonderful\" dan \"amazing\" bisa dipertahankan atau dihapus " +"bergantung kepada pilihan penggunaan Anda. Untuk melakukannya, tekan " +"Tab untuk memilih antara \"wonderful\" atau \"amazing\" dan tekan " +"Del untuk menghapus opsi yang paling tidak disukai." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Urutkan baris-baris teks secara alfabet." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Urutkan" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Plugin Urutkan mengatur baris-baris teks yang dipilih ke dalam urutan " +"alfabetis." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Fungsikan Pengaya Urutkan" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Untuk memfungsikan plugin Urutkan:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "Pilih Urutkan untuk memfungsikan plugin." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Memakai Plugin Urutkan" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Untuk memakai plugin Urutkan:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Pilih baris teks yang diinginkan." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Pilih Alat Urut…." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Dialog Urutkan akan terbuka, memungkinkan Anda memilih diantara " +"beberapa opsi pengurutan:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Urutan terbalik akan mengatur teks dalam urutan alfabetis " +"terbalik." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Hapus duplikat akan menghapus nilai yang duplikat dari daftar." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Abaikan kapitalisasi akan mengabaikan perbedaan huruf besar kecil." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Agar pengurutan mengabaikan karakter-karakter di awal baris, atur karakter " +"pertama yang mesti dipakai untuk mengurutkan dalam kotak spin kolom " +"Mulai pada." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Untuk melakukan operasi pengurutan, klik Urutkan." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Mengatur halaman untuk mencetak dalam urutan tertentu." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Membuat Salinan Dicetak Dalam Urutan Yang Benar" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Balikkan" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Pencetak biasanya mencetak halaman pertama di awal, dan halaman terakhir di " +"akhir, sehingga halaman-halaman tersusun terbalik ketika Anda memungutnya. " +"Untuk membalik urutan:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Pilih Berkas Cetak." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Dalam tab Umum dari dialog Cetak di bawah Salinan contreng Balik." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Halaman terakhir akan dicetak pertama, dan seterusnya." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Kolasi" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Bila Anda mencetak lebih dari satu salinan dokumen, secara baku cetakan akan " +"dikelompokkan menurut nomor halamannya. (yaitu, cetakan dari halaman pertama " +"keluar, lalu cetakan halaman kedua, dst). Kolasi akan membuat setiap salinan " +"keluar dengan halaman-halamannya dikelompokkan bersama." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Melakukan Kolasi:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Klik Berkas Cetak." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Dalam tab Umum dari dialog Cetak di bawah Salinan contreng Kolasi." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Cari dan pilih berkas yang ingin Anda buka dengan gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Mencetak dokumen" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Mencetak dengan gedit menuntut bahwa Anda Anda telah " +"menyambungkan dan menata pencetak Anda. Bila Anda belum melakukan hal ini, " +"silakan baca bantuan pencetakan bagi " +"GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit memungkinkan Anda mencetak ke berkas dan ke kertas." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Pratinjau Cetak" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Sebelum mencetak dokumen Anda, Anda dapat melihat bagaimana dokumen tercetak " +"akan terlihat dengan memakai Pratinjau Cetak. Untuk mempratinjau " +"dokumen:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Pilih Berkas Pratinjau Cetak. Sebagai alternative, Anda dapat menekan " +"ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Pratilik dokumen Anda akan terbuka dalam tab yang sama dengan berkas. Anda " +"dapat meramban pratilik ini dengan bantuan tombol navigasi dan perkakas " +"dalam bilah alat di puncak tab pratilik dokumen. Untuk menutup dan kembali " +"ke dokumen klik Tutup Pratilik." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Mencetak Ke Kertas" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Anda dapat mencetak dokumen Anda ke kertas memakai pencetak lokal atau jauh. " +"Untuk mencetak suatu berkas:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Pilih Berkas Cetak Umum." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Pilih pencetak yang diinginkan dari daftar pencetak yang tersedia." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Anda dapat mempratinjau berkas memakai Pratinjau " +"Cetak dan setelah Anda puas dengan pengaturan, klik Cetak untuk mengirim berkas ke pencetak." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Sebagai tambahan, dari tab Penyiapan Halaman: Anda " +"bisa memilih opsi Tata Letak dan Kertas. Karena pengaturan ini tersedia di seluruh program-" +"program GNOME, silakan pelajari bantuan Opsi Tata Letak dan Kertas." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Mencetak Beberapa Salinan Dan Memilih Halaman Tertentu" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Anda bisa mengatur opsi Jangkauan dan Salinan untuk membantu Anda:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Mencetak Ke Berkas" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Anda juga bisa memakai gedit untuk mencetak ke berkas. Untuk " +"mencetak dokumen Anda ke berkas dengan format berbeda:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Pilih Berkas Cetak Cetak ke Berkas." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"Pencetakan difungsikan untuk format-format berkas berikut, Anda bisa memilih " +"dari:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Untuk mencetak dokumen ke berkas, klik Cetak." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Pilih halaman yang ingin Anda cetak." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Hanya mencetak halaman tertentu" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Anda bisa mencetak secara selektif hanya halaman tertentu dari dokumen. " +"Sebagai contoh, bila Anda memasukkan nomor-nomor halaman \"1,3,5-7,9\", maka " +"hanya halaman 1, 3, 5, 6, 7, dan 9 yang akan dicetak. Untuk mencetak halaman-" +"halaman pilihan Anda:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Pilih Berkas Cetak…" +"." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Dalam tab Umum dari dialog Cetak di bawah Salinan contreng Jangkauan." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Ketikkan nomor-nomor halaman yang ingin Anda cetak dari dokumen, dipisahkan " +"dengan koma. Gunakan tanda hubung untuk menyatakan suatu jangkauan halaman." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Sebuah pengantar singkat untuk gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Mulai memakai gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit adalah penyunting teks berfitur lengkap bagi lingkungan " +"desktop GNOME. Anda bisa memakainya untuk menyiapkan dokumen dan catatan " +"serderhana, atau Anda bisa memakai fitur tingkat lanjutnya, membuatnya " +"menjadi lingkungan pengembangan perangkat lunak milik Anda sendiri." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "-" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Sekali gedit diluncurkan, Anda dapat langsung mulai menulis. " +"Untuk menyimpan teks Anda, klik saja tombol Simpan dalam bilah " +"kepala gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Untuk mempelajari fitur tambahan gedit dan untuk mendapat bantuan " +"dalam melaksanakan tugas-tugas tambahan, jelajahi bagian lain dari bantuan gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Ganti bagian dari teks dalam sebuah berkas." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Mengganti teks" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Menyunting teks bisa menghabiskan waktu. Untuk menghematnya, gedit menyertakan suatu fungsi Gantikan yang membantu Anda " +"menemukan dan menggantikan bagian dari teks." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Mengganti teks dalam gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Buka alat Gantikan dengan mengklik Tombol MenuCari dan Ganti… " +"atau tekan CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Masukkan teks yang hendak Anda ganti ke dalam ruas Mencari." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Masukkan teks pengganti yang baru ke dalam ruas Ganti dengan." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Sekali Anda telah memasukkan teks asli dan pengganti, Anda dapat menambah " +"parameter ekstra ke pencarian. Anda juga bisa memilih apa yang ingin Anda " +"gantikan:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Untuk mengganti hanya kecocokan berikutnya, klik Ganti." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Untuk mengganti semua kemunculan dari teks yang dicari, klik " +"Ganti Semua." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Pakailah fungsi Ganti Semua secara hati-hati. Ganti Semua bekerja pada seluruh berkas teks Anda, dan tidak mengijinkan Anda " +"menyorot bagian teks dimana fungsi penggantian akan dilaksanakan." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Lebih banyak opsi" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "" +"Bila Anda mau, Anda dapat menambah beberapa parameter ekstra ke pencarian " +"Anda:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Cocok huruf besar kecil" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Opsi Cocok huruf besar/kecil memungkinkan Anda menyatakan apakah " +"Anda ingin pencarian Anda membedakan huruf besar kecil. Bila opsi ini " +"dipilih, pencarian akan membedakan huruf besar kecil. Bila tidak, pencarian " +"tidak membedakan huruf besar kecil." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Cocok hanya seluruh kata" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Pakai opsi ini untuk mencari suatu kata tertentu tanpa menyertakan fragmen " +"dari kata lain. Sebagai contoh, bila Anda mencari kata 'and' dengan opsi ini " +"dipili, kata 'and' akan cocok, tapi kata 'sand' dan 'commander' tidak akan cocok." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Pencarian mundur" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Perintah ini berperilaku identik dengan perintah Cari Sebelumnya. Bila Anda " +"hendak menelusu melalui hasil pencarian dari akhir ke awal, pilih opsi ini." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Putar balik" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Dengan opsi putar balik difungsikan, gedit akan " +"mengulangi aksi cari/ganti di puncak berkas setelah mencapai bagian bawah " +"berkas. Ini memastikan bahwa aksi cari/ganti Anda dilakukan di seluruh " +"berkas Anda." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Memakai urutan escape" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Anda dapat memakai urutan escape untuk untuk jeda baris, tombol " +"kembali, dan tab." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Ganti baris" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Carriage return" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Bila Anda ingin mencari suatu \\ (backslash) atau satu dari " +"urutan escape dalam teks, Anda perlu meng-escape backslash dengan backslash " +"ekstra. Sebagai contoh, untuk mencari \\, Anda perlu " +"memasukkan \\\\ ke dalam ruas cari atau ganti. Anda dapat " +"mencari urutan escape dengan cara yang sama: untuk mencari atau mengganti " +"dengan \\n, gunakan istilah \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Simpan berkas Anda untuk bekerja nanti." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Menyimpan berkas" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Untuk menyimpan berkas dalam gedit, klik tombol Simpan di sisi kanan bilah kepala atau tekan saja " +"CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Bila Anda menyimpan suatu berkas baru, suatu dialog akan muncul, dan Anda " +"dapat memilih suatu nama bagi berkas, maupun direktori dimana Anda hendak " +"menyimpan berkas tersebut." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Cari bagian dari teks dalam sebuah berkas." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Mencari teks" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Alat Pencarian bisa membantu Anda mencari urutan teks tertentu dalam berkas " +"Anda." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Menemukan teks" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Buka jendela pencarian dengan mengklik Tombol Menu Temukan... atau " +"tekan CtrlF. Ini akan memindahkan " +"kursor Anda ke awal jendela pencarian." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "" +"Ketikkan teks yang hendak Anda cari dalam jendela pencarian." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Sembari Anda mengetik, gedit akan mulai menyorot bagian teks yang " +"cocok dengan apa yang telah Anda masukkan." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Untuk menggulung melalui hasil pencarian, lakukan sebarang dari yang berikut:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Klik pada panah arah naik atau turun di sebelah jendela pencarian." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Tekan tombol panah atas atau panah bawah pada papan " +"tik Anda." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Tekan CtrlG atau CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Untuk menutup jendela pencarian, tekan Esc atau " +"Enter. Menekan Esc akan mengembalikan kursor ke tempat " +"dimana Anda memulai pencarian. Menekan Enter akan mengembalikan " +"kursor ke posisi saat ini dari hasil pencarian." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Tips pencarian" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Bila Anda menyorot suatu bagian teks dengan tetikus Anda, lalu menekan " +"CtrlF, teks yang telah Anda sorot " +"akan muncul dalam jendela pencarian." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Untuk lebih banyak opsi pencarian, klik pada ikon Kaca " +"Pembesar dalam jendela pencarian, atau klik kanan di manapun dalam " +"jendela pencarian. Anda dapat memilih satu atau lebih opsi pencarian berikut:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Pilih Cocok Huruf Besar/Kecil untuk membuat pencarian membedakan " +"huruf besar/kecil." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "Pilih Cocok Seluruh Kata untuk mencari hanya kata lengkap." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Pilih Putar Balik untuk mencari teks dari puncak ke dasar dan " +"kembali lagi ke atas." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Teks yang telah Anda cari akan tetap disorot oleh gedit, bahkan setelah Anda " +"telah menyelesaikan pencarian Anda. Untuk menghapus penyorotan, klik Bersihkan Penyorotan, atau tekan CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Periksa kesalahan ejaan pada berkas Anda." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Periksa ejaan dokumen Anda" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Fungsikan pemeriksa ejaan" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Fitur Periksa-ejaan disediakan sebagai pengaya dalam gedit yang " +"dapat difungsikan seperlunya. Untuk memfungsikan pengaya:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Pilih Periksa Ejaan untuk memfungsikan plugin." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Untuk memeriksa kata salah eja dalam dokumen Anda:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Pilih Perkakas Periksa Ejaan." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Agar gedit secara otomatis menyorot kata-kata salah eja dalam " +"dokumen Anda sembari Anda mengetik, pilih PerkakasSorot Kata-kata Salah Eja." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Memakai pemeriksaan ejaan" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Anda dapat memilih pengganti yang tepat bagi kata yang salah eja dengan " +"memakai dialog Periksa Ejaan. Kata yang salah eja yang sedang diperiksa oleh " +"pemeriksa ejaan ditampilkan dalam cetak tebal di sebelah Kata salah eja:" +". Anda dapat memilih dari aksi-aksi perbaikan berikut:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Ubah ke: memungkinkan Anda memasukkan suatu kata " +"dan memakai Periksa Kata untuk memeriksa " +"keabsahan ejaan." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Saran: mendaftar pengganti yang tersedia bagi kata " +"tersebut." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Abaikan memungkinkan Anda melewati pemeriksaan " +"ejaan bagi suatu kemunculan kata saat ini." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Abaikan Semua memungkinkan Anda melewati " +"pemeriksaan ejaan bagi semua kemunculan kata saat ini." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Ubah semua menggantikan kata yang salah eja atau " +"tak dikenal dengan pengganti yang dipilih dari daftar Saran:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Ubah semua menggantikan semua kata yang " +"salah eja atau tak dikenal dengan pengganti yang dipilih dari daftar Saran:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Tambah kata memungkinkan Anda menambah kata saat " +"ini ke Kamus pengguna gedit. Menambahkan kata-kata " +"ubahan ke Kamus pengguna akan memungkinkan gedit untuk " +"mengenali kata dalam dokumen sehingga tidak akan disorot sebagai kata yang " +"salah eja." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Menentukan bahasa yang dipakai untuk memeriksa ejaan" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Secara baku, gedit akan memakai bahasa Anda saat ini untuk " +"memeriksa ejaan dokumen Anda. Bila Anda perlu memakai bahasa lain, pilih " +"PerkakasAtur " +"Bahasa…, lalu pilih bahasa yang ingin Anda pakai." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Kamus" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit memakai Enchant, suatu utilitas sistem kecil, untuk memeriksa " +"ejaan. Enchant dapat memakai beberapa kamus yang berbeda untuk memeriksa " +"ejaan Anda. Dua diantara back end kamus tersebut adalah Hunspell " +"dan Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Bila bahasa yang ingin Anda pakai tak tersedia dalam gedit, " +"gunakan pemasang perangkat lunak komputer Anda atau manajer paket untuk " +"memasang back end kamus yang Anda inginkan." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Sorot teks Anda agar lebih mudah dibaca." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Menyalakan penyorotan sintaks" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Penyorotan sintaks" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit menyediakan penyorotan sintaks bagi berbagai macam markup, " +"pemrograman, dan bahasa ilmiah. Bila gedit mengenali sintaks yang " +"sedang dipakai ketika Anda membuka suatu berkas, itu akan secara otomatis " +"menyorot teks." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Bila sintaks atau bahasa Anda tak disorot saat awal mula, Anda dapat memilih " +"sintaks atau bahasa yang sesuai dengan mengklik Tilik Mode Penyorotan, lalu " +"memilih sintaks yang diinginkan. Sebagai alternatif, Anda dapat memilih nama " +"sintaks dari suatu daftar di bagian bawah jendela gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Kelompokkan tab yang sama bersama-sama." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organisasikan berkas dalam tab terkelompok" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Bila Anda bekerja dengan multi tab dalam gedit Anda dapat " +"mengelompokkan mereka, membuat jadi lebih mudah untuk mengorganisasi berkas-" +"berkas Anda yang terbuka. Menambahkan suatu grup tab baru akan membagi " +"jendela gedit ke dalam dua panel, membuka suatu \"Dokumen Tanpa " +"Judul\" dalam panel baru, dan menjadikan itu aktif. Anda dapat membuka " +"berkas ke dalam grup tab itu dan memindah tab dari satu grup tab ke lainnya." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Buka suatu grup tab baru dalam jendela gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Untuk membuka suatu grup tab baru Anda bisa:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "Klik kanan pada tab dan pilih Pindah ke Grup Tab Baru." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Pakai pintasan CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Aksi ini akan membagi jendela gedit ke dalam dua panel, dan panel " +"dengan grup tab baru akan ditempatkan di kanan tab aktif. Anda dapat " +"memindah pegangan ke kanan atau kiri yang memberi ruang lebih atau kurang " +"dari jendela gedit antara panel-panel sesuai kebutuhan Anda." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Anda dapat membuka grup tab dalam jendela gedit sebanyak mungkin " +"yang diijinkan oleh layar Anda, tapi Anda mesti menggeser pegangan agar " +"dapat melihat mereka dengan benar." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Untuk menutup suatu panel grup tab tutup saja semua tab yang terbuka di " +"dalamnya." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Memindah suatu tab ke grup tab lain" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Bila Anda ingin memindah suatu tab dari satu grup tab ke lainnya:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Klik dan tahan tombol tetikus pada tab." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Seret tab ke panel grup tab lain." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Tempatkan itu di sebelah tab lain di dalam grup tab." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Lepas tombol tetikus." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Ubah posisi tab dalam jendela gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Memindah dan mengatur ulang tab" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Tab dalam gedit dapat dipindah, membuat jadi lebih mudah untuk " +"bekerja dengan berkas Anda. Tab dapat diurut ulang dalam jendela yang sama, " +"dipindahkan ke luar gedit (membuat suatu jendela gedit " +"baru), dan dipindah dari satu jendela ke lainnya." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Ubah urutan tab dalam jendela gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Untuk mengubah urutan tab dalam suatu jendela:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Memindah tab ke posisi yang diinginkan di antara tab lain." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Tab akan ditempatkan dalam posisi terdekat ke tempat Anda melepas tab, " +"seketika di sebelah tab lain yang terbuka." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Memindah tab, membuat jendela gedit baru" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Untuk membuat suatu jendela baru dari tab yang ada:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Seret tab keluar dari jendela gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Untuk memindah tab ke jendela baru ketika gedit dimaksimalkan, " +"seret tab ke bilah puncak di bagian atas layar." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Memindah suatu tab ke jendela gedit lain" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Bila Anda ingin memindah suatu tab dari satu jendela ke lainnya:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Seret tab ke jendela baru." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Tempatkan itu di sebelah tab lain di dalam jendela baru." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Mungkin lebih mudah bagi Anda untuk memindah suatu tab dari jendela satu ke " +"lainnya dengan menyeret tab ke pojok panas Aktivitas GNOME " +"Shell. Ini akan menyingkap setiap jendela gedit yang " +"terbuka. Anda kemudian dapat melepas tab ke jendela gedit yang " +"dikehendaki." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Buat atau tutup tab di jendela gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Menambah dan menghapus tab" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Bekerja dengan tab dalam gedit memungkinkan Anda untuk mengawasi " +"beberapa berkas dalam satu jendela." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Menambah tab" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Untuk menambahkan tab baru untuk membuat berkas baru, klik tombol Buat " +"dokumen baru di sisi kiri bilah kepala, atau tekan CtrlT. Tab akan ditambahkan ke sisi kanan tab lainnya." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Menghapus tab" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Untuk menghapus suatu tab, klik × pada sisi " +"kanan tab, atau tekan CtrlW. Untuk " +"menghapus semua tab yang terbuka, tekan Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Kembalikan perubahan terbaru ke salah satu berkas Anda." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Membatalkan/menjadikan ulang suatu aksi baru-baru ini" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Bila Anda melakukan kesalahan ketika menyunting suatu dokumen gedit, Anda dapat membatalkannya dengan menekan CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Anda tak bisa membatalkan suatu perubahan setelah Anda menutup suatu berkas " +"gedit." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Untuk mengulangi perubahan yang dibatalkan, tekan CtrlShiftZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit Penyunting Teks" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit Penyunting Teks" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Buka panduan pengguna gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit Penyunting Teks" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Selamat datang ke panduan bantuan gedit. Untuk pengenalan singkat " +"ke fitur paling dasar gedit, kunjungilah halaman Mulai memakai gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Topik bantuan lain dikelompokkan bersama ke dalam seksi di bawah. Nikmati " +"gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Bekerja Dengan Berkas" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Tata gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Pengaya gedit" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Mencetak dengan gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Karya ini berada dibawah lisensi <_:link-1/>." diff --git a/help/it/it.po b/help/it/it.po new file mode 100644 index 0000000..c4132e8 --- /dev/null +++ b/help/it/it.po @@ -0,0 +1,4679 @@ +# Italian translation of Gedit manual +# Copyright (C) 2007, 2008, 2009 The Free Software Foundation, Inc +# This file is distributed under the same license as the gedit package. +# +# Milo Casagrande , 2007-2009 +msgid "" +msgstr "" +"Project-Id-Version: gedit manual\n" +"POT-Creation-Date: 2009-03-04 16:53+0000\n" +"PO-Revision-Date: 2009-03-04 19:23+0100\n" +"Last-Translator: Milo Casagrande \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: C/legal.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or " +"in the file COPYING-DOCS distributed with this manual." +msgstr "" +"Questo documento può essere copiato, distribuito o modificato in base ai " +"termini della GNU Free Documentation License (GFDL), versione 1.1 o di " +"versioni successive pubblicate dalla Free Software Foundation che siano " +"prive di sezioni invariabili, frontespizi e retrocopertine. La GFDL è " +"disponibile accedendo a questo link o nel file COPYING-DOCS distribuito con questo manuale." + +#: C/legal.xml:12(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" +"Questo manuale fa parte di una raccolta di documenti su GNOME distribuita " +"secondo i termini della GFDL. Per distribuire questo manuale separatamente, " +"è necessario aggiungere al documento una copia della licenza, come descritto " +"nella sezione 6 di quest'ultima." + +#: C/legal.xml:19(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" +"Molti dei nomi utilizzati dalle aziende per distinguere i propri prodotti e " +"servizi sono rivendicati come marchi. Ove tali nomi sono citati nella " +"documentazione di GNOME e i membri del GNOME Documentation Project sono a " +"conoscenza della loro natura di marchi, tali nomi vengono riportati a " +"lettere maiuscole o con iniziale maiuscola." + +#: C/legal.xml:35(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" +"IL DOCUMENTO VIENE DISTRIBUITO SENZA ALCUNA GARANZIA ESPLICITA O IMPLICITA " +"DI ALCUN TIPO, INCLUSE, SENZA LIMITAZIONE, LA GARANZIA DI ASSENZA DI DIFETTI " +"DEL DOCUMENTO O DELLE SUE VERSIONI MODIFICATE O LA GARANZIA CHE IL DOCUMENTO " +"SIA COMMERCIABILE, SIA ADATTO A UN DETERMINATO SCOPO O NON VIOLI DIRITTI DI " +"TERZI. TUTTI I RISCHI RIGUARDO ALLA QUALITÀ;, L'ACCURATEZZA E LE PRESTAZIONI " +"DEL DOCUMENTO O DELLE SUE VERSIONI MODIFICATE SONO A CARICO DELL'UTENTE. " +"QUALORA UN DOCUMENTO O UNA SUA VERSIONE MODIFICATA SI RIVELINO DIFETTOSI, I " +"COSTI DEGLI EVENTUALI INTERVENTI DI ASSISTENZA, RIPARAZIONE O CORREZIONE " +"SARANNO A CARICO DELL'UTENTE (NON DEL REDATTORE INIZIALE, DELL'AUTORE O DI " +"ALTRI COLLABORATORI). LA PRESENTE ESCLUSIONE DI GARANZIA COSTITUISCE PARTE " +"ESSENZIALE DELLA LICENZA. SONO AUTORIZZATI SOLO GLI USI DEL DOCUMENTO O " +"DELLE SUE VERSIONI MODIFICATE PREVISTI DALLA PRESENTE ESCLUSIONE DI " +"GARANZIA; INOLTRE IN NESSUNA CIRCOSTANZA E IN NESSUNA INTERPRETAZIONE " +"GIURIDICA, INCLUSI I CASI DI ILLECITO (ANCHE PER NEGLIGENZA), VIOLAZIONE " +"CONTRATTUALE O ALTRO, L'AUTORE, IL REDATTORE INIZIALE, ALTRI COLLABORATORI, " +"QUALUNQUE DISTRIBUTORE DEL DOCUMENTO O DI UNA SUA VERSIONE MODIFICATA O " +"QUALUNQUE FORNITORE DELLE PARTI CITATE POTRÀ; ESSERE RITENUTO RESPONSABILE " +"NEI CONFRONTI DI QUALUNQUE PERSONA PER DANNI DIRETTI, INDIRETTI, SPECIALI, " +"INCIDENTALI O CONSEQUENZIALI DI QUALUNQUE NATURA, INCLUSI, SENZA " +"LIMITAZIONE, I DANNI DOVUTI A PERDITA DI AVVIAMENTO, INTERRUZIONE DEL " +"LAVORO, GUASTO O MALFUNZIONAMENTO DEL COMPUTER O QUALUNQUE ALTRO DANNO O " +"PERDITA DERIVANTE DA O CORRELATO ALL'USO DEL DOCUMENTO O DI UNA SUA VERSIONE " +"MODIFICATA, ANCHE NEL CASO IN CUI TALI PARTI FOSSERO STATE INFORMATE DELLA " +"POSSIBILITÀ; DI TALI DANNI." + +#: C/legal.xml:28(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" +"QUESTO DOCUMENTO E LE SUE VERSIONI MODIFICATE SONO DISTRIBUITI SECONDO I " +"TERMINI DELLA GNU FREE DOCUMENTATION LICENSE, CON L'ULTERIORE INTESA CHE: " +"" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:268(None) +msgid "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgstr "fatto" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:349(None) +msgid "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" +msgstr "fatto" + +#: C/gedit.xml:23(title) +msgid "Gedit Manual" +msgstr "Manuale di gedit" + +#: C/gedit.xml:25(year) +msgid "2007" +msgstr "2007" + +#: C/gedit.xml:26(holder) C/gedit.xml:45(publishername) +#: C/gedit.xml:56(firstname) C/gedit.xml:79(orgname) C/gedit.xml:120(para) +#: C/gedit.xml:128(para) C/gedit.xml:136(para) C/gedit.xml:144(para) +#: C/gedit.xml:152(para) C/gedit.xml:160(para) C/gedit.xml:168(para) +#: C/gedit.xml:176(para) C/gedit.xml:184(para) C/gedit.xml:192(para) +#: C/gedit.xml:200(para) +msgid "GNOME Documentation Project" +msgstr "Progetto documentazione di GNOME" + +#: C/gedit.xml:28(year) +msgid "2002" +msgstr "2002" + +#: C/gedit.xml:29(year) +msgid "2003" +msgstr "2003" + +#: C/gedit.xml:30(year) +msgid "2004" +msgstr "2004" + +#: C/gedit.xml:31(holder) C/gedit.xml:71(orgname) +msgid "Sun Microsystems" +msgstr "Sun Microsystems" + +#: C/gedit.xml:33(year) C/gedit.xml:116(date) +msgid "2000" +msgstr "2000" + +#: C/gedit.xml:34(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: C/gedit.xml:52(firstname) +msgid "Joachim" +msgstr "Joachim" + +#: C/gedit.xml:53(surname) +msgid "Noreiko" +msgstr "Noreiko" + +#: C/gedit.xml:59(orgname) +msgid "GNOME" +msgstr "GNOME" + +#: C/gedit.xml:63(firstname) +msgid "Hal" +msgstr "Hal" + +#: C/gedit.xml:64(surname) +msgid "Canary" +msgstr "Canary" + +#: C/gedit.xml:65(contrib) +msgid "Added the Shortcut Keys Table" +msgstr "Aggiunta la tabella sulle scorciatoie" + +#: C/gedit.xml:68(firstname) C/gedit.xml:191(para) +msgid "Sun Java Desktop System Documentation Team" +msgstr "Sun Java Desktop System Documentation Team" + +#: C/gedit.xml:72(email) +msgid "gdocteam@sun.com" +msgstr "gdocteam@sun.com" + +#: C/gedit.xml:76(firstname) +msgid "Eric" +msgstr "Eric" + +#: C/gedit.xml:77(surname) +msgid "Baudais" +msgstr "Baudais" + +#: C/gedit.xml:80(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: C/gedit.xml:84(firstname) +msgid "Baris" +msgstr "Baris" + +#: C/gedit.xml:85(surname) +msgid "" +"Cicek provided information from earlier revisions of the gedit application." +msgstr "" +"Cicek ha fornito informazioni sulle revisioni precedenti dell'applicazione " +"gedit." + +#: C/gedit.xml:86(contrib) C/gedit.xml:91(contrib) +msgid "Acknowledgements" +msgstr "Ringraziamenti" + +#: C/gedit.xml:89(firstname) +msgid "Ajit" +msgstr "Ajit" + +#: C/gedit.xml:90(surname) +msgid "George provided information about plugins." +msgstr "George ha fornito informazioni sui plugin." + +#: C/gedit.xml:115(revnumber) +msgid "gedit V1.0" +msgstr "gedit V1.0" + +#: C/gedit.xml:118(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu" + +#: C/gedit.xml:124(revnumber) +msgid "gedit Manual V2.0" +msgstr "Manuale di gedit V2.0" + +#: C/gedit.xml:125(date) +msgid "March 2002" +msgstr "Marzo 2002" + +#: C/gedit.xml:127(para) C/gedit.xml:135(para) C/gedit.xml:143(para) +#: C/gedit.xml:151(para) C/gedit.xml:159(para) C/gedit.xml:167(para) +#: C/gedit.xml:175(para) C/gedit.xml:183(para) +msgid "Sun GNOME Documentation Team" +msgstr "Sun GNOME Documentation Team" + +#: C/gedit.xml:132(revnumber) +msgid "gedit Manual V2.1" +msgstr "Manuale di gedit V2.1" + +#: C/gedit.xml:133(date) +msgid "June 2002" +msgstr "Giugno 2002" + +#: C/gedit.xml:140(revnumber) +msgid "gedit Manual V2.2" +msgstr "Manuale di gedit V2.2" + +#: C/gedit.xml:141(date) +msgid "August 2002" +msgstr "Agosto 2002" + +#: C/gedit.xml:148(revnumber) +msgid "gedit Manual V2.3" +msgstr "Manuale di gedit V2.3" + +#: C/gedit.xml:149(date) +msgid "September 2002" +msgstr "Settembre 2002" + +#: C/gedit.xml:156(revnumber) +msgid "gedit Manual V2.4" +msgstr "Manuale di gedit V2.4" + +#: C/gedit.xml:157(date) +msgid "January 2003" +msgstr "Gennaio 2003" + +#: C/gedit.xml:164(revnumber) +msgid "gedit Manual V2.5" +msgstr "Manuale di gedit V2.5" + +#: C/gedit.xml:165(date) +msgid "March 2003" +msgstr "Marzo 2003" + +#: C/gedit.xml:172(revnumber) +msgid "gedit Manual V2.6" +msgstr "Manuale di gedit V2.6" + +#: C/gedit.xml:173(date) +msgid "September 2003" +msgstr "Settembre 2003" + +#: C/gedit.xml:180(revnumber) +msgid "gedit Manual V2.7" +msgstr "Manuale di gedit V2.7" + +#: C/gedit.xml:181(date) +msgid "March 2004" +msgstr "Marzo 2004" + +#: C/gedit.xml:188(revnumber) +msgid "gedit Manual V2.8" +msgstr "Manuale di gedit V2.8" + +#: C/gedit.xml:189(date) C/gedit.xml:197(date) +msgid "July 2006" +msgstr "Luglio 2006" + +#: C/gedit.xml:196(revnumber) +msgid "gedit Manual V2.9" +msgstr "Manuale di gedit V2.9" + +#: C/gedit.xml:199(para) +msgid "GNOME Documentation Team" +msgstr "Team di documentazione di GNOME" + +#: C/gedit.xml:204(releaseinfo) +msgid "This manual describes version 2.16 of gedit." +msgstr "Questo manuale descrive la versione 2.16 di gedit." + +#: C/gedit.xml:207(title) +msgid "Feedback" +msgstr "Commenti" + +#: C/gedit.xml:208(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" +"Per segnalare un problema o inviare suggerimenti sull'applicazione " +"gedit o su questo manuale, seguire le istruzioni " +"presenti alla pagina di commenti su GNOME." + +#: C/gedit.xml:213(para) +msgid "" +"gedit is a text editor for the GNOME Desktop featuring basic yet robust " +"capabilities such as printing, spell checking, find and replace, and syntax " +"highlighting. More advanced features are available as plugins." +msgstr "" +"gedit è un editor di testo per lo GNOME Desktop dotato di funzionalità " +"basilari e avanzate come la stampa dei documenti, il controllo ortografico, " +"la ricerca e sostituzione del testo e l'evidenziazione della sintassi. " +"Ulteriori funzionalità avanzate sono disponibili come plugin." + +#: C/gedit.xml:218(primary) +msgid "gedit" +msgstr "gedit" + +#: C/gedit.xml:219(primary) +msgid "text editor" +msgstr "editor di testo" + +#: C/gedit.xml:224(title) +msgid "Introduction" +msgstr "Introduzione" + +#: C/gedit.xml:229(para) +msgid "" +"The gedit application enables you to create and " +"edit text files." +msgstr "" +"L'applicazione gedit consente di creare e " +"modificare file di testo." + +#: C/gedit.xml:231(para) +msgid "" +"The aim of gedit is to be a simple and easy to " +"use text editor. More powerful features can be enabled with different " +"plugins, allowing a variety of tasks related to text-" +"editing." +msgstr "" +"Lo scopo di gedit è quello di essere un semplice " +"editor di testo. Caratteristiche più avanzate possono essere abilitate " +"attraverso l'uso di diversi plugin, che consentono lo " +"svolgimento di diverse attività correlate alla modifica di file di testo." + +#: C/gedit.xml:235(title) +msgid "Getting Started" +msgstr "Per iniziare" + +#: C/gedit.xml:239(title) +msgid "Starting gedit" +msgstr "Avviare gedit" + +#: C/gedit.xml:240(para) +msgid "You can start gedit in the following ways:" +msgstr "" +"È possibile avviare gedit nei seguenti modi:" + +#: C/gedit.xml:243(term) +msgid "Applications menu" +msgstr "Menù Applicazioni" + +#: C/gedit.xml:245(para) +msgid "" +"Choose AccessoriesText " +"Editor." +msgstr "" +"Scegliere AccessoriEditor di " +"testo." + +#: C/gedit.xml:249(term) +msgid "Command line" +msgstr "Riga di comando" + +#: C/gedit.xml:251(para) +msgid "Execute the following command: gedit" +msgstr "Eseguire il seguente comando: gedit" + +#: C/gedit.xml:255(para) +msgid "" +"By default, when you open a text document in the file manager, gedit will " +"start, and display the document." +msgstr "" +"In modo predefinito, aprendo un documento di testo dal file manager, gedit " +"viene avviato mostrando il contenuto del documento." + +#: C/gedit.xml:260(title) +msgid "The gedit Window" +msgstr "La finestra di gedit" + +#: C/gedit.xml:261(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "" +"All'avvio di gedit viene visualizzata la seguente " +"finestra:" + +#: C/gedit.xml:264(title) +msgid "gedit Window" +msgstr "Finestra di gedit" + +#: C/gedit.xml:270(phrase) +msgid "Shows gedit main window." +msgstr "Mostra la finestra principale di gedit." + +#: C/gedit.xml:276(para) +msgid "" +"The gedit window contains the following elements:" +msgstr "" +"La finestra di gedit contiene i seguenti elementi:" + +#: C/gedit.xml:279(term) +msgid "Menubar" +msgstr "Barra dei menù" + +#: C/gedit.xml:281(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"I menù della barra dei menù contengono tutti i comandi necessari per le " +"operazioni sui file in gedit." + +#: C/gedit.xml:284(term) +msgid "Toolbar" +msgstr "Barra degli strumenti" + +#: C/gedit.xml:286(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "" +"La barra degli strumenti contiene un sottoinsieme dei comandi a cui è " +"possibile accedere nella barra dei menù." + +#: C/gedit.xml:289(term) +msgid "Display area" +msgstr "Area di visualizzazione" + +#: C/gedit.xml:291(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "" +"L'area di visualizzazione contiene il testo del file che si sta modificando." + +#: C/gedit.xml:294(term) +msgid "Statusbar" +msgstr "Barra di stato" + +#: C/gedit.xml:296(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items. The " +"statusbar also displays the following information:" +msgstr "" +"La barra di stato visualizza informazioni sulle attività di " +"gedit attualmente in corso e altre indicazioni " +"contestuali relative alle voci di menù." + +#: C/gedit.xml:299(para) +msgid "" +"Cursor position: the line number and column number where the cursor is " +"located." +msgstr "" +"Posizione del cursore: il numero di riga e di colonna in cui è posizionato " +"il cursore." + +#: C/gedit.xml:302(para) +msgid "" +"Edit mode: If the editor is in insert mode, the statusbar contains the text " +"INS. If the editor is in overwrite mode, the statusbar " +"contains the text OVR. Press the Insert key to change edit mode." +msgstr "" +"Modalità di modifica: se l'editor è in modalità di inserimento, la barra di " +"stato contiene l'indicazione INS. Se l'editor è in " +"modalità di sovrascrittura, la barra di stato contiene l'indicazione " +"SSC. Premere Ins per cambiare la " +"modalità di modifica." + +#: C/gedit.xml:307(term) +msgid "Side Pane" +msgstr "Riquadro laterale" + +#: C/gedit.xml:309(para) +msgid "" +"The side pane displays a list of open documents, and other information " +"depending on which plugins are enabled." +msgstr "" +"Il riquadro laterale visualizza l'elenco dei documenti aperti e altre " +"informazioni in base ai plugin abilitati." + +#: C/gedit.xml:310(para) +msgid "" +"By default the side pane is not shown. To show it, choose " +"ViewSide Pane." +msgstr "" +"Il riquadro laterale, in modo predefinito, non è mostrato. Per " +"visualizzarlo, scegliere VisualizzaRiquadro laterale." + +#: C/gedit.xml:313(term) +msgid "Bottom Pane" +msgstr "Riquadro inferiore" + +#: C/gedit.xml:315(para) +msgid "" +"The bottom pane is used by programming tools such as the Python " +"Console plugin to display output." +msgstr "" +"Il riquadro inferiore è utilizzato dagli strumenti di programmazione come il " +"plugin Console Python per la visualizzazione " +"dell'output." + +#: C/gedit.xml:316(para) +msgid "" +"By default the bottom pane is not shown. To show it, choose " +"ViewBottom Pane." +msgstr "" +"Il riquadro inferiore, in modo predefinito, non è mostrato. Per " +"visualizzarlo, scegliere VisualizzaRiquadro inferiore." + +#: C/gedit.xml:320(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"Facendo clic con il pulsante destro del mouse nella finestra di " +"gedit, l'applicazione visualizza un menù pop-up. " +"Questo menù contiene i comandi di uso più frequente per la modifica del " +"testo." + +#: C/gedit.xml:322(para) +msgid "" +"Like other GNOME applications, actions in gedit " +"can be performed in several ways: with the menu, with the toolbar, or with " +"shortcut keys. Shortcuts keys common to all applications are listed in the " +"User Guide." +msgstr "" +"Come in altre applicazioni di GNOME, le azioni da svolgere in " +"gedit possono essere svolte in diversi modi: " +"attraverso i menù, dalla barra degli strumenti o con le scorciatoie da " +"tastiera. Le scorciatoie da tastiera comuni a tutte le applicazioni sono " +"elencate nella Guida utente." + +#: C/gedit.xml:327(title) +msgid "Running gedit from a Command Line" +msgstr "Eseguire gedit dalla riga di comando" + +#: C/gedit.xml:328(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" +"È possibile eseguire gedit dalla riga di comando " +"e aprire automaticamente uno o più file. Per aprire più file dalla riga di " +"comando, digitare il comando seguente e premere Invio:" + +#: C/gedit.xml:329(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "file1.txt file2.txt file3.txt" + +#: C/gedit.xml:329(command) +msgid "gedit " +msgstr "gedit " + +#: C/gedit.xml:330(para) +msgid "Alternatively, you can specify a URI instead of a filename." +msgstr "" +"In alternativa, è possibile specificare un URI invece del nome di un file." + +#: C/gedit.xml:331(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see the unix manual page for gedit, gedit1." +msgstr "" +"Per maggiori informazioni sull'esecuzione di gedit dalla riga di comando, consultare la pagina di manuale Unix di " +"gedit, gedit1." + +#: C/gedit.xml:336(title) +msgid "Working with Files" +msgstr "Lavorare con i file" + +#: C/gedit.xml:340(title) +msgid "Creating a New Document" +msgstr "Creare un nuovo documento" + +#: C/gedit.xml:341(para) +msgid "" +"To create a new document, choose FileNew. The application " +"displays a new blank document in the gedit window." +msgstr "" +"Per creare un nuovo documento, scegliere FileNuovo. L'applicazione " +"visualizza un nuovo file nella finestra di gedit." + +#: C/gedit.xml:346(title) C/gedit.xml:1591(title) +msgid "Opening a File" +msgstr "Aprire un file" + +#: C/gedit.xml:347(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click Open. The file is displayed in the gedit " +"window." +msgstr "" +"Per aprire un file, scegliere FileApri per visualizzare il " +"dialogo Apri file. Selezionare il file da aprire e fare " +"clic su Apri. Il file viene visualizzato nella " +"finestra di gedit." + +#: C/gedit.xml:349(phrase) +msgid "Shows Recent Files menu icon." +msgstr "Mostra l'icona del menù File recenti." + +#: C/gedit.xml:349(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the icon on the toolbar to display the list of recent files." +msgstr "" +"L'applicazione memorizza il percorso e il nome degli ultimi cinque file che " +"sono stati modificati e li visualizza come voci nel menù " +"File. Questi file sono " +"accessibili anche facendo clic sull'icona della barra degli " +"strumenti." + +#: C/gedit.xml:351(para) +msgid "" +"You can open multiple files in gedit. The " +"application adds a tab for each open file to the window. For more on this " +"see ." +msgstr "" +"Con gedit è possibile aprire anche file multipli. " +"L'applicazione aggiunge, nella finestra, una scheda per ogni file aperto. " +"Per maggiori informazioni, consultare ." + +#: C/gedit.xml:357(title) +msgid "Saving a File" +msgstr "Salvare un file" + +#: C/gedit.xml:358(para) +msgid "You can save files in the following ways:" +msgstr "È possibile salvare un file nei seguenti modi:" + +#: C/gedit.xml:360(para) +msgid "" +"To save changes to an existing file, choose FileSave." +msgstr "" +"Per salvare le modifiche a un file esistente, scegliere " +"FileSalva." + +#: C/gedit.xml:362(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save As " +"dialog, then click Save." +msgstr "" +"Per salvare un file nuovo o per salvare un file esistente con un nuovo nome, " +"scegliere FileSalva come.... Inserire il nome da assegnare al file nel dialogo " +"Salva come... e fare clic su Salva." + +#: C/gedit.xml:364(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" +"Per salvare tutti i file aperti in quel momento in gedit, scegliere DocumentiSalva tutti." + +#: C/gedit.xml:367(para) +msgid "" +"To close all of the files that are currently open in gedit, choose DocumentsClose All." +msgstr "" +"Per chiudere tutti i file aperti in quel momento in gedit, scegliere DocumentiChiudi tutti." + +#: C/gedit.xml:372(title) +msgid "Opening a File from a URI" +msgstr "Aprire un file da un URI" + +#: C/gedit.xml:373(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform the " +"following steps:" +msgstr "" +"Per aprire un file usando un URI (Uniform Resource Identifier), procedere " +"come segue:" + +#: C/gedit.xml:376(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog." +msgstr "" +"Scegliere FileApri posizione per visualizzare il dialogo Apri " +"posizione." + +#: C/gedit.xml:379(para) +msgid "Enter the URI of the file that you want to open." +msgstr "Inserire l'URI del file da aprire." + +#: C/gedit.xml:382(para) +msgid "" +"Use the Character coding drop-down list to select the " +"appropriate character coding." +msgstr "" +"Usare l'elenco a discesa Codifiche dei caratteri per " +"selezionare la codifica appropriata." + +#: C/gedit.xml:385(para) +msgid "Click Open." +msgstr "Fare clic su Apri." + +#: C/gedit.xml:388(para) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the " +"methods supported by gnome-vfs." +msgstr "" +"URI validi sono: http:, " +"ftp:, file: e tutti i metodi " +"supportati da gnome-vfs." + +#: C/gedit.xml:389(para) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. HTTP only allows files to be " +"read. Files opened from FTP are read-only because because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"I file da alcuni tipi di URI sono aperti in sola lettura e qualsiasi " +"modifica apportata deve essere salvata in una posizione diversa. HTTP " +"consente di leggere solamente i file, anche i file aperti attraverso FTP " +"sono a sola lettura in quanto non tutti i server FTP sono in grado di " +"gestire il salvataggio remoto di file." + +#: C/gedit.xml:390(para) +msgid "" +"Saving to FTP servers can be enabled with Configuration Editor, " +"setting the key /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes, but this may cause errors." +msgstr "" +"Il salvataggio di file su server FTP può essere abilitato attraverso " +"l'Editor della " +"configurazione, impostando la chiave /apps/" +"gedit-2/preferences/editor/save/writable_vfs_schemes. Questo " +"però, potrebbe causare degli errori." + +#: C/gedit.xml:395(title) +msgid "Working With Tabs" +msgstr "Lavorare con le schede" + +#: C/gedit.xml:397(para) +msgid "" +"When more than one file is open, gedit shows a " +"tab for each document above the display area. To " +"switch to another document, click on its tab." +msgstr "" +"Quando sono aperti più file, gedit mostra una " +"scheda per ogni documento sopra l'area di " +"visualizzazione. Per passare a un altro documento, fare clic sulla sua " +"scheda." + +#: C/gedit.xml:398(para) +msgid "" +"To move a document to another gedit window, drag " +"the tab corresponding to the file to the window you want to move it to." +msgstr "" +"Per spostare un documento in un'altra finestra di gedit, trascinare la scheda corrispondente nella finestra in cui si " +"vuole spostarlo." + +#: C/gedit.xml:399(para) +msgid "" +"To move a document to a new gedit window, either " +"drag its tab to the desktop, or choose DocumentsMove to New Window." +msgstr "" +"Inoltre, per spostare un documento in un'altra finestra di " +"gedit, è possibile scegliere " +"DocumentiSposta in una nuova " +"finestra." + +#: C/gedit.xml:405(title) +msgid "Working with Text" +msgstr "Lavorare con il testo" + +#: C/gedit.xml:409(title) +msgid "Editing Text" +msgstr "Modificare il testo" + +#: C/gedit.xml:410(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "È possibile modificare il testo di un file nei seguenti modi:" + +#: C/gedit.xml:412(para) +msgid "" +"Type new text from the keyboard. The blinking insertion cursor marks the point where new text appears. To change this, use the " +"arrow keys on the keyboard or click with the mouse." +msgstr "" +"Inserire del nuovo testo attraverso l'uso della tastiera. Il " +"cursore di inserimento lampeggiante indica il punto " +"dove appare il testo. Per modificarlo, utilizzare le frecce direzionali o " +"fare clic col mouse." + +#: C/gedit.xml:414(para) +msgid "" +"To copy the selected text to the clipboard, choose " +"EditCopy." +msgstr "" +"Per copiare il testo selezionato negli appunti, scegliere " +"ModificaCopia." + +#: C/gedit.xml:416(para) +msgid "" +"To delete the selected text from the file and move the selected text to the " +"clipboard, choose EditCut." +msgstr "" +"Per eliminare il testo selezionato dal file e spostarlo negli appunti, " +"scegliere ModificaTaglia." + +#: C/gedit.xml:418(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" +"Per eliminare definitivamente il testo dal file, scegliere " +"ModificaElimina." + +#: C/gedit.xml:420(para) +msgid "" +"To insert the contents of the clipboard at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file, either from gedit or another application." +msgstr "" +"Per inserire il contenuto degli appunti nella posizione del cursore, " +"scegliere ModificaIncolla. Prima di incollare un testo in un file è " +"necessario copiarlo o tagliarlo da gedit o da un'altra applicazione." + +#: C/gedit.xml:422(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" +"Per selezionare tutto il testo incluso in un file, scegliere " +"ModificaSeleziona tutto." + +#: C/gedit.xml:428(title) +msgid "Undoing and Redoing Changes" +msgstr "Annullare e ripetere le modifiche" + +#: C/gedit.xml:429(para) +msgid "" +"To undo a change you have made, choose EditUndo. To reverse this " +"action, choose EditRedo." +msgstr "" +"Per annullare una modifica apportata, scegliere " +"ModificaAnnulla. Per ripristinare questa azione, scegliere " +"ModificaRipeti." + +#: C/gedit.xml:434(title) +msgid "Finding and Replacing" +msgstr "Trovare e sostituire del testo" + +#: C/gedit.xml:436(para) +msgid "" +"In gedit, there are two ways of searching for " +"text. You can use the Find dialog to search for a " +"specific piece of text, or Incremental Search to " +"highlight matching text as you type it." +msgstr "" +"In gedit ci sono due modi per cercare del testo. " +"È possibile utilizzare il dialogo Trova per cercare un " +"testo specifico, oppure la Ricerca incrementale per " +"evidenziare le corrispondenze mentre viene digitato il testo." + +#: C/gedit.xml:441(title) +msgid "Finding Text" +msgstr "Trovare del testo" + +#: C/gedit.xml:442(para) +msgid "To search a file for a string of text, perform the following steps:" +msgstr "Per cercare una stringa all'interno di un file, procedere come segue:" + +#: C/gedit.xml:444(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" +"Scegliere CercaTrova per visualizzare il dialogo Trova." + +#: C/gedit.xml:446(para) +msgid "" +"Type the string that you want to find in the Search for " +"field. You can include special characters such as a new line or tab: see " +"." +msgstr "" +"Digitare la stringa da trovare nel campo Cerca. È " +"possibile utilizzare dei caratteri speciali come le tabulazioni o gli a " +"capo: consultare ." + +#: C/gedit.xml:448(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string after your current cursor position. If " +"gedit finds the string, the application selects " +"first occurrence of the string. Other occurrences of the string are " +"highlighted." +msgstr "" +"Fare clic su Trova per cercare la prima occorrenza " +"della stringa nel file dopo la posizione del cursore. Se gedit trova la stringa, l'applicazione ne seleziona la prima " +"occorrenza, le altre vengono solo evidenziate." + +#: C/gedit.xml:450(para) +msgid "" +"To find the next occurrence of the string, click Find " +"or choose SearchFind Next. To find the previous occurrence of the text, " +"choose SearchFind Previous." +msgstr "" +"Per trovare la prossima occorrenza della stringa, fare clic su " +"Trova o scegliere CercaTrova successivo. Per " +"trovare l'occorrenza precedente, scegliere CercaTrova precedente." + +#: C/gedit.xml:453(para) +msgid "" +"After you have closed the Find dialog, you can still " +"move the selection to other occurrences of the text by choosing " +"SearchFind Next and SearchFind " +"Previous." +msgstr "" +"Dopo aver chiuso la finestra di dialogo Trova, è " +"possibile spostare la selezione ad altre occorrenze scegliendo " +"CercaTrova successivo e CercaTrova precedente." + +#: C/gedit.xml:454(para) +msgid "" +"To remove the highlighting from the text, choose " +"SearchClear Highlight." +msgstr "" +"Per rimuovere l'evidenziazione dal testo, scegliere " +"CercaAzzera evidenziazione." + +#: C/gedit.xml:458(title) +msgid "Incremental Search" +msgstr "Ricerca incrementale" + +#: C/gedit.xml:460(para) +msgid "" +"Incremental search highlights matching text in the document as you type it " +"letter by letter. (This is similar to the search feature in several web " +"browsers.)" +msgstr "" +"La ricerca incrementale evidenzia le corrispondenze del testo nel documento " +"durante la digitazione, lettera per lettera (simile alla ricerca in diversi " +"browser web)." + +#: C/gedit.xml:461(para) +msgid "" +"To start an incremental search, choose SearchIncremental Search. The " +"search box appears at the top of the display area." +msgstr "" +"Per avviare una ricerca incrementale, scegliere CercaRicerca incrementale.... " +"Appare la casella di ricerca nella parte superiore dell'area di " +"visualizzazione." + +#: C/gedit.xml:462(para) +msgid "" +"Begin typing, and text that matches will be highlighted in the document. The " +"first instance after the cursor position is also selected." +msgstr "" +"Iniziando a digitare una parola, il testo corrispondente viene evidenziato " +"nel documento e viene selezionata la prima istanza successiva alla posizione " +"del cursore." + +#: C/gedit.xml:463(para) +msgid "" +"To advance the selection to the next match while keeping the incremental " +"search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +msgstr "" +"Per spostare la selezione alla corrispondenza successiva mantenendo la " +"casella di ricerca aperta, premere CtrlG. Premere CtrlMaiuscG per spostare la selezione indietro." + +#: C/gedit.xml:464(para) +msgid "" +"You can also use the up and down arrow keys or the mouse wheel to move the " +"selection between matches." +msgstr "" +"È anche possibile utilizzare le frecce direzionali su e giù o la rotellina " +"di scorrimento del mouse per spostare la selezione tra le varie " +"corrispondenze." + +#: C/gedit.xml:469(title) +msgid "Replacing Text" +msgstr "Sostituire il testo" + +#: C/gedit.xml:471(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "" +"Per cercare una stringa all'interno di un file e sostituirla con un'altra, " +"procedere come segue:" + +#: C/gedit.xml:473(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"Scegliere CercaSostituisci per aprire la finestra di dialogo " +"Sostituisci." + +#: C/gedit.xml:475(para) +msgid "" +"Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +"tab: see ." +msgstr "" +"Digitare la stringa da trovare nel campo Cerca. È " +"possibile utilizzare dei caratteri speciali come le tabulazioni o gli a " +"capo: consultare ." + +#: C/gedit.xml:476(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "" +"Digitare la stringa con cui sostituire quella che si sta ricercando nel " +"campo Sostituisci con." + +#: C/gedit.xml:480(para) +msgid "" +"To examine each occurrence of the string before replacing it, click " +"Find. If gedit finds the " +"string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +"next occurrence of the string, click Find again." +msgstr "" +"Per controllare le occorrenze della stringa prima di sostituirla, fare clic " +"su Trova. Se gedit trova " +"la stringa, questa viene selezionata. Fare clic su Sostituisci per sostituire l'occorrenza selezionata della stringa. Per " +"trovare l'occorrenza successiva, fare clic nuovamente su Trova." + +#: C/gedit.xml:481(para) +msgid "" +"To replace all occurrences of the string throughout the document, click " +"Replace All." +msgstr "" +"Per sostituire tutte le occorrenze della stringa all'interno del documento, " +"fare clic su Sostituisci tutti." + +#: C/gedit.xml:486(title) +msgid "Find and Replace Options" +msgstr "Opzioni di trova e sostituisci" + +#: C/gedit.xml:487(para) +msgid "" +"The Find dialog and the Replace " +"dialog both have the following options:" +msgstr "" +"Le finestre di dialogo Trova e Sostituisci presentano entrambe le seguenti opzioni:" + +#: C/gedit.xml:489(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type. For example, " +"with Match case selected, \"TEXT\" will not match \"text" +"\"." +msgstr "" +"Selezionare l'opzione Maiuscole/minuscole per " +"individuare solo le occorrenze della stringa che corrispondono esattamente " +"al testo digitato. Per esempio, con l'opzione Maiuscole/minuscole selezionata, «TESTO» non corrisponde a «testo»." + +# (NdT) non mi veniva un esempio migliore... +#: C/gedit.xml:491(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type. For example, with Match entire word only " +"selected, \"text\" will not match \"texture\"." +msgstr "" +"Selezionare l'opzione Solo parole intere per " +"individuare solo le occorrenze della stringa che corrispondono a parole " +"intere del testo digitato. Per esempio, con l'opzione Solo parole " +"intere selezionata, «testa» non corrisponde a «testamento»." + +#: C/gedit.xml:493(para) +msgid "" +"Select the Search backwards option to search backwards " +"towards the beginning of the document." +msgstr "" +"Selezionare l'opzione Cercare all'indietro per eseguire " +"la ricerca dalla fine del file al suo inizio." + +#: C/gedit.xml:495(para) +msgid "" +"Select the Wrap around option to search to one end of " +"the document and then continue the search from the other end of the file." +msgstr "" +"Selezionare l'opzione Ricominciare dall'inizio per " +"eseguire la ricerca fino alla fine del file e continuare dall'inizio del " +"file." + +#: C/gedit.xml:502(title) +msgid "Special Characters" +msgstr "Caratteri speciali" + +# (NdT) un po' libera... +#: C/gedit.xml:503(para) +msgid "" +"You can include the following escape sequences in the text to find or " +"replace to represent special characters:" +msgstr "" +"È possibile includere i seguenti caratteri speciali per eseguire ricerche o " +"sostituzioni:" + +#: C/gedit.xml:506(literal) +msgid "\\n" +msgstr "\\n" + +#: C/gedit.xml:508(para) +msgid "Specifies a new line." +msgstr "Specifica un \"new line\"." + +#: C/gedit.xml:512(literal) +msgid "\\t" +msgstr "\\t" + +#: C/gedit.xml:514(para) +msgid "Specifies a tab character." +msgstr "Specifica un carattere di tabulazione." + +#: C/gedit.xml:518(literal) +msgid "\\r" +msgstr "\\r" + +# (NdT) trovare differenza con 'new line' +#: C/gedit.xml:520(para) +msgid "Specifies a carriage return." +msgstr "Specifica un \"carriage return\"." + +#: C/gedit.xml:524(literal) +msgid "\\\\" +msgstr "\\\\" + +#: C/gedit.xml:526(para) +msgid "" +"The backslash character itself must be escaped if it is being searched for. " +"For example, if you are looking for the \"\\n\" literal, " +"you will have to type \"\\\\n\" in the Search for " +"field. Or if you are looking for a sequence of backslashes, you will have to " +"double the number of searched backslashes." +msgstr "" +"Affinché il carattere backslash possa essere cercato, è necessario usare una " +"sequenza di escape. Per esempio, per cercare \"\\n\", è " +"necessario digitare \"\\\\n\" nel campo Cerca. Oppure, " +"per cercare una sequenza di backslash, è necessario raddoppiare il numero di " +"backslash da cercare." + +#: C/gedit.xml:538(title) +msgid "Positioning the Cursor on a Specific Line" +msgstr "Posizionare il cursore su una riga specifica" + +#: C/gedit.xml:540(para) +msgid "" +"To position the cursor on a specific line in the current file, choose " +"SearchGo to Line. The line number box appears at the top of the display area." +msgstr "" +"Per posizionare il cursore su una riga specifica nel file corrente, " +"scegliere CercaVai alla riga.... Appare la casella del numero riga nella parte " +"superiore dell'area di visualizzazione." + +#: C/gedit.xml:541(para) +msgid "" +"Begin typing the number of the line that you want to move the cursor to and " +"the document will scroll to the specified line." +msgstr "" +"Digitare il numero della riga in cui si intende spostare il cursore e il " +"documento scorrerà fino alla riga specificata." + +#: C/gedit.xml:542(para) +msgid "" +"To dismiss the box and move the cursor to the specified line, press " +"Return." +msgstr "" +"Per rimuovere la casella di testo e spostare il cursore alla riga " +"specificata, premere Invio." + +#: C/gedit.xml:548(title) +msgid "Printing" +msgstr "Stampa" + +#: C/gedit.xml:552(title) +msgid "Setting the Page Options" +msgstr "Impostare le opzioni della pagina" + +#: C/gedit.xml:554(para) +msgid "" +"To set the page options, choose FilePage Setup to display the " +"Page Setup dialog." +msgstr "" +"Per impostare le opzioni di pagina, scegliere FileConfigurazione stampa per " +"visualizzare la finestra di dialogo Impostazioni pagina." + +#: C/gedit.xml:556(para) +msgid "" +"The Page Setup dialog enables you to specify the " +"following print options:" +msgstr "" +"La finestra di dialogo Impostazioni pagina consente di " +"specificare le seguenti opzioni di stampa:" + +#: C/gedit.xml:559(title) +msgid "General Tabbed Section" +msgstr "Scheda Generale" + +#: C/gedit.xml:561(guilabel) +msgid "Print syntax highlighting" +msgstr "Stampare evidenziazione sintassi" + +#: C/gedit.xml:563(para) +msgid "" +"Select this option to print syntax highlighting. For more information about " +"syntax highlighting, see ." +msgstr "" +"Selezionare questa opzione per stampare l'evidenziazione di sintassi. Per " +"maggiori informazioni al riguardo, consultare ." + +#: C/gedit.xml:566(guilabel) +msgid "Print page headers" +msgstr "Stampare intestazioni di pagina" + +#: C/gedit.xml:568(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "" +"Selezionare questa opzione per includere un'intestazione in ogni pagina " +"stampata. Non è possibile configurare l'intestazione." + +#: C/gedit.xml:571(guilabel) C/gedit.xml:1175(guilabel) +msgid "Line Numbers" +msgstr "Numeri di riga" + +#: C/gedit.xml:574(para) +msgid "" +"Select the Print line numbers option to include line " +"numbers when you print a file." +msgstr "" +"Selezionare l'opzione Stampare numeri di riga per " +"includere i numeri delle righe nella stampa di un file." + +#: C/gedit.xml:575(para) +msgid "" +"Use the Number every ... lines spin box to specify how " +"often to print the line numbers, for example every 5 lines, every 10 lines, " +"and so on." +msgstr "" +"Usare il controllo di selezione Numeri ogni ... righe " +"per specificare la frequenza con cui stampare i numeri, per esempio ogni 5 " +"righe, ogni 10 righe e così via." + +#: C/gedit.xml:578(guilabel) C/gedit.xml:1168(guilabel) C/gedit.xml:1687(para) +msgid "Text Wrapping" +msgstr "A capo automatico" + +#: C/gedit.xml:580(para) +msgid "" +"Select the Enable text wrapping option to wrap text " +"onto the next line, at a character level, when you print a file. The " +"application counts wrapped lines as one line for line numbering purposes." +msgstr "" +"Selezionare l'opzione Attivare a capo automatico per " +"mandare a capo il testo automaticamente a livello di parola durante la " +"stampa di un file. L'applicazione conteggia le righe mandate a capo come una " +"singola riga ai fini della numerazione." + +#: C/gedit.xml:582(para) +msgid "" +"Select the Do not split words over two lines option to " +"wrap text onto the next line, at a word level, when you print a file." +msgstr "" +"Selezionare l'opzione Non dividere le parole su due righe per impostare il ritorno a capo del testo a livello di parola " +"durante la stampa di un file." + +#: C/gedit.xml:590(title) +msgid "Fonts" +msgstr "Caratteri" + +#: C/gedit.xml:592(guilabel) +msgid "Body" +msgstr "Corpo del testo" + +#: C/gedit.xml:594(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "" +"Fare clic su questo pulsante per selezionare il tipo di carattere da usare " +"per stampare il testo di un file." + +#: C/gedit.xml:597(guilabel) +msgid "Line numbers" +msgstr "Numeri di riga" + +#: C/gedit.xml:600(para) +msgid "Click on this button to select the font to use to print line numbers." +msgstr "" +"Fare clic su questo pulsante per selezionare il tipo di carattere da usare " +"per stampare i numeri di riga di un file." + +#: C/gedit.xml:603(guilabel) +msgid "Headers and footers" +msgstr "Intestazioni e piè di pagina" + +#: C/gedit.xml:605(para) +msgid "" +"Click on this button to select the font to use to print the headers and " +"footers in a file." +msgstr "" +"Fare clic su questo pulsante per selezionare il tipo di carattere da usare " +"per stampare le intestazioni e i piè di pagina di un file." + +#: C/gedit.xml:609(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit, click Restore Default Fonts." +msgstr "" +"Per ripristinare i caratteri predefiniti per la stampa dei file da " +"gedit, fare clic sul pulsante " +"Ripristina caratteri predefiniti." + +#: C/gedit.xml:616(title) +msgid "Printing a Document" +msgstr "Stampare un documento" + +#: C/gedit.xml:617(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "" +"gedit consente di eseguire le seguenti operazioni " +"di stampa:" + +#: C/gedit.xml:619(para) +msgid "Print a document to a printer." +msgstr "Stampare un documento su una stampante." + +#: C/gedit.xml:621(para) +msgid "Print the output of the print command to a file." +msgstr "Inviare l'output di un comando di stampa in un file." + +#: C/gedit.xml:624(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" +"Quando si stampa su un file, gedit invia l'output " +"al file in un formato di prestampa. I formati di prestampa più diffusi sono " +"PostScript e PDF (Portable Document Format)." + +#: C/gedit.xml:626(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" +"Per visualizzare un'anteprima delle pagine da stampare, scegliere " +"FileAnteprima di stampa." + +#: C/gedit.xml:628(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" +"Per stampare il file attivo su una stampante o su un file, scegliere " +"FileStampa per visualizzare la finestra di dialogo Stampa." + +#: C/gedit.xml:630(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "" +"La finestra di dialogo Stampa consente di specificare " +"le seguenti opzioni di stampa:" + +#: C/gedit.xml:633(title) +msgid "Job Tabbed Section" +msgstr "Scheda Lavoro" + +#: C/gedit.xml:635(guilabel) +msgid "Print range" +msgstr "Intervallo di stampa" + +#: C/gedit.xml:637(para) +msgid "" +"Select one of the following options to determine how many pages to print:" +msgstr "" +"Selezionare una delle opzioni seguenti per determinare quali pagine stampare:" + +#: C/gedit.xml:640(guilabel) +msgid "All" +msgstr "Tutte" + +#: C/gedit.xml:641(para) +msgid "Select this option to print all of the pages in the file." +msgstr "Selezionare questa opzione per stampare tutte le pagine del file." + +#: C/gedit.xml:644(guilabel) +msgid "Lines" +msgstr "Righe" + +#: C/gedit.xml:645(para) +msgid "" +"Select this option to print the specified lines only. Use the " +"From and To spin boxes to specify " +"the line range." +msgstr "" +"Selezionare questa opzione per stampare solamente le righe specificate. " +"Usare i controlli di selezione Da: e A: per specificare un intervallo di righe." + +#: C/gedit.xml:648(guilabel) +msgid "Selection" +msgstr "Selezione" + +#: C/gedit.xml:649(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" +"Selezionare questa opzione per stampare solo il testo selezionato. L'opzione " +"è abilitata solo quando è stata effettuata una selezione." + +#: C/gedit.xml:655(guilabel) +msgid "Copies" +msgstr "Copie" + +#: C/gedit.xml:657(para) +msgid "" +"Use the Number of copies spin box to specify the number " +"of copies of the file that you want to print." +msgstr "" +"Usare il controllo di selezione Numero di copie per " +"specificare il numero di copie da stampare." + +#: C/gedit.xml:658(para) +msgid "" +"If you print multiple copies of the file, select the Collate option to collate the printed copies." +msgstr "" +"Se si intendono stampare più copie del file, selezionare l'opzione " +"Fascicola per fascicolare le copie stampate." + +#: C/gedit.xml:665(title) +msgid "Printer Tabbed Section" +msgstr "Scheda Stampante" + +#: C/gedit.xml:667(guilabel) +msgid "Printer" +msgstr "Stampante" + +#: C/gedit.xml:669(para) +msgid "" +"Use this drop-down list to select the printer to which you want to print the " +"file." +msgstr "" +"Usare questo elenco a discesa per selezionare la stampante con cui stampare " +"il file." + +#: C/gedit.xml:672(guilabel) +msgid "Settings" +msgstr "Impostazioni" + +#: C/gedit.xml:674(para) +msgid "Use this drop-down list to select the printer settings." +msgstr "" +"Usare questa elenco a discesa per selezionare le impostazioni della pagina." + +#: C/gedit.xml:676(para) +msgid "" +"To configure the printer, click Configure. For " +"example, you can enable or disable duplex printing, or schedule delayed " +"printing, if this functionality is supported by the printer." +msgstr "" +"Per configurare la stampante, fare clic su Configura. " +"Per esempio, è possibile abilitare la stampa fronte retro o impostare una " +"stampa ritardata, sempre che queste funzionalità siano supportate dalla " +"stampante." + +#: C/gedit.xml:680(guilabel) +msgid "Location" +msgstr "Posizione" + +#: C/gedit.xml:682(para) +msgid "" +"Use this drop-down list to select one of the following print destinations:" +msgstr "" +"Usare questo elenco a discesa per selezionare una delle seguenti opzioni:" + +#: C/gedit.xml:687(guilabel) +msgid "CUPS" +msgstr "CUPS" + +#: C/gedit.xml:689(para) +msgid "Print the file to a CUPS printer." +msgstr "Stampa il file su una stampante CUPS." + +#: C/gedit.xml:693(para) +msgid "" +"If the selected printer is a CUPS printer, CUPS is the " +"only entry in this drop-down list." +msgstr "" +"Se la stampante selezionata è una stampante CUPS, CUPS " +"è l'unica voce di questo elenco a discesa." + +#: C/gedit.xml:700(guilabel) +msgid "lpr" +msgstr "lpr" + +#: C/gedit.xml:702(para) +msgid "Print the file to a printer." +msgstr "Stampa il file su una stampante." + +#: C/gedit.xml:708(guilabel) +msgid "File" +msgstr "File" + +#: C/gedit.xml:710(para) +msgid "Print the file to a PostScript file." +msgstr "Stampa su un file PostScript." + +#: C/gedit.xml:713(para) +msgid "" +"Click Save As to display a dialog where you specify " +"the name and location of the PostScript file." +msgstr "" +"Fare clic su Salva come per visualizzare la finestra " +"di dialogo in cui specificare il nome e la posizione del file PostScript." + +#: C/gedit.xml:719(guilabel) +msgid "Custom" +msgstr "Personalizzato" + +#: C/gedit.xml:721(para) +msgid "Use the specified command to print the file." +msgstr "Usa il comando specificato per stampare il file." + +#: C/gedit.xml:724(para) +msgid "" +"Type the name of the command in the text box. Include all command-line " +"arguments." +msgstr "" +"Digitare il nome del comando nella casella di testo. Includere anche tutti " +"gli argomenti a riga di comando." + +#: C/gedit.xml:732(guilabel) +msgid "State" +msgstr "Stato" + +#: C/gedit.xml:734(para) C/gedit.xml:740(para) C/gedit.xml:746(para) +msgid "This functionality is not supported in this version of gedit." +msgstr "Questa funzionalità non è supportata da questa versione di gedit." + +#: C/gedit.xml:738(guilabel) +msgid "Type" +msgstr "Tipo" + +#: C/gedit.xml:744(guilabel) +msgid "Comment" +msgstr "Commento" + +#: C/gedit.xml:754(title) +msgid "Paper Tabbed Section" +msgstr "Scheda Carta" + +#: C/gedit.xml:756(guilabel) +msgid "Paper size" +msgstr "Dimensione carta" + +#: C/gedit.xml:758(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "" +"Usare questo elenco a discesa per selezionare la dimensione della carta su " +"cui stampare il file." + +#: C/gedit.xml:761(guilabel) +msgid "Width" +msgstr "Larghezza" + +#: C/gedit.xml:763(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit." +msgstr "" +"Usare questo controllo di selezione per specificare la larghezza della " +"carta. Usare l'elenco a discesa adiacente per modificare l'unità di misura " +"per la dimensione della carta." + +#: C/gedit.xml:766(guilabel) +msgid "Height" +msgstr "Altezza" + +#: C/gedit.xml:768(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "" +"Usare questo controllo di selezione per specificare l'altezza della carta." + +#: C/gedit.xml:771(guilabel) +msgid "Feed orientation" +msgstr "Orientamento alimentazione" + +#: C/gedit.xml:773(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "" +"Usare questo elenco a discesa per selezionare l'orientamento della carta " +"nella stampante." + +#: C/gedit.xml:776(guilabel) +msgid "Page orientation" +msgstr "Orientamento pagina" + +#: C/gedit.xml:778(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "" +"Usare questo elenco a discesa per selezionare l'orientamento della pagina." + +#: C/gedit.xml:781(guilabel) +msgid "Layout" +msgstr "Disposizione" + +#: C/gedit.xml:783(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" +"Usare questo elenco a discesa per selezionare la disposizione della pagina. " +"La disposizione prescelta viene visualizzata in anteprima nell'area " +"Anteprima." + +#: C/gedit.xml:786(guilabel) +msgid "Paper tray" +msgstr "Vassoio carta" + +#: C/gedit.xml:788(para) +msgid "Use this drop-down list to select the paper tray." +msgstr "" +"Usare questo elenco a discesa per selezionare l'orientamento della pagina." + +#: C/gedit.xml:799(title) +msgid "Programming Features" +msgstr "Caratteristiche di programmazione" + +#: C/gedit.xml:801(para) +msgid "" +"Several of gedit's features for programming are " +"provided with plugins. For example, the Tag List plugin provides a list of " +"commonly-used tags for different markup languages: see ." +msgstr "" +"Molte delle caratteristiche di programmazione di gedit vengono fornite attraverso plugin. Il plugin «Elenco dei tag», " +"per esempio, fornisce un elenco dei tag più usati per i maggiori linguaggi " +"di marcatura del testo: consultare ." + +#: C/gedit.xml:805(title) +msgid "Syntax Highlighting" +msgstr "Evidenziazione sintassi" + +#: C/gedit.xml:806(para) +msgid "" +"Syntax highlighting makes source code easier to read by showing different " +"parts of the text in different colors." +msgstr "" +"L'evidenziazione della sintassi rende la lettura del codice sorgente più " +"semplice visualizzando diverse parti del testo con colori differenti." + +#: C/gedit.xml:808(para) +msgid "" +"gedit chooses an appropriate syntax highlighting " +"mode based on a document's type. To override the syntax highlighting mode, " +"choose ViewHighlight Mode, then choose one of the following menu items:" +msgstr "" +"gedit sceglie un'evidenziazione della sintassi " +"appropriata in base al tipo di documento. Per modificare la modalità di " +"evidenziazione, scegliere VisualizzaModalità di evidenziazione e " +"quindi scegliere una delle seguenti voci:" + +#: C/gedit.xml:811(guimenuitem) +msgid "Normal" +msgstr "Nessuna" + +#: C/gedit.xml:813(para) +msgid "Do not display any syntax highlighting." +msgstr "Non visualizza alcuna evidenziazione." + +#: C/gedit.xml:817(guisubmenu) +msgid "Sources" +msgstr "Sorgenti" + +#: C/gedit.xml:819(para) +msgid "" +"Display syntax highlighting to edit source code. Use the " +"Sources submenu to select the source code type." +msgstr "" +"Visualizza l'evidenziazione della sintassi per il codice sorgente. Usare il " +"sotto-menù Sorgenti per selezionare il tipo di " +"codice sorgente." + +#: C/gedit.xml:823(guisubmenu) +msgid "Markup" +msgstr "Markup" + +#: C/gedit.xml:825(para) +msgid "" +"Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type." +msgstr "" +"Visualizza l'evidenziazione della sintassi per il codice di marcatura. Usare " +"il sotto-menù Markup per selezionare il tipo di " +"marcatura." + +#: C/gedit.xml:829(guisubmenu) +msgid "Scripts" +msgstr "Script" + +#: C/gedit.xml:831(para) +msgid "" +"Display syntax highlighting to edit script code. Use the " +"Scripts submenu to select the script code type." +msgstr "" +"Visualizza l'evidenziazione della sintassi per gli script. Usare il sotto-" +"menù Script per selezionare il tipo di script." + +#: C/gedit.xml:835(guisubmenu) +msgid "Others" +msgstr "Altri" + +#: C/gedit.xml:837(para) +msgid "" +"Display syntax highlighting to edit other types of code. Use the " +"Others submenu to select the code type." +msgstr "" +"Visualizza l'evidenziazione di sintassi per altri tipi di codice. Usare il " +"sotto-menù Altri per selezionare il tipo." + +#: C/gedit.xml:845(title) +msgid "Piping the Output of a Command to a File" +msgstr "Inviare l'output di un comando in pipe a un file" + +#: C/gedit.xml:846(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" +"È possibile usare gedit per inviare con una pipe " +"l'output di un comando a un file di testo. Per esempio, per inviare in pipe " +"l'output del comando ls a un file di testo, digitare " +"ls | gedit, quindi premere Invio." + +#: C/gedit.xml:847(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" +"L'output del comando ls viene visualizzato in un nuovo " +"file di testo nella finestra di gedit." + +#: C/gedit.xml:848(para) +msgid "" +"Alternatively, you can use the External tools " +"plugin to pipe command output to the current file." +msgstr "" +"In alternativa, è possibile usare il plugin Strumenti esterni per inviare in pipe l'output del comando al file aperto." + +#: C/gedit.xml:854(title) +msgid "Shortcut Keys" +msgstr "Scorciatoie da tastiera" + +#: C/gedit.xml:855(para) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the mouse " +"and menus. The following tables list all of gedit's shortcut keys." +msgstr "" +"È possibile usare le scorciatoie da tastiera per eseguire delle azioni " +"comuni più velocemente rispetto all'utilizzo del mouse o dei menù. La " +"seguente tabella elenca tutte le scorciatoie di gedit." + +#: C/gedit.xml:856(para) +msgid "" +"For more on shortcut keys, see the Desktop User Guide." +msgstr "" +"Per maggiori informazioni sulle scorciatoie da tastiera, consultare la " +"Guida " +"all'ambiente grafico per l'utente." + +#. ============= Tabs ======================== +#: C/gedit.xml:859(bridgehead) C/gedit.xml:1207(guilabel) +msgid "Tabs" +msgstr "Tabulazioni" + +#: C/gedit.xml:860(para) +msgid "Shortcuts for tabs:" +msgstr "Scorciatoie per le tabulazioni:" + +#: C/gedit.xml:868(para) C/gedit.xml:912(para) C/gedit.xml:968(para) +#: C/gedit.xml:1016(para) C/gedit.xml:1044(para) C/gedit.xml:1091(para) +#: C/gedit.xml:1134(para) +msgid "Shortcut Key" +msgstr "Scorciatoia" + +#: C/gedit.xml:870(para) C/gedit.xml:914(para) C/gedit.xml:970(para) +#: C/gedit.xml:1018(para) C/gedit.xml:1046(para) C/gedit.xml:1093(para) +#: C/gedit.xml:1136(para) +msgid "Command" +msgstr "Comando" + +#: C/gedit.xml:875(para) +msgid "Ctrl + Alt + PageUp" +msgstr "Ctrl + Alt + PagSu" + +#: C/gedit.xml:876(para) +msgid "Switches to the next tab to the left." +msgstr "Passa alla successiva scheda sulla sinistra." + +#: C/gedit.xml:879(para) +msgid "Ctrl + Alt + PageDown" +msgstr "Ctrl + Alt + PagGiù" + +#: C/gedit.xml:880(para) +msgid "Switches to the next tab to the right." +msgstr "Passa alla successiva scheda sulla destra." + +#: C/gedit.xml:883(para) C/gedit.xml:947(para) +msgid "Ctrl + W" +msgstr "Ctrl + W" + +#: C/gedit.xml:884(para) +msgid "Close tab." +msgstr "Chiude la scheda." + +#: C/gedit.xml:887(para) +msgid "Ctrl + Shift + L" +msgstr "Ctrl + Maiusc + L" + +#: C/gedit.xml:888(para) +msgid "Save all tabs." +msgstr "Salva tutte le schede." + +#: C/gedit.xml:891(para) +msgid "Ctrl + Shift + W" +msgstr "Ctrl + Maiusc + W" + +#: C/gedit.xml:892(para) +msgid "Close all tabs." +msgstr "Chiude tutte le schede." + +#: C/gedit.xml:895(para) +msgid "Alt + n" +msgstr "Alt + n" + +#: C/gedit.xml:896(para) +msgid "Jump to nth tab." +msgstr "Passa all'n-esima scheda." + +#. ============= Files ======================== +#: C/gedit.xml:903(bridgehead) +msgid "Files" +msgstr "File" + +#: C/gedit.xml:904(para) +msgid "Shortcuts for working with files:" +msgstr "Scorciatoie per lavorare con i file:" + +#: C/gedit.xml:919(para) +msgid "Ctrl + N" +msgstr "Ctrl + N" + +#: C/gedit.xml:920(para) +msgid "Create a new document." +msgstr "Creare un nuovo file." + +#: C/gedit.xml:923(para) +msgid "Ctrl + O" +msgstr "Ctrl + O" + +#: C/gedit.xml:924(para) +msgid "Open a document." +msgstr "Apre un file." + +#: C/gedit.xml:927(para) +msgid "Ctrl + L" +msgstr "Ctrl + L" + +#: C/gedit.xml:928(para) +msgid "Open a location." +msgstr "Apre una posizione." + +#: C/gedit.xml:931(para) +msgid "Ctrl + S" +msgstr "Ctrl + S" + +#: C/gedit.xml:932(para) +msgid "Save the current document to disk." +msgstr "Salva il file aperto sul disco." + +#: C/gedit.xml:935(para) +msgid "Ctrl + Shift + S" +msgstr "Ctrl + Maiusc + S" + +#: C/gedit.xml:936(para) +msgid "Save the current document with a new filename." +msgstr "Salva il file aperto con un nuovo nome." + +#: C/gedit.xml:939(para) +msgid "Ctrl + P" +msgstr "Ctrl + P" + +#: C/gedit.xml:940(para) +msgid "Print the current document." +msgstr "Stampa il file corrente." + +#: C/gedit.xml:943(para) +msgid "Ctrl + Shift + P" +msgstr "Ctrl + Maiusc + P" + +#: C/gedit.xml:944(para) +msgid "Print preview." +msgstr "Anteprima di stampa." + +#: C/gedit.xml:948(para) +msgid "Close the current document." +msgstr "Chiude il file corrente." + +#: C/gedit.xml:951(para) +msgid "Ctrl + Q" +msgstr "Ctrl + Q" + +#: C/gedit.xml:952(para) +msgid "Quit Gedit." +msgstr "Esce da Gedit" + +#. ============= Edit ======================= +#: C/gedit.xml:959(bridgehead) C/gedit.xml:1408(guimenu) +#: C/gedit.xml:1414(guimenu) C/gedit.xml:1420(guimenu) +#: C/gedit.xml:1426(guimenu) +msgid "Edit" +msgstr "Modifica" + +#: C/gedit.xml:960(para) +msgid "Shortcuts for editing documents:" +msgstr "Scorciatoie per modificare i file:" + +#: C/gedit.xml:975(para) +msgid "Ctrl + Z" +msgstr "Ctrl + Z" + +#: C/gedit.xml:976(para) +msgid "Undo the last action." +msgstr "Annulla l'ultima azione." + +#: C/gedit.xml:979(para) +msgid "Ctrl + Shift + Z" +msgstr "Ctrl + Maiusc + Z" + +#: C/gedit.xml:980(para) +msgid "Redo the last undone action ." +msgstr "Ripete l'ultima azione annullata." + +#: C/gedit.xml:983(para) +msgid "Ctrl + X" +msgstr "Ctrl + X" + +#: C/gedit.xml:984(para) +msgid "Cut the selected text or region and place it on the clipboard." +msgstr "Taglia il testo o la regione selezionata e la mette negli appunti." + +#: C/gedit.xml:987(para) +msgid "Ctrl + C" +msgstr "Ctrl + C" + +#: C/gedit.xml:988(para) +msgid "Copy the selected text or region onto the clipboard." +msgstr "Copia il testo o la regione selezionata negli appunti." + +#: C/gedit.xml:991(para) +msgid "Ctrl + V" +msgstr "Ctrl + V" + +#: C/gedit.xml:992(para) +msgid "Paste the contents of the clipboard." +msgstr "Incolla il contenuto degli appunti." + +#: C/gedit.xml:995(para) +msgid "Ctrl + A" +msgstr "Ctrl + A" + +#: C/gedit.xml:996(para) +msgid "Select all." +msgstr "Seleziona tutto." + +#: C/gedit.xml:999(para) +msgid "Ctrl + D" +msgstr "Ctrl + D" + +#: C/gedit.xml:1000(para) +msgid "Delete current line." +msgstr "Elimina la riga attuale." + +#. ============= Panes ======================= +#: C/gedit.xml:1007(bridgehead) +msgid "Panes" +msgstr "Riquadri" + +#: C/gedit.xml:1008(para) +msgid "Shortcuts for showing and hiding panes:" +msgstr "Scorciatoie per mostrare e nascondere i riquadri:" + +#: C/gedit.xml:1023(para) +msgid "F9" +msgstr "F9" + +#: C/gedit.xml:1024(para) +msgid "Show/hide the side pane." +msgstr "Mostra/Nasconde il riquadro laterale." + +#: C/gedit.xml:1027(para) +msgid "Ctrl + F9" +msgstr "Ctrl + F9" + +#: C/gedit.xml:1028(para) +msgid "Show/hide the bottom pane." +msgstr "Mostra/Nasconde il riquadro inferiore." + +#. ============= Search ======================= +#: C/gedit.xml:1035(bridgehead) +msgid "Search" +msgstr "Cerca" + +#: C/gedit.xml:1036(para) +msgid "Shortcuts for searching:" +msgstr "Scorciatoie per eseguire ricerche:" + +#: C/gedit.xml:1051(para) +msgid "Ctrl + F" +msgstr "Ctrl + F" + +#: C/gedit.xml:1052(para) +msgid "Find a string." +msgstr "Trova una stringa." + +#: C/gedit.xml:1055(para) +msgid "Ctrl + G" +msgstr "Ctrl + G" + +#: C/gedit.xml:1056(para) +msgid "Find the next instance of the string." +msgstr "Trova l'istanza successiva della stringa." + +#: C/gedit.xml:1059(para) +msgid "Ctrl + Shift + G" +msgstr "Ctrl + Maiusc + G" + +#: C/gedit.xml:1060(para) +msgid "Find the previous instance of the string." +msgstr "Trova l'istanza precedente della stringa." + +#: C/gedit.xml:1063(para) +msgid "Ctrl + K" +msgstr "Ctrl + K" + +# (NdT) è la ricerca incrementale... +#: C/gedit.xml:1064(para) +msgid "Interactive search." +msgstr "Ricerca incrementale." + +#: C/gedit.xml:1067(para) +msgid "Ctrl + H" +msgstr "Ctrl + H" + +#: C/gedit.xml:1068(para) +msgid "Search and replace." +msgstr "Cerca e sostituisce." + +#: C/gedit.xml:1071(para) +msgid "Ctrl + Shift + K" +msgstr "Ctrl + Maiusc + K" + +#: C/gedit.xml:1072(para) +msgid "Clear highlight." +msgstr "Azzera evidenziazione." + +#: C/gedit.xml:1075(para) +msgid "Ctrl + I" +msgstr "Ctrl + I" + +#: C/gedit.xml:1076(para) +msgid "Goto line." +msgstr "Va alla riga." + +#. ============= Tools ======================= +#: C/gedit.xml:1082(bridgehead) +msgid "Tools" +msgstr "Strumenti" + +#: C/gedit.xml:1083(para) +msgid "Shortcuts for tools:" +msgstr "Scorciatoie per gli strumenti:" + +#: C/gedit.xml:1098(para) +msgid "Shift + F7" +msgstr "Maiusc + F7" + +#: C/gedit.xml:1099(para) +msgid "Check spelling (with plugin)." +msgstr "Controllo ortografico (con plugin)." + +#: C/gedit.xml:1102(para) +msgid "Alt + F12" +msgstr "Alt + F12" + +#: C/gedit.xml:1103(para) +msgid "Remove trailing spaces (with plugin)." +msgstr "Rimuove gli spazi di fine riga (con plugin)." + +#: C/gedit.xml:1106(para) +msgid "Ctrl + T" +msgstr "Ctrl + T" + +#: C/gedit.xml:1107(para) +msgid "Indent (with plugin)." +msgstr "Rientro (con plugin)." + +#: C/gedit.xml:1110(para) +msgid "Ctrl + Shift + T" +msgstr "Ctrl + Maiusc + T" + +#: C/gedit.xml:1111(para) +msgid "Remove Indent (with plugin)." +msgstr "Rimuove rientro (con plugin)." + +#: C/gedit.xml:1114(para) +msgid "F8" +msgstr "F8" + +#: C/gedit.xml:1115(para) +msgid "Run \"make\" in current directory (with plugin)." +msgstr "Esegue \"make\" nella directory attuale (con plugin)." + +#: C/gedit.xml:1118(para) +msgid "Ctrl + Shift + D" +msgstr "Ctrl + Maiusc + D" + +#: C/gedit.xml:1119(para) +msgid "Directory listing (with plugin)." +msgstr "Elenco directory (con plugin)." + +#. ============= Help ======================= +#: C/gedit.xml:1125(bridgehead) +msgid "Help" +msgstr "Aiuto" + +#: C/gedit.xml:1126(para) +msgid "Shortcuts for help:" +msgstr "Scorciatoie per l'aiuto:" + +#: C/gedit.xml:1141(para) +msgid "F1" +msgstr "F1" + +#: C/gedit.xml:1142(para) +msgid "Open gedit's user manual." +msgstr "Apre il manuale utente di gedit." + +#: C/gedit.xml:1154(title) +msgid "Preferences" +msgstr "Preferenze" + +#: C/gedit.xml:1156(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" +"Per configurare gedit, scegliere " +"ModificaPreferenze. La finestra di dialogo Preferenze contiene le seguenti categorie:" + +#: C/gedit.xml:1165(title) +msgid "View Preferences" +msgstr "Preferenze di visualizzazione" + +#: C/gedit.xml:1170(para) +msgid "" +"Select the Enable text wrapping option to have long " +"lines of text flow into paragraphs instead of running off the edge of the " +"text window. This avoids having to scroll horizontally" +msgstr "" +"Selezionare l'opzione Attivare a capo automatico in " +"modo che le righe di testo più lunghe non vadano oltre il bordo della " +"finestra. In questo modo si evita lo scorrimento orizzontale." + +#: C/gedit.xml:1171(para) +msgid "" +"Select the Do not split words over two lines option to " +"have the text wrapping option preserve whole words when flowing text to the " +"next line. This makes text easier to read." +msgstr "" +"Selezionare l'opzione Non dividere le parole su due righe in modo che l'opzione di a capo automatico preservi le parole a " +"fine riga intere. Consente una lettura più facile del testo." + +#: C/gedit.xml:1177(para) +msgid "" +"Select the Display line numbers option to display line " +"numbers on the left side of the gedit window." +msgstr "" +"Selezionare l'opzione Mostrare i numeri di riga per " +"visualizzare i numeri di riga nella parte sinistra della finestra di " +"gedit." + +#: C/gedit.xml:1181(guilabel) +msgid "Current Line" +msgstr "Riga corrente" + +#: C/gedit.xml:1183(para) +msgid "" +"Select the Highlight current line option to highlight " +"the line where the cursor is placed." +msgstr "" +"Selezionare l'opzione Evidenziare la riga corrente per " +"evidenziare la riga a cui il cursore è posizionato." + +#: C/gedit.xml:1187(guilabel) +msgid "Right Margin" +msgstr "Margine destro" + +#: C/gedit.xml:1189(para) +msgid "" +"Select the Display right margin option to display a " +"vertical line that indicates the right margin." +msgstr "" +"Selezionare l'opzione Mostrare il margine destro per " +"visualizzare una riga verticale indicante il margine destro." + +#: C/gedit.xml:1190(para) +msgid "" +"Use the Right margin at column spin box to specify the " +"location of the vertical line." +msgstr "" +"Usare il controllo di selezione Margine destro alla colonna per specificare la posizione della riga verticale." + +#: C/gedit.xml:1194(guilabel) +msgid "Bracket Matching" +msgstr "Corrispondenza parentesi" + +#: C/gedit.xml:1196(para) +msgid "" +"Select the Highlight matching bracket option to " +"highlight the corresponding bracket when the cursor is positioned on a " +"bracket character." +msgstr "" +"Selezionare l'opzione Evidenziare la parentesi corrispondente per evidenziare la parentesi corrispondente quando il cursore è " +"posizionato su una parentesi." + +#: C/gedit.xml:1204(title) +msgid "Editor Preferences" +msgstr "Preferenze dell'editor" + +#: C/gedit.xml:1209(para) +msgid "" +"Use the Tab width spin box to specify the width of the " +"space that gedit inserts when you press the " +"Tab key." +msgstr "" +"Usare il controllo di selezione Ampiezza tabulazione " +"per specificare la larghezza dello spazio che gedit deve inserire quando si preme il tasto Tab." + +#: C/gedit.xml:1210(para) +msgid "" +"Select the Insert spaces instead of tabs option to " +"specify that gedit inserts spaces instead of a " +"tab character when you press the Tab key." +msgstr "" +"Selezionare l'opzione Inserire spazi invece di tabulazioni per specificare che gedit deve inserire " +"una sequenza di spazi anziché un carattere di tabulazione quando si preme il " +"tasto Tab." + +#: C/gedit.xml:1214(guilabel) +msgid "Auto Indentation" +msgstr "Rientro automatico" + +#: C/gedit.xml:1216(para) +msgid "" +"Select the Enable auto indentation option to specify " +"that the next line starts at the indentation level of the current line." +msgstr "" +"Selezionare l'opzione Attivare rientro automatico per " +"specificare che la riga successiva deve iniziare al livello di rientro di " +"quella attuale." + +#: C/gedit.xml:1220(guilabel) +msgid "File Saving" +msgstr "Salvataggio file" + +#: C/gedit.xml:1222(para) +msgid "" +"Select the Create a backup copy of files before saving " +"option to create a backup copy of a file each time you save the file. The " +"backup copy of the file contains a ~ at the end of the filename." +msgstr "" +"Selezionare l'opzione Creare una copia di backup dei file prima di " +"salvare per creare una copia di backup di un file ogni volta che " +"viene salvato. La copia di backup del file presenta una tilde (~) alla fine " +"del nome." + +#: C/gedit.xml:1223(para) +msgid "" +"Select the Autosave files every ... minutes option to " +"automatically save the current file at regular intervals. Use the spin box " +"to specify how often you want to save the file." +msgstr "" +"Selezionare l'opzione Salvataggio automatico ogni ... minuti per impostare il salvataggio automatico del file a intervalli " +"regolari. Usare il controllo di selezione per specificare l'intervallo per " +"il salvataggio automatico del file." + +#: C/gedit.xml:1230(title) +msgid "Font & Colors Preferences" +msgstr "Caratteri & colori" + +#: C/gedit.xml:1233(guilabel) +msgid "Font" +msgstr "Carattere" + +# (NdT) ma dove è? +#: C/gedit.xml:1235(para) +msgid "" +"Select the Use default theme font option to use the " +"default system font for the text in the gedit " +"text window." +msgstr "" +"Selezionare l'opzione Usare il carattere predefinito del tema per usare il tipo di carattere predefinito del sistema nella " +"finestra di testo di gedit." + +#: C/gedit.xml:1236(para) +msgid "" +"The Editor font field displays the font that " +"gedit uses to display text. Click on the button " +"to specify the font type, style, and size to use for text." +msgstr "" +"Il campo Carattere dell'editor visualizza il tipo di " +"carattere utilizzato da gedit per la " +"visualizzazione del testo. Fare clic sul pulsante per specificare il tipo di " +"carattere, lo stile e la dimensione da usare per il testo." + +#: C/gedit.xml:1240(guilabel) +msgid "Color Scheme" +msgstr "Schema colore" + +#: C/gedit.xml:1242(para) +msgid "" +"You can choose a color scheme from the list of color schemes. By default, " +"the following color schemes are installed:" +msgstr "" +"È possibile scegliere uno schema di colori dall'elenco di quelli installati. " +"Quelli che seguono sono gli schemi di colori installati in modo predefinito:" + +#: C/gedit.xml:1245(guilabel) +msgid "Classic" +msgstr "Classic" + +#: C/gedit.xml:1247(para) +msgid "Classic color scheme based on the gvim color scheme." +msgstr "Schema colore classico basato su quello di gvim." + +#: C/gedit.xml:1251(guilabel) +msgid "Cobalt" +msgstr "Cobalt" + +#: C/gedit.xml:1253(para) +msgid "Blue based color scheme." +msgstr "Schema colore basato sul blu." + +#: C/gedit.xml:1257(guilabel) +msgid "Kate" +msgstr "Kate" + +#: C/gedit.xml:1259(para) +msgid "Color scheme used in the Kate text editor." +msgstr "Schema colore usato nell'editor di testo Kate." + +#: C/gedit.xml:1263(guilabel) +msgid "Oblivion" +msgstr "Oblivion" + +#: C/gedit.xml:1265(para) +msgid "Dark color scheme using the Tango color palette." +msgstr "Schema colore scuro che fa uso dei colori del progetto Tango." + +#: C/gedit.xml:1269(guilabel) +msgid "Tango" +msgstr "Tango" + +#: C/gedit.xml:1271(para) +msgid "Color scheme using the Tango color scheme." +msgstr "Schema colore che fa uso dei colori del progetto Tango." + +#: C/gedit.xml:1275(para) +msgid "" +"You can add a new color scheme by clicking on Add..., " +"and selecting a color scheme file" +msgstr "" +"È possibile aggiungere un nuovo schema di colori facendo clic su " +"Aggiungi... e selezionando un file contenente lo schema " +"di colori" + +#: C/gedit.xml:1276(para) +msgid "" +"You can remove the selected color scheme by clicking on Remove" +msgstr "" +"È possibile rimuovere lo schema colore selezionato facendo clic su " +"Rimuovi" + +#: C/gedit.xml:1283(title) +msgid "Plugins Preferences" +msgstr "Plugin" + +#: C/gedit.xml:1284(para) +msgid "" +"Plugins add extra features to gedit. For more " +"information on plugins and how to use the built-in plugins, see ." +msgstr "" +"I plugin aggiungono funzionalità a gedit. Per " +"maggiori informazioni sull'utilizzo dei plugin integrati, consultare ." + +#: C/gedit.xml:1288(title) +msgid "Enabling a Plugin" +msgstr "Abilitare un plugin" + +#: C/gedit.xml:1289(para) +msgid "" +"To enable a gedit plugin, perform the following " +"steps:" +msgstr "" +"Per abilitare un plugin di gedit, procedere come " +"segue:" + +#: C/gedit.xml:1292(para) C/gedit.xml:1313(para) C/gedit.xml:1637(para) +msgid "" +"Choose EditPreferences." +msgstr "" +"Scegliere ModificaPreferenze." + +#: C/gedit.xml:1295(para) C/gedit.xml:1316(para) C/gedit.xml:1640(para) +msgid "Select the Plugins tab." +msgstr "Selezionare la scheda Plugin." + +#: C/gedit.xml:1298(para) +msgid "" +"Select the check box next to the name of the plugin that you want to enable." +msgstr "" +"Selezionare la casella di spunta a fianco il nome del plugin da abilitare." + +#: C/gedit.xml:1301(para) C/gedit.xml:1322(para) +msgid "" +"Click Close to close the Preferences dialog." +msgstr "" +"Fare clic su Chiudi per chiudere la finestra di " +"dialogo Preferenze." + +#: C/gedit.xml:1308(title) +msgid "Disabling a Plugin" +msgstr "Disabilitare un plugin" + +#: C/gedit.xml:1309(para) +msgid "" +"A plugin remains enabled when you quit gedit." +msgstr "" +"Quando si esce da gedit, i plugin rimangono " +"abilitati." + +#: C/gedit.xml:1310(para) +msgid "" +"To disable a gedit plugin, perform the following " +"steps:" +msgstr "" +"Per disabilitare un plugin di gedit, procedere " +"come segue:" + +#: C/gedit.xml:1319(para) +msgid "" +"Deselect the check box next to the name of the plugin that you want to " +"disable." +msgstr "" +"Deselezionare la casella di spunta a fianco del nome del plugin da " +"disabilitare." + +# (NdT) ho differenziato il titolo per via dello stesso usato precedentemente +# in cui veniva indicata la scheda Plugin nelle Preferenze +#: C/gedit.xml:1331(title) +msgid "Plugins" +msgstr "I plugin" + +#: C/gedit.xml:1333(title) +msgid "Working with Plugins" +msgstr "Lavorare con i plugin" + +#: C/gedit.xml:1334(para) +msgid "" +"You can add extra features to gedit by enabling " +"plugins. A plugin is a supplementary program that " +"enhances the functionality of an application. Plugins add new items to the " +"gedit menus for the new features they provide." +msgstr "" +"È possibile aggiungere ulteriori caratteristiche a gedit attraverso l'uso dei plugin. Un plugin è un programma " +"ausiliario che aumenta le funzionalità di un'applicazione. I plugin " +"aggiungono nuovi oggetti ai menù di gedit in base " +"alle funzionalità che forniscono." + +#: C/gedit.xml:1336(para) +msgid "" +"Several plugins come built-in with gedit, and you " +"can install more. The gedit website lists third-party plugins." +msgstr "" +"Diversi plugin sono integrati in gedit ed è " +"possibile installarne altri. Il sito wed di gedit elenca ulteriori plugin." + +#: C/gedit.xml:1337(para) +msgid "" +"To enable and disable plugins, or see which plugins are currently enabled, " +"use the Plugins Preferences." +msgstr "" +"Per abilitare o disabilitare un plugin o per vedere quali plugin sono " +"attualmente abilitati, consultare la sezione Plugin." + +#: C/gedit.xml:1338(para) +msgid "" +"The following plugins come built-in with gedit:" +msgstr "I seguenti plugin sono integrati in gedit:" + +#: C/gedit.xml:1344(para) +msgid "" +"Change Case allows you to change the case of the selected text." +msgstr "" +"Cambia maiuscole/" +"minuscole consente di cambiare il testo selezionato tra " +"maiuscolo e minuscolo." + +#: C/gedit.xml:1347(para) +msgid "" +"Document " +"Statistics shows the number of lines, words, and " +"characters in the document." +msgstr "" +"Statistiche " +"sul documento mostra il numero di righe, parole e " +"caratteri del documento." + +#: C/gedit.xml:1350(para) +msgid "" +"External Tools allows you to execute external commands from " +"gedit." +msgstr "" +"Strumenti " +"esterni consente di eseguire comandi esterni da " +"gedit." + +#: C/gedit.xml:1353(para) +msgid "" +"File Browser allows you to browse your files and " +"folders in the side pane." +msgstr "" +"Pannello dell'esplorazione file consente di " +"esplorare i propri file e cartelle nel riquadro laterale." + +#: C/gedit.xml:1356(para) +msgid "" +"Indent Lines adds or removes indentation from the selected lines." +msgstr "" +"Applica un rientro " +"alle righe aggiunge o rimuove un rientro alle righe " +"selezionate." + +#: C/gedit.xml:1359(para) +msgid "" +"Insert Date/" +"Time adds the current date and time into a document." +msgstr "" +"Inserisci date " +"e ora aggiunge al documento la data e l'ora correnti." + +#: C/gedit.xml:1362(para) +msgid "" +"Modelines allows you to set editing preferences for individual documents, " +"and supports Emacs, Kate and Vim-style modelines." +msgstr "" +"Modeline consente di impostare delle preferenze di modifica per alcuni " +"documenti e supporta le modeline in stile Emacs, " +"Kate e Vim." + +#: C/gedit.xml:1365(para) +msgid "" +"Python Console allows you to run commands in the python programming " +"language." +msgstr "" +"Console python consente di eseguire comandi attraverso il linguaggio di " +"programmazione python." + +#: C/gedit.xml:1368(para) +msgid "" +"Snippets allows you to store frequently-used pieces of text and insert " +"them quickly into a document." +msgstr "" +"Snippet consente di archiviare dei frammenti di testo usati " +"frequentemente e di inserirli all'interno di un documento." + +#: C/gedit.xml:1371(para) +msgid "" +"Sort " +"arranges selected lines of text into alphabetical order." +msgstr "" +"Ordina " +"organizza alfabeticamente le righe di testo selezionate." + +#: C/gedit.xml:1374(para) +msgid "" +"Spell Checker corrects the spelling in the selected text, or marks " +"errors automatically in the document." +msgstr "" +"Correttore " +"ortografico controlla l'ortografia del testo " +"selezionato o evidenzia automaticamente gli errori nel documento." + +#: C/gedit.xml:1377(para) +msgid "" +"Tag List lets you insert commonly-used tags for HTML and other languages " +"from a list in the side pane." +msgstr "" +"Elenco tag consente di inserire i tag più usati per l'HTML e altri " +"linguaggi da un elenco nel riquadro laterale." + +#: C/gedit.xml:1380(para) +msgid "" +"User Name inserts the username of the current user into the document." +msgstr "" +"Nome utente inserisce il nome dell'utente nel documento." + +#: C/gedit.xml:1387(title) +msgid "Change Case Plugin" +msgstr "Plugin «Cambia maiuscole/minuscole»" + +#: C/gedit.xml:1388(para) +msgid "" +"The Change Case plugin changes the case of the " +"selected text." +msgstr "" +"Il plugin Cambia maiuscole/minuscole cambia tra " +"maiuscole e minuscole il testo selezionato." + +#: C/gedit.xml:1389(para) +msgid "" +"The following items are added to the Edit menu when the " +"Change Case plugin is enabled:" +msgstr "" +"I seguenti elementi sono aggiunti al menù Modifica quando " +"il plugin Cambia maiuscole/minuscole è abilitato:" + +#: C/gedit.xml:1399(para) +msgid "Menu Item" +msgstr "Voce di menù" + +#: C/gedit.xml:1401(para) +msgid "Action" +msgstr "Azione" + +#: C/gedit.xml:1403(para) +msgid "Example" +msgstr "Esempio" + +#: C/gedit.xml:1409(guisubmenu) C/gedit.xml:1415(guisubmenu) +#: C/gedit.xml:1421(guisubmenu) C/gedit.xml:1427(guisubmenu) +msgid "Change Case" +msgstr "Modifica maiuscole/minuscole" + +#: C/gedit.xml:1409(guimenuitem) +msgid "All Upper Case" +msgstr "Tutto in maiuscolo" + +#: C/gedit.xml:1410(para) +msgid "Change each character to uppercase." +msgstr "Modifica ogni carattere in maiuscolo." + +#: C/gedit.xml:1411(para) +msgid "This text becomes THIS TEXT" +msgstr "" +"Questo testo diventa QUESTO TESTO" + +#: C/gedit.xml:1415(guimenuitem) +msgid "All Lower Case" +msgstr "Tutto in minuscolo" + +#: C/gedit.xml:1416(para) +msgid "Change each character to lowercase." +msgstr "Modifica ogni carattere in minuscolo." + +#: C/gedit.xml:1417(para) +msgid "This Text becomes this text" +msgstr "" +"Questo Testo diventa questo testo" + +#: C/gedit.xml:1421(guimenuitem) +msgid "Invert Case" +msgstr "Inverti maiuscole/minuscole" + +# (NdT) più corta :) +#: C/gedit.xml:1422(para) +msgid "" +"Change each lowercase character to uppercase, and change each uppercase " +"character to lowercase." +msgstr "Modifica ogni carattere minuscolo in maiuscolo e viceversa." + +#: C/gedit.xml:1423(para) +msgid "This Text becomes tHIS tEXT" +msgstr "" +"Questo Testo diventa qUESTO tESTO" + +#: C/gedit.xml:1427(guimenuitem) +msgid "Title Case" +msgstr "Iniziali in maiuscolo" + +#: C/gedit.xml:1428(para) +msgid "Change the first character of each word to uppercase." +msgstr "Modifica il primo carattere di ogni parola in maiuscolo." + +#: C/gedit.xml:1429(para) +msgid "this text becomes This Text" +msgstr "" +"questo testo diventa Questo Testo" + +#: C/gedit.xml:1438(title) +msgid "Document Statistics Plugin" +msgstr "Plugin «Statistiche sul documento»" + +#: C/gedit.xml:1439(para) +msgid "" +"The Document Statistics plugin counts the number " +"of lines, words, characters with spaces, characters without spaces, and " +"bytes in the current file. The plugin displays the results in a " +"Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" +"Il plugin Statistiche sul documento conta il " +"numero di righe, parole, caratteri, compresi ed esclusi gli spazi, e byte " +"del file attivo. I risultati vengono visualizzati nella finestra di dialogo " +"Statistiche sul documento. Per usare il plugin " +"«Statistiche sul documento», procedere come segue:" + +#: C/gedit.xml:1441(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"displays the following information about the file:" +msgstr "" +"Scegliere StrumentiStatistiche " +"sul documento per aprire la finestra di dialogo " +"Statistiche sul documento. La finestra di dialogo " +"Statistiche sul documento visualizza le seguenti " +"informazioni sul file:" + +#: C/gedit.xml:1444(para) +msgid "Number of lines in the current document." +msgstr "Numero di righe del documento." + +#: C/gedit.xml:1447(para) +msgid "Number of words in the current document." +msgstr "Numero di parole del documento." + +#: C/gedit.xml:1450(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "Numero di caratteri, compresi gli spazi, del documento." + +#: C/gedit.xml:1453(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "Numero di caratteri, esclusi gli spazi, del documento." + +#: C/gedit.xml:1456(para) +msgid "Number of bytes in the current document." +msgstr "Numero di byte del documento." + +#: C/gedit.xml:1461(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click " +"Update." +msgstr "" +"È possibile continuare ad aggiornare il file di gedit anche tenendo aperta la finestra di dialogo " +"Statistiche sul documento. Per aggiornare il contenuto " +"della finestra di dialogo Statistiche sul documento, " +"fare clic su Aggiorna." + +#: C/gedit.xml:1468(title) +msgid "External Tools Plugin" +msgstr "Plugin «Strumenti esterni»" + +#: C/gedit.xml:1469(para) +msgid "" +"The External Tools plugin allows you to execute " +"external commands from gedit. You can pipe some " +"content into a command and exploit its output (for example, " +"sed), or launch a predefined command (for " +"example, make)." +msgstr "" +"Il plugin Strumenti esterni consente di eseguire " +"dei comandi esterni all'interno di gedit. È " +"possibile inviare in pipe dei contenuti a un comando e sfruttarne l'output " +"(per esempio sed) o eseguire un comando " +"predefinito (come make)." + +#: C/gedit.xml:1470(para) +msgid "" +"Use the External Tools Manager to create and edit " +"commands. To run an external command, choose it from the Tools menu." +msgstr "" +"Usare Gestore strumenti esterni per creare e modificare " +"i comandi. Per eseguire un comando esterno, sceglierlo dal menù " +"Strumenti." + +#: C/gedit.xml:1473(title) +msgid "Built-in Commands" +msgstr "Comandi integrati" + +#: C/gedit.xml:1474(para) +msgid "" +"The following commands are provided with the External Tools plugin:" +msgstr "" +"I seguenti comandi sono forniti con il plugin Strumenti " +"esterni:" + +#: C/gedit.xml:1476(term) +msgid "Build" +msgstr "Crea" + +#: C/gedit.xml:1478(para) +msgid "" +"Runs make in the current document's directory." +msgstr "Esegue make nella directory del documento." + +# (NdT) Non traducibile nell'interfaccia +#: C/gedit.xml:1481(term) +msgid "Directory Listing" +msgstr "Directory Listing" + +#: C/gedit.xml:1483(para) +msgid "" +"Lists the contents of the current document's directory in a new document." +msgstr "Elenca i contenuti della cartella del documento in un nuovo documento." + +# (NdT) Non traducibile nell'interfaccia +#: C/gedit.xml:1486(term) +msgid "Environment Variables" +msgstr "Environment Variables" + +#: C/gedit.xml:1488(para) +msgid "Displays the environment variables list in the bottom pane." +msgstr "Visualizza l'elenco delle variabili d'ambiente nel riquadro inferiore." + +#: C/gedit.xml:1491(term) +msgid "Grep" +msgstr "Grep" + +#: C/gedit.xml:1493(para) +msgid "" +"Searches for a term in all files in the current document directory, using " +"pattern matching. Results are shown in the bottom pane." +msgstr "" +"Cerca un termine in tutti i file nella directory del documento attuale " +"usando una ricerca per corrispondenza. I risultati sono mostrati nel " +"riquadro inferiore." + +#: C/gedit.xml:1496(term) +msgid "Remove Trailing Spaces" +msgstr "Rimuovi gli spazi di fine riga" + +#: C/gedit.xml:1498(para) +msgid "Removes all spaces from the end of lines in the document." +msgstr "Rimuove tutti gli spazi alla fine di ogni riga del documento." + +#: C/gedit.xml:1505(title) +msgid "Defining a Command" +msgstr "Definire un comando" + +#: C/gedit.xml:1506(para) +msgid "" +"To add an external command, choose ToolsExternal Tools." +msgstr "" +"Per aggiungere un comando esterno, scegliere StrumentiStrumenti esterni...." + +#: C/gedit.xml:1507(para) +msgid "" +"In the External Tools Manager window, click " +"New. You can speficy the following details for the " +"new command:" +msgstr "" +"Nella finestra di Gestore strumenti esterni, fare clic " +"su Nuovo. È possibile specificare i seguenti dettagli " +"per il nuovo comando:" + +#: C/gedit.xml:1509(term) +msgid "Description" +msgstr "Descrizione" + +#: C/gedit.xml:1511(para) +msgid "" +"This description is shown in the statusbar when the menu command is chosen." +msgstr "" +"La descrizione è mostrata nella barra di stato quando viene scelto il " +"comando." + +#: C/gedit.xml:1514(term) +msgid "Accelerator" +msgstr "Tasto scorciatoia" + +#: C/gedit.xml:1516(para) +msgid "Enter a keyboard shortcut for the command." +msgstr "Inserire una scorciatoia da tastiera per il comando." + +#: C/gedit.xml:1519(term) +msgid "Commands" +msgstr "Comando/i" + +#: C/gedit.xml:1521(para) +msgid "" +"The actual commands to be run. Several gedit " +"environment variables can be used to pass content to these commands: see " +"." +msgstr "" +"I comandi da eseguire. È possibile utilizzare diverse variabili d'ambiente " +"di gedit per passare i contenuti a questi " +"comandi: consultare ." + +#: C/gedit.xml:1524(term) +msgid "Input" +msgstr "Input" + +#: C/gedit.xml:1526(para) +msgid "" +"The content to give to the commands (as stdin): the " +"entire text of the current document, the current selection, line, or word." +msgstr "" +"Il contenuto da passare ai comandi (come stdin): " +"l'intero documento, la selezione, una riga o una parola." + +#: C/gedit.xml:1529(term) +msgid "Output" +msgstr "Output" + +#: C/gedit.xml:1531(para) +msgid "" +"What to do with the output of the commands: display in the bottom pane, put " +"in a new document, or place in the current document, at the end, at the " +"cursor position, or replacing the selection or the entire document." +msgstr "" +"Cosa fare con l'output dei comandi: visualizzarlo nel riquadro inferiore, in " +"un nuovo documento o posizionarlo alla fine del documento attuale, alla " +"posizione del cursore o sostituire la selezione o tutto il documento." + +#: C/gedit.xml:1534(term) +msgid "Applicability" +msgstr "Applicabilità" + +#: C/gedit.xml:1536(para) +msgid "" +"Determines which sort of documents can be affected by the command, for " +"example whether saved or not, and local or remote." +msgstr "" +"Determina quali documenti sono interessati dal comando, per esempio i " +"documenti salvati oppure no, i documenti locali o quelli remoti." + +#: C/gedit.xml:1544(title) +msgid "Editing and Removing Tools" +msgstr "Modificare e rimuovere gli strumenti" + +#: C/gedit.xml:1545(para) +msgid "" +"To edit a tool, select it in the list and make changes to its properties." +msgstr "" +"Per modificare uno strumenti, selezionarlo dall'elenco e modificare le sue " +"proprietà." + +#: C/gedit.xml:1546(para) +msgid "To rename a tool, click it again in the list." +msgstr "" +"Per rinominare uno strumento, fare nuovamente clic su di esso nell'elenco." + +#: C/gedit.xml:1547(para) +msgid "" +"To restore a built-in tool that you have changed, press Revert." +msgstr "" +"Per ripristinare uno strumento integrato che è stato modificato, fare clic " +"su Ripristina." + +#: C/gedit.xml:1548(para) +msgid "" +"To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created " +"yourself." +msgstr "" +"Per rimuovere uno strumento, selezionarlo dall'elenco e fare clic su " +"Rimuovi. Non è possibile rimuovere gli strumenti " +"integrati, solo quelli che vengono creati dall'utente." + +#: C/gedit.xml:1552(title) +msgid "Variables" +msgstr "Variabili" + +#: C/gedit.xml:1553(para) +msgid "" +"You can use the following variables in the Commands " +"field of the command definition:" +msgstr "" +"È possibile utilizzare le seguenti variabili nel campo Comando/i della definizione del comando:" + +#: C/gedit.xml:1556(para) +msgid "GEDIT_CURRENT_DOCUMENT_URI" +msgstr "GEDIT_CURRENT_DOCUMENT_URI" + +#: C/gedit.xml:1559(para) +msgid "GEDIT_CURRENT_DOCUMENT_NAME" +msgstr "GEDIT_CURRENT_DOCUMENT_NAME" + +#: C/gedit.xml:1562(para) +msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +msgstr "GEDIT_CURRENT_DOCUMENT_SCHEME" + +#: C/gedit.xml:1565(para) +msgid "GEDIT_CURRENT_DOCUMENT_PATH" +msgstr "GEDIT_CURRENT_DOCUMENT_PATH" + +#: C/gedit.xml:1568(para) +msgid "GEDIT_CURRENT_DOCUMENT_DIR" +msgstr "GEDIT_CURRENT_DOCUMENT_DIR" + +#: C/gedit.xml:1571(para) +msgid "GEDIT_DOCUMENTS_URI" +msgstr "GEDIT_DOCUMENTS_URI" + +#: C/gedit.xml:1574(para) +msgid "GEDIT_DOCUMENTS_PATH" +msgstr "GEDIT_DOCUMENTS_PATH" + +#: C/gedit.xml:1581(title) +msgid "File Browser Plugin" +msgstr "Plugin «Esplorazione file»" + +#: C/gedit.xml:1582(para) +msgid "" +"The File Browser Plugin shows your files and " +"folders in the side pane, allowing you to quickly open files." +msgstr "" +"Il plugin Esplorazione file mostra i propri file " +"e cartelle nel riquadro laterale, consentendo un'apertura veloce dei file." + +#: C/gedit.xml:1583(para) +msgid "" +"To view the File Browser, choose ViewSide Pane and then click on " +"the tab showing the File Browser icon at the bottom of the side pane." +msgstr "" +"Per visualizzare il riquadro dei file, scegliere " +"VisualizzaRiquadro laterale e quindi fare clic sull'icona identificante " +"l'esplorazione dei file in basso nel riquadro." + +#: C/gedit.xml:1585(title) +msgid "Browsing your Files" +msgstr "Esplorare i propri file" + +#: C/gedit.xml:1586(para) +msgid "" +"The File Browser tab initially shows your file manager bookmarks. To browse " +"the contents of any item, double-click it." +msgstr "" +"La scheda dei file, inizialmente, mostra i segnalibri del gestore dei file. " +"Per esplorare il contenuto di un oggetto, fare doppio clic su di esso." + +#: C/gedit.xml:1587(para) +msgid "" +"To show a parent folder, choose from the drop-down list, or press the up " +"arrow on the File Browser's toolbar." +msgstr "" +"Per mostrare una cartella superiore, sceglierla dall'elenco a discesa o " +"premere la freccia verso l'alto nella barra degli strumenti del riquadro." + +#: C/gedit.xml:1588(para) +msgid "" +"To show the folder that contains the document you are currently working on, " +"right-click in the file list and choose Set root to active " +"document." +msgstr "" +"Per mostrare la cartella del documento a cui si sta lavorando, fare clic col " +"tasto destro all'interno dell'elenco e scegliere Imposta il " +"documento attivo come radice." + +#: C/gedit.xml:1592(para) +msgid "" +"To open a file in gedit, double-click it in the " +"file list." +msgstr "" +"Per aprire un file in gedit, fare doppio clic su " +"di esso nell'elenco." + +#: C/gedit.xml:1595(title) +msgid "Creating Files and Folders" +msgstr "Creare file e cartelle" + +#: C/gedit.xml:1596(para) +msgid "" +"To create a new, empty text file in the current folder shown in the browser, " +"right-click in the file list and choose New File." +msgstr "" +"Per creare un nuovo file nella cartella attuale mostrata nel riquadro, fare " +"clic col tasto destro del mouse nell'elenco dei file e scegliere " +"Nuovo file." + +#: C/gedit.xml:1597(para) +msgid "" +"To create a new folder in the current folder shown in the browser, right-" +"click in the file list and choose New Folder." +msgstr "" +"Per creare una nuova cartella nella cartella attuale mostrata nel riquadro, " +"fare clic col tasto destro del mouse nell'elenco e scegliere " +"Nuova cartella." + +#: C/gedit.xml:1602(title) +msgid "Indent Lines Plugin" +msgstr "Plugin «Applica un rientro alle righe»" + +#: C/gedit.xml:1603(para) +msgid "" +"The Indent Lines plugin adds or removes space " +"from the beginning of lines of text." +msgstr "" +"Il plugin Applica un rientro alle righe aggiunge " +"o rimuove degli spazi all'inizio delle righe di testo." + +#: C/gedit.xml:1604(para) +msgid "To indent or unindent text, perform the following steps:" +msgstr "Per applicare o rimuovere un rientro, procedere come segue:" + +#: C/gedit.xml:1606(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" +"Selezionare le righe a cui si desidera applicare il rientro. Per applicare o " +"rimuovere un rientro su una singola riga, posizionare il cursore all'interno " +"di quella riga." + +#: C/gedit.xml:1611(para) +msgid "" +"To indent the text, choose EditIndent." +msgstr "" +"Per applicare un rientro, scegliere ModificaRientro." + +#: C/gedit.xml:1614(para) +msgid "" +"To remove the indentation, choose EditUnindent." +msgstr "" +"Per rimuovere il rientro, scegliere ModificaElimina rientro." + +#: C/gedit.xml:1619(para) +msgid "" +"The amount of space used, and whether tab character or space characters are " +"used, depends on the Tab Stops settings in the Editor " +"Preferences: see ." +msgstr "" +"La quantità di spazio usato, o l'uso di spazi o caratteri di tabulazione, " +"dipende delle impostazione di Tabulazioni nelle " +"preferenze: consultare ." + +#: C/gedit.xml:1624(title) +msgid "Insert Date/Time Plugin" +msgstr "Plugin «Inserisci data e ora»" + +#: C/gedit.xml:1625(para) +msgid "" +"The Insert Date/Time plugin inserts the current " +"date and time into a document. To use the Insert Date/Time plugin, perform " +"the following steps:" +msgstr "" +"Il plugin Inserisci data e ora permette di " +"inserire la data e l'ora corrente in un documento. Per usare il plugin " +"«Inserisci data e ora», procedere come segue:" + +#: C/gedit.xml:1627(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" +"Scegliere ModificaInserisci data " +"e ora." + +#: C/gedit.xml:1628(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click Insert to close the Insert Date " +"and Time dialog. gedit inserts the " +"date/time at the cursor position in the current file." +msgstr "" +"Se il plugin non è stato configurato per inserire automaticamente la data e " +"l'ora senza richiedere il formato all'utente, gedit visualizza la finestra di dialogo Inserisci data e " +"ora. Selezionare dall'elenco il formato appropriato per la data e " +"l'ora. Fare clic su Inserisci per chiudere la " +"finestra di dialogo Inserisci data e ora;" +"gedit inserisce la data e l'ora nella posizione " +"del cursore." + +#: C/gedit.xml:1629(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed. The date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" +"Se gedit è stato configurato per usare un " +"determinato formato per la data e l'ora, la finestra di dialogo " +"Inserisci data e ora non viene visualizzata; la data e " +"l'ora vengono inserite automaticamente nella posizione del cursore." + +#: C/gedit.xml:1634(title) +msgid "Configuring the Insert Date/Time Plugin" +msgstr "Configurare il plugin «Inserisci data e ora»" + +#: C/gedit.xml:1635(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "Per configurare il plugin «Inserisci data e ora», procedere come segue:" + +#: C/gedit.xml:1643(para) +msgid "Select the Insert Date/Time plugin." +msgstr "Selezionare il plugin Inserisci data e ora." + +#: C/gedit.xml:1646(para) +msgid "" +"Click Configure Plugin to display the " +"Configure insert date/time plugin dialog." +msgstr "" +"Fare clic su Configura plugin per aprire la finestra " +"di dialogo Configura plugin «Inserisci data e ora»." + +#: C/gedit.xml:1649(para) +msgid "Select one of the options, as follows:" +msgstr "Selezionare una delle seguenti opzioni:" + +#: C/gedit.xml:1651(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" +"Per specificare il formato da utilizzare ogni volta che si inseriscono la " +"data e l'ora, selezionare l'opzione Chiedere il formato." + +#: C/gedit.xml:1654(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" +"Per usare lo stesso formato fornito da gedit ogni " +"volta che si inseriscono la data e l'ora, selezionare l'opzione " +"Usare il formato selezionato e scegliere il formato " +"appropriato nell'elenco. Selezionando questa opzione, gedit non richiede il formato per la data e l'ora quando si sceglie " +"ModificaInserisci data e ora." + +#: C/gedit.xml:1657(para) +msgid "" +"To use the same customized date/time format each time you insert the date/" +"time, select the Use custom format option, then enter " +"the appropriate format in the text box. For more information about how to " +"specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose EditInsert Date and Time." +msgstr "" +"Per usare lo stesso formato personalizzato ogni volta che si inseriscono la " +"data e l'ora, selezionare l'opzione Usare un formato " +"personalizzato e inserire il formato appropriato nella casella di " +"testo. Per maggiori informazioni su come specificare un formato " +"personalizzato, consultare strftime3. Selezionando questa opzione, " +"gedit non richiede il formato per la data e l'ora " +"quando si sceglie ModificaInserisci data e ora." + +#: C/gedit.xml:1662(para) +msgid "" +"Click OK to close the Configure insert date/" +"time plugin dialog." +msgstr "" +"Fare clic su OK per chiudere la finestra di dialogo " +"Configura plugin «Inserisci data e ora»." + +#: C/gedit.xml:1665(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" +"Per chiudere la finestra di dialogo Preferenze, fare " +"clic su Chiudi." + +#: C/gedit.xml:1672(title) +msgid "Modelines Plugin" +msgstr "Plugin «Modeline»" + +#: C/gedit.xml:1673(para) +msgid "" +"The Modelines plugin allows you to set " +"preferences for individual documents. A modeline is a " +"line of text at the start or end of the document with settings that " +"gedit recognises." +msgstr "" +"Il plugin Modeline consente di impostare delle " +"preferenze per ogni documento. Una modeline è una " +"riga di testo all'inizio o alla fine del documento con delle impostazioni " +"riconosciute da gedit." + +#: C/gedit.xml:1674(para) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Le preferenze impostate usando le modeline hanno la precedenza su quelle " +"specificate nella finestra di dialogo delle preferenze." + +#: C/gedit.xml:1675(para) +msgid "You can set the following preferences with modelines:" +msgstr "È possibile impostare le seguenti preferenze con le modeline:" + +#: C/gedit.xml:1678(para) +msgid "Tab width" +msgstr "Larghezza tabulazioni" + +#: C/gedit.xml:1681(para) +msgid "Indent width" +msgstr "Larghezza rientro" + +#: C/gedit.xml:1684(para) +msgid "Insert spaces instead of tabs" +msgstr "Inserire spazi al posto di tabulazioni" + +#: C/gedit.xml:1690(para) +msgid "Right margin width" +msgstr "Larghezza margine destro" + +#: C/gedit.xml:1694(para) +msgid "" +"The Modelines plugin supports a subset of the " +"options used by other text editors Emacs, " +"Kate and Vim." +msgstr "" +"Il plugin Modeline supporta un sottoinsieme delle " +"opzioni usate da altri editor di testi come Emacs, Kate e Vim." + +#: C/gedit.xml:1697(title) +msgid "Emacs Modelines" +msgstr "Modeline Emacs" + +#: C/gedit.xml:1698(para) +msgid "" +"The first two lines of a document are scanned for Emacs modelines." +msgstr "" +"Le prime due righe di un documento vengono analizzate per le modeline di " +"Emacs." + +#: C/gedit.xml:1699(para) +msgid "" +"The Emacs options for tab-width, indent-offset, " +"indent-tabs-mode and autowrap are supported. For more information, see the " +"GNU Emacs Manual." +msgstr "" +"Le opzioni di Emacs per la larghezza delle " +"tabulazioni, la modalità di rientro attraverso il tasto tabulatore e l'a " +"capo automatico sono supportate. Per maggiori informazioni, consultare " +"GNU Emacs Manual." + +#: C/gedit.xml:1702(title) +msgid "Kate Modelines" +msgstr "Modeline Kate" + +#: C/gedit.xml:1703(para) +msgid "" +"The first and last ten lines a document are scanned for Kate modelines." +msgstr "" +"Le prime e le ultime dieci righe di un documento sono analizzate per le " +"modeline di Kate." + +#: C/gedit.xml:1704(para) +msgid "" +"The Kate options for tab-width, indent-width, " +"space-indent, word-wrap and word-wrap-column are supported. For more " +"information, see the Kate website." +msgstr "" +"Le opzioni di Kate per la larghezza delle " +"tabulazioni, la larghezza del rientro, il rientro tramite la barra " +"spaziatrice, l'a capo automatico e l'a capo a una colonna sono supportate. " +"Per maggiori informazioni, consultare Kate website." + +#: C/gedit.xml:1707(title) +msgid "Vim Modelines" +msgstr "Modeline Vim" + +#: C/gedit.xml:1708(para) +msgid "" +"The first and last three lines a document are scanned for Vim modelines." +msgstr "" +"Le prime e le ultime tre righe di un documento sono analizzate per le " +"modeline di Vim." + +#: C/gedit.xml:1709(para) +msgid "" +"The Vim options for et, expandtab, ts, tabstop, " +"sw, shiftwidth, wrap, and textwidth are supported. For more information, see " +"the Vim website." +msgstr "" +"Le opzioni di Vim per et, expandtab, ts, tabstop, " +"wrap e textwidth sono supportate. Per maggiori informazioni, consultare il " +"sito web di Vim." + +#: C/gedit.xml:1714(title) +msgid "Python Console Plugin" +msgstr "Plugin «Console python»" + +#: C/gedit.xml:1715(para) +msgid "" +"The Python Console Plugin allows you to run " +"commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This shows " +"recent output and a command prompt field." +msgstr "" +"Il plugin Console python consente di eseguire " +"comandi con il linguaggio di programmazione Python all'interno di " +"gedit. Abilitando il plugin, viene aggiunta una " +"scheda nel riquadro inferiore. Questa mostra l'ultimo output e un prompt dei " +"comandi." + +#: C/gedit.xml:1716(para) +msgid "" +"Commands entered into the python console are not checked before they are " +"run. It is therefore possible to hang gedit, for " +"example by entering an infinite loop." +msgstr "" +"I comandi digitati all'interno della console python non vengono verificati " +"prima dell'esecuzione. È possibile anche bloccare gedit eseguendo un ciclo infinito." + +# (NdT) Snippet al femminile? intesa come "porzione di testo"... +#: C/gedit.xml:1720(title) +msgid "Snippets Plugin" +msgstr "Plugin «Snippet»" + +#: C/gedit.xml:1721(para) +msgid "" +"The Snippets plugin allows you to store " +"frequently-used pieces of text, called snippets, and " +"insert them quickly into a document." +msgstr "" +"Il plugin Snippet consente di memorizzare parti " +"di testo molto usate, snippet, e di inserirle " +"velocemente in un documento." + +#: C/gedit.xml:1722(para) +msgid "" +"Snippets are specific to the language syntax of the current document. For " +"example, when you are working with an HTML document, you can choose from a " +"list of snippets that are useful for HTML. In addition, some snippets are " +"global, and are available in all documents." +msgstr "" +"Le snippet sono specifiche del linguaggio del documento attuale. Per " +"esempio, lavorando con un documento HTML, è possibile scegliere alcune " +"snippet utili per l'HTML. Oltre a queste, alcune snippet sono globali e " +"quindi disponibili in tutti i documenti." + +#: C/gedit.xml:1723(para) +msgid "" +"A number of built-in snippets are installed with gedit, which can be modified." +msgstr "" +"Alcune snippet sono installate con gedit ed è " +"possibile modificarle." + +#: C/gedit.xml:1726(title) +msgid "Inserting Snippets" +msgstr "Inserire snippet" + +#: C/gedit.xml:1727(para) +msgid "" +"To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +"usually the first few letters of the snippet, or something else that is " +"short and easy to remember." +msgstr "" +"Per inserire una snippet in un documento, digitare il suo tab " +"trigger e premere Tab. Un tab trigger è " +"composto solitamente dalle prime lettere della snippet o qualsiasi altra " +"cosa corta e facile da ricordare." + +#: C/gedit.xml:1728(para) +msgid "" +"Alternatively, press CtrlSpace to see a list of snippets you can insert." +msgstr "" +"In alternativa, premere CtrlSpazio per l'elenco degli snippet da poter inserire." + +#: C/gedit.xml:1732(title) +msgid "Adding Snippets" +msgstr "Aggiungere snippet" + +#: C/gedit.xml:1733(para) +msgid "To create a new snippet, do the following:" +msgstr "Per creare una nuova snippet, procedere come segue:" + +#: C/gedit.xml:1736(para) +msgid "" +"Choose ToolsManage Snippets. The Snippets Manager window " +"opens." +msgstr "" +"Scegliere StrumentiGestione " +"snippet... per aprire la finestra " +"Gestione snippet." + +#: C/gedit.xml:1739(para) +msgid "" +"The list of snippets is grouped by language. Select the language you want to " +"add a snippet to, or a snippet in that language group. To add a snippet for " +"all languages, choose Global at the top of the list. The syntax of the " +"document you are currently working with is shown by default." +msgstr "" +"L'elenco delle snippet è raggruppato per linguaggio. Selezionare il " +"linguaggio per cui aggiungere una snippet o una snippet nel gruppo di " +"linguaggi. Per aggiungere una snippet per tutti i linguaggi scegliere " +"«Globale» in alto nell'elenco. Viene mostrata in modo predefinito la sintassi " +"del documento attuale." + +#: C/gedit.xml:1742(para) +msgid "Click New. A new snippet appears in the list." +msgstr "" +"Fare clic su Nuovo per creare una nuova snippet " +"nell'elenco." + +#: C/gedit.xml:1745(para) +msgid "Enter the following information for the new snippet:" +msgstr "Inserire le seguenti informazioni per la nuova snippet:" + +#: C/gedit.xml:1747(term) +msgid "Name" +msgstr "Nome" + +#: C/gedit.xml:1749(para) +msgid "" +"Enter a name for the snippet in the text field within the snippet list. The " +"name of a snippet serves only as a reminder of its purpose. You can change " +"name of a snippet you create by clicking on it in the list." +msgstr "" +"Inserire un nome per la snippet nel campo di testo all'interno dell'elenco " +"delle snippet. Il nome serve solo come promemoria per lo scopo della " +"snippet. È possibile modificare il nome della snippet creata facendo clic su " +"di esso." + +#: C/gedit.xml:1752(term) +msgid "Snippet text" +msgstr "Testo della snippet" + +#: C/gedit.xml:1754(para) +msgid "" +"Enter the text of the snippet in the Edit snippet text " +"box. For special codes you can use, see ." +msgstr "" +"Inserire il testo della snippet nella casella di testo Modifica " +"snippet. Per i codici speciali da poter usare, consultare ." + +#: C/gedit.xml:1755(para) +msgid "" +"You can switch back to the document window to copy text without closing the " +"Snippets Manager window." +msgstr "" +"È possibile ritornare alla finestra del documento per copiare il testo senza " +"chiudere la finestra Gestore snippet." + +#: C/gedit.xml:1758(term) +msgid "Tab Trigger" +msgstr "Tab trigger" + +#: C/gedit.xml:1760(para) +msgid "" +"Enter the tab trigger for the snippet. This is the text that you type before " +"pressing Tab to insert the snippet." +msgstr "" +"Inserire il tab trigger per la snippet. Questo è il testo da digitare prima " +"di premere il tasto Tab per inserire la snippet." + +#: C/gedit.xml:1761(para) +msgid "" +"The tag must be either a single word comprising only letters, or any single " +"character. The Tab trigger will highlight in red if an " +"invalid tab trigger is entered." +msgstr "" +"L'etichetta deve essere una sola parola composta di sole lettere o qualsiasi " +"carattere singolo. Il Tab trigger si colora di rosso se " +"viene inserito un tab trigger non valido." + +#: C/gedit.xml:1764(term) +msgid "Shortcut key" +msgstr "Tasto scorciatoia" + +#: C/gedit.xml:1766(para) +msgid "Type a shortcut key to use for inserting the snippet." +msgstr "Digitare una scorciatoia per l'inserimento della snippet." + +#: C/gedit.xml:1775(title) +msgid "Editing and Removing Snippets" +msgstr "Modificare e rimuovere snippet" + +# (NdT) semplificata un po'... +#: C/gedit.xml:1776(para) +msgid "" +"To edit a snippet, select it in the list and make changes to its text and " +"activation properties." +msgstr "" +"Per modificare una snippet, selezionarla dall'elenco e apportare le " +"modifiche necessarie." + +#: C/gedit.xml:1777(para) +msgid "To rename a snippet, click it again in the list." +msgstr "" +"Per rinominare una snippet, fare nuovamente clic su di essa nell'elenco." + +#: C/gedit.xml:1778(para) +msgid "" +"To restore a built-in snippet that you have changed, press Revert." +msgstr "" +"Per ripristinare una snippet integrata, modificata, fare clic su " +"Ripristina." + +#: C/gedit.xml:1779(para) +msgid "" +"To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +"created yourself." +msgstr "" +"Per rimuovere una snippet, selezionarla dall'elenco e fare clic su " +"Rimuovi. Non è possibile rimuovere una snippet " +"integrata, solamente quelle create personalmente." + +#: C/gedit.xml:1783(title) +msgid "Snippet Substitutions" +msgstr "Sostituire snippet" + +#: C/gedit.xml:1784(para) +msgid "" +"In addition to inserting stored text, a snippet can include customizable " +"text, or mark spaces where you can add text once the snippet is inserted in " +"your document." +msgstr "" +"Oltre ad aggiungere del testo, una snippet può contenere del testo " +"personalizzabile o segnalare degli spazi in cui è possibile inserire del " +"testo una volta inserita la snippet nel documento." + +#: C/gedit.xml:1788(para) +msgid "You can use the following placeholder codes in snippet text:" +msgstr "" +"È possibile utilizzare i seguenti simboli per i segnaposti nel testo della " +"snippet:" + +#: C/gedit.xml:1790(term) +msgid "Tab placeholders" +msgstr "Segnaposti di tabulazione" + +#: C/gedit.xml:1792(para) +msgid "" +"$n defines a tab placeholder, " +"where n is any number from 1 upwards." +msgstr "" +"$n definisce un segnaposto di " +"tabulazione, in cui n è un numero da 1 in su." + +#: C/gedit.xml:1793(para) +msgid "" +"${n:default} defines a tab placeholder with a default value." +msgstr "" +"${n:default} definisce un segnaposto di tabulazione con un valore predefinito." + +#: C/gedit.xml:1794(para) +msgid "" +"A tab placeholder marks a place in the snippet text where you can add extra " +"text after the snippet is inserted." +msgstr "" +"Un segnaposto di tabulazione indica una posizione nel testo della snippet in " +"cui è possibile aggiungere dell'altro testo una volta inserita la snippet." + +# (NdT) un po' riadattata... ma l'ultima frase in originale +# poteva essere più chiara... +#: C/gedit.xml:1795(para) +msgid "" +"To use tab placeholders, insert the snippet as normal. The cursor is placed " +"at the first tab placeholder. Type text, and press Tab to " +"advance to the next tab placeholder. The number in the placeholder code " +"defines the order in which tab advances to each place in the text." +msgstr "" +"Per usare un segnaposto di tabulazione, inserire la snippet normalmente. Il " +"cursore è posizionato al primo segnaposto. Digitare il testo e premere " +"Tab per avanzare al segnaposto successivo. Il numero nel " +"codice del segnaposto indica l'ordine con cui il tasto tab avanza nel testo." + +#: C/gedit.xml:1796(para) +msgid "" +"Press ShiftTab to " +"return to the previous tab placeholder. Pressing Tab when " +"there are no more tab placeholders moves the cursor to the end of the " +"snippet text, or to the end placeholder if it exists." +msgstr "" +"Premere MaiuscTab per " +"tornare al segnaposto precedente. Premendo Tab quando non " +"ci sono altri segnaposti di tabulazione, il cursore viene spostato alla fine " +"del testo della snippet o, se esiste, al segnaposto di terminazione." + +#: C/gedit.xml:1799(term) +msgid "Mirror placeholders" +msgstr "Segnaposti rispecchiati" + +#: C/gedit.xml:1801(para) +msgid "" +"A repeated tab placeholder will mirror the placeholder already defined. This " +"allows you to type in text only once that you want to appear several times " +"in the snippet." +msgstr "" +"Un segnaposto di tabulazione ripetuto, rispecchia (ripete) il segnaposto già " +"definito. Questo consente di digitare il testo da far apparire più volte " +"nella snippet una sola volta." + +#: C/gedit.xml:1804(term) +msgid "End placeholder" +msgstr "Segnaposto di terminazione" + +# (NdT) non è molto chiara... +#: C/gedit.xml:1806(para) +msgid "" +"$0 defines the end placeholder. This allows you to finish " +"working with the snippet with the cursor at a point other than the end of " +"the snippet text." +msgstr "" +"$0 definisce il segnaposto di terminazione. Questo " +"consente di terminare il lavoro con la snippet con il cursore in una " +"posizione diversa da quella della terminazione della snippet." + +#: C/gedit.xml:1809(term) +msgid "Environmental variables" +msgstr "Variabili d'ambiente" + +#: C/gedit.xml:1811(para) +msgid "" +"Environmental variable such as $PATH and $HOME are substituted in snippet text. The following variables specific " +"to gedit can also be used:" +msgstr "" +"Le variabili d'ambiente come $PATH e $HOME vengono sostituite all'interno del testo della snippet. Possono " +"essere usate anche le seguenti variabili specifiche di gedit:" + +#: C/gedit.xml:1813(term) +msgid "$GEDIT_SELECTED_TEXT" +msgstr "$GEDIT_SELECTED_TEXT" + +#: C/gedit.xml:1815(para) +msgid "The currently selected text." +msgstr "Il testo attualmente selezionato." + +#: C/gedit.xml:1818(term) +msgid "$GEDIT_FILENAME" +msgstr "$GEDIT_FILENAME" + +#: C/gedit.xml:1820(para) +msgid "" +"The full filename of the document, or an empty string if the document isn't " +"saved yet." +msgstr "" +"Il nome completo del file o una stringa vuota se il documento non è ancora " +"stato salvato." + +#: C/gedit.xml:1823(term) +msgid "$GEDIT_BASENAME" +msgstr "$GEDIT_BASENAME" + +#: C/gedit.xml:1825(para) +msgid "" +"The basename of the filename of the document, or an empty string if the " +"document isn't saved yet." +msgstr "" +"Il nome del file o una stringa vuota se il documento non è ancora stato " +"salvato." + +#: C/gedit.xml:1828(term) +msgid "$GEDIT_CURRENT_WORD" +msgstr "$GEDIT_CURRENT_WORD" + +#: C/gedit.xml:1830(para) +msgid "" +"The word at the cursor's location in the document. When this variable is " +"used, the current word will be replaced by the snippet text." +msgstr "" +"La parola alla posizione del cursore. Quando questa variabile è usata, la " +"parola attuale è sostituita con il testo dello snippet." + +#: C/gedit.xml:1838(term) +msgid "Shell placeholders" +msgstr "Segnaposti della shell" + +#: C/gedit.xml:1840(para) +msgid "" +"$(cmd) is replaced by the " +"result of executing cmd in a shell." +msgstr "" +"$(cmd) è sostituito dal " +"risultato dell'esecuzione di cmd nella shell." + +#: C/gedit.xml:1841(para) +msgid "" +"$(n:cmd) allows you to give this placeholder a reference, where " +"n is any number from 1 upwards. Use " +"$n to use the output from one shell " +"placeholder as input in another." +msgstr "" +"$(n:cmd) consente di impostare un riferimento a questo segnaposto, in cui " +"n è un qualsiasi numero da 1 in su. Usare " +"$n per utilizzare l'output di " +"un segnaposto della shell come input per un altro segnaposto." + +#: C/gedit.xml:1844(term) +msgid "Python placeholders" +msgstr "Segnaposti di python" + +#: C/gedit.xml:1846(para) +msgid "" +"$<cmd> is replaced by " +"the result of evaluating cmd in the python " +"interpreter." +msgstr "" +"$<cmd> è sostituito dal " +"risultato della valutazione di cmd " +"nell'interprete python." + +#: C/gedit.xml:1847(para) +msgid "" +"$<a:cmd>" +" specifies another python placeholder as a dependency, where " +"a gives its order in the snippet. This allows you " +"to use python functions defined in another snippet. To specify several " +"dependencies, separate the numbers with commas thus: $<" +"a,b:cmd>" +msgstr "" +"$<a:cmd>" +" specifica un altro segnalibro python come una dipendenza, dove " +"a indica l'ordine nella snippet. Questo consente " +"di usare funzioni python definite in un'altra snippet. Per specificare molte " +"dipendenze, separare i numeri con delle virgole: $<" +"a,b:cmd>" + +#: C/gedit.xml:1848(para) +msgid "" +"To use a variable in all other python snippets, declare it as " +"global." +msgstr "" +"Per usare una variabile in tutte le altre snippet, dichiararla " +"global (globale)." + +#: C/gedit.xml:1857(title) +msgid "Sort Plugin" +msgstr "Plugin «Ordina»" + +#: C/gedit.xml:1858(para) +msgid "" +"The Sort plugin arranges selected lines of text " +"into alphabetical order." +msgstr "" +"Il plugin Ordina ordina alfabeticamente le righe " +"selezionate in un file." + +#: C/gedit.xml:1859(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" +"L'operazione Ordina non può essere annullata, perciò è consigliabile salvare " +"il file prima di procedere. Per ripristinare la versione salvata del file " +"dopo avere eseguito l'ordinamento, scegliere FileRipristina." + +#: C/gedit.xml:1862(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "Per usare il plugin Ordina, procedere come segue:" + +#: C/gedit.xml:1865(para) +msgid "Select the lines of text you want to sort." +msgstr "Selezionare le righe di testo da ordinare." + +#: C/gedit.xml:1867(para) +msgid "" +"Choose EditSort. The Sort dialog opens." +msgstr "" +"Scegliere ModificaOrdina per aprire il dialogo Ordina." + +#: C/gedit.xml:1870(para) +msgid "Choose the options you want for the sort:" +msgstr "Scegliere le opzioni per l'ordinamento:" + +#: C/gedit.xml:1873(para) +msgid "" +"To arrange the text in reverse order, select Reverse order." +msgstr "" +"Per disporre il testo in ordine inverso, selezionare Ordine " +"invertito." + +#: C/gedit.xml:1876(para) +msgid "" +"To delete duplicate lines, select Remove duplicates." +msgstr "" +"Per eliminare le righe doppie, selezionare Rimuovere i duplicati." + +#: C/gedit.xml:1879(para) +msgid "To ignore case sensitivity, select Ignore case." +msgstr "" +"Per ignorare le differenze tra maiuscole e minuscole, selezionare l'opzione " +"Ignorare maiuscole/minuscole." + +#: C/gedit.xml:1882(para) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Affinché l'operazione di ordinamento ignori il primo carattere della riga, " +"impostare il numero del primo carattere da ordinare attraverso il controllo " +"di selezione Incomincia dalla colonna." + +#: C/gedit.xml:1887(para) +msgid "To perform the sort operation, click Sort." +msgstr "" +"Per iniziare l'ordinamento, fare clic su Ordina." + +#: C/gedit.xml:1894(title) +msgid "Spell Checker Plugin" +msgstr "Plugin «Correttore ortografico»" + +#: C/gedit.xml:1895(para) +msgid "" +"The Spell Checker plugin checks the spelling in " +"the selected text. You can configure gedit to " +"check the spelling automatically, or you can check the spelling manually, in " +"the specified language. The language setting, and the autocheck spelling " +"properties, apply per document. To use the Spell checker plugin, perform the " +"following steps:" +msgstr "" +"Il plugin Correttore ortografico controlla " +"l'ortografia nel testo selezionato. È possibile configurare " +"gedit per il controllo automatico, o manuale, " +"nella lingua specificata. L'impostazione della lingua e le proprietà del " +"controllo automatico, si applicano al singolo documento. Per usare il plugin " +"«Correttore ortografico» procedere come segue:" + +#: C/gedit.xml:1897(para) +msgid "" +"Choose ToolsSet Language to display the Set language " +"dialog. Select the appropriate language from the list. Click OK to close the Set language dialog." +msgstr "" +"Scegliere StrumentiConfigura " +"lingua... per visualizzare la finestra di dialogo " +"Configura lingua. Selezionare la lingua appropriata " +"dall'elenco e fare clic su OK per chiudere la " +"finestra di dialogo Configura lingua." + +#: C/gedit.xml:1900(para) +msgid "" +"To check the spelling automatically, choose ToolsAutocheck Spelling. To unset " +"the automatic spell check, choose ToolsAutocheck Spelling again. " +"When automatic spell checking is set, an icon is displayed beside the " +"Autocheck Spelling menu item. Automatic spell " +"checking is unset by default, each time gedit " +"starts." +msgstr "" +"Per il controllo automatico dell'ortografia, scegliere " +"StrumentiControllo ortografico " +"automatico. Per disabilitare l'opzione, scegliere " +"StrumentiControllo ortografico " +"automatico nuovamente. Quando il controllo " +"automatico è abilitato, viene mostrato un segno di spunta a fianco della " +"voce Controllo ortografico automatico. Il " +"controllo automatico è disabilitato in modo predefinito a ogni avvio di " +"gedit." + +#: C/gedit.xml:1901(para) +msgid "" +"Unknown spellings are displayed in a different color, and underlined. Right-" +"click on an unknown spelling, then select Spelling Suggestions from the popup menu:" +msgstr "" +"Le parole sconosciute sono mostrare in un colore diverso e sottolineate. " +"Fare clic col tasto destro del mouse su una parola sconosciuta, quindi " +"selezionare Suggerimenti ortografici dal menù a comparsa:" + +#: C/gedit.xml:1904(para) +msgid "" +"To replace the unknown spelling with another spelling in the list, select " +"the replacement spelling from the Spelling Suggestions " +"popup menu." +msgstr "" +"Per sostituire una parola sconosciuta con un'altra presente nell'elenco, " +"selezionare la parola dal menù a comparsa Suggerimenti ortografici." + +#: C/gedit.xml:1907(para) +msgid "" +"To add the unknown spelling to your personal dictionary, select " +"Spelling SuggestionsAdd." +msgstr "" +"Per aggiungere la parola sconosciuta al dizionario, selezionare " +"Suggerimenti ortografici...Aggiungi." + +#: C/gedit.xml:1910(para) +msgid "" +"To ignore all occurrences of the unknown spelling, so that they are no " +"longer flagged as unknown but are not added to your personal dictionary, " +"select Spelling SuggestionsIgnore All. The unknown word " +"is ignored in the current gedit session only." +msgstr "" +"Per ignorare tutte le occorrenze di una parola sconosciuta, in modo che non " +"vengano visualizzate come sconosciute, ma senza aggiungerle al dizionario, " +"selezionare Suggerimenti ortografici...Ignora tutto. La parola " +"sconosciuta viene ignorata solamente nella sessione attuale di " +"gedit." + +#: C/gedit.xml:1915(para) +msgid "" +"To check the spelling manually, choose ToolsCheck Spelling." +msgstr "" +"Per eseguire il controllo ortografico manualmente, scegliere " +"StrumentiControllo ortografico." + +#: C/gedit.xml:1917(para) +msgid "" +"If there are no spelling errors, an Information dialog " +"displays a message stating that the document does not contain misspelled " +"words. Click OK to close the Information dialog." +msgstr "" +"Se non ci sono errori, una finestra di dialogo Informazioni visualizza un messaggio indicante l'assenza di errori. Fare clic " +"su OK per chiudere la finestra di dialogo " +"Informazioni." + +#: C/gedit.xml:1919(para) +msgid "" +"If there are spelling errors, the Check Spelling dialog " +"is displayed:" +msgstr "" +"In caso di errori ortografici, viene mostrata la finestra di dialogo " +"Controllo ortografico:" + +#: C/gedit.xml:1922(para) +msgid "" +"The Misspelled word is displayed at the top of the " +"dialog." +msgstr "" +"La Parola errata è mostrata nella parte alta della " +"finestra di dialogo." + +#: C/gedit.xml:1925(para) +msgid "" +"A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +"selecting a spelling from the Suggestions list, or you " +"can enter text directly into the Change to text box." +msgstr "" +"Una parola conosciuta è mostrata nella casella di testo " +"Sostituisci con. È possibile sostituire questa parola " +"con un'altra selezionandola dall'elenco Suggerimenti " +"oppure è possibile digitare del testo direttamente nella casella di testo " +"Sostituisci con." + +#: C/gedit.xml:1928(para) +msgid "" +"To check the spelling of the text in the Change to text " +"box, click Check Word. If this is a known word, the " +"Suggestions list is replaced with the text " +"(correct spelling). If the word is not known, new entries appear " +"in the Suggestions list." +msgstr "" +"Per controllare l'ortografia del testo nella casella di testo " +"Sostituisci con, fare clic su Controlla " +"parola. Se è una parola conosciuta, l'elenco " +"Suggerimenti è sostituito con la scritta " +"(ortografia corretta). Se la parola non è conosciuta, vengono " +"visualizzate delle nuove voci sotto Suggerimenti." + +#: C/gedit.xml:1931(para) +msgid "" +"To ignore the current occurrence of the unknown word, click " +"Ignore. To ignore all occurrences of the unknown " +"word, click Ignore All. The unknown word is ignored " +"in the current gedit session only." +msgstr "" +"Per ignorare l'occorrenza attuale della parola sconosciuta, fare clic su " +"Ignora. Per ignorare tutte le occorrenze, fare clic " +"su Ignora tutto. La parola sconosciuta viene ignorata " +"nella sessione attuale di gedit." + +#: C/gedit.xml:1934(para) +msgid "" +"To change the current occurrence of the unknown word to the text in the " +"Change to text box, click Change. To change all occurrences of the unknown word to the text in the " +"Change to text box, click Change All." +msgstr "" +"Per cambiare l'occorrenza della parola sconosciuta con il testo presente " +"nella casella di testo Sostituisci con, fare clic su " +"Modifica. Per cambiare tutte le occorrenze della " +"parola sconosciuta, fare clic su Modifica tutto." + +#: C/gedit.xml:1937(para) +msgid "" +"To add the unknown word to your personal dictionary, click Add " +"word." +msgstr "" +"Per aggiungere la parola sconosciuta al proprio dizionario, fare clic su " +"Aggiungi parola." + +#: C/gedit.xml:1940(para) +msgid "" +"To close the Check Spelling dialog, click " +"Close." +msgstr "" +"Per chiudere la finestra di dialogo Controllo ortografico, fare clic su Chiudi." + +#: C/gedit.xml:1949(title) +msgid "Tag List Plugin" +msgstr "Plugin «Elenco tag»" + +#: C/gedit.xml:1950(para) +msgid "" +"The Tag List plugin allows you to insert common " +"tags from a list in the side pane." +msgstr "" +"Il plugin Elenco tag consente di inserire, da un " +"elenco nel riquadro laterale, dei tag comuni." + +#: C/gedit.xml:1951(para) +msgid "To use the Tag List plugin, perform the following steps:" +msgstr "Per usare il plugin «Elenco tag», procedere come segue:" + +#: C/gedit.xml:1953(para) +msgid "" +"Choose ViewSide Pane." +msgstr "" +"Scegliere VisualizzaRiquadro " +"laterale." + +#: C/gedit.xml:1957(para) +msgid "" +"By default, the side pane shows a tab containing a list of open documents. " +"Click on the tab showing a + icon at the bottom of the side pane to show the " +"tag list tab." +msgstr "" +"In modo predefinito, il riquadro laterale mostra una scheda contenente un " +"elenco di documenti aperti. Per visualizzare la scheda dell'elenco dei tag, " +"fare clic sulla scheda indicante il segno più («+») in basso nel riquadro " +"laterale." + +#: C/gedit.xml:1959(para) +msgid "" +"Select the appropriate tag category from the drop-down list. For example, " +"HTML - Tags." +msgstr "" +"Selezionare la categoria di tag appropriata dall'elenco a discesa; per " +"esempio HTML - Tag." + +#: C/gedit.xml:1962(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "Se necessario, scorrere l'elenco per cercare il tag richiesto." + +#: C/gedit.xml:1965(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" +"Per inserire un tag nella posizione del cursore nel file corrente, fare " +"doppio clic sul tag nell'elenco. È anche possibile procedere come segue:" + +#: C/gedit.xml:1967(para) +msgid "" +"To insert a tag in the current file and change the focus from the side pane " +"to the display area, press Return." +msgstr "" +"Per inserire un tag nel file corrente e spostare il focus dal riquadro " +"laterale all'area di visualizzazione, premere Invio." + +#: C/gedit.xml:1970(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftReturn." +msgstr "" +"Per inserire un tag nel file corrente e mantenere il punto attivo nella " +"finestra Plugin Elenco tag, premere " +"MaiuscInvio." + +#: C/gedit.xml:1979(title) +msgid "User Name Plugin" +msgstr "Plugin «Nome utente»" + +#: C/gedit.xml:1980(para) +msgid "" +"The User name plugin inserts the username of the " +"current user into the document." +msgstr "" +"Il plugin Nome utente inserisce il nome " +"dell'utente corrente nel file." + +#: C/gedit.xml:1981(para) +msgid "" +"To insert your username at the cursor position, choose " +"EditInsert User Name." +msgstr "" +"Per inserire il proprio nome alla posizione del cursore, scegliere " +"ModificaInserisci il nome " +"utente." + +#: C/gedit.xml:1983(para) +msgid "" +"This plugin is mostly provided as an example of how to create your own " +"plugins. For more information on creating plugins, see the gedit website." +msgstr "" +"Questo plugin è solo un esempio per aiutare nella creazione di altri plugin. " +"Per maggiori informazioni sulla creazione di plugin, consultare il sito web di " +"gedit." + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +#: C/gedit.xml:0(None) +msgid "translator-credits" +msgstr "Milo Casagrande " + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_bold.png'; " +#~ "md5=950264711a3f0808bef134fa94b0a582" +#~ msgstr "fatto" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" +#~ msgstr "fatto" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" +#~ msgstr "fatto" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_strikethrough.png'; " +#~ "md5=cf962f5d9df721c1f4f4cef2780915ed" +#~ msgstr "fatto" + +#~ msgid "" +#~ "For more information about how to configure syntax highlighting, see " +#~ "." +#~ msgstr "" +#~ "Per maggiori informazioni sulla configurazione dell'evidenziazione della " +#~ "sintassi, consultare ." + +#~ msgid "Colors" +#~ msgstr "Colori" + +#~ msgid "" +#~ "Select the Use default theme colors option to use " +#~ "the default theme colors in the gedit text " +#~ "window." +#~ msgstr "" +#~ "Selezionare l'opzione Usare i colori predefiniti del tema per usare i colori del tema predefinito nella finestra di testo " +#~ "di gedit." + +#~ msgid "" +#~ "Click on the Normal text color color button to " +#~ "display the color selector dialog. Select a color to use to display " +#~ "normal text in the gedit text window." +#~ msgstr "" +#~ "Fare clic sul pulsante Colore normale del testo " +#~ "per visualizzare la finestra di dialogo per la selezione dei colori. " +#~ "Scegliere un colore per il testo da visualizzare nella finestra di testo " +#~ "di gedit." + +#~ msgid "" +#~ "Click on the Background color color button to " +#~ "display the color selector dialog. Select a background color for the " +#~ "gedit text window." +#~ msgstr "" +#~ "Fare clic sul pulsante Colore di sfondo per " +#~ "visualizzare la finestra di dialogo per la selezione dei colori. " +#~ "Selezionare un colore di sfondo per la finestra di testo di " +#~ "gedit." + +#~ msgid "" +#~ "Click on the Selected text color color button to " +#~ "display the color selector dialog. Select a color to use to display " +#~ "selected text." +#~ msgstr "" +#~ "Fare clic sul pulsante Colore del testo selezionato per visualizzare la finestra di dialogo per la selezione dei " +#~ "colori. Selezionare un colore da usare per visualizzare il testo " +#~ "selezionato." + +#~ msgid "" +#~ "Click on the Selection color color button to " +#~ "display the color selector dialog. Select a background color to use to " +#~ "highlight a text selection." +#~ msgstr "" +#~ "Fare clic sul pulsante Colore della selezione per " +#~ "visualizzare la finestra di dialogo per la selezione dei colori. " +#~ "Selezionare un colore di sfondo da usare per evidenziare una selezione di " +#~ "testo." + +#~ msgid "Syntax Highlighting Preferences" +#~ msgstr "Evidenziazione della sintassi" + +#~ msgid "Enable syntax highlighting" +#~ msgstr "Attivare evidenziazione sintassi" + +#~ msgid "" +#~ "Select this option to highlight the syntax of the text that you edit." +#~ msgstr "" +#~ "Selezionare questa opzione per abilitare l'evidenziazione della sintassi " +#~ "del file da modificare." + +#~ msgid "Highlight mode" +#~ msgstr "Modalità di evidenziazione" + +#~ msgid "Use this drop-down list to select a syntax mode to configure." +#~ msgstr "" +#~ "Usare questo elenco a discesa per selezionare la modalità di " +#~ "evidenziazione da configurare." + +#~ msgid "Elements" +#~ msgstr "Elementi" + +#~ msgid "Use this list box to select a syntax element to configure." +#~ msgstr "" +#~ "Usare questo elenco per selezionare un elemento della sintassi da " +#~ "configurare." + +#~ msgid "Format buttons" +#~ msgstr "Pulsanti di formattazione" + +#~ msgid "" +#~ "Use the following buttons to change the format of the selected syntax " +#~ "element:" +#~ msgstr "" +#~ "Usare i seguenti pulsanti di formattazione per modificare il formato " +#~ "dell'elemento della sintassi selezionato:" + +#~ msgid "Button" +#~ msgstr "Pulsante" + +#~ msgid "Format" +#~ msgstr "Formato" + +#~ msgid "Shows icon for bold format." +#~ msgstr "Mostra l'icona per il testo grassetto." + +#~ msgid "Bold" +#~ msgstr "Grassetto" + +#~ msgid "Shows icon for italic format." +#~ msgstr "Mostra l'icona per il testo corsivo." + +#~ msgid "Italic" +#~ msgstr "Corsivo" + +#~ msgid "Shows icon for underline." +#~ msgstr "Mostra l'icona per il testo sottolineato." + +#~ msgid "Underline" +#~ msgstr "Sottolineato" + +#~ msgid "Shows icon for strikethrough." +#~ msgstr "Mostra l'icona per il testo barrato." + +#~ msgid "Strikethrough" +#~ msgstr "Barrato" + +#~ msgid "Foreground" +#~ msgstr "Primo piano" + +#~ msgid "" +#~ "Select this option to change the font color of the selected syntax " +#~ "element. Click on the color button to display the color selector dialog, " +#~ "then select the font color." +#~ msgstr "" +#~ "Selezionare questa opzione per modificare il colore del carattere " +#~ "dell'elemento selezionato. Fare clic sul pulsante per visualizzare la " +#~ "finestra di dialogo per la selezione dei colori e selezionare un colore " +#~ "per il carattere. " + +#~ msgid "Background" +#~ msgstr "Sfondo" + +#~ msgid "" +#~ "Select this option to change the background color of the selected syntax " +#~ "element. Click on the color button to display the color selector dialog, " +#~ "then select the background color." +#~ msgstr "" +#~ "Selezionare questa opzione per modificare il colore di sfondo " +#~ "dell'elemento selezionato. Fare clic sul pulsante per visualizzare la " +#~ "finestra di dialogo per la selezione dei colori e selezionare un colore " +#~ "per sfondo." + +#~ msgid "Reset to Default" +#~ msgstr "Ripristina predefinito" + +#~ msgid "" +#~ "Click on this button to reset the foreground color and background color " +#~ "of the selected syntax element to the default values." +#~ msgstr "" +#~ "Fare clic su questo pulsante per ripristinare i valori predefiniti del " +#~ "colore di primo piano e di sfondo dell'elemento della sintassi " +#~ "selezionato." diff --git a/help/ja/ja.po b/help/ja/ja.po new file mode 100644 index 0000000..fe0604b --- /dev/null +++ b/help/ja/ja.po @@ -0,0 +1,2226 @@ +# gedit/help ja.po. +# +# Mitsuya Shibata , 2008. +# Takayuki KUSANO , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit help 2.32\n" +"POT-Creation-Date: 2013-01-11 21:51+0000\n" +"PO-Revision-Date: 2012-12-30 15:44+0900\n" +"Last-Translator: Carrot031 \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: new\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +#, fuzzy +#| msgid "translator-credits" +msgctxt "_" +msgid "translator-credits" +msgstr "" +"柴田 充也 , 2008\n" +"草野 貴之 , 2010" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#, fuzzy +#| msgid "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgctxt "_" +msgid "external ref='figures/gedit-icon.png' md5='a7174de2671462e1ac4f80a82ad09184'" +msgstr "@@image: 'figures/gedit_window.png'; md5=9a607006548356160848652938c8b7e3" + +#, fuzzy +#| msgid "text editor" +msgctxt "link" +msgid "gedit Text Editor" +msgstr "text editor" + +#, fuzzy +#| msgid "text editor" +msgctxt "text" +msgid "gedit Text Editor" +msgstr "text editor" + +msgid "Jim Campbell" +msgstr "Jim Campbell" + +msgid " gedit Text Editor" +msgstr " gedit テキストエディタ" + +msgid "Welcome to the gedit help guide. For a quick introduction into both gedit's most basic features, as well as some advanced keyboard shortcuts, visit the Get started with gedit and Shortcut keys pages." +msgstr "" + +msgid "Other help topics are grouped together into sections below. Enjoy using gedit!" +msgstr "" + +#, fuzzy +#| msgid "Working with Files" +msgid "Working With Files" +msgstr "ファイルの操作" + +msgid "Configure gedit" +msgstr "geditの設定" + +#, fuzzy +#| msgid "Tag List Plugin" +msgid "gedit Plugins" +msgstr "タグの一覧プラグイン" + +msgid "Printing with gedit" +msgstr "geditで印刷する" + +#, fuzzy +#| msgid "Blue based color scheme." +msgid "Change the color scheme" +msgstr "青を基調とした色のスキーム。" + +msgid "gedit includes several different color schemes, allowing you to change the appearance of the main text window." +msgstr "geditには複数のカラースキームが用意されています。これにより、メインテキストウィンドウの外観が変更できます。" + +#, fuzzy +#| msgid "To use the Sort plugin, perform the following steps:" +msgid "To change the color scheme, complete the following steps:" +msgstr "並び替えプラグインを使用するには、次の手順を実行します。" + +#, fuzzy +#| msgid "Select EditPreferencesFont & Colors." +msgid "Select EditPreferences Font & Colors." +msgstr "編集設定フォントと色を選択します。" + +#, fuzzy +#| msgid "Blue based color scheme." +msgid "Choose your desired color scheme." +msgstr "青を基調とした色のスキーム。" + +msgid "The new color scheme will be applied immediately." +msgstr "" + +#, fuzzy +#| msgid "Color Scheme" +msgid "Use a Custom Color Scheme" +msgstr "色のスキーム" + +msgid "You can also use color schemes that have been created by others, or create and use your own color schemes." +msgstr "" + +msgid "Instructions on how to install custom color schemes, as well as examples of color schemes that you can download and use, are available on the gedit wiki ." +msgstr "" + +#, fuzzy +#| msgid "The currently selected text." +msgid "Change the default font" +msgstr "現在選択中の文字列を表します。" + +msgid "gedit will use the system fixed-width font by default, but you can change the default gedit font to suit your preferences." +msgstr "" + +msgid "To change the default font in gedit:" +msgstr "geditのデフォルトのフォントを変更する:" + +msgid "Select EditPreferencesFont & Colors." +msgstr "編集設定フォントと色を選択します。" + +msgid "Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" + +msgid "Choose your desired font, and use the slider to set the default font size." +msgstr "" + +msgid "Click Select, and then click Close." +msgstr "選択をクリックして閉じるをクリックします。" + +msgid "Close a file" +msgstr "ファイルを閉じます。" + +msgid "To close a file in gedit, select File Close. Alternately, you can click the small \"X\" that appears on the right-side of the file's tab, or press Ctrl W." +msgstr "" + +msgid "Any one of these actions will close a file in gedit. If your file contains changes that have not been saved, gedit will prompt you to save those changes before closing the file." +msgstr "" + +msgid "Create a new file" +msgstr "新しいファイルを作成します。" + +msgid "The easiest way to create a new file in gedit, is to click the icon that looks like a blank piece of paper with a \"plus\" sign next to it. If you prefer, you may also select FileNew , or press CtrlN." +msgstr "" + +msgid "Any one of these actions will create a new file in the gedit window. If you have other files open in gedit, the new file that you create will appear as a new tab to the right of those files." +msgstr "" + +msgid "Edit a file as the root user" +msgstr "" + +msgid "Editing files as the root user is potentially dangerous, and may break your system in bad ways. Take great care when editing files as the root user." +msgstr "" + +msgid "To edit files as the root user, launch gedit from the terminal by entering:" +msgstr "" + +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +msgid "Using the sudo command, you will need to successfully enter your password before gedit will open." +msgstr "sudoコマンドを使うとgedit の起動前にパスワードの入力が求められます。" + +msgid "As an alternative to the sudo command, you may obtain administrative privileges by entering:" +msgstr "" + +#, no-wrap +msgid "su -" +msgstr "su -" + +msgid "You would then launch gedit using the gedit command." +msgstr "" + +msgid "Once you have opened gedit with administrative privileges, the application will retain those privileges until you close it." +msgstr "" + +msgid "File basics: Open, close, and save files" +msgstr "" + +msgid "If you are new to gedit, these topics will help you with creating, saving, and opening and closing files." +msgstr "" + +msgid "Use fullscreen mode" +msgstr "フルスクリーンモードを使う" + +msgid "When working with a large document, you may find it helpful to work in gedit's fullscreen mode. Using fullscreen mode will hide the menu bar, tab bar and the tool bar, presenting you with more of your text and allowing you to better focus on your tasks." +msgstr "" + +msgid "Turn on fullscreen mode" +msgstr "" + +msgid "To turn on fullscreen mode, select View Fullscreen, or press F11. gedit's menu, title, and tab-bars will hide, and you will only be presented with the text of your current file." +msgstr "" + +msgid "If you need to perform an action from the gedit menu while working in fullscreen mode, move your mouse pointer to the top of the screen. The gedit menu bar will reappear, and you can select your desired action." +msgstr "" + +msgid "To switch between open tabs while in fullscreen mode, press either CtrlAltPgUp or CtrlAltPgDn." +msgstr "" + +msgid "Turn off fullscreen mode" +msgstr "フルスクリーンモードを終了する" + +msgid "To turn off fullscreen mode and return to the standard gedit window, move your mouse cursor to the top of the screen, and wait for the menu bar to appear. When the menu bar appears, select Leave Fullscreen. You can also press F11 to turn off fullscreen mode." +msgstr "フルスクリーンモードを終了し標準のウィンドウに戻すには、マウスカーソルを画面の上端まで移動してメニューバーが開くのを待ちます。メニューバーが開いたら、フルスクリーンの解除を選択します。F11キーを使用しても同じことができます。" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#, fuzzy +#| msgid "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgctxt "_" +msgid "external ref='figures/gedit-side-pane1.png' md5='ac9c80cb0552d63b593c71f23be69b53'" +msgstr "@@image: 'figures/gedit_window.png'; md5=9a607006548356160848652938c8b7e3" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#, fuzzy +#| msgid "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgctxt "_" +msgid "external ref='figures/gedit-side-pane2.png' md5='e7a12a43adc9c9cb8c992ad22a815a57'" +msgstr "@@image: 'figures/gedit_window.png'; md5=9a607006548356160848652938c8b7e3" + +msgid "View and open files from the side pane" +msgstr "" + +msgid "The most common way to switch between files in gedit is by using the tabs at the top of the gedit window. In some cases, though, particularly when you are working with a large number of open files, you may find it easier to use the side pane." +msgstr "" + +#, fuzzy +#| msgid "To view the File Browser, choose ViewSide Pane and then click on the tab showing the File Browser icon at the bottom of the side pane." +msgid "To activate the side pane, select View Side Pane, or just press the F9 key." +msgstr "プラグインを有効にした状態でファイル参照ペインを表示するには、表示サイド・ペインを選択し、サイド・ペインの下部にあるファイル・ブラウザーアイコンをクリックしてください。" + +msgid "You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "" + +#, fuzzy +#| msgid "Opening a File from a URI" +msgid "Opening files from the side pane" +msgstr "URI からファイルを開く" + +#, fuzzy +#| msgid "To view the File Browser, choose ViewSide Pane and then click on the tab showing the File Browser icon at the bottom of the side pane." +msgid "To open files from the side pane, first open the side pane by selecting View Side Pane, then click on the file-browser icon at the bottom of the pane." +msgstr "プラグインを有効にした状態でファイル参照ペインを表示するには、表示サイド・ペインを選択し、サイド・ペインの下部にあるファイル・ブラウザーアイコンをクリックしてください。" + +msgid "This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to locate and open your desired files." +msgstr "" + +msgid "Using the side pane to switch between open files" +msgstr "" + +msgid "Once you have several files open, you can use the side pane to switch between open files. To activate the file browser portion of the side pane, click on the file icon at the bottom of the side pane." +msgstr "" + +msgid "Clicking on any file name in the side pane will open that file for editing." +msgstr "" + +msgid "Open a file or set of files" +msgstr "" + +msgid "To open a file in gedit, click the Open button, or press CtrlO." +msgstr "" + +msgid "This will cause the Open Files dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" + +#, fuzzy +#| msgid "To close the Preferences dialog, click Close." +msgid "To close the Open Files dialog without opening a file, click Cancel." +msgstr "設定ダイアログを閉じるには、閉じるをクリックします。" + +msgid "You can use the Ctrl and Shift keys to open more than one file at a time. If you hold down the Ctrl key while you select multiple files, clicking Open will open each of the files that you have selected." +msgstr "" + +msgid "Holding down the Shift while you select multiple files will open the first file that you select, the last file that you select, and all of the files in between." +msgstr "" + +msgid "Open a file that is located on a server" +msgstr "" + +msgid "Prior to opening a file on a server from within gedit, you need to know some technical information about the server. For example, you will need to know the IP Address or URL of the server, and may need to know what kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" + +msgid "Also, some types of servers impose restrictions on what you can do with files stored on the server. For example, you may be able to open a file from a server, but may need to save any changes to the file locally, on your own computer." +msgstr "" + +msgid "With these caveats in mind, perform the following steps to open a file from a server using gedit:" +msgstr "" + +#, fuzzy +#| msgid "Choose FileOpen Location to display the Open Location dialog." +msgid "Choose FileOpen to display the Open Files dialog." +msgstr "ファイル場所を開くを選択し、場所を開く ダイアログを表示します。" + +msgid "Select the Pencil icon near the top of the Open Files dialog." +msgstr "" + +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "" + +#, fuzzy +#| msgid "Enter the URI of the file that you want to open." +msgid "Find and select the file that you wish to open." +msgstr "開きたいファイルの URI を入力します。" + +#, fuzzy +#| msgid "Use the Character coding drop-down list to select the appropriate character coding." +msgid "Use the Character coding drop-down list to select the appropriate character coding." +msgstr "文字のエンコーディングから、開きたいファイルの文字コードを選択します。" + +#, fuzzy +#| msgid "Click Open." +msgid "Click Open." +msgstr "開くをクリックします。" + +#, fuzzy +#| msgid "Valid types of URI include http:, ftp:, file:, and all of the methods supported by gnome-vfs." +msgid "Valid types of URI include http:, ftp:, file:, and all of the methods supported by gvfs." +msgstr "有効な URIhttp:ftp:file:、および gnome-vfs でサポートしているすべての形式です。" + +#, fuzzy +#| msgid "Files from some types of URI are opened as read-only, and any changes you make must be saved to a different location. HTTP only allows files to be read. Files opened from FTP are read-only because because not all FTP servers may correctly work with saving remote files." +msgid "Files from some types of URI are opened as read-only, and any changes you make must be saved to a different location. For example, HTTP only allows files to be read. Files opened from FTP are read-only because not all FTP servers may correctly work with saving remote files." +msgstr "URI の形式によっては、ファイルを読み込み専用として開きます。その場合、変更点を保存する際には、別の場所を指定してください。例えば HTTP はファイルの読み込みのみ可能です。すべての FTP サーバーがリモートファイルの保存をサポートしているわけではないので、FTP からファイルを開いた場合も、読み込み専用となります。" + +msgid "Reopen a recently-used file" +msgstr "" + +msgid "By default, gedit provides easy access to five of your most recently-used files. Here is how you can open a recently-used file:" +msgstr "" + +msgid "Click the downward-facing arrow to the right of the Open button." +msgstr "" + +msgid "gedit will display a list of the five most-recently used files." +msgstr "" + +msgid "Select the desired file, and it will open in a new tab." +msgstr "" + +msgid "To adjust the number of recently-used files that gedit displays, you will need to use the dconf-editor application." +msgstr "" + +msgid "Launch dconf-editor and select orggnomegeditpreferencesui max-recents." +msgstr "" + +msgid "Double-click on the number next to max-recents and change the number to your desired value." +msgstr "" + +#, fuzzy +#| msgid "Configuring the Insert Date/Time Plugin" +msgid "Configure and use gedit Plugins" +msgstr "日付/時間の挿入プラグインの設定" + +msgid "You can do more with gedit by using plugins. Several plugins are installed by default, but a large number of other plugins are available separately." +msgstr "" + +msgid "Many Linux distributions make a group of these plugins available as a gedit-plugins package. Install the gedit-plugins package to make these extra plugins available to gedit." +msgstr "" + +#, fuzzy +#| msgid "Tag List Plugin" +msgid "Default gedit Plugins" +msgstr "タグの一覧プラグイン" + +msgid "Additional gedit Plugins" +msgstr "" + +msgid "Record commonly-referenced locations with bookmarks" +msgstr "" + +msgid "Bookmarks" +msgstr "ブックマーク" + +msgid "Gedit bookmarks allow you to highlight important lines of text within your document or program, making them easier to find. You can also move up or down between bookmarks, making document navigation a bit faster." +msgstr "" + +msgid "To enable the bookmark plugin, select Edit PreferencesPluginsBookmarks." +msgstr "ブックマークプラグインを有効にするには、編集 設定プラグインブックマークを選択します。" + +msgid "Bookmarks are inserted and removed by completing the same action. To insert or remove bookmarks:" +msgstr "" + +msgid "Navigate to the line where you want to insert or remove the bookmark." +msgstr "" + +msgid "Press CtrlAltB, or click EditToggle Bookmark." +msgstr "" + +msgid "To move between bookmarks:" +msgstr "" + +msgid "Press CtrlB to move to the next bookmark." +msgstr "CtrlB を押して次のブックマークへ移動します。" + +msgid "Press CtrlShiftB to move to the previous bookmark." +msgstr "" + +msgid "If you prefer using the mouse, you can click Edit Go to Next Bookmark or EditGo to Previous Bookmark." +msgstr "" + +msgid "Auto-complete closing brackets" +msgstr "" + +#, fuzzy +#| msgid "Bracket Matching" +msgid "Bracket completion" +msgstr "対応するカッコ" + +msgid "The Bracket Completion plugin will auto-complete closing brackets for curly braces, parentheses, and square brackets." +msgstr "" + +msgid "To enable the plugin, select EditPreferences PluginsBracket Completion." +msgstr "" + +msgid "This plugin does not automatically insert closing HTML or XML tags." +msgstr "" + +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#, fuzzy +#| msgid "The currently selected text." +msgid "Change the case of selected text" +msgstr "現在選択中の文字列を表します。" + +#, fuzzy +#| msgid "Change Case" +msgid "Change case" +msgstr "大/小文字の変更" + +msgid "This plugin helps you to change the case of selected portions of text. You can use it to change text to be all lower case, all upper case, to invert the case, or apply title case. To enable this plugin, select EditPreferencesPluginsChange Case." +msgstr "" + +msgid "Once the Change Case plugin is enabled, you can use it by completing the following steps:" +msgstr "" + +#, fuzzy +#| msgid "Select the lines of text you want to sort." +msgid "Highlight the portion of text that you want to change." +msgstr "並び替えたい行を選択します。" + +msgid "Select EditChange Case" +msgstr "" + +msgid "Choose your desired text-formatting option." +msgstr "" + +msgid "The updates to the text formatting will take place immediately." +msgstr "" + +#, fuzzy +#| msgid "Change each lowercase character to uppercase, and change each uppercase character to lowercase." +msgid "The Invert Case option will convert all lower case letters to upper case, and will convert all upper case letters to lower case." +msgstr "選択中のすべての小文字を大文字に変更し、逆に選択中のすべての大文字を小文字に変更します。" + +msgid "The Title Case option will convert the first letter of each word to upper case. All other letters will be converted to lower case." +msgstr "" + +msgid "If you have not highlighted any text, the Change Case feature will be grayed-out. You need to select a portion of text before you use the Change Case feature." +msgstr "" + +msgid "Paul Weaver" +msgstr "" + +msgid "Insert special characters just by clicking on them" +msgstr "" + +msgid "Character map" +msgstr "" + +msgid "The Character Map plugin enables you to insert characters into your document that you may not be able to type easily using your keyboard. To enable this plugin, select EditPreferences PluginsCharacter Map." +msgstr "" + +msgid "Using Character Map" +msgstr "" + +msgid "Once the plugin is enabled, you can add characters from the Character Map tab of the side panel (View Side Panel)." +msgstr "" + +msgid "Place the cursor at the point in your document at which you would like your special character." +msgstr "" + +#, fuzzy +#| msgid "To view the File Browser, choose ViewSide Pane and then click on the tab showing the File Browser icon at the bottom of the side pane." +msgid "Open the side panel by selecting View Side Panel, or by pressing F9." +msgstr "プラグインを有効にした状態でファイル参照ペインを表示するには、表示サイド・ペインを選択し、サイド・ペインの下部にあるファイル・ブラウザーアイコンをクリックしてください。" + +msgid "Select the Character Map tab in the side panel." +msgstr "" + +msgid "If neccessary, choose the character set to which your character belongs from the list at the top of the Character Map tab (e.g., Arabic)." +msgstr "" + +msgid "Double click your desired character to insert it." +msgstr "" + +msgid "You must click on the editing view of your document to continue editing normally." +msgstr "" + +msgid "Real-time error highlighting for supported languages" +msgstr "" + +msgid "Code assistance" +msgstr "" + +msgid "The gedit-code-assistance plugin provides real-time error highlighting for C, C++ and Objective-C. To enable this plugin, select EditPreferencesPluginsCode Assistance." +msgstr "" + +msgid "How the code assistance plugin works" +msgstr "" + +msgid "The plugin currently relies on information in the makefile to deduce the Clang error-highlighting rules. It examines the make rules and determines which targets depend on the the file that is being parsed. The plugin then extracts the compiler flags by simulating an execution of those targets." +msgstr "" + +msgid "This is not completely fool proof, of course. In the future, the plugin will allow you to manually specify the compile flags." +msgstr "" + +msgid "Comment-out or uncomment a block of code" +msgstr "" + +#, fuzzy +#| msgid "Comment" +msgid "Code comment" +msgstr "コメント" + +msgid "Code comments are portions of text that make it easier for people to understand a program's code, but they don't affect how a program works. Comments are separated from other parts of a program by special characters." +msgstr "" + +#, fuzzy +#| msgid "To enable the bookmark plugin, select Edit PreferencesPluginsBookmarks." +msgid "The code comment plugin makes it easier to quickly create or remove code comments. To enable the code comment plugin, select Edit PreferencesPlugins Code comment." +msgstr "ブックマークプラグインを有効にするには、編集 設定プラグインブックマークを選択します。" + +msgid "To create or remove a comment:" +msgstr "" + +msgid "Highlight the portion of text where you want to add or remove a comment." +msgstr "" + +#, fuzzy +#| msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgid "To add a comment, click Edit Comment Code, or press Ctrl M." +msgstr "検索 置換をクリックして置換ツールを開くか、 CtrlH を押して開いてください。" + +#, fuzzy +#| msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgid "To remove a comment, click Edit Uncomment Code, or press Shift CtrlM." +msgstr "検索 置換をクリックして置換ツールを開くか、 CtrlH を押して開いてください。" + +msgid "Gedit will automatically use the correct style of comment based on the language or syntax of the file. If gedit doesn't identify your language or syntax, you can select it from the language list in the bottom Status bar." +msgstr "" + +msgid "Pick a color from a dialog and insert its hexadecimal representation" +msgstr "" + +#, fuzzy +#| msgid "Color Scheme" +msgid "Color picker" +msgstr "色のスキーム" + +msgid "The color picker plugin helps you to insert the character codes that represent a certain color. This can make it easier to choose and use the correct color in your programs." +msgstr "" + +msgid "To enable the color picker plugin, select EditPreferencesPluginsColor Picker ." +msgstr "" + +msgid "To open and use the color picker:" +msgstr "" + +msgid "Place your cursor at the point in your document where you want to insert the color code." +msgstr "" + +msgid "Select ToolsPick Color.... The color picker dialog will appear." +msgstr "" + +msgid "Click on the desired color in the color picker window." +msgstr "" + +msgid "The appropriate color code will be inserted where you had placed your cursor." +msgstr "" + +#, fuzzy +#| msgid "To close the Check Spelling dialog, click Close." +msgid "To close the color picker, click Close." +msgstr "スペル・チェックダイアログを閉じるには、閉じるをクリックしてください。" + +msgid "You can make fine-grained adjustments to the color by adjusting the values for Hue, Saturation, Value, Red, Green, or Blue." +msgstr "" + +msgid "Additionally, you can save colors by right-clicking on any of the colored boxes in the color picker, and selecting Save color here. This will make it easier to insert commonly-used colors later." +msgstr "" + +msgid "Use a command-line interface for advanced editing" +msgstr "" + +#, fuzzy +#| msgid "Command" +msgid "Commander" +msgstr "コマンド" + +msgid "The Commander plugin is a plugin for advanced gedit users that allows you to perform command-line actions on the current file. To enable the commander plugin, select Edit PreferencesPluginsCommander." +msgstr "" + +msgid "Once you have enabled the plugin, activate it by pressing Ctrl.." +msgstr "" + +msgid "The last key in the above key combination is a period." +msgstr "" + +msgid "To Do This" +msgstr "" + +msgid "Press This" +msgstr "" + +msgid "See an overview of available commands" +msgstr "" + +msgid "Tab + Tab" +msgstr "" + +#, fuzzy +#| msgid "Number of words in the current document." +msgid "Find a word within the current file" +msgstr "現在のドキュメントの単語数" + +msgid "/ foo " +msgstr "" + +msgid "This will find the word foo." +msgstr "" + +#, fuzzy +#| msgid "Delete current line." +msgid "Replace a word within the current file" +msgstr "現在カーソルがある行を削除します。" + +msgid "// foo bar" +msgstr "" + +msgid "This will replace foo with bar." +msgstr "" + +msgid "Move the cursor to a certain line number in your file" +msgstr "" + +msgid "go [line number] or just g [line number]" +msgstr "" + +msgid "Toggle the bookmark indicator for the current line" +msgstr "" + +msgid "bookmark or just b" +msgstr "" + +msgid "Some commands, such as the bookmark command require that the appropriate plugin be installed and activated. If you do not have the appropriate plugin installed and activated, you will receive an error message." +msgstr "" + +msgid "Display recently-used and most-used files on startup" +msgstr "" + +msgid "Dashboard" +msgstr "" + +msgid "The Dashboard plugin provides quick access to your most recently-used files and most-frequently used files. To activate the Dashboard plugin, select Edit PreferencesPluginsDashboard. You will need to restart gedit to activate the Dashboard plugin." +msgstr "" + +msgid "The dashboard also includes a Search window, allowing you to search for files that may not appear in the list of files." +msgstr "" + +msgid "Recently used files" +msgstr "最近使用されたファイル" + +msgid "The dashboard will initially display a shortcut for an empty document and seven of your most recently-used files. Click on the empty document to create a new file. Click on any of the other files to open that file." +msgstr "" + +msgid "Most frequently-used files" +msgstr "" + +msgid "Similarly, the dashboard displays a shortcut for an empty document and seven of your most frequently-used files. Click on the empty document to create a new file. Click on any of the other files to open that file." +msgstr "" + +msgid "Once activated, the dashboard will be displayed by default when you open gedit. You can also open the dashboard by clicking FileNew , or by pressing CtrlN." +msgstr "" + +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "View document statistics" +msgstr "ドキュメントの統計プラグイン" + +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "Document statistics" +msgstr "ドキュメントの統計プラグイン" + +msgid "The Document Statistics plugin shows you various statistics about your current document. To enable this plugin, select Edit PreferencesPluginsDocument Statistics ." +msgstr "" + +#, fuzzy +#| msgid "Document Statistics Plugin" +msgid "Using Document Statistics" +msgstr "ドキュメントの統計プラグイン" + +msgid "Once the plugin is enabled, use it by selecting Tools Document Statistics. A window will display the statistical information of your document, including the number of words, lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" + +msgid "You can also use Document Statistics to show you information about just a portion of your document. To do this, use the mouse pointer to select the portion of text that you want to examine, and then select ToolsDocument Statistics. Gedit will display information for both your entire document, and for the portion of text that you highlighted." +msgstr "" + +msgid "Show white space between words or portions of code" +msgstr "" + +msgid "Draw spaces" +msgstr "" + +msgid "The Draw Spaces plugin is a simple plugin that can mark spaces, tabs, and other types of whitespace with a small, visible marker. By making whitespace visible, you can more easily see how whitespace is used in a document, and can apply spacing strategies more consistently." +msgstr "" + +msgid "To enable this plugin, select Edit PreferencesPluginsDraw Spaces. After you have enabled the plugin, you can set its options by highlighting the plugin and selecting Preferences." +msgstr "" + +msgid "By default, the Draw Spaces plugin will mark the following types of whitespace in a file:" +msgstr "" + +#, fuzzy +#| msgid "Sources" +msgid "Spaces" +msgstr "ソース" + +msgid "Tabs" +msgstr "タブ" + +#, fuzzy +#| msgid "Remove Trailing Spaces" +msgid "Leading spaces" +msgstr "末尾の空白を削除する" + +#, fuzzy +#| msgid "Replacing Text" +msgid "Spaces in text" +msgstr "文字列を置換する" + +#, fuzzy +#| msgid "Remove Trailing Spaces" +msgid "Trailing spaces" +msgstr "末尾の空白を削除する" + +msgid "You can also set the plugin to mark:" +msgstr "" + +#, fuzzy +#| msgid "Lines" +msgid "New Lines" +msgstr "範囲" + +msgid "Non-breaking spaces" +msgstr "" + +msgid "Though you will be able to see the dots when you work on a file, the dots will not be visible when you print a file to paper." +msgstr "" + +msgid "Run scripts on your current files, and interact with other applications" +msgstr "" + +#, fuzzy +#| msgid "External Tools Plugin" +msgid "External tools" +msgstr "外部ツールプラグイン" + +msgid "The External Tools plugin can help simplify repetitive tasks. Specifically, it extends gedit by helping you to run scripts on your working files, and by allowing gedit to interact with other programs on your computer. To enable the External Tools plugin, select EditPreferencesPlugins External Tools." +msgstr "" + +#, fuzzy +#| msgid "External Tools Plugin" +msgid "Configure the external tools plugin" +msgstr "外部ツールプラグイン" + +msgid "Once you have enabled the plugin, you will need to configure it to suit your needs. The configuration options are available by selecting ToolsManage External Tools." +msgstr "" + +msgid "This plugin is for advanced users, and requires knowledge of scripting to be used effectively. Use this plugin with care, as mistakes with your scripts can affect your work in unintended ways." +msgstr "" + +#, fuzzy +#| msgid "Use the specified command to print the file." +msgid "Use the side pane to browse and open files" +msgstr "印刷コマンドを直接記述します。" + +#, fuzzy +#| msgid "File Browser Plugin" +msgid "File browser pane" +msgstr "ファイル参照ペインプラグイン" + +msgid "Depending on how you use gedit, you may find it helpful to use the File Browser pane plugin. This plugin embeds a file browser in the side pane, giving you easy access to your frequently-used files." +msgstr "" + +#, fuzzy +#| msgid "To enable the bookmark plugin, select Edit PreferencesPluginsBookmarks." +msgid "You can enable the Side Pane by selecting EditPreferencesPlugins File Browser Pane." +msgstr "ブックマークプラグインを有効にするには、編集 設定プラグインブックマークを選択します。" + +#, fuzzy +#| msgid "To view the File Browser, choose ViewSide Pane and then click on the tab showing the File Browser icon at the bottom of the side pane." +msgid "To activate and use the side pane, select View Side pane (or just press F9), and then click on the file-browser icon at the bottom of the pane." +msgstr "プラグインを有効にした状態でファイル参照ペインを表示するには、表示サイド・ペインを選択し、サイド・ペインの下部にあるファイル・ブラウザーアイコンをクリックしてください。" + +msgid "Insert the current date/time at the cursor position" +msgstr "" + +#, fuzzy +#| msgid "Insert Date/Time Plugin" +msgid "Insert date/time" +msgstr "日付/時間の挿入プラグイン" + +msgid "As this name of this plugin suggests, the Insert Date/Time plugin allows you to insert the date and/or time at the current cursor position. To enable this plugin, select Edit Preferences Plugins Insert Date/Time. To use the plugin, press EditInsert Date and Time." +msgstr "" + +msgid "By default, the Insert Date/Time plugin will prompt you to choose your preferred date/time format each time that you use the plugin. However, you can choose your own default date and time format by selecting EditPreferencesPlugins Insert Date/TimeConfigure." +msgstr "" + +msgid "How to install third-party plugins" +msgstr "" + +msgid "Additional gedit plugins" +msgstr "追加のgeditプラグイン" + +msgid "Installing third-party plugins gives you extra functionality that isn't available in default gedit plugins, or even the extra plugins that are part of the gedit-plugins package. An online list of third-party plugins is kept here." +msgstr "" + +msgid "Installing a third-party plugin involves downloading the plugin, placing the plugin files in the right directory, and activating the plugin." +msgstr "" + +msgid "You can usually download a plugin from the plugin's website, but may need to use a revision-control program like git, bazaar, or subversion to copy a plugin's software repository from the internet. Refer to the plugin's documentation for information on getting the plugin." +msgstr "" + +msgid "Place the plugin files into the /home/username/.local/share/gedit/plugins directory." +msgstr "" + +msgid "Of course, replace the word username with your own username." +msgstr "" + +msgid "After you have placed the plugin files into the correct directory, the plugin will appear in the Preferences menu. Select Edit PreferencesPlugins[Name of Plugin] to enable the plugin." +msgstr "" + +#, fuzzy +#| msgid "Click Open." +msgid "Click Close." +msgstr "開くをクリックします。" + +msgid "After you have enabled the plugin, it should be available for you to use." +msgstr "" + +msgid "The .local directory is hidden by default. To view it and other hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" + +msgid "If the directory .local/share/gedit/plugins/ is not present on your system, you will need to create it." +msgstr "" + +msgid "Join several lines of text, or split long lines" +msgstr "" + +msgid "Join/Split lines" +msgstr "" + +msgid "The Join/Split Lines plugin can join shorter lines into one longer line, or can split a long line into multiple shorter lines." +msgstr "" + +msgid "To enable this plugin, select EditPreferences PluginsJoin/Split Lines." +msgstr "" + +msgid "To join multiple lines into one longer line:" +msgstr "" + +msgid "Select the lines that you want to join. To do this, you can use the mouse, or you can press ShiftUp Arrow or ShiftDown Arrow." +msgstr "" + +msgid "Press CtrlJ." +msgstr "" + +#, fuzzy +#| msgid "Move the selected line down one line." +msgid "The lines that you selected will be joined into one longer line." +msgstr "選択した行を一行下に移動します。" + +msgid "To split one line into multiple lines:" +msgstr "" + +#, fuzzy +#| msgid "Select the lines that you want to indent. To indent or unindent a single line, place the cursor anywhere on that line." +msgid "Select the line that you want to split by placing your cursor anywhere on that line." +msgstr "インデントを設定する行を選択します。1 行にインデントを設定したり削除したりするには、その行にカーソルを置きます。同じ行であればカーソルの位置はどこでも構いません。" + +msgid "Press CtrlShiftJ." +msgstr "" + +msgid "The line will be split into multiple lines. Spaces are used to determine where it is safe to split a line, and the length of each line will not exceed 80 characters." +msgstr "" + +msgid "Emacs, Kate and Vim-style modelines support for gedit" +msgstr "" + +#, fuzzy +#| msgid "Vim Modelines" +msgid "Modelines" +msgstr "Vim モードライン" + +msgid "The Modelines plugin allows gedit to analyze the lines of text at the start and end of a file, and then apply a set of document preferences to the file. The Modelines plugin supports a subset of the options used by the Emacs, Kate and Vim text editors." +msgstr "" + +msgid "To enable the Modelines plugin, select Edit PreferencesPluginsModelines." +msgstr "" + +#, fuzzy +#| msgid "General Tabbed Section" +msgid "General Modeline Options" +msgstr "全般タブ" + +#, fuzzy +#| msgid "The following plugins come built-in with gedit:" +msgid "The following options can be set using gedit modelines:" +msgstr "以下のプラグインは gedit に内蔵されています。" + +msgid "Tab width" +msgstr "タブの幅" + +msgid "Indent width" +msgstr "インデントの幅" + +#, fuzzy +#| msgid "Insert spaces instead of tabs" +msgid "Inserting spaces instead of tabs" +msgstr "タブ文字の代わりに半角空白を使うかどうか" + +msgid "Text Wrapping" +msgstr "テキストの折り返し" + +msgid "Right margin width" +msgstr "右マージン幅" + +msgid "Preferences set using modelines take precedence over the ones specified in the preference dialog." +msgstr "モードラインを使えば、設定ダイアログで設定できる項目を上書きすることができます。" + +msgid "Emacs Modelines" +msgstr "Emacs モードライン" + +#, fuzzy +#| msgid "The first two lines of a document are scanned for Emacs modelines." +msgid "The first two lines of a document are scanned for Emacs modelines, and gedit supports the following Emacs modeline options:" +msgstr "Emacs モードラインでは、ドキュメントの先頭二行を使って判別します。" + +#, fuzzy +#| msgid "Tab width" +msgid "Tab-width" +msgstr "タブの幅" + +msgid "Indent-offset" +msgstr "" + +msgid "Indent-tabs-mode" +msgstr "" + +msgid "Text auto-wrap" +msgstr "" + +msgid "For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" + +msgid "Kate Modelines" +msgstr "Kate モードライン" + +#, fuzzy +#| msgid "The first and last ten lines a document are scanned for Kate modelines." +msgid "The first and last ten lines a document are scanned for Kate modelines, and gedit supports the following Kate modeline options:" +msgstr "Kate モードラインでは、ドキュメントの先頭と終端の十行を使って判別します。" + +#, fuzzy +#| msgid "Tab width" +msgid "tab-width" +msgstr "タブの幅" + +#, fuzzy +#| msgid "Indent width" +msgid "indent-width" +msgstr "インデントの幅" + +msgid "space-indent" +msgstr "" + +msgid "word-wrap" +msgstr "" + +msgid "word-wrap-column" +msgstr "" + +msgid "For more information about Kate modelines, visit the Kate website." +msgstr "" + +msgid "Vim Modelines" +msgstr "Vim モードライン" + +#, fuzzy +#| msgid "The first and last three lines a document are scanned for Vim modelines." +msgid "The first and last three lines a document are scanned for Vim modelines, and gedit supports the following Vim modeline options:" +msgstr "Vim モードラインでは、ドキュメントの先頭と終端の三行を使って判別します。" + +msgid "et (expandtab)" +msgstr "" + +msgid "ts (tabstop)" +msgstr "" + +msgid "sw (shiftwidth)" +msgstr "" + +msgid "wrap" +msgstr "" + +#, fuzzy +#| msgid "Indent width" +msgid "textwidth" +msgstr "インデントの幅" + +#, fuzzy +#| msgid "For more information on creating plugins, see the gedit website." +msgid "For more information on Vim modelines, visit the Vim website." +msgstr "プラグインの作成方法については、gedit のウェブサイトを参照してください。" + +msgid "2011" +msgstr "2011" + +msgid "Edit a document in multiple places at once" +msgstr "" + +#, fuzzy +#| msgid "Quit Gedit." +msgid "Multi edit" +msgstr "gedit を終了します。" + +msgid "The Multi Edit plugin allows you to edit a document in multiple places at once. This can be helpful when performing tedious editing tasks. To enable the Multi Edit plugin, select Edit PreferencesPluginsMulti Edit." +msgstr "" + +msgid "After you have enabled the plugin, turn-on Multi Edit mode by pressing CtrlShiftC, or clicking EditMulti Edit Mode. You can then select the points in your file that you would like start editing." +msgstr "" + +msgid "To insert editing points in your file:" +msgstr "" + +msgid "Place your cursor at your first desired editing point." +msgstr "" + +msgid "Press CtrlE." +msgstr "CtrlEを押してください。" + +msgid "Move to your next editing point, and press Ctrl E again." +msgstr "" + +msgid "Continue inserting editing points, adding as many as you need." +msgstr "" + +msgid "Once you have inserted all of your editing points, you can make your desired edits." +msgstr "" + +msgid "To remove editing points, press the Esc key. This will remove all of the editing points. Pressing the Esc key again will turn off Multi Edit mode, returning the editor back to its normal state." +msgstr "" + +msgid "Add an interactive Python console to the bottom pane" +msgstr "" + +#, fuzzy +#| msgid "Python Console Plugin" +msgid "Python console" +msgstr "Python コンソールプラグイン" + +#, fuzzy +#| msgid "To enable the bookmark plugin, select Edit PreferencesPluginsBookmarks." +msgid "You can add a Python console to the bottom pane, allowing you to test Python scripts without leaving gedit. To enable the Python console, select EditPreferences Plugins Python Console." +msgstr "ブックマークプラグインを有効にするには、編集 設定プラグインブックマークを選択します。" + +#, fuzzy +#| msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgid "Once the Python console is enabled, you can open it by selecting ViewBottom Pane, or just press ShiftF9." +msgstr "検索 置換をクリックして置換ツールを開くか、 CtrlH を押して開いてください。" + +msgid "If you have also enabled the Embeded Terminal plugin, the Python Console will appear as a separate tab in the bottom pane." +msgstr "" + +msgid "Quickly open a file or set of files" +msgstr "" + +msgid "Quick open" +msgstr "" + +msgid "As the name of this plugin would imply, the Quick Open plugin helps you to open files more quickly than the regular way of opening files. To enable this plugin, select Edit PreferencesPluginsQuick Open." +msgstr "" + +msgid "Once you've enabled it, here is how to use the plugin:" +msgstr "" + +msgid "Open the Quick Open dialog by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "" + +msgid "The Quick Open file dialog will appear." +msgstr "" + +#, fuzzy +#| msgid "Enter the URI of the file that you want to open." +msgid "Use your mouse to select the file or files that you want to open." +msgstr "開きたいファイルの URI を入力します。" + +msgid "To select several individual files, hold down your Ctrl key while you click on the files that you want to open." +msgstr "" + +msgid "To select a group of files, click on the first file that you want to open, hold down the Shift key, and then click on the last file in the list that you want to open." +msgstr "" + +msgid "The Quick Open plugin will only display files that you have previously opened." +msgstr "" + +msgid "Save and restore your working sessions" +msgstr "" + +msgid "Session Saver" +msgstr "" + +msgid "The Session Saver plugin saves groups of files together so that you can open them together at a later time. To enable the plugin, select EditPreferencesPlugins Session Saver." +msgstr "" + +msgid "To save a new session:" +msgstr "" + +msgid "Select FileSaved SessionsSave current session." +msgstr "" + +msgid "Type a session name in the Save session dialog box." +msgstr "" + +#, fuzzy +#| msgid "Click Open." +msgid "Click Save." +msgstr "開くをクリックします。" + +msgid "To open an existing session:" +msgstr "" + +msgid "Select FileSaved Sessions." +msgstr "" + +msgid "Click the name of your desired session." +msgstr "" + +msgid "To delete an existing session:" +msgstr "" + +msgid "Select FileSaved Sessions Manage saved sessions." +msgstr "" + +#, fuzzy +#| msgid "Select the lines of text you want to sort." +msgid "Select the name of the session that you want to delete." +msgstr "並び替えたい行を選択します。" + +#, fuzzy +#| msgid "Click Open." +msgid "Click Delete." +msgstr "開くをクリックします。" + +msgid "The session name will still be listed in your list of sessions until you close gedit." +msgstr "" + +msgid "Use snippets to quickly insert often-used pieces of text" +msgstr "" + +#, fuzzy +#| msgid "Snippet text" +msgid "Snippets" +msgstr "スニペットテキスト" + +msgid "Snippets provide a convenient way of inserting repetitive portions of code into your files. For example, an HTML snippet for the <img> tag would insert the opening and closing portions of the tag, as well as fixed places where you can enter image attributes. This can make writing code easier and faster." +msgstr "" + +msgid "To enable the Snippets plugin, select Edit PreferencesPluginsSnippets." +msgstr "" + +#, fuzzy +#| msgid "Editing and Removing Snippets" +msgid "Using, Modifying and creating snippets" +msgstr "スニペットの編集・削除" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#, fuzzy +#| msgid "@@image: 'figures/gedit_format_italic.png'; md5=feb9817676516ae91b9f6b1cd36a5eca" +msgctxt "_" +msgid "external ref='figures/gedit-html-snippet.png' md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "@@image: 'figures/gedit_format_italic.png'; md5=feb9817676516ae91b9f6b1cd36a5eca" + +msgid "Inserting snippets of text into your files" +msgstr "" + +#, fuzzy +#| msgid "Adding Snippets" +msgid "Using snippets" +msgstr "スニペットの追加" + +msgid "The following points will help you get started with using snippets:" +msgstr "" + +msgid "Make sure the syntax is set appropriately." +msgstr "" + +msgid "The status bar at the bottom of the gedit window will show the current language setting. This language setting is what allows gedit to insert the proper snippets. Gedit will normally detect the language or syntax of the file that you're using, but sometimes you may need to set it." +msgstr "" + +msgid "In this example, the language is set to HTML." +msgstr "" + +msgid "Review the default snippets." +msgstr "" + +msgid "Select ToolsManage Snippets. Review the snippets that are available for your language or syntax. Find some basic snippets that you think might be useful for you." +msgstr "" + +msgid "Try using some of the snippets." +msgstr "" + +msgid "For example, if you set the syntax to HTML, type head , and press the Tab key, you should see something like this:" +msgstr "" + +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>ページタイトル</title>\n" +" \n" +" </head>\n" +" " + +msgid "Sort lines of text into alphabetical order" +msgstr "" + +#, fuzzy +#| msgid "Format" +msgid "Sort" +msgstr "形式" + +#, fuzzy +#| msgid "The Sort plugin arranges selected lines of text into alphabetical order." +msgid "The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "並び替えプラグインは、選択した行をアルファベット順(文字コード順)に並べ替えます。" + +#, fuzzy +#| msgid "You cannot undo the Sort operation, so you should save the file before performing the sort. To revert to the saved version of the file after the sort operation, choose FileRevert." +msgid "You cannot use the Undo feature to correct a Sort operation, so we recommend that you save the file immediately before performing the sort. If you make a mistake with the sort, you can revert to the previously-saved version of the file by selecting File Revert." +msgstr "並び替えの操作は元に戻すことができませんので、並び替えの実行前にファイルを保存しておいた方が良いでしょう。保存しておけば、ファイル元に戻すを選択することで保存時の状態に戻すことができます。" + +#, fuzzy +#| msgid "To enable the bookmark plugin, select Edit PreferencesPluginsBookmarks." +msgid "To enable the Sort plugin, select Edit PreferencesPluginsSort." +msgstr "ブックマークプラグインを有効にするには、編集 設定プラグインブックマークを選択します。" + +msgid "After you have enabled the Sort plugin, use it by selecting the lines of text you want to sort, and then clicking Edit Sort." +msgstr "" + +#, fuzzy +#| msgid "The Print dialog enables you to specify the following print options:" +msgid "The Sort dialog will open, allowing you to choose between several sorting options:" +msgstr "印刷ダイアログでは、次の印刷オプションを指定できます。" + +#, fuzzy +#| msgid "The Sort plugin arranges selected lines of text into alphabetical order." +msgid "Reverse order will arrange the text in reverse alphabetical order." +msgstr "並び替えプラグインは、選択した行をアルファベット順(文字コード順)に並べ替えます。" + +msgid "Remove duplicates will remove duplicate values from the list." +msgstr "" + +msgid "Ignore case will ignore case sensitivity." +msgstr "" + +#, fuzzy +#| msgid "To have the sort ignore the characters at the start of the lines, set the first character that should be used for sorting in the Start at column spin box." +msgid "To have the sort ignore the characters at the start of the lines, set the first character that should be used for sorting in the Start at column spin box." +msgstr "各行ごとに最初の数文字を並び替え判別の対称から外したい場合は、開始行でその文字数を指定します。" + +#, fuzzy +#| msgid "To perform the sort operation, click Sort." +msgid "To perform the sort operation, click Sort." +msgstr "並び替え操作を実行するには、並び替えをクリックします。" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#, fuzzy +#| msgid "@@image: 'figures/gedit_format_underline.png'; md5=58f5848d81ea3f0656ccce82ba32ec9c" +msgctxt "_" +msgid "external ref='figures/gedit-side-pane3.png' md5='4b800d370193ac0ed8db9eb33b86e11c'" +msgstr "@@image: 'figures/gedit_format_underline.png'; md5=58f5848d81ea3f0656ccce82ba32ec9c" + +msgid "Automatically insert tags, strings and special characters into a document" +msgstr "" + +#, fuzzy +#| msgid "Tag List Plugin" +msgid "Tag list" +msgstr "タグの一覧プラグイン" + +msgid "The Tag List plugin allows you to insert common tags and special characters from a list in the side pane. By default, the plugin can insert tags and special characters for HTML, XHTML, XSLT, XUL and LaTeX." +msgstr "" + +#, fuzzy +#| msgid "Tag List Plugin" +msgid "Using the Tag List plugin" +msgstr "タグの一覧プラグイン" + +msgid "To use the Tag List plugin, you will need to enable the plugin, and then activate the tag-list portion of the side pane." +msgstr "" + +#, fuzzy +#| msgid "Enabling a Plugin" +msgid "Enabling the Plugin" +msgstr "プラグインを有効化する" + +msgid "You can activate the plugin by selecting Edit PreferencesPluginsTag List. Once you have activated the plugin, access it by selecting ViewSide Pane, or by pressing F9." +msgstr "" + +msgid "The side pane initially shows a list of open documents, so to view and use the tag list, you will need to click on the tab showing the \"plus\" icon at the bottom of the side pane. The icon will look similar to this:" +msgstr "" + +#, fuzzy +#| msgid "Special Characters" +msgid "Inserting Tags and Special Characters" +msgstr "特殊文字" + +msgid "The tag list uses a drop-down menu to let you choose from the different types of tags. For example, one tag option is HTML - Tags." +msgstr "" + +#, fuzzy +#| msgid "To create a new snippet, do the following:" +msgid "To start inserting tags, complete the following:" +msgstr "新規にスニペットを追加する方法は次のとおりです。" + +msgid "Move the cursor to where you will want to insert the tag or special character." +msgstr "" + +msgid "Select the desired tag type from the drop-down menu at the top of the side pane." +msgstr "" + +#, fuzzy +#| msgid "Scroll through the tag list to find the required tag." +msgid "Scroll through the list to find the desired tag or character." +msgstr "タグの一覧をスクロールして、希望のタグを見つけます。" + +msgid "Double-click on the tag in the tag list." +msgstr "" + +msgid "The tag or special character you have chosen will then be displayed in your document." +msgstr "" + +#, fuzzy +#| msgid "Tag List Plugin" +msgid "Tag List Tips" +msgstr "タグの一覧プラグイン" + +msgid "You can also insert a tag by pressing Return or ShiftReturn." +msgstr "" + +msgid "Pressing the Return key will insert the tag at the cursor position, and then return focus to the document. Pressing Shift Return will insert the tag at the cursor position, but will keep the focus on the tag-list." +msgstr "" + +msgid "You can see a preview of what text will be inserted for each tag and special character by clicking on the word the Preview at the bottom of the side pane." +msgstr "" + +msgid "Add a terminal console to the bottom pane" +msgstr "" + +msgid "Embedded terminal" +msgstr "" + +msgid "gedit makes it possible to include an embedded version of Gnome Terminal, the GNOME command-line application, in the bottom pane of the gedit window. This will let you run scripts, install needed software, or test your program without leaving gedit." +msgstr "" + +msgid "To enable this plugin, select EditPreferences PluginsEmbedded Terminal." +msgstr "" + +msgid "Once you have enabled the plugin, add the terminal to the bottom pane by selecting ViewBottom Pane, or just press CtrlF9." +msgstr "" + +msgid "Increase or decrease the text size" +msgstr "" + +msgid "Text Size" +msgstr "文字の大きさ" + +msgid "The text size plugin allows you to temporarily change the text size in gedit without changing the program's default text size. To enable this plugin, select EditPreferencesPlugins Text Size." +msgstr "" + +msgid "Once you have enabled the plugin, do any of the following to change the text size in gedit:" +msgstr "" + +msgid "To increase the text size, press Ctrl +." +msgstr "" + +msgid "To decrease the text size, press Ctrl -." +msgstr "" + +msgid "To reset the text size to the default size, press Ctrl0." +msgstr "" + +msgid "Autocomplete words or portions of code as you type" +msgstr "" + +msgid "Word completion" +msgstr "" + +msgid "The Word Completion plugin can speed up your editing by suggesting completions of words as you type. To enable the plugin, select EditPreferencesPluginsWord Completion." +msgstr "" + +msgid "While editing, the Word Completion plugin will automatically display a pop-up list of words that begin with the letters you have already typed. Word suggestions are based upon words that appear elsewhere in your document and upon pre-defined keywords if your document is of a recognised format." +msgstr "" + +msgid "To insert a suggested word, double-click on it in the pop-up list or press AltNum, where Num is the number displayed next to your desired word." +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +msgctxt "_" +msgid "external ref='reverse-collate.png' md5='__failed__'" +msgstr "" + +msgid "Phil Bull" +msgstr "" + +msgid "Creative Commons Share Alike 3.0" +msgstr "" + +msgid "Getting Copies To Print In The Correct Order" +msgstr "" + +msgid "Reverse" +msgstr "" + +msgid "Printers usually print the first page first, and the last page last, so the pages end up in reverse order when you pick them up." +msgstr "" + +msgid "To reverse the order:" +msgstr "" + +msgid "FilePrint" +msgstr "" + +msgid "In the General tab of the Print window under Copies, check Reverse. The last page will be printed first, and so on." +msgstr "" + +msgid "Collate" +msgstr "" + +msgid "If you are printing more than one copy of the document, the print outs will be grouped by page number by default. (e.g. The copies of page one come out, then the copies of page two, etc.) Collating will make each copy come out with its pages grouped together." +msgstr "" + +msgid "To Collate:" +msgstr "" + +#, fuzzy +#| msgid "Choose FileOpen Location to display the Open Location dialog." +msgid "Click FilePrint" +msgstr "ファイル場所を開くを選択し、場所を開く ダイアログを表示します。" + +msgid "In the General tab of the Print window under Copies check Collate." +msgstr "" + +msgid "Printing with gedit requires that you have connected and configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" + +msgid "gedit allows you to both print output to a file, as well as printing output to paper. Prior to printing your document, you can also preview how the printed document will look by using the Print Preview feature." +msgstr "" + +#, fuzzy +#| msgid "Printing" +msgid "Printing to paper" +msgstr "印刷" + +#, fuzzy +#| msgid "Print a document to a printer." +msgid "Printing output to a file" +msgstr "ドキュメントをプリンターで印刷する。" + +msgid "You can also use gedit to print to a file. To do so, select FilePrintPrint to File." +msgstr "" + +msgid "Printing is enabled for the following file formats:" +msgstr "" + +msgid "Portable Document Format (.pdf)" +msgstr "" + +#, fuzzy +#| msgid "Scripts" +msgid "PostScript (.ps)" +msgstr "スクリプト" + +msgid "Scalable Vector Graphic (.svg)" +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +msgctxt "_" +msgid "external ref='print-select.png' md5='__failed__'" +msgstr "" + +msgid "Only Printing Certain Pages" +msgstr "" + +msgid "To only print certain pages from the document:" +msgstr "" + +msgid "Click File Print..." +msgstr "" + +msgid "In the General tab in the Print window choose Pages from the Range section." +msgstr "" + +msgid "Type the numbers of the pages you want to print in the textbox, separated by commas. Use a dash to denote a range of pages." +msgstr "" + +msgid "For example, if you enter \"1,3,5-7,9\" in the Pages textbox, pages 1, 3, 5, 6, 7 and 9 will be printed." +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#, fuzzy +#| msgid "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgctxt "_" +msgid "external ref='figures/gedit3-screenshot.png' md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" +msgstr "@@image: 'figures/gedit_window.png'; md5=9a607006548356160848652938c8b7e3" + +#, fuzzy +#| msgid "Starting gedit" +msgid "Get started with gedit" +msgstr "gedit を起動する" + +msgid "gedit is a full-featured text editor for the GNOME desktop environment. You can use it to prepare simple notes and documents, or you can use some of its advanced features, making it your own software development environment." +msgstr "" + +msgid "Once gedit launches, you can start writing right away. To save your text, just click Save." +msgstr "" + +msgid "To learn about additional gedit features and to get assistance with performing additional tasks, explore the other portions of the gedit help." +msgstr "" + +#, fuzzy +#| msgid "Replacing Text" +msgid "Replace text" +msgstr "文字列を置換する" + +msgid "Editing text can be time consuming. To save time, gedit includes a Replace function that helps you to find and replace portions of text." +msgstr "" + +msgid "Replace text in gedit" +msgstr "geditで文字を置き換える" + +#, fuzzy +#| msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgid "Open the Replace tool by clicking Search Replace or press Ctrl H." +msgstr "検索 置換をクリックして置換ツールを開くか、 CtrlH を押して開いてください。" + +msgid "Enter the text that you wish to replace into the 'Search for:' field." +msgstr "" + +msgid "Enter the new, replacement text into the 'Replace with:' field." +msgstr "" + +msgid "Once you have entered the original and replacement text, select your desired replacement options:" +msgstr "" + +#, fuzzy +#| msgid "To replace all occurrences of the string throughout the document, click Replace All." +msgid "To replace only the next matching portion of text, click Replace." +msgstr "ドキュメントにあるすべての一致文字列を置換するには、すべて置換をクリックしてください。" + +#, fuzzy +#| msgid "To replace all occurrences of the string throughout the document, click Replace All." +msgid "To replace all occurrences of the searched-for text, click Replace All." +msgstr "ドキュメントにあるすべての一致文字列を置換するには、すべて置換をクリックしてください。" + +msgid "Use the Replace All function with care. Replace All works on the entirety of your text file, and does not allow you to highlight portions of text where the replace function will be performed." +msgstr "" + +msgid "More options" +msgstr "" + +msgid "Match case" +msgstr "" + +msgid "The Match case option allows you to specify whether you want your search to be case-sensitive. If this option is selected, searches will be case-sensitive. If not, searches will not be case-sensitive." +msgstr "" + +msgid "Match entire word only" +msgstr "" + +msgid "Use this option to search for a specific word without including fragments of other words. For example, if you searched for the word 'and' with this option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" + +msgid "Search backwards" +msgstr "" + +msgid "This command behaves identically to the Find Previous command. If you wish to step through search results from end to beginning, select this option." +msgstr "" + +msgid "Wrap around" +msgstr "" + +msgid "With the wrap around option enabled, gedit will re-start the search/replace action at the top of the file after it has reached the bottom of the file. This ensures that your search/replace action is made across your entire file." +msgstr "" + +#, fuzzy +#| msgid "Saving a File" +msgid "Save a file" +msgstr "ファイルを保存する" + +#, fuzzy +#| msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgid "To save a file in gedit, click on the disk-drive icon with the word Save next to it. You may also select File Save, or just press Ctrl S." +msgstr "検索 置換をクリックして置換ツールを開くか、 CtrlH を押して開いてください。" + +msgid "If you are saving a new file, the Save File dialog will appear, and you can select a name for the file, as well as the directory where you would like the file to be saved." +msgstr "" + +msgid "Search for text" +msgstr "テキストの検索" + +msgid "The Find tool can help you find specific sequences of text within in your file." +msgstr "" + +#, fuzzy +#| msgid "Finding Text" +msgid "Finding text" +msgstr "文字列を検索する" + +msgid "Open the search window by clicking SearchFind or pressing CtrlF. This will move your cursor to the start of the search window." +msgstr "" + +msgid "Type the text you wish to search for in the search window." +msgstr "" + +msgid "As you type, gedit will begin highlighting the portions of text that match what you have entered." +msgstr "" + +#, fuzzy +#| msgid "To create a new snippet, do the following:" +msgid "To scroll through the search results, do any of the following:" +msgstr "新規にスニペットを追加する方法は次のとおりです。" + +msgid "Click on the up or down facing arrows next to the search window" +msgstr "" + +msgid "Press the up arrow or down arrow keys on your keyboard" +msgstr "" + +msgid "Press CtrlG or CtrlShiftG." +msgstr "" + +msgid "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +msgstr "" + +msgid "To close the search window, press either Esc or Enter. Pressing Esc will return the cursor to where it was before you began your search. Pressing Enter will return the cursor to the current position in the search results." +msgstr "" + +#, fuzzy +#| msgid "Search" +msgid "Search tips" +msgstr "検索" + +msgid "If you highlight a portion of text with your mouse, and then press CtrlF, the text you've highlighted will appear in the search window." +msgstr "" + +msgid "For advanced search options, you can click on the Magnifying Glass icon in the search window, or you can right-click on any portion of the search window." +msgstr "" + +msgid "The text that you've searched for will remain highlighted by gedit, even after you have completed your search. To remove the highlight, click SearchClear Highlight, or press CtrlShiftK." +msgstr "" + +msgid "Paolo Borelli" +msgstr "" + +msgid "Jesse van den Kieboom" +msgstr "" + +msgid "Steve Frécinaux" +msgstr "" + +msgid "Ignacio Casal Quinteiro" +msgstr "" + +#, fuzzy +#| msgid "Shortcut key" +msgid "Shortcut keys" +msgstr "ショートカット・キー" + +#, fuzzy +#| msgid "Use shortcut keys to perform common tasks more quickly than with the mouse and menus. The following tables list all of gedit's shortcut keys." +msgid "Use shortcut keys to perform common tasks more quickly than with the mouse and menus. The following tables list all of gedit's shortcut keys." +msgstr "ショートカットキーを使えば、よく使う作業をマウスやメニューを使うよりも素早く実行できます。以下の表は、gedit で利用できるすべてのショートカットキーの一覧です。" + +#, fuzzy +#| msgid "Shortcut key" +msgid "Tab-related Shortcut keys" +msgstr "ショートカット・キー" + +#, fuzzy +#| msgid "Switches to the next tab to the left." +msgid "Switch to the next tab to the left" +msgstr "左のタブに移動します。" + +msgid "Ctrl + Alt + PageUp" +msgstr "Ctrl + Alt + PageUp" + +#, fuzzy +#| msgid "Switches to the next tab to the right." +msgid "Switch to the next tab to the right" +msgstr "右のタブに移動します。" + +msgid "Ctrl + Alt + PageDown" +msgstr "Ctrl + Alt + PageDown" + +#, fuzzy +#| msgid "Close tab." +msgid "Close tab" +msgstr "タブを閉じます。" + +msgid "Ctrl + W" +msgstr "Ctrl + W" + +#, fuzzy +#| msgid "Save all tabs." +msgid "Save all tabs" +msgstr "すべてのタブを保存します。" + +msgid "Ctrl + Shift + L" +msgstr "Ctrl + Shift + L" + +#, fuzzy +#| msgid "Close all tabs." +msgid "Close all tabs" +msgstr "すべてのタブを閉じます。" + +msgid "Ctrl + Shift + W" +msgstr "Ctrl + Shift + W" + +#, fuzzy +#| msgid "Jump to nth tab." +msgid "Jump to nth tab" +msgstr "n 番目のタブに移動します。" + +msgid "Alt + n" +msgstr "Alt + n" + +#, fuzzy +#| msgid "Shortcuts for working with files:" +msgid "Shortcut keys for working with files" +msgstr "ファイル用のショートカット" + +#, fuzzy +#| msgid "Create a new document." +msgid "Create a new document" +msgstr "新しいドキュメントを作成します。" + +msgid "Ctrl + N" +msgstr "Ctrl + N" + +#, fuzzy +#| msgid "Open a document." +msgid "Open a document" +msgstr "ドキュメントを開きます。" + +msgid "Ctrl + O" +msgstr "Ctrl + O" + +#, fuzzy +#| msgid "Save the current document to disk." +msgid "Save the current document" +msgstr "現在のドキュメントをファイルに保存します。" + +msgid "Ctrl + S" +msgstr "Ctrl + S" + +#, fuzzy +#| msgid "Save the current document with a new filename." +msgid "Save the current document with a new filename" +msgstr "現在のドキュメントを新しいファイル名で保存します。" + +msgid "Ctrl + Shift + S" +msgstr "Ctrl + Shift + S" + +#, fuzzy +#| msgid "Print the current document." +msgid "Print the current document" +msgstr "現在のドキュメントを印刷します。" + +msgid "Ctrl + P" +msgstr "Ctrl + P" + +#, fuzzy +#| msgid "Print preview." +msgid "Print preview" +msgstr "印刷プレビューを表示します。" + +msgid "Ctrl + Shift + P" +msgstr "Ctrl + Shift + P" + +#, fuzzy +#| msgid "Close the current document." +msgid "Close the current document" +msgstr "現在のドキュメントを閉じます。" + +#, fuzzy +#| msgid "Quit Gedit." +msgid "Quit gedit" +msgstr "gedit を終了します。" + +msgid "Ctrl + Q" +msgstr "Ctrl + Q" + +#, fuzzy +#| msgid "Shortcuts for editing documents:" +msgid "Shortcut keys for editing files" +msgstr "編集用のショートカット" + +#, fuzzy +#| msgid "Undo the last action." +msgid "Undo the last action" +msgstr "最後に行った作業を元に戻します。" + +msgid "Ctrl + Z" +msgstr "Ctrl + Z" + +#, fuzzy +#| msgid "Redo the last undone action ." +msgid "Redo the last undone action" +msgstr "最後に元に戻した作業をやり直します。" + +msgid "Ctrl + Shift + Z" +msgstr "Ctrl + Shift + Z" + +#, fuzzy +#| msgid "Cut the selected text or region and place it on the clipboard." +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "選択したテキストもしくは領域を切り取り、クリップボードに移動します。" + +msgid "Ctrl + X" +msgstr "Ctrl + X" + +#, fuzzy +#| msgid "Copy the selected text or region onto the clipboard." +msgid "Copy the selected text or region onto the clipboard" +msgstr "選択したテキストもしくは領域をクリップボードにコピーします。" + +msgid "Ctrl + C" +msgstr "Ctrl + C" + +#, fuzzy +#| msgid "Paste the contents of the clipboard." +msgid "Paste the contents of the clipboard" +msgstr "クリップボードの内容を貼り付けます。" + +msgid "Ctrl + V" +msgstr "Ctrl + V" + +msgid "Select all text in the file" +msgstr "" + +msgid "Ctrl + A" +msgstr "Ctrl + A" + +#, fuzzy +#| msgid "Delete current line." +msgid "Delete the current line" +msgstr "現在カーソルがある行を削除します。" + +msgid "Ctrl + D" +msgstr "Ctrl + D" + +#, fuzzy +#| msgid "Move the selected line up one line." +msgid "Move the selected line up one line" +msgstr "選択した行を上へ一行移動します。" + +#, fuzzy +#| msgid "Alt + Up" +msgid "Alt + Up Arrow" +msgstr "Alt + Up" + +#, fuzzy +#| msgid "Move the selected line down one line." +msgid "Move the selected line down one line" +msgstr "選択した行を一行下に移動します。" + +#, fuzzy +#| msgid "Alt + Down" +msgid "Alt + Down Arrow" +msgstr "Alt + Down" + +#, fuzzy +#| msgid "Shortcuts for showing and hiding panes:" +msgid "Shortcut keys for showing and hiding panes" +msgstr "ペイン用のショートカット" + +#, fuzzy +#| msgid "Show/hide the side pane." +msgid "Show / hide the side pane" +msgstr "サイド・ペインの表示/非表示を切り替えます。" + +msgid "F9" +msgstr "F9" + +#, fuzzy +#| msgid "Show/hide the bottom pane." +msgid "Show / hide the bottom pane." +msgstr "ボトム・ペインの表示/非表示を切り替えます。" + +msgid "Ctrl + F9" +msgstr "Ctrl + F9" + +#, fuzzy +#| msgid "Shortcuts for searching:" +msgid "Shortcut keys for searching" +msgstr "検索用のショートカット" + +#, fuzzy +#| msgid "Find a string." +msgid "Find a string" +msgstr "文字列を検索します。" + +msgid "Ctrl + F" +msgstr "Ctrl + F" + +#, fuzzy +#| msgid "Find the next instance of the string." +msgid "Find the next instance of the string" +msgstr "次の一致文字列に移動します。" + +msgid "Ctrl + G" +msgstr "Ctrl + G" + +#, fuzzy +#| msgid "Find the previous instance of the string." +msgid "Find the previous instance of the string" +msgstr "前の一致文字列に移動します。" + +msgid "Ctrl + Shift + G" +msgstr "Ctrl + Shift + G" + +#, fuzzy +#| msgid "Search and replace." +msgid "Search and Replace" +msgstr "文字列を検索し置換します。" + +msgid "Ctrl + H" +msgstr "Ctrl + H" + +#, fuzzy +#| msgid "Clear highlight." +msgid "Clear highlight" +msgstr "一致した文字列の強調表示を解除します。" + +msgid "Ctrl + Shift + K" +msgstr "Ctrl + Shift + K" + +#, fuzzy +#| msgid "Goto line." +msgid "Goto line" +msgstr "指定した行番号へ移動します。" + +msgid "Ctrl + I" +msgstr "Ctrl + I" + +#, fuzzy +#| msgid "Shortcuts for tools:" +msgid "Shortcut keys for tools" +msgstr "ツール用のショートカット" + +#, fuzzy +#| msgid "Check spelling (with plugin)." +msgid "Check spelling" +msgstr "スペル・チェックを行います(プラグインを使用します)。" + +msgid "Shift + F7" +msgstr "Shift + F7" + +#, fuzzy +#| msgid "Remove trailing spaces (with plugin)." +msgid "Remove trailing spaces (with plugin)" +msgstr "文字列の終端にある空白を削除します(プラグインを使用します)。" + +msgid "Alt + F12" +msgstr "Alt + F12" + +#, fuzzy +#| msgid "Run \"make\" in current directory (with plugin)." +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "現在のディレクトリで \"make\" を実行します(プラグインを使用します)。" + +msgid "F8" +msgstr "F8" + +#, fuzzy +#| msgid "Directory listing (with plugin)." +msgid "Directory listing (with plugin)" +msgstr "ディレクトリを表示します(プラグインを使用します)。" + +msgid "Ctrl + Shift + D" +msgstr "Ctrl + Shift + D" + +#, fuzzy +#| msgid "Shortcuts for help:" +msgid "Shortcut keys for user help" +msgstr "ヘルプ用のショートカット" + +msgid "Open the gedit user guide" +msgstr "" + +msgid "F1" +msgstr "F1" + +msgid "Baptiste Mille-Mathias" +msgstr "" + +msgid "Enable and use gedit's spell-checking feature" +msgstr "" + +msgid "Spell-check your document" +msgstr "" + +msgid "Enable the spell checker" +msgstr "" + +msgid "To enable the plugin, select EditPreferences PluginsSpell Checker." +msgstr "" + +msgid "gedit will only check your document's spelling when you choose ToolsCheck Spelling. To have gedit automatically check your spelling, select Tools Highlight Misspelled Words." +msgstr "" + +msgid "Define the language to use for spell checking" +msgstr "" + +msgid "By default, gedit will use your current language to spell check your document. If you need to use another language, choose ToolsSet Language..., then choose the language you want to use." +msgstr "" + +msgid "The list of available languages will vary, depending on the configuration of your system." +msgstr "" + +#, fuzzy +#| msgid "Print syntax highlighting" +msgid "Turn on syntax highlighting" +msgstr "構文の強調表示" + +msgid "Syntax Highlighting" +msgstr "構文の強調表示" + +msgid "gedit provides syntax highlighting for a wide range of markup, programming, and scientific languages. If gedit recognizes the syntax being used when you open a file, it will automatically highlight the text." +msgstr "" + +msgid "If your syntax or language is not highlighted upon startup, you can select the appropriate syntax or language by clicking ViewHighlight Mode, and then choosing the desired syntax. Alternately, you can select the syntax name from a list at the bottom of the gedit window." +msgstr "" + +msgid "Move and re-order tabs" +msgstr "" + +msgid "Tabs in gedit can be moved, making it easier to work with your files. Tabs can be can re-ordered within the same window, moved outside of gedit (creating a new gedit window), and moved from one window to another." +msgstr "" + +msgid "Change the order of tabs in the gedit window" +msgstr "" + +msgid "To change the ordering of tabs in a window:" +msgstr "" + +msgid "Click and hold the mouse button on the tab" +msgstr "" + +msgid "Move the tab to the desired position among the other tabs" +msgstr "" + +msgid "Release the mouse button" +msgstr "" + +msgid "The tab will be placed in the position closest to where you release the tab, immediately beside other opened tabs." +msgstr "" + +msgid "Move a tab, creating a new gedit window" +msgstr "" + +msgid "To create a new window from an existing tab:" +msgstr "" + +msgid "Click and hold the mouse button on the tab." +msgstr "" + +msgid "Drag the tab out of the gedit window." +msgstr "" + +msgid "Release the mouse button." +msgstr "" + +msgid "or, while the tab to be moved is open, choose Documents Move to New Window" +msgstr "" + +msgid "To move a tab into a new window when gedit is maximized, drag the tab onto the top bar at the top of the screen." +msgstr "" + +msgid "Move a tab to another gedit window" +msgstr "" + +msgid "If you want to move a tab from one window to another:" +msgstr "" + +msgid "Drag the tab to the new window" +msgstr "" + +msgid "Place it beside other tabs in the new window" +msgstr "" + +msgid "You may find it easier to move a tab from one window to another by dragging the tab to the Activities hot-corner of the GNOME Shell. This will reveal each of the open gedit windows. You can then release the tab on the desired gedit window." +msgstr "" + +msgid "See the tab-related shortcut keys table to make it easier to manage your tabs." +msgstr "" + +msgid "Add and remove tabs" +msgstr "" + +msgid "Working with tabs in gedit allows you to keep an eye on several files in a single window. The tab that is larger than the other tabs indicates the file that is currently open. The smaller tabs indicate other files that are available to work on." +msgstr "" + +#, fuzzy +#| msgid "Adding Snippets" +msgid "Adding tabs" +msgstr "スニペットの追加" + +msgid "To add a new tab, create a new file with Ctrl N. The tab will be added to the right side of any other tabs." +msgstr "" + +#, fuzzy +#| msgid "Remove Trailing Spaces" +msgid "Removing tabs" +msgstr "末尾の空白を削除する" + +#, fuzzy +#| msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgid "To remove a tab, click the X on the tab's right side. To remove all open tabs, press Ctrl ShiftW." +msgstr "検索 置換をクリックして置換ツールを開くか、 CtrlH を押して開いてください。" + +#, fuzzy +#| msgid "Undo the last action." +msgid "Undo a recent action" +msgstr "最後に行った作業を元に戻します。" + +msgid "If you make a mistake while using gedit, you can undo it by pressing CtrlZ, or by clicking EditUndo. Doing so will cause gedit to undo one set of similar actions." +msgstr "" + +msgid "Undoing a \"set of similar actions\" means, for example, that gedit will remove an entire word rather than removing each character in the word one at a time. This makes gedit's undo feature more efficient." +msgstr "" + +msgid "You cannot undo a change after you have saved it." +msgstr "" + +msgid "View a list of files in the side pane" +msgstr "" + +msgid "Keeping track of a large number of files using tabs can be difficult. One way of managing large numbers of files is viewing them in a side pane. Side panes allow you to view more files at a time than is possible using tabs alone." +msgstr "" + +msgid "To view a list of open files in a side pane, click View Side Pane. A pane will appear to the left of the workspace with a listing of all currently open files. Clicking a file in the side pane will display that file in the workspace." +msgstr "" + +msgid "The side pane also contains a File Browser view. If the pane displays a file directory instead of currently open files, click documents icon at the bottom of the pane to switch to the Documents view." +msgstr "" + +msgid "The side pane only displays files that are open in the current window. When multiple windows are open, only the files in the current window will be displayed in the side pane." +msgstr "" diff --git a/help/ko/ko.po b/help/ko/ko.po new file mode 100644 index 0000000..8810816 --- /dev/null +++ b/help/ko/ko.po @@ -0,0 +1,4399 @@ +# Sun Microsystems, 2002. +# Changwoo Ryu , 2007, 2008, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit-help\n" +"POT-Creation-Date: 2008-02-01 21:04+0000\n" +"PO-Revision-Date: 2010-04-16 01:32+0900\n" +"Last-Translator: Changwoo Ryu \n" +"Language-Team: GNOME Korea \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: C/legal.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or " +"in the file COPYING-DOCS distributed with this manual." +msgstr "" +"본 설명서는 프리 소프트웨어 재단(FSF)에서 발행한 GNU 자유 문서 라이센스" +"(GFDL) 버전 1.1 이상의 조항에 따라 변경 불가 부분, 앞 표지 텍스트 및 뒷 표지 " +"텍스트를 제외하고 복사, 수정 및/또는 배포할 수 있습니다. GFDL의 사본은 " +"링크 또는 본 설명서와 함께 배" +"포된 COPYING-DOCS 파일에서 찾을 수 있습니다." + +#: C/legal.xml:12(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" +"본 설명서는 GFDL에 따라 배포된 그놈 설명서 컬렉션의 일부입니다. 본 설명서를 " +"컬렉션과 별도로 배포하려는 경우에는 라이센스 조항 6에 따라 라이센스 사본을 설" +"명서에 추가하면 됩니다." + +#: C/legal.xml:19(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" +"기업의 제품과 서비스를 식별하기 위해 사용된 많은 이름은 상표로 간주됩니다. 그" +"놈 문서에 사용된 이름과 그놈 문서 프로젝트의 구성원은 해당 상표로, 모두 대문" +"자로 표시되거나 첫 글자가 대문자로 표시되어 있습니다." + +#: C/legal.xml:35(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" +"문서는 \"있는 그대로\"로 제공되며 상품성, 특정 목적에의 적합성 또는 준수에 대" +"한 보증을 비롯한 일체의 명시적 또는 암시적인 보증을 제한 없이 부인합니다. 문" +"서 및 수정판의 품질, 정확성 및 성능에 대한 책임은 전적으로 사용자에게 있습니" +"다. 문서 또는 수정판에 대한 오류를 입증하려면 사용자(원저작자, 저작자 또는 배" +"포자 아님)는 필요한 서비스, 수리 및 수정 비용을 부담해야 합니다. 본 보증 부인" +"은 라이센스의 필수 부분에 해당합니다. 본 보증 부인을 따르지 않는 모든 문서나 " +"수정판은 사용할 수 없습니다. 또한 불법 행위(부주의 포함), 계약 또는 직접, 간" +"접, 특별, 부수적 및 파생적인 모든 손해(영업권 손실, 작업 중지, 컴퓨터 오류 " +"및 고장 또는 본 문서나 수정판의 사용으로 인해 발생하거나 관련된 기타 모든 손" +"실 및 이러한 손실 가능성에 대해 미리 공지한 경우에도 제한되지 않음)에 대해서" +"는 어떠한 상황이나 법률적인 이론 하에서도 본 문서 또는 수정판의 저작자, 원저" +"자, 모든 배포자 또는 공급자는 책임을 지지 않습니다." + +#: C/legal.xml:28(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" +"문서 및 수정판은 다음 GNU 자유 문서 라이센스의 조항에 따라 제공됩니다. " +"" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:266(None) +msgid "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgstr "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:347(None) +msgid "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" +msgstr "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:1273(None) +msgid "" +"@@image: 'figures/gedit_format_bold.png'; " +"md5=950264711a3f0808bef134fa94b0a582" +msgstr "" +"@@image: 'figures/gedit_format_bold.png'; " +"md5=950264711a3f0808bef134fa94b0a582" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:1292(None) +msgid "" +"@@image: 'figures/gedit_format_italic.png'; " +"md5=feb9817676516ae91b9f6b1cd36a5eca" +msgstr "" +"@@image: 'figures/gedit_format_italic.png'; " +"md5=feb9817676516ae91b9f6b1cd36a5eca" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:1310(None) +msgid "" +"@@image: 'figures/gedit_format_underline.png'; " +"md5=58f5848d81ea3f0656ccce82ba32ec9c" +msgstr "" +"@@image: 'figures/gedit_format_underline.png'; " +"md5=58f5848d81ea3f0656ccce82ba32ec9c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:1328(None) +msgid "" +"@@image: 'figures/gedit_format_strikethrough.png'; " +"md5=cf962f5d9df721c1f4f4cef2780915ed" +msgstr "" +"@@image: 'figures/gedit_format_strikethrough.png'; " +"md5=cf962f5d9df721c1f4f4cef2780915ed" + +#: C/gedit.xml:23(title) +msgid "Gedit Manual" +msgstr "gedit 설명서" + +#: C/gedit.xml:25(year) +msgid "2007" +msgstr "2007" + +#: C/gedit.xml:26(holder) C/gedit.xml:45(publishername) +#: C/gedit.xml:56(firstname) C/gedit.xml:79(orgname) C/gedit.xml:120(para) +#: C/gedit.xml:128(para) C/gedit.xml:136(para) C/gedit.xml:144(para) +#: C/gedit.xml:152(para) C/gedit.xml:160(para) C/gedit.xml:168(para) +#: C/gedit.xml:176(para) C/gedit.xml:184(para) C/gedit.xml:192(para) +#: C/gedit.xml:200(para) +msgid "GNOME Documentation Project" +msgstr "그놈 문서 프로젝트" + +#: C/gedit.xml:28(year) +msgid "2002" +msgstr "2002" + +#: C/gedit.xml:29(year) +msgid "2003" +msgstr "2003" + +#: C/gedit.xml:30(year) +msgid "2004" +msgstr "2004" + +#: C/gedit.xml:31(holder) C/gedit.xml:71(orgname) +msgid "Sun Microsystems" +msgstr "Sun Microsystems" + +#: C/gedit.xml:33(year) C/gedit.xml:116(date) +msgid "2000" +msgstr "2000" + +#: C/gedit.xml:34(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: C/gedit.xml:52(firstname) +msgid "Joachim" +msgstr "Joachim" + +#: C/gedit.xml:53(surname) +msgid "Noreiko" +msgstr "Noreiko" + +#: C/gedit.xml:59(orgname) +msgid "GNOME" +msgstr "GNOME" + +#: C/gedit.xml:63(firstname) +msgid "Hal" +msgstr "Hal" + +#: C/gedit.xml:64(surname) +msgid "Canary" +msgstr "Canary" + +#: C/gedit.xml:65(contrib) +msgid "Added the Shortcut Keys Table" +msgstr "키보드 바로 가기 표 추가" + +#: C/gedit.xml:68(firstname) C/gedit.xml:191(para) +msgid "Sun Java Desktop System Documentation Team" +msgstr "Sun Java Desktop System Documentation Team" + +#: C/gedit.xml:72(email) +msgid "gdocteam@sun.com" +msgstr "gdocteam@sun.com" + +#: C/gedit.xml:76(firstname) +msgid "Eric" +msgstr "Eric" + +#: C/gedit.xml:77(surname) +msgid "Baudais" +msgstr "Baudais" + +#: C/gedit.xml:80(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: C/gedit.xml:84(firstname) +msgid "Baris" +msgstr "Baris" + +#: C/gedit.xml:85(surname) +msgid "" +"Cicek provided information from earlier revisions of the gedit application." +msgstr "Cicek가 이전 버전의 gedit 응용 프로그램의 정보를 알려주었습니다." + +#: C/gedit.xml:86(contrib) C/gedit.xml:91(contrib) +msgid "Acknowledgements" +msgstr "도음 주신 분들" + +#: C/gedit.xml:89(firstname) +msgid "Ajit" +msgstr "Ajit" + +#: C/gedit.xml:90(surname) +msgid "George provided information about plugins." +msgstr "George가 플러그인에 관한 정보를 알려주었습니다." + +#: C/gedit.xml:115(revnumber) +msgid "gedit V1.0" +msgstr "gedit 버전 1.0" + +#: C/gedit.xml:118(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu" + +#: C/gedit.xml:124(revnumber) +msgid "gedit Manual V2.0" +msgstr "gedit 설명서 버전 2.0" + +#: C/gedit.xml:125(date) +msgid "March 2002" +msgstr "2002년 3월" + +#: C/gedit.xml:127(para) C/gedit.xml:135(para) C/gedit.xml:143(para) +#: C/gedit.xml:151(para) C/gedit.xml:159(para) C/gedit.xml:167(para) +#: C/gedit.xml:175(para) C/gedit.xml:183(para) +msgid "Sun GNOME Documentation Team" +msgstr "Sun 그놈 문서 팀" + +#: C/gedit.xml:132(revnumber) +msgid "gedit Manual V2.1" +msgstr "gedit 설명서 버전 2.1" + +#: C/gedit.xml:133(date) +msgid "June 2002" +msgstr "2002년 6월" + +#: C/gedit.xml:140(revnumber) +msgid "gedit Manual V2.2" +msgstr "gedit 설명서 버전 2.2" + +#: C/gedit.xml:141(date) +msgid "August 2002" +msgstr "2002년 8월" + +#: C/gedit.xml:148(revnumber) +msgid "gedit Manual V2.3" +msgstr "gedit 설명서 버전 2.3" + +#: C/gedit.xml:149(date) +msgid "September 2002" +msgstr "2002년 9월" + +#: C/gedit.xml:156(revnumber) +msgid "gedit Manual V2.4" +msgstr "gedit 설명서 버전 2.4" + +#: C/gedit.xml:157(date) +msgid "January 2003" +msgstr "2003년 1월" + +#: C/gedit.xml:164(revnumber) +msgid "gedit Manual V2.5" +msgstr "gedit 설명서 버전 2.5" + +#: C/gedit.xml:165(date) +msgid "March 2003" +msgstr "2003년 3월" + +#: C/gedit.xml:172(revnumber) +msgid "gedit Manual V2.6" +msgstr "gedit 설명서 버전 2.6" + +#: C/gedit.xml:173(date) +msgid "September 2003" +msgstr "2003 9월" + +#: C/gedit.xml:180(revnumber) +msgid "gedit Manual V2.7" +msgstr "gedit 설명서 버전 2.7" + +#: C/gedit.xml:181(date) +msgid "March 2004" +msgstr "2004 3월" + +#: C/gedit.xml:188(revnumber) +msgid "gedit Manual V2.8" +msgstr "gedit 설명서 버전 2.8" + +#: C/gedit.xml:189(date) C/gedit.xml:197(date) +msgid "July 2006" +msgstr "2006년 6월" + +#: C/gedit.xml:196(revnumber) +msgid "gedit Manual V2.9" +msgstr "gedit 설명서 버전 2.9" + +#: C/gedit.xml:199(para) +msgid "GNOME Documentation Team" +msgstr "그놈 문서 팀" + +#: C/gedit.xml:204(releaseinfo) +msgid "This manual describes version 2.16 of gedit." +msgstr "이 설명서는 gedit 버전 2.16에 대해 설명합니다." + +#: C/gedit.xml:207(title) +msgid "Feedback" +msgstr "피드백" + +#: C/gedit.xml:208(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" +"gedit 또는 이 설명서에 대한 버그를 알려 주시거나 " +"의견을 제시하려면 그놈 피드백 페이지에 있는 대로 해 주십시오." + +#: C/gedit.xml:213(para) +msgid "gedit is the GNOME text editor." +msgstr "gedit는 그놈 텍스트 편집기입니다." + +#: C/gedit.xml:216(primary) +msgid "gedit" +msgstr "gedit" + +#: C/gedit.xml:217(primary) +msgid "text editor" +msgstr "텍스트 편집기" + +#: C/gedit.xml:222(title) +msgid "Introduction" +msgstr "소개" + +#: C/gedit.xml:227(para) +msgid "" +"The gedit application enables you to create and " +"edit text files." +msgstr "" +"gedit 응용 프로그램으로 텍스트 파일을 만들고 편집" +"할 수 있습니다." + +#: C/gedit.xml:229(para) +msgid "" +"The aim of gedit is to be a simple and easy to " +"use text editor. More powerful features can be enabled with different " +"plugins, allowing a variety of tasks related to text-" +"editing." +msgstr "" +"gedit의 목표는 간단하고 사용하기 쉬운 텍스트 편집" +"기입니다. 플러그인을 사용해 더 강력한 기능을 사용할 " +"수 있습니다. 플러그인에 텍스트 편집과 관련된 여러가지 기능이 들어 있습니다." + +#: C/gedit.xml:233(title) +msgid "Getting Started" +msgstr "시작하기" + +#: C/gedit.xml:237(title) +msgid "Starting gedit" +msgstr "gedit 시작하기" + +#: C/gedit.xml:238(para) +msgid "You can start gedit in the following ways:" +msgstr "다음 방법으로 gedit를 시작할 수 있습니다:" + +#: C/gedit.xml:241(term) +msgid "Applications menu" +msgstr "프로그램 메뉴" + +#: C/gedit.xml:243(para) +msgid "" +"Choose AccessoriesText " +"Editor." +msgstr "" +"보조 프로그램텍스트 편집기" +"를 선택하십시오." + +#: C/gedit.xml:247(term) +msgid "Command line" +msgstr "명령행" + +#: C/gedit.xml:249(para) +msgid "Execute the following command: gedit" +msgstr "다음 명령을 실행합니다: gedit" + +#: C/gedit.xml:253(para) +msgid "" +"By default, when you open a text document in the file manager, gedit will " +"start, and display the document." +msgstr "" +"기본값으로, 파일 관리자에서 텍스트 문서를 열면 gedit가 시작하고 그 문서를 표" +"시합니다." + +#: C/gedit.xml:258(title) +msgid "The gedit Window" +msgstr "gedit 창" + +#: C/gedit.xml:259(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "gedit를 시작하면 다음 창이 나타납니다:" + +#: C/gedit.xml:262(title) +msgid "gedit Window" +msgstr "gedit 창" + +#: C/gedit.xml:268(phrase) +msgid "Shows gedit main window." +msgstr "gedit 메인 창을 표시합니다." + +#: C/gedit.xml:274(para) +msgid "" +"The gedit window contains the following elements:" +msgstr "gedit 창에는 다음이 들어 있습니다:" + +#: C/gedit.xml:277(term) +msgid "Menubar" +msgstr "메뉴 모음" + +#: C/gedit.xml:279(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"메뉴 모음의 메뉴에는 gedit에서 파일 작업을 하는 " +"데 필요한 명령이 모두 들어있습니다." + +#: C/gedit.xml:282(term) +msgid "Toolbar" +msgstr "도구 모음" + +#: C/gedit.xml:284(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "" +"도구 모음에는 메뉴 모음에서 접근할 수 있는 명령의 일부가 들어 있습니다." + +#: C/gedit.xml:287(term) +msgid "Display area" +msgstr "표시 영역" + +#: C/gedit.xml:289(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "표시 영역에는 편집하고 있는 파일의 텍스트가 들어있습니다." + +#: C/gedit.xml:292(term) +msgid "Statusbar" +msgstr "상태 표시줄" + +#: C/gedit.xml:294(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items. The " +"statusbar also displays the following information:" +msgstr "" +"상태 표시줄에는 현재 gedit 동작에 대한 정보와 메" +"뉴 항목의 컨텍스트 정보를 표시합니다. 상태 표시줄에는 다음 정보도 표시합니다:" + +#: C/gedit.xml:297(para) +msgid "" +"Cursor position: the line number and column number where the cursor is " +"located." +msgstr "커서 위치: 커서가 있는 곳의 줄 번호와 열 번호." + +#: C/gedit.xml:300(para) +msgid "" +"Edit mode: If the editor is in insert mode, the statusbar contains the text " +"INS. If the editor is in overwrite mode, the statusbar " +"contains the text OVR. Press the Insert key to change edit mode." +msgstr "" +"편집 모드: 편집기가 삽입 모드인 경우, 상태 표시줄에 삽입" +"이라는 글이 들어 있습니다. 덮어쓰기 모드인 경우, 상태 표시줄에 바꿈" +"이라는 글이 들어 있습니다. 편집 모드를 바꾸려면 Insert 키를 누르십시오." + +#: C/gedit.xml:305(term) +msgid "Side Pane" +msgstr "가장자리 창" + +#: C/gedit.xml:307(para) +msgid "" +"The side pane displays a list of open documents, and other information " +"depending on which plugins are enabled." +msgstr "" +"가장자리 창에는 열린 문서의 목록을 표시하고, 또 어떤 플러그인을 사용하느냐에 " +"따라 기타 정보를 표시합니다." + +#: C/gedit.xml:308(para) +msgid "" +"By default the side pane is not shown. To show it, choose " +"ViewSide Pane." +msgstr "" +"기본값으로 가장자리 창은 표시하지 않습니다. 가장자리 창을 보려면, " +"보기가장자리 창을 선택하십시오." + +#: C/gedit.xml:311(term) +msgid "Bottom Pane" +msgstr "아래 창" + +#: C/gedit.xml:313(para) +msgid "" +"The bottom pane is used by programming tools such as the Python " +"Console plugin to display output." +msgstr "아래 창은 파이썬 콘솔 플러그인에서 출력을 표시할 때처럼 프로그래밍 도구에 사용합니다." + +#: C/gedit.xml:314(para) +msgid "" +"By default the bottom pane is not shown. To show it, choose " +"ViewBottom Pane." +msgstr "기본값으로 아래 창은 표시하지 않습니다. 아래 창을 보려면, 보기아래 창을 선택하십시오." + +#: C/gedit.xml:318(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"gedit 창에 마우스 오른쪽 단추를 누르면, 팝업 메뉴" +"를 표시합니다. 이 팝업 메뉴에 자주 사용하는 텍스트 편집 명령이 들어 있습니다." + +#: C/gedit.xml:320(para) +msgid "" +"Like other GNOME applications, actions in gedit " +"can be performed in several ways: with the menu, with the toolbar, or with " +"shortcut keys. Shortcuts keys common to all applications are listed in the " +"User Guide." +msgstr "" +"다른 그놈 프로그램과 마찬가지로, gedit 동작은 여러" +"가지 방법으로 할 수 있습니다. 메뉴로도 할 수 있고, 도구 모음으로도 할 수 있" +"고, 바로 가기 키로도 할 수 있습니다. 모든 응용 프로그램에서 공통으로 사용할 " +"수 있는 바로 가기 키 목록이 사용자 안내서에 있습니다." + +#: C/gedit.xml:325(title) +msgid "Running gedit from a Command Line" +msgstr "명령행에서 gedit 실행하기" + +#: C/gedit.xml:326(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "명령행에서 gedit를 실행해서 파일 한 개 혹은 여러 개를 열 수 있습니다. 명령행에서 여러 개 파일을 열려면, 다음 명령어를 입력하고 Return 키를 누르십시오:" + +#: C/gedit.xml:327(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "file1.txt file2.txt file3.txt" + +#: C/gedit.xml:327(command) +msgid "gedit " +msgstr "gedit " + +#: C/gedit.xml:328(para) +msgid "Alternatively, you can specify a URI instead of a filename." +msgstr "다른 방법으로, 파일 이름 대신에 URI를 지정할 수도 있습니다." + +#: C/gedit.xml:329(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see the unix manual page for gedit, gedit1." +msgstr "" +"명령행에서 gedit 실행하는 방법에 대해 좀 더 알고 " +"싶으시면, geidt의 유닉스 맨 페이지를 (gedit1.) 참고하십시오." + +#: C/gedit.xml:334(title) +msgid "Working with Files" +msgstr "파일 작업하기" + +#: C/gedit.xml:338(title) +msgid "Creating a New Document" +msgstr "새 문서 만들기" + +#: C/gedit.xml:339(para) +msgid "" +"To create a new document, choose FileNew. The application " +"displays a new blank document in the gedit window." +msgstr "" +"새 문서를 만드려면, 파일새로 만들" +"기를 선택하십시오. gedit 창에 비어 있는 새 문서를 표시합니다." + +#: C/gedit.xml:344(title) C/gedit.xml:1674(title) +msgid "Opening a File" +msgstr "파일 열기" + +#: C/gedit.xml:345(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click Open. The file is displayed in the gedit " +"window." +msgstr "" +"파일을 열려면, 파일열기를 선택해 파일 열기 대화 상자" +"를 표시합니다. 열려는 파일을 선택하고 확인을 누르십시" +"오. 해당 파일이 gedit 창에 표시됩니다." + +#: C/gedit.xml:347(phrase) +msgid "Shows Recent Files menu icon." +msgstr "최근 파일 메뉴 아이콘 보기." + +#: C/gedit.xml:347(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the icon on the toolbar to display the list of recent files." +msgstr "" +"응용 프로그램은 가장 최근에 편집한 파일을 5개까지 그 경로와 파일 이름을 기록" +"해 두고 있고, 그 파일을 파일 메뉴" +"의 메뉴 항목으로 표시합니다. 최근 파일 목록을 표시하려면 도구 모음의 " +" 아이콘을 눌러도 됩니다." + +#: C/gedit.xml:349(para) +msgid "" +"You can open multiple files in gedit. The " +"application adds a tab for each open file to the window. For more on this " +"see ." +msgstr "" +"gedit에 여러 개의 파일을 열 수 있습니다. 파일을 하" +"나씩 열 때마다 창에 탭을 하나씩 추가합니다. 좀 더 알고 싶으시면, 부분을 참고하십시오." + +#: C/gedit.xml:355(title) +msgid "Saving a File" +msgstr "파일 저장하기" + +#: C/gedit.xml:356(para) +msgid "You can save files in the following ways:" +msgstr "다음 방법으로 파일을 저장할 수 있습니다:" + +#: C/gedit.xml:358(para) +msgid "" +"To save changes to an existing file, choose FileSave." +msgstr "" +"기존 파일의 바뀐 사항을 저장하려면 파일저장을 선택하십시오." + +#: C/gedit.xml:360(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save As " +"dialog, then click Save." +msgstr "" +"새 파일을 저장하거나 기존 파일을 다른 이름으로 저장하려면 " +"파일다른 이름으로 저장을 선택하십시오. 다른 이름으로 저장 대화 상자에서 파일 이름을 입력하고 확인을 누" +"르십시오." + +#: C/gedit.xml:362(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" +"현재 gedit에 열려 있는 파일을 모두 저장하려면 " +"문서모두 저장을 선택하십시오." + +#: C/gedit.xml:365(para) +msgid "" +"To close all of the files that are currently open in gedit, choose DocumentsClose All." +msgstr "" +"현재 gedit에 열려 있는 파일을 모두 닫으려면, " +"문서모두 닫기를 선택하십시오." + +#: C/gedit.xml:370(title) +msgid "Opening a File from a URI" +msgstr "URI에서 파일 열기" + +#: C/gedit.xml:371(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform the " +"following steps:" +msgstr "" +"URI(Uniform Resource Identifier)에서 파일을 열려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:374(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog." +msgstr "" +"파일위치 열기를 선택해 위치 열기 대화 상자를 표시합니다." + +#: C/gedit.xml:377(para) +msgid "Enter the URI of the file that you want to open." +msgstr "열려는 파일의 URI를 입력하십시오." + +#: C/gedit.xml:380(para) +msgid "" +"Use the Character coding drop-down list to select the " +"appropriate character coding." +msgstr "" +"문자 코딩 드롭다운 목록에서 적당한 문자 코딩을 선택하십" +"시오." + +#: C/gedit.xml:383(para) +msgid "Click Open." +msgstr "열기를 누르십시오." + +#: C/gedit.xml:386(para) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the " +"methods supported by gnome-vfs." +msgstr "" +"올바른 형식의 URIhttp:, " +"ftp:, file:gnome-vfs에서 지원하는 모든 프로토콜을 사용할 수 있습니다." + +#: C/gedit.xml:387(para) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. HTTP only allows files to be " +"read. Files opened from FTP are read-only because because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"어떤 종류의 URI의 경우 파일이 읽기 전용으로 열려서, 파일을 편집하면 다른 위치" +"에 저장해야 합니다. HTTP는 파일 읽기만 가능합니다. 모든 FTP 서버가 원격 파일 " +"저장을 할 수 있는 게 아니기 때문에 FTP로 연 파일도 읽기 전용입니다." + +#: C/gedit.xml:388(para) +msgid "" +"Saving to FTP servers can be enabled with Configuration Editor, " +"setting the key /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes, but this may cause errors." +msgstr "" +"FTP 서버로 저장하는 기능은 설정 편집기로 저장할 수 있게 바꿀 수 있" +"습니다. /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes키를 설정하면 되지만, 이 기능때문에 오류가 " +"발생할 수도 있습니다." + +#: C/gedit.xml:393(title) +msgid "Working With Tabs" +msgstr "탭 작업하기" + +#: C/gedit.xml:395(para) +msgid "" +"When more than one file is open, gedit shows a " +"tab for each document above the display area. To " +"switch to another document, click on its tab." +msgstr "" +"여러 개 파일을 연 경우, gedit의 표시 영역 위에 문" +"서 하나마다 탭을 하나씩 표시합니다. 다른 문서로 이동하려면, 해당하는 탭을 누" +"르십시오." + +#: C/gedit.xml:396(para) +msgid "" +"To move a document to another gedit window, drag " +"the tab corresponding to the file to the window you want to move it to." +msgstr "" +"문서를 다른 gedit 창으로 옮기려면, 그 파일에 해당" +"하는 탭을 옮기려는 창으로 끌어 놓으십시오." + +#: C/gedit.xml:397(para) +msgid "" +"To move a document to a new gedit window, either " +"drag its tab to the desktop, or choose DocumentsMove to New Window." +msgstr "" +"문서를 새 gedit 창으로 옮기려면, 탭을 바탕 화면으" +"로 끌어 놓거나, 문서새 창으로 옮" +"기기를 선택하십시오." + +#: C/gedit.xml:403(title) +msgid "Working with Text" +msgstr "텍스트 작업하기" + +#: C/gedit.xml:407(title) +msgid "Editing Text" +msgstr "텍스트 편집하기" + +#: C/gedit.xml:408(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "다음 방법으로 파일의 텍스트를 편집할 수 있습니다:" + +#: C/gedit.xml:410(para) +msgid "" +"Type new text from the keyboard. The blinking insertion cursor marks the point where new text appears. To change this, use the " +"arrow keys on the keyboard or click with the mouse." +msgstr "" +"키보드로 새 텍스트를 입력하십시오. 깜박이는 삽입 커서" +"가 새 텍스트를 표시할 위치를 가리킵니다. 위치를 바꾸려면 키보드의 화살표 키" +"를 사용하거나 마우스 단추를 누르십시오." + +#: C/gedit.xml:412(para) +msgid "" +"To copy the selected text to the clipboard, choose " +"EditCopy." +msgstr "" +"선택한 텍스트를 클립보드에 복사하려면 편집복사를 선택하십시오." + +#: C/gedit.xml:414(para) +msgid "" +"To delete the selected text from the file and move the selected text to the " +"clipboard, choose EditCut." +msgstr "" +"선택한 텍스트를 파일에서 지우고 그 텍스트를 클립보드로 옮기려면 " +"편집잘라내기를 선택하십시오." + +#: C/gedit.xml:416(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" +"선택한 텍스트를 파일에서 완전히 지우려면 편집지우기를 선택하십시오." + +#: C/gedit.xml:418(para) +msgid "" +"To insert the contents of the clipboard at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file, either from gedit or another application." +msgstr "" +"클리보드의 내용을 커서 위치에 넣으려면 편집붙여 넣기를 선택하십시오. 붙" +"여 넣기 전에, gedit나 다른 응용 프로그램에서 텍스트를 잘라내거나 복사해야 합" +"니다." + +#: C/gedit.xml:420(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" +"파일의 텍스트를 모두 선택하려면, 편집모두 선택을 선택하십시오." + +#: C/gedit.xml:426(title) +msgid "Undoing and Redoing Changes" +msgstr "편집한 내용을 취소하거나 다시 실행하려면" + +#: C/gedit.xml:427(para) +msgid "" +"To undo a change you have made, choose EditUndo. To reverse this " +"action, choose EditRedo." +msgstr "편집한 사항을 실행 취소하려면, 편집실행 취소를 선택하십시오. 이 동작을 되돌리려면, 편집다시 실행을 선택하십시오." + +#: C/gedit.xml:432(title) +msgid "Finding and Replacing" +msgstr "찾기 및 바꾸기" + +#: C/gedit.xml:434(para) +msgid "" +"In gedit, there are two ways of searching for " +"text. You can use the Find dialog to search for a " +"specific piece of text, or Incremental Search to " +"highlight matching text as you type it." +msgstr "" +"gedit에서 텍스트를 찾는 방법은 두 가지가 있습니" +"다. 찾기 대화 창을 사용해 특정 텍스트를 찾아 볼 수 있" +"고, 바로 찾기를 사용해 입력하는 텍스트에 맞는 글자를 강" +"조할 수 있습니다." + +#: C/gedit.xml:439(title) +msgid "Finding Text" +msgstr "텍스트 찾기" + +#: C/gedit.xml:440(para) +msgid "To search a file for a string of text, perform the following steps:" +msgstr "파일에서 텍스트 문자열을 찾으려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:442(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" +"찾기찾기를 선택하십시오. 찾기 대화 상자를 표시합니다." + +#: C/gedit.xml:444(para) +msgid "" +"Type the string that you want to find in the Search for " +"field. You can include special characters such as a new line or tab: see " +"." +msgstr "" +"찾으려는 문자열을 찾을 문자열 입력란에 입력하십시오. 줄" +"바꿈이나 탭 문자같은 특수 문자를 넣을 수도 있습니다. 부분을 참고하십시오." + +#: C/gedit.xml:446(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string after your current cursor position. If " +"gedit finds the string, the application selects " +"first occurrence of the string. Other occurrences of the string are " +"highlighted." +msgstr "" +"찾기를 눌러 파일에서 현재 커서 위치 뒤로 그 스트링이 " +"첫번째로 나오는 위치를 찾습니다. 그 문자열을 찾고, 첫번째로 나오는 문자열을 " +"선택합니다. 그 외에 그 문자열이 있으면 강조합니다." + +#: C/gedit.xml:448(para) +msgid "" +"To find the next occurrence of the string, click Find " +"or choose SearchFind Next. To find the previous occurrence of the text, " +"choose SearchFind Previous." +msgstr "" +"그 다음에 있는 문자열을 찾으려면, 찾기를 누르거나 " +"찾기다음 찾기를 선택하십시오. 그 이전에 있는 문자열을 찾으려면, " +"찾기이전 찾기를 선택하십시오." + +#: C/gedit.xml:451(para) +msgid "" +"After you have closed the Find dialog, you can still " +"move the selection to other occurrences of the text by choosing " +"SearchFind Next and SearchFind " +"Previous." +msgstr "" +"찾기 대화 창을 닫은 다음에도, 찾기" +"다음 찾기 및 " +"찾기이전 찾기를 선택해서 다른 곳에 있는 같은 텍스트를 선택할 수 있습니다." + +#: C/gedit.xml:452(para) +msgid "" +"To remove the highlighting from the text, choose " +"SearchClear Highlight." +msgstr "텍스트의 강조를 지우려면, 찾기강조 지우기를 선택하십시오." + +#: C/gedit.xml:456(title) +msgid "Incremental Search" +msgstr "바로 찾기" + +#: C/gedit.xml:458(para) +msgid "" +"Incremental search highlights matching text in the document as you type it " +"letter by letter. (This is similar to the search feature in several web " +"browsers.)" +msgstr "" +"바로 찾기에서는 한 글자를 입력할 때마다 문서에 그에 해당하는 텍스트를 강조합" +"니다. (이 기능은 몇 가지 웹 브라우저의 찾기 기능과 비슷합니다.)" + +#: C/gedit.xml:459(para) +msgid "" +"To start an incremental search, choose SearchIncremental Search. The " +"search box appears at the top of the display area." +msgstr "" +"바로 찾기를 시작하려면, 찾기바로 " +"찾기를 선택하십시오. 찾기 입력란이 표시 영역 위에 " +"나타납니다." + +#: C/gedit.xml:460(para) +msgid "" +"Begin typing, and text that matches will be highlighted in the document. The " +"first instance after the cursor position is also selected." +msgstr "" +"입력을 시작하십시오. 그러면 문서 안에 해당하는 텍스트를 강조합니다. 또 커서 " +"위치 다음에 처음으로 나오는 텍스트를 선택합니다." + +#: C/gedit.xml:461(para) +msgid "" +"To advance the selection to the next match while keeping the incremental " +"search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +msgstr "바로 찾기 입력란이 열린 상태로, 다음 위치에 있는 텍스트로 선택을 옮기려면, CtrlG 키를 누르십시오. 이전 위치에 있는 텍스트로 돌아가려면 CtrlShiftG 키를 누르십시오." + +#: C/gedit.xml:462(para) +msgid "" +"You can also use the up and down arrow keys or the mouse wheel to move the " +"selection between matches." +msgstr "" +"위 아래 화살표 키를 사용하거나 마우스 휠을 사용해서 일치하는 문자열의 선택을 " +"옮길 수도 있습니다." + +#: C/gedit.xml:467(title) +msgid "Replacing Text" +msgstr "텍스트 바꾸기" + +#: C/gedit.xml:469(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "" +"파일에서 문자열을 찾고 그 문자열을 다른 문자열로 바꾸려면, 다음 순서대로 하십" +"시오:" + +#: C/gedit.xml:471(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"찾기바꾸기를 선택하십시오. 바꾸기 대화 창이 나타납니다." + +#: C/gedit.xml:473(para) +msgid "" +"Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +"tab: see ." +msgstr "" +"찾으려는 문자열을 찾을 문자열 입력란에 입력하십시오. 줄" +"바꿈이나 탭 문자같은 특수 문자를 넣을 수도 있습니다. 부분을 참고하십시오." + +#: C/gedit.xml:474(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "" +"찾은 문자열을 바꿀 문자열을 바꿀 문자열 입력란에 입력하" +"십시오." + +#: C/gedit.xml:478(para) +msgid "" +"To examine each occurrence of the string before replacing it, click " +"Find. If gedit finds the " +"string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +"next occurrence of the string, click Find again." +msgstr "" +"바꾸기 전에 바꿀 문자열을 살펴보려면, 찾기를 누르십시" +"오. 그 문자열을 찾으면, 문자열이 선택됩니다. 바꾸기를 " +"누르면 선택한 문자열을 바꿉니다. 다음에 나오는 문자열을 찾아보려면 " +"찾기를 다시 한번 누르십시오." + +#: C/gedit.xml:479(para) +msgid "" +"To replace all occurrences of the string throughout the document, click " +"Replace All." +msgstr "문서에 있는 그 문자열을 모두 바꾸려면 모두 바꾸기를 누르십시오." + +#: C/gedit.xml:484(title) +msgid "Find and Replace Options" +msgstr "찾기 및 바꾸기 옵션" + +#: C/gedit.xml:485(para) +msgid "" +"The Find dialog and the Replace " +"dialog both have the following options:" +msgstr "" +"찾기 대화 창과 바꾸기 대화 창에는 " +"모두 다음 옵션이 들어 있습니다:" + +#: C/gedit.xml:487(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type. For example, " +"with Match case selected, \"TEXT\" will not match \"text" +"\"." +msgstr "" +"대소문자 일치 옵션을 선택하면 입력하는 텍스트의 대소문자" +"가 일치하는 문자열만 찾습니다. 예를 들어 대소문자 일치" +"를 선택하면, 대문자 \"TEXT\"는 소문자 \"text\"를 찾지 않습니다." + +#: C/gedit.xml:489(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type. For example, with Match entire word only " +"selected, \"text\" will not match \"texture\"." +msgstr "" +"전체가 맞는 단어만 옵션을 사용하면 입력한 텍스트와 전체 " +"단어가 맞는 문자열만 찾습니다. 예를 들어 전체가 맞는 단어만 옵션을 선택하면, \"text\"는 \"texture\"를 찾지 않습니다." + +#: C/gedit.xml:491(para) +msgid "" +"Select the Search backwards option to search backwards " +"towards the beginning of the document." +msgstr "" +"뒤로 찾기 옵션을 선택하면 뒤 방향으로 문서의 처음까지 찾" +"습니다." + +#: C/gedit.xml:493(para) +msgid "" +"Select the Wrap around option to search to one end of " +"the document and then continue the search from the other end of the file." +msgstr "" +"끝까지 가면 처음부터 옵션을 선택하면 문서의 끝까지 찾았" +"을 때 다시 파일의 반대쪽 끝에서부터 찾기를 계속합니다." + +#: C/gedit.xml:500(title) +msgid "Special Characters" +msgstr "특수 문자" + +#: C/gedit.xml:501(para) +msgid "" +"You can include the following escape sequences in the text to find or " +"replace to represent special characters:" +msgstr "" +"찾기나 바꾸기를 할 때 다음 이스케이프 시퀀스를 이용해 특수 문자를 입력할 수 " +"있습니다:" + +#: C/gedit.xml:504(literal) +msgid "\\n" +msgstr "\\n" + +#: C/gedit.xml:506(para) +msgid "Specifies a new line." +msgstr "줄바꿈을 나타냅니다." + +#: C/gedit.xml:510(literal) +msgid "\\t" +msgstr "\\t" + +#: C/gedit.xml:512(para) +msgid "Specifies a tab character." +msgstr "탭 문자를 나타냅니다." + +#: C/gedit.xml:516(literal) +msgid "\\r" +msgstr "\\r" + +#: C/gedit.xml:518(para) +msgid "Specifies a carriage return." +msgstr "캐리지 리턴을 나타냅니다." + +#: C/gedit.xml:526(title) +msgid "Positioning the Cursor on a Specific Line" +msgstr "커서를 특정 줄로 옮기기" + +#: C/gedit.xml:528(para) +msgid "" +"To position the cursor on a specific line in the current file, choose " +"SearchGo to Line. The line number box appears at the top of the display area." +msgstr "현재 파일의 특정 줄로 커서를 옮기려면, 찾기줄로 이동을 선택하십시오. 줄 번호 입력 창이 표시 영역 위에 나타납니다." + +#: C/gedit.xml:529(para) +msgid "" +"Begin typing the number of the line that you want to move the cursor to and " +"the document will scroll to the specified line." +msgstr "커서를 옮기려는 줄 번호를 입력하면 문서를 지정한 줄로 스크롤합니다." + +#: C/gedit.xml:530(para) +msgid "" +"To dismiss the box and move the cursor to the specified line, press " +"Return." +msgstr "대화 상자를 닫고 커서를 지정한 줄로 옮기려면, Return 키를 누르십시오." + +#: C/gedit.xml:536(title) +msgid "Printing" +msgstr "인쇄하기" + +#: C/gedit.xml:540(title) +msgid "Setting the Page Options" +msgstr "페이지 옵션 설정하기" + +#: C/gedit.xml:542(para) +msgid "" +"To set the page options, choose FilePage Setup to display the " +"Page Setup dialog." +msgstr "" +"페이지 옵션을 설정하려면, 파일페" +"이지 설정을 선택하십시오. 페이지 설정 대화 창이 나타납니다." + +#: C/gedit.xml:544(para) +msgid "" +"The Page Setup dialog enables you to specify the " +"following print options:" +msgstr "" +"페이지 설정 대화 창에서 다음 인쇄 옵션을 지정할 수 있습" +"니다:" + +#: C/gedit.xml:547(title) +msgid "General Tabbed Section" +msgstr "일반 탭 섹션" + +#: C/gedit.xml:549(guilabel) +msgid "Print syntax highlighting" +msgstr "구문 강조 인쇄" + +#: C/gedit.xml:551(para) +msgid "" +"Select this option to print syntax highlighting. For more information about " +"syntax highlighting, see ." +msgstr "" +"이 옵션을 선택하면 구문 강조를 인쇄합니다. 구문 강조에 대해 좀 더 알고 싶으시" +"면, 부분을 참고하십시오." + +#: C/gedit.xml:554(guilabel) +msgid "Print page headers" +msgstr "글머리 인쇄" + +#: C/gedit.xml:556(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "" +"이 옵션을 선택하면 인쇄하는 페이지마다 글머리를 붙입니다. 글머리 내용을 설정" +"할 수는 없습니다." + +#: C/gedit.xml:559(guilabel) C/gedit.xml:1162(guilabel) +msgid "Line Numbers" +msgstr "줄 번호" + +#: C/gedit.xml:562(para) +msgid "" +"Select the Print line numbers option to include line " +"numbers when you print a file." +msgstr "" +"줄 번호 인쇄 옵션을 선택하면 파일을 인쇄할 때 줄 번호를 " +"붙입니다." + +#: C/gedit.xml:563(para) +msgid "" +"Use the Number every ... lines spin box to specify how " +"often to print the line numbers, for example every 5 lines, every 10 lines, " +"and so on." +msgstr "" +"다음 줄마다 줄 번호: ... 줄 스핀 상자로 몇 줄마다 줄 번" +"호를 인쇄할 지 지정합니다. 예를 들어 5줄 마다 할 수도 있고, 10줄 마다 할 수" +"도 있고, ... 식으로 할 수 있습니다." + +#: C/gedit.xml:566(guilabel) C/gedit.xml:1155(guilabel) C/gedit.xml:1770(para) +msgid "Text Wrapping" +msgstr "텍스트 줄 바꿈" + +#: C/gedit.xml:568(para) +msgid "" +"Select the Enable text wrapping option to wrap text " +"onto the next line, at a character level, when you print a file. The " +"application counts wrapped lines as one line for line numbering purposes." +msgstr "" +"줄 바꿈 사용 옵션을 선택하면, 파일을 인쇄할 때 긴 줄을 " +"문자 단위로 다음 줄로 바꿉니다. 줄 번호를 지정할 때는 이렇게 넘어가서 바뀐 " +"긴 줄은 한 줄로 취급합니다." + +#: C/gedit.xml:570(para) +msgid "" +"Select the Do not split words over two lines option to " +"wrap text onto the next line, at a word level, when you print a file." +msgstr "" +"단어를 여러 줄로 나누지 않기 옵션을 선택하면, 파일을 인" +"쇄할 때 긴 줄을 단어 단위로 다음 줄로 바꿉니다." + +#: C/gedit.xml:578(title) +msgid "Fonts" +msgstr "글꼴" + +#: C/gedit.xml:580(guilabel) +msgid "Body" +msgstr "본문" + +#: C/gedit.xml:582(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "파일의 본문을 인쇄할 때 사용할 글꼴을 지정하려면 이 단추를 누르십시오." + +#: C/gedit.xml:585(guilabel) +msgid "Line numbers" +msgstr "줄 번호" + +#: C/gedit.xml:588(para) +msgid "Click on this button to select the font to use to print line numbers." +msgstr "줄 번호를 인쇄할 때 사용할 글꼴을 지정하려면 이 단추를 누르십시오." + +#: C/gedit.xml:591(guilabel) +msgid "Headers and footers" +msgstr "글머리 및 글꼬리" + +#: C/gedit.xml:593(para) +msgid "" +"Click on this button to select the font to use to print the headers and " +"footers in a file." +msgstr "" +"파일의 글머리 및 글꼬리를 인쇄할 때 사용할 글꼴을 지정하려면 이 단추를 누르십" +"시오." + +#: C/gedit.xml:597(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit, click Restore Default Fonts." +msgstr "" +"파일 인쇄할 때 사용할 글꼴을 기본값 글꼴로 리셋하려면, 기본 글꼴" +"로 되돌리기를 누르십시오." + +#: C/gedit.xml:604(title) +msgid "Printing a Document" +msgstr "문서 인쇄하기" + +#: C/gedit.xml:605(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "" +"gedit을 사용해 다음 인쇄 작업을 할 수 있습니다:" + +#: C/gedit.xml:607(para) +msgid "Print a document to a printer." +msgstr "문서를 프린터로 인쇄합니다." + +#: C/gedit.xml:609(para) +msgid "Print the output of the print command to a file." +msgstr "인쇄 명령의 결과를 파일로 인쇄합니다." + +#: C/gedit.xml:612(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" +"파일로 인쇄하는 경우 파일의 출력물을 인쇄용 파일 형식의 파일로 만듭니다. 가" +"장 일반적인 인쇄용 파일 형식은 PostScript와 PDF(Portable Document Format)입" +"니다." + +#: C/gedit.xml:614(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" +"인쇄하려는 페이지를 미리 보려면 파일인쇄 미리 보기를 선택하십시" +"오." + +#: C/gedit.xml:616(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" +"현재 파일을 프린터나 파일로 인쇄하려면 파일인쇄를 선택하십시오. " +"인쇄 대화 상자가 나타납니다." + +#: C/gedit.xml:618(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "" +"인쇄 대화 상자에서 다음 인쇄 옵션을 지정할 수 있습니다:" + +#: C/gedit.xml:621(title) +msgid "Job Tabbed Section" +msgstr "작업 탭 섹션" + +#: C/gedit.xml:623(guilabel) +msgid "Print range" +msgstr "인쇄 범위" + +#: C/gedit.xml:625(para) +msgid "" +"Select one of the following options to determine how many pages to print:" +msgstr "다음 옵션 중 하나로 인쇄할 페이지 수를 지정합니다:" + +#: C/gedit.xml:628(guilabel) +msgid "All" +msgstr "모두" + +#: C/gedit.xml:629(para) +msgid "Select this option to print all of the pages in the file." +msgstr "파일의 모든 페이지를 인쇄하려면 이 옵션을 선택하십시오." + +#: C/gedit.xml:632(guilabel) +msgid "Lines" +msgstr "줄" + +#: C/gedit.xml:633(para) +msgid "" +"Select this option to print the specified lines only. Use the " +"From and To spin boxes to specify " +"the line range." +msgstr "" +"지정한 줄만 인쇄하려면 이 옵션을 선택하십시오. 시작과 " +" 스핀 상자에서 줄 범위를 지정하십시오." + +#: C/gedit.xml:636(guilabel) +msgid "Selection" +msgstr "선택" + +#: C/gedit.xml:637(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" +"선택된 텍스트만 인쇄하려면 이 옵션을 선택하십시오. 이 옵션은 선택한 텍스트가 " +"있는 경우에만 사용할 수 있습니다." + +#: C/gedit.xml:643(guilabel) +msgid "Copies" +msgstr "매수" + +#: C/gedit.xml:645(para) +msgid "" +"Use the Number of copies spin box to specify the number " +"of copies of the file that you want to print." +msgstr "" +"인쇄 매수 스핀 상자를 사용해 파일을 몇 매 인쇄할 지 지정" +"합니다." + +#: C/gedit.xml:646(para) +msgid "" +"If you print multiple copies of the file, select the Collate option to collate the printed copies." +msgstr "" +"파일을 여러 매 인쇄하는 경우, 순서 맞추기 옵션으로 인쇄" +"물의 순서를 맞출 수 있습니다." + +#: C/gedit.xml:653(title) +msgid "Printer Tabbed Section" +msgstr "프린터 탭 섹션" + +#: C/gedit.xml:655(guilabel) +msgid "Printer" +msgstr "프린터" + +#: C/gedit.xml:657(para) +msgid "" +"Use this drop-down list to select the printer to which you want to print the " +"file." +msgstr "이 드롭다운 목록에서 파일을 어떤 프린터로 인쇄할 지 선택하십시오." + +#: C/gedit.xml:660(guilabel) +msgid "Settings" +msgstr "설정" + +#: C/gedit.xml:662(para) +msgid "Use this drop-down list to select the printer settings." +msgstr "이 드롭다운 목록에서 프린터 설정을 지정하십시오." + +#: C/gedit.xml:664(para) +msgid "" +"To configure the printer, click Configure. For " +"example, you can enable or disable duplex printing, or schedule delayed " +"printing, if this functionality is supported by the printer." +msgstr "" +"프린터를 설정하려면, 설정을 누르십시오. 예를 들어 프린" +"터가 지원하는 기능에 따라서 양면 인쇄 사용 여부를 설정할 수도 있고, 일정 시" +"간 뒤에 인쇄를 할 수도 있습니다." + +#: C/gedit.xml:668(guilabel) +msgid "Location" +msgstr "위치" + +#: C/gedit.xml:670(para) +msgid "" +"Use this drop-down list to select one of the following print destinations:" +msgstr "이 드롭다운 목록에서 다음 인쇄 대상 중의 하나를 선택하십시오:" + +#: C/gedit.xml:675(guilabel) +msgid "CUPS" +msgstr "CUPS" + +#: C/gedit.xml:677(para) +msgid "Print the file to a CUPS printer." +msgstr "파일을 CUPS 프린터로 인쇄합니다." + +#: C/gedit.xml:681(para) +msgid "" +"If the selected printer is a CUPS printer, CUPS is the " +"only entry in this drop-down list." +msgstr "" +"선택한 프린터가 CUPS 프린터인 경우, 이 드롭다운 목록에는 CUPS만 들어 있습니다." + +#: C/gedit.xml:688(guilabel) +msgid "lpr" +msgstr "lpr" + +#: C/gedit.xml:690(para) +msgid "Print the file to a printer." +msgstr "파일을 프린터로 인쇄합니다." + +#: C/gedit.xml:696(guilabel) +msgid "File" +msgstr "파일" + +#: C/gedit.xml:698(para) +msgid "Print the file to a PostScript file." +msgstr "파일을 PostScript 파일로 인쇄합니다." + +#: C/gedit.xml:701(para) +msgid "" +"Click Save As to display a dialog where you specify " +"the name and location of the PostScript file." +msgstr "" +"다른 이름으로 저장을 누르면 PostScript 파일의 경로와 " +"이름을 지정하는 대화 창이 나타납니다." + +#: C/gedit.xml:707(guilabel) +msgid "Custom" +msgstr "사용자 지정" + +#: C/gedit.xml:709(para) +msgid "Use the specified command to print the file." +msgstr "지정한 명령어를 이용해 파일을 인쇄합니다." + +#: C/gedit.xml:712(para) +msgid "" +"Type the name of the command in the text box. Include all command-line " +"arguments." +msgstr "" +"텍스트 입력란에서 명령어의 이름을 입력하십시오. 명령행 인자를 모두 입력하십시" +"오." + +#: C/gedit.xml:720(guilabel) +msgid "State" +msgstr "상태" + +#: C/gedit.xml:722(para) C/gedit.xml:728(para) C/gedit.xml:734(para) +msgid "This functionality is not supported in this version of gedit." +msgstr "이 기능은 이 버전의 gedit가 지원하지 않습니다." + +#: C/gedit.xml:726(guilabel) +msgid "Type" +msgstr "형식" + +#: C/gedit.xml:732(guilabel) +msgid "Comment" +msgstr "설명" + +#: C/gedit.xml:742(title) +msgid "Paper Tabbed Section" +msgstr "용지 탭 섹션" + +#: C/gedit.xml:744(guilabel) +msgid "Paper size" +msgstr "용지 크기" + +#: C/gedit.xml:746(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "이 드롭다운 목록을 사용해 파일을 인쇄할 용지의 크기를 선택하십시오." + +#: C/gedit.xml:749(guilabel) +msgid "Width" +msgstr "너비" + +#: C/gedit.xml:751(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit." +msgstr "" +"이 스핀 상자를 사용해 용지 너비를 지정하십시오. 옆에 있는 드롭다운 목록으로 " +"크기의 단위를 바꿀 수 있습니다." + +#: C/gedit.xml:754(guilabel) +msgid "Height" +msgstr "높이" + +#: C/gedit.xml:756(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "이 스핀 상자를 사용해 용지의 높이를 지정하십시오." + +#: C/gedit.xml:759(guilabel) +msgid "Feed orientation" +msgstr "용지 보급 방향" + +#: C/gedit.xml:761(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "이 드롭다운 목록을 사용해 프린터의 용지 방향을 선택합니다." + +#: C/gedit.xml:764(guilabel) +msgid "Page orientation" +msgstr "페이지 방향" + +#: C/gedit.xml:766(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "이 드롭다운 목록을 사용해 페이지 방향을 선택하십시오." + +#: C/gedit.xml:769(guilabel) +msgid "Layout" +msgstr "배치" + +#: C/gedit.xml:771(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" +"이 드롭다운 목록을 사용해 페이지 레이아웃을 선택하십시오. 선택한 각 레이아웃" +"의 미리 보기를 미리 보기 영역에 표시합니다." + +#: C/gedit.xml:774(guilabel) +msgid "Paper tray" +msgstr "용지 트레이" + +#: C/gedit.xml:776(para) +msgid "Use this drop-down list to select the paper tray." +msgstr "이 드롭다운 목록을 사용해 용지 트레이를 선택하십시오." + +#: C/gedit.xml:787(title) +msgid "Programming Features" +msgstr "프로그래밍 기능" + +#: C/gedit.xml:789(para) +msgid "" +"Several of gedit's features for programming are " +"provided with plugins. For example, the Tag List plugin provides a list of " +"commonly-used tags for different markup languages: see ." +msgstr "" +"gedit의 프로그래밍을 위한 몇 가지 기능이 플러그인" +"에 들어 있습니다. 예를 들어 태그 목록 플러그인에는 여러가지 마크업 언어에서 " +"많이 사용하는 태그 목록이 들어 있습니다. 부분을 참고하십시오." + +#: C/gedit.xml:793(title) +msgid "Syntax Highlighting" +msgstr "구문 강조" + +#: C/gedit.xml:794(para) +msgid "" +"Syntax highlighting makes source code easier to read by showing different " +"parts of the text in different colors." +msgstr "" +"구문 강조를 사용하면 텍스트를 각 부분마다 다른 색으로 표시해서 소스 코드를 읽" +"기 쉽게 만듭니다." + +#: C/gedit.xml:796(para) +msgid "" +"gedit chooses an appropriate syntax highlighting " +"mode based on a document's type. To override the syntax highlighting mode, " +"choose ViewHighlight Mode, then choose one of the following menu items:" +msgstr "" +"문서의 형식에 따라 거기에 맞는 구문 강조 모드를 자동으로 선택합니다. 구문 강" +"조 모드를 강제로 바꾸려면, 보기강" +"조 모드를 선택해, 다음 메뉴 항목 중의 하나를 고르" +"십시오:" + +# FIXME: "None" in the program +#: C/gedit.xml:799(guimenuitem) +msgid "Normal" +msgstr "보통" + +#: C/gedit.xml:801(para) +msgid "Do not display any syntax highlighting." +msgstr "구문 강조를 표시하지 않습니다." + +#: C/gedit.xml:805(guisubmenu) +msgid "Sources" +msgstr "소스" + +#: C/gedit.xml:807(para) +msgid "" +"Display syntax highlighting to edit source code. Use the " +"Sources submenu to select the source code type." +msgstr "" +"소스 코드를 편집할 때 구문 강조를 표시합니다. 소스 " +"서브메뉴에서 소스 코드의 종류를 선택하십시오." + +#: C/gedit.xml:811(guisubmenu) +msgid "Markup" +msgstr "마크업" + +#: C/gedit.xml:813(para) +msgid "" +"Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type." +msgstr "" +"마크업 코드를 편집할 때 구문 강조를 표시합니다. 마크업 서브메뉴에서 마크어 코드의 종류를 선택하십시오." + +#: C/gedit.xml:817(guisubmenu) +msgid "Scripts" +msgstr "스크립트" + +#: C/gedit.xml:819(para) +msgid "" +"Display syntax highlighting to edit script code. Use the " +"Scripts submenu to select the script code type." +msgstr "" +"스크립트 코드를 편집할 때 구문 강조를 표시합니다. 스크립트 서브메뉴에서 스크립트 코드의 종류를 선택하십시오." + +#: C/gedit.xml:823(guisubmenu) +msgid "Others" +msgstr "기타" + +#: C/gedit.xml:825(para) +msgid "" +"Display syntax highlighting to edit other types of code. Use the " +"Others submenu to select the code type." +msgstr "" +"기타 형식의 코드를 편집할 때 구문 강조를 표시합니다. 기타 서브메뉴에서 기타 코드의 종류를 선택하십시오." + +#: C/gedit.xml:829(para) +msgid "" +"For more information about how to configure syntax highlighting, see ." +msgstr "" +"구문 분석을 설정하는 방법에 대해 좀 더 알고 싶으시면, 부분을 참고하십시오." + +#: C/gedit.xml:835(title) +msgid "Piping the Output of a Command to a File" +msgstr "명령어 출력을 파일로 돌려 넣기" + +#: C/gedit.xml:836(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "gedit를 사용해 어떤 명령어의 출력을 텍스트 파일로 돌려 넣을 수 있습니다. 예를 들어 ls 명령의 출력을 텍스트 파일로 돌려 넣으려면, ls | gedit라고 입력하고 Return 키를 누르십시오." + +#: C/gedit.xml:837(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" +"gedit 창에서 ls 명령의 출력을 " +"새 텍스트 파일로 표시합니다." + +#: C/gedit.xml:838(para) +msgid "" +"Alternatively, you can use the External tools " +"plugin to pipe command output to the current file." +msgstr "" +"다른 방법으로, 외부 도구 플러그인을 사용해 명령어 " +"출력을 현재 파일로 돌려 넣을 수 있습니다." + +#: C/gedit.xml:844(title) +msgid "Shortcut Keys" +msgstr "바로 가기 키" + +#: C/gedit.xml:845(para) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the mouse " +"and menus. The following tables list all of gedit's shortcut keys." +msgstr "" +"바로 가기 키를 사용하면 마우스나 메뉴보다 더 빠르게 많이 사용하는 작업을 할 " +"수 있습니다. 다음 표에 gedit의 모든 바로 가기 키" +"의 목록이 있습니다." + +#: C/gedit.xml:846(para) +msgid "" +"For more on shortcut keys, see the Desktop User Guide." +msgstr "" +"바로 가기 키에 대해 좀 더 알고 싶으시면, 데스크탑 사용자 안내서를 참고하십시오." + +#. ============= Tabs ======================== +#: C/gedit.xml:849(bridgehead) C/gedit.xml:1193(guilabel) +msgid "Tabs" +msgstr "탭" + +#: C/gedit.xml:850(para) +msgid "Shortcuts for tabs:" +msgstr "탭 관련 바로 가기:" + +#: C/gedit.xml:858(para) C/gedit.xml:902(para) C/gedit.xml:958(para) +#: C/gedit.xml:1002(para) C/gedit.xml:1030(para) C/gedit.xml:1077(para) +#: C/gedit.xml:1120(para) +msgid "Shortcut Key" +msgstr "바로 가기 키" + +#: C/gedit.xml:860(para) C/gedit.xml:904(para) C/gedit.xml:960(para) +#: C/gedit.xml:1004(para) C/gedit.xml:1032(para) C/gedit.xml:1079(para) +#: C/gedit.xml:1122(para) +msgid "Command" +msgstr "명령" + +#: C/gedit.xml:865(para) C/gedit.xml:869(para) +msgid "Ctrl + Alt + PageDown" +msgstr "Ctrl + Alt + PageDown" + +#: C/gedit.xml:866(para) +msgid "Switches to the next tab to the left." +msgstr "왼쪽 옆에 있는 탭으로 이동합니다." + +#: C/gedit.xml:870(para) +msgid "Switches to the next tab to the right." +msgstr "오른쪽 옆에 있는 탭으로 이동합니다." + +#: C/gedit.xml:873(para) C/gedit.xml:937(para) +msgid "Ctrl + W" +msgstr "Ctrl + W" + +#: C/gedit.xml:874(para) +msgid "Close tab." +msgstr "탭을 닫습니다." + +#: C/gedit.xml:877(para) +msgid "Ctrl + Shift + L" +msgstr "Ctrl + Shift + L" + +#: C/gedit.xml:878(para) +msgid "Save all tabs." +msgstr "모든 탭을 저장합니다." + +#: C/gedit.xml:881(para) +msgid "Ctrl + Shift + W" +msgstr "Ctrl + Shift + W" + +#: C/gedit.xml:882(para) +msgid "Close all tabs." +msgstr "모든 탭을 닫습니다." + +#: C/gedit.xml:885(para) +msgid "Alt + n" +msgstr "Alt + n" + +#: C/gedit.xml:886(para) +msgid "Jump to nth tab." +msgstr "n번째 탭으로 이동합니다." + +#. ============= Files ======================== +#: C/gedit.xml:893(bridgehead) +msgid "Files" +msgstr "파일" + +#: C/gedit.xml:894(para) +msgid "Shortcuts for working with files:" +msgstr "파일 작업 관련 바로 가기:" + +#: C/gedit.xml:909(para) +msgid "Ctrl + N" +msgstr "Ctrl + N" + +#: C/gedit.xml:910(para) +msgid "Create a new document." +msgstr "새 문서를 만듭니다." + +#: C/gedit.xml:913(para) +msgid "Ctrl + O" +msgstr "Ctrl + O" + +#: C/gedit.xml:914(para) +msgid "Open a document." +msgstr "문서를 엽니다." + +#: C/gedit.xml:917(para) +msgid "Ctrl + L" +msgstr "Ctrl + L" + +#: C/gedit.xml:918(para) +msgid "Open a location." +msgstr "위치를 엽니다." + +#: C/gedit.xml:921(para) +msgid "Ctrl + S" +msgstr "Ctrl + S" + +#: C/gedit.xml:922(para) +msgid "Save the current document to disk." +msgstr "현재 문서를 디스크에 저장합니다." + +#: C/gedit.xml:925(para) +msgid "Ctrl + Shift + S" +msgstr "Ctrl + Shift + S" + +#: C/gedit.xml:926(para) +msgid "Save the current document with a new filename." +msgstr "현재 문서를 다른 파일 이름으로 저장합니다." + +#: C/gedit.xml:929(para) +msgid "Ctrl + P" +msgstr "Ctrl + P" + +#: C/gedit.xml:930(para) +msgid "Print the current document." +msgstr "현재 문서를 인쇄합니다." + +#: C/gedit.xml:933(para) +msgid "Ctrl + Shift + P" +msgstr "Ctrl + Shift + P" + +#: C/gedit.xml:934(para) +msgid "Print preview." +msgstr "인쇄 미리 보기." + +#: C/gedit.xml:938(para) +msgid "Close the current document." +msgstr "현재 문서를 닫습니다." + +#: C/gedit.xml:941(para) +msgid "Ctrl + Q" +msgstr "Ctrl + Q" + +#: C/gedit.xml:942(para) +msgid "Quit Gedit." +msgstr "gedit를 끝냅니다." + +#. ============= Edit ======================= +#: C/gedit.xml:949(bridgehead) C/gedit.xml:1491(guimenu) +#: C/gedit.xml:1497(guimenu) C/gedit.xml:1503(guimenu) +#: C/gedit.xml:1509(guimenu) +msgid "Edit" +msgstr "편집" + +#: C/gedit.xml:950(para) +msgid "Shortcuts for editing documents:" +msgstr "문서 편집 관련 바로 가기:" + +#: C/gedit.xml:965(para) +msgid "Ctrl + Z" +msgstr "Ctrl + Z" + +#: C/gedit.xml:966(para) +msgid "Undo the last action." +msgstr "마지막 동작을 취소합니다." + +#: C/gedit.xml:969(para) +msgid "Ctrl + Shift + Z" +msgstr "Ctrl + Shift + Z" + +#: C/gedit.xml:970(para) +msgid "Redo the last undone action ." +msgstr "마지막 취소한 동작을 다시 실행합니다." + +#: C/gedit.xml:973(para) +msgid "Ctrl + X" +msgstr "Ctrl + X" + +#: C/gedit.xml:974(para) +msgid "Cut the selected text or region and place it on the clipboard." +msgstr "선택한 텍스트를 잘라 클립보드에 넣습니다." + +#: C/gedit.xml:977(para) +msgid "Ctrl + C" +msgstr "Ctrl + C" + +#: C/gedit.xml:978(para) +msgid "Copy the selected text or region onto the clipboard." +msgstr "선택한 텍스트를 복사해 클립보드에 넣습니다." + +#: C/gedit.xml:981(para) +msgid "Ctrl + V" +msgstr "Ctrl + V" + +#: C/gedit.xml:982(para) +msgid "Paste the contents of the clipboard." +msgstr "클립보드의 내용을 붙여 넣습니다." + +#: C/gedit.xml:985(para) +msgid "Ctrl + A" +msgstr "Ctrl + A" + +#: C/gedit.xml:986(para) +msgid "Select all." +msgstr "모두 선택합니다." + +#. ============= Panes ======================= +#: C/gedit.xml:993(bridgehead) +msgid "Panes" +msgstr "창 부분" + +#: C/gedit.xml:994(para) +msgid "Shortcuts for showing and hiding panes:" +msgstr "창 부분을 보이고 감추는 바로 가기:" + +#: C/gedit.xml:1009(para) +msgid "F9" +msgstr "F9" + +#: C/gedit.xml:1010(para) +msgid "Show/hide the side pane." +msgstr "가장자리 창을 보이고 감춥니다." + +#: C/gedit.xml:1013(para) +msgid "Ctrl + F9" +msgstr "Ctrl + F9" + +#: C/gedit.xml:1014(para) +msgid "Show/hide the bottom pane." +msgstr "아래 창을 보이고 감춥니다." + +#. ============= Search ======================= +#: C/gedit.xml:1021(bridgehead) +msgid "Search" +msgstr "찾기" + +#: C/gedit.xml:1022(para) +msgid "Shortcuts for searching:" +msgstr "찾기 관련 바로 가기:" + +#: C/gedit.xml:1037(para) +msgid "Ctrl + F" +msgstr "Ctrl + F" + +#: C/gedit.xml:1038(para) +msgid "Find a string." +msgstr "문자열을 찾습니다." + +#: C/gedit.xml:1041(para) +msgid "Ctrl + G" +msgstr "Ctrl + G" + +#: C/gedit.xml:1042(para) +msgid "Find the next instance of the string." +msgstr "다음에 나오는 그 문자열을 찾습니다." + +#: C/gedit.xml:1045(para) +msgid "Ctrl + Shift + G" +msgstr "Ctrl + Shift + G" + +#: C/gedit.xml:1046(para) +msgid "Find the previous instance of the string." +msgstr "이전에 나오는 그 문자열을 찾습니다." + +#: C/gedit.xml:1049(para) +msgid "Ctrl + K" +msgstr "Ctrl + K" + +#: C/gedit.xml:1050(para) +msgid "Interactive search." +msgstr "바로 찾기." + +#: C/gedit.xml:1053(para) +msgid "Ctrl + H" +msgstr "Ctrl + H" + +#: C/gedit.xml:1054(para) +msgid "Search and replace." +msgstr "찾기 및 바꾸기." + +#: C/gedit.xml:1057(para) +msgid "Ctrl + Shift + K" +msgstr "Ctrl + Shift + K" + +#: C/gedit.xml:1058(para) +msgid "Clear highlight." +msgstr "강조를 지웁니다." + +#: C/gedit.xml:1061(para) +msgid "Ctrl + I" +msgstr "Ctrl + I" + +#: C/gedit.xml:1062(para) +msgid "Goto line." +msgstr "줄로 이동합니다." + +#. ============= Tools ======================= +#: C/gedit.xml:1068(bridgehead) +msgid "Tools" +msgstr "도구" + +#: C/gedit.xml:1069(para) +msgid "Shortcuts for tools:" +msgstr "도구에 사용하는 바로 가기:" + +#: C/gedit.xml:1084(para) +msgid "Shift + F7" +msgstr "Shift + F7" + +#: C/gedit.xml:1085(para) +msgid "Check spelling (with plugin)." +msgstr "맞춤법을 검사합니다. (플러그인 사용)" + +#: C/gedit.xml:1088(para) +msgid "Alt + F12" +msgstr "Alt + F12" + +#: C/gedit.xml:1089(para) +msgid "Remove trailing spaces (with plugin)." +msgstr "뒤에 붙은 공백을 지웁니다. (플러그인 사용)" + +#: C/gedit.xml:1092(para) +msgid "Ctrl + T" +msgstr "Ctrl + T" + +#: C/gedit.xml:1093(para) +msgid "Indent (with plugin)." +msgstr "들여 씁니다. (플러그인 사용)" + +#: C/gedit.xml:1096(para) +msgid "Ctrl + Shift + T" +msgstr "Ctrl + Shift + T" + +#: C/gedit.xml:1097(para) +msgid "Remove Indent (with plugin)." +msgstr "들여 쓰기를 지웁니다. (플러그인 사용)" + +#: C/gedit.xml:1100(para) +msgid "F8" +msgstr "F8" + +#: C/gedit.xml:1101(para) +msgid "Run \"make\" in current directory (with plugin)." +msgstr "현재 디렉토리에서 \"make\"를 실행합니다. (플러그인 사용)" + +#: C/gedit.xml:1104(para) +msgid "Ctrl + Shift + D" +msgstr "Ctrl + Shift + D" + +#: C/gedit.xml:1105(para) +msgid "Directory listing (with plugin)." +msgstr "디렉토리 내용을 봅니다. (플러그인 사용)" + +#. ============= Help ======================= +#: C/gedit.xml:1111(bridgehead) +msgid "Help" +msgstr "도움말" + +#: C/gedit.xml:1112(para) +msgid "Shortcuts for help:" +msgstr "도움말에 사용하는 바로 가기:" + +#: C/gedit.xml:1127(para) +msgid "F1" +msgstr "F1" + +#: C/gedit.xml:1128(para) +msgid "Open gedit's user manual." +msgstr "gedit 사용자 설명서를 엽니다." + +#: C/gedit.xml:1140(title) +msgid "Preferences" +msgstr "기본 설정" + +#: C/gedit.xml:1142(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" +"gedit를 설정하려면 편집기본 설정을 선택하십시오. " +"기본 설정 대화 상자에는 다음 분류가 들어 있습니다:" + +#: C/gedit.xml:1152(title) +msgid "View Preferences" +msgstr "보기 미리 설정" + +#: C/gedit.xml:1157(para) +msgid "" +"Select the Enable text wrapping option to have long " +"lines of text flow into paragraphs instead of running off the edge of the " +"text window. This avoids having to scroll horizontally" +msgstr "" +"줄 바꿈 사용 옵션을 선택하면 긴 줄을 여러 한 문단으로 취" +"급하고, 텍스트 창의 끝을 벗어나지 않도록 만듭니다. 이 기능을 사용하면 가로 방" +"향으로 스크롤할 필요가 없어집니다." + +#: C/gedit.xml:1158(para) +msgid "" +"Select the Do not split words over two lines option to " +"have the text wrapping option preserve whole words when flowing text to the " +"next line. This makes text easier to read." +msgstr "" +"단어를 여러 줄로 나누지 않기 옵션을 선택하면 텍스트가 다" +"음 줄로 넘어갈 때 단어 중간에서 줄을 바꾸지 않게 만듭니다. 이 기능을 사용하" +"면 글을 읽기가 쉬워집니다." + +#: C/gedit.xml:1164(para) +msgid "" +"Select the Display line numbers option to display line " +"numbers on the left side of the gedit window." +msgstr "" +"줄 번호 표시 옵션을 선택하면 gedit 창의 왼 쪽에 줄 번호를 표시합니다." + +#: C/gedit.xml:1168(guilabel) +msgid "Current Line" +msgstr "현재 줄" + +#: C/gedit.xml:1170(para) +msgid "" +"Select the Highlight current line option to highlight " +"the line where the cursor is placed." +msgstr "현재 줄 강조 옵션을 선택하면 커서가 있는 줄을 강조합니다." + +#: C/gedit.xml:1174(guilabel) +msgid "Right Margin" +msgstr "오른쪽 여백" + +#: C/gedit.xml:1176(para) +msgid "" +"Select the Display right margin option to display a " +"vertical line that indicates the right margin." +msgstr "" +"오른쪽 여백 표시 옵션을 선택하면 오른쪽 여백을 나타내는 " +"수직선을 표시합니다." + +#: C/gedit.xml:1177(para) +msgid "" +"Use the Right margin at column spin box to specify the " +"location of the vertical line." +msgstr "" +"다음 열에 오른쪽 여백 스핀 상자에서 수직선의 위치를 지정" +"하십시오." + +#: C/gedit.xml:1181(guilabel) +msgid "Bracket Matching" +msgstr "일치하는 괄호" + +#: C/gedit.xml:1183(para) +msgid "" +"Select the Highlight matching bracket option to " +"highlight the corresponding bracket when the cursor is positioned on a " +"bracket character." +msgstr "일치하는 괄호 강조 옵션을 사용하면 커서가 괄호 문자 위에 있을 때 그 괄호와 대응하는 괄호를 강조합니다." + +#: C/gedit.xml:1191(title) +msgid "Editor Preferences" +msgstr "편집기 기본 설정" + +#: C/gedit.xml:1195(para) +msgid "" +"Use the Tab width spin box to specify the width of the " +"space that gedit inserts when you press the " +"Tab key." +msgstr "" +"탭 너비 스핀 상자를 사용해 Tab 키를 누" +"를 때 넣을 공백의 너비를 지정하십시오." + +#: C/gedit.xml:1196(para) +msgid "" +"Select the Insert spaces instead of tabs option to " +"specify that gedit inserts spaces instead of a " +"tab character when you press the Tab key." +msgstr "" +"탭 대신 공백 넣기 옵션을 사용해 Tab 키" +"를 눌렀을 때 탭 문자가 아니라 여러 개의 공백을 넣도록 지정합니다." + +#: C/gedit.xml:1199(guilabel) +msgid "Auto Indentation" +msgstr "자동 들여쓰기" + +#: C/gedit.xml:1200(para) +msgid "" +"Select the Enable auto indentation option to specify " +"that the next line starts at the indentation level of the current line." +msgstr "" +"자동 들여 쓰기 사용 옵션을 선택해 다음 줄이 현재 줄의 들" +"여 쓰기 위치에서 시작하도록 만듭니다." + +#: C/gedit.xml:1203(guilabel) +msgid "File Saving" +msgstr "저장 저장" + +#: C/gedit.xml:1205(para) +msgid "" +"Select the Create a backup copy of files before saving " +"option to create a backup copy of a file each time you save the file. The " +"backup copy of the file contains a ~ at the end of the filename." +msgstr "" +"저장하기 전에 백업 만들기 옵션을 선택하면 파일을 저장할 " +"때마다 파일의 백업 복사본을 만듭니다. 파일의 백업 복사본에는 파일 이름 뒤에 ~" +"가 하나 붙습니다." + +#: C/gedit.xml:1206(para) +msgid "" +"Select the Autosave files every ... minutes option to " +"automatically save the current file at regular intervals. Use the spin box " +"to specify how often you want to save the file." +msgstr "" +"현재 파일을 매 ... 분마다 저장 옵션을 선택하면 현재 파일" +"을 일정 시간마다 자동으로 저장합니다. 스핀 상자로 얼마나 자주 파일을 저장할 " +"지 지정합니다." + +#: C/gedit.xml:1213(title) +msgid "Font & Colors Preferences" +msgstr "글꼴 및 색 기본 설정" + +#: C/gedit.xml:1215(guilabel) +msgid "Font" +msgstr "글꼴" + +#: C/gedit.xml:1217(para) +msgid "" +"Select the Use default theme font option to use the " +"default system font for the text in the gedit " +"text window." +msgstr "" +"기본 테마 색 사용 옵션을 선택하면 gedit 텍스트 창의 텍스트에 기본 시스템 글꼴을 사용합니다." + +#: C/gedit.xml:1218(para) +msgid "" +"The Editor font field displays the font that " +"gedit uses to display text. Click on the button " +"to specify the font type, style, and size to use for text." +msgstr "" +"편집기 글꼴 부분은 텍스트를 표시할 때 사용하는 글꼴을 표" +"시합니다. 이 단추를 눌러 글꼴의 종류, 유형, 크기를 지정할 수 있습니다." + +#: C/gedit.xml:1221(guilabel) +msgid "Colors" +msgstr "색" + +#: C/gedit.xml:1223(para) +msgid "" +"Select the Use default theme colors option to use the " +"default theme colors in the gedit text window." +msgstr "" +"기본 테마 색 사용 옵션을 선택하면 gedit 텍스트 창에서 기본 테마 색을 사용합니다." + +#: C/gedit.xml:1224(para) +msgid "" +"Click on the Normal text color color button to " +"display the color selector dialog. Select a color to use to display normal " +"text in the gedit text window." +msgstr "" +"일반 텍스트 색 색 단추를 누르면 색 선택 대화 창을 표시" +"합니다. gedit 텍스트 창에서 일반 텍스트를 표시할 " +"때 사용할 색을 고르십시오." + +#: C/gedit.xml:1225(para) +msgid "" +"Click on the Background color color button to display " +"the color selector dialog. Select a background color for the " +"gedit text window." +msgstr "" +"배경색 색 단추를 누르면 색 선택 대화 창을 표시합니다. " +"gedit 텍스트 창에서 배경색을 표시할 때 사용할 색" +"을 고르십시오." + +#: C/gedit.xml:1226(para) +msgid "" +"Click on the Selected text color color button to " +"display the color selector dialog. Select a color to use to display selected " +"text." +msgstr "" +"선택한 텍스트 색 색 단추를 누르면 색 선택 대화 창을 표" +"시합니다. 선택한 텍스트를 표시할 때 사용할 색을 고르십시오." + +#: C/gedit.xml:1228(para) +msgid "" +"Click on the Selection color color button to display " +"the color selector dialog. Select a background color to use to highlight a " +"text selection." +msgstr "" +"선택 색 색 단추를 누르면 색 선택 대화 창을 표시합니" +"다. 선택한 텍스트를 강조할 때 사용할 배경색을 고르십시오." + +#: C/gedit.xml:1235(title) +msgid "Syntax Highlighting Preferences" +msgstr "구문 강조 기본 설정" + +#: C/gedit.xml:1237(guilabel) +msgid "Enable syntax highlighting" +msgstr "구문 강조 사용" + +#: C/gedit.xml:1239(para) +msgid "Select this option to highlight the syntax of the text that you edit." +msgstr "이 옵션을 선택하면 텍스트를 편집할 때 구문을 강조합니다." + +#: C/gedit.xml:1242(guilabel) +msgid "Highlight mode" +msgstr "강조 모드" + +#: C/gedit.xml:1244(para) +msgid "Use this drop-down list to select a syntax mode to configure." +msgstr "이 드롭다운 목록에서 설정할 구문 모드를 고릅니다." + +#: C/gedit.xml:1247(guilabel) +msgid "Elements" +msgstr "구성 요소" + +#: C/gedit.xml:1249(para) +msgid "Use this list box to select a syntax element to configure." +msgstr "이 목록에서 설정할 구문 구성 요소를 고릅니다." + +#: C/gedit.xml:1252(term) +msgid "Format buttons" +msgstr "형식 단추" + +#: C/gedit.xml:1254(para) +msgid "" +"Use the following buttons to change the format of the selected syntax " +"element:" +msgstr "다음 단추를 사용해 선택한 구문 구성 요소의 형식을 바꿉니다:" + +#: C/gedit.xml:1262(para) +msgid "Button" +msgstr "단추" + +#: C/gedit.xml:1264(para) +msgid "Format" +msgstr "형식" + +#: C/gedit.xml:1276(phrase) +msgid "Shows icon for bold format." +msgstr "굵은 글씨 형식의 아이콘을 표시합니다." + +#: C/gedit.xml:1282(para) +msgid "Bold" +msgstr "굵게" + +#: C/gedit.xml:1294(phrase) +msgid "Shows icon for italic format." +msgstr "이탤릭 형식의 아이콘을 표시합니다." + +#: C/gedit.xml:1300(para) +msgid "Italic" +msgstr "이탤릭" + +#: C/gedit.xml:1312(phrase) +msgid "Shows icon for underline." +msgstr "밑줄 아이콘을 표시합니다." + +#: C/gedit.xml:1318(para) +msgid "Underline" +msgstr "밑줄" + +#: C/gedit.xml:1330(phrase) +msgid "Shows icon for strikethrough." +msgstr "취소선 아이콘을 표시합니다." + +#: C/gedit.xml:1336(para) +msgid "Strikethrough" +msgstr "취소선" + +#: C/gedit.xml:1346(guilabel) +msgid "Foreground" +msgstr "글자색" + +#: C/gedit.xml:1348(para) +msgid "" +"Select this option to change the font color of the selected syntax element. " +"Click on the color button to display the color selector dialog, then select " +"the font color." +msgstr "" +"이 옵션으로 선택한 구문 구성 요소의 글꼴 색을 바꿉니다. 색 단추를 눌러 색 선" +"택 대화 창을 표시하고, 글꼴의 색을 고르십시오." + +#: C/gedit.xml:1351(guilabel) +msgid "Background" +msgstr "배경색" + +#: C/gedit.xml:1353(para) +msgid "" +"Select this option to change the background color of the selected syntax " +"element. Click on the color button to display the color selector dialog, " +"then select the background color." +msgstr "" +"이 옵션으로 선택한 구문 구성 요소의 배경 색을 바꿉니다. 색 단추를 눌러 색 선" +"택 대화 창을 표시하고, 배경 색을 고르십시오." + +#: C/gedit.xml:1356(guibutton) +msgid "Reset to Default" +msgstr "기본값으로 리셋" + +#: C/gedit.xml:1358(para) +msgid "" +"Click on this button to reset the foreground color and background color of " +"the selected syntax element to the default values." +msgstr "" +"이 단추를 누르면 선택한 구문 구성 요소의 글자색과 배경색을 기본값으로 바꿉니" +"다." + +#: C/gedit.xml:1365(title) +msgid "Plugins Preferences" +msgstr "플러그인 기본 설정" + +#: C/gedit.xml:1366(para) +msgid "" +"Plugins add extra features to gedit. For more " +"information on plugins and how to use the built-in plugins, see ." +msgstr "" +"플러그인은 gedit에 부가적인 기능을 추가합니다. 플" +"러그인 및 내장 플러그인 사용법에 대해 좀 더 알고 싶으시면, 부분을 참고하십시오." + +#: C/gedit.xml:1371(title) +msgid "Enabling a Plugin" +msgstr "플러그인 사용하기" + +#: C/gedit.xml:1372(para) +msgid "" +"To enable a gedit plugin, perform the following " +"steps:" +msgstr "" +"gedit 플러그인을 사용하려면, 다음 순서대로 하십시" +"오:" + +#: C/gedit.xml:1375(para) C/gedit.xml:1396(para) C/gedit.xml:1720(para) +msgid "" +"Choose EditPreferences." +msgstr "" +"편집기본 설정을 선택하십시오." + +#: C/gedit.xml:1378(para) C/gedit.xml:1399(para) C/gedit.xml:1723(para) +msgid "Select the Plugins tab." +msgstr "플러그인 탭을 선택하십시오." + +#: C/gedit.xml:1381(para) +msgid "" +"Select the check box next to the name of the plugin that you want to enable." +msgstr "사용하려는 플러그인의 이름 옆에 있는 확인란을 선택하십시오." + +#: C/gedit.xml:1384(para) C/gedit.xml:1405(para) +msgid "" +"Click Close to close the Preferences dialog." +msgstr "" +"닫기를 눌러 기본 설정 대화 창을 " +"닫으십시오." + +#: C/gedit.xml:1391(title) +msgid "Disabling a Plugin" +msgstr "플러그인 사용하지 않기" + +#: C/gedit.xml:1392(para) +msgid "" +"A plugin remains enabled when you quit gedit." +msgstr "" +"gedit을 끝내더라도 플러그인은 계속 사용하는 상태" +"로 남아 있습니다." + +#: C/gedit.xml:1393(para) +msgid "" +"To disable a gedit plugin, perform the following " +"steps:" +msgstr "" +"gedit 플러그인을 사용하지 않으려면, 다음 순서대로 " +"하십시오:" + +#: C/gedit.xml:1402(para) +msgid "" +"Deselect the check box next to the name of the plugin that you want to " +"disable." +msgstr "" +"사용하지 않으려는 플러그인의 이름 옆에 있는 확인란의 선택을 지우십시오." + +#: C/gedit.xml:1414(title) +msgid "Plugins" +msgstr "플러그인" + +#: C/gedit.xml:1416(title) +msgid "Working with Plugins" +msgstr "플러그인 작업하기" + +#: C/gedit.xml:1417(para) +msgid "" +"You can add extra features to gedit by enabling " +"plugins. A plugin is a supplementary program that " +"enhances the functionality of an application. Plugins add new items to the " +"gedit menus for the new features they provide." +msgstr "" +"플러그인을 사용해 gedit에 " +"부가적인 기능을 추가할 수 있습니다. 플러그인은 어떤 응용 프로그램의 기능을 향" +"상시켜 주는 보조 프로그램입니다. 플러그인을 사용하면 그 플러그인에 들어 있는 " +"기능에 해당하는 메뉴 항목을 gedit 메뉴에 새로 추가" +"합니다." + +#: C/gedit.xml:1419(para) +msgid "" +"Several plugins come built-in with gedit, and you " +"can install more. The gedit website lists third-party plugins." +msgstr "" +"몇 가지 플러그인이 gedit에 내장되어 있고, 플러그인" +"을 더 설치할 수도 있습니다. gedit 웹사이트에 외부에서 만든 플러그인의 목록이 있습" +"니다." + +#: C/gedit.xml:1420(para) +msgid "" +"To enable and disable plugins, or see which plugins are currently enabled, " +"use the Plugins Preferences." +msgstr "" +"플러그인을 사용하거나 사용하지 않으려면, 아니면 현재 사용하고 있는 플러그인" +"을 보려면, 플러그인 기본 설정을 " +"사용하십시오." + +#: C/gedit.xml:1421(para) +msgid "" +"The following plugins come built-in with gedit:" +msgstr "다음 플러그인이 gedit에 내장되어 있습니다:" + +#: C/gedit.xml:1427(para) +msgid "" +"Change Case allows you to change the case of the selected text." +msgstr "" +"대소문자 바꾸기로 선택한 텍스트의 대소문자를 바꿀 수 있습니다." + +#: C/gedit.xml:1430(para) +msgid "" +"Document " +"Statistics shows the number of lines, words, and " +"characters in the document." +msgstr "" +"문서 통계는 문서에 들어 있는 줄, 단어, 문자의 개수를 표시합니다." + +#: C/gedit.xml:1433(para) +msgid "" +"External Tools allows you to execute external commands from " +"gedit." +msgstr "" +"외부 도구gedit에서 외부의 명령어를 실행할 " +"수 있습니다." + +# FIXME: "File Browser Pane" in the program +#: C/gedit.xml:1436(para) +msgid "" +"File Browser allows you to browse your files and " +"folders in the side pane." +msgstr "" +"파일 찾아보기로 가장자리 창에서 파일을 찾아볼 수 " +"있습니다." + +#: C/gedit.xml:1439(para) +msgid "" +"Indent Lines adds or removes indentation from the selected lines." +msgstr "" +"줄 들여쓰기로 선택한 줄의 들여 쓰기를 더하거나 뺄 수 있습니다." + +#: C/gedit.xml:1442(para) +msgid "" +"Insert Date/" +"Time adds the current date and time into a document." +msgstr "" +"날짜/시간 넣기으로 현재 날짜와 시간을 문서 안에 써 넣습니다." + +#: C/gedit.xml:1445(para) +msgid "" +"Modelines allows you to set editing preferences for individual documents, " +"and supports Emacs, Kate and Vim-style modelines." +msgstr "" +"모드라인을 사용하면 문서마다 편집 설정을 따로 할 수 있고, " +"EmacsKate와 " +"Vim 스타일의 모드라인을 지원합니다." + +#: C/gedit.xml:1448(para) +msgid "" +"Python Console allows you to run commands in the python programming " +"language." +msgstr "" +"파이썬 콘솔을 사용하면 파이썬 프로그래밍 언어로 명령어를 실행할 수 있" +"습니다." + +#: C/gedit.xml:1451(para) +msgid "" +"Snippets allows you to store frequently-used pieces of text and insert " +"them quickly into a document." +msgstr "" +"관용구를 사용하면, 자주 사용하는 텍스트를 저장해 놓고 빠르게 문서에 입" +"력할 수 있습니다." + +#: C/gedit.xml:1454(para) +msgid "" +"Sort " +"arranges selected lines of text into alphabetical order." +msgstr "" +"정렬은 " +"선택한 텍스트 줄을 사전 순서로 정렬합니다." + +#: C/gedit.xml:1457(para) +msgid "" +"Spell Checker corrects the spelling in the selected text, or marks " +"errors automatically in the document." +msgstr "" +"맞춤법 검사는 선택한 텍스트의 맞춤법을 바로잡고, 문서에서 틀린 사항" +"을 자동으로 표시해 줍니다." + +#: C/gedit.xml:1460(para) +msgid "" +"Tag List lets you insert commonly-used tags for HTML and other languages " +"from a list in the side pane." +msgstr "" +"태그 목록을 사용하면 HTML 및 기타 언어에서 자주 사용하는 태그를 가장자리 " +"창의 목록에서 입력할 수 있습니다." + +#: C/gedit.xml:1463(para) +msgid "" +"User Name inserts the username of the current user into the document." +msgstr "" +"사용자 이름은 현재 사용자의 사용자 이름을 문서에 입력합니다." + +#: C/gedit.xml:1470(title) +msgid "Change Case Plugin" +msgstr "대소문자 바꾸기 플러그인" + +#: C/gedit.xml:1471(para) +msgid "" +"The Change Case plugin changes the case of the " +"selected text." +msgstr "" +"대소문자 바꾸기 플러그인으로 선택한 텍스트의 대소" +"문자를 바꿉니다." + +#: C/gedit.xml:1472(para) +msgid "" +"The following items are added to the Edit menu when the " +"Change Case plugin is enabled:" +msgstr "" +"대소문자 바꾸기 플러그인을 사용하면 다음 항목을 " +"편집 메뉴에 추가합니다:" + +#: C/gedit.xml:1482(para) +msgid "Menu Item" +msgstr "메뉴 항목" + +#: C/gedit.xml:1484(para) +msgid "Action" +msgstr "동작" + +#: C/gedit.xml:1486(para) +msgid "Example" +msgstr "예제" + +#: C/gedit.xml:1492(guisubmenu) C/gedit.xml:1498(guisubmenu) +#: C/gedit.xml:1504(guisubmenu) C/gedit.xml:1510(guisubmenu) +msgid "Change Case" +msgstr "대소문자 바꾸기" + +#: C/gedit.xml:1492(guimenuitem) +msgid "All Upper Case" +msgstr "모두 대문자" + +#: C/gedit.xml:1493(para) +msgid "Change each character to uppercase." +msgstr "모든 문자를 대문자로 바꿉니다." + +#: C/gedit.xml:1494(para) +msgid "This text becomes THIS TEXT" +msgstr "This textTHIS TEXT가 됩니다" + +#: C/gedit.xml:1498(guimenuitem) +msgid "All Lower Case" +msgstr "모두 소문자" + +#: C/gedit.xml:1499(para) +msgid "Change each character to lowercase." +msgstr "모든 문자를 소문자로 바꿉니다." + +#: C/gedit.xml:1500(para) +msgid "This Text becomes this text" +msgstr "This textthis text가 됩니다" + +#: C/gedit.xml:1504(guimenuitem) +msgid "Invert Case" +msgstr "대소문자 뒤바꾸기" + +#: C/gedit.xml:1505(para) +msgid "" +"Change each lowercase character to uppercase, and change each uppercase " +"character to lowercase." +msgstr "모든 소문자를 대문자로 바꾸고, 모든 대문자를 소문자로 바꿉니다." + +#: C/gedit.xml:1506(para) +msgid "This Text becomes tHIS tEXT" +msgstr "This TexttHIS tEXT가 됩니다." + +#: C/gedit.xml:1510(guimenuitem) +msgid "Title Case" +msgstr "제목 대소문자" + +#: C/gedit.xml:1511(para) +msgid "Change the first character of each word to uppercase." +msgstr "모든 단어의 첫 글자를 대문자로 바꿉니다." + +#: C/gedit.xml:1512(para) +msgid "this text becomes This Text" +msgstr "this textThis Text가 됩니다" + +#: C/gedit.xml:1521(title) +msgid "Document Statistics Plugin" +msgstr "문서 통계 플러그인" + +#: C/gedit.xml:1522(para) +msgid "" +"The Document Statistics plugin counts the number " +"of lines, words, characters with spaces, characters without spaces, and " +"bytes in the current file. The plugin displays the results in a " +"Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" +"문서 통계 플러그인은 현재 문서의 줄, 단어, 문자, " +"바이트 수를 계산합니다. 결과를 문서 통계 대화 창에 표시" +"합니다. 문서 통계 플러그인을 사용하려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:1524(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"displays the following information about the file:" +msgstr "" +"도구문서 통계를 선택하면 문서 통계 대화 창이 나타납니다. " +"문서 통계 대화 창에 파일에 대해 다음 정보를 표시합니다:" + +#: C/gedit.xml:1527(para) +msgid "Number of lines in the current document." +msgstr "현재 문서의 줄 수." + +#: C/gedit.xml:1530(para) +msgid "Number of words in the current document." +msgstr "현재 문서의 단어 수." + +#: C/gedit.xml:1533(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "현재 문서의 문자 수, 공백 포함." + +#: C/gedit.xml:1536(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "현재 문서의 문자 수, 공백 포함하지 않음." + +#: C/gedit.xml:1539(para) +msgid "Number of bytes in the current document." +msgstr "현재 문서의 바이트 수." + +#: C/gedit.xml:1544(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click " +"Update." +msgstr "" +"문서 통계 대화 창이 열려 있는 도중에도 " +"gedit의 파일을 편집할 수 있습니다. 문서 " +"통계 대화 창의 내용을 다시 읽어들이려면, 업데이트를 누르십시오." + +#: C/gedit.xml:1551(title) +msgid "External Tools Plugin" +msgstr "외부 도구 플러그인" + +#: C/gedit.xml:1552(para) +msgid "" +"The External Tools plugin allows you to execute " +"external commands from gedit. You can pipe some " +"content into a command and exploit its output (for example, " +"sed), or launch a predefined command (for " +"example, make)." +msgstr "" +"외부 도구 플러그인을 사용해 gedit에서 외부 명령어를 실행할 수 있습니다. 어떤 내용을 파이프를 통해 " +"명령어로 돌려 넣어서 그 출력을 알아볼 수도 있고 (예를 들어 sed), 미리 정의한 명령어를 실행할 수도 (예를 들어 " +"make) 있습니다." + +#: C/gedit.xml:1553(para) +msgid "" +"Use the External Tools Manager to create and edit " +"commands. To run an external command, choose it from the Tools menu." +msgstr "" +"외부 도구 관리자를 사용해 명령어를 새로 만들고 편집합니" +"다. 외부 명령어를 실행하려면, 도구 메뉴에서 명령어를 하나 " +"고르십시오." + +#: C/gedit.xml:1556(title) +msgid "Built-in Commands" +msgstr "내장 명령어" + +#: C/gedit.xml:1557(para) +msgid "" +"The following commands are provided with the External Tools plugin:" +msgstr "" +"외부 도구 플러그인에는 다음 명령어가 들어 있습니" +"다:" + +#: C/gedit.xml:1559(term) +msgid "Build" +msgstr "컴파일하기" + +#: C/gedit.xml:1561(para) +msgid "" +"Runs make in the current document's directory." +msgstr "현재 문서의 디렉토리에서 make를 실행합니다." + +# FIXME: no such feature +#: C/gedit.xml:1564(term) +msgid "Directory Listing" +msgstr "디렉토리 목록" + +# FIXME: no such feature +#: C/gedit.xml:1566(para) +msgid "" +"Lists the contents of the current document's directory in a new document." +msgstr "현재 문서의 디렉토리의 파일 목록을 새 문서에 표시합니다." + +# FIXME: no such feature +#: C/gedit.xml:1569(term) +msgid "Environment Variables" +msgstr "환경 변수" + +# FIXME: no such feature +#: C/gedit.xml:1571(para) +msgid "Displays the environment variables list in the bottom pane." +msgstr "환경 변수 목록을 아래 창에 표시합니다." + +# FIXME: no such feature +#: C/gedit.xml:1574(term) +msgid "Grep" +msgstr "파일 내용 찾기" + +# FIXME: no such feature +#: C/gedit.xml:1576(para) +msgid "" +"Searches for a term in all files in the current document directory, using " +"pattern matching. Results are shown in the bottom pane." +msgstr "" +"현재 문서 디렉토리 안의 모든 파일에서 지정한 패턴을 찾습니다. 결과는 아래 창" +"에 표시합니다." + +#: C/gedit.xml:1579(term) +msgid "Remove Trailing Spaces" +msgstr "뒤에 붙은 공백 지우기" + +#: C/gedit.xml:1581(para) +msgid "Removes all spaces from the end of lines in the document." +msgstr "문서의 줄 끝에 있는 모든 공백을 지웁니다." + +#: C/gedit.xml:1588(title) +msgid "Defining a Command" +msgstr "명령 정의하기" + +#: C/gedit.xml:1589(para) +msgid "" +"To add an external command, choose ToolsExternal Tools." +msgstr "외부 명령을 새로 추가하려면, 도구외부 도구를 선택하십시오." + +#: C/gedit.xml:1590(para) +msgid "" +"In the External Tools Manager window, click " +"New. You can speficy the following details for the " +"new command:" +msgstr "" +"외부 도구 관리 창에서, 새로 만들기을 누르십시오. 새 명령어에 다음과 같은 사항을 지정할 수 있습니다:" + +#: C/gedit.xml:1592(term) +msgid "Description" +msgstr "설명" + +#: C/gedit.xml:1594(para) +msgid "" +"This description is shown in the statusbar when the menu command is chosen." +msgstr "이 설명은 메뉴 명령어를 선택할 때 상태 표시줄에 나타납니다." + +# FIXME: "shortcut key" in the program +#: C/gedit.xml:1597(term) +msgid "Accelerator" +msgstr "바로 가기 키" + +#: C/gedit.xml:1599(para) +msgid "Enter a keyboard shortcut for the command." +msgstr "명령어의 키보드 바로 가기를 입력합니다." + +#: C/gedit.xml:1602(term) +msgid "Commands" +msgstr "명령" + +#: C/gedit.xml:1604(para) +msgid "" +"The actual commands to be run. Several gedit " +"environment variables can be used to pass content to these commands: see " +"." +msgstr "" +"실행할 명령어. gedit 환경 변수를 사용해 이 명령어" +"에 데이터를 전달할 수 있습니다. 부분을 참고하십시오." + +#: C/gedit.xml:1607(term) +msgid "Input" +msgstr "입력" + +#: C/gedit.xml:1609(para) +msgid "" +"The content to give to the commands (as stdin): the " +"entire text of the current document, the current selection, line, or word." +msgstr "" +"명령어에 (stdin을 통해) 넘길 내용. 현재 문서의 전체 " +"텍스트, 현재 선택한 부분, 현재 줄, 현재 단어 중의 하나입니다." + +#: C/gedit.xml:1612(term) +msgid "Output" +msgstr "출력" + +#: C/gedit.xml:1614(para) +msgid "" +"What to do with the output of the commands: display in the bottom pane, put " +"in a new document, or place in the current document, at the end, at the " +"cursor position, or replacing the selection or the entire document." +msgstr "" +"명령어의 출력으로 무엇을 할 지 지정합니다. 아래 창에 표시, 새 문서에 넣기, 현" +"재 문서의 끝이나 커서 위치에 넣기, 선택한 부분이나 전체 문서 바꾸기 중의 하나" +"입니다." + +#: C/gedit.xml:1617(term) +msgid "Applicability" +msgstr "적용 범위" + +#: C/gedit.xml:1619(para) +msgid "" +"Determines which sort of documents can be affected by the command, for " +"example whether saved or not, and local or remote." +msgstr "" +"어떤 종류의 문서에 대해 이 명령어를 사용할 수 있는 지 지정합니다. 예를 들어 " +"저장한 문서와 그렇지 않은 문서, 로컬 문서와 원격 문서를 지정합니다." + +#: C/gedit.xml:1627(title) +msgid "Editing and Removing Tools" +msgstr "도구 편집하기 및 지우기" + +#: C/gedit.xml:1628(para) +msgid "" +"To edit a tool, select it in the list and make changes to its properties." +msgstr "도구를 편집하려면, 목록에서 선택한 다음 그 속성을 바꾸십시오." + +#: C/gedit.xml:1629(para) +msgid "To rename a tool, click it again in the list." +msgstr "도구의 이름을 바꾸려면, 목록에서 다시 한 번 누르십시오." + +#: C/gedit.xml:1630(para) +msgid "" +"To restore a built-in tool that you have changed, press Revert." +msgstr "" +"바꾼 내장 도구를 원래대로 복구하려면, 되돌리기를 누르십" +"시오." + +#: C/gedit.xml:1631(para) +msgid "" +"To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created " +"yourself." +msgstr "" +"도구를 지우려면, 목록에서 선택하고 지우기를 누르십시" +"오. 내장 도구는 지울 수 없고, 직접 만든 도구만 지울 수 있습니다." + +#: C/gedit.xml:1635(title) +msgid "Variables" +msgstr "변수" + +#: C/gedit.xml:1636(para) +msgid "" +"You can use the following variables in the Commands " +"field of the command definition:" +msgstr "" +"명령어 정의의 명령 입력란에서 다음 변수를 사용할 수 있습" +"니다:" + +#: C/gedit.xml:1639(para) +msgid "GEDIT_CURRENT_DOCUMENT_URI" +msgstr "GEDIT_CURRENT_DOCUMENT_URI" + +#: C/gedit.xml:1642(para) +msgid "GEDIT_CURRENT_DOCUMENT_NAME" +msgstr "GEDIT_CURRENT_DOCUMENT_NAME" + +#: C/gedit.xml:1645(para) +msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +msgstr "GEDIT_CURRENT_DOCUMENT_SCHEME" + +#: C/gedit.xml:1648(para) +msgid "GEDIT_CURRENT_DOCUMENT_PATH" +msgstr "GEDIT_CURRENT_DOCUMENT_PATH" + +#: C/gedit.xml:1651(para) +msgid "GEDIT_CURRENT_DOCUMENT_DIR" +msgstr "GEDIT_CURRENT_DOCUMENT_DIR" + +#: C/gedit.xml:1654(para) +msgid "GEDIT_DOCUMENTS_URI" +msgstr "GEDIT_DOCUMENTS_URI" + +#: C/gedit.xml:1657(para) +msgid "GEDIT_DOCUMENTS_PATH" +msgstr "GEDIT_DOCUMENTS_PATH" + +# FIXME: "File Browser Pane" in the program +#: C/gedit.xml:1664(title) +msgid "File Browser Plugin" +msgstr "파일 찾아보기 플러그인" + +# FIXME: "File Browser Pane" in the program +#: C/gedit.xml:1665(para) +msgid "" +"The File Browser Plugin shows your files and " +"folders in the side pane, allowing you to quickly open files." +msgstr "" +"파일 찾아보기 플러그인은 가장 자리 창에서 파일과 " +"폴더를 표시합니다. 이 기능을 사용해 파일을 빠르게 열 수 있습니다." + +#: C/gedit.xml:1666(para) +msgid "" +"To view the File Browser, choose ViewSide Pane and then click on " +"the tab showing the File Browser icon at the bottom of the side pane." +msgstr "" +"파일 찾아보기를 표시하려면, 보기" +"가장자리 창을 선택한 다음, 가장자리 창의 아래에 있" +"는 탭에서 파일 찾아보기 아이콘을 누르십시오." + +#: C/gedit.xml:1668(title) +msgid "Browsing your Files" +msgstr "파일 찾아보기" + +#: C/gedit.xml:1669(para) +msgid "" +"The File Browser tab initially shows your file manager bookmarks. To browse " +"the contents of any item, double-click it." +msgstr "" +"파일 찾아보기 탭은 맨 처음에는 파일 관리자 책갈피를 표시합니다. 어떤 항목의 " +"내용을 보려면, 그 항목을 두 번 누르십시오." + +#: C/gedit.xml:1670(para) +msgid "" +"To show a parent folder, choose from the drop-down list, or press the up " +"arrow on the File Browser's toolbar." +msgstr "" +"상위 폴더를 보려면, 드롭다운 목록에서 상위 폴더를 선택하거나, 파일 찾아보기" +"의 도구 모음에서 위 화살표를 누르십시오." + +#: C/gedit.xml:1671(para) +msgid "" +"To show the folder that contains the document you are currently working on, " +"right-click in the file list and choose Set root to active " +"document." +msgstr "" +"현재 작업중인 문서가 들어 있는 폴더를 보려면, 파일 목록에 마우스 오른쪽 단추" +"를 누르고 Set현재 문서의 상위 디렉토리 선택을 선택" +"하십시오." + +#: C/gedit.xml:1675(para) +msgid "" +"To open a file in gedit, double-click it in the " +"file list." +msgstr "" +"gedit에서 파일을 열려면, 파일 목록에서 파일을 두 " +"번 누르십시오." + +#: C/gedit.xml:1678(title) +msgid "Creating Files and Folders" +msgstr "파일 및 폴더 만들기" + +#: C/gedit.xml:1679(para) +msgid "" +"To create a new, empty text file in the current folder shown in the browser, " +"right-click in the file list and choose New File." +msgstr "찾아보기 창에 표시하는 현재 폴더에서 빈 텍스트 파일을 새로 만드려면, 파일 목록에서 마우스 오른쪽 단추를 누르고 새 파일을 선택하십시오." + +#: C/gedit.xml:1680(para) +msgid "" +"To create a new folder in the current folder shown in the browser, right-" +"click in the file list and choose New Folder." +msgstr "" +"찾아보기 창에 표시하는 현재 폴더에서 새 폴더를 만드려면, 파일 목록에서 마우" +"스 오른쪽 단추를 누르고 새 폴더를 선택하십시오." + +#: C/gedit.xml:1685(title) +msgid "Indent Lines Plugin" +msgstr "줄 들여쓰기 플러그인" + +#: C/gedit.xml:1686(para) +msgid "" +"The Indent Lines plugin adds or removes space " +"from the beginning of lines of text." +msgstr "" +"줄 들여쓰기 플러그인으로 줄 앞에 공백을 더하거나 " +"뺍니다." + +#: C/gedit.xml:1687(para) +msgid "To indent or unindent text, perform the following steps:" +msgstr "텍스트를 들여 쓰거나 내어 쓰려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:1689(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" +"들여 쓰려는 줄을 선택하십시오. 한 줄만 들여 쓰거나 내어 쓰려면, 커서를 그 줄" +"의 아무 곳으로 옮기면 됩니다." + +#: C/gedit.xml:1694(para) +msgid "" +"To indent the text, choose EditIndent." +msgstr "" +"텍스트를 들여 쓰려면, 편집들여 쓰" +"기를 선택하십시오." + +#: C/gedit.xml:1697(para) +msgid "" +"To remove the indentation, choose EditUnindent." +msgstr "" +"들여 쓰기를 지우려면, 편집내어 쓰" +"기를 선택하십시오." + +#: C/gedit.xml:1702(para) +msgid "" +"The amount of space used, and whether tab character or space characters are " +"used, depends on the Tab Stops settings in the Editor " +"Preferences: see ." +msgstr "" +"몇 칸의 공백을 사용할 지, 또 탭 문자와 공백 문자 중 무엇을 사용할 지는 편집" +"기 기본 설정의 탭 위치 설정에 따라 다릅니다. 부분을 보십시오." + +#: C/gedit.xml:1707(title) +msgid "Insert Date/Time Plugin" +msgstr "날짜/시간 넣기 플러그인" + +#: C/gedit.xml:1708(para) +msgid "" +"The Insert Date/Time plugin inserts the current " +"date and time into a document. To use the Insert Date/Time plugin, perform " +"the following steps:" +msgstr "" +"날짜/시간 넣기 플러그인은 현재 날짜와 시각을 문서" +"에 끼워 넣습니다. 날짜/시간 넣기 플러그인을 사용하려면, 다음 순서대로 하십시" +"오:" + +#: C/gedit.xml:1710(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" +"편집날짜 및 시간 넣기를 선택하십시오." + +#: C/gedit.xml:1711(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click Insert to close the Insert Date " +"and Time dialog. gedit inserts the " +"date/time at the cursor position in the current file." +msgstr "" +"날짜/시간 넣기 플러그인에서 형식을 물어보지 않고 날짜/시간을 넣도록 설정하지 " +"않은 상태라면, gedit에서 날짜 및 시간 넣" +"기 대화 창을 표시합니다. 목록에서 적당한 날짜/시간 형식을 고르십시" +"오. 넣기는 눌러 날짜 및 시간 넣기 대화 창을 닫으십시오. 그러면 날짜/시간을 현재 파일의 커서 위치에 입" +"력합니다." + +#: C/gedit.xml:1712(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed. The date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" +"한 가지 특정 날짜/시간 형식을 사용하도록 gedit를 " +"설정했다면, 날짜 및 시간 넣기 대화 창은 표시하지 않습니" +"다. 날짜/시간을 자동으로 현재 파일의 커서 위치에 입력합니다." + +#: C/gedit.xml:1717(title) +msgid "Configuring the Insert Date/Time Plugin" +msgstr "날짜/시간 넣기 플러그인 설정하기" + +#: C/gedit.xml:1718(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "날짜/시간 넣기 플러그인을 설정하려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:1726(para) +msgid "Select the Insert Date/Time plugin." +msgstr "날짜/시간 넣기 플러그인을 선택하십시오." + +#: C/gedit.xml:1729(para) +msgid "" +"Click Configure Plugin to display the " +"Configure insert date/time plugin dialog." +msgstr "" +"Click 플러그인 설정을 눌러 날짜/시간 넣기 플" +"러그인 설정 대화 창을 여십시오." + +#: C/gedit.xml:1732(para) +msgid "Select one of the options, as follows:" +msgstr "다음과 같이 옵션 중의 하나를 선택하십시오:" + +#: C/gedit.xml:1734(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" +"날짜/시간을 넣을 때마다 날짜/시간 형식을 지정하려면, 형식 물어보기" +" 옵션을 선택하십시오." + +#: C/gedit.xml:1737(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" +"날짜/시간을 넣을 때마다 동일한 날짜/시간 형식을 사용하려면, 선택한 " +"형식 사용 옵션을 선택하고, 목록에서 원하는 형식을 고르십시오. 이 " +"옵션을 선택하면, 편집날짜/시간 넣" +"기를 선택했을 때 날짜/시간 형식을 물어보지 않습니" +"다." + +#: C/gedit.xml:1740(para) +msgid "" +"To use the same customized date/time format each time you insert the date/" +"time, select the Use custom format option, then enter " +"the appropriate format in the text box. For more information about how to " +"specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose EditInsert Date and Time." +msgstr "" +"날짜/시간을 넣을 때마다 동일한 사용자 설정 날짜/시간 형식을 사용하려면, " +"사용자 형식 사용 옵션을 사용하고, 텍스트 입력 창에서 원" +"하는 형식을 입력하십시오. 사용자 설정 형식을 지정하는 방법에 대해 좀 더 알고 " +"싶으시면, strftime3을 참고하십시오. 이 옵션을 선택하면, " +"편집날짜/시간 넣기를 선택했을 때 날짜/시간 형식을 물어보지 않습니다." + +#: C/gedit.xml:1745(para) +msgid "" +"Click OK to close the Configure insert date/" +"time plugin dialog." +msgstr "" +"확인을 눌러 날짜/시간 넣기 플러그인 설정 대화 창을 닫으십시오." + +#: C/gedit.xml:1748(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" +"기본 설정 대화 창을 닫으려면, 닫기를 누르십시오." + +#: C/gedit.xml:1755(title) +msgid "Modelines Plugin" +msgstr "모드라인 플러그인" + +#: C/gedit.xml:1756(para) +msgid "" +"The Modelines plugin allows you to set " +"preferences for individual documents. A modeline is a " +"line of text at the start or end of the document with settings that " +"gedit recognises." +msgstr "" +"모드라인 플러그인으로 각 문서마다 설정을 할 수 있" +"습니다. 모드라인은 문서의 처음이나 끝에 쓰여 있는 한 " +"줄짜리 텍스트로, 그 텍스트를 gedit가 인식해서 그 " +"문서의 설정을 합니다." + +#: C/gedit.xml:1757(para) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "모드라인에서 설정한 사항은 기본 설정 대화 상자에서 설정한 것보다 우선합니다." + +#: C/gedit.xml:1758(para) +msgid "You can set the following preferences with modelines:" +msgstr "모드라인에서 다음 설정을 할 수 있습니다:" + +#: C/gedit.xml:1761(para) +msgid "Tab width" +msgstr "탭 너비" + +#: C/gedit.xml:1764(para) +msgid "Indent width" +msgstr "들여쓰기 너비" + +#: C/gedit.xml:1767(para) +msgid "Insert spaces instead of tabs" +msgstr "탭 대신 공백 넣기" + +#: C/gedit.xml:1773(para) +msgid "Right margin width" +msgstr "오른쪽 여백 너비" + +#: C/gedit.xml:1777(para) +msgid "" +"The Modelines plugin supports a subset of the " +"options used by other text editors Emacs, " +"Kate and Vim." +msgstr "" +"모드라인 플러그인은 다른 텍스트 편집기 " +"이맥스, Kate, " +"Vim에서 사용하는 옵션의 일부를 지원합니다." + +#: C/gedit.xml:1780(title) +msgid "Emacs Modelines" +msgstr "이맥스 모드라인" + +#: C/gedit.xml:1781(para) +msgid "" +"The first two lines of a document are scanned for Emacs modelines." +msgstr "" +"문서의 처음 두 줄에서 이맥스 모드라인을 검사합니" +"다." + +#: C/gedit.xml:1782(para) +msgid "" +"The Emacs options for tab-width, indent-offset, " +"indent-tabs-mode and autowrap are supported. For more information, see the " +"GNU Emacs Manual." +msgstr "이맥스의 tab-width, indent-offset, indent-tabs-mode, autorap 옵션을 지원합니다. 좀 더 자세히 알고 싶으시면, GNU 이맥스 설명서를 참고하십시오." + +#: C/gedit.xml:1785(title) +msgid "Kate Modelines" +msgstr "Kate 모드라인" + +#: C/gedit.xml:1786(para) +msgid "" +"The first and last ten lines a document are scanned for Kate modelines." +msgstr "" +"문서의 처음과 마지막의 열 줄에서 Kate 모드라인을 " +"검사합니다." + +#: C/gedit.xml:1787(para) +msgid "" +"The Kate options for tab-width, indent-width, " +"space-indent, word-wrap and word-wrap-column are supported. For more " +"information, see the Kate website." +msgstr "" +"Kate의 tab-width, indent-width, space-indent, " +"word-wrap, word-wrap-column 옵션을 지원합니다. 좀 더 알고 싶으시면 Kate 웹사이트를 참고하십시오." + +#: C/gedit.xml:1790(title) +msgid "Vim Modelines" +msgstr "VIM 모드라인" + +#: C/gedit.xml:1791(para) +msgid "" +"The first and last three lines a document are scanned for Vim modelines." +msgstr "" +"문서의 처음과 마지막의 세 줄에서 Kate 모드라인을 " +"검사합니다." + +#: C/gedit.xml:1792(para) +msgid "" +"The Vim options for et, expandtab, ts, tabstop, " +"sw, shiftwidth, wrap, and textwidth are supported. For more information, see " +"the Vim website." +msgstr "Vim의 et, expandtab, ts, tabstop, sw, shiftwidth, wrap, textwidth 옵션을 지원합니다. 좀 더 알고 싶으시면 Vim 웹사이트를 참고하십시오." + +#: C/gedit.xml:1797(title) +msgid "Python Console Plugin" +msgstr "파이썬 콘솔 플러그인" + +#: C/gedit.xml:1798(para) +msgid "" +"The Python Console Plugin allows you to run " +"commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This shows " +"recent output and a command prompt field." +msgstr "" +"파이썬 콘솔 플러그인으로 gedit 안에서 파이썬 프로그래밍 언어로 작성한 명령을 실행할 수 있습니" +"다. 이 플러그인을 사용하면 아래 창에 탭을 하나 추가합니다. 이 탭에서 최근의 " +"출력과 명령어 프롬프트를 표시합니다." + +#: C/gedit.xml:1799(para) +msgid "" +"Commands entered into the python console are not checked before they are " +"run. It is therefore possible to hang gedit, for " +"example by entering an infinite loop." +msgstr "" +"파이썬 콘솔에 입력한 명령어는 실행하기 전에 검사하지 않습니다. 즉 파이썬 명령" +"때문에 gedit가 멈출 수 있습니다. 예를 들어 무한 루" +"프에 들어갈 수 있습니다." + +#: C/gedit.xml:1803(title) +msgid "Snippets Plugin" +msgstr "관용구 플러그인" + +#: C/gedit.xml:1804(para) +msgid "" +"The Snippets plugin allows you to store " +"frequently-used pieces of text, called snippets, and " +"insert them quickly into a document." +msgstr "" +"관용구 플러그인으로 자주 사용하는 텍스트를 " +"(관용구라고 합니다) 저장하고, 저장해 놓은 관용구를 빠" +"르게 문서에 입력합니다." + +#: C/gedit.xml:1805(para) +msgid "" +"Snippets are specific to the language syntax of the current document. For " +"example, when you are working with an HTML document, you can choose from a " +"list of snippets that are useful for HTML. In addition, some snippets are " +"global, and are available in all documents." +msgstr "" +"관용구는 현재 문서의 언어 문법에 따라 다릅니다. 예를 들어 HTML 문서 작업을 하" +"는 경우, HTML에서 유용한 관용구 목록에서 선택해서 사용할 수 있습니다. 또 어" +"떤 관용구는 파일 형식에 관계 없이 모든 문서에서 사용할 수 있습니다." + +#: C/gedit.xml:1806(para) +msgid "" +"A number of built-in snippets are installed with gedit, which can be modified." +msgstr "" +"gedit에 여러가지 내장 관용구가 설치되어 있고, 이 " +"관용구를 바꿀 수도 있습니다." + +#: C/gedit.xml:1809(title) +msgid "Inserting Snippets" +msgstr "관용구 넣기" + +#: C/gedit.xml:1810(para) +msgid "" +"To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +"usually the first few letters of the snippet, or something else that is " +"short and easy to remember." +msgstr "관용구를 문서에 넣으려면, 그 탭 트리거을 입력하고 Tab 키를 누르십시오. 관용구의 탭 트리거는 보통 그 관용구의 맨 앞의 글자이거나, 짧고 기억하기 쉬운 단어입니다." + +#: C/gedit.xml:1811(para) +msgid "" +"Alternatively, press CtrlSpace to see a list of snippets you can insert." +msgstr "다른 방법으로, Ctrl스페이스 키를 누르면 넣을 수 있는 관용구 목록이 나타납니다." + +#: C/gedit.xml:1815(title) +msgid "Adding Snippets" +msgstr "관용구 추가하기" + +#: C/gedit.xml:1816(para) +msgid "To create a new snippet, do the following:" +msgstr "새 관용구를 만드려면, 다음과 같이 하십시오:" + +#: C/gedit.xml:1819(para) +msgid "" +"Choose ToolsManage Snippets. The Snippets Manager window " +"opens." +msgstr "" +"도구관용구 관리를 선택하십시오. 관용구 관리자 창이 열립니다." + +#: C/gedit.xml:1822(para) +msgid "" +"The list of snippets is grouped by language. Select the language you want to " +"add a snippet to, or a snippet in that language group. To add a snippet for " +"all languages, choose Global at the top of the list. The syntax of the " +"document you are currently working with is shown by default." +msgstr "" +"관용구 목록은 언어마다 묶여 있습니다. 관용구를 추가하려는 언어를 선택하거나, " +"그 언어 안의 관용구를 선택하십시오. 모든 언어에 대해 새 관용구를 추가하려면, " +"목록의 맨 위에 있는 전체를 선택하십시오. 처음에는 기본값으로 현재 작업하고 있" +"는 문서의 언어를 표시합니다." + +#: C/gedit.xml:1825(para) +msgid "Click New. A new snippet appears in the list." +msgstr "" +"새로 만들기를 누르십시오. 새 관용구가 목록에 나타납니" +"다." + +#: C/gedit.xml:1828(para) +msgid "Enter the following information for the new snippet:" +msgstr "새 관용구에 대해 다음 정보를 입력하십시오:" + +#: C/gedit.xml:1830(term) +msgid "Name" +msgstr "이름" + +#: C/gedit.xml:1832(para) +msgid "" +"Enter a name for the snippet in the text field within the snippet list. The " +"name of a snippet serves only as a reminder of its purpose. You can change " +"name of a snippet you create by clicking on it in the list." +msgstr "" +"관용구 목록 안의 텍스트 입력란에서 관용구의 이름을 입력하십시오. 관용구의 이" +"름은 그 관용구의 목적을 알리는 용도일 뿐입니다. 목록의 관용구를 눌러서 새로 " +"만든 관용구의 이름을 바꿀 수 있습니다." + +#: C/gedit.xml:1835(term) +msgid "Snippet text" +msgstr "관용구 텍스트" + +#: C/gedit.xml:1837(para) +msgid "" +"Enter the text of the snippet in the Edit snippet text " +"box. For special codes you can use, see ." +msgstr "" +"관용구 편집 텍스트 상자에서 관용구의 텍스트를 입력하십시" +"오. 사용할 수 있는 특수 코드에 대해서는, 부분을 참고하십시오." + +#: C/gedit.xml:1838(para) +msgid "" +"You can switch back to the document window to copy text without closing the " +"Snippets Manager window." +msgstr "" +"관용구 관리자 창을 닫지 않고 문서 창으로 돌아가서 텍스트" +"를 복사할 수도 있습니다." + +#: C/gedit.xml:1841(term) +msgid "Tab Trigger" +msgstr "탭 트리거" + +#: C/gedit.xml:1843(para) +msgid "" +"Enter the tab trigger for the snippet. This is the text that you type before " +"pressing Tab to insert the snippet." +msgstr "관용구의 탭 트리거를 입력하십시오. 탭 트리거는 관용구를 입력할 때 Tab 키를 누르기 전에 입력할 텍스트를 말합니다." + +#: C/gedit.xml:1844(para) +msgid "" +"The tag must be either a single word comprising only letters, or any single " +"character. The Tab trigger will highlight in red if an " +"invalid tab trigger is entered." +msgstr "태그는 문자로만 이루어진 한 개의 단어이거나, 아니면 한 글자여야 합니다. 잘못 입력하면 탭 트리거를 빨간 색으로 강조합니다." + +#: C/gedit.xml:1847(term) +msgid "Shortcut key" +msgstr "바로 가기 키" + +#: C/gedit.xml:1849(para) +msgid "Type a shortcut key to use for inserting the snippet." +msgstr "관용구를 넣을 때 사용할 바로 가기 키를 입력하십시오." + +#: C/gedit.xml:1858(title) +msgid "Editing and Removing Snippets" +msgstr "관용구 편집 및 지우기" + +#: C/gedit.xml:1859(para) +msgid "" +"To edit a snippet, select it in the list and make changes to its text and " +"activation properties." +msgstr "" +"관용구를 편집하려면, 목록에서 선택한 다음 그 텍스트와 활성화 속성을 바꾸십시" +"오." + +#: C/gedit.xml:1860(para) +msgid "To rename a snippet, click it again in the list." +msgstr "관용구의 이름을 바꾸려면, 목록에서 관용구를 다시 누르십시오." + +#: C/gedit.xml:1861(para) +msgid "" +"To restore a built-in snippet that you have changed, press Revert." +msgstr "" +"직접 바꾼 내장 관용구를 원래대로 복구하려면, 되돌리기를 " +"누르십시오." + +#: C/gedit.xml:1862(para) +msgid "" +"To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +"created yourself." +msgstr "" +"관용구를 지우려면, 목록에서 선택하고 지우기를 누르십시" +"오. 내장 관용구는 지울 수 없고, 직접 만든 관용구만 지울 수 있습니다." + +#: C/gedit.xml:1866(title) +msgid "Snippet Substitutions" +msgstr "관용구 대체" + +#: C/gedit.xml:1867(para) +msgid "" +"In addition to inserting stored text, a snippet can include customizable " +"text, or mark spaces where you can add text once the snippet is inserted in " +"your document." +msgstr "" +"저장한 텍스트를 입력하는 것 외에도, 관용구에는 사용자가 입력하는 텍스트가 들" +"어갈 수 있습니다. 관용구를 문서에 입력한 다음에 입력할 텍스트의 위치를 알려 " +"주기도 합니다." + +#: C/gedit.xml:1871(para) +msgid "You can use the following placeholder codes in snippet text:" +msgstr "관용구 텍스트에서 다음 입력 위치를 사용할 수 있습니다:" + +#: C/gedit.xml:1873(term) +msgid "Tab placeholders" +msgstr "탭 입력 위치" + +#: C/gedit.xml:1875(para) +msgid "" +"$n defines a tab placeholder, " +"where n is any number from 1 upwards." +msgstr "" +"$nn이 1 " +"이상의 숫자인 탭 입력 위치입니다." + +#: C/gedit.xml:1876(para) +msgid "" +"${n:default} defines a tab placeholder with a default value." +msgstr "" +"${n:default}은 기본값에 대한 탭 입력 위치입니다." + +#: C/gedit.xml:1877(para) +msgid "" +"A tab placeholder marks a place in the snippet text where you can add extra " +"text after the snippet is inserted." +msgstr "" +"탭 입력 위치는 관용구 텍스트에서 관용구를 입력한 다음에 추가 텍스트를 입력할 " +"수 있는 위치를 표시합니다." + +#: C/gedit.xml:1878(para) +msgid "" +"To use tab placeholders, insert the snippet as normal. The cursor is placed " +"at the first tab placeholder. Type text, and press Tab to " +"advance to the next tab placeholder. The number in the placeholder code " +"defines the order in which tab advances to each place in the text." +msgstr "탭 포매팅 코드를 사용하려면, 관용구를 평소와 같이 입력합니다. 커서가 첫 번째 탭 위치에 있습니다. 텍스트를 입력하고 Tab 키를 누르면 다음 탭 입력 위치로 이동합니다. 탭 입력 위치 코드의 번호는 탭으로 이동하는 순서를 지정합니다." + +#: C/gedit.xml:1879(para) +msgid "" +"Press ShiftTab to " +"return to the previous tab placeholder. Pressing Tab when " +"there are no more tab placeholders moves the cursor to the end of the " +"snippet text, or to the end placeholder if it exists." +msgstr "ShiftTab 키를 누르면 이전의 탭 입력 위치로 돌아갑니다. 탭 입력 위치가 더 없을 때 Tab 키를 누르면 커서를 관용구 텍스트의 맨 끝으로 옮기거나, 끝 입력 위치가 있으면 거기로 커서를 옮깁니다." + +#: C/gedit.xml:1882(term) +msgid "Mirror placeholders" +msgstr "미러 입력 위치" + +#: C/gedit.xml:1884(para) +msgid "" +"A repeated tab placeholder will mirror the placeholder already defined. This " +"allows you to type in text only once that you want to appear several times " +"in the snippet." +msgstr "" +"반복 입력 위치는 이미 정의한 입력 위치의 텍스트를 따라갑니다. 이 방법으로 관" +"용구에서 여러번 써야 하는 텍스트를 한번만 입력할 수 있습니다." + +#: C/gedit.xml:1887(term) +msgid "End placeholder" +msgstr "끝 입력 위치" + +#: C/gedit.xml:1889(para) +msgid "" +"$0 defines the end placeholder. This allows you to finish " +"working with the snippet with the cursor at a point other than the end of " +"the snippet text." +msgstr "" +"$0이 끝 입력 위치를 지정합니다. 끝 입력 위치를 사용하면 관" +"용구를 관용구 텍스트의 끝이 아닌 커서 위치에서 관용구를 끝마칠 수 있습니다." + +#: C/gedit.xml:1892(term) +msgid "Environmental variables" +msgstr "환경 변수" + +#: C/gedit.xml:1894(para) +msgid "" +"Environmental variable such as $PATH and $HOME are substituted in snippet text. The following variables specific " +"to gedit can also be used:" +msgstr "" +"$PATH$HOME과 같은 환경 변수를 관용구" +"에서 사용할 수 있습니다. gedit 전용의 다음과 같은 " +"변수도 사용할 수 있습니다:" + +#: C/gedit.xml:1896(term) +msgid "$GEDIT_SELECTED_TEXT" +msgstr "$GEDIT_SELECTED_TEXT" + +#: C/gedit.xml:1898(para) +msgid "The currently selected text." +msgstr "현재 선택한 텍스트." + +#: C/gedit.xml:1901(term) +msgid "$GEDIT_FILENAME" +msgstr "$GEDIT_FILENAME" + +#: C/gedit.xml:1903(para) +msgid "" +"The full filename of the document, or an empty string if the document isn't " +"saved yet." +msgstr "문서의 전체 파일 이름, 문서를 저장하지 않았으면 빈 문자열." + +#: C/gedit.xml:1906(term) +msgid "$GEDIT_BASENAME" +msgstr "$GEDIT_BASENAME" + +#: C/gedit.xml:1908(para) +msgid "" +"The basename of the filename of the document, or an empty string if the " +"document isn't saved yet." +msgstr "" +"문서의 파일 이름의 폴더 부분을 제외한 이름, 문서를 저장하지 않았으면 빈 문자" +"열." + +#: C/gedit.xml:1911(term) +msgid "$GEDIT_CURRENT_WORD" +msgstr "$GEDIT_CURRENT_WORD" + +#: C/gedit.xml:1913(para) +msgid "" +"The word at the cursor's location in the document. When this variable is " +"used, the current word will be replaced by the snippet text." +msgstr "" +"문서의 커서 위치에 있는 단어. 이 변수를 사용하면 현재 단어를 관용구로 바꿉니" +"다." + +#: C/gedit.xml:1921(term) +msgid "Shell placeholders" +msgstr "쉘 입력 위치" + +#: C/gedit.xml:1923(para) +msgid "" +"$(cmd) is replaced by the " +"result of executing cmd in a shell." +msgstr "" +"$(cmd)는 쉘에서 " +"cmd 명령어를 실행한 결과로 바뀝니다." + +#: C/gedit.xml:1924(para) +msgid "" +"$(n:cmd) allows you to give this placeholder a reference, where " +"n is any number from 1 upwards. Use " +"$n to use the output from one shell " +"placeholder as input in another." +msgstr "" +"$(n:cmd)로 이 입력 위치를 레퍼런스로 사용할 수 있습니다. 여기서 " +"n은 1 이상의 숫자입니다. " +"$n을 사용하면 한 개의 쉘 입력 위치의 출" +"력 내용을 다른 위치에서도 사용할 수 있습니다." + +#: C/gedit.xml:1927(term) +msgid "Python placeholders" +msgstr "파이썬 입력 위치" + +#: C/gedit.xml:1929(para) +msgid "" +"$<cmd> is replaced by " +"the result of evaluating cmd in the python " +"interpreter." +msgstr "" +"$<cmd>은 파이썬 인터프리" +"터에서 cmd의 값을 계산한 결과로 바뀝니다." + +#: C/gedit.xml:1930(para) +msgid "" +"$<a:cmd>" +" specifies another python placeholder as a dependency, where " +"a gives its order in the snippet. This allows you " +"to use python functions defined in another snippet. To specify several " +"dependencies, separate the numbers with commas thus: $<" +"a,b:cmd>" +msgstr "" +"$<a:cmd>" +"는 다른 파이썬 관용구에 의존성을 지정하고, 여기서 a는 관용구의 순서를 말합니다. 이 기능을 이용해 다른 관용구에 정의" +"한 파이썬 함수를 사용할 수 있습니다. 의존성을 여러 개 지정하려면, 숫자를 쉼표" +"로 구분하십시오: $<a,b:cmd>" + +#: C/gedit.xml:1931(para) +msgid "" +"To use a variable in all other python snippets, declare it as " +"global." +msgstr "" +"다른 파이썬 관용구에서 변수를 사용하려면, global로 선언하" +"십시오." + +#: C/gedit.xml:1940(title) +msgid "Sort Plugin" +msgstr "정렬 플러그인" + +#: C/gedit.xml:1941(para) +msgid "" +"The Sort plugin arranges selected lines of text " +"into alphabetical order." +msgstr "" +"정렬 플러그인으로 선택한 텍스트를 사전 순서로 정렬" +"합니다." + +#: C/gedit.xml:1942(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" +"정렬 동작은 실행을 취소할 수 없으므로, 정렬을 하기 전에 파일을 저장해 놓아야 " +"합니다. 정렬을 한 다음에 저장한 파일로 되돌리려면, 파일" +"되돌리기를 선택하십시오." + +#: C/gedit.xml:1945(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "정렬 플러그인을 사용하려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:1948(para) +msgid "Select the lines of text you want to sort." +msgstr "정렬하려는 텍스트 줄을 선택하십시오." + +#: C/gedit.xml:1950(para) +msgid "" +"Choose EditSort. The Sort dialog opens." +msgstr "" +"편집정렬을 선택하십시오. 정렬 대화 창이 열립니다." + +#: C/gedit.xml:1953(para) +msgid "Choose the options you want for the sort:" +msgstr "정렬에 사용할 옵션을 선택하십시오:" + +#: C/gedit.xml:1956(para) +msgid "" +"To arrange the text in reverse order, select Reverse order." +msgstr "반대 순서로 정렬하려면, 반대 순서를 선택하십시오." + +#: C/gedit.xml:1959(para) +msgid "" +"To delete duplicate lines, select Remove duplicates." +msgstr "" +"같은 줄을 지우려면, 같은 줄 지우기를 선택하십시오." + +#: C/gedit.xml:1962(para) +msgid "To ignore case sensitivity, select Ignore case." +msgstr "" +"대소문자 구별을 무시하려면, 대소문자 무시를 선택하십시" +"오." + +#: C/gedit.xml:1965(para) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"정렬할 때 줄 시작 부분에 있는 문자를 무시하려면, 시작할 열 스핀 상자에서 정렬할 때 사용할 첫 번째 문자를 지정하십시오." + +#: C/gedit.xml:1970(para) +msgid "To perform the sort operation, click Sort." +msgstr "정렬을 시작하려면, 정렬을 누르십시오." + +#: C/gedit.xml:1977(title) +msgid "Spell Checker Plugin" +msgstr "맞춤법 검사 플러그인" + +#: C/gedit.xml:1978(para) +msgid "" +"The Spell Checker plugin checks the spelling in " +"the selected text. You can configure gedit to " +"check the spelling automatically, or you can check the spelling manually, in " +"the specified language. The language setting, and the autocheck spelling " +"properties, apply per document. To use the Spell checker plugin, perform the " +"following steps:" +msgstr "맞춤법 검사 플러그인은 선택한 텍스트의 맞춤법을 검사합니다. 자동으로 맞춤법을 검사하도록 gedit를 설정할 수 있고, 수동으로 맞춤법을 지정한 언어로 검사할 수도 있습니다. 언어 설정 및 맞춤법 자동 검사 속성은 문서마다 적용됩니다. 맞춤법 검사 플러그인을 사용하려면, 다음 순서대로 하십시오:" + +#: C/gedit.xml:1980(para) +msgid "" +"Choose ToolsSet Language to display the Set language " +"dialog. Select the appropriate language from the list. Click OK to close the Set language dialog." +msgstr "" +"도구언어 설정을 선택하면 언어 설정 대화 창을 표시합니다. " +"목록에서 원하는 언어를 선택하십시오. 확인을을 눌러 " +"언어 설정 대화 창을 닫으십시오." + +#: C/gedit.xml:1983(para) +msgid "" +"To check the spelling automatically, choose ToolsAutocheck Spelling. To unset " +"the automatic spell check, choose ToolsAutocheck Spelling again. " +"When automatic spell checking is set, an icon is displayed beside the " +"Autocheck Spelling menu item. Automatic spell " +"checking is unset by default, each time gedit " +"starts." +msgstr "맞춤법을 자동으로 검사하려면, 도구맞춤법 자동 검사를 선택하십시오. 맞춤법 자동 검사를 사용하지 않으려면, 도구맞춤법 자동 검사를 다시 선택하십시오. 맞춤법 자동 검사를 사용하면, 맞춤법 자동 검사를 메뉴 항목 옆에 아이콘을 표시합니다. 맞춤법 자동 검사는 gedit를 시작할 때 기본값으로 사용하지 않는 상태입니다." + +#: C/gedit.xml:1984(para) +msgid "" +"Unknown spellings are displayed in a different color, and underlined. Right-" +"click on an unknown spelling, then select Spelling Suggestions from the popup menu:" +msgstr "" +"알려지지 않은 맞춤법은 다른 색과 밑줄로 표시합니다. 알려지지 않은 맞춤법에 마" +"우스 오른쪽 단추를 누르고, 팝업 메뉴에서 맞춤법 추천을 선" +"택하십시오:" + +#: C/gedit.xml:1987(para) +msgid "" +"To replace the unknown spelling with another spelling in the list, select " +"the replacement spelling from the Spelling Suggestions " +"popup menu." +msgstr "" +"알려지지 않은 맞춤법을 목록의 다른 맞춤법으로 바꾸려면, 맞춤법 추천" +" 팝업 메뉴에서 바꿀 맞춤법을 선택하십시오." + +#: C/gedit.xml:1990(para) +msgid "" +"To add the unknown spelling to your personal dictionary, select " +"Spelling SuggestionsAdd." +msgstr "" +"알려지지 않은 맞춤법을 개인 사전에 추가하려면, 맞춤법 추" +"천추가를 선택하십시오." + +#: C/gedit.xml:1993(para) +msgid "" +"To ignore all occurrences of the unknown spelling, so that they are no " +"longer flagged as unknown but are not added to your personal dictionary, " +"select Spelling SuggestionsIgnore All. The unknown word " +"is ignored in the current gedit session only." +msgstr "" +"알려지지 않은 맞춤법을 모두 무시해서 알려지지 않았다고 표시하지 않게 하면서 " +"개인 사전에는 추가하지 않으려면, 맞춤법 추천모두 무시를 선택하십시오. 현" +"재 gedit 세션에서만 알려지지 않은 단어를 무시합니" +"다." + +#: C/gedit.xml:1998(para) +msgid "" +"To check the spelling manually, choose ToolsCheck Spelling." +msgstr "" +"수동으로 맞춤법을 검사하려면, 도구맞춤법 검사를 선택하십시오." + +#: C/gedit.xml:2000(para) +msgid "" +"If there are no spelling errors, an Information dialog " +"displays a message stating that the document does not contain misspelled " +"words. Click OK to close the Information dialog." +msgstr "" +"맞춤법 오류가 없으면, 정보 대화 창에서 이 문서 안에 맞춤" +"법이 틀린 단어가 없다는 메세지를 표시합니다. 확인을 눌" +"러 정보 대화 창을 닫으십시오." + +#: C/gedit.xml:2002(para) +msgid "" +"If there are spelling errors, the Check Spelling dialog " +"is displayed:" +msgstr "" +"맞춤법 오류가 있으면, 맞춤법 검사 대화 창을 표시합니다:" + +#: C/gedit.xml:2005(para) +msgid "" +"The Misspelled word is displayed at the top of the " +"dialog." +msgstr "맞춤법이 틀린 단어를 대화 창의 위에 표시합니다." + +#: C/gedit.xml:2008(para) +msgid "" +"A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +"selecting a spelling from the Suggestions list, or you " +"can enter text directly into the Change to text box." +msgstr "" +"추천하는 알려진 맞춤법을 바꿀 단어 텍스트 상자에 표시합" +"니다. 추천 목록에서 다른 맞춤법을 고르면 다른 알려진 맞" +"춤법을 이 텍스트 상자에 표시합니다. 아니면 직접 바꿀 단어 텍스트 상자에 텍스트를 입력할 수도 있습니다." + +#: C/gedit.xml:2011(para) +msgid "" +"To check the spelling of the text in the Change to text " +"box, click Check Word. If this is a known word, the " +"Suggestions list is replaced with the text " +"(correct spelling). If the word is not known, new entries appear " +"in the Suggestions list." +msgstr "" +"바꿀 단어 텍스트 상자의 맞춤법을 검사하려면, " +"단어 검사를 누르십시오. 알려진 단어인 경우, 추천목록이 (올바른 맞춤법)이라는 텍스트로 바뀝니다. " +"그 단어가 알려지지 않은 경우, 추천목록에 새 항목이 나타" +"납니다." + +#: C/gedit.xml:2014(para) +msgid "" +"To ignore the current occurrence of the unknown word, click " +"Ignore. To ignore all occurrences of the unknown " +"word, click Ignore All. The unknown word is ignored " +"in the current gedit session only." +msgstr "" +"현재 알려지지 않은 단어를 무시하려면, 무시를 누르십시" +"오. 알려지지 않은 단어를 모두 무시하려면, 모두 무시를 " +"누르십시오. 현재 gedit 세션에서만 알려지지 않은 단" +"어를 무시합니다." + +#: C/gedit.xml:2017(para) +msgid "" +"To change the current occurrence of the unknown word to the text in the " +"Change to text box, click Change. To change all occurrences of the unknown word to the text in the " +"Change to text box, click Change All." +msgstr "" +"현재 알려지지 않은 단어를 바꿀 단어 텍스트 상자에 들어 " +"있는 텍스트로 바꾸려면, 바꾸기를 누르십시오. 그 알려지" +"지 않은 단어를 모두 바꿀 단어 텍스트 상자의 텍스트로 바" +"꾸려면, 모두 바꾸기를 누르십시오." + +#: C/gedit.xml:2020(para) +msgid "" +"To add the unknown word to your personal dictionary, click Add " +"word." +msgstr "" +"알려지지 않은 단어를 개인 사전에 추가하려면, 단어 추가" +"를 누르십시오." + +#: C/gedit.xml:2023(para) +msgid "" +"To close the Check Spelling dialog, click " +"Close." +msgstr "" +"맞춤법 검사 대화 창을 닫으려면, 닫기를 누르십시오." + +#: C/gedit.xml:2032(title) +msgid "Tag List Plugin" +msgstr "태그 목록 플러그인" + +#: C/gedit.xml:2033(para) +msgid "" +"The Tag List plugin allows you to insert common " +"tags from a list in the side pane." +msgstr "" +"태그 목록 플러그인으로 가장자리 창의 목록에서 자" +"주 사용하는 태그를 입력할 수 있습니다." + +#: C/gedit.xml:2034(para) +msgid "To use the Tag List plugin, perform the following steps:" +msgstr "태그 목록 플러그인을 사용하려면 다음 순서대로 하십시오:" + +#: C/gedit.xml:2036(para) +msgid "" +"Choose ViewSide Pane." +msgstr "" +"보기가장자리 창을 선택하십시오." + +#: C/gedit.xml:2040(para) +msgid "" +"By default, the side pane shows a tab containing a list of open documents. " +"Click on the tab showing a + icon at the bottom of the side pane to show the " +"tag list tab." +msgstr "" +"기본값으로 가장자리 창은 열려 있는 문서의 목록이 들어 있는 탭을 표시합니다. " +"가장자리 창의 아래에 있는 + 아이콘을 누르면 태그 목록 탭을 표시합니다." + +#: C/gedit.xml:2042(para) +msgid "" +"Select the appropriate tag category from the drop-down list. For example, " +"HTML - Tags." +msgstr "" +"드롭다운 목록에서 필요한 태그 분류를 선택하십시오. 예를 들어 HTML " +"- 태그를 선택하십시오." + +#: C/gedit.xml:2045(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "태그 목록을 스크롤해서 필요한 태그를 찾으십시오." + +#: C/gedit.xml:2048(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" +"현재 파일의 커서 위치에 태그를 넣으려면, 태그 목록에서 해당 태그를 두 번 누르" +"십시오. 다음과 같이 태그를 넣을 수도 있습니다:" + +#: C/gedit.xml:2050(para) +msgid "" +"To insert a tag in the current file and change the focus from the side pane " +"to the display area, press Return." +msgstr "현재 파일에 태그를 넣고 포커스를 가장자리 창에서 표시 영역으로 바꾸려면, Return 키를 누르십시오." + +#: C/gedit.xml:2053(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftReturn." +msgstr "현재 파일에 태그를 넣고 포커스를 태그 목록 플러그인 창에 유지하려면, ShiftReturn 키를 누르십시오." + +#: C/gedit.xml:2062(title) +msgid "User Name Plugin" +msgstr "사용자 이름 플러그인" + +#: C/gedit.xml:2063(para) +msgid "" +"The User name plugin inserts the username of the " +"current user into the document." +msgstr "" +"사용자 이름 플러그인은 현재 사용자의 사용자 이름" +"을 문서에 넣습니다." + +#: C/gedit.xml:2064(para) +msgid "" +"To insert your username at the cursor position, choose " +"EditInsert User Name." +msgstr "" +"커서 위치에 사용자 이름을 넣으려면, 편집사용자 이름 넣기를 선택하십시" +"오." + +#: C/gedit.xml:2066(para) +msgid "" +"This plugin is mostly provided as an example of how to create your own " +"plugins. For more information on creating plugins, see the gedit website." +msgstr "" +"자기만의 플러그인을 만드는 방법에 대한 예제로서의 기능이 이 플러그인의 주된 " +"목적입니다. 플러그인을 만드는 방법에 대해 좀 더 알고 싶으시면, gedit 웹사이트를 참고하십시오." + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +#: C/gedit.xml:0(None) +msgid "translator-credits" +msgstr "" +"Sun Microsystems, 2002.\n" +"류창우 , 2007." + +#~ msgid "" +#~ "To undo a change you have made, choose EditUndo. To reverse this " +#~ "action, choose EditRedo. The number of previous edits that you can undo " +#~ "is determined by the Undo limit setting in the " +#~ "Editor tabbed section of the Preferences dialog: see ." +#~ msgstr "" +#~ "편집한 내용을 취소하려면 편집" +#~ "실행 취소를 선택하십시오. 취소한 내용을 되돌리" +#~ "려면 편집다시 실행을 선택하십시오. 이전에 편집한 내용 중 실행 취소" +#~ "할 수 있는 회수는 기본 설정 대화 상자의 편" +#~ "집기 탭 섹션에 있는 실행 취소 제한 설정에 " +#~ "따라 다릅니다. 부분을 참고하십시오." + +#~ msgid "" +#~ "To position the cursor on a specific line in the current file, perform " +#~ "the following steps:" +#~ msgstr "커서를 현재 파일의 특정 줄로 옮기려면, 다음 순서대로 하십시오:" + +#~ msgid "" +#~ "Choose SearchGo to Line to display the Go to Line " +#~ "dialog." +#~ msgstr "" +#~ "찾기줄로 이동을 선택하십시오. 줄로 이동 대화 창을 표시" +#~ "합니다." + +#~ msgid "" +#~ "Click Go to Line. The application moves the cursor " +#~ "to the line number that you specify." +#~ msgstr "" +#~ "줄로 이동을 누르십시오. 커서가 지정한 번호의 줄로 " +#~ "이동합니다." + +#~ msgid "" +#~ "To close the Go to Line dialog, click " +#~ "Close." +#~ msgstr "" +#~ "줄로 이동 대화 창을 닫으려면, 닫기를 누르십시오." + +#~ msgid "F7" +#~ msgstr "F7" + +#~ msgid "Undo" +#~ msgstr "실행 취소" + +# FIXME: obsolete feature +#~ msgid "" +#~ "Select the Limit to ... actions option to set a " +#~ "limit on the number of editing actions that you can undo. Use the spin " +#~ "box to specify the maximum number of actions that you can undo." +#~ msgstr "" +#~ "... 개 작업으로 제한 옵션을 선택하면 실행 취소할 수 " +#~ "있는 편집 작업의 개수를 제한할 수 있습니다. 스핀 상자를 사용해 실행 취소" +#~ "할 수 있는 최대 작업 개수를 지정합니다." + +# FIXME: obsolete feature +#~ msgid "" +#~ "Select the Unlimited undo option to set no limit on " +#~ "the number of editing actions that you can undo." +#~ msgstr "" +#~ "무제한 실행 취소 옵션을 선택하면 실행 취소할 수 있는 " +#~ "편집 작업 수에 제한이 없습니다." diff --git a/help/lv/lv.po b/help/lv/lv.po new file mode 100644 index 0000000..30cb550 --- /dev/null +++ b/help/lv/lv.po @@ -0,0 +1,4234 @@ +# Latvian translation for gedit. +# Copyright (C) 2012 Anita Reitere, Tomass Andersons, Matīss Baldonis +# This file is distributed under the same license as the gedit package. +# +# Anita Reitere , 2012. +# Tomass Andersons, 2011-2012. +# Matīss Baldonis, 2011-2012. +# Rūdolfs Mazurs , 2012, 2013, 2014, 2016, 2017. +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2017-03-27 18:08+0000\n" +"PO-Revision-Date: 2017-04-09 14:33+0200\n" +"Last-Translator: Rūdolfs Mazurs \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 :" +" 2);\n" +"X-Generator: Lokalize 2.0\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Tomass Andersons\n" +"Matīss Baldonis\n" +"Anita Reitere " + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Mainīt teksta un fona krāsu gedit lietotnē." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:13 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:10 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:12 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:10 C/gedit-plugin-guide.page:10 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:14 +#: C/gedit-plugins-insert-date-time.page:14 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:9 +#: C/gedit-plugins-quick-open.page:10 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:13 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:13 C/gedit-save-file.page:13 +#: C/gedit-search.page:11 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:17 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:19 C/gedit-change-color-scheme.page:24 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:22 C/gedit-replace.page:25 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:30 +msgid "Change the color scheme" +msgstr "Mainīt krāsu shēmu" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:32 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit ir vairākas atšķirīgas krāsu shēmas, kas ļauj mainīt " +"galvenā teksta loga izskatu." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:36 +msgid "To change the color scheme:" +msgstr "Lai mainītu krāsu shēmu:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:38 +msgid "" +"Open the gedit menu from the top bar, then select " +"PreferencesFont & Colors." +msgstr "" +"Atveriet gedit izvēlni augšējā joslā, tad " +"izvēlieties IestatījumiFonts un " +"krāsas." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:43 +msgid "Choose your desired color scheme." +msgstr "Izvēlieties vēlamo krāsu shēmu." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:47 +msgid "The new color scheme will be applied immediately." +msgstr "Jaunā krāsu shēma tiks pielietota tūlīt." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:50 +msgid "Use a Custom Color Scheme" +msgstr "Izmantot pielāgotu krāsu shēmu" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:56 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Jūs varat izmantot arī citu lietotāju radītas krāsu shēmas, vai arī izveidot " +"un lietot savas krāsu shēmas." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:59 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instrukcijas pielāgotu krāsu shēmu instalēšanai, kā arī pieejamo krāsu shēmu " +"piemēri, ir atrodami gedit wiki." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Izmatot pielāgotu fontu tekstam gedit lietotnē." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Nomainīt noklusēto fontu" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"Pēc noklusējuma gedit izmantos sistēmas fiksētā platuma fontu, " +"bet gedit noklusēto fontu var mainīt pēc jūsu izvēles." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Lai nomainītu noklusēto fontu gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Izvēlieties gedit Iestatījumi Fonts un krāsas." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Izņemiet ķeksīti līdzās teikumam \"Lietot sistēmas fiksētā platuma fontu\"." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Spiediet uz pašreizējā fonta nosaukuma. gedit atvērs fontu " +"izvēlētāja logu, kas jums ļaus redzēt vairāk fontu un izvēlēties jums vēlamo." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Kad esat izvēlējies jaunu fontu, izmantojiet slīdni zem fontu " +"saraksta, lai iestatītu noklusējuma fonta izmēru." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Spiediet pogu Izvēlēties, un pēc tam Aizvērt." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Iziet no datnes, ko izmantojat." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:17 +msgid "Close a file" +msgstr "Aizvērt datni" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:19 +msgid "" +"To close a file in gedit, select File " +"Close. Alternately, you can click the small \"X\" that " +"appears on the right-side of the file's tab, or press Ctrl W." +msgstr "" +"Lai aizvērtu datni gedit, izvēlieties DatneAizvērt vai veiciet klikšķi uz \"X\" datnes cilnes " +"labajā pusē, vai nospiediet CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Jebkura no šīm darbībām aizvērs datni gedit. Ja datnē ir " +"nesaglabātas izmaiņas, gedit piedāvās tās saglabāt, pirms aizvērt " +"datni." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Atvērt jaunu datni rediģēšanai." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:16 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:14 +#: C/gedit-replace.page:29 C/gedit-save-file.page:21 C/gedit-search.page:23 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Izveidot jaunu datni" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"Vieglākais veids, kā ar gedit izveidot jaunu datni — spiediet uz " +"pogas Izveidot jaunu dokumentu rīkjoslas kreisajā pusē, vai " +"spiediet CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Jebkura no šīm darbībām izveidos jaunu datni gedit logā. Ja jums " +"gedit jau ir atvērtas citas datnes, jaunā datne parādīsies kā " +"jauna cilne pa labi no jau esošajām." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Izmantot administratora privilēģijas, lai rediģētu datni." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Rediģēt datni kā root lietotājs" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Rediģēt datnes administratīvā lietotāja lomā ir potenciāli bīstami, jo ir " +"iespējams sabojāt sistēmu. Veicot darbības kā root lietotājs, esiet " +"piesardzīgi." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Lai rediģētu datnes kā root, palaidiet gedit no termināļa, " +"ievadot:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Lietojot sudo komandu, būs pareizi jāievada jūsu parole, pirms " +"gedit tiks palaista." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Alternatīva sudo komandai ir administratīvo tiesību iegūšana, " +"ievadot:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Pēc tam varat palaist gedit, ievadot gedit komandu." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Kad gedit ir palaista ar administratīvajām tiesībām, šīs tiesības " +"paliks spēkā līdz pat gedit aizvēršanai." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Iemācīties pamatus, kā strādāt ar datnēm gedit lietotnē." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Pamatdarbības ar datnēm — datņu atvēršana, aizvēršana un saglabāšana" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Jauniem gedit lietotājiem šīs sadaļas palīdzēs izveidot, " +"saglabāt, atvērt un aizvērt datnes." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Iestatīt gedit, lai tas aizņemtu visu ekrānu." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:22 +msgid "Use fullscreen mode" +msgstr "Lietot pilnekrāna režīmu" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:24 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Strādājot ar lielu dokumentu, var noderēt gedit pilnekrāna " +"režīms. Šajā režīmā tiek noslēpta izvēlņu josla, ciļņu " +"josla un rīku josla, atstājot vairāk vietas tekstam un " +"ļaujot jums labāk koncentrēties darbam." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:31 +msgid "Turn on fullscreen mode" +msgstr "Ieslēgt pilnekrāna režīmu" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:32 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Lai ieslēgtu pilnekrāna režīmu, nospiediet F11. gedit " +"izvēļņu, loga virsraksta un ciļņu joslas tiks paslēptas, un jūs redzēsiet " +"tikai pašlaik atvērtās datnes tekstu." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:35 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Lai veiktu kādu darbību no gedit izvēlnes, strādājot pilnekrāna " +"režīmā, pārvietojiet peles rādītāju uz ekrāna augšējo malu. Gedit " +"izvēlņu josla atkal parādīsies, un jūs varēsiet izvēlēties vēlamo darbību." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:41 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Lai pārslēgtos starp atvērtajām cilnēm pilnekrāna režīmā, nospiediet vai nu " +"CtrlAltPgUp, vai " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:49 +msgid "Turn off fullscreen mode" +msgstr "Izslēgt pilnekrāna režīmu" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:50 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Lai izslēgtu pilnekrāna režīmu un atgrieztos pie standarta gedit " +"loga, spiediet F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:52 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select Leave Fullscreen." +msgstr "" +"Jūs varat arī pārvietot peles rādītāju augšup, kamēr parādās izvēļņu " +"josla. Tad izvēlieties Pamest pilnekrānu." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Izmantot gedit sānu rūti datņu pārlūku." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side pane" +msgstr "Skatīt un atvērt datnes, izmantojot sānu rūti" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side pane." +msgstr "" +"Parastākais veids, kā pārslēgties starp datnēm gedit, ir ar " +"cilnēm gedit loga augšā. Tomēr dažkārt, it īpaši strādājot ar " +"lielu atvērtu datņu skaitu, var būt ērtāk izmantot sānu rūti." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side pane, select View " +"Side Pane, or just press the F9 key." +msgstr "" +"Lai ieslēgtu sānu rūti, izvēlieties Skats " +"Sānu rūts vai nospiediet F9 taustiņu." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "" +"Sānu rūti var atvērt vai aizvērt jebkurā brīdī, nospiežot " +"F9 taustiņu." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:38 +#: C/gedit-plugins-file-browser.page:32 +msgid "Opening files from the side pane" +msgstr "Datņu atvēršana no sānu rūts" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:39 +msgid "" +"To open files from the side pane, first open the side pane by selecting View Side Pane, " +"then click on the file-browser icon at the bottom of the pane." +msgstr "" +"Lai atvērtu datnes no sānu rūts, vispirms atveriet sānu " +"rūti, izvēloties SkatsSānu rūts, tad veiciet klikšķi uz datņu pārlūka ikonas rūts apakšā." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +"locate and open your desired files." +msgstr "" +"Tas ieslēgs sānu rūts datņu pārlūka režīmu. Izmantojot " +"navigācijas pogas rūts augšā, var atrast un atvērt vēlamās datnes." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side pane to switch between open files" +msgstr "Pārslēgties starp atvērtajām datnēm, izmantojot sānu rūti" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side pane to switch " +"between open files. To activate the file browser portion of the side " +"pane, click on the file icon at the bottom of the side " +"pane." +msgstr "" +"Kad atvērtas vairākas datnes, starp tām var pārslēgties ar sānu rūti. Lai " +"ieslēgtu sānu rūts datņu pārlūka daļu, veiciet klikšķi uz " +"datnes ikonas sānu rūts apakšā." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:66 +msgid "" +"Clicking on any file name in the side pane will open that file " +"for editing." +msgstr "" +"Klikšķis uz jebkuras datnes nosaukuma sānu rūtī atvērs šo datni " +"rediģēšanai." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Atvērt datnes, lai sāktu ar tām strādāt." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Atvērt datni vai datņu kopu" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Lai atvērtu datni gedit, veiciet klikšķi uz pogas Atvērt, vai nospiediet CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Tad parādīsies dialoglodziņš Atvērt. Izvēlieties atveramo datni, " +"izmantojot peli vai tastatūru, un spiediet pogu Atvērt. Izvēlētā " +"datne tiks atvērta jaunā cilnē." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Lai aizvērtu dialoglodziņu Atvērt, neatverot nevienu datni, " +"spiediet Atcelt." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Izmantojot Ctrl un Shift taustiņus, var atvērt " +"vairākas datnes vienlaikus. Ja, veicot klikšķi uz katras vajadzīgās datnes, " +"tur nospiestu Ctrl taustiņu, tad, nospiežot pogu Atvērt, tiks atvērtas visas izvēlētās datnes." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Ja izvēles laikā pietur Shift taustiņu, tiks atvērta pirmā un " +"pēdējā datne, uz kuriem veikts klikšķis, kā arī visas datnes, kas sarakstā " +"atrodas starp tām." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Piekļūt datnēm, kas ir saglabātas uz cita datora." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Atvērt datni, kas atrodas uz servera" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Lai atvērtu datni uz servera ar gedit, vajadzīgi daži tehniski " +"fakti par attiecīgo serveri. Piemēram, jāzina servera IP adrese vai URL, kā " +"arī servera tips (piemēram, HTTP, FTP u.tml.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Turklāt daži serveri ierobežo ar to datnēm veicamās darbības. Piemēram, jums " +"var būt iespēja atvērt datni, kas atrodas uz servera, bet datni ar veiktajām " +"izmaiņām nāksies saglabāt uz sava datora." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Ņemot vērā šos brīdinājumus, datni no servera atvērt ar gedit var " +"šādi:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "" +"Choose FileOpen to display the " +"Open Files dialog." +msgstr "" +"Izvēlieties DatneAtvērt, lai parādītu " +"dialoglodziņuAtvērt datnes." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Select the Pencil icon near the top of the Open Files " +"dialog." +msgstr "" +"Izvēlieties zīmuļa ikonu dialoglodziņa Atvērt datnes " +"augšā." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Ievadiet attiecīgā servera IP adresi vai URL." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Atrodiet un izvēlieties datni, ko vēlaties atvērt." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character coding drop-down list to select the appropriate character " +"coding." +msgstr "Izvēlieties atbilstošo rakstzīmju kodējumu no izkrītošās izvēlnes." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:43 +msgid "Click Open." +msgstr "Spiediet pogu Atvērt." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Derīgi URI tipi ir http:, ftp:, file:, un visas metodes, ko atbalsta " +"gvfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Datnes no dažiem URI tipiem tiek atvērti tikai lasīšanas režīmā, un izmaiņas " +"jāsaglabā citviet. Piemēram, HTTP atļauj tikai datņu lasīšanu. Datnes, ko " +"atver no FTP, ir tikai lasāmas, jo ne visi FTP serveri atbalsta attālināto " +"datņu saglabāšanu." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Piekļūt datnēm, kas ir nesen atjauninātas." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:16 +msgid "Reopen a recently-used file" +msgstr "Atvērt nesen lietotu datni" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:18 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"Pēc noklusējuma gedit nodrošina ērtu pieeju pieciem nesen " +"lietotām datnēm. Lai atvērtu nesen lietotu datni:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:21 +msgid "" +"Click the downward-facing arrow to the right of the Open button." +msgstr "Nospiediet lejupvērsto bultiņu pa labi no pogas Atvērt." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "gedit parādīs piecu pēdējo lietoto datņu sarakstu." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:25 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Izvēlieties vajadzīgo datni, un tās tiks atvērta jaunā cilnē." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:28 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"Lai mainītu nesen lietoto datņu skaitu sarakstā, jāizmanto lietotne " +"dconf-editor." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:32 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Palaidiet dconf-editor un izvēlieties org " +"gnomegeditpreferencesui max-" +"recents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:35 +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Izpildiet dubultklikšķi uz skaitļa līdzās max-recents un " +"ierakstiet vēlamo vērtību." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:7 +msgid "Use plugins to customize how gedit works for you." +msgstr "Izmantot spraudņus, lai pielāgotu gedit savām vajadzībām." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:16 +msgid "Configure and use gedit plugins" +msgstr "Konfigurēt un lietot gedit spraudņus" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:17 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Ar gedit var paveikt vairāk, lietojot spraudņus. Daži spraudņi " +"jau ir instalēti, bet daudzi citi ir pieejami papildus." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:21 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Daudzas Linux distribūcijas piedāvā vairākus gedit spraudņus " +"gedit-plugins pakotnē. Instalējiet pakotni gedit-plugins, lai padarītu šos spraudņus pieejamus gedit." + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:26 +msgid "Default gedit Plugins" +msgstr "Noklusētie gedit spraudņi" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:30 +msgid "Additional gedit Plugins" +msgstr "Papildu gedit spraudņi" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:10 +#: C/gedit-plugins-insert-date-time.page:9 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:9 +#: C/gedit-replace.page:17 C/gedit-search.page:15 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Mainīt izvēlēta teksta burtu reģistru (lielie, mazie burti)." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Mainīt burtu reģistru" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Šis spraudnis palīdz mainīt burtu reģistru izvēlētajā teksta daļā. To var " +"izmantot, lai pārvērstu visu tekstu mazos vai lielos burtos, mainītu katra " +"burta reģistru uz pretējo, vai sāktu katru vārdu ar lielo burtu. Lai " +"ieslēgtu šo spraudni, izvēlieties geditIestatījumiSpraudņiMainīt " +"burtu reģistru." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Kad spraudnis Mainīt burtu reģistru ir ieslēgts, to var lietot, " +"veicot šādus soļus:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Iezīmējiet teksta daļu, kuru vēlaties mainīt." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Izvēlieties geditMainīt reģistru" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Izvēlieties vajadzīgo teksta formatēšanas iespēju." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Teksta formatēšanas izmaiņas tiks veiktas nekavējoties." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Komanda Pārslēgt reģistru pārveidos visus mazos burtus par " +"lielajiem burtiem un visus lielos burtus par mazajiem." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Komanda Virsraksta reģistrs pārveidos katra vārda pirmo burtu par " +"lielo burtu. Visi pārējie burti tiks pārveidoti par mazajiem burtiem." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Ja nekas nav iezīmēts, iespēja Mainīt reģistru nebūs pieejama. Lai " +"izmantotu šo iespēju, jāiezīmē teksts, kuram mainīt reģistru." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Skatīt dokumenta statistiku." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Dokumenta statistika" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Spraudnis Dokumenta statistika parāda dažādu statistikas " +"informāciju par pašreizējo dokumentu. Lai ieslēgtu šo spraudni, izvēlieties " +"geditIestatījumiSpraudņiDokumenta statistika." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Dokumenta statistikas lietošana" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Kad spraudnis ir ieslēgts, lietojiet to, izvēloties RīkiDokumenta statistika. Dokumenta statistikas " +"informācija, tai skaitā vārdu, rindu, rakstzīmju (ar un bez atstarpēm) " +"skaits un datnes izmērs baitos, tiks parādīta atsevišķā logā." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Dokumenta statistiku var izmantot arī, lai skatītu informāciju " +"tikai par dokumenta daļu. Lai veiktu šo darbību, iezīmējiet izpētāmo teksta " +"daļu ar peles radītāju, un tad izvēlieties RīkiDokumenta statistika. Gedit parādīs " +"informāciju gan par visu jūsu dokumentu, gan par iezīmētoteksta daļu." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Apstrādāt atvērtās datnes ar skriptiem un mijiedarboties ar citām lietotnēm." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Ārējie rīki" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Spraudnis Ārējie rīki var palīdzēt vienkāršot bieži veicamos " +"uzdevumus. Tas paplašina gedit funkcionalitāti ar iespējām " +"darbināt skriptus gedit un mijiedarboties ar citām programmām. " +"Lai ieslēgtu spraudni Ārējie rīki, izvēlieties gedit IestatījumiSpraudņiĀrējie rīki." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Konfigurēt Ārējo rīku spraudni" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Kad spraudnis ir ieslēgts, jums vajadzēs to nokonfigurēt atbilstoši savām " +"vajadzībām. Konfigurācijas opcijas ir pieejamas, izvēloties " +"RīkiPārvaldīt ārējos rīkus." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Šis spraudnis ir domāts pieredzējušiem lietotājiem, un ir nepieciešamas " +"zināšanas darbā ar skriptiem, lai to izmantotu efektīvi. Lietojiet šo " +"spraudni uzmanīgi, jo kļūdas skriptos var ietekmēt jūsu darbu neparedzētā " +"veidā." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:17 +msgid "Use the side pane to browse and open files." +msgstr "Izmantot sānu rūti, lai pārlūkotu un atvērtu datnes." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:20 +msgid "File browser pane" +msgstr "Datņu pārlūka rūts" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:22 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side pane, giving you easy access to your frequently-" +"used files." +msgstr "" +"Atkarībā, kā jūs lietojat gedit, jums varētu noderēt Datņu " +"pārlūka rūts spraudnis. Šis spraudnis iekļauj datņu pārlūku " +"sānu rūtī, ļaujot viegli piekļūt bieži izmantotajām datnēm." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:27 +msgid "" +"You can enable the Side Pane by selecting geditPreferences PluginsFile Browser Pane." +msgstr "" +"Jūs varat ieslēgt šo sānu rūti, izvēloties geditIestatījumiSpraudņiDatņu pārlūka rūts." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:33 +msgid "" +"To activate and use the side pane, select ViewSide pane (or just press F9), and then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" +"Lai aktivizētu un izmantotu sānu rūti, izvēlieties " +"SkatsSānu rūts (vai nospiediet " +"F9), un tad veiciet klikšķi uz datņu pārlūka ikonas " +"rūts apakšā." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:17 +msgid "Insert the current date/time at the cursor position." +msgstr "Ievietot tagadējo datumu/laiku kursora pozīcijā." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:20 +msgid "Insert date/time" +msgstr "Ievietot datumu/laiku" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:22 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select gedit PreferencesPlugins Insert Date/" +"Time. To use the plugin, press EditInsert Date and Time." +msgstr "" +"Kā norāda šī spraudņa nosaukums, Ievietot datumu/laiku ievieto " +"datumu un/vai laiku esošajā kursora pozīcijā. Lai ieslēgtu šo spraudni, " +"izvēlieties geditIestatījumiSpraudņiIevietot datumu/laiku. Lai lietotu spraudni, spiediet RediģētIevietot datumu un laiku." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:29 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"geditPreferences PluginsInsert Date/TimeConfigure." +msgstr "" +"Bez papildu iestatījumiem spraudnis Ievietot datumu/laiku katru " +"reizi prasīs vēlamo datuma/laika formātu. Bet jūs varat norādīt noklusēto " +"datuma un laika formātu, izvēloties geditIestatījumiSpraudņiIevietot datumu/laikuIestatījumi." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Kā instalēt citus spraudņus." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Papildu gedit spraudņi" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Instalējot papildu spraudņus, jūs iegūstat funkcionalitāti, kas nav pieejama " +"noklusējuma gedit un gedit-plugins pakas spraudņos. Ir " +"pieejams tiešsaistes " +"papildu spraudņu saraksts." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Lai veiktu papildu spraudņa instalēšanu, nepieciešams to lejupielādēt, " +"ievietot datnes pareizajā direktorijā un aktivizēt spraudni." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Parasti spraudni var lejupielādēt no tā tīmekļa vietnes, bet var arī " +"gadīties, ka jāizmanto versiju vadības programma, piemēram, git, " +" bazaar vai subversion, lai kopētu spraudņa " +"programmatūras krātuvi no interneta. Skatiet spraudņa dokumentāciju, lai " +"uzzinātu, kā iegūt attiecīgo spraudni." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Ievietojiet spraudņa datnes direktorijā /home/lietotājvārds/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "Protams, aizstājiet vārdu username ar jūsu lietotājvārdu." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins [Name " +"of Plugin] to enable the plugin." +msgstr "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins[Name of " +"Plugin] to enable the plugin." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:45 +msgid "Click Close." +msgstr "Spiediet pogu Aizvērt." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:48 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Kad spraudnis ir ieslēgts, tam vajadzētu būt pieejamam jūsu lietošanai." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:52 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Mape .local pēc noklusējuma ir paslēpta. Lai skatītu to un " +"citas apslēptās datnes, izvēlieties SkatsRādīt " +"slēptās datnes, vai nospiediet CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:59 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Ja direktorija .local/share/gedit/plugins/ jūsu sistēmā " +"neatrodas, jums vajadzēs to izveidot." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Emacs, Kate un Vim-stila modeline atbalsts gedit redaktoram." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Režīma rindiņas" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Spraudnis Režīma rindiņas ļauj gedit analizēt teksta " +"rindas datnes sākumā un beigās, un tad pielietot datnei atbilstošus " +"dokumenta iestatījumus. Tas atbalsta daļu no iespējām, ko izmanto " +"Emacs, Kate un Vim teksta redaktori." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Lai ieslēgtu spraudni Režīma rindiņas, izvēlieties geditIestatījumiSpraudņiRežīma rindiņas." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Vispārējie režīma rindiņu iestatījumi" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "Ar gedit režīma rindiņām var iestatīt šādas opcijas:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tabulēšanas zīmes platums" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Atkāpes platums" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Ievietot atstarpes tabulēšanas zīmju vietā" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Teksta aplaušana" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Labās apmales platums" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Režīma rindiņu iestatījumiem ir augstāka prioritāte par tiem, kas norādīti " +"iestatījumu dialogā." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs režīma rindiņas" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Dokumenta pirmās divas rindas var būt Emacs režīma rindiņas, un " +"gedit atbalsta šādas Emacs režīma rindiņu iespējas:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Lai iegūtu vairāk informācijas par Emacs režīma rindiņām, " +"apmeklējiet GNU Emacs rokasgrāmatu." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate režīma rindiņas" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Pirmās un pēdējās desmit dokumenta rindas var būt Kate režīma " +"rindiņas, un gedit atbalsta šādus Kate režīma rindiņu " +"iestatījumus:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Lai iegūtu vairāk informācijas par Kate režīma rindiņām, " +"apmeklējiet Kate tīmekļa vietni." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim režīma rindiņas" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Pirmās un pēdējās trīs dokumenta rindas var būt Vim režīma " +"rindiņas, un gedit atbalsta šādas Vim režīma rindiņu " +"iespējas:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Lai iegūtu vairāk informācijas par Vim režīma rindiņām, " +"apmeklējiet Vim tīmekļa vietni." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:13 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Pievienot interaktīvu Python konsoli apakšējai rūtij." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:16 +msgid "Python console" +msgstr "Python konsole" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:18 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Pievienojot Python konsoli apakšējai rūtij, var iegūt iespēju testēt Python " +"skriptus, nepametot gedit. Lai ieslēgtu Python konsoli, " +"izvēlieties geditIestatījumiSpraudņiPython konsole." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:24 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Pane, or just press " +"ShiftF9." +msgstr "" +"Kad Python konsole ir ieslēgta, to var atvērt, izvēloties " +"SkatsApakšējā rūts, vai nospiežot " +"ShiftF9." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Ja ieslēgts arī spraudnis Iegultais Terminālis, Python " +"konsole parādīsies jaunā cilnē apakšējā rūtī." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:18 +msgid "Quickly open a file or set of files." +msgstr "Ātri atvērt vienu vai vairākas datnes." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:21 +msgid "Quick open" +msgstr "Ātrā atvēršana" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:23 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Kā ļauj nojaust tā nosaukums, spraudnis Ātrā atvēršana palīdz " +"atvērt datnes ātrāk nekā parasti. Lai ieslēgtu šo spraudni, izvēlieties " +"geditIestatījumiSpraudņiĀtrā atvēršana." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:28 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Kad esat aktivējis Ātrās atvēršanas spraudni, jūs to varat " +"izmantot šādi:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:32 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "" +"Atveriet Ātrās atvēršanas dialoglodziņu, nospiežot " +"CtrlAltO vai izvēloties " +" DatneĀtri atvērt." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:35 +msgid "The Quick Open file dialog will appear." +msgstr "Parādīsies ātrās atvēršanas dialogs." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Izmantojot peli, izvēlēties datni vai datnes, kuras vēlaties atvērt." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:38 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Lai izvēlētos vairākas atsevišķas datnes, turiet Ctrl taustiņu, " +"veicot pa klikšķim uz katras datnes." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:40 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Lai izvēlētos datņu grupu, veiciet klikšķi uz pirmās datnes, ko vēlaties " +"atvērt, turiet nospiestu Shift taustiņu un veiciet klikšķi uz " +"pēdējās datnes, ko vēlaties atvērt, datņu sarakstā." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:46 +msgid "Quick Open will look for files in:" +msgstr "Ātrā atvēršana meklēs datnes šeit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:49 +msgid "The directory of the currently opened document" +msgstr "Pašlaik atvērtā dokumenta direktorija" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"Spraudņa Datņu pārlūka rūts " +"saknes direktorija" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:53 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Nesenie dokumenti, kas ir arī parādīti mapē Nesenie " +"lietotnēDatnes" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:55 +msgid "Directories which you have bookmarked in Files" +msgstr "Direktorijas, kas ir grāmatzīmēs lietotnē Datnes" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:57 +msgid "Your Desktop directory" +msgstr "Jūsu Darbvirsmas direktorija" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Home directory" +msgstr "Jūs Mājas direktorija" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:62 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Ātrā atvēršana rāda datnes jebkura no augstāk minētajām vietām, " +"neskatoties uz to, vai esat tās iepriekš atvēris." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:17 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:21 C/gedit-save-file.page:17 C/gedit-search.page:19 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Izmantot fragmentus, lai ātri ievietotu bieži lietotus teksta gabalus." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Fragmenti" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Fragmenti nodrošina iespēju ātri ievietot tekstā bieži lietotus " +"koda fragmentus. Piemēram, HTML fragments<img> elementam " +"ievietos atverošās un aizverošās birkas un atvieglos atribūtu ievadi " +"pareizajās vietās. Tas var padarīt koda rakstīšanu vienkāršāku un ātrāku." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Aktivēt fragmentu spraudni" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Aktivēt fragmentu spraudni:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:44 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Izvēlieties geditIestatījumiSpraudņi." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Izvēlieties Fragmenti, lai aktivētu spraudni." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Pārlūkot fragmentus" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Lai pārlūkotu pieejamos fragmentus:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Izvēlieties Rīki Pārvaldīt spraudņus." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Pārliecinieties, vai ir iestatīta atbilstošā sintakse. Statusa josla " +"gedit loga apakšā parādīs iestatīto valodu. Šis iestatījums " +"atļauj gedit ievietot pareizos fragmentus. Gedit parasti " +"automātiski noteiks datnes valodu vai sintaksi, bet var gadīties, ka jums " +"vajadzēs to iestatīt." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Šajā piemērā valodas iestatījums ir HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Pārlūkot spraudņus, kas ir pieejami jūsu valodai vai sintaksei." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Fragmentu lietošana" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Lai dokumentā ievietotu fragmentu:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Ierakstiet vajadzīgā fragmenta nosaukumu jebkurā vietā dokumentā." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Spiediet Tab, lai ievietotu fragmentu, kas ir saistīts ar ievades " +"termu." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Fragmenta piemēra izmantojums" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Piemēram, ja iestata HTML sintaksi, ierakstiet head un " +"nospiediet Tab taustiņu. Tekstam vajadzētu automātiski pabeigties " +"par uz šādu fragmentu:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html;" +" charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html;" +" charset=utf-8\" />\n" +" <title>Lapas virsraksts</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Fragmentu pievienošana" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Jūs varat pievienot jaunus fragmentus, kas darbosies globāli (tas ir, tie ir " +"neatkarīgi no valodas) vai arī noteiktā sintaksē." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Izvēlieties Rīki Pārvaldīt spraudņus." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Pārvaldīt fragmentus sānu joslā izvēlieties vēlamo sintaksi un " +"spiediet pogu “+”, lai uzskaitītu izvēlētās sintakses fragmentus." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Lai pievienotu fragmentu, kas darbojas globāli (tas ir, kad dokumentam nav " +"iestatīta kāda noteikta sintakse vai valoda), izvēlieties Globāls " +"no Pārvaldīt fragmentus sānu joslas." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Lai pievienotu jaunu fragmentu, spiediet “plusa” ikonu Pārvaldīt " +"fragmentus sānu joslā." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Ievadiet fragmenta nosaukumu. Fragmenta nosaukums var atšķirties no " +"fragmenta, kuru vēlaties pievienot." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Sadaļā Aktivizācijas jums jāievada terms Tabulācijas trigeris: teksta laukumam. Jūs izmantosiet " +"šo termu, lai ievietotu savu fragmentu." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Ja vēlaties ievietot fragmentu ar tastatūras saīsni, spiediet savu peles " +"rādītāju uz Īsinājumtaustiņš: teksta laukuma un " +"spiediet attiecīgo taustiņu kombināciju. Kad būsiet piespieduši un atlaiduši " +"taustiņus, tastatūras saīsne būs iestatīta." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Zem Rediģēt: teksta laukuma, ievadiet vēlamo " +"fragmenta tekstu. Jūs varat izmantot ${n} lai norādītu " +"mainīgos, kur n norāda skaitli, kas apzīmē iekļauto mainīgo " +"skaitlisko secību." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Jauna fragmenta piemērs" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Pieņemsim, ka izveidojāt fragmentu ar termu sveiciens sadaļā Tabulācijas trigeris:. Teksta laukums Rediģēt: satur:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <sveiciens>Sveika ${1:lieliskā}${2:apbrīnojamā} pasaule!\n" +" </sveiciens>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Jūs varat ievietot šo fragmentu, dokumentā rakstot sveiciens un " +"spiežot taustiņu Tab. Tiks ievietot šis fragments:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <sveiciens>Sveika lieliskāapbrīnojamā pasaule!</sveiciens>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Vārdus “lieliskā” un “apbrīnojāmā” var paturēt vai dzēst, atkarībā no " +"lietošanas izvēles. Lai tā darītu, spiediet Tab, lai izvēlētos " +"starp “lieliskā” un “apbrīnojāmā” un spiediet Del, lai dzēstu " +"mazāk vēlamo opciju." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:21 +msgid "Sort lines of text into alphabetical order." +msgstr "Sakārtot teksta rindas alfabētiskā secībā." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:24 +msgid "Sort" +msgstr "Kārtot" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:26 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Kārtošanas spraudnis sakārto izvēlētās teksta rindas alfabētiskā secībā." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:30 +msgid "" +"You cannot use the Undo feature to correct a Sort " +"operation, so we recommend that you save the file immediately before " +"performing the sort. If you make a mistake with the sort, you can revert to " +"the previously-saved version of the file by selecting FileRevert." +msgstr "" +"Kārtošanu nav iespējams atsaukt, tāpēc mēs iesakām saglabāt datni tieši " +"pirms šīs darbības veikšanas. Ja kārtojot gadās kļūda, jūs varat atgriezties " +"pie iepriekš saglabātās datnes versijas, izvēlotiesDatneAtgriezt." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:38 +msgid "Enable Sort Plugin" +msgstr "Aktivēt kārtošanas spraudni" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:40 +msgid "To enable the Sort plugin:" +msgstr "Lai aktivētu Kārtošanas spraudni:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:49 +msgid "Select Sort to enable the plugin." +msgstr "" +"Izvēlieties Kārtot, lai aktivētu spraudni." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:56 +msgid "Using Sort Plugin" +msgstr "Kārtošanas spraudņa lietošana" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:58 +msgid "To use the Sort plugin:" +msgstr "Lai izmantotu Kārtošanas spraudni:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "Drag and highlight the desired lines of text." +msgstr "Velciet un izceliet vajadzīgās teksta rindas." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:65 +msgid "" +"Select gedit Sort." +msgstr "" +"Izvēlieties gedit Kārtot." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:69 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Atvērsies kārtošanas dialoglodziņš, atļaujot izvēlēties kādu no " +"sakārtošanas iespējām:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:73 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Apgriezta kārtība sakārtos tekstu apgrieztā alfabētiskā secībā." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:77 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "Izņemt dublikātus izņems no saraksta atkārtotas rindas." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:81 +msgid "Ignore case will ignore case sensitivity." +msgstr "Ignorēt burtu reģistru neņems vērā burtu lielumu." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:83 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Lai sakārtotu, ignorējot rakstzīmes rindu sākumā, iestatiet pirmās kolonnas, " +"kas jāņem vērā kārtošanā, numuru lauciņā Sākt kolonnā." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:91 +msgid "To perform the sort operation, click Sort." +msgstr "Lai veiktu kārtošanas darbību, spiediet pogu Kārtot." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Iestatīt lappuses, lai drukātu noteiktā secībā." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Sakārtot lappuses pareizā secībā, drukājot kopijas" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Otrādi" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Printeri parasti drukā pirmo lapu kā pirmo un pēdējo kā pēdējo, tātad lapas " +"iznāk pretējā secībā, kādas tu tās esi izvēlējies. Lai apgrieztu secību:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Izvēlieties Datne Drukāt." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Drukas loga cilnes Vispārīgi sadaļā Kopijas atzīmējiet Apgriezti." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Pēdējā lapa tiks drukāta kā pirmā un tā tālāk." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Salikt pa lappusēm" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Drukājot vairāk kā vienu dokumentu kopiju, pēc noklusējuma katras lapas " +"kopijas būs saliktas vienuviet (tas ir, sākumā būs visas pirmās lapas, tad " +"visas otrās utt.). Salikšana pa lappusēm nodrošinās, ka katras dokumenta " +"kopijas lapas ir saliktas kopā." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Lai saliktu pa lappusēm:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Spiediet DatneDrukāt" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Drukas loga cilnes Vispārīgi sadaļā Kopijas atzīmējiet Salikt pa " +"lappusēm." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Drukāt datnes, ko veidojāt ar gedit lietotni." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Dokumentu drukāšana" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Lai drukātu ar gedit, ir jābūt pieslēgtam un konfigurētam " +"printerim. Ja šis priekšnosacījums sagādā grūtības, lūdzu, skatiet GNOME drukāšanas palīdzību." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit ļauj drukāt gan datnē, gan uz papīra." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Drukas priekšskatījums" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Pirms drukāšanas var arī apskatīt, kā izskatīsies izdrukātais dokuments, " +"izmantojot funkciju Drukas priekšskatījums. Lai priekšskatītu " +"dokumentu:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Izvēlieties Datne Drukas priekšskatījums. Varat arī spiest taustiņus " +"ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Jūsu dokumenta priekšskatījums tiks atvērts tajā pat cilnē kā datne. Jūs " +"varat pārlūkot šo priekšskatījumu ar navigācijas pogām un rīkiem rīku joslā " +"dokumenta augšpusē priekšskatījuma cilnē. Lai aizvērtu un atgrieztos uz " +"dokumentu, spiediet Aizvērt priekšskatījumu." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Drukāšana uz papīra" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Jūs varat izdrukāt savus dokumentus uz papīra, izmantojot lokālo vai " +"attālināto printeri. Lai izdrukātu datni:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Izvēlieties Datne Drukāt Vispārīgi." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Izvēlieties vēlamo printeri no pieejamo printeru saraksta." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Jūs varat priekšskatīt datni, izmantojot Drukāšanas " +"priekšskatījums un kad jūs apmierina iestatījumi, spiediet Drukāt, lai sūtītu datni uz printeri." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Un vēl, cilnē Lappuses iestatīšana varat izvēlēties " +"Izkārtojums un Papīrs " +"opcijas. Tā kā šie iestatījumi ir pieejami daudzās GNOME " +"lietotnēs, lai uzzinātu vairāk, skatiet Izkārtojums un lappuses iestatījumi." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Drukāt vairākas kopijas un starp norādītajiem apgabaliem" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Jūs varat iestatīt diapazona (Drukāt) un Kopijas opcijas, lai jums palīdzētu:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Drukāšana datnē" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Jūs varat arī izmantot gedit, lai drukātu datnē. Lai drukātu savu " +"dokumentu datnē ar citu formātu:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Izvēlieties Datne Drukāt Drukāt datnē." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Drukāšanai pieejami šādi datņu formāti, jūs varat izvēlēties no:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "Lai drukātu dokumentu datnē, spiediet Drukāt." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Izvēlieties lappuses, kuras vēlaties drukāt." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Drukāt tikai noteiktas lappuses" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Jūs varat drukāt tikai atsevišķas dokumenta lappuses. Piemēram, ja " +"ievadīsiet lappušu numurus “1,3,5-7,9”, tad tiks izdrukātas tikai lappuses " +"1, 3, 5, 6, 7 un 9. Lai izdrukātu tikai izvēlētās lappuses:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Izvēlieties Datne Drukāt…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Drukas dialoglodziņa cilnē Vispārīgi izvēlieties " +"Lapas sadaļā Drukāt." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Ierakstiet dokumenta drukājamo lappušu numurus, atdalot tos ar komatiem. " +"Apzīmējiet secīgu lappušu intervālu ar defisi." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Īss gedit ievads." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Sākt darbu ar gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit ir teksta redaktors ar pilnu iespēju klāstu GNOME " +"darbvirsmas videi. To var lietot vienkāršu piezīmju un dokumentu " +"rakstīšanai, vai arī, izmantojot papildiespējas, padarīt to par savu " +"programmatūras izstrādes vidi." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +#| msgctxt "_" +#| msgid "" +#| "external ref='figures/gedit3-screenshot.png' " +#| "md5='883fe82b057396bce097926551bb109e'" +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"Kolīdz gedit ir palaista, var sākt rakstīt. Lai saglabātu tekstu, " +"nospiediet Saglabāt ikonu gedit rīkjoslā." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Lai uzzinātu par citām gedit funkcijām un gūtu palīdzību citu " +"darbību veikšanā, apskatiet gedit palīdzības pārējās sadaļas." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Aizvietot daļu teksta datnē." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:33 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:39 +msgid "Replace text" +msgstr "Teksta aizvietošana" + +#. (itstool) path: page/p +#: C/gedit-replace.page:41 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Teksta rediģēšana var būt laikietilpīga. Lai ietaupītu laiku, gedit ir Aizvietot funkcija, kas palīdz atrast un aizvietot teksta " +"daļas." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:46 +msgid "Replace text in gedit" +msgstr "Teksta aizvietošana gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:48 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Atveriet Aizvietošanas rīku, spiežot Izvēlnes poguMeklēt un aizvietot… vai nospiežot CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:54 +msgid "" +"Enter the text that you wish to replace into the Search for: " +"field." +msgstr "Ievietojiet aizvietojamo tekstu lauciņā Meklēt:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:58 +msgid "" +"Enter the new, replacement text into the Replace with: field." +msgstr "Ievietojiet jauno tekstu lauciņā Aizvietot ar:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:62 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Kad ievadīts sākotnējais un vēlamais teksts, jūs varat pievienot papildu " +"meklēšanas parametrus. Varat arī izvēlēties, ko vēlaties aizvietot:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:67 +msgid "To replace only the next match, click Replace." +msgstr "" +"Lai aizvietotu tikai nākamo atrasto teksta fragmentu, spiediet " +"Aizvietot." + +#. (itstool) path: item/p +#: C/gedit-replace.page:71 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Lai aizvietotu meklēto tekstu visās vietās, kur tas atrasts, " +"spiediet Aizvietot visus." + +#. (itstool) path: note/p +#: C/gedit-replace.page:79 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Izmantojiet iespēju Aizvietot visu ar piesardzību. Aizvietot " +"visus strādā visā teksta datnē un nepiedāvā izvēlēties teksta daļas, " +"kurās notiks aizvietošana." + +#. (itstool) path: section/title +#: C/gedit-replace.page:86 +msgid "More options" +msgstr "Vairāk iespēju" + +#. (itstool) path: section/p +#: C/gedit-replace.page:88 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Ja vēlaties, varat pievienot papildu parametrus savam meklējumam:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:92 +msgid "Match case" +msgstr "Reģistrjutīgs" + +#. (itstool) path: item/p +#: C/gedit-replace.page:93 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Reģistrjutīgums nosaka, vai atrastā teksta reģistram (mazie vai " +"drukātie burti) jāsaskan ar meklētās frāzes reģistru. Ja šī iespēja ir " +"atzīmēta, meklēšana būs reģistrjūtīga. Ja nav - meklēšana neņems vērā teksta " +"reģistru." + +#. (itstool) path: item/title +#: C/gedit-replace.page:98 +msgid "Match entire word only" +msgstr "Atlasīt tikai veselus vārdus" + +#. (itstool) path: item/p +#: C/gedit-replace.page:99 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Izmantojiet šo opciju, lai meklētu atsevišķus vārdus, kas nav citu vārdu " +"fragmenti. Piemēram, meklējot vārdu 'te', kad atzīmēta šī iespēja, vārds " +"'te' tiktu atrasts, bet vārdi 'karte' un 'barters' netiktu " +"atrasti." + +#. (itstool) path: item/title +#: C/gedit-replace.page:106 +msgid "Search backwards" +msgstr "Meklēt pretējā virzienā" + +#. (itstool) path: item/p +#: C/gedit-replace.page:107 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Šī komanda darbojas tāpat kā komanda Atrast iepriekšējo. Ja vēlaties doties " +"cauri meklēšanas rezultātiem virzienā no beigām uz sākumu, izvēlieties šo " +"opciju." + +#. (itstool) path: item/title +#: C/gedit-replace.page:112 +msgid "Wrap around" +msgstr "Apliekt (apskatīt visu datni)" + +#. (itstool) path: item/p +#: C/gedit-replace.page:113 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Ja ieslēgta apliekšanas opcija, gedit atsāks " +"meklēšanas/aizvietošanas darbību no datnes sākuma, kad sasniegtas datnes " +"beigas. Tas nodrošina, ka meklēšanas/aizvietošanas darbība ir veikta visā " +"datnē." + +#. (itstool) path: section/title +#: C/gedit-replace.page:123 +msgid "Using escape sequences" +msgstr "Izmantot atsoļa virknes" + +#. (itstool) path: section/p +#: C/gedit-replace.page:125 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Jūs varat izmantot atsoļu virknes, lai meklētu pāriešanu jaunā " +"rindā, kursora atgriešanu un tabulācijas." + +#. (itstool) path: item/title +#: C/gedit-replace.page:130 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:131 +msgid "Newline" +msgstr "Jauna rinda" + +#. (itstool) path: item/title +#: C/gedit-replace.page:134 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:135 +msgid "Carriage return" +msgstr "Kursora atgriešanās" + +#. (itstool) path: item/title +#: C/gedit-replace.page:138 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:139 +msgid "Tab" +msgstr "Tabulācija" + +#. (itstool) path: section/p +#: C/gedit-replace.page:143 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Ja vēlaties meklēt pašu \\ (atpakaļvērstā slīpsvītra) vai " +"kādu no atsoļa virknēm paša tekstā, jums vajadzēs veikt atsoli " +"atpakaļvērstajai slīpsvītrai, lai iegūtu vēl vienu atpakaļvērstu slīpsvītru. " +"Piemēram, lai meklētu \\, jums jāievada \\\\ " +"meklēšanas vai aizvietošanas laukā. Jūs varat meklēt atsoļa virknes tādā pat " +"veidā — lai meklētu vai aizvietotu \\n, lietojiet termu " +"\\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Saglabāt datni, lai ar to strādātu vēlāk." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Datnes saglabāšana" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +#| msgid "" +#| "To save a file in gedit, click on the Save the current file button with the disk-drive icon on the " +#| "right side of the toolbar or just press CtrlS." +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +"CtrlS." +msgstr "" +"Lai saglabātu datni gedit, spiediet pogu Saglabāt" +" labajā rīkjoslas pusē, vai spiediet CtrlS<" +"/keyseq>." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +#| msgid "" +#| "If you are saving a new file, the Save As dialog will appear, " +#| "and you can select a name for the file, as well as the directory where " +#| "you would like the file to be saved." +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Ja saglabājat jaunu datni, parādīsies dialoglodziņš. Tajā var izvēlēties" +" datnes nosaukumu un mapi, kurā saglabāt datni." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Atrastu teksta fragmentu datnē." + +#. (itstool) path: page/title +#: C/gedit-search.page:29 +msgid "Search for text" +msgstr "Meklēt tekstu" + +#. (itstool) path: page/p +#: C/gedit-search.page:31 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "Meklēšanas rīks var palīdzēt atrast datnē konkrētu teksta fragmentu." + +#. (itstool) path: steps/title +#: C/gedit-search.page:35 +msgid "Finding text" +msgstr "Teksta meklēšana" + +#. (itstool) path: item/p +#: C/gedit-search.page:37 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Atveriet meklēšanas logu, izvēloties Izvēlnes poguMeklēt… vai " +"spiežot CtrlF. Kursors automātiski " +"tiks pārvietots, lai varētu sākt meklēšanu." + +#. (itstool) path: item/p +#: C/gedit-search.page:44 +msgid "Type the text you wish to search for in the search window." +msgstr "Ierakstiet tekstu, kuru vēlaties meklēt, meklēšanas logā." + +#. (itstool) path: item/p +#: C/gedit-search.page:48 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Kamēr rakstāt, gedit izcels datnē teksta daļas, kas sakrīt ar " +"ievadīto." + +#. (itstool) path: page/p +#: C/gedit-search.page:53 +msgid "To scroll through the search results, do any of the following:" +msgstr "Lai caurskatītu meklēšanas rezultātus, veiciet kādu no šīm darbībām:" + +#. (itstool) path: item/p +#: C/gedit-search.page:56 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Izpildiet klikšķi uz augšup vai lejup vērstās bultas meklēšanas logā" + +#. (itstool) path: item/p +#: C/gedit-search.page:61 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Nospiediet bultiņu augšup vai bultiņu lejup uz " +"tastatūras." + +#. (itstool) path: item/p +#: C/gedit-search.page:65 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Nospiediet CtrlG vai " +"CtrlShiftG" + +#. (itstool) path: item/p +#: C/gedit-search.page:69 +msgid "" +"Press the Ctrl and use your mouse or touchpad's scroll " +"feature to move up or down through the text." +msgstr "" +"Turot nospiestu Ctrl taustiņu, izmantojiet peles vai " +"skārienpaliktņa ritināšanas funkciju." + +#. (itstool) path: page/p +#: C/gedit-search.page:74 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Lai aizvērtu meklēšanas logu, nospiediet Esc vai " +"Enter. Esc nospiešana atgriezīs kursoru tur, kur tas " +"bija, pirms uzsākāt meklēšanu. Enter nospiešana pārvietos kursoru " +"uz pašreizējo pozīciju meklēšanas rezultātos." + +#. (itstool) path: list/title +#: C/gedit-search.page:80 +msgid "Search tips" +msgstr "Meklēšanas padomi" + +#. (itstool) path: item/p +#: C/gedit-search.page:82 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Ja kāds teksta fragments ir izcelts (atlasīts), pēc CtrlF nospiešanas tas parādīsies meklēšanas logā." + +#. (itstool) path: item/p +#: C/gedit-search.page:87 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Lai izmantotu papildu meklēšanas iespējas, spiediet uz palielināmā " +"stikla ikonas meklēšanas logā, vai ar spiediet labo peles pogu jebkur " +"meklēšanas logā. Jūs varat izvēlēties vienu vai vairākas meklēšanas opcijas:" + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Izvēlieties Reģistrjutīgs, lai meklējot būtu burtu reģistram būtu " +"nozīme." + +#. (itstool) path: item/p +#: C/gedit-search.page:96 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Izvēlieties Atlasīt tikai veselus vārdus, lai meklētu tikai " +"veselus vārdus." + +#. (itstool) path: item/p +#: C/gedit-search.page:100 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Izvēlieties Apskatīt visu dokumentu, lai meklētu tekstu no augšas " +"līdz apakšai, un pēc tam turpinātu atkal meklēt no augšas." + +#. (itstool) path: item/p +#: C/gedit-search.page:106 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click " +"SearchClear Highlight, or press " +"CtrlShiftK." +msgstr "" +"Atrastais teksts paliks izcelts arī pēc meklēšanas beigām. Lai novāktu " +"izcēlumu, izvēlieties MeklētNoņemt izcēlumu vai nospiediet CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Lietojiet tastatūras saīsnes, lai varētu strādāt ātrāk." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Īsinājumtaustiņi" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Izmantojiet īsinājumtaustiņus, lai veiktu ierastas darbības ātrāk " +"nekā ar peli un izvēlnēm. Zemāk uzskaitīti visi gedit " +"īsinājumtaustiņi." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Īsinājumtaustiņi darbam ar cilnēm" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:167 C/gedit-shortcut-keys.page:261 +#: C/gedit-shortcut-keys.page:286 C/gedit-shortcut-keys.page:323 +#: C/gedit-shortcut-keys.page:352 +msgid "Action" +msgstr "Darbība" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:168 C/gedit-shortcut-keys.page:262 +#: C/gedit-shortcut-keys.page:287 C/gedit-shortcut-keys.page:324 +#: C/gedit-shortcut-keys.page:353 +msgid "Keyboard shortcut" +msgstr "Tastatūras saīsne" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Pārslēgties uz nākamo cilni kreisajā pusē" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt PageUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Pārslēgties uz nākamo cilni labajā pusē" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt PageDown" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Aizvērt cilni" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:154 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Saglabāt visas cilnes" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlShift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Aizvērt visas cilnes" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlShiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Atkal atvērt pēdējo aizvērto cilni" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlShiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Pārslēgties uz n-to cilni" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Jauna ciļņu grupa" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Iepriekšējā ciļņu grupa" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"ShiftCtrlAltPage up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Nākamā ciļņu grupa" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"ShiftCtrlAltPage down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Īsinājumtaustiņi darbam ar datnēm" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Izveidot jaunu dokumentu jaunā logā" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Izveidot jaunu dokumentu jaunā cilnē" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Atvērt dokumentu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Open the Quick Open window" +msgstr "Atvērt logu Ātrā atvēršana" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "AltO" +msgstr "AltO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document" +msgstr "Saglabāt pašreizējo dokumentu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:139 +msgid "Save the current document with a new filename" +msgstr "Saglabāt pašreizējo dokumentu ar jaunu nosaukumu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "CtrlShift S" +msgstr "CtrlShift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Print the current document" +msgstr "Izdrukāt pašreizējo dokumentu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:145 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Print preview" +msgstr "Drukas priekšskatījums" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlShift P" +msgstr "CtrlShift P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:153 +msgid "Close the current document" +msgstr "Aizvērt pašreizējo dokumentu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:157 +msgid "Quit gedit" +msgstr "Iziet no gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:158 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:164 +msgid "Shortcut keys for editing files" +msgstr "Īsinājumtaustiņi datņu rediģēšanai" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "Move to the beginning of the current line" +msgstr "Pārvietot uz pašreizējās rindas sākumu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:174 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "Move to the end of the current line" +msgstr "Pārvietot uz pašreizējās rindas beigām" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:178 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Move to the beginning of the document" +msgstr "Pāriet uz dokumenta sākumu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:182 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +msgid "Move to the end of the document" +msgstr "Pāriet uz dokumenta beigām" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:189 +msgid "Move the selected word right one word" +msgstr "Pārvietot izvēlēto vārdu vienu vārdu pa labi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "AltRight Arrow" +msgstr "AltLabā bulta" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:193 +msgid "Move the selected word left one word" +msgstr "Pārvietot izvēlēto vārdu vienu vārdu pa kreisi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:194 +msgid "AltLeft Arrow" +msgstr "AltKreisā bulta" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:197 +msgid "Undo the last action" +msgstr "Atsaukt pēdējo darbību" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:198 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:201 +msgid "Redo the last undone action" +msgstr "Atatsaukt pēdējo atsaukto darbību" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:202 +msgid "CtrlShift Z" +msgstr "CtrlShift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:206 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Izgriezt atlasīto tekstu vai apgabalu un ievietot to starpliktuvē" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:208 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Iekopēt atlasīto tekstu vai apgabalu starpliktuvē" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:212 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Paste the contents of the clipboard" +msgstr "Ielīmēt starpliktuves (clipboard) saturu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:216 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "Select all text in the file" +msgstr "Izvēlēties visu datnes tekstu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:220 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "Delete the current line" +msgstr "Izdzēst pašreizējo rindu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:224 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "Move the selected line up one line" +msgstr "Pārvietot izvēlēto rindu augšup" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:228 +msgid "AltUp Arrow" +msgstr "AltBulta augšup" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "Move the selected line down one line" +msgstr "Pārvietot izvēlēto rindu lejup" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:232 +msgid "AltDown Arrow" +msgstr "AltBulta lejup" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "Add a tab stop" +msgstr "Pievienot tabulācijas pieturu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:236 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:239 +msgid "Remove a tab stop" +msgstr "Izņemt tabulācijas pieturu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:240 +msgid "ShiftTab" +msgstr "ShiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:243 +msgid "Convert the selected text to upper case" +msgstr "Konvertēt izvēlēto tekstu uz lielajiem burtiem" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:244 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:247 +msgid "Convert the selected text to lower case" +msgstr "Pārveidot izvēlēto tekstu uz mazajiem burtiem" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:248 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:251 +msgid "Toggle case of the selected text" +msgstr "Pārslēgt izvēlētā teksta burtu reģistru uz pretējo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:252 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:258 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Īsinājumtaustiņi saskarnes elementu parādīšanai un slēpšanai" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:267 +msgid "Show / hide the side pane" +msgstr "Parādīt / slēpt sānu rūti" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:268 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:271 +msgid "Show / hide the bottom pane" +msgstr "Parādīt / slēpt apakšējo rūti" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:272 +msgid "CtrlF9" +msgstr "CtrlF9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:276 +msgid "Open the file menu" +msgstr "Atvērt datņu izvēlni" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:277 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:283 +msgid "Shortcut keys for searching" +msgstr "Īsinājumtaustiņi meklēšanai" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:292 +msgid "Find a string" +msgstr "Atrast virkni (teksta fragmentu)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:293 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:296 +msgid "Find the next instance of the string" +msgstr "Atrast nākamo vietu, kur tekstā ir dotā virkne" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:297 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:300 +msgid "Find the previous instance of the string" +msgstr "Atrast iepriekšējo vietu, kur tekstā ir dotā virkne" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:301 +msgid "CtrlShiftG" +msgstr "CtrlShiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:304 +msgid "Search and Replace" +msgstr "Atrast un aizvietot" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:305 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:308 +msgid "Clear highlight" +msgstr "Noņemt izcēlumu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:309 +msgid "CtrlShift K" +msgstr "CtrlShift K" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:313 +msgid "Goto line" +msgstr "Doties uz rindu" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:314 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:320 +msgid "Shortcut keys for tools" +msgstr "Īsinājumtaustiņi rīkiem" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:329 +msgid "Check spelling" +msgstr "Pārbaudīt pareizrakstību" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:330 +msgid "ShiftF7" +msgstr "ShiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:333 +msgid "Remove trailing spaces (with plugin)" +msgstr "Aizvākt atstarpes rindas beigās (ar spraudni)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:334 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:337 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Palaist \"make\" aktuālajā direktorijā (ar spraudni)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:338 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:341 +msgid "Directory listing (with plugin)" +msgstr "Direktorija saraksts (ar spraudni)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:342 +msgid "CtrlShift D" +msgstr "CtrlShift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:349 +msgid "Shortcut keys for user help" +msgstr "Īsinājumtaustiņi palīdzībai" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:358 +msgid "Open the gedit user guide" +msgstr "Atvērt gedit lietotāja ceļvedi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:359 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Pārbaudiet savas datnes uz pareizrakstības kļūdām." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Pārbaudīt dokumenta pareizrakstību" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Ieslēgt pareizrakstības pārbaudi" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Pareizrakstības pārbaudi nodrošina gedit spraudnis, kuru var pēc " +"vajadzības aktivēt. Lai aktivētu spraudni:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Izvēlieties Pareizrakstības pārbaudītājs, lai " +"aktivētu spraudni." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Lai dokumentā meklētu nepareizi uzrakstītus vārdus:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Izvēlieties RīkiPārbaudīt pareizrakstību." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Lai gedit automātiski izceltu dokumentā nepareizi uzrakstītos " +"vārdus rakstīšanas laikā, izvēlieties RīkiIzcelt nepareizi uzrakstītos vārdus." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Izmanto pareizrakstības pārbaudi" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Nepareizi uzrakstītiem vārdiem jūs varat izvēlēties labojumus, izmantojot " +"pareizrakstības pārbaudes dialoglodziņu. Pareizrakstības pārbaudītājā " +"nepareizi uzrakstītie vārdi ir izcelti treknrakstā pie Nepareizi " +"uzrakstītie vārdi:. Jūs varat izvēlēties no šīm korekcijas darbībām:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Mainīt uz: ļauj jums ievadīt vārdu un izmantot " +"Pārbaudīt vārdu, lai pārbaudītu pareizrakstību." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Ieteikumi: uzskaita pieejamos vārda labojumus." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorēt ļauj jums izlaist pareizrakstības " +"pārbaudi šai vārda instancei." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignorēt visus ļauj jums izlaist pareizrakstības " +"pārbaudi visām vārda instancēm." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Mainīt aizvieto vienu nepareizi " +"uzrakstīto vai neatpazīto vārdu ar izvēlētu aizvietojumu no Ieteikumi: saraksta." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Mainīt visus aizvieto visus nepareizi " +"uzrakstītos vai neatpazītos vārdus ar izvēlētu aizvietojumu no Ieteikumi: saraksta." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Pievienot vārdu ļauj jums pievienot aktuālo " +"vārdu gedit lietotnes lietotāja vārdnīcai. Pielāgotu " +"vārdu pievienošana lietotāja vārdnīcai ļaus gedit " +"atpazīt vārdus dokumentā un tie netiks izcelti kā nepareizi uzrakstīti." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Noteikt, kuru valodu izmantot pareizrakstības pārbaudei" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Pēc noklusējuma gedit izmantos jūsu pašreizējo valodu, lai " +"pārbaudītu pareizrakstību dokumentā. Ja jums ir jāizmanto cita valoda, " +"izvēlieties RīkiIestatīt valodu…, tad izvēlieties valodu, ko izmantot." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Vārdnīcas" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. Enchant can " +"use several different dictionaries to check your spelling. Two such " +"dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit pareizrakstības pārbaudīšanai izmanto Enchant – maza sistēmas " +"utilītprogramma. Enchant var izmantot vairākas dažādas vārdnīcas, lai " +"pārbaudītu pareizrakstību. Hunspell un Aspell ir piemēri " +"atbalstītiem vārdnīcu nodrošinātājiem." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Ja jums vajadzīgā valoda nav pieejama gedit lietotnē, izmantojiet " +"datora programmatūras instalētāju vai pakotņu pārvaldnieku, lai uzinstalētu " +"vajadzīgo vārdnīcu nodrošinātāju." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Izceliet savu tekstu, lai to būtu vieglāk lasīt." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Ieslēgt sintakses iekrāsošanu" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Sintakses iekrāsošana" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit nodrošina sintakses iekrāsošanu plašam marķēšanas, " +"programmēšanas un zinātnisko valodu klāstam. Ja gedit atpazīst " +"jūsu atvērtajā datnē lietoto sintaksi, tā automātiski iekrāso tekstu." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Ja jūsu sintakse vai valoda nav iekrāsota tūlīt pēc palaišanas, jūs varat " +"izvēlēties atbilstošo sintaksi vai valodu izvēlnē SkatsIekrāsošanas režīms, " +"vai arī no saraksta gedit loga apakšā." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Grupēt kopā līdzīgas cilnes." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Organizēt datnes grupētās cilnēs" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Ja jūs izmantojat vairākas cilnes gedit lietotnē, jūs varat tās " +"sagrupēt, kas palīdz organizēt atvērtās datnes. Jaunas ciļņu grupas " +"pievienošana sadalīs gedit logu divās rūtīs, atveriet jaunu " +"“Nenosauktu dokumentu” jaunajā rūtī un padariet to aktīvu. Jūs varat atvērt " +"datnes tajā ciļņu grupā un pārvietot cilnes no vienas ciļņu grupas uz otru." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Atvērt jaunu ciļņu grupu gedit logā" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Lai atvērtu jaunu ciļņu grupu, jūs varat:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Iet uz DokumentiJauna ciļņu grupa " +"galvenajā izvēlnē." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Izmantot CtrlAltN saīsni." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Šī darbība sadalīs gedit logu divās rūtīs un rūts ar jauno ciļņu " +"grupu tiks novietota aktīvās cilnes labajā pusē. Jūs varat pārvietot turi pa " +"kreisi vai pa pa labi, piešķirot vairāk vai mazāk vietas gedit " +"logam starp rūtīm." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Jūs varat atvērt tik daudz ciļņu grupasgedit logā, cik var " +"ietilpināt ekrānā, bet jums vajadzēs pārvietot turi, lai varētu tos pareizi " +"redzēt." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Lai aizvērtu ciļņu grupas rūti, aizveriet visas cilnes, kas tajā ir atvērtas." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Pārvietoties caur ciļņu grupām" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Lai ietu uz priekšu (uz nākamo) ciļņu grupu:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Ejiet uz DokumentiNākamā ciļņu grupa " +"galvenajā izvēlnē." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Lietojiet ShiftCtrlAltPage " +"down saīsni." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Lai ietu atpakaļ (iepriekšējā) ciļņu grupā:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"Ejiet uz DokumentiIepriekšējā ciļņu grupa galvenajā izvēlnē." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Izmantojiet ShiftCtrlAltPage " +"up saīsni." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Pārvietot cilni uz citu ciļņu grupu" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Ja jūs vēlaties pārvietot cilni no vienas ciļņu grupas uz citu:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Piespiediet un turiet peles pogu uz cilnes." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Pārvelciet cilni uz citu ciļņu grupas rūti." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Novietojiet to līdzās citām cilnēm jaunajā ciļņu grupā." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Atlaidiet peles pogu." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Skatiet tastatūras saīsnes cilnēm, " +"kas var atvieglot ciļņu grupu pārvaldību." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Mainīt cilnes novietojumu gedit logā." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Pārvietot un sakārtot cilnes" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Cilnes var pārvietot, lai ērtāk strādātu ar datnēm. Cilnes var pārkārtot " +"tajā pašā logā, izvilkt no gedit loga (izveidojot jaunu logu) un " +"pārvietot no viena loga uz citu." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Izmainīt ciļņu secību gedit logā" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Lai izmainītu ciļņu secību logā:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Pārvietojiet cilni uz vēlamo vietu starp citām cilnēm." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Cilne tiks novietota pēc iespējas tuvāk jūsu norādītajai vietai, līdzās " +"citām atvērtajām cilnēm." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Pārvietot cilni, izveidojot jaunu gedit logu" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Lai izveidotu jaunu logu no esošas cilnes:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Izvelciet cilni no gedit loga." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Lai pārvietotu cilni uz jaunu logu, kad gedit logs ir " +"maksimizēts, velciet cilni uz joslu ekrāna augšā." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Pārvietot cilni uz citu gedit logu" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Ja jūs vēlaties pārvietot cilni no viena loga uz citu:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Pārvelciet cilni uz jauno logu." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Novietojiet to līdzās citām cilnēm jaunajā logā." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Jums var likties vieglāk pārvietot cilni no viena loga uz citu, velkot cilni " +"uz Aktivitātes karsto stūri GNOME čaulā. Tas parādīs " +"katru atvērto gedit logu. Tad jūs varat atlaist cilni vēlamajā " +"gedit logā." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Skatiet tastatūras saīsnes cilnēm, " +"kas var atvieglot ciļņu pārvaldību." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Veidot vai aizvērt cilnes gedit logā." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Pievienot vai noņemt cilnes" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Strādāšana ar cilnēm programmā gedit ļauj jums paturēt acīs " +"vairākas datnes vienā logā. Cilne, kas ir lielāka par pārējām, norāda " +"pašlaik atvērto datni. Pārējās cilnes atbilst citām datnēm, pie kurām var " +"strādāt." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Pievieno cilnes" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Lai pievienotu jaunu cilni, izveidojiet jaunu datni, nospiežot " +"CtrlT. Cilne tiks pievienota pa labi " +"no pārējām cilnēm." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Noņem cilnes" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Lai noņemtu cilni, uzklikšķiniet uz × cilnes " +"labajā pusē. Lai noņemtu visas cilnes, nospiediet CtrlShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Atgriezt atpakaļ nesenās izmaiņas kādā no datnēm." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Atsaukt nesen veiktu darbību" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Ja rakstot ar gedit gadās pieļaut kļūdu, izmaiņas var atsaukt " +"spiežot CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "Izmaiņas nevar atsaukt pēc gedit datnes aizvēršanas." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit teksta redaktors" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit teksta redaktors" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Mājas lapa gedit lietotāja ceļvedim." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit teksta redaktors" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Laipni lūgti gedit palīdzības ceļvedī. Īsam ievadam gedit pamatfunkcijās, kā arī sarežģītākās tastatūras saīsnēs, apmeklējiet " +"lapas Sākt darbu ar gedit un Tastatūras saīsnes." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Citi palīdzības temati ir sagrupēti nodaļās zemāk. Veiksmi darbā, lietojot " +"gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Strādāšana ar datnēm" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Konfigurēt gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "gedit spraudņi" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Drukāšana ar gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-Share Alike 3.0 neportētā licence" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Šis darbs ir licencēts zem <_:link-1/>." + diff --git a/help/meson.build b/help/meson.build new file mode 100644 index 0000000..e214d94 --- /dev/null +++ b/help/meson.build @@ -0,0 +1,53 @@ +gedit_help_sources = [ + 'gedit-change-color-scheme.page', + 'gedit-change-default-font.page', + 'gedit-close-file.page', + 'gedit-create-new-file.page', + 'gedit-edit-as-root.page', + 'gedit-files-basic.page', + 'gedit-full-screen.page', + 'gedit-open-files-from-sidepane.page', + 'gedit-open-files.page', + 'gedit-open-on-server.page', + 'gedit-open-recent.page', + 'gedit-plugin-guide.page', + 'gedit-plugins-change-case.page', + 'gedit-plugins-doc-stats.page', + 'gedit-plugins-external-tools.page', + 'gedit-plugins-file-browser.page', + 'gedit-plugins-insert-date-time.page', + 'gedit-plugins-install.page', + 'gedit-plugins-modelines.page', + 'gedit-plugins-pyconsole.page', + 'gedit-plugins-quick-open.page', + 'gedit-plugins-snippets.page', + 'gedit-plugins-sort.page', + 'gedit-printing-order.page', + 'gedit-printing.page', + 'gedit-printing-select.page', + 'gedit-quickstart.page', + 'gedit-replace.page', + 'gedit-save-file.page', + 'gedit-search.page', + 'gedit-spellcheck.page', + 'gedit-syntax-highlighting.page', + 'gedit-tab-groups.page', + 'gedit-tabs-moving.page', + 'gedit-tabs.page', + 'gedit-undo-redo.page', + 'index.page', + 'legal.xml', +] + +gedit_help_media = [ + 'figures/gedit-html-snippet.png', + 'figures/gedit-icon.png', + 'figures/gedit3-screenshot.png', +] + +gnome.yelp( + meson.project_name(), + sources: gedit_help_sources, + media: gedit_help_media, + symlink_media: true, +) diff --git a/help/oc/oc.po b/help/oc/oc.po new file mode 100644 index 0000000..14efb26 --- /dev/null +++ b/help/oc/oc.po @@ -0,0 +1,3650 @@ +# Translation of oc.po to Occitan +# Occitan translation of gedit documentation. +# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# This file is distributed under the same license as the gedit documentation +# package. +# +# Yannig Marchegay (Kokoyaya) , 2006-2008. +msgid "" +msgstr "" +"Project-Id-Version: oc\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-02-28 21:49+0100\n" +"PO-Revision-Date: 2007-12-27 13:34+0100\n" +"Last-Translator: Yannig Marchegay (Kokoyaya) \n" +"Language-Team: Occitan \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: ../C/legal.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or " +"in the file COPYING-DOCS distributed with this manual." +msgstr "" + +#: ../C/legal.xml:12(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" + +#: ../C/legal.xml:19(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" + +#: ../C/legal.xml:35(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" + +#: ../C/legal.xml:28(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: ../C/gedit.xml:262(None) +msgid "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgstr "@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: ../C/gedit.xml:342(None) +msgid "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" +msgstr "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: ../C/gedit.xml:1266(None) +msgid "" +"@@image: 'figures/gedit_format_bold.png'; " +"md5=950264711a3f0808bef134fa94b0a582" +msgstr "" +"@@image: 'figures/gedit_format_bold.png'; " +"md5=950264711a3f0808bef134fa94b0a582" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: ../C/gedit.xml:1285(None) +msgid "" +"@@image: 'figures/gedit_format_italic.png'; " +"md5=feb9817676516ae91b9f6b1cd36a5eca" +msgstr "" +"@@image: 'figures/gedit_format_italic.png'; " +"md5=feb9817676516ae91b9f6b1cd36a5eca" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: ../C/gedit.xml:1303(None) +msgid "" +"@@image: 'figures/gedit_format_underline.png'; " +"md5=58f5848d81ea3f0656ccce82ba32ec9c" +msgstr "" +"@@image: 'figures/gedit_format_underline.png'; " +"md5=58f5848d81ea3f0656ccce82ba32ec9c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: ../C/gedit.xml:1321(None) +msgid "" +"@@image: 'figures/gedit_format_strikethrough.png'; " +"md5=cf962f5d9df721c1f4f4cef2780915ed" +msgstr "" +"@@image: 'figures/gedit_format_strikethrough.png'; " +"md5=cf962f5d9df721c1f4f4cef2780915ed" + +#: ../C/gedit.xml:23(title) +msgid "Gedit Manual" +msgstr "" + +#: ../C/gedit.xml:25(year) +msgid "2007" +msgstr "2007" + +#: ../C/gedit.xml:26(holder) ../C/gedit.xml:45(publishername) +#: ../C/gedit.xml:52(firstname) ../C/gedit.xml:75(orgname) +#: ../C/gedit.xml:116(para) ../C/gedit.xml:124(para) ../C/gedit.xml:132(para) +#: ../C/gedit.xml:140(para) ../C/gedit.xml:148(para) ../C/gedit.xml:156(para) +#: ../C/gedit.xml:164(para) ../C/gedit.xml:172(para) ../C/gedit.xml:180(para) +#: ../C/gedit.xml:188(para) ../C/gedit.xml:196(para) +msgid "GNOME Documentation Project" +msgstr "Projècte de documentacion de GNOME" + +#: ../C/gedit.xml:28(year) +msgid "2002" +msgstr "2002" + +#: ../C/gedit.xml:29(year) +msgid "2003" +msgstr "2003" + +#: ../C/gedit.xml:30(year) +msgid "2004" +msgstr "2004" + +#: ../C/gedit.xml:31(holder) ../C/gedit.xml:67(orgname) +msgid "Sun Microsystems" +msgstr "Sun Microsystems" + +#: ../C/gedit.xml:33(year) ../C/gedit.xml:112(date) +msgid "2000" +msgstr "2000" + +#: ../C/gedit.xml:34(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: ../C/gedit.xml:55(orgname) +msgid "GNOME" +msgstr "GNOME" + +#: ../C/gedit.xml:59(firstname) +msgid "Hal" +msgstr "" + +#: ../C/gedit.xml:60(surname) +msgid "Canary" +msgstr "" + +#: ../C/gedit.xml:61(contrib) +msgid "Added the Shortcut Keys Table" +msgstr "" + +#: ../C/gedit.xml:64(firstname) ../C/gedit.xml:187(para) +msgid "Sun Java Desktop System Documentation Team" +msgstr "" + +#: ../C/gedit.xml:68(email) +msgid "gdocteam@sun.com" +msgstr "gdocteam@sun.com" + +#: ../C/gedit.xml:72(firstname) +msgid "Eric" +msgstr "Eric" + +#: ../C/gedit.xml:73(surname) +msgid "Baudais" +msgstr "Baudais" + +#: ../C/gedit.xml:76(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: ../C/gedit.xml:80(firstname) +msgid "Baris" +msgstr "Baris" + +#: ../C/gedit.xml:81(surname) +msgid "Cicek provided information from earlier revisions of the gedit application." +msgstr "" + +#: ../C/gedit.xml:82(contrib) ../C/gedit.xml:87(contrib) +msgid "Acknowledgements" +msgstr "" + +#: ../C/gedit.xml:85(firstname) +msgid "Ajit" +msgstr "" + +#: ../C/gedit.xml:86(surname) +msgid "George provided information about plugins." +msgstr "" + +#: ../C/gedit.xml:111(revnumber) +msgid "gedit V1.0" +msgstr "" + +#: ../C/gedit.xml:114(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu" + +#: ../C/gedit.xml:120(revnumber) +msgid "gedit Manual V2.0" +msgstr "" + +#: ../C/gedit.xml:121(date) +msgid "March 2002" +msgstr "Març de 2002" + +#: ../C/gedit.xml:123(para) ../C/gedit.xml:131(para) ../C/gedit.xml:139(para) +#: ../C/gedit.xml:147(para) ../C/gedit.xml:155(para) ../C/gedit.xml:163(para) +#: ../C/gedit.xml:171(para) ../C/gedit.xml:179(para) +msgid "Sun GNOME Documentation Team" +msgstr "Còla Sun de documentacion de GNOME" + +#: ../C/gedit.xml:128(revnumber) +msgid "gedit Manual V2.1" +msgstr "" + +#: ../C/gedit.xml:129(date) +msgid "June 2002" +msgstr "Junh de 2002" + +#: ../C/gedit.xml:136(revnumber) +msgid "gedit Manual V2.2" +msgstr "" + +#: ../C/gedit.xml:137(date) +msgid "August 2002" +msgstr "Agost de 2002" + +#: ../C/gedit.xml:144(revnumber) +msgid "gedit Manual V2.3" +msgstr "" + +#: ../C/gedit.xml:145(date) +msgid "September 2002" +msgstr "Setembre de 2002" + +#: ../C/gedit.xml:152(revnumber) +msgid "gedit Manual V2.4" +msgstr "" + +#: ../C/gedit.xml:153(date) +msgid "January 2003" +msgstr "Genièr de 2003" + +#: ../C/gedit.xml:160(revnumber) +msgid "gedit Manual V2.5" +msgstr "" + +#: ../C/gedit.xml:161(date) +msgid "March 2003" +msgstr "Març de 2003" + +#: ../C/gedit.xml:168(revnumber) +msgid "gedit Manual V2.6" +msgstr "" + +#: ../C/gedit.xml:169(date) +msgid "September 2003" +msgstr "Setembre de 2003" + +#: ../C/gedit.xml:176(revnumber) +msgid "gedit Manual V2.7" +msgstr "" + +#: ../C/gedit.xml:177(date) +msgid "March 2004" +msgstr "Març de 2004" + +#: ../C/gedit.xml:184(revnumber) +msgid "gedit Manual V2.8" +msgstr "" + +#: ../C/gedit.xml:185(date) ../C/gedit.xml:193(date) +msgid "July 2006" +msgstr "" + +#: ../C/gedit.xml:192(revnumber) +msgid "gedit Manual V2.9" +msgstr "" + +#: ../C/gedit.xml:195(para) +msgid "GNOME Documentation Team" +msgstr "Còla de documentacion de GNOME" + +#: ../C/gedit.xml:200(releaseinfo) +msgid "This manual describes version 2.16 of gedit." +msgstr "" + +#: ../C/gedit.xml:203(title) +msgid "Feedback" +msgstr "" + +#: ../C/gedit.xml:204(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" + +#: ../C/gedit.xml:209(para) +msgid "gedit is the GNOME text editor." +msgstr "" + +#: ../C/gedit.xml:212(primary) +msgid "gedit" +msgstr "" + +#: ../C/gedit.xml:213(primary) +msgid "text editor" +msgstr "" + +#: ../C/gedit.xml:218(title) +msgid "Introduction" +msgstr "Introduccion" + +#: ../C/gedit.xml:223(para) +msgid "" +"The gedit application enables you to create and " +"edit text files." +msgstr "" + +#: ../C/gedit.xml:225(para) +msgid "" +"The aim of gedit is to be a simple and easy to " +"use text editor. More powerful features can be enabled with different " +"plugins, allowing a variety of tasks related to text-" +"editing." +msgstr "" + +#: ../C/gedit.xml:229(title) +msgid "Getting Started" +msgstr "Per començar" + +#: ../C/gedit.xml:233(title) +msgid "Starting gedit" +msgstr "" + +#: ../C/gedit.xml:234(para) +msgid "You can start gedit in the following ways:" +msgstr "" + +#: ../C/gedit.xml:237(term) +msgid "Applications menu" +msgstr "Menut Applications" + +#: ../C/gedit.xml:239(para) +msgid "" +"Choose AccessoriesText " +"Editor." +msgstr "" + +#: ../C/gedit.xml:243(term) +msgid "Command line" +msgstr "Linha de comanda" + +#: ../C/gedit.xml:245(para) +msgid "Execute the following command: gedit" +msgstr "" + +#: ../C/gedit.xml:249(para) +msgid "" +"By default, when you open a text document in the file manager, gedit will " +"start, and display the document." +msgstr "" + +#: ../C/gedit.xml:254(title) +msgid "The gedit Window" +msgstr "" + +#: ../C/gedit.xml:255(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "" + +#: ../C/gedit.xml:258(title) +msgid "gedit Window" +msgstr "" + +#: ../C/gedit.xml:264(phrase) +msgid "Shows gedit main window." +msgstr "" + +#: ../C/gedit.xml:270(para) +msgid "The gedit window contains the following elements:" +msgstr "" + +#: ../C/gedit.xml:273(term) +msgid "Menubar" +msgstr "Barra de menuts" + +#: ../C/gedit.xml:275(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" + +#: ../C/gedit.xml:278(term) +msgid "Toolbar" +msgstr "Barra d'espleches" + +#: ../C/gedit.xml:280(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "" + +#: ../C/gedit.xml:283(term) +msgid "Display area" +msgstr "" + +#: ../C/gedit.xml:285(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "" + +#: ../C/gedit.xml:288(term) +msgid "Statusbar" +msgstr "Barra d'estat" + +#: ../C/gedit.xml:290(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items. The " +"statusbar also displays the following information:" +msgstr "" + +#: ../C/gedit.xml:293(para) +msgid "" +"Cursor position: the line number and column number where the cursor is " +"located." +msgstr "" + +#: ../C/gedit.xml:296(para) +msgid "" +"Edit mode: If the editor is in insert mode, the statusbar contains the text " +"INS. If the editor is in overwrite mode, the statusbar " +"contains the text OVR. Press the Insert key to change edit mode." +msgstr "" + +#: ../C/gedit.xml:301(term) +msgid "Side Pane" +msgstr "" + +#: ../C/gedit.xml:303(para) +msgid "" +"The side pane displays a list of open documents, and other information " +"depending on which plugins are enabled." +msgstr "" + +#: ../C/gedit.xml:304(para) +msgid "" +"By default the side pane is not shown. To show it, choose " +"ViewSide Pane." +msgstr "" + +#: ../C/gedit.xml:307(term) +msgid "Bottom Pane" +msgstr "" + +#: ../C/gedit.xml:309(para) +msgid "" +"The bottom pane is used by programming tools such as the Python " +"Console plugin to display output. It is not shown by default." +msgstr "" + +#: ../C/gedit.xml:313(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" + +#: ../C/gedit.xml:315(para) +msgid "" +"Like other GNOME applications, actions in gedit " +"can be performed in several ways: with the menu, with the toolbar, or with " +"shortcut keys. Shortcuts keys common to all applications are listed in the " +"User Guide." +msgstr "" + +#: ../C/gedit.xml:320(title) +msgid "Running gedit from a Command Line" +msgstr "" + +#: ../C/gedit.xml:321(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" + +#: ../C/gedit.xml:322(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "" + +#: ../C/gedit.xml:322(command) +msgid "gedit " +msgstr "" + +#: ../C/gedit.xml:323(para) +msgid "Alternatively, you can specify a URI instead of a filename." +msgstr "" + +#: ../C/gedit.xml:324(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see the unix manual page for gedit, gedit1." +msgstr "" + +#: ../C/gedit.xml:329(title) +msgid "Working with Files" +msgstr "" + +#: ../C/gedit.xml:333(title) +msgid "Creating a New Document" +msgstr "" + +#: ../C/gedit.xml:334(para) +msgid "" +"To create a new document, choose FileNew. The application " +"displays a new blank document in the gedit window." +msgstr "" + +#: ../C/gedit.xml:339(title) ../C/gedit.xml:1667(title) +msgid "Opening a File" +msgstr "" + +#: ../C/gedit.xml:340(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click Open. The file is displayed in the gedit " +"window." +msgstr "" + +#: ../C/gedit.xml:342(phrase) +msgid "Shows Recent Files menu icon." +msgstr "" + +#: ../C/gedit.xml:342(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the icon on the toolbar to display the list of recent files." +msgstr "" + +#: ../C/gedit.xml:344(para) +msgid "" +"You can open multiple files in gedit. The " +"application adds a tab for each open file to the window. For more on this " +"see ." +msgstr "" + +#: ../C/gedit.xml:350(title) +msgid "Saving a File" +msgstr "" + +#: ../C/gedit.xml:351(para) +msgid "You can save files in the following ways:" +msgstr "" + +#: ../C/gedit.xml:353(para) +msgid "" +"To save changes to an existing file, choose FileSave." +msgstr "" + +#: ../C/gedit.xml:355(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save As " +"dialog, then click Save." +msgstr "" + +#: ../C/gedit.xml:357(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" + +#: ../C/gedit.xml:360(para) +msgid "" +"To close all of the files that are currently open in gedit, choose DocumentsClose All." +msgstr "" + +#: ../C/gedit.xml:365(title) +msgid "Opening a File from a URI" +msgstr "" + +#: ../C/gedit.xml:366(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform the " +"following steps:" +msgstr "" + +#: ../C/gedit.xml:369(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog." +msgstr "" + +#: ../C/gedit.xml:372(para) +msgid "Enter the URI of the file that you want to open." +msgstr "" + +#: ../C/gedit.xml:375(para) +msgid "" +"Use the Character coding drop-down list to select the " +"appropriate character coding." +msgstr "" + +#: ../C/gedit.xml:378(para) +msgid "Click Open." +msgstr "" + +#: ../C/gedit.xml:381(para) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the " +"methods supported by gnome-vfs." +msgstr "" + +#: ../C/gedit.xml:382(para) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. HTTP only allows files to be " +"read. Files opened from FTP are read-only because because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" + +#: ../C/gedit.xml:383(para) +msgid "" +"Saving to FTP servers can be enabled with Configuration Editor, " +"setting the key /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes, but this may cause errors." +msgstr "" + +#: ../C/gedit.xml:388(title) +msgid "Working With Tabs" +msgstr "" + +#: ../C/gedit.xml:390(para) +msgid "" +"When more than one file is open, gedit shows a " +"tab for each document above the display area. To " +"switch to another document, click on its tab." +msgstr "" + +#: ../C/gedit.xml:391(para) +msgid "" +"To move a document to another gedit window, drag " +"the tab corresponding to the file to the window you want to move it to." +msgstr "" + +#: ../C/gedit.xml:392(para) +msgid "" +"To move a document to a new gedit window, either " +"drag its tab to the desktop, or choose DocumentsMove to New Window." +msgstr "" + +#: ../C/gedit.xml:398(title) +msgid "Working with Text" +msgstr "" + +#: ../C/gedit.xml:402(title) +msgid "Editing Text" +msgstr "" + +#: ../C/gedit.xml:403(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "" + +#: ../C/gedit.xml:405(para) +msgid "" +"Type new text from the keyboard. The blinking insertion cursor marks the point where new text appears. To change this, use the " +"arrow keys on the keyboard or click with the mouse." +msgstr "" + +#: ../C/gedit.xml:407(para) +msgid "" +"To copy the selected text to the clipboard, choose " +"EditCopy." +msgstr "" + +#: ../C/gedit.xml:409(para) +msgid "" +"To delete the selected text from the file and move the selected text to the " +"clipboard, choose EditCut." +msgstr "" + +#: ../C/gedit.xml:411(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" + +#: ../C/gedit.xml:413(para) +msgid "" +"To insert the contents of the clipboard at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file, either from gedit or another application." +msgstr "" + +#: ../C/gedit.xml:415(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" + +#: ../C/gedit.xml:421(title) +msgid "Undoing and Redoing Changes" +msgstr "" + +#: ../C/gedit.xml:422(para) +msgid "" +"To undo a change you have made, choose EditUndo. To reverse this " +"action, choose EditRedo. The number of previous edits that you can undo is " +"determined by the Undo limit setting in the " +"Editor tabbed section of the Preferences dialog: see ." +msgstr "" + +#: ../C/gedit.xml:427(title) +msgid "Positioning the Cursor on a Specific Line" +msgstr "" + +#: ../C/gedit.xml:428(para) +msgid "" +"To position the cursor on a specific line in the current file, perform the " +"following steps:" +msgstr "" + +#: ../C/gedit.xml:430(para) +msgid "" +"Choose SearchGo to Line to display the Go to Line " +"dialog." +msgstr "" + +#: ../C/gedit.xml:432(para) +msgid "" +"Type the number of the line that you want to move the cursor to in the " +"Line number field." +msgstr "" + +#: ../C/gedit.xml:434(para) +msgid "" +"Click Go to Line. The application moves the cursor to " +"the line number that you specify." +msgstr "" + +#: ../C/gedit.xml:436(para) +msgid "" +"To close the Go to Line dialog, click Close." +msgstr "" + +#: ../C/gedit.xml:443(title) +msgid "Finding and Replacing" +msgstr "" + +#: ../C/gedit.xml:445(para) +msgid "" +"In gedit, there are two ways of searching for " +"text. You can use the Find dialog to search for a " +"specific piece of text, or Incremental Search to " +"highlight matching text as you type it." +msgstr "" + +#: ../C/gedit.xml:450(title) +msgid "Finding Text" +msgstr "" + +#: ../C/gedit.xml:451(para) +msgid "To search a file for a string of text, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:453(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" + +#: ../C/gedit.xml:455(para) +msgid "" +"Type the string that you want to find in the Search for " +"field. You can include special characters such as a new line or tab: see " +"." +msgstr "" + +#: ../C/gedit.xml:457(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string after your current cursor position. If " +"gedit finds the string, the application selects " +"first occurrence of the string. Other occurrences of the string are " +"highlighted." +msgstr "" + +#: ../C/gedit.xml:459(para) +msgid "" +"To find the next occurrence of the string, click Find " +"or choose SearchFind Next. To find the previous occurrence of the text, " +"choose SearchFind Previous." +msgstr "" + +#: ../C/gedit.xml:462(para) +msgid "" +"After you have closed the Find dialog, you can still " +"move the selection to other occurrences of the text by choosing " +"SearchFind Next and SearchFind " +"Previous." +msgstr "" + +#: ../C/gedit.xml:463(para) +msgid "" +"To remove the highlighting from the text, choose " +"SearchClear Highlight." +msgstr "" + +#: ../C/gedit.xml:467(title) +msgid "Incremental Search" +msgstr "" + +#: ../C/gedit.xml:469(para) +msgid "" +"Incremental search highlights matching text in the document as you type it " +"letter by letter. (This is similar to the search feature in several web " +"browsers.)" +msgstr "" + +#: ../C/gedit.xml:470(para) +msgid "" +"To start an incremental search, choose SearchIncremental Search. The " +"search box appears at the top of the display area." +msgstr "" + +#: ../C/gedit.xml:471(para) +msgid "" +"Begin typing, and text that matches will be highlighted in the document. The " +"first instance after the cursor position is also selected." +msgstr "" + +#: ../C/gedit.xml:472(para) +msgid "" +"To advance the selection to the next match while keeping the incremental " +"search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +msgstr "" + +#: ../C/gedit.xml:473(para) +msgid "" +"You can also use the up and down arrow keys or the mouse wheel to move the " +"selection between matches." +msgstr "" + +#: ../C/gedit.xml:478(title) +msgid "Replacing Text" +msgstr "" + +#: ../C/gedit.xml:480(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:482(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" + +#: ../C/gedit.xml:484(para) +msgid "" +"Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +"tab: see ." +msgstr "" + +#: ../C/gedit.xml:485(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "" + +#: ../C/gedit.xml:489(para) +msgid "" +"To examine each occurrence of the string before replacing it, click " +"Find. If gedit finds the " +"string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +"next occurrence of the string, click Find again." +msgstr "" + +#: ../C/gedit.xml:490(para) +msgid "" +"To replace all occurrences of the string throughout the document, click " +"Replace All." +msgstr "" + +#: ../C/gedit.xml:495(title) +msgid "Find and Replace Options" +msgstr "" + +#: ../C/gedit.xml:496(para) +msgid "" +"The Find dialog and the Replace " +"dialog both have the following options:" +msgstr "" + +#: ../C/gedit.xml:498(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type. For example, " +"with Match case selected, \"TEXT\" will not match \"text" +"\"." +msgstr "" + +#: ../C/gedit.xml:500(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type. For example, with Match entire word only " +"selected, \"text\" will not match \"texture\"." +msgstr "" + +#: ../C/gedit.xml:502(para) +msgid "" +"Select the Search backwards option to search backwards " +"towards the beginning of the document." +msgstr "" + +#: ../C/gedit.xml:504(para) +msgid "" +"Select the Wrap around option to search to one end of " +"the document and then continue the search from the other end of the file." +msgstr "" + +#: ../C/gedit.xml:511(title) +msgid "Special Characters" +msgstr "" + +#: ../C/gedit.xml:512(para) +msgid "" +"You can include the following escape sequences in the text to find or " +"replace to represent special characters:" +msgstr "" + +#: ../C/gedit.xml:515(literal) +msgid " n" +msgstr "" + +#: ../C/gedit.xml:517(para) +msgid "Specifies a new line." +msgstr "" + +#: ../C/gedit.xml:521(literal) +msgid " t" +msgstr "" + +#: ../C/gedit.xml:523(para) +msgid "Specifies a tab character." +msgstr "" + +#: ../C/gedit.xml:527(literal) +msgid " r" +msgstr "" + +#: ../C/gedit.xml:529(para) +msgid "Specifies a carriage return." +msgstr "" + +#: ../C/gedit.xml:537(title) +msgid "Printing" +msgstr "Estampatge" + +#: ../C/gedit.xml:541(title) +msgid "Setting the Page Options" +msgstr "" + +#: ../C/gedit.xml:543(para) +msgid "" +"To set the page options, choose FilePage Setup to display the " +"Page Setup dialog." +msgstr "" + +#: ../C/gedit.xml:545(para) +msgid "" +"The Page Setup dialog enables you to specify the " +"following print options:" +msgstr "" + +#: ../C/gedit.xml:548(title) +msgid "General Tabbed Section" +msgstr "" + +#: ../C/gedit.xml:550(guilabel) +msgid "Print syntax highlighting" +msgstr "" + +#: ../C/gedit.xml:552(para) +msgid "" +"Select this option to print syntax highlighting. For more information about " +"syntax highlighting, see ." +msgstr "" + +#: ../C/gedit.xml:555(guilabel) +msgid "Print page headers" +msgstr "" + +#: ../C/gedit.xml:557(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "" + +#: ../C/gedit.xml:560(guilabel) ../C/gedit.xml:1162(guilabel) +msgid "Line Numbers" +msgstr "" + +#: ../C/gedit.xml:563(para) +msgid "" +"Select the Print line numbers option to include line " +"numbers when you print a file." +msgstr "" + +#: ../C/gedit.xml:564(para) +msgid "" +"Use the Number every ... lines spin box to specify how " +"often to print the line numbers, for example every 5 lines, every 10 lines, " +"and so on." +msgstr "" + +#: ../C/gedit.xml:567(guilabel) ../C/gedit.xml:1155(guilabel) +#: ../C/gedit.xml:1759(para) +msgid "Text Wrapping" +msgstr "" + +#: ../C/gedit.xml:569(para) +msgid "" +"Select the Enable text wrapping option to wrap text " +"onto the next line, at a character level, when you print a file. The " +"application counts wrapped lines as one line for line numbering purposes." +msgstr "" + +#: ../C/gedit.xml:571(para) +msgid "" +"Select the Do not split words over two lines option to " +"wrap text onto the next line, at a word level, when you print a file." +msgstr "" + +#: ../C/gedit.xml:579(title) +msgid "Fonts" +msgstr "Poliças" + +#: ../C/gedit.xml:581(guilabel) +msgid "Body" +msgstr "Còs" + +#: ../C/gedit.xml:583(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "" + +#: ../C/gedit.xml:586(guilabel) +msgid "Line numbers" +msgstr "" + +#: ../C/gedit.xml:589(para) +msgid "Click on this button to select the font to use to print line numbers." +msgstr "" + +#: ../C/gedit.xml:592(guilabel) +msgid "Headers and footers" +msgstr "" + +#: ../C/gedit.xml:594(para) +msgid "" +"Click on this button to select the font to use to print the headers and " +"footers in a file." +msgstr "" + +#: ../C/gedit.xml:598(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit, click Restore Default Fonts." +msgstr "" + +#: ../C/gedit.xml:605(title) +msgid "Printing a Document" +msgstr "" + +#: ../C/gedit.xml:606(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "" + +#: ../C/gedit.xml:608(para) +msgid "Print a document to a printer." +msgstr "" + +#: ../C/gedit.xml:610(para) +msgid "Print the output of the print command to a file." +msgstr "" + +#: ../C/gedit.xml:613(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" + +#: ../C/gedit.xml:615(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" + +#: ../C/gedit.xml:617(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" + +#: ../C/gedit.xml:619(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "" + +#: ../C/gedit.xml:622(title) +msgid "Job Tabbed Section" +msgstr "" + +#: ../C/gedit.xml:624(guilabel) +msgid "Print range" +msgstr "Airal d'estampatge" + +#: ../C/gedit.xml:626(para) +msgid "Select one of the following options to determine how many pages to print:" +msgstr "" + +#: ../C/gedit.xml:629(guilabel) +msgid "All" +msgstr "Totes" + +#: ../C/gedit.xml:630(para) +msgid "Select this option to print all of the pages in the file." +msgstr "" + +#: ../C/gedit.xml:633(guilabel) +msgid "Lines" +msgstr "Linhas" + +#: ../C/gedit.xml:634(para) +msgid "" +"Select this option to print the specified lines only. Use the " +"From and To spin boxes to specify " +"the line range." +msgstr "" + +#: ../C/gedit.xml:637(guilabel) +msgid "Selection" +msgstr "Seleccion" + +#: ../C/gedit.xml:638(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" + +#: ../C/gedit.xml:644(guilabel) +msgid "Copies" +msgstr "Còpias" + +#: ../C/gedit.xml:646(para) +msgid "" +"Use the Number of copies spin box to specify the number " +"of copies of the file that you want to print." +msgstr "" + +#: ../C/gedit.xml:647(para) +msgid "" +"If you print multiple copies of the file, select the Collate option to collate the printed copies." +msgstr "" + +#: ../C/gedit.xml:654(title) +msgid "Printer Tabbed Section" +msgstr "" + +#: ../C/gedit.xml:656(guilabel) +msgid "Printer" +msgstr "Estampaira" + +#: ../C/gedit.xml:658(para) +msgid "" +"Use this drop-down list to select the printer to which you want to print the " +"file." +msgstr "" + +#: ../C/gedit.xml:661(guilabel) +msgid "Settings" +msgstr "Paramètres" + +#: ../C/gedit.xml:663(para) +msgid "Use this drop-down list to select the printer settings." +msgstr "" + +#: ../C/gedit.xml:665(para) +msgid "" +"To configure the printer, click Configure. For " +"example, you can enable or disable duplex printing, or schedule delayed " +"printing, if this functionality is supported by the printer." +msgstr "" + +#: ../C/gedit.xml:669(guilabel) +msgid "Location" +msgstr "Emplaçament" + +#: ../C/gedit.xml:671(para) +msgid "Use this drop-down list to select one of the following print destinations:" +msgstr "" + +#: ../C/gedit.xml:676(guilabel) +msgid "CUPS" +msgstr "CUPS" + +#: ../C/gedit.xml:678(para) +msgid "Print the file to a CUPS printer." +msgstr "" + +#: ../C/gedit.xml:682(para) +msgid "" +"If the selected printer is a CUPS printer, CUPS is the " +"only entry in this drop-down list." +msgstr "" + +#: ../C/gedit.xml:689(guilabel) +msgid "lpr" +msgstr "lpr" + +#: ../C/gedit.xml:691(para) +msgid "Print the file to a printer." +msgstr "" + +#: ../C/gedit.xml:697(guilabel) +msgid "File" +msgstr "Fichièr" + +#: ../C/gedit.xml:699(para) +msgid "Print the file to a PostScript file." +msgstr "" + +#: ../C/gedit.xml:702(para) +msgid "" +"Click Save As to display a dialog where you specify " +"the name and location of the PostScript file." +msgstr "" + +#: ../C/gedit.xml:708(guilabel) +msgid "Custom" +msgstr "Personalizat" + +#: ../C/gedit.xml:710(para) +msgid "Use the specified command to print the file." +msgstr "" + +#: ../C/gedit.xml:713(para) +msgid "" +"Type the name of the command in the text box. Include all command-line " +"arguments." +msgstr "" + +#: ../C/gedit.xml:721(guilabel) +msgid "State" +msgstr "Estat" + +#: ../C/gedit.xml:723(para) ../C/gedit.xml:729(para) ../C/gedit.xml:735(para) +msgid "This functionality is not supported in this version of gedit." +msgstr "" + +#: ../C/gedit.xml:727(guilabel) +msgid "Type" +msgstr "Tipe" + +#: ../C/gedit.xml:733(guilabel) +msgid "Comment" +msgstr "Comentari" + +#: ../C/gedit.xml:743(title) +msgid "Paper Tabbed Section" +msgstr "" + +#: ../C/gedit.xml:745(guilabel) +msgid "Paper size" +msgstr "Talha de papièr" + +#: ../C/gedit.xml:747(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "" + +#: ../C/gedit.xml:750(guilabel) +msgid "Width" +msgstr "Largor" + +#: ../C/gedit.xml:752(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit." +msgstr "" + +#: ../C/gedit.xml:755(guilabel) +msgid "Height" +msgstr "Nautor" + +#: ../C/gedit.xml:757(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "" + +#: ../C/gedit.xml:760(guilabel) +msgid "Feed orientation" +msgstr "" + +#: ../C/gedit.xml:762(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "" + +#: ../C/gedit.xml:765(guilabel) +msgid "Page orientation" +msgstr "" + +#: ../C/gedit.xml:767(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "" + +#: ../C/gedit.xml:770(guilabel) +msgid "Layout" +msgstr "Presentacion" + +#: ../C/gedit.xml:772(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" + +#: ../C/gedit.xml:775(guilabel) +msgid "Paper tray" +msgstr "" + +#: ../C/gedit.xml:777(para) +msgid "Use this drop-down list to select the paper tray." +msgstr "" + +#: ../C/gedit.xml:788(title) +msgid "Programming Features" +msgstr "" + +#: ../C/gedit.xml:790(para) +msgid "" +"Several of gedit's features for programming are " +"provided with plugins. For example, the Tag List plugin provides a list of " +"commonly-used tags for different markup languages: see ." +msgstr "" + +#: ../C/gedit.xml:794(title) +msgid "Syntax Highlighting" +msgstr "" + +#: ../C/gedit.xml:795(para) +msgid "" +"Syntax highlighting makes source code easier to read by showing different " +"parts of the text in different colors." +msgstr "" + +#: ../C/gedit.xml:797(para) +msgid "" +"gedit chooses an appropriate syntax highlighting " +"mode based on a document's type. To override the syntax highlighting mode, " +"choose ViewHighlight Mode, then choose one of the following menu items:" +msgstr "" + +#: ../C/gedit.xml:800(guimenuitem) +msgid "Normal" +msgstr "Normal" + +#: ../C/gedit.xml:802(para) +msgid "Do not display any syntax highlighting." +msgstr "" + +#: ../C/gedit.xml:806(guisubmenu) +msgid "Sources" +msgstr "" + +#: ../C/gedit.xml:808(para) +msgid "" +"Display syntax highlighting to edit source code. Use the " +"Sources submenu to select the source code type." +msgstr "" + +#: ../C/gedit.xml:812(guisubmenu) +msgid "Markup" +msgstr "" + +#: ../C/gedit.xml:814(para) +msgid "" +"Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type." +msgstr "" + +#: ../C/gedit.xml:818(guisubmenu) +msgid "Scripts" +msgstr "" + +#: ../C/gedit.xml:820(para) +msgid "" +"Display syntax highlighting to edit script code. Use the " +"Scripts submenu to select the script code type." +msgstr "" + +#: ../C/gedit.xml:824(guisubmenu) +msgid "Others" +msgstr "Autres" + +#: ../C/gedit.xml:826(para) +msgid "" +"Display syntax highlighting to edit other types of code. Use the " +"Others submenu to select the code type." +msgstr "" + +#: ../C/gedit.xml:830(para) +msgid "" +"For more information about how to configure syntax highlighting, see ." +msgstr "" + +#: ../C/gedit.xml:836(title) +msgid "Piping the Output of a Command to a File" +msgstr "" + +#: ../C/gedit.xml:837(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" + +#: ../C/gedit.xml:838(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" + +#: ../C/gedit.xml:839(para) +msgid "" +"Alternatively, you can use the External tools " +"plugin to pipe command output to the current file." +msgstr "" + +#: ../C/gedit.xml:845(title) +msgid "Shortcut Keys" +msgstr "" + +#: ../C/gedit.xml:846(para) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the mouse " +"and menus. The following tables list all of gedit's shortcut keys." +msgstr "" + +#: ../C/gedit.xml:847(para) +msgid "" +"For more on shortcut keys, see the Desktop User Guide." +msgstr "" + +#. ============= Tabs ======================== +#: ../C/gedit.xml:850(bridgehead) ../C/gedit.xml:1180(guilabel) +msgid "Tabs" +msgstr "Onglets" + +#: ../C/gedit.xml:851(para) +msgid "Shortcuts for tabs:" +msgstr "" + +#: ../C/gedit.xml:859(para) ../C/gedit.xml:903(para) ../C/gedit.xml:959(para) +#: ../C/gedit.xml:1003(para) ../C/gedit.xml:1031(para) +#: ../C/gedit.xml:1078(para) ../C/gedit.xml:1121(para) +msgid "Shortcut Key" +msgstr "" + +#: ../C/gedit.xml:861(para) ../C/gedit.xml:905(para) ../C/gedit.xml:961(para) +#: ../C/gedit.xml:1005(para) ../C/gedit.xml:1033(para) +#: ../C/gedit.xml:1080(para) ../C/gedit.xml:1123(para) +msgid "Command" +msgstr "Comanda" + +#: ../C/gedit.xml:866(para) ../C/gedit.xml:870(para) +msgid "Ctrl + Alt + PageDown" +msgstr "" + +#: ../C/gedit.xml:867(para) +msgid "Switches to the next tab to the left." +msgstr "" + +#: ../C/gedit.xml:871(para) +msgid "Switches to the next tab to the right." +msgstr "" + +#: ../C/gedit.xml:874(para) ../C/gedit.xml:938(para) +msgid "Ctrl + W" +msgstr "" + +#: ../C/gedit.xml:875(para) +msgid "Close tab." +msgstr "" + +#: ../C/gedit.xml:878(para) +msgid "Ctrl + Shift + L" +msgstr "" + +#: ../C/gedit.xml:879(para) +msgid "Save all tabs." +msgstr "" + +#: ../C/gedit.xml:882(para) +msgid "Ctrl + Shift + W" +msgstr "" + +#: ../C/gedit.xml:883(para) +msgid "Close all tabs." +msgstr "" + +#: ../C/gedit.xml:886(para) +msgid "Alt + n" +msgstr "" + +#: ../C/gedit.xml:887(para) +msgid "Jump to nth tab." +msgstr "" + +#. ============= Files ======================== +#: ../C/gedit.xml:894(bridgehead) +msgid "Files" +msgstr "Fichièrs" + +#: ../C/gedit.xml:895(para) +msgid "Shortcuts for working with files:" +msgstr "" + +#: ../C/gedit.xml:910(para) +msgid "Ctrl + N" +msgstr "" + +#: ../C/gedit.xml:911(para) +msgid "Create a new document." +msgstr "" + +#: ../C/gedit.xml:914(para) +msgid "Ctrl + O" +msgstr "" + +#: ../C/gedit.xml:915(para) +msgid "Open a document." +msgstr "" + +#: ../C/gedit.xml:918(para) +msgid "Ctrl + L" +msgstr "" + +#: ../C/gedit.xml:919(para) +msgid "Open a location." +msgstr "" + +#: ../C/gedit.xml:922(para) +msgid "Ctrl + S" +msgstr "" + +#: ../C/gedit.xml:923(para) +msgid "Save the current document to disk." +msgstr "" + +#: ../C/gedit.xml:926(para) +msgid "Ctrl + Shift + S" +msgstr "" + +#: ../C/gedit.xml:927(para) +msgid "Save the current document with a new filename." +msgstr "" + +#: ../C/gedit.xml:930(para) +msgid "Ctrl + P" +msgstr "" + +#: ../C/gedit.xml:931(para) +msgid "Print the current document." +msgstr "" + +#: ../C/gedit.xml:934(para) +msgid "Ctrl + Shift + P" +msgstr "" + +#: ../C/gedit.xml:935(para) +msgid "Print preview." +msgstr "" + +#: ../C/gedit.xml:939(para) +msgid "Close the current document." +msgstr "" + +#: ../C/gedit.xml:942(para) +msgid "Ctrl + Q" +msgstr "" + +#: ../C/gedit.xml:943(para) +msgid "Quit Gedit." +msgstr "" + +#. ============= Edit ======================= +#: ../C/gedit.xml:950(bridgehead) ../C/gedit.xml:1484(guimenu) +#: ../C/gedit.xml:1490(guimenu) ../C/gedit.xml:1496(guimenu) +#: ../C/gedit.xml:1502(guimenu) +msgid "Edit" +msgstr "Edicion" + +#: ../C/gedit.xml:951(para) +msgid "Shortcuts for editing documents:" +msgstr "" + +#: ../C/gedit.xml:966(para) +msgid "Ctrl + Z" +msgstr "" + +#: ../C/gedit.xml:967(para) +msgid "Undo the last action." +msgstr "" + +#: ../C/gedit.xml:970(para) +msgid "Ctrl + Shift + Z" +msgstr "" + +#: ../C/gedit.xml:971(para) +msgid "Redo the last undone action ." +msgstr "" + +#: ../C/gedit.xml:974(para) +msgid "Ctrl + X" +msgstr "" + +#: ../C/gedit.xml:975(para) +msgid "Cut the selected text or region and place it on the clipboard." +msgstr "" + +#: ../C/gedit.xml:978(para) +msgid "Ctrl + C" +msgstr "" + +#: ../C/gedit.xml:979(para) +msgid "Copy the selected text or region onto the clipboard." +msgstr "" + +#: ../C/gedit.xml:982(para) +msgid "Ctrl + V" +msgstr "" + +#: ../C/gedit.xml:983(para) +msgid "Paste the contents of the clipboard." +msgstr "" + +#: ../C/gedit.xml:986(para) +msgid "Ctrl + A" +msgstr "" + +#: ../C/gedit.xml:987(para) +msgid "Select all." +msgstr "" + +#. ============= Panes ======================= +#: ../C/gedit.xml:994(bridgehead) +msgid "Panes" +msgstr "" + +#: ../C/gedit.xml:995(para) +msgid "Shortcuts for showing and hiding panes:" +msgstr "" + +#: ../C/gedit.xml:1010(para) +msgid "F9" +msgstr "F9" + +#: ../C/gedit.xml:1011(para) +msgid "Show/hide the side pane." +msgstr "" + +#: ../C/gedit.xml:1014(para) +msgid "Ctrl + F9" +msgstr "" + +#: ../C/gedit.xml:1015(para) +msgid "Show/hide the bottom pane." +msgstr "" + +#. ============= Search ======================= +#: ../C/gedit.xml:1022(bridgehead) +msgid "Search" +msgstr "Recercar" + +#: ../C/gedit.xml:1023(para) +msgid "Shortcuts for searching:" +msgstr "" + +#: ../C/gedit.xml:1038(para) +msgid "Ctrl + F" +msgstr "" + +#: ../C/gedit.xml:1039(para) +msgid "Find a string." +msgstr "" + +#: ../C/gedit.xml:1042(para) +msgid "Ctrl + G" +msgstr "" + +#: ../C/gedit.xml:1043(para) +msgid "Find the next instance of the string." +msgstr "" + +#: ../C/gedit.xml:1046(para) +msgid "Ctrl + Shift + G" +msgstr "" + +#: ../C/gedit.xml:1047(para) +msgid "Find the previous instance of the string." +msgstr "" + +#: ../C/gedit.xml:1050(para) +msgid "Ctrl + K" +msgstr "" + +#: ../C/gedit.xml:1051(para) +msgid "Interactive search." +msgstr "" + +#: ../C/gedit.xml:1054(para) +msgid "Ctrl + H" +msgstr "" + +#: ../C/gedit.xml:1055(para) +msgid "Search and replace." +msgstr "" + +#: ../C/gedit.xml:1058(para) +msgid "Ctrl + Shift + K" +msgstr "" + +#: ../C/gedit.xml:1059(para) +msgid "Clear highlight." +msgstr "" + +#: ../C/gedit.xml:1062(para) +msgid "Ctrl + I" +msgstr "" + +#: ../C/gedit.xml:1063(para) +msgid "Goto line." +msgstr "" + +#. ============= Tools ======================= +#: ../C/gedit.xml:1069(bridgehead) +msgid "Tools" +msgstr "Espleches" + +#: ../C/gedit.xml:1070(para) +msgid "Shortcuts for tools:" +msgstr "" + +#: ../C/gedit.xml:1085(para) +msgid "F7" +msgstr "F7" + +#: ../C/gedit.xml:1086(para) +msgid "Check spelling (with plugin)." +msgstr "" + +#: ../C/gedit.xml:1089(para) +msgid "Alt + F12" +msgstr "" + +#: ../C/gedit.xml:1090(para) +msgid "Remove trailing spaces (with plugin)." +msgstr "" + +#: ../C/gedit.xml:1093(para) +msgid "Ctrl + T" +msgstr "" + +#: ../C/gedit.xml:1094(para) +msgid "Indent (with plugin)." +msgstr "" + +#: ../C/gedit.xml:1097(para) +msgid "Ctrl + Shift + T" +msgstr "" + +#: ../C/gedit.xml:1098(para) +msgid "Remove Indent (with plugin)." +msgstr "" + +#: ../C/gedit.xml:1101(para) +msgid "F8" +msgstr "F8" + +#: ../C/gedit.xml:1102(para) +msgid "Run \"make\" in current directory (with plugin)." +msgstr "" + +#: ../C/gedit.xml:1105(para) +msgid "Ctrl + Shift + D" +msgstr "" + +#: ../C/gedit.xml:1106(para) +msgid "Directory listing (with plugin)." +msgstr "" + +#. ============= Help ======================= +#: ../C/gedit.xml:1112(bridgehead) +msgid "Help" +msgstr "Ajuda" + +#: ../C/gedit.xml:1113(para) +msgid "Shortcuts for help:" +msgstr "" + +#: ../C/gedit.xml:1128(para) +msgid "F1" +msgstr "F1" + +#: ../C/gedit.xml:1129(para) +msgid "Open gedit's user manual." +msgstr "" + +#: ../C/gedit.xml:1141(title) +msgid "Preferences" +msgstr "Preferéncias" + +#: ../C/gedit.xml:1143(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" + +#: ../C/gedit.xml:1153(title) +msgid "View Preferences" +msgstr "" + +#: ../C/gedit.xml:1157(para) +msgid "" +"Select the Enable text wrapping option to have long " +"lines of text flow into paragraphs instead of running off the edge of the " +"text window. This avoids having to scroll horizontally" +msgstr "" + +#: ../C/gedit.xml:1158(para) +msgid "" +"Select the Do not split words over two lines option to " +"have the text wrapping option preserve whole words when flowing text to the " +"next line. This makes text easier to read." +msgstr "" + +#: ../C/gedit.xml:1164(para) +msgid "" +"Select the Display line numbers option to display line " +"numbers on the left side of the gedit window." +msgstr "" + +#: ../C/gedit.xml:1168(guilabel) +msgid "Right Margin" +msgstr "" + +#: ../C/gedit.xml:1170(para) +msgid "" +"Select the Display right margin option to display a " +"vertical line that indicates the right margin." +msgstr "" + +#: ../C/gedit.xml:1171(para) +msgid "" +"Use the Right margin at column spin box to specify the " +"location of the vertical line." +msgstr "" + +#: ../C/gedit.xml:1178(title) +msgid "Editor Preferences" +msgstr "" + +#: ../C/gedit.xml:1182(para) +msgid "" +"Use the Tab width spin box to specify the width of the " +"space that gedit inserts when you press the " +"Tab key." +msgstr "" + +#: ../C/gedit.xml:1183(para) +msgid "" +"Select the Insert spaces instead of tabs option to " +"specify that gedit inserts spaces instead of a " +"tab character when you press the Tab key." +msgstr "" + +#: ../C/gedit.xml:1186(guilabel) +msgid "Auto Indentation" +msgstr "" + +#: ../C/gedit.xml:1187(para) +msgid "" +"Select the Enable auto indentation option to specify " +"that the next line starts at the indentation level of the current line." +msgstr "" + +#: ../C/gedit.xml:1190(guilabel) +msgid "File Saving" +msgstr "" + +#: ../C/gedit.xml:1192(para) +msgid "" +"Select the Create a backup copy of files before saving " +"option to create a backup copy of a file each time you save the file. The " +"backup copy of the file contains a ~ at the end of the filename." +msgstr "" + +#: ../C/gedit.xml:1193(para) +msgid "" +"Select the Autosave files every ... minutes option to " +"automatically save the current file at regular intervals. Use the spin box " +"to specify how often you want to save the file." +msgstr "" + +#: ../C/gedit.xml:1196(guilabel) +msgid "Undo" +msgstr "Anullar" + +#: ../C/gedit.xml:1198(para) +msgid "" +"Select the Limit to ... actions option to set a limit " +"on the number of editing actions that you can undo. Use the spin box to " +"specify the maximum number of actions that you can undo." +msgstr "" + +#: ../C/gedit.xml:1199(para) +msgid "" +"Select the Unlimited undo option to set no limit on the " +"number of editing actions that you can undo." +msgstr "" + +#: ../C/gedit.xml:1206(title) +msgid "Font & Colors Preferences" +msgstr "" + +#: ../C/gedit.xml:1208(guilabel) +msgid "Font" +msgstr "Poliça" + +#: ../C/gedit.xml:1210(para) +msgid "" +"Select the Use default theme font option to use the " +"default system font for the text in the gedit " +"text window." +msgstr "" + +#: ../C/gedit.xml:1211(para) +msgid "" +"The Editor font field displays the font that " +"gedit uses to display text. Click on the button " +"to specify the font type, style, and size to use for text." +msgstr "" + +#: ../C/gedit.xml:1214(guilabel) +msgid "Colors" +msgstr "Colors" + +#: ../C/gedit.xml:1216(para) +msgid "" +"Select the Use default theme colors option to use the " +"default theme colors in the gedit text window." +msgstr "" + +#: ../C/gedit.xml:1217(para) +msgid "" +"Click on the Normal text color color button to " +"display the color selector dialog. Select a color to use to display normal " +"text in the gedit text window." +msgstr "" + +#: ../C/gedit.xml:1218(para) +msgid "" +"Click on the Background color color button to display " +"the color selector dialog. Select a background color for the " +"gedit text window." +msgstr "" + +#: ../C/gedit.xml:1219(para) +msgid "" +"Click on the Selected text color color button to " +"display the color selector dialog. Select a color to use to display selected " +"text." +msgstr "" + +#: ../C/gedit.xml:1221(para) +msgid "" +"Click on the Selection color color button to display " +"the color selector dialog. Select a background color to use to highlight a " +"text selection." +msgstr "" + +#: ../C/gedit.xml:1228(title) +msgid "Syntax Highlighting Preferences" +msgstr "" + +#: ../C/gedit.xml:1230(guilabel) +msgid "Enable syntax highlighting" +msgstr "" + +#: ../C/gedit.xml:1232(para) +msgid "Select this option to highlight the syntax of the text that you edit." +msgstr "" + +#: ../C/gedit.xml:1235(guilabel) +msgid "Highlight mode" +msgstr "" + +#: ../C/gedit.xml:1237(para) +msgid "Use this drop-down list to select a syntax mode to configure." +msgstr "" + +#: ../C/gedit.xml:1240(guilabel) +msgid "Elements" +msgstr "Elements" + +#: ../C/gedit.xml:1242(para) +msgid "Use this list box to select a syntax element to configure." +msgstr "" + +#: ../C/gedit.xml:1245(term) +msgid "Format buttons" +msgstr "" + +#: ../C/gedit.xml:1247(para) +msgid "" +"Use the following buttons to change the format of the selected syntax " +"element:" +msgstr "" + +#: ../C/gedit.xml:1255(para) +msgid "Button" +msgstr "Boton" + +#: ../C/gedit.xml:1257(para) +msgid "Format" +msgstr "Format" + +#: ../C/gedit.xml:1269(phrase) +msgid "Shows icon for bold format." +msgstr "" + +#: ../C/gedit.xml:1275(para) +msgid "Bold" +msgstr "Gras" + +#: ../C/gedit.xml:1287(phrase) +msgid "Shows icon for italic format." +msgstr "" + +#: ../C/gedit.xml:1293(para) +msgid "Italic" +msgstr "Italic" + +#: ../C/gedit.xml:1305(phrase) +msgid "Shows icon for underline." +msgstr "" + +#: ../C/gedit.xml:1311(para) +msgid "Underline" +msgstr "Soslinhat" + +#: ../C/gedit.xml:1323(phrase) +msgid "Shows icon for strikethrough." +msgstr "" + +#: ../C/gedit.xml:1329(para) +msgid "Strikethrough" +msgstr "Barrat" + +#: ../C/gedit.xml:1339(guilabel) +msgid "Foreground" +msgstr "" + +#: ../C/gedit.xml:1341(para) +msgid "" +"Select this option to change the font color of the selected syntax element. " +"Click on the color button to display the color selector dialog, then select " +"the font color." +msgstr "" + +#: ../C/gedit.xml:1344(guilabel) +msgid "Background" +msgstr "Fons" + +#: ../C/gedit.xml:1346(para) +msgid "" +"Select this option to change the background color of the selected syntax " +"element. Click on the color button to display the color selector dialog, " +"then select the background color." +msgstr "" + +#: ../C/gedit.xml:1349(guibutton) +msgid "Reset to Default" +msgstr "" + +#: ../C/gedit.xml:1351(para) +msgid "" +"Click on this button to reset the foreground color and background color of " +"the selected syntax element to the default values." +msgstr "" + +#: ../C/gedit.xml:1358(title) +msgid "Plugins Preferences" +msgstr "" + +#: ../C/gedit.xml:1359(para) +msgid "" +"Plugins add extra features to gedit. For more " +"information on plugins and how to use the built-in plugins, see ." +msgstr "" + +#: ../C/gedit.xml:1364(title) +msgid "Enabling a Plugin" +msgstr "" + +#: ../C/gedit.xml:1365(para) +msgid "" +"To enable a gedit plugin, perform the following " +"steps:" +msgstr "" + +#: ../C/gedit.xml:1368(para) ../C/gedit.xml:1389(para) +#: ../C/gedit.xml:1713(para) +msgid "" +"Choose EditPreferences." +msgstr "" + +#: ../C/gedit.xml:1371(para) ../C/gedit.xml:1392(para) +#: ../C/gedit.xml:1716(para) +msgid "Select the Plugins tab." +msgstr "" + +#: ../C/gedit.xml:1374(para) +msgid "Select the check box next to the name of the plugin that you want to enable." +msgstr "" + +#: ../C/gedit.xml:1377(para) ../C/gedit.xml:1398(para) +msgid "" +"Click Close to close the Preferences dialog." +msgstr "" + +#: ../C/gedit.xml:1384(title) +msgid "Disabling a Plugin" +msgstr "" + +#: ../C/gedit.xml:1385(para) +msgid "A plugin remains enabled when you quit gedit." +msgstr "" + +#: ../C/gedit.xml:1386(para) +msgid "" +"To disable a gedit plugin, perform the following " +"steps:" +msgstr "" + +#: ../C/gedit.xml:1395(para) +msgid "" +"Deselect the check box next to the name of the plugin that you want to " +"disable." +msgstr "" + +#: ../C/gedit.xml:1407(title) +msgid "Plugins" +msgstr "Ajustons" + +#: ../C/gedit.xml:1409(title) +msgid "Working with Plugins" +msgstr "" + +#: ../C/gedit.xml:1410(para) +msgid "" +"You can add extra features to gedit by enabling " +"plugins. A plugin is a supplementary program that " +"enhances the functionality of an application. Plugins add new items to the " +"gedit menus for the new features they provide." +msgstr "" + +#: ../C/gedit.xml:1412(para) +msgid "" +"Several plugins come built-in with gedit, and you " +"can install more. The gedit website lists third-party plugins." +msgstr "" + +#: ../C/gedit.xml:1413(para) +msgid "" +"To enable and disable plugins, or see which plugins are currently enabled, " +"use the Plugins Preferences." +msgstr "" + +#: ../C/gedit.xml:1414(para) +msgid "The following plugins come built-in with gedit:" +msgstr "" + +#: ../C/gedit.xml:1420(para) +msgid "" +"Change Case allows you to change the case of the selected text." +msgstr "" + +#: ../C/gedit.xml:1423(para) +msgid "" +"Document " +"Statistics shows the number of lines, words, and " +"characters in the document." +msgstr "" + +#: ../C/gedit.xml:1426(para) +msgid "" +"External Tools allows you to execute external commands from " +"gedit." +msgstr "" + +#: ../C/gedit.xml:1429(para) +msgid "" +"File Browser allows you to browse your files and " +"folders in the side pane." +msgstr "" + +#: ../C/gedit.xml:1432(para) +msgid "" +"Indent Lines adds or removes indentation from the selected lines." +msgstr "" + +#: ../C/gedit.xml:1435(para) +msgid "" +"Insert Date/" +"Time adds the current date and time into a document." +msgstr "" + +#: ../C/gedit.xml:1438(para) +msgid "" +"Modelines allows you to set editing preferences for individual documents, " +"and supports Emacs, Kate and Vim-style modelines." +msgstr "" + +#: ../C/gedit.xml:1441(para) +msgid "" +"Python Console allows you to run commands in the python programming " +"language." +msgstr "" + +#: ../C/gedit.xml:1444(para) +msgid "" +"Snippets allows you to store frequently-used pieces of text and insert " +"them quickly into a document." +msgstr "" + +#: ../C/gedit.xml:1447(para) +msgid "" +"Sort " +"arranges selected lines of text into alphabetical order." +msgstr "" + +#: ../C/gedit.xml:1450(para) +msgid "" +"Spell Checker corrects the spelling in the selected text, or marks " +"errors automatically in the document." +msgstr "" + +#: ../C/gedit.xml:1453(para) +msgid "" +"Tag List lets you insert commonly-used tags for HTML and other languages " +"from a list in the side pane." +msgstr "" + +#: ../C/gedit.xml:1456(para) +msgid "" +"User Name inserts the username of the current user into the document." +msgstr "" + +#: ../C/gedit.xml:1463(title) +msgid "Change Case Plugin" +msgstr "" + +#: ../C/gedit.xml:1464(para) +msgid "" +"The Change Case plugin changes the case of the " +"selected text." +msgstr "" + +#: ../C/gedit.xml:1465(para) +msgid "" +"The following items are added to the Edit menu when the " +"Change Case plugin is enabled:" +msgstr "" + +#: ../C/gedit.xml:1475(para) +msgid "Menu Item" +msgstr "" + +#: ../C/gedit.xml:1477(para) +msgid "Action" +msgstr "Accion" + +#: ../C/gedit.xml:1479(para) +msgid "Example" +msgstr "Exemple" + +#: ../C/gedit.xml:1485(guisubmenu) ../C/gedit.xml:1491(guisubmenu) +#: ../C/gedit.xml:1497(guisubmenu) ../C/gedit.xml:1503(guisubmenu) +msgid "Change Case" +msgstr "" + +#: ../C/gedit.xml:1485(guimenuitem) +msgid "All Upper Case" +msgstr "" + +#: ../C/gedit.xml:1486(para) +msgid "Change each character to uppercase." +msgstr "" + +#: ../C/gedit.xml:1487(para) +msgid "This text becomes THIS TEXT" +msgstr "" + +#: ../C/gedit.xml:1491(guimenuitem) +msgid "All Lower Case" +msgstr "" + +#: ../C/gedit.xml:1492(para) +msgid "Change each character to lowercase." +msgstr "" + +#: ../C/gedit.xml:1493(para) +msgid "This Text becomes this text" +msgstr "" + +#: ../C/gedit.xml:1497(guimenuitem) +msgid "Invert Case" +msgstr "" + +#: ../C/gedit.xml:1498(para) +msgid "" +"Change each lowercase character to uppercase, and change each uppercase " +"character to lowercase." +msgstr "" + +#: ../C/gedit.xml:1499(para) +msgid "This Text becomes tHIS tEXT" +msgstr "" + +#: ../C/gedit.xml:1503(guimenuitem) +msgid "Title Case" +msgstr "" + +#: ../C/gedit.xml:1504(para) +msgid "Change the first character of each word to uppercase." +msgstr "" + +#: ../C/gedit.xml:1505(para) +msgid "this text becomes This Text" +msgstr "" + +#: ../C/gedit.xml:1514(title) +msgid "Document Statistics Plugin" +msgstr "" + +#: ../C/gedit.xml:1515(para) +msgid "" +"The Document Statistics plugin counts the number " +"of lines, words, characters with spaces, characters without spaces, and " +"bytes in the current file. The plugin displays the results in a " +"Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:1517(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"displays the following information about the file:" +msgstr "" + +#: ../C/gedit.xml:1520(para) +msgid "Number of lines in the current document." +msgstr "" + +#: ../C/gedit.xml:1523(para) +msgid "Number of words in the current document." +msgstr "" + +#: ../C/gedit.xml:1526(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "" + +#: ../C/gedit.xml:1529(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "" + +#: ../C/gedit.xml:1532(para) +msgid "Number of bytes in the current document." +msgstr "" + +#: ../C/gedit.xml:1537(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click " +"Update." +msgstr "" + +#: ../C/gedit.xml:1544(title) +msgid "External Tools Plugin" +msgstr "" + +#: ../C/gedit.xml:1545(para) +msgid "" +"The External Tools plugin allows you to execute " +"external commands from gedit. You can pipe some " +"content into a command and exploit its output (for example, " +"sed), or launch a predefined command (for " +"example, make)." +msgstr "" + +#: ../C/gedit.xml:1546(para) +msgid "" +"Use the External Tools Manager to create and edit " +"commands. To run an external command, choose it from the Tools menu." +msgstr "" + +#: ../C/gedit.xml:1549(title) +msgid "Built-in Commands" +msgstr "" + +#: ../C/gedit.xml:1550(para) +msgid "" +"The following commands are provided with the External Tools plugin:" +msgstr "" + +#: ../C/gedit.xml:1552(term) +msgid "Build" +msgstr "Version" + +#: ../C/gedit.xml:1554(para) +msgid "Runs make in the current document's directory." +msgstr "" + +#: ../C/gedit.xml:1557(term) +msgid "Directory Listing" +msgstr "" + +#: ../C/gedit.xml:1559(para) +msgid "Lists the contents of the current document's directory in a new document." +msgstr "" + +#: ../C/gedit.xml:1562(term) +msgid "Environment Variables" +msgstr "" + +#: ../C/gedit.xml:1564(para) +msgid "Displays the environment variables list in the bottom pane." +msgstr "" + +#: ../C/gedit.xml:1567(term) +msgid "Grep" +msgstr "" + +#: ../C/gedit.xml:1569(para) +msgid "" +"Searches for a term in all files in the current document directory, using " +"pattern matching. Results are shown in the bottom pane." +msgstr "" + +#: ../C/gedit.xml:1572(term) +msgid "Remove Trailing Spaces" +msgstr "" + +#: ../C/gedit.xml:1574(para) +msgid "Removes all spaces from the end of lines in the document." +msgstr "" + +#: ../C/gedit.xml:1581(title) +msgid "Defining a Command" +msgstr "" + +#: ../C/gedit.xml:1582(para) +msgid "" +"To add an external command, choose ToolsExternal Tools." +msgstr "" + +#: ../C/gedit.xml:1583(para) +msgid "" +"In the External Tools Manager window, click " +"New. You can speficy the following details for the " +"new command:" +msgstr "" + +#: ../C/gedit.xml:1585(term) +msgid "Description" +msgstr "Descripcion" + +#: ../C/gedit.xml:1587(para) +msgid "This description is shown in the statusbar when the menu command is chosen." +msgstr "" + +#: ../C/gedit.xml:1590(term) +msgid "Accelerator" +msgstr "" + +#: ../C/gedit.xml:1592(para) +msgid "Enter a keyboard shortcut for the command." +msgstr "" + +#: ../C/gedit.xml:1595(term) +msgid "Commands" +msgstr "Comandas" + +#: ../C/gedit.xml:1597(para) +msgid "" +"The actual commands to be run. Several gedit " +"environment variables can be used to pass content to these commands: see " +"." +msgstr "" + +#: ../C/gedit.xml:1600(term) +msgid "Input" +msgstr "Entrada" + +#: ../C/gedit.xml:1602(para) +msgid "" +"The content to give to the commands (as stdin): the " +"entire text of the current document, the current selection, line, or word." +msgstr "" + +#: ../C/gedit.xml:1605(term) +msgid "Output" +msgstr "Sortida" + +#: ../C/gedit.xml:1607(para) +msgid "" +"What to do with the output of the commands: display in the bottom pane, put " +"in a new document, or place in the current document, at the end, at the " +"cursor position, or replacing the selection or the entire document." +msgstr "" + +#: ../C/gedit.xml:1610(term) +msgid "Applicability" +msgstr "" + +#: ../C/gedit.xml:1612(para) +msgid "" +"Determines which sort of documents can be affected by the command, for " +"example whether saved or not, and local or remote." +msgstr "" + +#: ../C/gedit.xml:1620(title) +msgid "Editing and Removing Tools" +msgstr "" + +#: ../C/gedit.xml:1621(para) +msgid "To edit a tool, select it in the list and make changes to its properties." +msgstr "" + +#: ../C/gedit.xml:1622(para) +msgid "To rename a tool, click it again in the list." +msgstr "" + +#: ../C/gedit.xml:1623(para) +msgid "" +"To restore a built-in tool that you have changed, press Revert." +msgstr "" + +#: ../C/gedit.xml:1624(para) +msgid "" +"To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created " +"yourself." +msgstr "" + +#: ../C/gedit.xml:1628(title) +msgid "Variables" +msgstr "Variables" + +#: ../C/gedit.xml:1629(para) +msgid "" +"You can use the following variables in the Commands " +"field of the command definition:" +msgstr "" + +#: ../C/gedit.xml:1632(para) +msgid "GEDIT_CURRENT_DOCUMENT_URI" +msgstr "" + +#: ../C/gedit.xml:1635(para) +msgid "GEDIT_CURRENT_DOCUMENT_NAME" +msgstr "" + +#: ../C/gedit.xml:1638(para) +msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +msgstr "" + +#: ../C/gedit.xml:1641(para) +msgid "GEDIT_CURRENT_DOCUMENT_PATH" +msgstr "" + +#: ../C/gedit.xml:1644(para) +msgid "GEDIT_CURRENT_DOCUMENT_DIR" +msgstr "" + +#: ../C/gedit.xml:1647(para) +msgid "GEDIT_DOCUMENTS_URI" +msgstr "" + +#: ../C/gedit.xml:1650(para) +msgid "GEDIT_DOCUMENTS_PATH" +msgstr "" + +#: ../C/gedit.xml:1657(title) +msgid "File Browser Plugin" +msgstr "" + +#: ../C/gedit.xml:1658(para) +msgid "" +"The File Browser Plugin shows your files and " +"folders in the side pane, allowing you to quickly open files." +msgstr "" + +#: ../C/gedit.xml:1659(para) +msgid "" +"To view the File Browser, choose ViewSide Pane and then click on " +"the tab showing the File Browser icon at the bottom of the side pane." +msgstr "" + +#: ../C/gedit.xml:1661(title) +msgid "Browsing your Files" +msgstr "" + +#: ../C/gedit.xml:1662(para) +msgid "" +"The File Browser tab initially shows your file manager bookmarks. To browse " +"the contents of any item, double-click it." +msgstr "" + +#: ../C/gedit.xml:1663(para) +msgid "" +"To show a parent folder, choose from the drop-down list, or press the up " +"arrow on the File Browser's toolbar." +msgstr "" + +#: ../C/gedit.xml:1664(para) +msgid "" +"To show the folder that contains the document you are currently working on, " +"right-click in the file list and choose Set root to active " +"document." +msgstr "" + +#: ../C/gedit.xml:1668(para) +msgid "" +"To open a file in gedit, double-click it in the " +"file list." +msgstr "" + +#: ../C/gedit.xml:1671(title) +msgid "Creating Files and Folders" +msgstr "" + +#: ../C/gedit.xml:1672(para) +msgid "" +"To create a new, empty text file in the current folder shown in the browser, " +"right-click in the file list and choose New File." +msgstr "" + +#: ../C/gedit.xml:1673(para) +msgid "" +"To create a new folder in the current folder shown in the browser, right-" +"click in the file list and choose New Folder." +msgstr "" + +#: ../C/gedit.xml:1678(title) +msgid "Indent Lines Plugin" +msgstr "" + +#: ../C/gedit.xml:1679(para) +msgid "" +"The Indent Lines plugin adds or removes space " +"from the beginning of lines of text." +msgstr "" + +#: ../C/gedit.xml:1680(para) +msgid "To indent or unindent text, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:1682(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" + +#: ../C/gedit.xml:1687(para) +msgid "" +"To indent the text, choose EditIndent." +msgstr "" + +#: ../C/gedit.xml:1690(para) +msgid "" +"To remove the indentation, choose EditUnindent." +msgstr "" + +#: ../C/gedit.xml:1695(para) +msgid "" +"The amount of space used, and whether tab character or space characters are " +"used, depends on the Tab Stops settings in the Editor " +"Preferences: see ." +msgstr "" + +#: ../C/gedit.xml:1700(title) +msgid "Insert Date/Time Plugin" +msgstr "" + +#: ../C/gedit.xml:1701(para) +msgid "" +"The Insert Date/Time plugin inserts the current " +"date and time into a document. To use the Insert Date/Time plugin, perform " +"the following steps:" +msgstr "" + +#: ../C/gedit.xml:1703(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" + +#: ../C/gedit.xml:1704(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click Insert to close the Insert Date " +"and Time dialog. gedit inserts the " +"date/time at the cursor position in the current file." +msgstr "" + +#: ../C/gedit.xml:1705(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed. The date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" + +#: ../C/gedit.xml:1710(title) +msgid "Configuring the Insert Date/Time Plugin" +msgstr "" + +#: ../C/gedit.xml:1711(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:1719(para) +msgid "Select the Insert Date/Time plugin." +msgstr "" + +#: ../C/gedit.xml:1722(para) +msgid "" +"Click Configure Plugin to display the " +"Configure insert date/time plugin dialog." +msgstr "" + +#: ../C/gedit.xml:1725(para) +msgid "Select one of the options, as follows:" +msgstr "" + +#: ../C/gedit.xml:1727(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" + +#: ../C/gedit.xml:1730(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" + +#: ../C/gedit.xml:1733(para) +msgid "" +"To use the same customized date/time format each time you insert the date/" +"time, select the Use custom format option, then enter " +"the appropriate format in the text box. For more information about how to " +"specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose EditInsert Date and Time." +msgstr "" + +#: ../C/gedit.xml:1738(para) +msgid "" +"Click OK to close the Configure insert date/" +"time plugin dialog." +msgstr "" + +#: ../C/gedit.xml:1741(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" + +#: ../C/gedit.xml:1748(title) +msgid "Modelines Plugin" +msgstr "" + +#: ../C/gedit.xml:1749(para) +msgid "" +"The Modelines plugin allows you to set " +"preferences for individual documents. A modeline is a " +"line of text at the start or end of the document with settings that " +"gedit recognises." +msgstr "" + +#: ../C/gedit.xml:1750(para) +msgid "You can override the following preferences with modelines:" +msgstr "" + +#: ../C/gedit.xml:1753(para) +msgid "Tab width" +msgstr "" + +#: ../C/gedit.xml:1756(para) +msgid "Insert spaces instead of tabs" +msgstr "" + +#: ../C/gedit.xml:1762(para) +msgid "Right margin width" +msgstr "" + +#: ../C/gedit.xml:1766(para) +msgid "" +"The Modelines plugin supports a subset of the " +"options used by other text editors Emacs, " +"Kate and Vim." +msgstr "" + +#: ../C/gedit.xml:1769(title) +msgid "Emacs Modelines" +msgstr "" + +#: ../C/gedit.xml:1770(para) +msgid "" +"The first two lines of a document are scanned for Emacs modelines." +msgstr "" + +#: ../C/gedit.xml:1771(para) +msgid "" +"The Emacs options for tab-width, indent-tabs-mode " +"and autowrap are supported. For more information, see the GNU Emacs " +"Manual." +msgstr "" + +#: ../C/gedit.xml:1774(title) +msgid "Kate Modelines" +msgstr "" + +#: ../C/gedit.xml:1775(para) +msgid "" +"The first and last ten lines a document are scanned for Kate modelines." +msgstr "" + +#: ../C/gedit.xml:1776(para) +msgid "" +"The Kate options for tab-width, indent-width, " +"space-indent, word-wrap and word-wrap-column are supported. For more " +"information, see the Kate website." +msgstr "" + +#: ../C/gedit.xml:1779(title) +msgid "Vim Modelines" +msgstr "" + +#: ../C/gedit.xml:1780(para) +msgid "" +"The first and last three lines a document are scanned for Vim modelines." +msgstr "" + +#: ../C/gedit.xml:1781(para) +msgid "" +"The Vim options for et, expandtab, ts, tabstop, " +"wrap, and textwidth are supported. For more information, see the Vim website." +msgstr "" + +#: ../C/gedit.xml:1786(title) +msgid "Python Console Plugin" +msgstr "" + +#: ../C/gedit.xml:1787(para) +msgid "" +"The Python Console Plugin allows you to run " +"commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This shows " +"recent output and a command prompt field." +msgstr "" + +#: ../C/gedit.xml:1788(para) +msgid "" +"Commands entered into the python console are not checked before they are " +"run. It is therefore possible to hang gedit, for " +"example by entering an infinite loop." +msgstr "" + +#: ../C/gedit.xml:1792(title) +msgid "Snippets Plugin" +msgstr "" + +#: ../C/gedit.xml:1793(para) +msgid "" +"The Snippets plugin allows you to store " +"frequently-used pieces of text, called snippets, and " +"insert them quickly into a document." +msgstr "" + +#: ../C/gedit.xml:1794(para) +msgid "" +"Snippets are specific to the language syntax of the current document. For " +"example, when you are working with an HTML document, you can choose from a " +"list of snippets that are useful for HTML. In addition, some snippets are " +"global, and are available in all documents." +msgstr "" + +#: ../C/gedit.xml:1795(para) +msgid "" +"A number of built-in snippets are installed with gedit, which can be modified." +msgstr "" + +#: ../C/gedit.xml:1798(title) +msgid "Inserting Snippets" +msgstr "" + +#: ../C/gedit.xml:1799(para) +msgid "" +"To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +"usually the first few letters of the snippet, or something else that is " +"short and easy to remember." +msgstr "" + +#: ../C/gedit.xml:1800(para) +msgid "" +"Alternatively, press CtrlSpace to see a list of snippets you can insert." +msgstr "" + +#: ../C/gedit.xml:1804(title) +msgid "Adding Snippets" +msgstr "" + +#: ../C/gedit.xml:1805(para) +msgid "To create a new snippet, do the following:" +msgstr "" + +#: ../C/gedit.xml:1808(para) +msgid "" +"Choose ToolsManage Snippets. The Snippets Manager window " +"opens." +msgstr "" + +#: ../C/gedit.xml:1811(para) +msgid "" +"The list of snippets is grouped by language. Select the language you want to " +"add a snippet to, or a snippet in that language group. To add a snippet for " +"all languages, choose Global at the top of the list. The syntax of the " +"document you are currently working with is shown by default." +msgstr "" + +#: ../C/gedit.xml:1814(para) +msgid "Click New. A new snippet appears in the list." +msgstr "" + +#: ../C/gedit.xml:1817(para) +msgid "Enter the following information for the new snippet:" +msgstr "" + +#: ../C/gedit.xml:1819(term) +msgid "Name" +msgstr "Nom" + +#: ../C/gedit.xml:1821(para) +msgid "" +"Enter a name for the snippet in the text field within the snippet list. The " +"name of a snippet serves only as a reminder of its purpose. You can change " +"name of a snippet you create by clicking on it in the list." +msgstr "" + +#: ../C/gedit.xml:1824(term) +msgid "Snippet text" +msgstr "" + +#: ../C/gedit.xml:1826(para) +msgid "" +"Enter the text of the snippet in the Edit snippet text " +"box. For special codes you can use, see ." +msgstr "" + +#: ../C/gedit.xml:1827(para) +msgid "" +"You can switch back to the document window to copy text without closing the " +"Snippets Manager window." +msgstr "" + +#: ../C/gedit.xml:1830(term) +msgid "Tab Trigger" +msgstr "" + +#: ../C/gedit.xml:1832(para) +msgid "" +"Enter the tab trigger for the snippet. This is the text that you type before " +"pressing Tab to insert the snippet." +msgstr "" + +#: ../C/gedit.xml:1833(para) +msgid "" +"The tag must be either a single word comprising only letters, or any single " +"character. The Tab trigger will highlight in red if an " +"invalid tab trigger is entered." +msgstr "" + +#: ../C/gedit.xml:1836(term) +msgid "Shortcut key" +msgstr "" + +#: ../C/gedit.xml:1838(para) +msgid "Type a shortcut key to use for inserting the snippet." +msgstr "" + +#: ../C/gedit.xml:1847(title) +msgid "Editing and Removing Snippets" +msgstr "" + +#: ../C/gedit.xml:1848(para) +msgid "" +"To edit a snippet, select it in the list and make changes to its text and " +"activation properties." +msgstr "" + +#: ../C/gedit.xml:1849(para) +msgid "To rename a snippet, click it again in the list." +msgstr "" + +#: ../C/gedit.xml:1850(para) +msgid "" +"To restore a built-in snippet that you have changed, press Revert." +msgstr "" + +#: ../C/gedit.xml:1851(para) +msgid "" +"To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +"created yourself." +msgstr "" + +#: ../C/gedit.xml:1855(title) +msgid "Snippet Substitutions" +msgstr "" + +#: ../C/gedit.xml:1856(para) +msgid "" +"In addition to inserting stored text, a snippet can include customizable " +"text, or mark spaces where you can add text once the snippet is inserted in " +"your document." +msgstr "" + +#: ../C/gedit.xml:1860(para) +msgid "You can use the following placeholder codes in snippet text:" +msgstr "" + +#: ../C/gedit.xml:1862(term) +msgid "Tab placeholders" +msgstr "" + +#: ../C/gedit.xml:1864(para) +msgid "" +"$n defines a tab placeholder, " +"where n is any number from 1 upwards." +msgstr "" + +#: ../C/gedit.xml:1865(para) +msgid "" +"${n:default} defines a tab placeholder with a default value." +msgstr "" + +#: ../C/gedit.xml:1866(para) +msgid "" +"A tab placeholder marks a place in the snippet text where you can add extra " +"text after the snippet is inserted." +msgstr "" + +#: ../C/gedit.xml:1867(para) +msgid "" +"To use tab placeholders, insert the snippet as normal. The cursor is placed " +"at the first tab placeholder. Type text, and press Tab to " +"advance to the next tab placeholder. The number in the placeholder code " +"defines the order in which tab advances to each place in the text." +msgstr "" + +#: ../C/gedit.xml:1868(para) +msgid "" +"Press ShiftTab to " +"return to the previous tab placeholder. Pressing Tab when " +"there are no more tab placeholders moves the cursor to the end of the " +"snippet text, or to the end placeholder if it exists." +msgstr "" + +#: ../C/gedit.xml:1871(term) +msgid "Mirror placeholders" +msgstr "" + +#: ../C/gedit.xml:1873(para) +msgid "" +"A repeated tab placeholder will mirror the placeholder already defined. This " +"allows you to type in text only once that you want to appear several times " +"in the snippet." +msgstr "" + +#: ../C/gedit.xml:1876(term) +msgid "End placeholder" +msgstr "" + +#: ../C/gedit.xml:1878(para) +msgid "" +"$0 defines the end placeholder. This allows you to finish " +"working with the snippet with the cursor at a point other than the end of " +"the snippet text." +msgstr "" + +#: ../C/gedit.xml:1881(term) +msgid "Environmental variables" +msgstr "" + +#: ../C/gedit.xml:1883(para) +msgid "" +"Environmental variable such as $PATH and $HOME are substituted in snippet text. The following variables specific " +"to gedit can also be used:" +msgstr "" + +#: ../C/gedit.xml:1885(term) +msgid "$GEDIT_SELECTED_TEXT" +msgstr "" + +#: ../C/gedit.xml:1887(para) +msgid "The currently selected text." +msgstr "" + +#: ../C/gedit.xml:1890(term) +msgid "$GEDIT_FILENAME" +msgstr "" + +#: ../C/gedit.xml:1892(para) +msgid "" +"The full filename of the document, or an empty string if the document isn't " +"saved yet." +msgstr "" + +#: ../C/gedit.xml:1895(term) +msgid "$GEDIT_BASENAME" +msgstr "" + +#: ../C/gedit.xml:1897(para) +msgid "" +"The basename of the filename of the document, or an empty string if the " +"document isn't saved yet." +msgstr "" + +#: ../C/gedit.xml:1900(term) +msgid "$GEDIT_CURRENT_WORD" +msgstr "" + +#: ../C/gedit.xml:1902(para) +msgid "" +"The word at the cursor's location in the document. When this variable is " +"used, the current word will be replaced by the snippet text." +msgstr "" + +#: ../C/gedit.xml:1910(term) +msgid "Shell placeholders" +msgstr "" + +#: ../C/gedit.xml:1912(para) +msgid "" +"$(cmd) is replaced by the " +"result of executing cmd in a shell." +msgstr "" + +#: ../C/gedit.xml:1913(para) +msgid "" +"$(n:cmd) allows you to give this placeholder a reference, where " +"n is any number from 1 upwards. Use " +"$n to use the output from one shell " +"placeholder as input in another." +msgstr "" + +#: ../C/gedit.xml:1916(term) +msgid "Python placeholders" +msgstr "" + +#: ../C/gedit.xml:1918(para) +msgid "" +"$<cmd> is replaced by " +"the result of evaluating cmd in the python " +"interpreter." +msgstr "" + +#: ../C/gedit.xml:1919(para) +msgid "" +"$<a:cmd>" +" specifies another python placeholder as a dependency, where " +"a gives its order in the snippet. This allows you " +"to use python functions defined in another snippet. To specify several " +"dependencies, separate the numbers with commas thus: $<" +"a,b:cmd>" +msgstr "" + +#: ../C/gedit.xml:1920(para) +msgid "" +"To use a variable in all other python snippets, declare it as " +"global." +msgstr "" + +#: ../C/gedit.xml:1929(title) +msgid "Sort Plugin" +msgstr "" + +#: ../C/gedit.xml:1930(para) +msgid "" +"The Sort plugin arranges selected lines of text " +"into alphabetical order." +msgstr "" + +#: ../C/gedit.xml:1931(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" + +#: ../C/gedit.xml:1934(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:1937(para) +msgid "Select the lines of text you want to sort." +msgstr "" + +#: ../C/gedit.xml:1939(para) +msgid "" +"Choose EditSort. The Sort dialog opens." +msgstr "" + +#: ../C/gedit.xml:1942(para) +msgid "Choose the options you want for the sort:" +msgstr "" + +#: ../C/gedit.xml:1945(para) +msgid "" +"To arrange the text in reverse order, select Reverse order." +msgstr "" + +#: ../C/gedit.xml:1948(para) +msgid "To delete duplicate lines, select Remove duplicates." +msgstr "" + +#: ../C/gedit.xml:1951(para) +msgid "To ignore case sensitivity, select Ignore case." +msgstr "" + +#: ../C/gedit.xml:1954(para) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" + +#: ../C/gedit.xml:1959(para) +msgid "To perform the sort operation, click Sort." +msgstr "" + +#: ../C/gedit.xml:1966(title) +msgid "Spell Checker Plugin" +msgstr "" + +#: ../C/gedit.xml:1967(para) +msgid "" +"The Spell Checker plugin checks the spelling in " +"the selected text. You can configure gedit to " +"check the spelling automatically, or you can check the spelling manually, in " +"the specified language. The language setting, and the autocheck spelling " +"properties, apply per document. To use the Spell checker plugin, perform the " +"following steps:" +msgstr "" + +#: ../C/gedit.xml:1969(para) +msgid "" +"Choose ToolsSet Language to display the Set language " +"dialog. Select the appropriate language from the list. Click OK to close the Set language dialog." +msgstr "" + +#: ../C/gedit.xml:1972(para) +msgid "" +"To check the spelling automatically, choose ToolsAutocheck Spelling. To unset " +"the automatic spell check, choose ToolsAutocheck Spelling again. " +"When automatic spell checking is set, an icon is displayed beside the " +"Autocheck Spelling menu item. Automatic spell " +"checking is unset by default, each time gedit " +"starts." +msgstr "" + +#: ../C/gedit.xml:1973(para) +msgid "" +"Unknown spellings are displayed in a different color, and underlined. Right-" +"click on an unknown spelling, then select Spelling Suggestions from the popup menu:" +msgstr "" + +#: ../C/gedit.xml:1976(para) +msgid "" +"To replace the unknown spelling with another spelling in the list, select " +"the replacement spelling from the Spelling Suggestions " +"popup menu." +msgstr "" + +#: ../C/gedit.xml:1979(para) +msgid "" +"To add the unknown spelling to your personal dictionary, select " +"Spelling SuggestionsAdd." +msgstr "" + +#: ../C/gedit.xml:1982(para) +msgid "" +"To ignore all occurrences of the unknown spelling, so that they are no " +"longer flagged as unknown but are not added to your personal dictionary, " +"select Spelling SuggestionsIgnore All. The unknown word " +"is ignored in the current gedit session only." +msgstr "" + +#: ../C/gedit.xml:1987(para) +msgid "" +"To check the spelling manually, choose ToolsCheck Spelling." +msgstr "" + +#: ../C/gedit.xml:1989(para) +msgid "" +"If there are no spelling errors, an Information dialog " +"displays a message stating that the document does not contain misspelled " +"words. Click OK to close the Information dialog." +msgstr "" + +#: ../C/gedit.xml:1991(para) +msgid "" +"If there are spelling errors, the Check Spelling dialog " +"is displayed:" +msgstr "" + +#: ../C/gedit.xml:1994(para) +msgid "" +"The Misspelled word is displayed at the top of the " +"dialog." +msgstr "" + +#: ../C/gedit.xml:1997(para) +msgid "" +"A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +"selecting a spelling from the Suggestions list, or you " +"can enter text directly into the Change to text box." +msgstr "" + +#: ../C/gedit.xml:2000(para) +msgid "" +"To check the spelling of the text in the Change to text " +"box, click Check Word. If this is a known word, the " +"Suggestions list is replaced with the text " +"(correct spelling). If the word is not known, new entries appear " +"in the Suggestions list." +msgstr "" + +#: ../C/gedit.xml:2003(para) +msgid "" +"To ignore the current occurrence of the unknown word, click " +"Ignore. To ignore all occurrences of the unknown " +"word, click Ignore All. The unknown word is ignored " +"in the current gedit session only." +msgstr "" + +#: ../C/gedit.xml:2006(para) +msgid "" +"To change the current occurrence of the unknown word to the text in the " +"Change to text box, click Change. To change all occurrences of the unknown word to the text in the " +"Change to text box, click Change All." +msgstr "" + +#: ../C/gedit.xml:2009(para) +msgid "" +"To add the unknown word to your personal dictionary, click Add " +"word." +msgstr "" + +#: ../C/gedit.xml:2012(para) +msgid "" +"To close the Check Spelling dialog, click " +"Close." +msgstr "" + +#: ../C/gedit.xml:2021(title) +msgid "Tag List Plugin" +msgstr "" + +#: ../C/gedit.xml:2022(para) +msgid "" +"The Tag List plugin allows you to insert common " +"tags from a list in the side pane." +msgstr "" + +#: ../C/gedit.xml:2023(para) +msgid "To use the Tag List plugin, perform the following steps:" +msgstr "" + +#: ../C/gedit.xml:2025(para) +msgid "" +"Choose ViewSide Pane." +msgstr "" + +#: ../C/gedit.xml:2029(para) +msgid "" +"By default, the side pane shows a tab containing a list of open documents. " +"Click on the tab showing a + icon at the bottom of the side pane to show the " +"tag list tab." +msgstr "" + +#: ../C/gedit.xml:2031(para) +msgid "" +"Select the appropriate tag category from the drop-down list. For example, " +"HTML - Tags." +msgstr "" + +#: ../C/gedit.xml:2034(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "" + +#: ../C/gedit.xml:2037(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" + +#: ../C/gedit.xml:2039(para) +msgid "" +"To insert a tag in the current file and change the focus from the side pane " +"to the display area, press Return." +msgstr "" + +#: ../C/gedit.xml:2042(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftReturn." +msgstr "" + +#: ../C/gedit.xml:2051(title) +msgid "User Name Plugin" +msgstr "" + +#: ../C/gedit.xml:2052(para) +msgid "" +"The User name plugin inserts the username of the " +"current user into the document." +msgstr "" + +#: ../C/gedit.xml:2053(para) +msgid "" +"To insert your username at the cursor position, choose " +"EditInsert User Name." +msgstr "" + +#: ../C/gedit.xml:2055(para) +msgid "" +"This plugin is mostly provided as an example of how to create your own " +"plugins. For more information on creating plugins, see the gedit website." +msgstr "" + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +#: ../C/gedit.xml:0(None) +msgid "translator-credits" +msgstr "Yannig Marchegay (Kokoyaya) " + diff --git a/help/pl/figures/gedit-html-snippet.png b/help/pl/figures/gedit-html-snippet.png new file mode 100644 index 0000000..ef8c2ba Binary files /dev/null and b/help/pl/figures/gedit-html-snippet.png differ diff --git a/help/pl/figures/gedit3-screenshot.png b/help/pl/figures/gedit3-screenshot.png new file mode 100644 index 0000000..60f1f46 Binary files /dev/null and b/help/pl/figures/gedit3-screenshot.png differ diff --git a/help/pl/pl.po b/help/pl/pl.po new file mode 100644 index 0000000..7d1d70a --- /dev/null +++ b/help/pl/pl.po @@ -0,0 +1,3471 @@ +# Polish translation for gedit help. +# Copyright © 2017-2020 the gedit authors. +# This file is distributed under the same license as the gedit help. +# Piotr Drąg , 2017-2020. +# Aviary.pl , 2017-2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit-help\n" +"POT-Creation-Date: 2020-11-13 22:20+0000\n" +"PO-Revision-Date: 2020-11-15 12:30+0100\n" +"Last-Translator: Piotr Drąg \n" +"Language-Team: Polish \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Piotr Drąg , 2017-2020\n" +"Aviary.pl , 2017-2020" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Zmiana kolorów tekstu i czcionki w programie gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:11 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Zmiana schematu kolorów" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit zawiera kilka różnych schematów kolorów, umożliwiając " +"zmianę wyglądu głównego okna." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Aby zmienić schemat kolorów:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 C/gedit-change-default-font.page:29 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Kliknij przycisk menu w górnym prawym rogu okna i wybierz PreferencjeCzcionka i kolory." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Wybierz schemat kolorów." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Nowy schemat kolorów zostanie zastosowany od razu." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Niestandardowy schemat kolorów" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Można także używać schematów kolorów utworzonych przez innych, albo tworzyć " +"i używać własnych." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Strona wiki programu gedit zawiera instrukcje instalacji " +"niestandardowych schematów kolorów oraz przykładowe schematy, które można " +"pobrać i używać." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Niestandardowa czcionka tekstu w programie gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:13 +msgid "2011 2012 2013" +msgstr "2011-2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:20 +msgid "Change the default font" +msgstr "Zmiana domyślnej czcionki" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:22 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit domyślnie używa systemowej czcionki o stałej szerokości, " +"ale można ją zmienić." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:27 +msgid "To change the default font in gedit:" +msgstr "Aby zmienić domyślną czcionkę w programie gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed width font.\"" +msgstr "Odznacz pole obok napisu „Systemowa o stałej szerokości”." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:34 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Kliknij nazwę obecnej czcionki. gedit otworzy okno wyboru " +"czcionki, zawierające dostępne czcionki i umożliwiające wybór preferowanej." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Po wybraniu nowej czcionki użyj suwaka pod listą czcionek, aby " +"ustawić jej domyślny rozmiar." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:39 +msgid "Click Select, and then close the dialog." +msgstr "Kliknij przycisk Wybierz, a następnie zamknij okno." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Wychodzenie z używanego pliku." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Zamykanie pliku" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Aby zamknąć plik w programie gedit, kliknij przycisk × po prawej stronie karty danego pliku lub naciśnij " +"klawisze CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Każde z tych działań spowoduje zamknięcie pliku w programie gedit. Jeśli plik zawiera niezapisane zmiany, to gedit zapyta, czy " +"je zapisać przed zamknięciem pliku." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Otwarcie nowego pliku do modyfikacji." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Utworzenie nowego pliku" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"Najłatwiejszym sposobem na utworzenie nowego pliku w programie gedit jest kliknięcie przycisku Utwórz nowy dokument po lewej " +"stronie paska nagłówka albo naciśnięcie klawiszy CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Każde z tych działań spowoduje utworzenie nowego pliku w oknie programu " +"gedit. Jeśli w programie są otwarte inne pliki, to nowy plik " +"zostanie otwarty w nowej karcie po prawej." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Używanie uprawnień administracyjnych do modyfikowania pliku." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Modyfikowanie pliku jako root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Modyfikowanie plików jako root może być niebezpieczne i może uszkodzić " +"system. Należy uważać podczas modyfikowania plików jako root." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Aby modyfikować pliki jako root, uruchom program gedit " +"z terminala wpisując:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "Używając polecenia sudo należy wpisać swoje hasło." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Oprócz polecenia sudo można także uzyskać uprawnienia " +"administracyjne wpisując:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Następnie uruchom program gedit za pomocą polecenia gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Po otwarciu programu gedit z uprawnieniami administracyjnymi " +"będzie on je miał do zamknięcia." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Podstawy pracy na plikach w programie gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Podstawy pracy na plikach: otwieranie, zamykanie i zapisywanie" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Te tematy pomagają nowym użytkownikom programu gedit tworzyć, " +"zapisywać, otwierać i zamykać pliki." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Używanie programu gedit na pełnym ekranie." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Tryb pełnoekranowy" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Tryb pełnoekranowy programu gedit może ułatwić pracę z dużym " +"dokumentem. Ten tryb ukryje pasek menu, pasek kart " +"i pasek narzędziowy, wyświetlając więcej tekstu i umożliwiając " +"skupienie się na pracy." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Włączanie trybu pełnoekranowego" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Aby włączyć tryb pełnoekranowy, naciśnij klawisz F11. Paski menu, " +"tytułu i kart programu gedit zostaną ukryte, i wyświetlany będzie " +"tylko tekst bieżącego pliku." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Jeśli potrzeba wykonać działanie z menu programu gedit podczas " +"pracy w trybie pełnoekranowym, przesuń kursor myszy na górę ekranu. Pojawi " +"się pasek menu programu gedit, z którego można wybrać odpowiednie " +"działanie." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Aby przełączyć między otwartymi kartami w trybie pełnoekranowym, naciśnij " +"klawisze CtrlAltPage Up " +"lub CtrlAltPage Down." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Wyłączanie trybu pełnoekranowego" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Aby wyłączyć tryb pełnoekranowy i wrócić do standardowego okna programu " +"gedit, naciśnij klawisz F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Można także przesunąć kursor myszy na górę ekranu i poczekać na pojawienie " +"się paska menu, po czym kliknąć przycisk Wyłącz tryb " +"pełnoekranowy." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Używanie panelu bocznego jako przeglądarki plików." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Wyświetlanie i otwieranie plików z panelu bocznego" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Najczęstszym sposobem na przełączanie między plikami w programie gedit jest używanie kart na górze okna. W niektórych przypadkach, zwłaszcza " +"podczas pracy na dużej liczbie otwartych plików, łatwiej jest korzystać " +"z panelu bocznego." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Aby włączyć boczny panel, wybierz Widok Panel " +"boczny lub naciśnij klawisz F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"W każdej chwili można otworzyć lub zamknąć panel boczny naciskając klawisz " +"F9." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Otwieranie plików z panelu bocznego" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Aby otworzyć pliki z panelu bocznego, najpierw otwórz panel boczny " +"wybierając Widok Panel boczny (lub " +"naciśnij klawisz F9), a następnie wybierz Przeglądarkę " +"plików z rozwijanego menu na górze panelu." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Przełączy to panel boczny na tryb Przeglądarki plików. Można używać " +"przycisków nawigacji na górze panelu, aby wyszukiwać i otwierać pliki." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Używanie panelu bocznego do przełączania między otwartymi plikami" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Po otwarciu kilku plików można używać panelu bocznego do przełączania między " +"nimi. Aby wyświetlić listę otwartych plików, wybierz Dokumenty " +"z rozwijanego menu na górze panelu." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Kliknięcie nazwy pliku w panelu bocznym otworzy ten plik do modyfikacji." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Otwieranie plików, aby zacząć nad nimi pracować." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Otwieranie pliku lub zestawu plików" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Aby otworzyć plik w programie gedit, kliknij przycisk " +"Otwórz lub naciśnij klawisze CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Pojawi się okno Otwarcie. Użyj myszy lub klawiatury, aby wybrać " +"plik do otwarcia, a następnie kliknij przycisk Otwórz. Wybrany " +"plik zostanie otwarty w nowej karcie." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Aby zamknąć okno Otwarcie bez otwierania pliku, kliknij przycisk " +"Anuluj." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Można używać klawiszy CtrlShift do otwierania " +"więcej niż jednego pliku naraz. Jeśli przytrzymano klawisz Ctrl " +"podczas zaznaczania wielu plików, to kliknięcie przycisku Otwórz " +"otworzy wszystkie zaznaczone pliki." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Jeśli przytrzymano klawisz Shift podczas zaznaczania wielu " +"plików, to zostanie otwarty pierwszy zaznaczony plik, ostatni zaznaczony " +"plik i wszystkie pliki między nimi." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Otwieranie plików przechowywanych na innym komputerze." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Otwieranie pliku położonego na serwerze" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Przed otwarciem pliku na serwerze z poziomu programu gedit należy " +"poznać pewne informacje techniczne o serwerze. Na przykład, trzeba znać " +"adres IP lub adres URL serwera, a być może także rodzaj serwera (np. HTTP, " +"FTP itp.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Niektóre typy serwerów nakładają ograniczenia na to, co można robić " +"z plikami na nich przechowywanymi. Na przykład, czasami można otwierać pliki " +"z serwera, ale zmiany trzeba zapisywać lokalnie, na własnym komputerze." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Pamiętając o tym, wykonaj te kroki, aby otworzyć plik z serwera za pomocą " +"programu gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Kliknij przycisk Otwórz na pasku nagłówka." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Kliknij Inne położenia." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Wpisz adres IP lub adres URL odpowiedniego serwera." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Znajdź i zaznacz plik do otwarcia." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Użyj rozwijanej listy „Kodowanie znaków”, aby wybrać odpowiednie kodowanie " +"znaków." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Kliknij przycisk Otwórz." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Prawidłowe typy adresów URI to http:, ftp:, file: i wszystkie metody " +"obsługiwane przez bibliotekę GVFS." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Pliki z niektórych typów adresów URI są otwierane tylko do odczytu, " +"i wszystkie wprowadzone zmiany muszą być zapisywane w innym miejscu. Na " +"przykład, protokół HTTP umożliwia tylko odczyt plików. Pliki otwarte " +"z serwera FTP są tylko do odczytu, ponieważ nie wszystkie serwery FTP " +"poprawnie zapisują zdalne pliki." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Otwieranie plików poprzednio używanych w programie gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Ponowne otwieranie ostatnio używanego pliku" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit zapewnia łatwy dostęp do dziesięciu ostatnio używanych " +"plików:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Kliknij przycisk ze strzałką obok przycisku Otwórz na pasku " +"nagłówka." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "" +"gedit wyświetli menu z dziesięcioma ostatnio używanymi plikami." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Kliknij wybrany plik, a zostanie on otwarty w nowej karcie." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Po najechaniu myszą na ostatnio używany plik w menu wyświetlona zostanie " +"pełna ścieżka do pliku na pasku stanu na dole okna programu gedit." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Używanie wtyczek do dostosowywania działania programu gedit." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Konfigurowanie i używanie wtyczek programu gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Za pomocą wtyczek można lepiej wykorzystać program gedit. Kilka " +"wtyczek jest domyślnie instalowanych, ale duża liczba jest dostępna " +"oddzielnie." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Wiele dystrybucji systemu Linux udostępnia grupę wtyczek w postaci pakietu " +"gedit-plugins. Zainstaluj ten pakiet, aby używać ich w programie " +"gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Zainstaluj gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Domyślne wtyczki" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Dodatkowe wtyczki" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Zmiana wielkości liter zaznaczonego tekstu." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Zmiana wielkości liter" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Ta wtyczka pomaga zmieniać wielkość znaków zaznaczonych części tekstu. Można " +"jej używać do zmiany tekstu na same małe znaki, same wielkie znaki, odwracać " +"wielkość znaków i stosować wielkość Jak W Angielskim Tytule. Aby ją włączyć, " +"wybierz geditPreferencje WtyczkiZmień wielkość liter." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Po włączeniu wtyczki Zmień wielkość liter można jej używać za " +"pomocą tych kroków:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Zaznacz część tekstu do zmiany." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Wybierz geditZmień wielkość liter" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Wybierz odpowiednią opcję formatowania tekstu." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Zmiana zostanie zastosowana od razu." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Opcja Odwróć wielkość liter zmieni wszystkie małe znaki na " +"wielkie, i wszystkie wielkie na małe." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Opcja Jak W Tytule zmieni pierwszą literę każdego słowa na " +"wielką. Wszystkie pozostałe litery zostaną zmienione na małe." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Jeśli nie zaznaczono żadnego tekstu, to funkcja Zmień wielkość liter będzie niedostępna. Należy zaznaczyć część tekstu, aby móc jej użyć." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Wyświetlanie statystyk dokumentu." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Statystyki dokumentu" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Wtyczka Statystyki dokumentu wyświetla różne statystyki o bieżącym " +"dokumencie. Aby ją włączyć, wybierz geditPreferencje WtyczkiStatystyki dokumentu." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Używanie statystyk dokumentu" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Po włączeniu wtyczki użyj jej wybierając Narzędzia " +"Statystyki dokumentu. Zostanie wyświetlone okno " +"informacji statystycznych o dokumencie, w tym liczbę słów, wierszy, znaków, " +"znaków niebędących spacjami i rozmiar pliku w bajtach." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Można także używać Statystyk dokumentu do wyświetlania informacji " +"tylko o części dokumentu. Aby to zrobić, użyj kursora myszy do zaznaczenia " +"części tekstu do sprawdzenia, a następnie wybierz NarzędziaStatystyki dokumentu. gedit wyświetli " +"informacje o całym dokumencie oraz tylko o zaznaczonej części tekstu." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Wykonywanie skryptów na bieżących plikach i działanie z innymi programami." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Narzędzia zewnętrzne" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Wtyczka Narzędzia zewnętrzne pomaga uprościć często wykonywane " +"zadania. Konkretnie, rozszerza program gedit o wykonywanie " +"skryptów na plikach roboczych i działanie z innymi programami na komputerze. " +"Aby ją włączyć, wybierz gedit PreferencjeWtyczki Narzędzia zewnętrzne." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Konfiguracja wtyczki narzędzi zewnętrznych" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Po włączeniu wtyczki należy ją skonfigurować. Opcje konfiguracji są dostępne " +"w NarzędziaZarządzaj narzędziami zewnętrznymi." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Ta wtyczka jest przeznaczona dla zaawansowanych użytkowników, i wymaga " +"wiedzy o skryptach, aby być przydatna. Używaj jej ostrożnie, jako że pomyłka " +"w skrypcie może wpłynąć na dokumenty na nieprzewidziane sposoby." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Używanie panelu bocznego do przeglądania i otwierania plików." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panel przeglądarki plików" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"W zależności od sposobu używania programu gedit, wtyczka " +"Panel przeglądarki plików może okazać się przydatna. Osadza ona " +"przeglądarkę plików w panelu bocznym, zapewniając łatwy dostęp do " +"często używanych plików." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Można włączyć panel boczny wybierając geditPreferencje WtyczkiPanel " +"przeglądarki plików." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Wstawianie bieżącej daty/czasu w miejscu kursora." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Wstawianie daty/czasu" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Jak nazwa tej wtyczki sugeruje, Wstawianie daty/czasu umożliwia " +"wstawianie daty lub czasu w miejscu kursora." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Aby włączyć wtyczkę:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Kliknij przycisk menu w górnym prawym rogu okna i wybierz Preferencje Wtyczki." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Zaznacz Wstawianie daty/czasu, aby ją włączyć." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Aby jej użyć, kliknij przycisk menu w górnym prawym rogu okna i wybierz " +"Narzędzia Wstaw datę i czas…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Domyślnie wtyczka Wstawianie daty/czasu pyta o preferowany format " +"daty/czasu podczas każdego użycia. Można jednak wybrać domyślny format daty " +"i czasu klikając przycisk menu w górnym prawym rogu okna i wybierając " +" PreferencjeWtyczki Wstawianie daty/czasuPreferencje." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Jak instalować wtyczki innych autorów." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Dodatkowe wtyczki" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Zainstalowanie wtyczek innych autorów zapewnia dodatkowe funkcje, które nie " +"są dostępne w domyślnych wtyczkach programu gedit ani " +"w dodatkowych wtyczkach będących częścią pakietu gedit-plugins. " +"W Internecie dostępna jest lista wtyczek innych autorów." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Instalacja wtyczki innego autora obejmuje pobieranie wtyczki, umieszczanie " +"jej plików we właściwym katalogu i jej włączenie." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Zwykle można pobrać wtyczkę z jej strony, ale czasem trzeba użyć systemu " +"kontroli wersji, takiego jak git, Bazaar lub " +"Subversion, aby skopiować repozytorium wtyczki z Internetu. " +"Dokumentacja wtyczki zawiera informacje o jej pobieraniu." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Umieść pliki wtyczki w katalogu /home/nazwa-użytkownika/." +"local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "Zastąp nazwa-użytkownika swoją nazwą użytkownika." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Po umieszczeniu plików wtyczki we właściwym katalogu pojawi się ona w menu " +"Preferencje. Kliknij przycisk menu w górnym prawym rogu okna i wybierz " +" PreferencjeWtyczki[Nazwa wtyczki] , aby ją włączyć." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Kliknij przycisk Zamknij." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "Po włączeniu wtyczki powinna ona być dostępna." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Katalog .local jest domyślnie ukryty. Aby wyświetlić go i inne " +"ukryte pliki, wybierz WidokUkryte pliki lub naciśnij klawisze CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Jeśli katalogu .local/share/gedit/plugins/ nie ma na " +"komputerze, to należy go utworzyć." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Obsługa wierszy trybu z programów Emacs, Kate i Vim w programie gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Wiersze trybu" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Wtyczka Wiersze trybu umożliwia programowi gedit " +"analizowanie wierszy tekstu na początku i końcu pliku, a następnie " +"stosowanie zestawu preferencji dokumentu. Wtyczka Wiersze trybu " +"obsługuje podzestaw opcji używanych przez edytory tekstu Emacs, " +"KateVim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Aby włączyć wtyczkę Wiersze trybu, wybierz gedit PreferencjeWtyczkiWiersze trybu." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Ogólne opcje wierszy trybu" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "Za pomocą wierszy trybu programu gedit można ustawiać:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Szerokość tabulacji" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Szerokość wcięć" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Wstawianie spacji zamiast tabulacji" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Zawijanie tekstu" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Szerokość prawego marginesu" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Preferencje ustawione za pomocą wierszy trybu mają pierwszeństwo przed tymi " +"ustawionymi w oknie preferencji." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Wiersze trybu programu Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"W pierwszych dwóch wierszach dokumentu wyszukiwane są wiersze trybu programu " +"Emacs, a program gedit obsługuje te opcje:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Szerokość tabulacji" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Wyrównanie wcięć" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Tryb tabulacji wcięć" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Automatyczne zawijanie tekstu" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Podręcznik programu GNU Emacs zawiera więcej informacji " +"o wierszach trybu programu Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Wiersze trybu programu Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"W pierwszych i ostatnich dziesięciu wierszach dokumentu wyszukiwane są " +"wiersze trybu programu Kate, a program gedit obsługuje " +"te opcje:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "Szerokość tabulacji" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "Szerokość wcięć" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "Wcięcia spacji" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "Zawijanie słów" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "Kolumna zawijania słów" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Strona programu Kate zawiera " +"więcej informacji o wierszach trybu programu Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Wiersze trybu programu Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"W pierwszych i ostatnich trzech wierszach dokumentu wyszukiwane są wiersze " +"trybu programu Vim, a program gedit obsługuje te opcje:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (rozszerzanie tabulacji)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (zatrzymywanie tabulacji)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (szerokość Shift)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "Zawijanie" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "Szerokość tekstu" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Strona programu Vim zawiera " +"więcej informacji o wierszach trybu programu Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Dodawanie interaktywnej konsoli języka Python do dolnego panelu." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Konsola języka Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Można dodać konsolę języka Python do dolnego panelu, umożliwiając testowanie " +"skryptów języka Python bez opuszczania programu gedit. Aby ją " +"włączyć, wybierz gedit PreferencjeWtyczki Konsola języka Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Po włączeniu konsoli języka Python można ją otworzyć wybierając " +"WidokDolny panel." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Jeśli włączono także Osadzony terminal, to Konsola języka " +"Python pojawi się jako oddzielna karta w dolnym panelu." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Szybkie otwieranie pliku lub zestawu plików." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Szybkie otwarcie" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Jak wskazuje jej nazwa, wtyczka Szybkie otwarcie pomaga szybciej " +"otwierać pliki. Aby ją włączyć, wybierz gedit PreferencjeWtyczkiSzybkie otwarcie." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Po włączeniu wtyczki Szybkie otwarcie można jej używać w ten " +"sposób:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Otwórz okno Szybkie otwarcie naciskając klawisze " +"CtrlAltO lub wybierając " +"Szybko otwórz…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Pojawi się okno Szybkie otwarcie." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Użyj myszy, aby zaznaczyć plik lub pliki do otwarcia." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Aby zaznaczyć kilka plików, przytrzymaj klawisz Ctrl podczas ich " +"klikania." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Aby zaznaczyć grupę plików, kliknij pierwszy plik, przytrzymaj klawisz " +"Shift, a następnie kliknij ostatni plik na liście." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Szybkie otwarcie wyszuka pliki w:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Katalogu obecnie otwartego dokumentu" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"Głównym katalogu wtyczki Panel " +"przeglądarki plików" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Ostatnio używanych dokumentach wyświetlanych w katalogu Ostatnio " +"używaneMenedżerze plików" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Katalogach z zakładkami w Menedżerze plików" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Katalogu Pulpit" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Katalogu domowym" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Szybkie otwarcie wyświetla wszystkie pliki w powyższych " +"miejscach, bez względu czy zostały wcześniej otwarte." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Używanie wstawek, aby szybko wstawiać często używane części tekstu." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Wstawki" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Wstawki dostarczają wygodny sposób na wstawianie często używanych " +"części kodu do plików. Na przykład, wstawka HTML dla znacznika <" +"img> wstawi otwierającą i zamykającą część znacznika, a także " +"miejsca na wpisanie atrybutów obrazu. Ułatwia i przyspiesza to pisanie kodu." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Włączanie wtyczki wstawek" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Aby włączyć wtyczkę Wstawki:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Wybierz gedit Preferencje Wtyczki." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "Zaznacz Wstawki, aby włączyć wtyczkę." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Przeglądanie wstawek" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Aby przeglądać dostępne wstawki:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Wybierz Narzędzia Zarządzaj wstawkami." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Upewnij się, że ustawiona jest odpowiednia składnia. Pasek stanu na dole " +"okna programu gedit wyświetla obecnie ustawioną składnię. To " +"ustawienie umożliwia programowi gedit wstawianie właściwych wstawek. " +"gedit powinien wykryć język lub składnię używanego pliku, ale " +"czasami trzeba je ustawić ręcznie." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "W tym przykładzie język jest ustawiony na HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Przeglądanie wstawek dostępnych dla danego języka i składni." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Używanie wstawek" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Aby wstawić wstawkę do bieżącego dokumentu:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Wpisz nazwę wybranej wstawki w dowolnym miejscu bieżącego dokumentu." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Naciśnij klawisz Tab, aby wstawić wstawkę powiązaną z wpisanym " +"terminem." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Przykładowa wstawka" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Na przykład, jeśli ustawiono składnię HTML, wpisz head i naciśnij klawisz Tab. Tekst zostanie automatycznie " +"uzupełniony jako wstawka:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Tytuł strony</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Dodawanie wstawek" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Można dodać nowe wstawki działające globalnie (czyli niezależnie od języka) " +"lub tylko w konkretnej składni." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Wybierz Narzędzia Zarządzaj wstawkami." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Z panelu bocznego Zarządzanie wstawkami wybierz składnię " +"i kliknij przycisk „+”, aby wyświetlić istniejące wstawki dla tej składni." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Aby dodać wstawkę działającą globalnie (czyli wtedy, kiedy nie ustawiono " +"żadnej składni ani języka dla dokumentu), zaznacz opcję Globalna " +"w panelu bocznym Zarządzanie wstawkami." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Aby dodać nową wstawkę, kliknij ikonę z plusem w panelu bocznym " +"Zarządzanie wstawkami." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "Wpisz nazwę nowej wstawki. Nazwa może być inna niż sama wstawka." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"W sekcji Aktywacja należy wpisać termin w polu " +"tekstowym Wyzwalacz Tab:. Ten termin będzie " +"używany do wstawiania wstawki." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Aby wstawić wstawkę za pomocą skrótu klawiszowego, to kliknij pole tekstowe " +"Klawisz skrótu: i naciśnij wybraną kombinację " +"klawiszy. Po ich wciśnięciu i zwolnieniu zostanie ustawiony skrót klawiszowy." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"W polu tekstowym Edycja: wpisz wybrany tekst " +"wstawki. Można użyć ${n}, aby wskazywać zmienne, gdzie n jest zastępowane liczbą reprezentującą numeryczną kolejność dołączonych " +"zmiennych." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Przykład nowej wstawki" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Załóżmy, że utworzono wstawkę z terminem powitanie w polu Wyzwalacz Tab:. Pole tekstowe Edycja: zawiera:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <powitanie>Witaj, ${1:wspaniały}${2:piękny} świecie!\n" +" </powitanie>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Można wstawić tę wstawkę wpisując powitanie w dokumencie " +"i naciskając klawisz Tab. Zostanie wstawiony ten tekst:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <powitanie>Witaj, wspaniałypiękny świecie!</powitanie>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Słowa „wspaniały” i „piękny” mogą zostać zachowane lub usunięte w zależności " +"od potrzeb. Naciśnij klawisz Tab, aby wybrać między „wspaniały” " +"a „piękny”, a następnie naciśnij klawisz Del, aby usunąć " +"niepotrzebne słowo." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Sortowanie wierszy tekstu w kolejności alfabetycznej." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Sortowanie" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Wtyczka Sortowanie układa zaznaczone wiersze tekstu w kolejności " +"alfabetycznej." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Włączanie wtyczki sortowania" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Aby włączyć wtyczkę Sortowanie:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "Zaznacz Sortowanie, aby ją włączyć." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Używanie wtyczki sortowania" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Aby użyć wtyczki Sortowanie:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Zaznacz wybrane wiersze tekstu." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Wybierz Narzędzia Posortuj…." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Zostanie otwarte okno Sortowanie, umożliwiające wybór między " +"kilkoma opcjami:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Odwrotna kolejność ułoży tekst w odwrotnej kolejności " +"alfabetycznej." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "Usunięcie duplikatów usunie podwójne wartości z listy." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Bez rozróżniania małych i wielkich liter spowoduje ignorowanie " +"wielkości znaków." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Aby sortowanie ignorowało znaki na początku wierszy, ustaw pierwszy znak, od " +"którego zacząć sortowanie w polu Rozpoczęcie od kolumny." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Aby posortować, kliknij przycisk Posortuj." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Ustawianie drukowania stron w podanej kolejności." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Drukowanie stron we właściwej kolejności" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Odwracanie" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Drukarki zwykle drukują najpierw pierwszą stronę, a na końcu ostatnią " +"stronę, więc strony są w odwrotnej kolejności. Aby odwrócić kolejność:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Wybierz Plik Wydrukuj." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"W karcie Ogólne okna wydruku w sekcji Kopie zaznacz opcję Odwrotnie." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Ostatnia strona zostanie wydrukowana najpierw, i tak dalej." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Segregowanie" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Jeśli drukowana jest więcej niż jedna kopia dokumentu, to domyślnie kartki " +"będą grupowane według numerów stron (tzn. najpierw kopie pierwszej strony, " +"potem kopie drugiej strony itd.). Segregowanie spowoduje drukowanie każdej " +"kopii z jej stronami w jednej grupie." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Aby posegregować:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Kliknij Plik Wydrukuj." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"W karcie Ogólne okna wydruku w sekcji Kopie zaznacz opcję Posegregowane." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Drukowanie plików tworzonych w programie gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Drukowanie dokumentów" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Drukowanie w programie gedit wymaga podłączenia i skonfigurowania " +"drukarki. Pomoc GNOME na temat " +"drukowania zawiera informacje, jak to zrobić." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit umożliwia drukowanie do pliku i na papierze." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Podgląd wydruku" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Przed wydrukowaniem dokumentu można wyświetlić podgląd tego, jak będzie on " +"wyglądał. Aby to zrobić:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Wybierz Plik Podgląd wydruku. Można także nacisnąć klawisze " +"ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Podgląd dokumentu zostanie otwarty w tej samej karcie, co plik. Można " +"przeglądać go za pomocą przycisków nawigacji i narzędzi na pasku " +"narzędziowym na górze karty. Aby zamknąć podgląd i wrócić do dokumentu, " +"kliknij przycisk Zamknij podgląd." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Drukowanie na papierze" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Można drukować dokumentu na papierze za pomocą lokalnej lub zdalnej " +"drukarki. Aby wydrukować plik:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Wybierz Plik Wydrukuj Ogólne." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Wybierz drukarkę z listy dostępnych." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Po sprawdzeniu podglądu za pomocą opcji Podgląd " +"wydruku i ustawieniu odpowiednich opcji, kliknij przycisk Wydrukuj, aby wysłać plik do drukarki." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Dodatkowo, na karcie Ustawienia strony można wybrać " +"opcje UkładuPapieru. Strona Opcje układu " +"i papieru zawiera więcej informacji na temat tych ustawień, jako że " +"są one dostępne w każdym programie środowiska GNOME." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Drukowanie wielu kopii i tylko wybranych stron" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Można ustawić opcje ZakresKopie." + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Drukowanie do pliku" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Za pomocą programu gedit można także drukować do pliku. Aby " +"wydrukować dokument do pliku o innym formacie:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Wybierz Plik Wydrukuj Wydruk do pliku." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Można drukować do tych formatów:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "PDF (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "SVG (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Aby wydrukować dokument do pliku, kliknij przycisk Wydrukuj." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Wybór stron do wydrukowania." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Drukowanie tylko podanych stron" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Można wydrukować tylko podane strony dokumentu. Na przykład wpisanie numerów " +"stron „1,3,5-7,9” spowoduje wydrukowanie tylko 1., 3., 5., 6., 7. i 9. " +"strony. Aby to zrobić:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Wybierz Plik Wydrukuj…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"W karcie Ogólne w oknie wydruku wybierz Strony w sekcji Zakres." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Wpisz numery stron do wydrukowania, oddzielone przecinkami. Użyj myślnika, " +"aby podać zakres stron." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Krótkie wprowadzenie do programu gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Pierwsze kroki" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit to w pełni funkcjonalny edytor tekstu dla środowiska GNOME. " +"Można go używać do pisania prostych notatek i dokumentów, jak i korzystać " +"z jego zaawansowanych funkcji do pisania kodu." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Po uruchomieniu programu gedit można od razu zacząć pisać. Aby " +"zapisać tekst, kliknij przycisk Zapisz na pasku nagłówka." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Pozostałe części pomocy programu gedit zawierają więcej informacji o jego funkcjach." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Zastępowanie części tekstu w pliku." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Zastępowanie tekstu" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Redakcja tekstu może zajmować dużo czasu. Aby go oszczędzić, gedit zawiera funkcję Zastąp, pomagającą wyszukiwać i zastępować " +"części tekstu." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Zastępowanie tekstu w programie gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Otwórz narzędzie Zastąp klikając przycisk menuZnajdź i zastąp… lub naciśnij klawisze CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Wpisz tekst do zastąpienia w polu Wyszukiwanie." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"Wpisz nowy tekst, którym zastąpić poprzedni w polu Zamiana na." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Po wpisaniu oryginalnego i nowego tekstu można ustawić dodatkowe parametry " +"wyszukiwania. Można także wybrać, co zastąpić:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Aby zastąpić tylko następny wynik, kliknij przycisk Zmień." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Aby zastąpić wszystkie wystąpienia wyszukiwanego tekstu, kliknij " +"przycisk Zmień wszystko." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Zachowaj ostrożność podczas używania funkcji Zastąp wszystko. " +"Działa ona na całym pliku tekstowym, i nie umożliwia zaznaczania części " +"tekstu, na której zastąpić." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Więcej opcji" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Można także ustawić dodatkowe parametry wyszukiwania:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Rozróżnianie małych i wielkich liter" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Opcja Rozróżnianie małych i wielkich liter umożliwia określenie, " +"czy wyszukiwanie ma rozróżniać wielkość liter." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Tylko całe wyrazy" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Użyj tej opcji, aby wyszukiwać konkretnego słowa bez wyszukiwania fragmentów " +"innych słów. Na przykład, wyszukiwanie „raz” z tą opcją spowoduje wyszukanie " +"słów „raz”, ale nie oraz czy razowy." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Wyszukiwanie wstecz" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Ta opcja powoduje identyczne zachowanie, jak polecenie „Znajdź poprzednie”. " +"Zaznacz ją, aby wyszukiwać od końca do początku pliku." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Automatyczny powrót do początku" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Włączenie opcji Automatyczny powrót do początku powoduje, że " +"gedit po osiągnięciu końca pliku zaczyna wyszukiwanie na " +"początku. Zapewnia to, że wyszukanie/zastąpienie działa na całym pliku." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Używanie sekwencji sterujących" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Można używać sekwencji sterujących, aby wyszukiwać nowe wiersze, " +"powroty karetki i tabulacje." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nowy wiersz" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Powrót karetki" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabulacja" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Aby wyszukać znak \\ (ukośnik wsteczny) lub jedną " +"z sekwencji sterujących w tekście, należy podwoić ukośnik. Na przykład, aby " +"wyszukać znak \\, należy wpisać \\\\ w polu " +"wyszukiwania lub zastępowania. W ten sam sposób można wyszukiwać sekwencje " +"sterujące: aby wyszukać lub zastąpić \\n, wpisz \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Zapisywanie pliku na później." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Zapisywanie pliku" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Aby zapisać plik w programie gedit, kliknij przycisk Zapisz po prawej stronie paska nagłówka lub naciśnij " +"klawisze CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Jeśli zapisywany jest nowy plik, zostanie otwarte okno, w którym można " +"wybrać jego nazwę, a także katalog, w którym go zapisać." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Wyszukiwanie części tekstu w pliku." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Wyszukiwanie tekstu" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Narzędzie wyszukiwania pomaga wyszukiwać konkretne sekwencje tekstu w pliku." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Wyszukiwanie tekstu" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Otwórz okno wyszukiwania klikając przycisk menu Znajdź… lub " +"naciskając klawisze CtrlF. Przeniesie " +"to kursor na początek okna wyszukiwania." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Wpisz tekst do wyszukania w oknie wyszukiwania." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"W trakcie pisania gedit zacznie wyróżniać pasujące części tekstu." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "Aby przewijać przez wyniki wyszukiwania:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Kliknij strzałki w górę lub w dół obok okna wyszukiwania." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Naciśnij klawisze Strzałka w górę lub Strzałka w dół " +"na klawiaturze." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Naciśnij klawisze CtrlG lub " +"CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Aby zamknąć okna wyszukiwania, naciśnij klawisz Esc " +"lub Enter. Naciśnięcie klawisza Esc spowoduje powrót " +"kursora do miejsca, w którym był przed wyszukiwaniem. Naciśnięcie klawisza " +"Enter spowoduje powrót kursora do bieżącego miejsca w wynikach " +"wyszukiwania." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Wskazówki wyszukiwania" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Zaznaczenie części tekstu za pomocą myszy, a następnie naciśnięcie klawiszy " +"CtrlF spowoduje umieszczenie " +"zaznaczonego tekstu w oknie wyszukiwania." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Kliknięcie ikony lupy w oknie wyszukiwania lub " +"kliknięcie tego okna prawym przyciskiem wyświetli więcej opcji. Można " +"skorzystać z tych opcji:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Rozróżnianie małych i wielkich liter spowoduje rozróżnianie " +"wielkości liter." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Tylko całe wyrazy spowoduje wyszukiwanie tylko pełnych słów." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Automatyczny powrót do początku spowoduje wyszukiwanie tekstu od " +"początku do końca dokumentu i z powrotem." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Wyszukany tekst będzie wyróżniony nawet po ukończeniu wyszukiwania. Aby " +"wyłączyć to wyróżnienie, kliknij Wyłącz wyróżnianie lub naciśnij klawisze CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Wyszukiwanie błędów pisowni w plikach." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Sprawdzanie pisowni dokumentu" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Włączanie sprawdzania pisowni" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Funkcja sprawdzania pisowni w programie gedit jest dostarczana " +"jako wtyczka, którą można włączać w razie potrzeby. Aby ją włączyć:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Zaznacz Sprawdzanie pisowni, aby ją włączyć." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Aby wyszukać błędy pisowni w dokumencie:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Wybierz Narzędzia Sprawdź pisownię." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Aby gedit automatycznie wyróżniał błędy pisowni w dokumencie " +"w trakcie pisania, wybierz NarzędziaWyróżnianie błędów pisowni." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Używanie sprawdzania pisowni" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Za pomocą okna sprawdzania pisowni można wybrać właściwy zamiennik słowa " +"z błędem. Pogrubione słowo z błędem jest wyświetlane obok napisu " +"Błędnie napisane słowo:. Można wybrać jedno z tych działań, aby " +"je poprawić:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Zmiana na: umożliwia wpisanie słowa i użycie " +"przycisku Sprawdź słowo, aby sprawdzić jego " +"poprawność." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Podpowiedzi: wyświetla listę dostępnych " +"zamienników słowa." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Przycisk Zignoruj umożliwia pominięcie " +"sprawdzania pisowni dla jednego wystąpienia bieżącego słowa." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Przycisk Zignoruj wszystkie umożliwia pominięcie " +"sprawdzania pisowni dla wszystkich wystąpień bieżącego słowa." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Przycisk Zmień zastępuje słowo z błędem lub " +"nierozpoznane słowo zamiennikiem wybranym z listy Podpowiedzi:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Przycisk Zmień wszystkie zastępuje " +"wszystkie słowa z błędami lub nierozpoznane słowa zamiennikiem " +"wybranym z listy Podpowiedzi:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Przycisk Dodaj słowo umożliwia dodanie bieżącego " +"słowa do słownika użytkownika programu gedit. Dodanie " +"własnego słowa do słownika użytkownika umożliwia programowi " +"gedit rozpoznawanie go w dokumentach, dzięki czemu nie będzie " +"wyróżniane jako słowo z błędem." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Określanie języka dla sprawdzania pisowni" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Domyślnie gedit używa obecnego języka systemu, aby sprawdzać " +"pisownię dokumentu. Jeśli potrzeba użyć innego języka, wybierz NarzędziaUstaw język…, a następnie wybierz język do użycia." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Słowniki" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit używa małego narzędzia systemowego Enchant do sprawdzania pisowni. " +"Enchant może używać kilku różnych słowników. Dwa z nich to biblioteki " +"HunspellAspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Jeśli dany język jest niedostępny w programie gedit, to użyj " +"instalatora oprogramowania systemu lub menedżera pakietów do zainstalowania " +"odpowiedniej biblioteki." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Wyróżnianie elementów tekstu, aby łatwiej go czytać." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Włączanie wyróżniania elementów składni" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Wyróżnianie elementów składni" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit zapewnia wyróżnianie elementów składni dla wielu języków " +"znaczników, programowania i naukowych. Jeśli gedit wykrył używaną " +"składnię podczas otwierania pliku, to wyróżnianie zostanie automatycznie " +"włączone." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Jeśli po otwarciu dokumentu elementy składni nie są wyróżnione, to można " +"wybrać odpowiednią składnię lub język klikając Widok Tryb wyróżniania elementów składni, a następnie wybierając odpowiednią składnię. Można także " +"wybrać nazwę składni z listy na dole okna programu gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Grupowanie podobnych kart." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organizowanie plików w grupach kart" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Podczas pracy z wieloma kartami w programie gedit można je " +"grupować, aby ułatwić organizację otwartych plików. Dodanie nowej grupy kart " +"podzieli okno programu gedit na dwa panele, otworzy nowy " +"„Dokument bez tytułu” i go aktywuje. Można otwierać pliki w tej grupie kart " +"i przenosić karty z jednej grupy do drugiej." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Otwieranie nowej grupy kart w oknie programu gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Aby otworzyć nową grupę kart:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Kliknij kartę prawym przyciskiem i wybierz Przenieś do nowej grupy " +"kart." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Użyj skrótu CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Podzieli to okno programu gedit na dwa panele. Panel z nową grupą " +"kart zostanie umieszczony na prawo od aktywnej karty. Można przesuwać uchwyt " +"w prawo lub w lewo, aby przydzielić więcej lub mniej miejsca w oknie " +"programu gedit danemu panelowi." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Można otworzyć tyle grup kart w programie gedit, na ile pozwala " +"rozmiar ekranu, ale wtedy może być konieczne używanie uchwytu." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "Aby zamknąć panel grupy, zamknij wszystkie otwarte w nim karty." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Przeniesienie karty do innej grupy" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Aby przenieść kartę z jednej grupy do drugiej:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Kliknij kartę i przytrzymaj przycisk myszy." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Przeciągnij kartę do innego panelu grupy." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Umieść ją obok pozostałych kart w grupie." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Zwolnij przycisk myszy." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Zmiana położenia karty w oknie programu gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Przenoszenie i zmienianie kolejności kart" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Można przenosić karty w programie gedit, ułatwiając pracę na " +"plikach. Można zmieniać kolejność kart w tym samym oknie, przenosić je poza " +"okno programu (tworząc nowe okno) i przenosić z jednego okna do drugiego." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Zmiana kolejności kart w oknie programu gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Aby zmienić kolejność kart w oknie:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Przenieś kartę do wybranego miejsca między pozostałymi kartami." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Karta zostanie umieszczona w miejscu najbliższym do miejsca zwolnienia " +"karty, zaraz obok pozostałych otwartych kart." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Przenoszenie karty, tworząc nowe okno" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Aby utworzyć nowe okno z istniejącej karty:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Przeciągnij kartę z okna programu gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Aby przenieść kartę do nowego okna, kiedy program gedit jest " +"zmaksymalizowany, przeciągnij ją do górnego paska na górze ekranu." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Przenoszenie karty do innego okna programu" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Aby przenieść kartę z jednego okna do drugiego:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Przeciągnij kartę do nowego okna." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Umieść ją obok pozostałych kart w nowym oknie." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Można łatwiej przenosić karty z jednego okna do drugiego przeciągając je do " +"rogu Podgląd Powłoki GNOME. Wyświetli to wszystkie " +"otwarte okna programu gedit windows. Można wtedy zwolnić kartę na " +"wybranym oknie." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Tworzenie i zamykanie kart w oknie programu gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Dodawanie i usuwanie kart" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Używanie kart w programie gedit umożliwia korzystanie z kilku " +"plików w jednym oknie." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Dodawanie kart" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Aby dodać nową kartę z nowym plikiem, kliknij przycisk Utwórz nowy " +"dokument po lewej stronie paska nagłówka lub naciśnij klawisze " +"Ctrl T. Karta zostanie dodana na " +"prawo od pozostałych kart." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Usuwanie kart" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Aby usunąć kartę, kliknij przycisk × po prawej " +"stronie karty lub naciśnij klawisze CtrlW. Aby usunąć wszystkie otwarte karty, naciśnij klawisze " +"Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Przywracanie ostatniej zmiany jednego z plików." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Cofanie/ponawianie ostatniego działania" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Jeśli podczas pisania popełniono błąd, to można cofnąć tę zmianę naciskając " +"klawisze CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Nie można cofnąć zmiany po zamknięciu pliku w programie gedit." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Aby ponowić cofniętą zmianę, naciśnij klawisze CtrlShiftZ." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Edytor tekstu gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Edytor tekstu gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Główna strona podręcznika programu gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Edytor tekstu gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Witamy w pomocy programu gedit. Strona Pierwsze kroki zawiera krótkie wprowadzenie do " +"podstawowych funkcji programu." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Pozostałe tematy pomocy znajdują się w sekcjach poniżej. Dziękujemy za wybór " +"programu gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Praca na plikach" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Konfiguracja" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Wtyczki" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Drukowanie" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Na warunkach licencji <_:link-1/>." diff --git a/help/pt_BR/figures/gedit-html-snippet.png b/help/pt_BR/figures/gedit-html-snippet.png new file mode 100644 index 0000000..eca630c Binary files /dev/null and b/help/pt_BR/figures/gedit-html-snippet.png differ diff --git a/help/pt_BR/figures/gedit3-screenshot.png b/help/pt_BR/figures/gedit3-screenshot.png new file mode 100644 index 0000000..54cc417 Binary files /dev/null and b/help/pt_BR/figures/gedit3-screenshot.png differ diff --git a/help/pt_BR/pt_BR.po b/help/pt_BR/pt_BR.po new file mode 100644 index 0000000..73546fa --- /dev/null +++ b/help/pt_BR/pt_BR.po @@ -0,0 +1,4660 @@ +# Brazilian Portuguese translation of gedit documentation. +# Copyright (C) 2020 gedit's COPYRIGHT HOLDERS +# This file is distributed under the same license as the gedit package. +# Wagner Luís de A. M. Macêdo , 2007. +# Pedro Vaz de Mello de Medeiros , 2007. +# Leonardo Ferreira Fontenelle , 2007, 2008. +# Vladimir Melo , 2008. +# Fabricio Godoy , 2008. +# Krix Apolinário , 2009. +# Rodrigo L. M. Flores , 2009. +# Jose Carlos Menezes , 2013. +# Enrico Nicoletto , 2013. +# Felipe Braga , 2015. +# Fábio Nogueira , 2020. +# Rafael Fontenelle , 2013-2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit-help\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=gedit&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2020-03-06 17:17+0000\n" +"PO-Revision-Date: 2020-03-07 19:04-0300\n" +"Last-Translator: Rafael Fontenelle \n" +"Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" +"X-Generator: Gtranslator 3.32.0\n" +"X-Project-Style: gnome\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Wagner Luís de Araújo Menezes Macêdo , 2007\n" +"Pedro Vaz de Mello de Medeiros , 2007\n" +"Leonardo Ferreira Fontenelle , 2007, 2008\n" +"Vladimir Melo , 2008\n" +"Fabricio Godoy , 2008\n" +"Krix Apolinário , 2009\n" +"José Carlos Menezes , 2013\n" +"Enrico Nicoletto , 2013, 2014\n" +"Rafael Fontenelle , 2013-2020" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Altere as cores de texto e de plano de fundo no gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Alterando o esquema de cor" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"O gedit inclui diversos esquemas de cor, permitindo que você mude " +"a aparência da janela de texto principal." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Para alterar o esquema de cor:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Pressione o botão de menu no canto superior direito da janela e selecione " +"Preferências Fontes & cores." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Escolha seu esquema de cores desejado." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "O novo esquema de cores será aplicado imediatamente." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Usando um esquema de cores personalizado" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Você pode usar esquemas de cores criado por outros ou criar e usar o seus " +"próprios esquemas de cores." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instruções sobre como instalar os esquemas de cores personalizadas, e " +"exemplos de esquemas de cores que você pode baixar e usar, estão disponíveis " +"no wiki do gedit (inglês)." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Use uma fonte personalizada para seu texto no gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Alterando a fonte padrão" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"O gedit usará a fonte largura fixa do sistema por padrão, mas " +"você pode mudar a fonte padrão do gedit para que se adéque às " +"suas preferências." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Para alterar a fonte padrão no gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Selecione gedit Preferências Fontes & cores." + +# Mensagens de etapas de procedimento geralmente têm ponto ".", motivo pelo qual acrescentei intencionalmente o ponto +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Desmarque a caixa próxima à frase \"Usar a fonte de largura fixa padrão\"." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Clique no nome da fonte atual. gedit vai abrir uma janela de " +"seleção de fontes, permitindo que você veja as fontes disponíveis e escolha " +"aquela que você preferir." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Escolha sua fonte desejada e use o controle deslizante para " +"definir o tamanho da fonte padrão." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Clique Selecionar e então clique Fechar." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Saia do arquivo que você está usando." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Fechando um arquivo" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears on the right-" +"side of the file's tab, or press Ctrl W." +msgstr "" +"Para fechar um arquivo no gedit, selecione Fechar. Alternativamente, você pode clicar o pequeno \"X\" que " +"aparece no canto direito da aba do arquivo ou pressionar CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:24 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Qualquer uma destas ações irá fechar um arquivo no gedit. Se o " +"seu arquivo contém alterações que não foram salvas, o gedit " +"solicitará que você salve as alterações antes de fechar o arquivo." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Abra um novo arquivo para edição." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Criando um novo arquivo" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"A forma mais fácil de criar um novo arquivo no gedit é clicar no " +"botão Cria um novo documento no lado esquerdo da barra de " +"ferramentas ou pressione CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Qualquer uma destas ações irá criar um novo arquivo no gedit " +"janela. Se você tiver outros arquivos abertos no gedit, o novo " +"arquivo que você criar vai aparecer como uma nova guia à direita desses " +"arquivos." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Use privilégios administrativos para editar um arquivo." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Editando um arquivo como usuário root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Edição de arquivos como o usuário root é potencialmente perigoso e pode " +"quebrar o sistema de forma catastrófica. Tome muito cuidado ao editar " +"arquivos como este usuário." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Para editar arquivos como usuário root, inicie o gedit a partir " +"do terminal, digitando:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Usando o comando sudo, você precisará digitar com sucesso a sua " +"senha antes do gedit abrir." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Como uma alternativa ao comando sudo, você obter privilégios " +"administrativos, digitando:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Você então iniciaria o gedit usando o comando gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Assim que você tenha aberto o gedit com privilégios " +"administrativos, o gedit irá manter estes privilégios até que " +"você feche-a." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Aprenda o básico sobre como trabalhar com arquivos no gedit." + +# A tradução literal "Básicos de arquivos" não ficou legal... +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Operações básicas: abrir, fechar e salvar arquivos" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Se você é novo no gedit, esses tópicos irão ajudar você ao criar, " +"salvar, abrir e fechar arquivos." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Configure o gedit para usar a tela inteira." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Usando o modo tela cheia" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Quando se está trabalhando com um documento grande, pode lhe ser útil " +"trabalhar no modo de tela cheia do gedit. Usando o modo de tela " +"cheia, oculta-se a barra de menu, barra de abas e a " +"barra de ferramentas, mostrando mais do seu texto e permitindo-" +"lhe ter mais foco em suas tarefas." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Ativando o modo de tela cheia" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Para ativar o modo de tela cheia, pressioneF11. As barras de " +"menu, título e abas do gedit serão ocultadas e será apenas " +"apresentado a você o texto de seu arquivo atual." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Se você precisa executar uma ação no menu do gedit ao trabalhar " +"no modo de tela cheia, mova o ponteiro do mouse para o topo da tela. A barra " +"de menu do gedit voltará a aparecer, e você pode selecionar a " +"ação desejada." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Para alternar entre as abas abertas, enquanto em modo de tela cheia, " +"pressione CtrlAltPgUp ou " +" CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Desativando o modo de tela cheia" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Para desabilitar o modo tela cheia e voltar para a janela padrão do " +"gedit, pressione F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Você também pode mover o cursor do seu mouse para o topo da tela e esperar " +"aparecer a barra de menu. Quando a barra de menu " +"aparecer, selecione o botão Sair de tela cheia." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Use o painel lateral do gedit como um navegador de arquivos." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Vendo e abrindo arquivos do painel lateral" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"A maneira mais comum para alternar entre arquivos no gedit é " +"usando as abas no topo da janela no gedit. Em alguns casos, " +"entretanto, especialmente quando você está trabalhando com um número grande " +"de arquivos abertos, você pode achar mais fácil usar o painel lateral." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Para ativar o painel lateral, selecione Ver Painel " +"lateral, ou apenas pressione a tecla F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Você pode alternar o painel lateral entre aberto ou fechado pressionando " +"F9 a qualquer momento." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Abrindo arquivos do painel lateral" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Para abrir arquivos do painel lateral, primeiro abra o painel lateral " +"selecionando Ver Painel lateral (ou " +"pressione F9) e então escolha o Navegador de arquivos " +"a partir da lista suspensa no topo do painel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Isso irá ativar o modo Navegador de arquivos do painel lateral. " +"Você pode usar os botões de navegação no topo do painel para localizar e " +"abrir seus arquivos desejados." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Usando o painel lateral para alternar entre arquivos abertos" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Quando que você tiver vários arquivos abertos, você pode usar o painel " +"lateral para alternar entre os arquivos abertos. Para listar arquivos " +"abertos, escolha Documentos a partir da lista suspensa no topo do " +"painel." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Clicar em algum nome de arquivo no painel lateral abrirá este arquivo para " +"edição." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Abra arquivos para começar a trabalhar neles." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Abrindo um arquivo ou um conjunto de arquivos" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Para abrir um arquivo no gedit, clique no botão Abrir " +"ou pressione CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Isso fará com que a janela Abrir apareça. Use seu mouse ou " +"teclado para selecionar o arquivo que deseja abrir, e então clique em " +"Abrir. O arquivo que você selecionou será aberto em uma nova aba." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Para fechar a janela Abrir sem abrir um arquivo, clique " +"Cancelar." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Você pode usar as teclas Ctrl e Shift para abrir mais " +"de um arquivo de uma vez. Se você mantiver pressionada a tecla Ctrl enquanto seleciona múltiplos arquivos, ao clicar em Abrir " +"cada um dos arquivos selecionados serão abertos." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Manter pressionada a tecla Shift enquanto você seleciona vários " +"arquivos irá abrir o primeiro arquivo selecionado, o último arquivo " +"selecionado e todos os arquivos entre estes." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Acesse arquivos que estão armazenados em um computador diferente." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Abrindo um arquivo localizado em um servidor" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Antes de abrir um arquivo localizado em um servidor usando do gedit, você precisa saber algumas informações técnicas sobre o servidor. Por " +"exemplo, você precisa saber o endereço IP ou a URL do servidor, e pode " +"precisar saber que tipo de servidor é (ex.: HTTP, FTP etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Além disso, alguns tipos de servidor impõem restrições sobre o que se pode " +"fazer nos arquivos armazenados nele. Por exemplo, você pode ser capaz de " +"abrir um arquivo de um servidor, mas pode precisar salvar qualquer mudança " +"no arquivo localmente, no seu computador." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Com estas ressalvas em mente, execute os seguintes passos para abrir um " +"arquivo de um servidor usando o gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Na barra de cabeçalho, clique em Abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Documents…." +msgstr "Clique em Abrir documentos…." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Press CtrlL in the Open " +"dialog." +msgstr "" +"Pressione CtrlL no diálogo " +"Abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Digite o endereço IP ou URL do servidor apropriado." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Localize e selecione o arquivo que deseja abrir." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Use a lista suspensa de codificação de caracteres para selecionar a " +"codificação de caracteres apropriada." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:46 +msgid "Click Open." +msgstr "Clique em Abrir." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Tipos válidos de URI são http:, ftp:, file: e todos os métodos suportados " +"pelo gvfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Arquivos de alguns tipos de URI são abertos como somente para leitura, e " +"qualquer mudança que você fizer deve ser salva em um local diferente. Por " +"exemplo, o HTTP só permite que os arquivos sejam lidos. Arquivos aberto a " +"partir de FTP são somente para leitura porque nem todos os servidores de FTP " +"trabalham corretamente salvando arquivos remotos." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Acesse arquivos que você atualizou recentemente." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Abrindo novamente um arquivo recentemente usado" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"Por padrão, gedit fornece fácil acesso a cinco dos últimos " +"arquivos usados recentemente. Veja como você pode abrir um arquivo " +"recentemente usado:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +#| msgid "" +#| "Click the downward-facing arrow to the right of the Open " +#| "button." +msgid "Click the arrow button next to the Open button." +msgstr "Clique no botão de seta próxima ao botão Abrir." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "" +"O gedit irá exibir uma lista com os cinco arquivos usados mais " +"recentemente." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Selecione o arquivo desejado, e este será aberto em uma nova aba." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:29 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"Para ajustar o número de arquivos usados recentemente que o gedit exibe, " +"você precisa usar o aplicativo dconf-editor." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:33 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Inicie o dconf-editor e seleciona org " +"gnomegeditpreferencesui max-" +"recents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:36 +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Clique duas vezes no número próximo a max-recents e mude o número " +"para seu valor desejado." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Use plug-ins para personalizar o funcionamento do gedit." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configurando e usando os plug-ins do gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Você poder fazer mais coisas com o gedit usando plug-ins. Vários " +"plug-ins estão instalados por padrão, mas um grande número de outros plug-" +"ins estão disponíveis separadamente." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Muitas distribuições Linux criam um grupo desses plug-ins disponíveis como " +"um pacote de gedit-plugins. Instale o pacote gedit-plugins para disponibilizar estes plug-ins extras para o gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Instalar gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Plug-ins padrão do gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Plug-ins adicionais do gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Altere entre maiúsculo e minúsculo o texto selecionado." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Alterar maiusculização" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Este plug-in ajuda a alterar entre maiúsculo e minúsculo partes selecionadas " +"do texto. Você pode usá-lo para mudar o texto para ser todo em minúsculo, " +"todo em maiúsculo, para inverter a maiusculização, ou aplicar maiusculização " +"de título. Para ativar este plug-in, selecione geditPreferênciasPlug-insAlterar maiusculização." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Assim que o plug-in Alterar maiusculização estiver ativado, você " +"poderá usá-lo completando os seguintes passos:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Selecione a parte do texto que você quer alterar." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Selecione geditAlterar caixa" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Escolha sua opção de formatação de texto desejada." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "As atualizações para a formatação de texto terão lugar imediatamente." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"A opção Inverter maiusculização converterá cada caractere de " +"minúsculo para maiúsculo, e converterá cada maiúsculo para minúsculo." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"A opção Iniciais maiúsculas converterá a primeira letra de cada " +"palavra para maiúscula. Todas as outras letras serão convertidas para " +"minúsculas." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Se você não destacou nenhum texto, o recurso Alterar maiusculização " +"ficará acinzentado. Você precisa selecionar uma parte do texto antes de usar " +"o recurso Alterar maiusculização." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Veja estatísticas do documento." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Estatísticas do documento" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"O plug-in Estatísticas do documento mostra a você várias " +"estatísticas sobre o documento atual. Para habilitar esse plug-in, selecione " +"geditPreferênciasPlug-insEstatísticas do documento." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Usando as estatísticas do documento" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Assim que o plug-in estiver habilitado, use-o selecionando " +"FerramentasEstatísticas do documento. " +"A janela irá exibir as informações estatísticas sobre seu documento, " +"incluindo o número de palavras, linhas, caracteres, caracteres não " +"espaçados, e o tamanho do seu arquivo em bytes." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Você também pode usar Estatísticas do documento para mostrar-lhe " +"informações sobre apenas uma parte do documento. Para fazer isso, use o " +"ponteiro do mouse para selecionar a parte do texto que você deseja examinar, " +"em seguida, use o item FerramentasEstatísticas do " +"documento do botão do menu. O gedit irá exibir " +"informações para o todo o documento e para a parte do texto que você " +"destacou." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Execute scripts em seus arquivos atuais e interaja com outros aplicativos." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Ferramentas externas" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"O plug-in Ferramentas externas pode ajudar a simplificar tarefas " +"repetitivas. Especificamente, ele estende o gedit ajudando você a " +"executar script em seus arquivos de trabalho, e permitindo gedit " +"interagir com outros programas do seu computador. Para habilitar o plug-in " +"Ferramentas externas, selecione gedit PreferênciasPlug-ins " +"Ferramentas externas." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configurando o plug-in de ferramentas externas" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Assim que você tiver habilitado o plug-in, você precisará configurá-lo para " +"atender às suas necessidades. As opções de configuração estão disponíveis " +"selecionando FerramentasGerenciar ferramentas " +"externas." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Este plug-in é para usuários avançados e requer conhecimento de scripting " +"para ser efetivamente usado. Use este plug-in com cuidado, pois erros com " +"seus scripts podem afetar seu trabalho em maneiras inesperadas." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Use o painel lateral para navegar e abrir arquivos." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Painel de navegação de arquivos" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Dependendo em como usa o gedit, você pode achar útil usar o plug-" +"in Painel de navegação de arquivos. Este plug-in incorpora um " +" navegador de arquivos no painel lateral, dando-lhe fácil acesso " +"arquivos frequentemente usados." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Você pode habilitar o painel lateral selecionando geditPreferênciasPlug-insPainel de navegação de arquivos." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the pane." +msgstr "" +"Para abrir arquivos do painel lateral, primeiro abra o painel lateral " +"selecionando Ver Painel lateral (ou " +"pressione F9) e então escolha o Navegador de arquivos " +"a partir da lista suspensa no topo do painel." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the pane to locate and open " +"your desired files." +msgstr "" +"Isso irá ativar o modo Navegador de arquivos do painel lateral. " +"Você pode usar os botões de navegação no topo do painel para localizar e " +"abrir seus arquivos desejados." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Insira a data/hora atuais na posição do cursor." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Inserir data/hora" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Como o nome deste plug-in sugere, o plug-in Inserir data/hora " +"permite que você insira a data e/ou hora na posição atual do cursor." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Para habilitar o plug-in:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Pressione o botão do menu no canto superior direito da janela e selecione " +"Preferências Plug-" +"ins." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Selecione Inserir Data/Hora para habilitar o " +"plug-in." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Para usar o plug-in, pressione o botão de menu no canto superior direito da " +"janela e selecione Ferramentas Inserir date e hora…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimeConfigure." +msgstr "" +"Por padrão, o plug-in Inserir data/hora solicitará que você " +"escolha seu formato de data/hora preferido cada vez que você usar o plug-in. " +"Contudo, você pode escolher seu próprio formato de data e hora pressionando " +"o botão do menu no canto superior direito da janela e selecionando " +"PreferênciasPlug-ins Inserir data/horaConfigurar." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Como instalar plug-ins de terceiros." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Plug-ins adicionais do gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"A instalação de plug-ins de terceiros oferece funcionalidades adicionais que " +"não estão disponíveis nos plug-ins padrões do gedit, nem mesmo " +"nos plug-ins extras que fazem parte do pacote gedit-plugins. Uma " +"lista on-line de plug-ins de terceiros é mantida aqui." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"A instalação de um plug-in de terceiro envolve baixar o plug-in, colocar os " +"seus arquivos no diretório correto e ativar o plug-in." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Você geralmente pode fazer o download de um plug-in através da página do " +"plug-in na internet, mas pode precisar usar um programa de controle de " +"versão tal como git, bazaar, ou subversion " +"para copiar da internet o repositório do software do plug-in. Consulte a " +"documentação do plug-in para informações sobre como obter o plug-in." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Coloque os arquivos do plug-in no diretório /home/nomedousuario/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"É claro, troque a palavra nomedousuario pelo seu nome de usuário." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Depois que você tiver colocado os arquivos de plug-ins dentro do diretório " +"correto, o plug-in aparecerá no menu de Preferências. Pressione o botão de " +"menu no canto superior direito da janela e selecione PreferênciasPlug-ins[Nome " +"do Plug-in] para habilitar o plug-in." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Clique em Fechar." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Após a habilitação do plug-in, ele deve estar disponível para o seu uso." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"O diretório .local é oculto por padrão. Para visualizar ele e " +"outros arquivos ocultos, selecione VerMostrar " +"arquivos ocultos ou pressioneCtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Se o diretório .local/share/gedit/plugins/ não estiver presente " +"no seu sistema, você precisará criá-lo." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Suporte a modelines de estilo de Emacs, Kate e Vim no gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Modelines" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"O plug-in Modelines permite que o gedit analise as " +"linhas de texto no começo e no fim de um arquivo, e então aplicar um " +"conjunto de preferências de documento no arquivo. O plug-in Modelines suporta um subconjunto das opções usadas pelos editos de texto " +"Emacs, Kate e Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Para ativar o plug-in Modelines, selecione gedit PreferênciasPlug-" +"insModelines." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Opções gerais de modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"As seguinte opções podem ser definidas usando gedit modelines:" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tab width" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Indent width" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Inserting spaces instead of tabs" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Text Wrapping" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Right margin width" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Preferências definidas usando modelines têm prioridade sobre as " +"especificadas na janela de preferências." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Modelines de Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"As primeiras duas linhas de um documento são analisadas por modelines do " +"Emacs. e o gedit tem suporte às seguintes opções de " +"modelines do Emacs:" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Para mais informações sobre modelines Emacs, visite o Manual do GNU " +"Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Modelines de Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"As primeiras e as últimas dez linhas de um documento são analisadas por " +"modelines do Kate e o gedit tem suporte às seguintes " +"opções de modeline do Kate:" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Para mais informações sobre modelines do Kate, visite a página do Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Modelines de Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"As primeiras e as últimas dez linhas de um documento são analisadas por " +"modelines Vim e o gedit suporta as seguintes opções de " +"modeline do Vim:" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +# NÃO traduzir - opção reconhecida pelo software. +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Para mais informações sobre modelines Vim, visite a página do Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Adicione um console Python interativo no canto inferior do painel." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Console python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Você pode adicionar um console python no canto inferior do painel, " +"permitindo que você teste scripts em python sem sair do gedit. " +"Para habilitar o console python, selecione gedit PreferênciasPlug-insConsole python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Assim que o console python estiver habilitado, você pode abri-lo " +"selecionando VerPainel inferior." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Se você também habilitou o plugin Terminal embutido, o " +"Console python aparecerá como uma aba separada no painel inferior." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Abra rapidamente um arquivo ou um conjunto de arquivos." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Abertura rápida" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"This plugin currently does not work!" +msgstr "" +"Este plug-in não funciona atualmente!" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:26 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Assim como o nome desse plug-in sugere, o plug-in Abertura rápida " +"ajuda você a abrir arquivos mais rapidamente do que usando a maneira " +"tradicional. Para habilitar esse plug-in, selecione geditPreferênciasPlug-insAbertura " +"rápida." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:31 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Uma vez que você tenha habilitado o plug-in de Abertura rápida, " +"você poderá usá-lo destes modos:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:35 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Abra o diálogo de Abertura rápida pressionando CtrlAltO ou selecionando Abertura rápida...." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:38 +msgid "The Quick Open file dialog will appear." +msgstr "O diálogo de arquivo do Abertura rápida aparecerá." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Use o mouse para selecionar o arquivo ou os arquivos que deseja abrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Para selecionar vários arquivos individuais, mantenha pressionado sua tecla " +"Ctrl enquanto você clica nos arquivos que deseja abrir." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:43 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Para selecionar um conjunto de arquivos, clique no primeiro arquivo que " +"deseja abrir, mantenha pressionado a tecla Shift, e então clique " +"no último arquivo da lista que você deseja abrir." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:49 +msgid "Quick Open will look for files in:" +msgstr "A Abertura rápida irá procurar por arquivos em/no:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:52 +msgid "The directory of the currently opened document" +msgstr "O diretório do documento atualmente aberto" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:53 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"Diretório raiz do plug-in Painel de " +"navegação de arquivos" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Documentos recentes que também são mostrados na pasta Recentes " +"em Arquivos" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Directories which you have bookmarked in Files" +msgstr "" +"Diretórios que você tenha marcado como favoritos em Arquivos" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:60 +msgid "Your Desktop directory" +msgstr "Seu diretório de Área de trabalho" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:61 +msgid "Your Home directory" +msgstr "Seu diretório de Pasta pessoal" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:65 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"A Abertura rápida exibe arquivos em quaisquer um dos locais " +"citados acima, independente de terem sido ou não abertos anteriormente." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Use trechos para inserir rapidamente partes do texto geralmente usadas." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Trechos" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"O Trechos fornecem uma maneira conveniente de inserir porções " +"repetitivas de código em seus arquivos. Por exemplo, um trecho de HTML para " +"a marca <img> iria inserir as porções de abertura e " +"encerramento da marcação, bem como locais fixos onde você pode inserir os " +"atributos da imagem. Isso pode tornar a escrita do código mais fácil e mais " +"rápida." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Habilitando o plug-in de Trechos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Para habilitar o plug-in Trechos:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Selecione gedit Preferências Plug-ins." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Selecione Trechos para habilitar o plug-in." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Navegar por trechos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Para navegar pelos trechos disponíveis:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Selecione FerramentasGerenciar trechos." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Certifique-se de que a sintaxe está definida apropriadamente. A barra de " +"status no canto inferior da janela do gedit mostrará a " +"configuração da linguagem atual. A configuração da linguagem é o que permite " +"o gedit de inserir os trechos apropriados. O gedit detectará " +"normalmente a linguagem ou sintaxe do arquivo que está usando, mas algumas " +"vezes você pode precisar defini-la." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "Neste exemplo, a linguagem é definida para HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='4499196ed6189a4d91f0fd8ba4cd6a99'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Navegue nos trechos que estão disponíveis para sua linguagem ou sintaxe." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Usando trechos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Para inserir um trecho no seu documento atual:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Digite o nome do trecho desejado em qualquer lugar no seu documento." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Pressione Tab para inserir o trecho associado com o termo " +"digitado." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Exemplo de uso de trechos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Por exemplo, se você definir a sintaxe como HTML, digite " +"head, e pressione a tecla Tab, você deve ver algo " +"similar a isso:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Título da Página</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Adicionando trechos" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Você pode adicionar novos trechos que funcionam tanto globalmente (isto é, " +"que servem para qualquer linguagem) ou apenas em uma sintaxe particular." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Selecione Ferramentas " +"Gerenciar trechos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Na barra lateral Gerenciar trechos, selecione a sintaxe desejada " +"e clique no botão \"+\" para listar os trechos existentes para a sintaxe " +"selecionada." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Para adicionar um trecho que funcione globalmente (isto, é, quando nenhuma " +"sintaxe ou linguagem específica tenha sido definida para o documento), " +"selecione Global na barra lateral Gerenciar trechos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Para adicionar um novo trecho, clique no ícone de \"mais\" na barra lateral " +"de Gerenciar trechos." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Digite um nome para o novo trecho. O nome do trecho pode ser diferente do " +"trecho que você queira adicionar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Na seção Ativação, você deve digitar o termo para " +"o área de texto Disparador: . Você usará este " +"termo para inserir seu trecho." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Se você gostaria de inserir um trecho com um atalho de teclado, então clique " +"com ponteiro do seu mouse na área de texto Tecla de " +"atalho: e pressione a combinação de teclas desejada. Assim que você " +"tiver pressionado e liberado as teclas, o atalho de teclado estará definido." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Sob a área de texto em Editar:, digite o texto " +"desejado do trecho. Você pode usar ${n} para indicar variáveis, " +"sendo n substituído com um número que representa a ordem numérica " +"de variáveis incluídas." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Exemplo de novo trecho" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Considere que você criou um trecho com o termo greetings " +"(saudações) no Disparador:. A área de texto Editar: contém:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Olá, mundo ${1:maravilhoso}${2:fantástico}!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Você pode inserir este trecho digitando saudações no documento e " +"pressionando a tecla Tab. O seguinte texto de trecho será " +"inserido:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Olá, mundo maravilhosofantástico!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"As palavras \"maravilhoso\" e \"fantástico\" podem ser mantidos ou excluídos " +"dependendo de sua escolha de uso. Para fazer isso, pressione Tab " +"para escolher entre \"maravilhoso\" e \"fantástico\" e pressione Del para excluir a opção que seja menos interessante." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Ordene linhas do texto em ordem alfabética." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Ordenar" + +# Acrescentei para que a página fique como as outras, destacando o nome do plug-in. +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"O plug-in Ordenar arruma linhas selecionadas do texto em ordem " +"alfabética." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Habilitando o plug-in Ordenar" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Para habilitar o plug-in Ordenar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Selecione Ordenar para habilitar o plug-in." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Usando o plug-in de Ordenação" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Para usar o plug-in Ordenar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Drag and highlight the desired lines of text." +msgstr "Arraste e destaque as linhas desejadas no texto." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Selecione Arquivo Ordenar...." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"A janela de Ordenar será aberta, permitindo-lhe escolher entre " +"várias opções de ordenação:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Inverter ordem irá organizar o texto em ordem alfabética inversa." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Remover duplicadas irá remover os valores duplicados da lista." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Ignorar maiúsculas/minúsculas irá ignorar diferença entre " +"maiúsculas/minúsculas." + +# "caixa de incremento" - http://bazar2.conectiva.com.br/pipermail/ldp-br/2007-November/002051.html +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Para que a ordenação ignore os caracteres no início das linhas, defina o " +"primeiro caractere a ser usado para ordenação na caixa de incremento " +"Iniciar na coluna." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "" +"Para efetuar a operação de ordenação, clique no botão Ordenar." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Configure as páginas para imprimir em determinada ordem." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Obtendo cópias para imprimir na ordem correta" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Inverter" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Impressoras geralmente imprimem a primeira página primeiro, a última página " +"por último, e então as páginas acabam na ordem inversa quando você vai pegá-" +"las. Para inverter a ordem:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Selecione Arquivo Imprimir." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"Na aba Geral da janela de impressão, sob Cópias, marque Inverter." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "A última página será imprimida primeiro, e por aí vai." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Intercalar" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Se você estiver imprimindo mais de uma cópia do documento, as impressões " +"serão intercaladas por número de página por padrão (ex.: as cópias da página " +"um sair, em seguida, as cópias da página dois, etc). A intercalação fará com " +"que cada cópia saia com suas páginas agrupadas." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Para intercalar:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Selecione Arquivo Imprimir." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"Na aba Geral da janela de impressão, Cópias, marque Intercalar." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Imprima os arquivos que você criou com o gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Imprimindo documentos" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"A impressão com o gedit requer que você tenha conectado e " +"configurado sua impressora. Se não tiver feito isso, favor consultar Ajuda em impressão para o GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" +"O gedit permite que você imprima tanto para um arquivo quando " +"para um papel." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Visualizando a impressão" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Antes de imprimir seu documento, você pode visualizar como o documento " +"impresso vai ficar, usando o recurso Visualizar impressão. Para " +"visualizar o documento:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Selecione Arquivo Visualizar impressão. Alternativamente, você pode " +"pressionar ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Um visualização do seu documento será aberta na mesma aba que o arquivo. " +"Você pode navegar na visualização com ajuda dos botões e ferramentas de " +"navegação na barra de ferramentas no topo da aba de visualização do " +"documento. Para fechar e voltar para o documento, clique em Fechar visualização." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Imprimindo para o papel" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Você pode imprimir seus documentos para papel usando uma impressora local ou " +"remota. Para imprimir para um arquivo:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Selecione Arquivo Imprimir Geral." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Selecione a impressora desejada da lista de impressoras disponíveis." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Você pode visualizar o arquivo usando Visualizar " +"impressão e, assim que você estiver satisfeito com as configurações, " +"clicar em Imprimir para enviar o arquivo para a " +"impressora." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Além disso, na aba Configurar página: você pode " +"escolher as opções de Layout e Papel. Por estas opções estarem definidas por todos os programas do " +"GNOME, por favor consulte a ajuda de opções de Layout e Papel." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Imprimir múltiplas cópias dentro de intervalos especificados" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Você pode definir opções de Intervalo e Cópias para ajudar você:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Imprimindo para o arquivo" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Você também pode usar gedit para imprimir para um arquivo. Para " +"imprimir seu documento para um arquivo de um formato diferente:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Selecione Arquivo Imprimir Imprimir para arquivo." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Impressão é habilitada para os seguintes formatos de arquivo:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Formato de Documento Portátil (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Gráficos Vetoriais Escaláveis (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Para imprimir o documento para um arquivo, pressione Imprimir." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Escolha as páginas que você deseja imprimir." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Imprimindo apenas certas páginas" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Você pode imprimir seletivamente apenas certas páginas do documento. Por " +"exemplo, se você digitar os números de página \"1,3,5-7,9\", então apenas as " +"páginas 1, 3, 5, 6, 7 e 9 serão impressas. Para imprimir páginas de sua " +"escolha:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Selecione Arquivo Imprimir...." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"Na aba Geral da página de impressão escolha Páginas a partir da seção Intervalo." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Digite os números das páginas que você deseja imprimir do documento, " +"separados por vírgulas. Use um traço para indicar um intervalo de páginas." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Uma breve introdução ao gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Primeiros passos com gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"O gedit é um editor de texto completo para o ambiente GNOME. Você " +"pode usá-lo para preparar notas e documentos simples, ou você pode usar " +"alguns dos seus recursos avançados, tornando-o seu próprio ambiente de " +"desenvolvimento de software." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +#| msgctxt "_" +#| msgid "" +#| "external ref='figures/gedit3-screenshot.png' " +#| "md5='bf1c5551e623923504e51c4f9fd885b7'" +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bec4ef1a64dde10d74fed8618f5ac0ed'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"Uma vez que o gedit seja executado, você já pode começar a " +"digitar. Para salvar seu texto, basta clicar no ícone Salvar na " +"barra de ferramentas do gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Para aprender sobre recursos adicionas do gedit e receber " +"assistência realizando tarefas adicionais, explore as " +"outras partes da ajuda do gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Substitua porções de texto em um arquivo." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Substituindo texto" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"A editar de textos pode consumir muito tempo. Para poupar tempo, o " +"gedit inclui a função Substituir que pode ajudá-lo a " +"localizar e substituir partes do texto." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Substituindo texto no gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Abra a ferramenta Localizar e substituir clicando no botão do " +"MenuLocalizar e " +"substituir… ou pressione as teclas CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "" +"Digite o texto que você deseja substituir no campo Pesquisar." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Digite o texto substituto novo no campo Substituir por:." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Uma vez que tenha inserido o texto original e texto substituto, você pode " +"adicionar parâmetros extras à pesquisa. Você também pode escolher o que você " +"deseja substituir:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Para substituir apenas a próxima ocorrência, clique em " +"Substituir." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Para substituir todas as ocorrências do texto por todo documento, " +"clique no botão Substituir todas." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Use a função Substituir todas com cuidado. Substituir todas funciona sobre a totalidade do seu arquivo de texto, e não permite que " +"você para destacar partes do texto onde a função de substituir serão " +"executadas." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Mais opções" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "" +"Se você quiser, você pode adicionar alguns parâmetros extras à sua pesquisa:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Diferenciando maiúsculas de minúsculas" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"A opção Diferenciar maiúsculas/minúsculas permite se você deseja " +"que sua pesquisa diferencie caracteres maiúsculos de minúsculos. Se essa " +"opção é selecionada, pesquisas diferenciarão. Do contrário, as pesquisas não " +"diferenciarão." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Coincidindo apenas com palavra completa" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Use esta opção para procurar uma palavra específica, sem incluir fragmentos " +"de outras palavras. Por exemplo, se você procurou pela palavra \"and\" com " +"esta opção selecionada, a palavra \"and\" coincidirá, mas as palavras " +"\"bandeira\" e \"comando\" não coincidirão." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Pesquisando para trás" + +# Adicionei para deixar claro que Localizar anterior é uma referência à interface gráfica. +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Esse comando se comporta identicamente ao comando Localizar anterior. Se deseja passar por resultados de pesquisa do fim para o inicio, " +"selecione essa opção." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Voltando ao início" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Com a opção Voltar ao início habilitada, o gedit " +"reiniciará a ação de pesquisa/substituição no topo do arquivo depois que " +"tiver chegado ao fim do arquivo. Isso garante que sua ação de pesquisa/" +"substituição é feita no arquivo por inteiro." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Usando sequências de escapes" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Você pode usar sequências de escape para pesquisar por quebras de " +"linhas, retornos de carro e tabulações." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nova linha" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Retorno de carro" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabulação" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Se você deseja, na verdade, pesquisar por um \\ (barra " +"invertida) ou uma da sequências de escapes no texto, você precisa escapar a " +"barra invertida com uma barra invertida extra. Por exemplo, para pesquisar " +"por \\, você precisa digitar \\\\ no campo de " +"pesquisar ou de substituir. Você pode pesquisar por sequências de escape da " +"mesma forma: para pesquisar por ou substituir com um \\n, use " +"o termo \\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Salve seu arquivo para trabalhar nele posteriormente." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Salvando um arquivo" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +"CtrlS." +msgstr "" +"Para salvar um arquivo no gedit, clique no botão Salvar no lado direito da barra de ferramentas ou apenas " +"pressione CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Se você estiver salvando um novo arquivo, um diálogo aparecerá e você poderá " +"selecionar um nome para o arquivo, assim como o diretório onde gostaria em " +"que o arquivo fosse salvo." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Localize uma porção de texto dentro de um arquivo." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Pesquisando por texto" + +# Adicionei para deixar clara a referência à interface gráfica. +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"A ferramenta de Localizar pode ajudá-lo a localizar sequências " +"específicas de texto no seu arquivo." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Localizando texto" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Abra a janela de pesquisa clicando no botão do MenuLocalizar… ou " +"pressionando as teclas CtrlF. Isso " +"irá mover seu cursor para o início da janela de pesquisa." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Digite o texto que deseja pesquisar na janela de pesquisa." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Enquanto você digita, o gedit irá começar a destacar as partes do " +"texto que correspondem com a que você digitou." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Para rolar pelos resultados de pesquisa, faça qualquer uma das ações a " +"seguir:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Clique nas setas apontando para cima ou para " +"baixo próximas a janela de pesquisa." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Pressione as teclas seta para cima ou seta pra baixo " +"no seu teclado." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Pressione CtrlG ou CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Para fechar a janela de pesquisa, pressione Esc ou " +"Enter. Pressionando Esc irá retornar o cursor para " +"onde estava antes de você começar a sua pesquisa. Pressionando Enter irá retornar o cursor para a posição atual nos resultados da pesquisa." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Dicas de pesquisa" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Se você destacar uma porção do texto com seu mouse e então pressionar " +"CtrlF, o texto que você destacou irá " +"aparecer na janela de pesquisa." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Para mais opções de pesquisa, você pode clicar no ícone de Lupa na janela de pesquisa ou pode clicar com o botão " +"direito em qualquer parte da janela de pesquisa. Você pode selecionar uma ou " +"mais das seguintes opções de pesquisa:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Selecione Diferenciar maiúsculas/minúsculas para tornar a " +"pesquisa sensível a caixa de texto maiúscula ou minúscula." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Selecione Coincidir apenas com palavra completa para pesquisar " +"apenas palavras completas." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Selecione Voltar ao início para pesquisar o texto de cima para " +"baixo e retornar novamente." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"O texto pelo qual você pesquisou permanecerá destacado pelo gedit, ainda " +"depois que você tiver completado sua pesquisa. Para remover o destaque, " +"clique em Limpar Destaque, ou pressione " +"CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Use atalhos de teclado para lhe ajudar a trabalhar mais rapidamente." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Teclas de atalho" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Use as teclas de atalho para realizar as tarefas mais comuns mais " +"rapidamente que com o mouse e menus. As seguintes tabelas listam todas as " +"teclas de atalho do gedit." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Teclas de atalho relacionadas a abas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:158 C/gedit-shortcut-keys.page:244 +#: C/gedit-shortcut-keys.page:264 C/gedit-shortcut-keys.page:316 +#: C/gedit-shortcut-keys.page:349 C/gedit-shortcut-keys.page:378 +msgid "Action" +msgstr "Ação" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:159 C/gedit-shortcut-keys.page:245 +#: C/gedit-shortcut-keys.page:265 C/gedit-shortcut-keys.page:317 +#: C/gedit-shortcut-keys.page:350 C/gedit-shortcut-keys.page:379 +msgid "Keyboard shortcut" +msgstr "Atalhos de teclado" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Muda para a próxima aba à esquerda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt PageUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Muda para a próxima aba à direita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt PageDown" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Fecha a aba" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:145 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Salva todas as abas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlShift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Fecha todas as abas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlShiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Reabre a aba mais recentemente fechada" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlShiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Pula para a aba de número n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Novo grupo de abas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Grupo de abas anterior" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"ShiftCtrlAltPage up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Próximo grupo de abas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"ShiftCtrlAltPage down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Teclas de atalho para trabalhar com arquivos" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Cria um novo documento em uma nova janela" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Cria um novo documento uma nova aba" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Abre um documento" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Save the current document" +msgstr "Salva o documento atual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document with a new filename" +msgstr "Salva o documento atual com um novo nome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlShift S" +msgstr "CtrlShift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "Print the current document" +msgstr "Imprime o documento atual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:141 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Close the current document" +msgstr "Fecha o documento atual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Quit gedit" +msgstr "Sai do gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:155 +msgid "Shortcut keys for editing files" +msgstr "Teclas de atalho para edição de documentos" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:164 +msgid "Move the selected word right one word" +msgstr "Move a palavra selecionada uma palavra para direita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:165 +msgid "AltRight Arrow" +msgstr "AltSeta para direita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:168 +msgid "Move the selected word left one word" +msgstr "Move a palavra selecionada uma palavra para esquerda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:169 +msgid "AltLeft Arrow" +msgstr "CtrlSeta para esquerda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:172 +msgid "Undo the last action" +msgstr "Desfaz a última ação" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:176 +msgid "Redo the last undone action" +msgstr "Refaz a última ação desfeita" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "CtrlShift Z" +msgstr "CtrlShift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "" +"Corta o texto selecionado ou região e mandar para a área de transferência" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:183 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Copia o texto selecionado ou região para a área de transferência" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:187 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "Paste the contents of the clipboard" +msgstr "Cola o conteúdo da área de transferência" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:191 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:194 +msgid "Select all text in the file" +msgstr "Seleciona todo o texto no arquivo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:195 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:198 +msgid "Unselect all text" +msgstr "Cancela a seleção de todo o texto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:199 +msgid "CtrlBackslash" +msgstr "CtrlBarra invertida" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:202 +msgid "Delete the current line" +msgstr "Exclui a linha atual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:203 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:206 +msgid "Move the selected line up one line" +msgstr "Move a linha selecionada uma linha para cima" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:207 +msgid "AltUp Arrow" +msgstr "AltSeta para cima" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:210 +msgid "Move the selected line down one line" +msgstr "Move a linha selecionada uma linha para baixo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "AltDown Arrow" +msgstr "AltSeta para baixo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:214 +msgid "Add a tab stop" +msgstr "Adicionando paradas de tabulação" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:218 +msgid "Remove a tab stop" +msgstr "Removendo paradas de tabulação" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "ShiftTab" +msgstr "ShiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:222 +msgid "Convert the selected text to upper case" +msgstr "Converte o texto selecionado para maiúsculo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:226 +msgid "Convert the selected text to lower case" +msgstr "Converte o texto selecionado para minúsculo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:230 +msgid "Toggle case of the selected text" +msgstr "Alterna entre maiúsculo e minúsculo o texto selecionado" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:234 +msgid "Toggle cursor visibility" +msgstr "Alterna a visibilidade do cursor" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "F7" +msgstr "F7" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:241 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Teclas de atalhos para mostrar e ocultar painéis" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:250 +msgid "Show / hide the side panel" +msgstr "Mostra / oculta o painel lateral" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:251 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:254 +msgid "Open the file menu" +msgstr "Abre o menu do arquivo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:255 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:261 +msgid "Shortcut keys for navigation" +msgstr "Teclas de atalho para navegação" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:270 +msgid "Move to matching bracket" +msgstr "Move para o parêntese, colchete ou chave correspondente" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:271 +msgid "Ctrl%" +msgstr "Ctrl%" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:274 +msgid "Goto line" +msgstr "Vai para a linha" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:275 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:278 +msgid "Move to the beginning of the current line" +msgstr "Move para o início da linha atual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:279 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:282 +msgid "Move to the end of the current line" +msgstr "Move para o fim da linha atual" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:283 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:286 +msgid "Move to the beginning of the document" +msgstr "Move para o começo do documento" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:287 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:290 +msgid "Move to the end of the document" +msgstr "Move para o fim do documento" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:291 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:294 +msgid "Move viewport up within the file" +msgstr "Move o viewport para cima dentro do arquivo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:295 +msgid "ShiftAltUp" +msgstr "ShiftAltUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:298 +msgid "Move viewport down within the file" +msgstr "Move o viewport para baixo dentro do arquivo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:299 +msgid "ShiftAltDown" +msgstr "ShiftAltBaixo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:302 +msgid "Move viewport to beginning of file" +msgstr "Move o viewport para o início do arquivo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:303 +msgid "ShiftAltHome" +msgstr "ShiftAltHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:306 +msgid "Move viewport to end of file" +msgstr "Move o viewport para o fim do arquivo" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:307 +msgid "ShiftAltEnd" +msgstr "ShiftAltEnd" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:313 +msgid "Shortcut keys for searching" +msgstr "Teclas de atalhos para pesquisas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:322 +msgid "Find a string" +msgstr "Localiza um texto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:323 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:326 +msgid "Find the next instance of the string" +msgstr "Localiza a próxima instância do texto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:327 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:330 +msgid "Find the previous instance of the string" +msgstr "Localiza a instância anterior do texto" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:331 +msgid "CtrlShiftG" +msgstr "CtrlShiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:334 +msgid "Search and Replace" +msgstr "Pesquisa e substitui" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:335 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:338 +msgid "Clear highlight" +msgstr "Limpa destaque" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:339 +msgid "CtrlShift K" +msgstr "CtrlShift K" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:346 +msgid "Shortcut keys for tools" +msgstr "Teclas de atalho para ferramentas" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:355 +msgid "Check spelling" +msgstr "Verifica ortografia" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:356 +msgid "ShiftF7" +msgstr "ShiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:359 +msgid "Remove trailing spaces (with plugin)" +msgstr "Remove espaços à direita (com plug-in)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:360 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:363 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Executa \"make\" no diretório atual (com plug-in)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:364 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:367 +msgid "Directory listing (with plugin)" +msgstr "Lista diretórios (com plug-in)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:368 +msgid "CtrlShift D" +msgstr "CtrlShift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:375 +msgid "Shortcut keys for user help" +msgstr "Teclas de atalho para ajuda" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:384 +msgid "Open the gedit user guide" +msgstr "Abre o manual do usuário do gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:385 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Verifique seus arquivos por erros de escrita." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +# Traduzi usando o nome do plug-in para esse seja a mensagem exibida na lista de plug-ins, assim como ocorre com os demais. +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Verificador ortográfico" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Habilitando o verificador ortográfico" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"A funcionalidade de verificação ortográfica é fornecida como um plug-in no " +"gedit, a qual pode ser habilitada sob demanda. Para habilitar o " +"plug-in:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Selecione Verificador ortográfico para " +"habilitar o plug-in." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Para verificar por palavras com erros de escrita em seu documento:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Selecione Ferramentas Verificar ortografia." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Para que gedit destaque automaticamente palavras com erros de " +"escrita em seu documento enquanto você digita, selecione FerramentasDestaque palavras com " +"erros ortográficos." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Usando a verificação ortográfica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Você pode escolher a substituição correta para palavras com erro de escrita " +"usando o diálogo do Verificador de ortografia. A palavra com erro de escrita " +"sendo verificada pelo verificador de ortografia é exibida em negrito ao lado " +"de Palavra incorreta:. Você pode escolher as seguintes ações " +"corretivas:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Alterar para: permite que você digite uma palavra " +"e use Verificar palavra para verificar a " +"validade da ortografia." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Sugestões: lista as substituições disponíveis para " +"a palavra." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorar permite que você ignore a verificação de " +"ortografia para uma instância da palavra atual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignorar todos permite que você ignore a " +"verificação de ortografia para todas as instâncias da palavra atual." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Alterar substitui a palavra que apresenta erro " +"de ortografia ou palavra não reconhecida com um substituto " +"escolhido da lista Sugestões:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Alterar todos substitui todas as " +"palavras que apresentam erro de ortografia ou palavras não reconhecidas com " +"em relação ao substituto escolhido da lista Sugestões:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Adicionar palavra permite que você adicione a " +"palavra atual ao Dicionário do usuário do gedit. Ao " +"adicionar palavras personalizadas ao Dicionário de usuário vai " +"permitir que o gedit reconheça a palavra em documentos e, " +"portanto, não será destacado como palavra com erro ortográfico." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Definindo o idioma a ser usado para a verificação ortográfica" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Por padrão, o gedit usará seu idioma atual para verificar a " +"ortografia do seu documento. Se você precisar usar outro idioma, escolha " +"FerramentasDefinir " +"Idioma... e, então, escolha o idioma que deseja usar." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Dicionários" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"O gedit usa Enchant, um pequeno utilitário de sistema, para " +"verificação ortográfica. Enchant pode usar vários dicionários para " +"verificação de ortografia. Duas retaguardas (back-ends) de dicionário são " +"Hunspell e o Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Se o idioma que você deseja usar não estiver disponível no gedit, " +"use o instalador de software do seu computador ou o gerenciador de pacotes " +"para instalar a retaguarda (back-end) desejada de dicionário." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Destaque seu texto para torná-lo mais fácil de ler." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Ativando o destaque de sintaxe" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Destaque de sintaxe" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"O gedit fornece destaque de sintaxe para uma gama ampla de " +"linguagens de marcação, programação e linguagens científicas. Se o " +"gedit reconhece a sintaxe a ser usada quando você abre um " +"arquivo, ele irá automaticamente destacar o texto." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Se a sua sintaxe ou linguagem não está destacada na inicialização, você pode " +"selecionar a sintaxe ou linguagem apropriada clicando em VerModo do destaque, e " +"depois escolher a sintaxe desejada. Alternativamente, você pode selecionar o " +"nome de sintaxe de uma lista na parte inferior da janela do gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Agrupe abas similares." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Organizando arquivos em abas agrupadas" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Se você está trabalhando em múltiplas abas no gedit você pode " +"agrupá-las, deixando mais fácil manter organizados os seus arquivos abertos. " +"Adicionar um novo grupo de abas vai dividir a janela do gedit em " +"dois painéis, abrir um novo \"Documento não-salvo\" no novo painel e vai " +"torná-lo ativo. Você pode abrir arquivos naquele grupo de abas e mover abas " +"de um grupo para o outro." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Abrindo um novo grupo de abas na janela do gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Para abrir um novo grupo de abas, você pode:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Vá em DocumentosNovo grupo de abas no " +"menu principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Use o atalho CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Esta ação vai dividir a janela do gedit em dois painéis e o " +"painel com o novo grupo de abas será substituído à direita com a aba ativa. " +"Você pode mover o separador para a direita ou esquerda para atribuir mais ou " +"menos espaço da janela do gedit entre painéis de acordo com suas " +"necessidades." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Você pode abrir o máximo de grupos de abas na janela do gedit que " +"a tela permitir, mais você terá que mover o separador para vê-las " +"corretamente." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Para fechar um grupo de abas, basta fechar todas as abas que estão abertas " +"nele." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Movendo entre grupos de abas" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Para mover para o próximo grupo de abas:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Vá em DocumentosPróximo grupo de abas " +"no menu principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Use o atalho ShiftCtrlAltPage " +"down." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Para mover para o grupo de abas anterior:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"Vá em DocumentosGrupo de abas anterior no menu principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Use o atalho ShiftCtrlAltPage " +"up." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Movendo uma aba para outro grupo de abas" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Se você deseja mover uma aba de um grupo de abas para outro:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Clique na aba e segure o botão do mouse." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Arraste a aba para outro painel de grupo de abas." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Coloque-a ao lado de outras abas no grupo de abas." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Solte o botão do mouse." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Veja a tabela teclas de atalho " +"relacionadas a abas para tornar mais fácil de gerenciar seu grupo de " +"abas." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Altere a posição de uma aba na janela do gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Movendo e reordenando abas" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Abas no gedit podem ser movidas, tornando mais fácil trabalhar " +"com seus arquivos. Elas podem ser reordenadas dentro da mesma janela, " +"movidas para fora do gedit (criando uma nova janela do " +"gedit) e movidas de uma janela para outra." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Mudando a ordem das abas da janela do gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Para mudar a ordenação das abas em uma janela:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Mova a aba para a posição desejada entre as outras abas." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"A aba será colocada na posição mais próxima de onde você soltar a guia, " +"imediatamente ao lado de outras abas abertas." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Movendo uma aba, criando uma nova janela gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Para criar um nova janela a partir de uma aba existente:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Arraste a aba para fora da janela do gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Para mover a aba para uma nova janela quando o gedit está " +"maximizado, arraste a aba até a barra superior no canto superior da tela." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Movendo uma aba para outra janela do gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Se você deseja mover uma aba de uma janela para outra:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Arraste a aba para a nova janela." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Coloque-a ao lado de outras abas na nova janela." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Talvez você ache mais fácil mover uma aba de uma janela para outra " +"arrastando a guia para o canto de Atividades do GNOME Shell. Isto irá revelar cada um das janelas abertas do gedit. Você " +"pode, então, soltar a aba no janela desejada do gedit." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Veja a tabela em teclas de atalho " +"relacionadas a abas para tornar mais fácil de gerenciar suas abas." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Crie ou feche abas na janela do gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Adicionando e removendo abas" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Trabalhar com abas no gedit permite que você mantenha o olho em " +"vários arquivos em uma única janela. A aba que é maior que as outras abas " +"indica o arquivo aberto atualmente. As abas menores indicam outros arquivos " +"que estão disponíveis para serem trabalhados." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Adicionando abas" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Para adicionar uma nova aba, crie um novo arquivo com Ctrl T. A aba será adicionada à direita das outras abas." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Removendo abas" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Para remover uma aba, clique no × ao lado " +"direito da aba. Para remover todas as abas abertas, pressione " +"Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Reverta uma alteração recente para um de seus arquivos." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Desfazendo uma ação recente" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Se você cometer algum erro enquanto usa o gedit, você pode " +"desfazê-lo pressionando CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Você não pode desfazer uma mudança após ter fechado um arquivo no " +"gedit." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Editor de texto gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Editor de texto gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Página inicial do manual do usuário do gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Editor de texto gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Bem-vindo ao guia de ajuda do gedit. Para uma introdução rápida " +"em ambos recursos mais básicos do gedit, tal como alguns atalhos " +"avançados do teclado, visite as páginas Primeiros passos com gedit e Teclas de atalho." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Outros tópicos de ajuda estão agrupados juntos nas seções abaixo. Divirta-se " +"com o gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Trabalhando com arquivos" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Configurando o gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "Plug-ins do gedit" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Imprimindo com o gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "" +"Licença Creative Commons Atribuição-Compartilhada Igual 3.0 Não adaptada" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Esta obra está licenciada sob a <_:link-1/>." + +#~ msgid "Click the Open button." +#~ msgstr "Clique no botão Abrir." + +#~ msgid "Open the Quick Open window" +#~ msgstr "Abre a janela Abertura rápida" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "Como o nome desse plug-in sugere, o plug-in Inserir data/hora " +#~ "permite que você insira a data e/ou hora na posição atual do cursor. Para " +#~ "habilitar este plug-in, selecione gedit " +#~ "Preferências Plug-ins " +#~ "Inserir data/hora. Para usar o plug-in, pressione " +#~ "EditarInserir data e hora." + +#~ msgid "Print preview" +#~ msgstr "Visualiza a impressão" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlShift P" + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "Você não pode usar o recurso Desfazer para corrigir uma " +#~ "operação Ordenar, por isso recomendamos que você salve o " +#~ "arquivo imediatamente antes de efetuar o ordenamento. Se você cometer um " +#~ "erro com a ordenação, você pode reverter para a versão salva " +#~ "anteriormente do arquivo selecionando ArquivoReverter." + +# Está errado o gedit na mensagem original, motivo pelo qual traduzi com o item de menu certo: "Editar". +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "Selecione Editar Ordenar." + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "Pressione Ctrl e use o recurso de rolagem do seu " +#~ "mouse ou touchpad para mover para cima ou para baixo através do texto." + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "Escolha ArquivoAbrir para exibir a " +#~ "janela de Abrir arquivos." + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "" +#~ "Selecione o ícone de Lápis próximo ao topo da janela de " +#~ "Abrir arquivos." + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "Para ativar e usar o painel lateral, selecione " +#~ "VerPainel lateral(ou apenas " +#~ "pressione F9), e então clique no ícone do navegador de " +#~ "arquivos no canto inferior do painel." + +# Descrição de atalho de teclado. Tirei ponto ".", pois nenhuma outra descrição tem ponto. +#~ msgid "Show / hide the bottom pane" +#~ msgstr "Mostra / oculta o painel inferior" + +#~ msgid "CtrlF9" +#~ msgstr "CtrlF9" + +#~ msgid "To Do This" +#~ msgstr "Para fazer isso" + +#~ msgid "Press This" +#~ msgstr "Pressione isso" + +#~ msgid "Enable and use spell-checking feature" +#~ msgstr "Habilitar e usar o recurso de verificação ortográfica" + +#~ msgid "View a list of files in the side pane" +#~ msgstr "Vendo uma lista de arquivos no painel lateral" + +#~ msgid "" +#~ "Keeping track of a large number of files using tabs can be difficult. One " +#~ "way of managing large numbers of files is viewing them in a side pane. " +#~ "Side panes allow you to view more files at a time than is possible using " +#~ "tabs alone." +#~ msgstr "" +#~ "Manter o controle de um grande número de arquivos usando abas pode ser " +#~ "difícil. Uma maneira de gerenciar um grande número de arquivos é vê-las " +#~ "em um painel lateral. Painéis laterais permitem que você visualize " +#~ "arquivos mais de uma vez do que é possível usando apenas abas." + +#~ msgid "" +#~ "To view a list of open files in a side pane, click View Side Pane. A " +#~ "pane will appear to the left of the workspace with a listing of all " +#~ "currently open files. Clicking a file in the side pane will display that " +#~ "file in the workspace." +#~ msgstr "" +#~ "Para ver uma lista dos arquivos abertos em um painel lateral, clique em " +#~ "VerPainel " +#~ "lateral. Um painel lateral aparecerá ao lado esquerdo do " +#~ "ambiente de trabalho com uma lista do arquivos abertos atualmente. " +#~ "Clicando em um arquivo no painel lateral irá exibir aquele arquivo no " +#~ "espaço de trabalho." + +#~ msgid "documents icon" +#~ msgstr "ícone de documentos" + +#~ msgid "" +#~ "The side pane also contains a File Browser view. If the pane " +#~ "displays a file directory instead of currently open files, click <_:" +#~ "media-1/> at the bottom of the pane to switch to the Documents " +#~ "view." +#~ msgstr "" +#~ "O painel lateral também contém uma visualização do Navegador de " +#~ "arquivos. Se o painel lateral exibir um diretório de arquivos ao " +#~ "invés dos arquivos abertos atualmente, clique no <_:media-1/> no canto " +#~ "inferior do painel para alternar para a visualização de Documentos." + +#~ msgid "" +#~ "The side pane only displays files that are open in the current window. " +#~ "When multiple windows are open, only the files in the current window will " +#~ "be displayed in the side pane." +#~ msgstr "" +#~ "O painel lateral apenas exibe os arquivos que estão abertos na janela " +#~ "atual. Quando várias janelas estão abertas, apenas os arquivos da janela " +#~ "atual serão exibidos no painel lateral." + +#~ msgid "To change the color scheme, complete the following steps:" +#~ msgstr "Para alterar o esquema de cor, complete os seguintes passos:" + +#~ msgid "" +#~ "or, while the tab to be moved is open, choose Documents Move to New Window" +#~ msgstr "" +#~ "ou, enquanto a aba movida é aberta, escolha DocumentosMover para nova janela" + +#~ msgid "http://creativecommons.org/licenses/by-sa/3.0/" +#~ msgstr "https://creativecommons.org/licenses/by-sa/3.0/deed.pt_BR" + +#~ msgid "" +#~ "This work is licensed under the Creative Commons Attribution-ShareAlike " +#~ "3.0 Unported License. To view a copy of this license, visit <_:link-1/> " +#~ "or send a letter to Creative Commons, 444 Castro Street, Suite 900, " +#~ "Mountain View, California, 94041, USA." +#~ msgstr "" +#~ "Este trabalho está licenciado sob a Licença Creative Commons Atribuição-" +#~ "Compartilhada Igual 3.0 Não Adaptada. Para ver uma cópia desta licença, " +#~ "visite <_:link-1/> ou envie uma carta para Creative Commons, 444 Castro " +#~ "Street, Suite 900, Mountain View, California, 94041, USA." + +#~ msgid "Log user activity for documents which are opened in gedit" +#~ msgstr "" +#~ "Registra a atividade dos usuários em documentos que estão abertos no gedit" + +#~ msgid "Zeitgeist dataprovider" +#~ msgstr "Provedor de dados Zeitgeist" + +#~ msgid "" +#~ "Zeitgeist is a service that logs user activities and events. Zeitgeist " +#~ "lets other applications access this information in the form of statistics " +#~ "and timelines.The Zeitgeist dataprovider plugin for gedit " +#~ "records user activity for documents used with gedit giving easy access to " +#~ "recently-used and frequently-used files." +#~ msgstr "" +#~ "Zeitgeist é um serviço que registra as atividades dos usuários e eventos. " +#~ "O Zeitgeist permite que outros aplicativos acessem estas informações na " +#~ "forma de estatísticas e linhas do tempo. O plug-in do provedor de dados " +#~ "Zeitgeist para o gedit grava as atividades do usuário para " +#~ "documentos usados com o gedit, proporcionando acesso fácil a arquivos " +#~ "usados recentemente e aos arquivos usados com frequência." + +#~ msgid "Enable Zeitgeist dataprovider" +#~ msgstr "Habilitando o provedor de dados Zeitgeist" + +#~ msgid "Select Zietgeist Dataprovider." +#~ msgstr "" +#~ "Selecione Provedor de dados Zeitgeist." + +#~ msgid "" +#~ "The easiest way to create a new file in gedit, is to click the " +#~ "icon in the toolbar that looks like a blank piece of paper. If you " +#~ "prefer, you may also select FileNew, or press CtrlN." +#~ msgstr "" +#~ "A maneira mais fácil para criar um novo arquivo no gedit, é " +#~ "clicar no ícone que se parece com um pedaço de papel em branco. Se " +#~ "preferir, você também pode selecionar ArquivoNovo ou pressione CtrlN ." + +#~ msgid "" +#~ "To save a file in gedit, click on the disk-drive icon with the " +#~ "word Save next to it. You may also select " +#~ "File Save, or just press CtrlS." +#~ msgstr "" +#~ "Para salvar um arquivo no gedit, clique no ícone de disco " +#~ "rígido com a palavra Salvar próximo a ele. " +#~ "Você também pode selecionar ArquivoSalvar, ou basta pressionar " +#~ "CtrlS." diff --git a/help/ro/figures/gedit-html-snippet.png b/help/ro/figures/gedit-html-snippet.png new file mode 100644 index 0000000..f3f5641 Binary files /dev/null and b/help/ro/figures/gedit-html-snippet.png differ diff --git a/help/ro/figures/gedit3-screenshot.png b/help/ro/figures/gedit3-screenshot.png new file mode 100644 index 0000000..db927ab Binary files /dev/null and b/help/ro/figures/gedit3-screenshot.png differ diff --git a/help/ro/ro.po b/help/ro/ro.po new file mode 100644 index 0000000..baf140f --- /dev/null +++ b/help/ro/ro.po @@ -0,0 +1,5563 @@ +# Copyright (C) 2011 gedit's COPYRIGHT HOLDER +# This file is distributed under the same license as the gedit package. +# dlmuresan , 2011. +# Laurențiu Cristian Ion , 2012. +# Daniel Șerbănescu , 2015, 2018. +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2020-06-26 03:36+0000\n" +"PO-Revision-Date: 2020-07-08 17:03+0200\n" +"Last-Translator: Daniel Șerbănescu \n" +"Language-Team: Gnome Romanian Translation Team \n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n==0 || (n!=1 && n%100>=1 && n" +"%100<=19) ? 1 : 2);\n" +"X-Generator: Poedit 2.3.1\n" +"X-Project-Style: gnome\n" +"X-Poedit-SourceCharset: UTF-8\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Laurențiu Cristian Ion , 2012\n" +"Daniel Șerbănescu , 2015, 2018-2019" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Schimbarea textului și a culorilor de fundal în gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Modificarea schemei de culori" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit include câteva scheme de culori diferite, permițându-vă să " +"modificați aspectul ferestrei principale." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Pentru a modifica schema de culori:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Apăsați butonul meniu din bara de sus a ferestrei, apoi selectați " +"PreferințeFont și culori." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Alegeți schema de culori dorită." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Noua schemă de culori va fi aplicată imediat." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Utilizarea unei scheme personalizate de culori" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Puteți utiliza și scheme de culori care au fost create de alții, sau să " +"creați și să folosiți propria schemă de culori." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instrucțiuni despre cum se instalează scheme de culori personalizate, precum " +"și exemple de scheme de culori pe care să le puteți descărca și utiliza, " +"sunt disponibile în wiki-ul gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "" +"Utilizarea unui font personalizat în gedit pentru textul dumneavoastră." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Schimbarea fontului implicit" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit va folosi fontul monospațiat al sistemului, dar puteți " +"schimba fontul implicit gedit să se potrivească cu preferințele " +"dumneavoastră." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "Pentru a schimba fontul implicit în gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Selectați gedit Preferințe Font și culori." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" +"Deselectați căsuța de lângă fraza „Utilizează fontul monospațiat din sistem.”" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Apăsați clic pe numele fontului curent. gedit va deschide o " +"fereastră din care puteți alege fontul, permițându-vă să vedeți fonturile " +"disponibile și să alegeți fontul preferat." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"După ce ați ales un font nou, utilizați glisorul de sub lista cu " +"fonturi pentru a configura dimensiunea implicită a fontului." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Clic pe Selectează, apoi clic pe Închide." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Ieșirea din fișierul pe care îl folosiți." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Închiderea unui fișier" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears on the right-" +"side of the file's tab, or press Ctrl W." +msgstr "" +"Pentru a închide un fișier în gedit, selectați Închide. Alternativ, apăsați pe micul „X” care apare în " +"partea dreaptă a tabului fișierului, sau apăsați Ctrl " +"W." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:24 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Oricare dintre aceste acțiuni va închide un fișier în gedit. Dacă " +"fișierul conține modificări care nu au fost salvate, gedit vă va " +"întreba dacă să salveze modificările înainte de a închide fișierul." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Deschiderea unui fișier nou pentru editare." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Crearea unui fișier nou" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"Cea mai ușoară modalitate de a creea un fișier nou în gedit, este " +"să apăsați pe butonul Creează un document nou din partea stângă a " +"barei de instrumente, sau apăsați CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Oricare dintre aceste acțiuni va crea un nou fișier în fereastra gedit. Dacă aveți alte fișierele deschise în gedit, fișierul nou " +"pe care îl creați va apărea ca un tab nou în partea dreaptă a acestor " +"fișiere." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Utilizarea privilegiilor administrative pentru a edita un fișier." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Editarea unui fișier ca utilizator root" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Editarea fișierelor ca root (administrator) este potențial periculoasă, și " +"poate aduce daune sistemului. Aveți mare grijă atunci când editați fișiere " +"ca root (administrator)." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Pentru a edita fișiere ca administrator, porniți gedit din " +"terminal introducând:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Folosind comanda sudo, va trebui să introduceți cu succes parola " +"înainte de a deschide gedit." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Ca alternativă la comanda sudo, puteți obține privilegii " +"administrative introducând:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "Apoi puteți lansa gedit utilizând comanda gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Odată ce ați deschis gedit cu privilegii administrative, " +"gedit va reține acele privilegii până la închidere." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Învățați lucrurile de bază pentru a lucra cu fișiere în gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "" +"Funcționalități elementare: Deschiderea, închiderea și salvarea de fișiere" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Dacă sunteți începător în gedit, aceste subiecte vă vor ajuta cu " +"crearea, salvarea, deschiderea și închiderea fișierelor." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Configurarea gedit pentru a utiliza întregul ecran." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Folosirea modului „pe tot ecranul”" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Când lucrați cu un document mare, ați putea găsi util să lucrați în modul pe " +"întregul ecran al lui gedit. Folosind modul pe întregul ecran va " +"ascunde bara de meniuri, bara de taburi și bara " +"de instrumente, prezentându-vă mai mult din text și permițându-vă să " +"vă concentrați mai bine pe sarcinile dumneavoastră." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Activarea modului „pe tot ecranul”" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Pentru a activa modul „pe tot ecranul”, apăsați F11. Meniul " +"gedit, titlul, și barele cu taburi vor fi ascunse și veți fi " +"prezentat numai cu textul fișierului curent." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Dacă doriți să efectuați o acțiune din meniul gedit în timp ce " +"lucrați în modul „pe tot ecranul”, mutați indicatorul mausului în partea de " +"sus a ecranului. Bara de meniu gedit va reapărea, și veți putea " +"alege acțiunea dorită." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Pentru a comuta între taburile deschise în timp ce sunteți în modul „pe tot " +"ecranul”, apăsați CtrlAltPgUp, ori CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Dezactivarea modului „pe tot ecranul”" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Pentru a dezactiva modul „pe tot ecranul” și a reveni la fereastra standard " +"gedit, apăsați F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Puteți de asemenea să deplasați cursorul mausului în partea de sus a " +"ecranului, și așteptați apariția barei de meniu. Când apare " +"bara de meniu, selectați butonul Părăsește modul pe tot " +"ecranul." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Utilizarea panoului lateral din gedit ca navigator de fișiere." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Vizualizarea și deschiderea fișierelor din panoul lateral" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Cea mai frecventă modalitate de a comuta între fișiere în gedit " +"este utilizarea taburilor din partea de sus a ferestrei gedit. În " +"unele cazuri, în special atunci când lucrați cu un număr mare de fișiere " +"deschise, poate fi mai ușor să folosiți panoul lateral." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Pentru a activa panoul lateral, selectați Vizualizare " +"Panou lateral, sau apăsați tasta F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Puteți comuta panoul lateral în deschis sau închis apăsând F9 în " +"orice moment." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Deschiderea fișierelor din panoul lateral" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Pentru a deschide fișiere din panoul lateral, mai întâi deschideți panoul " +"lateral selectând Vizualizare Panou lateral, (sau doar apăsați F9) apoi alegeți Navigator de " +"fișiere din lista de selecție din partea de sus a panoului." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Aceasta va activa modul navigator fișiere al panoului lateral. " +"Puteți apoi folosi butoanele de navigare din partea superioară a panoului " +"pentru a localiza și deschide fișierele dorite." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Folosirea panoului lateral pentru a comuta între fișierele deschise" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"O dată ce aveți mai multe fișiere deschise, puteți folosi panoul lateral " +"pentru a comuta între fișierele deschise. Pentru a lista documentele " +"deschise, alegeți Documente din lista de selecție din partea " +"superioară a panoului." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Apăsând pe orice nume de fișier în panoul lateral va deschide acel fișier " +"pentru editare." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Deschiderea fișierelor pentru a lucra la ele." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Deschiderea unui fișier sau unui set de fișiere" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Pentru a deschide un fișier în gedit, apăsați pe butonul " +"Deschidere sau apăsați CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Aceasta va determina ca dialogul Deschide să apară. Folosiți " +"mausul sau tastatura pentru a selecta fișierul pe care doriți să îl " +"deschideți și apoi apăsați pe Deschide. Fișierul pe care l-ați " +"selectat se va deschide într-o filă nouă." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Pentru a închide caseta de dialog Deschide fără deschiderea unui " +"fișier, apăsați pe Anulează." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Puteți folosi tastele Ctrl și Shift pentru a deschide " +"mai multe fișiere simultan. Dacă țineți apăsată tasta Ctrl în " +"timp ce selectați mai multe fișiere, apăsând pe Deschide va " +"deschide fiecare dintre fișierele pe care le-ați selectat." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Apăsând Shift în timp ce alegeți mai multe fișiere, se va " +"deschide primul fișier selectat, ultimul fișier selectat și toate fișierele " +"dintre ele." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Accesarea fișierelor care sunt stocate pe un calculator diferit." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Deschiderea unui fișier care se află pe un server" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Înainte de a deschide un fișier de pe un server din cadrul gedit, " +"trebuie să știți unele informații tehnice despre server. De exemplu, va " +"trebui să știți adresa IP sau URL-ul serverului, și poate fi necesar să " +"știți ce fel de server este (de exemplu, HTTP, FTP, etc.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"De asemenea, unele tipuri de servere impun restricții în ceea ce puteți face " +"cu fișierele stocate pe server. De exemplu, puteți să deschideți un fișier " +"de pe un server, dar poate fi necesar să salvați modificările în fișier la " +"nivel local, pe propriul computer." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Cu aceste limitări în minte, efectuați următorii pași pentru a deschide un " +"fișier de pe un server folosind gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "În bara de sus, apăsați Deschide." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Documents…." +msgstr "Apăsați Alte documente…." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Press CtrlL in the Open " +"dialog." +msgstr "" +"Apăsați CtrlL în dialogul " +"Deschidere." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Introduceți adresa IP sau URL-ul serverului corespunzător." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Găsiți și alegeți fișierul pe care doriți să-l deschideți." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Folosiți lista de selecție de codificare caractere pentru a selecta " +"codificarea de caractere corespunzătoare." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Apăsați Deschide." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Tipurile valide de URI includ http:, ftp:, file:, și toate metodele " +"suportate de gvfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Fișierele de la unele tipuri de URI sunt deschise doar în citire, iar " +"modificările trebuie salvate într-o altă locație. De exemplu, HTTP permite " +"numai citirea fișierelor. Fișierele deschise din FTP sunt doar-în-citire, " +"deoarece nu toate serverele FTP ar putea să funcționeze corect cu salvarea " +"fișierelor la distanță." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Accesarea fișierelor pe care le-ați actualizat recent." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Redeschiderea unui fișier folosit recent" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"În mod implicit, gedit oferă acces ușor la cinci din cele mai " +"recent folosite fișiere. Puteți să deschideți un fișier folosit recent " +"astfel:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "Click the arrow button next to the Open button." +msgstr "Apăsați pe săgeata din dreapta butonului Deschidere." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "" +"gedit va afișa o listă cu cinci dintre cele mai recent folosite " +"fișiere." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Alegeți fișierul dorit, și se va deschide într-un tab nou." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "" +"Utilizarea modulelor pentru a personaliza modul în care gedit funcționează." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Configurarea și utilizarea modulelor gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Puteți face mai mult cu gedit utilizând module. Câteva module " +"sunt instalate în mod implicit, dar un număr mare de alte module sunt " +"disponibile separat." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Multe distribuții GNU/Linux fac un grup din aceste mudule disponibil ca un " +"pachet gedit-plugins. Instalați pachetul gedit-plugins " +"pentru a face aceste module suplimentare disponibile pentru gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Instalați module gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Module gedit implicite" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Module gedit adiționale" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Modifică dimensiunea textului selectat." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Dimensiune text" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Acest modul vă ajută să modificați mărimea porțiunilor selectate de text. Îl " +"puteți folosi pentru a modifica textul să fie toate minuscule, toate " +"majuscule, pentru a inversa mărimea, sau aplica prima literă majusculă. " +"Pentru a activa acest modul, selectați geditPreferințe ModuleDimensiune text." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"O dată ce modulul Dimensiune text este activat, îl puteți folosi " +"completând următorii pași:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Evidențiați porțiunea de text pe care doriți să o modificați." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Selectați geditModifică dimensiunea" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Alegeți opțiunea de formatare text dorită." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Actualizările pentru formatarea textului vor avea loc imediat." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Opțiunea Inversează dimensiune va transforma toate literele " +"minuscule în majuscule și toate literele majuscule în minuscule." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Opțiunea Dimensiune titlu va converti prima literă a fiecărui " +"cuvânt în majusculă. Toate celelalte litere vor fi convertite în minuscule." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Dacă nu ați evidențiat niciun text, caracteristica de Dimensiune text va fi gri. Trebuie să alegeți o porțiune de text înainte de a folosi " +"caracteristica Dimensiune text." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Vizualizează statisticile documentului." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Statistici document" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Modulul Statistici document poate arăta diverse statistici despre " +"documentul curent. Pentru a activa acest plugin, selectați geditPreferințe " +"ModuleStatistici document." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Utilizarea statisticilor documentului" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"O dată ce modulul este activat, folosiți-l prin selectarea " +"Instrumente Statistici document. O " +"fereastră va afișa informațiile statistice din document, inclusiv numărul de " +"cuvinte, linii, caractere, caractere non-spațiu și dimensiunea fișierului în " +"octeți." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"De asemenea, puteți folosi Statisticile documentului pentru a vă " +"arăta informații doar despre o porțiune din document. Pentru aceasta, " +"folosiți indicatorul mausului pentru a selecta porțiunea de text pe care " +"doriți să o examinați și apoi alegeți InstrumenteStatistici document. Gedit va afișa " +"informații și pentru întregul document, precum și pentru porțiunea de text " +"care ați evidențat-o." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Execută scripturi pe fișierele curente, și interacționează cu alte aplicații." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Unelte externe" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Modulul Unelte externe poate ajuta la simplificarea sarcinilor " +"repetitive. Mai exact, extinde gedit ajutându-vă să executați " +"scripturi în fișierele dumneavoastră de lucru, și permițând lui gedit să interacționeze cu alte programe de pe computer. Pentru a activa " +"modulul Unelte externe, selectați gedit PreferințeModule " +"Unelte externe." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Configurarea modulului unelte externe" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"O dată ce ați activat modulul, va trebui să îl configurați pentru a se " +"potrivi nevoilor dumneavoastră. Opțiunile de configurare sunt disponibile " +"prin selectarea UnelteAdministrează unelte externe." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Acest modul este pentru utilizatori avansați și necesită cunoștințe de " +"scripting pentru a fi folosit în mod eficient. Folosiți acest modul cu " +"grijă, așa încât greșeli cu scripturile pot afecta munca dumneavoastră în " +"moduri neintenționate." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Folosește panoul lateral pentru a căuta și deschide fișiere." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Panoul de navigare fișiere" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"În funcție de modul în care folosiți gedit, ați putea găsi util " +"să folosiți modulul Panoul de navigare fișiere. Acest modul " +"încorporează un navigator de fișiere în panoul lateral, oferindu-" +"vă acces ușor la fișierele folosite frecvent." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Puteți activa panoul lateral selectând geditPreferințe ModulePanoul de " +"navigare fișiere." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the pane." +msgstr "" +"Pentru a deschide fișiere din panoul lateral, mai întâi " +"deschideți panoul lateral selectând Vizualizare Panou lateral, apoi apăsați pe iconița " +"Navigator de fișiere din partea de jos a panoului." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the pane to locate and open " +"your desired files." +msgstr "" +"Acest lucru va activa modul Navigator fișiere al panoului lateral. " +"Puteți apoi folosi butoanele de navigare din partea superioară a panoului " +"pentru a localiza și deschide fișierele dorite." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Introduce data/ora curentă la poziția cursorului." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Introducerea datei/orei" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"După cum numele acestui modul sugerează, modulul Introdu Dată/Oră " +"permite adăugarea datei și/sau a orei la poziția curentă a cursorului." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Pentru a activa modulul:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Apăsați butonul meniu din bara de sus a ferestrei, apoi selectați " +"PreferințeFont și culori." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Selectați Introdu dată/oră pentru a activa " +"modulul." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Apăsați butonul meniu din bara de sus a ferestrei, apoi selectați " +"UnelteIntrodu data și ora…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"În mod implicit, modulul Inserare dată și oră vă va solicita să " +"alegeți formatul dumneavoastră preferat de dată și oră de fiecare dată când " +"folosiți modulul. Cu toate acestea, puteți alege propriul format implicit de " +"dată și oră selectând Preferințe ModuleInserare dată și orăPreferințe." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Cum se instalează module din părți terțe." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Module gedit adiționale" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Instalând module terțe va oferi funcționalități suplimentare care nu sunt " +"disponibile în modulele implicite gedit, sau chiar în modulele " +"suplimentare care fac parte din pachetul gedit-plugins. O listă " +"online de module terțe este menținută aici." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Instalarea unui modul terț implică descărcarea modulului, introducerea " +"fișierelor în directorul corect și activarea modulului." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Puteți descărca de obicei un modul de pe situl modulului, dar poate fi " +"necesar să folosiți un program de control de revizii ca git, " +"bazaar sau subversion pentru a copia un repozitoriu al " +"unui modul de pe internet. Consultați documentația modulului pentru " +"informații despre obținerea modulului." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Plasați fișierele modulului în directorul /home/utilizator/." +"local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Desigur, înlocuiți cuvântul utilizator cu propriul nume de " +"utilizator." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"După ce ați plasat fișierele modulului în directorul corect, modulul va " +"apărea în meniul Preferințe. Apăsați meniul buton din dreapta sus a " +"ferestrei și selectați PreferințeModule[Nume modul] pentru a activa modulul." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Apăsați Închidere." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"După ce ați activat modulul, ar trebui să fie disponibil pentru a-l folosi." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Directorul .local este ascuns în mod implicit. Pentru a-l " +"vizualiza pe acesta și alte fișiere ascunse, selectați " +"VizualizareArată fișiere ascunse, sau " +"apăsați CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"În cazul în care directorul .local/share/gedit/plugins/ nu este " +"prezent pe sistemul dumneavoastră, va trebui să îl creați." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "" +"Suport linii de mod (modelines) în stil Emacs, Kate și Vim pentru gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Linii de mod" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Modulul Linii de mod (modelines) îi permite lui gedit " +"să analizeze liniile de text de la începutul și sfârșitul unui fișier, și " +"apoi să aplice un set de preferințe de document la fișier. Modulul " +"Linii de mod (modelines) acceptă un subset de opțiuni folosite de " +"către editoarele de text Emacs, Kate și Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Pentru a activa modulul Linii de mod (modelines), selectați " +"gedit PreferințeModuleLinii de mod (modelines)." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Opțiuni generale pentru linii de mod" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Următoarele opțiuni pot fi configurate folosind liniile de mod gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Lățimea tabului" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Indentarea lățimii" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Inserarea de spații în loc de taburi" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Încadrarea textului" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Lățimea marginii din dreapta" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Preferințe configurate utilizând linii de mod au prioritate față de cele " +"specificate în caseta de dialog Preferințe." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Linii de mod Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Primele două linii dintr-un document sunt scanate pentru linii de mod " +"Emacs și gedit acceptă următoarele opțiuni de linii de " +"mod Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Lățimea tabului" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Decalajul identării" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Modul de indentare a taburilor" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Autoîncadrarea textului" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Pentru mai multe informații despre liniile de mod Emacs, " +"consultați Manualul GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Linii de mod Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Primele și ultimele zece linii ale unui document sunt scanate pentru linii " +"de mod Kate, și gedit acceptă următoarele opțiuni " +"pentru liniile de mod Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "lățimea tabului" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "lățimea indentării" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "indentarea spațiului" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "încadrare cuvintelor" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "încadrare cuvintelor pe coloană" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Pentru mai multe informații despre liniile de mod Kate, vizitați " +"situl Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Linii de mod Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Primele și ultimele trei linii ale unui document sunt scanate pentru linii " +"de mod Vim, și gedit acceptă următoarele opțiuni " +"pentru liniile de mod Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandare tab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (oprire tab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (lățime shift)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "încadrare" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "lățime text" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Pentru mai multe informații despre liniile de mod Vim, vizitați " +"situl Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Adăugați o consolă Python interactivă în panoul de jos." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Consola python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Puteți adăuga o consolă Python la panoul de jos, permițându-vă să testați " +"scripturi Python fără a părăsi gedit. Pentru a activa consola de " +"Python, selectați gedit PreferințeModule Consolă Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"O dată ce consola Python este activată, o puteți deschide selectând " +"VizualizarePanou de jos." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Dacă ați activat și modulul Terminal încorporat, consola " +"Python va apărea ca un tab separat în panoul de jos." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Deschide rapid un fișier sau un set de fișiere." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Deschidere rapidă" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Așa cum numele acestui modul ar implica, modulul Deschidere rapidă vă ajută să deschideți fișiere mai rapid decât modul obișnuit de " +"deschidere fișiere. Pentru a activa acest modul, selectați gedit PreferințeModuleDeschidere rapidă." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Odată ce ați activat modulul Deschidere rapidă îl puteți folosi " +"astfel:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Deschideți dialogul Deschidere rapidă apăsând CtrlAltO, sau selectând Deschidere rapidă…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Dialogul de fișiere Deschidere rapidă va apărea." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Folosiți mausul pentru a selecta fișierul sau fișierele pe care doriți să le " +"deschideți." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Pentru a selecta mai multe fișiere individuale, mențineți apăsată tasta " +"Ctrl în timp ce apăsați pe fișierele pe care doriți să le " +"deschideți." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Pentru a selecta un grup de fișiere, apăsați pe primul fișier pe care doriți " +"să-l deschideți, țineț tasta Shift apăsată și apoi apăsați pe " +"ultimul fișier din listă pe care doriți să-l deschideți." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Deschidere rapidă va controla după fișiere în:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Directorul documentului deschis curent" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"Dosarul rădăcină al modulului Panoul de navigare fișiere" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Documente recente care sunt afișate în dosarul Recente din " +"Fișiere" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Directoarele pe care le-ați marcat în Fișiere" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Directorul dumneavoastră Desktop" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Directorul dumneavoastră Personal" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Deschidere rapidæ afișează fișierele în oricare dintr locațiile " +"menționate indiferent dacă au fost deschise anticipat." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Utilizează fragmente de text pentru a introduce rapid bucăți de text " +"utilizate frecvent." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Fragmente de text" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Fragmente de text oferă un mod convenient de a introduce porțiuni " +"de cod repetitive în fișerele dumneavoastră. De exemplu un fragment HTML " +"pentru tagul <img> va introduce deschiderea și închiderea " +"tagului, de asemenea și locurile fixe unde ați pute introduce atributele " +"imaginii. Asta poate face scrierea codului mai rapidă." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Activarea modulului Fragmente de text" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Pentru a activa modulul Fragmente de text:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Selectați gedit Preferințe Module." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Selectați Fragmente de text pentru a activa " +"modulul." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Navigarea fragmentelor de text" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Pentru a naviga prin fragmentele de text disponibile:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Selectați Unelte Administrează fragmente de text." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Asigurațivă că sintaxa este stabilită corespunzător. Bara de stare din " +"partea inferioară a ferestrei gedit va arăta configurarea curentă " +"pentru limbaj. Această configurare de limbaj este ceea ce permite gedit să " +"insereze fragmentele potrivite. Gedit în mod normal va detecta " +"limbajul sau sintaxa fișierului pe care îl folosiți, dar uneori poate fi " +"necesar să o configurați dumneavoastră." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "În acest exemplu, limbajul configurat este HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='118dc916bd6f99e67b15c588bc68521c'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Navigați fragmentele de text care sunt disponibile pentru limbajul sau " +"sintaxa dumneavoastră." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Utilizarea fragmentelor de text" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Pentru a introduce un fragment de text în documentul curent:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Tastați numele fragmentului de text dorit oriunde în documentul curent." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Apăsați Tab pentru a introduce fragmentul de text asociat cu " +"termenul tastat." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Exemplu de utilizare a fragmentelor de text" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"De exemplu, dacă stabiliți sintaxa la HTML, tastați head, și apăsați tasta Tab. Textul va fi autocompletat într-un " +"fragment de text cum ar fi:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Adăugarea fragmentelor de text" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Puteți adăuga Fragmente de text care funcționează fie global (agnostic de " +"limbaj) sau numai în cadrul unei sintaxe particulare." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Selectați Unelte Administrează fragmentele de text." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Din bara laterală Administrează fragmentele de text selectați " +"sintax dorită și apăsați pe butonul „+” pentru a lista fragmentele de text " +"existente pentru sintaxa selectată." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Pentru a adăuga un fragment care să funcționeze global (pentru atunci când " +"nicio sintaxă sau limbă nu a fost stabilită pentru document), selectați " +"Global din bara laterală Administrează fragmente." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Pentru a adăuga un fragment, apăsați pe iconița „plus” din bara laterală " +"Administrează fragmente." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Introduceți un nume pentru fragment. Numele fragmentului poate fi diferit de " +"fragmentul pe care doriți să-l adăugați." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Sub secția Activare, trebuie să introduceți un " +"termen pentru zona de text Declanșator tab:. Veți " +"folosi acest termen pentru a introduce fragmentul dumneavoastră." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Dacă doriți să introduceți un fragment cu o scurtătură de tastatură, apoi " +"apăsați cu mausul pe zona de text Tastă scurtătură: și apăsați combinația dorită de taste. Odată ce ați apăsat și ați " +"eliberat tastele, scurtătura de tastatură va fi stabilită." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Sub zona de text pentru Editare:, introduceți " +"textul dorit pentru fragment. Puteți folosi ${n} pentru a " +"indica variabile unde n este înlocuit de un număr care reprezintă " +"ordina numerică a variablelor incluse." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Exemplu de fragment nou" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Presupunem că ați creeat un fragent cu termenul salutări în Declanșator tab:. Zona de text Editare: conține:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <salutări>Salut ${1:wonderful}${2:amazing} lume!\n" +" </salutări>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Puteți introduce acest fragment tastând salutări în document și " +"apăsând tasta Tab. Următorul fragment de text va fi introdus:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <salutări>Saluări lume fantasticăextraordinară!</salutări>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Cuvintele „fantastică” și „extraordinară” pot fi reținute sau șterse în " +"funcție de alegerea dumneavoastră. Pentru a facea asta, apăsați Tab pentru a alege între „fantastică” și „extraordinară” și apăsați tasta " +"Del pentru a șterge opțiunea mai puțin preferată." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Aranjați liniile textului în ordine alfabetică." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Ordonare" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Plugin-ul de sortare aranjează liniile selectate de text în ordine " +"alfabetică." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Activarea modulului de sortare" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Pentru a activa modulul Sortare:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Selectați Sortare pentru a activa modulul." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Utilizarea modulului Sortare" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Pentru a utiliza modulul Sortare:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Drag and highlight the desired lines of text." +msgstr "Trageți și subliniați liniile de text dorite." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Selectați Unelte Sortare…." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Dialogul Sortare se va deschide, permițându-vă să alegeți între " +"mai multe opțiuni de sortare:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Ordine inversă va aranja textul în ordine alfabetică inversă." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "Elimină duplicate va elimina valorile duplicate din listă." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "Ignorare majuscule va ignora sensibilitatea la majuscule." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Pentru ca sortarea să ignore caracterele de la începutul liniilor, setați " +"primul caracter care trebuie folosit pentru sortare în caseta Pornire " +"de la." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Pentru a efectua operația de sortare, apăsați pe Sortare." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Stabilește paginile de tipărit într-o ordine specifică." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Obținerea cópiilor de tipărit în ordinea corectă" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Inversă" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Imprimantele tipăresc de obicei prima pagină prima și ultima pagină ultima, " +"așa că paginile ajung în ordine inversă când le luați de la imprimantă. " +"Pentru a inversa ordinea:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Selectați Fișier Tipărește." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"În tabul Generale al dialogului „Tipărește” sub " +"Cópii, bifați Inversat." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Ultima pagină va fi tipărită prima, și așa mai departe." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Asamblat" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Dacă tipăriți mai mult de o copie a documentului, rezultatul va fi grupat în " +"mod implicit după numărul paginii. (De exemplu copiile pagini unu sunt gata, " +"apoi copiile paginii doi, etc.) Asamblarea va face ca fiecare copie să iasă " +"cu paginilie grupate împreună." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Pentru a asambla:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Apăsați pe Fișier Tipărește." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"În tabul Generale al dialogului „Tipărește” sub " +"Cópii, bifați Colaj." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Tipăriți fișierele pe care le creeați cu gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Tipărirea documentelor" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Tipărirea cu gedit necesită că v-ați conectat și configurat " +"imprimanta. Dacă nu ați făcut acest lucru, consultați documentația de ajutor pentru imprimare GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit vă permite să tipăriți într-un fișier sau pe hârtie." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Previzualizarea pentru tipărire" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Înainte să tipăriți documentul, puteți să previzualizați cum va arăta " +"documentul tipărit utilizând Previzualizare tipărire. Pentru a " +"previzualiza documentul:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Selectați Fișier Previzualizare tipărire. Alternativ, puteți apăsa " +"ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"O previzualizare a documentului se va deschide în același tab ca fișierul. " +"Puteți naviga prin această previzualizare cu ajutorul butoanelor de navigare " +"și uneltelor din bara de unelte din partea superioară a tabului de " +"previzualizare. Pentru a închide și a reveni la document apăsați Închide previzualizarea." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Tipărirea pe hârtie" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Puteți tipări documentele pe hârtie folosind o imprimantă locală sau una la " +"distanță. Pentru a tipări un fișier:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Selectați Fișier Tipărește Generale." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Alegeți imprimanta dorită din lista de imprimante disponibile." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Puteți previzualiza fișierul utilizând Previzualizare " +"tipărire și odată ce sunteți mulțumit de configurări, apăsați Tipărește pentru a trimite fișierul la imprimantă." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Adițional, din tabul Opțiuni pagină: puteți alege " +"opțiuni de Aspect și Hârtie. După cum aceste opțiuni sunt disponibile în toate programele " +"GNOME, Consultați ajutorul pentru Opțiuni de aspect și hârtie." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Tipărirea cópiilor multiple și a intervalelor specificate" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Puteți stabili opțiuni de Intervale și Cópii pentru a vă ajuta la:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Tipărirea în fișier" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Puteți de asemenea utiliza gedit pentru a tipări într-un fișier. " +"Pentru a tipări documentul într-un fișier de format diferit:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Selectați Fișier Tipărește Tipărește în fișier." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "" +"Tipărirea este activată pentru următoarele formate de fișiere din care " +"puteți selecta:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Document de format portabil (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Grafică vectorială scalabilă (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Pentru a tipări documentul în fișier, apăsați pe Tipărește." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Alegeți paginile pe care doriți să le tipăriți." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Tipărirea numai a unor pagini specifice" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Puteți tipări selectiv numai anumite pagini din document. De exemplu dacă " +"introduceți numerele de pagini „1,3,5-7,9”, atunci numai paginile 1, 3, 4, " +"6, 7, și 9 vor fi tipărite. Pentru a tipări paginile alease de dumneavoastră:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Selectați Fișier Tipărește…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"În tabul Generale în dialogul Tipărire alegeți Pagini din secțiunea Interval." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Tastați numerele paginilior pe care doriți să le tipăriți din document, " +"separate de virgule. Utilizați cratima pentrua specifica un interval de " +"pagini." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "O scurtă introducere la gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Începeți cu gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit is un editor de text complet pentru mediul desktop GNOME. " +"Îl puteți folosi pentru a pregăti note simple și documente, sau puteți " +"folosi unele dintre caracteristicile sale avansate, făcând-ul propriul " +"dumneavoastră mediu de dezvoltare software." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='75fdc1a4994f728743cbcecb78cd2d54'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"O dată ce pornește gedit, puteți începe să scrieți imediat. " +"Pentru a salva textul, doar apăsați pe iconița Salvare din bara " +"de unelte gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Pentru a afla despre caracteristici suplimentare gedit și pentru " +"a obține asistență cu îndeplinirea sarcinilor suplimentare, vizitați celelalte porțiuni din ajutorul gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Înlocuirea porțiunilor de text dintr-un fișier." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Înlocuiți textul" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Editarea de text poate fi consumatoare de timp. Pentru a economisi timp, " +"gedit include o funcție de Înlocuire care vă ajută să " +"găsiți și înlocuiți porțiuni de text." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Înlocuiți textul în gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Deschideți instrumentul de Înlocuire apăsând pe butonul MeniuCaută și " +"înlocuiește… sau apăsați CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "" +"Introduceți textul pe care doriți să-l înlocuiți în câmpul Căutare." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Introduceți noul text de înlocuit în câmpul Înlocuiește cu." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Odată ce ați introdus textul original și cel de înlocuit, puteți adăuga " +"parametrii extra căutării. Puteți de asemenea alege ce doriți să înlocuiți:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Pentru a înlocui numai potrivirea următoare, apăsați pe " +"Înlocuire." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Pentru a înlocui toate aparițiile de text căutat, apăsați pe " +"Înlocuire toate." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Folosiți funcția de Înlocuire toate cu grijă. Înlocuire " +"toate acționează pe întregul fișier text, și nu vă permite să " +"evidențiați anumite porțiuni din text unde se va efectua funcția de " +"înlocuire." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Mai multe opțiuni" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Dacă doriți, puteți adăuga parametrii extra căutării:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Potriviți situația" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Opțiunea Potrivire litere vă permite să specificați dacă doriți ca " +"căutarea să fie sensibilă la majuscule. Dacă este selectată această opțiune, " +"căutările vor fi sensibile la majuscule. Dacă nu, căutările nu vor fi " +"sensibile la majuscule." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Potriviți numai cuvintele întregi" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Folosiți această opțiune pentru a căuta un anumit cuvânt fără a include " +"fragmente de alte cuvinte. De exemplu, dacă veți căuta cuvântul „și” cu " +"această opțiune selectată, cuvântul „și” va fi găsit, dar cuvintele " +"„ostași” și „fisșier” nu." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Căutare înapoi" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Această comandă se comportă identic cu comanda găsește anteriorul. Dacă " +"doriți să trecețo prin rezultatele de căutare de la sfârșit la început, " +"alegeți această opțiune." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Încadrare în jurul valorii" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Cu opțiunea împachetare împrejur activată, gedit va " +"reporni acțiunea de căutare/înlocuire în partea de sus a fișierului, după ce " +"acesta a ajuns la partea de jos a fișierului. Acest lucru asigură că " +"acțiunea de căutare/înlocuire este făcută pe întregul fișier." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Utilizarea secvențelor de citare" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Puteți folosi secvențe de citare (escape sequences) pentru a căuta " +"după schimbări de linii (line breaks), returnări (carriage returns), și " +"taburi." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Linie nouă" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Carriage return" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Dacă doriți de fapt să căutați după \\ (backslash) sau una " +"dintre secvențele de citare, trebuie să citați backslashul cu un extra " +"backslash. De exemplu, pentru a căuta după \\, trebuie să " +"introduceți \\\\ în căsuța de căutare sau câmpul de " +"înlocuire. Similar, puteți căuta după secvențele de citare în același mod: " +"pentru a căuta sau înlocui un \\n, folosiți termentul " +"\\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Salvarea fișierului pentru a lucra pe el mai târziu." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Salvarea unui fișier" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +"CtrlS." +msgstr "" +"Pentru a salva un fișier în gedit, apăsați pe butonul Salvează sau apăsați CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Dacă salvați un fișier nou, va apărea un dialog, și puteți să alegeți un " +"nume pentru fișier, precum și directorul unde doriți ca fișierul să fie " +"salvat." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Căutarea unei porțiuni de text într-un fișier." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Căutarea după text" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Unealta Găsire vă poate ajuita să găsiți secvențe specifice de text în " +"fișierul dumneavoastră." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Găsiți text" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Deschideți fereastra de căutare apăsând pe butonul Meniu Caută… " +"sau apăsând CtrlF. Acest lucru va " +"muta cursorul la începutul fereastrei de căutare." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "" +"Tastați textul pe care doriți să îl căutați în fereastra de căutare." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Pe măsură ce tastați, gedit va începe evidențierea porțiunilor de " +"text care se potrivesc cu ceea ce ați introdus." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Pentru a derula prin rezultatele de căutare, efectuați una din următoarele:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Apăsați pe săgețile sus sau jos de lângă fereastra de căutare." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Apăsați tastele săgeată sus sau săgeată jos de pe " +"tastatură." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Apăsați CtrlG sau CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Pentru a închide fereastra de căutare, apăsați Esc sau " +"Enter. Apăsând Esc cursorul va reveni la în locul în " +"care a fost înainte de începutul căutării. Apăsând tasta Enter " +"cursorul va reveni la poziția curentă în rezultatele de căutare." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Sfaturi pentru căutare" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Dacă evidențiați o porțiune de text cu mouseul, și apoi apăsați " +"CtrlF, textul evidențiat va apărea în " +"fereastra de căutare." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Pentru mai multe opțiuni de căutare, apăsați pe iconița Lupă din fereastra de căutare, sau apăsați clic dreapta pe orice " +"parte a ferestrei Căutare. Puteți selecta una sau mai multe din următoarele " +"opțiuni:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Selectați Majuscule semnificative pentru a face căutarea " +"sensibilă la majuscule." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Selectați Potrivire doar pentru întreg cuvântul pentru a căuta " +"numai după cuvinte complete." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Selectați Reia de la început pentru a căuta după text până la " +"sfârșitul textului și a începe căutarea de la început." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Textul pe care le-ați cautat va rămâne evidențiat de gedit, chiar și după ce " +"ați finalizat căutarea. Pentru a elimina evidențierea, apăsați pe Elimină evidențierea, sau apăsați CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Folosiți scurtături de tastatură pentru a lucra mai eficient." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Taste pentru scurtături" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Folosiți comenzi rapide pentru a efectua sarcinile comune mai " +"rapid decât cu mouse și meniuri. Tabelele de mai jos enumeră toate comenzile " +"rapide ale gedit." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Tab-uri legate de taste pentru scurtături" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:158 C/gedit-shortcut-keys.page:244 +#: C/gedit-shortcut-keys.page:264 C/gedit-shortcut-keys.page:316 +#: C/gedit-shortcut-keys.page:349 C/gedit-shortcut-keys.page:378 +msgid "Action" +msgstr "Acțiune" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:159 C/gedit-shortcut-keys.page:245 +#: C/gedit-shortcut-keys.page:265 C/gedit-shortcut-keys.page:317 +#: C/gedit-shortcut-keys.page:350 C/gedit-shortcut-keys.page:379 +msgid "Keyboard shortcut" +msgstr "Scurtătură de tastatură" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Comutați la tab-ul următor din stânga" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt PageUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Comutați la tab-ul următor din dreapta" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt PageDown" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Închideți tab-ul" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:145 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Salvați toate filele" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlShift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Închideți toate tab-urile" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlShiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Redeschide tabul închis cel mai recent" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlShiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Salt la al n-lea tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Grup nou de taburi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Grupul precedent de taburi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"ShiftCtrlAltPage up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Grupul următor de taburi" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"ShiftCtrlAltPage down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Taste pentru scurtături pentru lucrul cu fișiere" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Creează un nou document într-o nouă fereastră" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Creaează un nou document într-un tab nou" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Deschideți un document" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Save the current document" +msgstr "Salvați documentul curent" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document with a new filename" +msgstr "Salvați documentul curent cu un nou nume de fișier" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlShift S" +msgstr "CtrlShift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "Print the current document" +msgstr "Printați documentul curent" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:141 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Close the current document" +msgstr "Închideți documentul curent" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Quit gedit" +msgstr "Părăsiți gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:155 +msgid "Shortcut keys for editing files" +msgstr "Taste pentru scurtături pentru editarea fișierelor" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:164 +msgid "Move the selected word right one word" +msgstr "Mută cuvântul selectat la dreapta cu un cuvânt" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:165 +msgid "AltRight Arrow" +msgstr "AltRight Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:168 +msgid "Move the selected word left one word" +msgstr "Mută cuvântul selectat la stânga cu un cuvânt" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:169 +msgid "AltLeft Arrow" +msgstr "AltLeft Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:172 +msgid "Undo the last action" +msgstr "Anulați ultima acțiune" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:176 +msgid "Redo the last undone action" +msgstr "Refaceți ultima acțiune anulată" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "CtrlShift Z" +msgstr "CtrlShift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Tăiați textul sau regiunea selectată și plasați-o pe clipboard" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:183 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Copiați textul sau regiunea selectată pe clipboard" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:187 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "Paste the contents of the clipboard" +msgstr "Lipiți conținutul din clipboard" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:191 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:194 +msgid "Select all text in the file" +msgstr "Selectați tot textul din fișier" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:195 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:198 +msgid "Unselect all text" +msgstr "Deselectează tot textul" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:199 +msgid "CtrlBackslash" +msgstr "CtrlBackslash" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:202 +msgid "Delete the current line" +msgstr "Stergeți linia curentă" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:203 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:206 +msgid "Move the selected line up one line" +msgstr "Mutați linia selectată în sus cu o linie" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:207 +msgid "AltUp Arrow" +msgstr "AltUp Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:210 +msgid "Move the selected line down one line" +msgstr "Mutați linia selectată în jos cu o linie" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "AltDown Arrow" +msgstr "AltDown Arrow" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:214 +msgid "Add a tab stop" +msgstr "Adaugă un tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:218 +msgid "Remove a tab stop" +msgstr "Elimină un tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "ShiftTab" +msgstr "ShiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:222 +msgid "Convert the selected text to upper case" +msgstr "Convertește textul selectat în majuscule" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:226 +msgid "Convert the selected text to lower case" +msgstr "Convertește textul selectat în minuscule" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:230 +msgid "Toggle case of the selected text" +msgstr "Comută majuscule sau minuscule pentru textul selectat" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:234 +msgid "Toggle cursor visibility" +msgstr "Comută vizibilitatea cursorului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "F7" +msgstr "F7" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:241 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Taste pentru scurtături pentru afișarea și ascunderea panourilor" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:250 +msgid "Show / hide the side panel" +msgstr "Arată / ascunde panoul lateral" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:251 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:254 +msgid "Open the file menu" +msgstr "Deschide meniul fișier" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:255 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:261 +msgid "Shortcut keys for navigation" +msgstr "Scurtături de tastatură pentru navigație" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:270 +msgid "Move to matching bracket" +msgstr "Mută la paranteza potrivită" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:271 +msgid "Ctrl%" +msgstr "Ctrl%" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:274 +msgid "Goto line" +msgstr "Mergeți la linia" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:275 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:278 +msgid "Move to the beginning of the current line" +msgstr "Mută cursorul la începutul liniei curente" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:279 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:282 +msgid "Move to the end of the current line" +msgstr "Mută cursorul la sfârșitul liniei curente" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:283 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:286 +msgid "Move to the beginning of the document" +msgstr "Mută cursorul la începutul documentului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:287 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:290 +msgid "Move to the end of the document" +msgstr "Mută cursorul la sfârșitul documentului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:291 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:294 +msgid "Move viewport up within the file" +msgstr "Mută zona vizibilă mai sus în fișier" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:295 +msgid "ShiftAltUp" +msgstr "ShiftAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:298 +msgid "Move viewport down within the file" +msgstr "Mută zona vizibilă mai jos în fișier" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:299 +msgid "ShiftAltDown" +msgstr "ShiftAlt Jos" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:302 +msgid "Move viewport to beginning of file" +msgstr "Mută zona vizibilă la începutul documentului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:303 +msgid "ShiftAltHome" +msgstr "ShiftAltHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:306 +msgid "Move viewport to end of file" +msgstr "Mută zona vizibilă la finalul fișierului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:307 +msgid "ShiftAltEnd" +msgstr "ShiftAltEnd" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:313 +msgid "Shortcut keys for searching" +msgstr "Taste pentru scurtături pentru căutare" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:322 +msgid "Find a string" +msgstr "Găsiți un șir" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:323 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:326 +msgid "Find the next instance of the string" +msgstr "Găsiți următoarea apariție a șirului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:327 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:330 +msgid "Find the previous instance of the string" +msgstr "Găsiți apariția anterioară a șirului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:331 +msgid "CtrlShiftG" +msgstr "CtrlShiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:334 +msgid "Search and Replace" +msgstr "Căutați și înloocuiți" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:335 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:338 +msgid "Clear highlight" +msgstr "Stergeți evidențierea" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:339 +msgid "CtrlShift K" +msgstr "CtrlShift K" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:346 +msgid "Shortcut keys for tools" +msgstr "Taste pentru scurtățuri pentru unelte" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:355 +msgid "Check spelling" +msgstr "Verificați ortografia" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:356 +msgid "ShiftF7" +msgstr "ShiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:359 +msgid "Remove trailing spaces (with plugin)" +msgstr "Eliminați spațiile rămase în urmă (cu plugin)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:360 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:363 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Rulați \"make\" în directorul curent (cu plugin)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:364 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:367 +msgid "Directory listing (with plugin)" +msgstr "Listare director (cu plugin)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:368 +msgid "CtrlShift D" +msgstr "CtrlShift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:375 +msgid "Shortcut keys for user help" +msgstr "Taste pentru scurtățuri pentru ajutorul folositorului" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:384 +msgid "Open the gedit user guide" +msgstr "Deschideți manualul de folositor gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:385 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Verificarea fișierelor de greșeli ortografice." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Corectați-vă ortografic documentul dumneavoastră" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Activarea verificării ortografice" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Funcționalitatea de verificare orografică este oferită ca un modul în " +"gedit care poate fi activată dacă este nevoie. Pentru a activa " +"modulul:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Selectați Verificare ortografică pentru a " +"activa modulul." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "" +"Pentru a verifica cuvinte ortografiate greșit în documentul dumneavoastră:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Selectați Unelte Verifică ortografia." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Pentru ca gedit să evidențieze automat cuvintele ortografiate " +"greșit în timp ce tastați, selectați UnelteEvidențiază cuvintele ortografiate greșit." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Utilizarea verificării ortografice" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Puteți alege substituirea cuvintelor ortografiate greșit din dialogul " +"Verifică ortografia. Cuvântul ortografiat greșit verificat de verificatorul " +"ortografic este afișat în stil aldin lângă Cuvânt ortografiat greșit:. Puteți alege dintre următoarele acțiuni de corectare:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Schimbă în: vă permite să introduceți un cuvânt " +"și să folosiți Verifică cuvântul pentru a " +"verifica validitatea ortografierii." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Sugestii: listează înlocuitoarele disponibile " +"pentru cuvânt." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignoră vă permite să omiteți verificarea " +"ortografică pentru o instanță a cuvântului curent." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignoră tot vă permite să omiteți verificarea " +"ortografică pentru toate instanțele cuvântului curent." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Schimbă înlocuiește cuvântul ortografiat greșit " +"sau nerecuonscut cu un înlocuitor din lista cu Sugestii:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Schimbă toate înlocuiește toate " +"cuvintele ortografiate greșit sau nerecunoscute cu înlocuitorul ales din " +"lista cu Sugestii:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Adaugă cuvânt vă permite să adăugați cuvântul " +"curent în Dicționarul utilizatorului gedit. Adăugând " +"cuvinte personalizate în Dicționarul utilizatorului va permite ca " +"gedit să recunoască cuvintele în documente și de asemenea nu le " +"va evidenția ca greșite." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Definirea limbii de utilizat pentru verificarea ortografică" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Implicit, gedit va utiliza limba curentă pentru a verifica " +"ortografic. Dacă trebuie să folosiți altă limbă, selectați UnelteStabilește limba…, apoi alegeți limba pe care doriți să o utilizați." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Dicționare" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit utilizează Enchant, un mic utilitar de sistem, pentru verificare " +"ortografică. Enchant poate utiliza mai multe dicționare diferite pentru a " +"verifica ortografia. Două asemenea dicționare sunt Hunspell și " +"Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Dacă limba pe care doriți să o utilizați nu este disponibilă în gedit, utilizați administratorul de pachete pentru a instala dicționarul " +"dorit." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Evidențierea textului pentru lizibilitate mărită." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Porniți sintaxa evidențierii" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Evidențierea sintaxei" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit oferă evidențiere sintaxă pentru o gamă largă de limbaje de " +"marcare, programare și științifice. Dacă gedit recunoaște sintaxa " +"folosită când deschideți un fișier, acesta va evidenția automat textul." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Dacă sintaxa sau limba dumneavoastră nu este evidențiată la pornire, puteți " +"selecta sintaxa sau limbajul corespunzător apăsând pe Vizualizare Modul de evidențiere, și apoi selectând sintaxa dorită. Alternativ, puteți selecta " +"numele sintaxei dintr-o listă în partea de jos a ferestrei gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Gruparea taburilor similare împreună." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Organizarea fișierelor în taburi grupate" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Dacă lucrați cu taburi multiple în gedit le puteți grupa, făcând " +"mai ușor organizarea fișierelor deschise. Adăugând un nou grup de taburi a " +"diviza fereastra gedit în două panouri, va deschide un nou " +"„Documen neintitulat” în panoul cel nou și îl va face activ. Puteți deschide " +"fișiere în acel grup de taburi și să mutați taburi dintr-un grup în altul." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Deschiderea unui grup de taburi în fereastra gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Pentru a deschide un tab puteți:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Navig la DocumenteGrup de taburi nou " +"din meniul principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Utiliza scurtătura CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Această acțiune va diviza fereastra gedit în două panouri, și " +"panoul cu noul grup de taburi va fi plasat la dreapta taburilor active. " +"Puteți muta mânerul la stânga sau la dreapta desemnând mai mult sau mai " +"puțin spațiu pentru fereastra gedit în funcție de nevoile " +"dumneavoastră." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Puteți deschide atât de multe grupuri de taburi în fereastra gedit cât vă permite ecranul, dar va trebui să mutați mânerul pentru a le " +"vedea corect." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Pentru a închide panoul ce conține grupul de taburi închideți toate taburile " +"care sunt deschise în el." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Mutarea între grupuri de taburi" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Pentru a muta înainte (la următorul) grup de taburi:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Navigați la DocumenteUrmătorul grup de taburi din meniul principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Utilizați scurtătura ShiftCtrlAltPage down." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Pentru a muta înapoi (la precedentul) grup de taburi:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"Navigați la DocumentePrecedentul grup de taburi din meniul principal." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Utilizați scurtătura ShiftCtrlAltPage up." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Mutarea unui tab în alt grup de taburi" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Dacă doriți să mutați un tab dintr-un grup de taburi în altul:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Apăsați și țineți mausul pe tab." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Trageți tabu spre alt panou cu grup de taburi." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Plasați-l lângă alte taburi din grupul de taburi." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Eliberați butonul mausului." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Consultați tabelul scurtături de " +"tastatură pentru taburi pentru a face administrarea grupurilor de " +"taburi mai ușoară." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Schimbați poziția unui tab în fereastra gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Mutați și rearanjați tab-uri" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Filele din gedit pot fi mutate, ceea ce face mai ușor să lucrați " +"cu fișierele. Filele poate se pot rearanja în aceeași fereastră, mutate în " +"afara gedit (creând o nouă fereastră gedit), și mutate " +"de la o fereastră la alta." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Schimbați ordinea tab-urilor în fereastra gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Pentru a shimba ordinea tab-urilor într-o fereastră:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Mutați tabul la poziția dorită printre alte taburi." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Tab-ul va fi plasat în cea mai apropiată poziție față de cea în care lăsați " +"tab-ul, imediat lângă celelate tab-uri deschise." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Mutați un tab, creați o fereastră nouă gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Pentru a creea o nouă fereastră dintr-un tab existent:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Trageți și plasați tabul în afara ferestrei gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Pentru a muta tabul într-o nouă fereastră când gedit este " +"maximizat, trageți tabul pe bara de sus din partea superioară a ecranului." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Mutați un tab către o altă fereastră gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Dacă doriți să mutați un tab dintr-o fereastră în alta:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Trageți tabul în fereastra nouă." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Plasați-l lângă alte taburi în noua fereastră." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Este posibil ca să vi se pară mai ușor să mutați un tab dintr-o fereastră în " +"alta trăgând tabul către colțul Activități din GNOME Shell. Aceasta va dezvălui toate ferestrele gedit deschise. Apoi " +"puteți elibera tabul pe fereastra gedit dorită." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Consultați tabelul scurtățuri de " +"tastatură pentru taburi pentru a ușura administrarea taburilor." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Creeați sau închideți taburi în fereastra gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Adăugați și eliminați tab-uri" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Lucrul cu filele din gedit vă permite să țineți un ochi pe mai " +"multe fișiere într-o singură fereastră. Fila care este mai mare decât " +"celelalte indică fișierul care este deschis. Filele de mici indică alte " +"fișiere care sunt disponibile pentru a lucra." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Adăugați tab-uri" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Pentru a adăuga un tab nou, creați un fișier nou cu Ctrl " +"T. Tabul va fi adăugat în partea dreaptă a celorlalte " +"taburi." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Eliminați tab-uri" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Pentru a elimina un tab, apăsați pe × din partea " +"dreaptă a tabului. Pentru a elimina toate taburile deschise, apăsați " +"Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Anulați o schimbare recentă a uneia din fișierele dumneav." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Anulați o acțiune recentă" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Dacă faceți o greșeală în timp ce utilizați gedit, o puteți anula " +"apăsând CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Nu veți putea anula o schimbare după ce ați închis un fișier gedit." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Editorul de text gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Editorul de text gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Pagina principală a ghidului gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Editorul de text gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Bine ati venit la ghidul de ajutor gedit. Pentru o scurtă " +"introducere în cele mai de bază două caracteristici ale lui gedit, precum și unele comenzi rapide de la tastatură avansate, vizitați " +"paginile Începeți cu gedit și Comenzi rapide." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Alte topicuri de ajutor sunt grupate împreună in secțiunile de mai jos. " +"Bucurați-vă de folosirea gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Lucrul cu fișiere" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Configurați gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "Module gedit" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Printați cu gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Licența neportată Creative Commons Atribuire în condiții identice 3.0" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Această lucrare este licențiată sub <_:link-1/>." + +#~ msgid "Click the Open button." +#~ msgstr "Apăsați pe butonul Deschide." + +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "Pentru a ajusta numărul fișierelor folosite recent pe care gedit le " +#~ "afișează, va trebui să folosiți aplicația dconf-editor." + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "Lansați dconf-editor și selectați org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "" +#~ "Apăsați dublu clic pe numărul de lângă max-recents și " +#~ "modificați numărul la valoarea dorită." + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "După cum sugerează numele acestui modul, modulul Inserare dată și " +#~ "oră vă permite să inserați data sau ora la poziția curentă a " +#~ "cursorului. Pentru a activa acest modul, selectați gedit PreferințeModule Inserare dată și oră. Pentru a folosi modulul, " +#~ "apăsați EditareInserează data și ora." + +#~ msgid "Open the Quick Open window" +#~ msgstr "Deschide fereastra Deschidere rapidă" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Print preview" +#~ msgstr "Previzualizare printare" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlShift P" + +#~ msgid "" +#~ "This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +#~ "locate and open your desired files." +#~ msgstr "" +#~ "Acest lucru va activa modul navigator fișiere al panoului " +#~ "lateral. Puteți apoi folosi butoanele de navigare din partea " +#~ "superioară a panoului pentru a localiza și deschide fișierele dorite." + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "Alegeți FișierDeschide pentru a " +#~ "afișa caseta de dialog Deschide fișiere." + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "" +#~ "Alegeți iconița creion de lângă partea de sus a dialogului " +#~ "Deschide fișiere." + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "Pentru a activa și a folosi panoul lateral, alegeți " +#~ "VizualizarePanou lateral (sau doar " +#~ "apăsați F9), și apoi apăsați pe iconița navigator " +#~ "fișiere din partea de jos a panoului." + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "Nu se poate folosi caracteristica de anulare pentru a corecta " +#~ "o operațiune de sortare, așa că vă recomandăm să salvați " +#~ "fișierul imediat înainte de a efectua sortarea. Dacă ați făcut o greșeală " +#~ "cu sortarea, vă puteți reveni la versiunea salvată anterior a fișierului " +#~ "selectând FișierRestituie." + +#, fuzzy +#~| msgid "Select EditChange Case" +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "Alegeți EditareModificare mărime." + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "Apăsați Ctrl și folosiți caracteristica de derulare " +#~ "a mouseului sau touchpad-ului pentru a vă deplasa în sus sau în jos prin " +#~ "text." + +#~ msgid "To Do This" +#~ msgstr "Pentru a face aceasta" + +#~ msgid "Press This" +#~ msgstr "Apăsați aceasta" + +#~ msgid "Show / hide the bottom pane." +#~ msgstr "Arată / ascunde panoul de jos." + +#, fuzzy +#~| msgid "Press CtrlE." +#~ msgid "CtrlF9" +#~ msgstr "Apăsați CtrlE." + +#~ msgid "View a list of files in the side pane" +#~ msgstr "Vizualizați o listă de fișiere din panoul lateral" + +#~ msgid "" +#~ "Keeping track of a large number of files using tabs can be difficult. One " +#~ "way of managing large numbers of files is viewing them in a side pane. " +#~ "Side panes allow you to view more files at a time than is possible using " +#~ "tabs alone." +#~ msgstr "" +#~ "Urmărirea unui număr mare de fișiere utilizând file poate fi dificil. O " +#~ "modalitate de gestionare a unui număr mare de fișiere este vizualizarea " +#~ "într-un panou lateral. Panourile laterale vă permit să vizualizați mai " +#~ "multe fișiere la un moment dat decât folosind doar file." + +#, fuzzy +#~| msgid "" +#~| "To view a list of open files in a side pane, click ViewSide Pane. A pane will appear to the left of the " +#~| "workspace with a listing of all currently open files. Clicking a file in " +#~| "the side pane will display that file in the workspace." +#~ msgid "" +#~ "To view a list of open files in a side pane, click View Side Pane. A " +#~ "pane will appear to the left of the workspace with a listing of all " +#~ "currently open files. Clicking a file in the side pane will display that " +#~ "file in the workspace." +#~ msgstr "" +#~ "Pentru a vizualiza o listă a fișierelor deschise într-un panou lateral, " +#~ "apăsați pe VizualizarePanou lateral. Un panou va apărea în partea stângă a spațiului de lucru cu o " +#~ "listă a tuturor fișierelor deschise momentan. Apăsând pe un fișier în " +#~ "panoul lateral va afișa fișierul respectiv în spațiul de lucru." + +#, fuzzy +#~| msgid "Document statistics" +#~ msgid "documents icon" +#~ msgstr "Statistici document" + +#, fuzzy +#~| msgid "" +#~| "The side pane also contains a File Browser view. If the pane " +#~| "displays a file directory instead of currently open files, click documents icon at the bottom of the pane to switch to the " +#~| "Documents view." +#~ msgid "" +#~ "The side pane also contains a File Browser view. If the pane " +#~ "displays a file directory instead of currently open files, click <_:" +#~ "media-1/> at the bottom of the pane to switch to the Documents " +#~ "view." +#~ msgstr "" +#~ "Panoul lateral de asemenea conține o vizualizare Navigator de " +#~ "fișiere. Dacă panoul afișează un director de fișiere în loc de " +#~ "fișiere curent deschise, apăsați pe pictograma de documente " +#~ "din partea inferioară a panoului pentru a comuta la vizualizarea de " +#~ "Documente." + +#~ msgid "" +#~ "The side pane only displays files that are open in the current window. " +#~ "When multiple windows are open, only the files in the current window will " +#~ "be displayed in the side pane." +#~ msgstr "" +#~ "Panoul lateral afișează numai fișierele care sunt deschise în fereastra " +#~ "curentă. Când sunt deschise mai multe ferestre, numai fișierele din " +#~ "fereastra curentă se vor afișa în panoul lateral." + +#~ msgid "" +#~ "@@image: 'figures/gedit-icon.png'; md5=a7174de2671462e1ac4f80a82ad09184" +#~ msgstr "" +#~ "@@image: 'figures/gedit-icon.png'; md5=a7174de2671462e1ac4f80a82ad09184" + +#~ msgid "jwcampbell@gmail.com" +#~ msgstr "jwcampbell@gmail.com" + +#~ msgid "" +#~ " gedit Text Editor" +#~ msgstr "" +#~ " Editorul de texte gedit" + +#~ msgid "" +#~ "@@image: 'figures/gedit-side-pane2.png'; " +#~ "md5=e7a12a43adc9c9cb8c992ad22a815a57" +#~ msgstr "" +#~ "@@image: 'figures/gedit-side-pane2.png'; " +#~ "md5=e7a12a43adc9c9cb8c992ad22a815a57" + +#~ msgid "dneelyep@gmail.com" +#~ msgstr "dneelyep@gmail.com" + +#~ msgid "" +#~ "We all make mistakes. Even gedit users make mistakes. " +#~ "Fortunately, gedit can help you recover from mistakes. To undo " +#~ "an action in gedit, press CtrlZ, or click EditUndo." +#~ msgstr "" +#~ "Toți facem greșeli. Chiar și folositorii gedit fac greșeli. " +#~ "Din fericire, gedit vă poate ajuta să vă recuperați din " +#~ "greșeli. Pentru a anula o acțiune în gedit, apăsați tasta " +#~ "CtrlZ, sau apăsați pe " +#~ "EditareAnulare." + +#~ msgid "" +#~ "gedit will undo one action every time you press " +#~ "CtrlZ or select EditUndo." +#~ msgstr "" +#~ "gedit va anula o acțiune de fiecare dată când apăsați " +#~ "CtrlZ sau alegeți " +#~ "EditareAnulare." + +#~ msgid "To drag a tab into a new window:" +#~ msgstr "Pentru a trage un tab într-o fereastră nouă:" + +#~ msgid "" +#~ "or, while the tab to be moved is open, choose DocumentsMove to New Window" +#~ msgstr "" +#~ "sau, în timp ce fila de mutat este deschisă, alegeți " +#~ "DocumenteMută în fereastră nouă" + +#~ msgid "" +#~ "It's difficult to drag a tab into a new window when either the old or new " +#~ "window is maximized. For best results, un-maximize the windows before " +#~ "dragging the tab." +#~ msgstr "" +#~ "Este dificil să trageți o filă într-o fereastră nouă, atunci când vechea " +#~ "sau noua fereastră este maximizată. Pentru rezultate optime, de-" +#~ "maximizați ferestrele înainte de tragerea filei." + +#~ msgid "" +#~ "Using the spell-check feature in gedit requires that you first " +#~ "enable the spell-check plugin. To enable the plugin, select " +#~ "EditPreferencesPluginsSpell " +#~ "Checker." +#~ msgstr "" +#~ "Utilizând caracteristica verificare ortografică în gedit " +#~ "necesită ca mai întâi să activați plugin-ul verificare ortografică. " +#~ "Pentru a activa plugin-ul, alegeți EditarePreferințePlugin-uriVerificare " +#~ "ortografică." + +#~ msgid "" +#~ "Select ToolsAutocheck Spelling to " +#~ "make gedit highlight spelling errors while you type." +#~ msgstr "" +#~ "Alegeți UnelteAutoverificare ortografică pentru ca gedit să evidențieze erorile ortografice în " +#~ "timp ce tastați." + +#~ msgid "Ctrl + Alt + PageUp" +#~ msgstr "Ctrl + Alt + PageUp" + +#~ msgid "Ctrl + Alt + PageDown" +#~ msgstr "Ctrl + Alt + PageDown" + +#~ msgid "Ctrl + W" +#~ msgstr "Ctrl + W" + +#~ msgid "Ctrl + Shift + L" +#~ msgstr "Ctrl + Shift + L" + +#~ msgid "Ctrl + Shift + W" +#~ msgstr "Ctrl + Shift + W" + +#~ msgid "Alt + n" +#~ msgstr "Alt + n" + +#~ msgid "Ctrl + N" +#~ msgstr "Ctrl + N" + +#~ msgid "Ctrl + O" +#~ msgstr "Ctrl + O" + +#~ msgid "Ctrl + S" +#~ msgstr "Ctrl + S" + +#~ msgid "Ctrl + Shift + S" +#~ msgstr "Ctrl + Shift + S" + +#~ msgid "Ctrl + P" +#~ msgstr "Ctrl + P" + +#~ msgid "Ctrl + Shift + P" +#~ msgstr "Ctrl + Shift + P" + +#~ msgid "Ctrl + Q" +#~ msgstr "Ctrl + Q" + +#~ msgid "Ctrl + Z" +#~ msgstr "Ctrl + Z" + +#~ msgid "Ctrl + Shift + Z" +#~ msgstr "Ctrl + Shift + Z" + +#~ msgid "Ctrl + X" +#~ msgstr "Ctrl + X" + +#~ msgid "Ctrl + C" +#~ msgstr "Ctrl + C" + +#~ msgid "Ctrl + V" +#~ msgstr "Ctrl + V" + +#~ msgid "Ctrl + A" +#~ msgstr "Ctrl + A" + +#~ msgid "Ctrl + D" +#~ msgstr "Ctrl + D" + +#~ msgid "Alt + Up Arrow" +#~ msgstr "Alt + Săgeată Sus" + +#~ msgid "Alt + Down Arrow" +#~ msgstr "Alt + Săgeată Jos" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Ctrl + F9" +#~ msgstr "Ctrl + F9" + +#~ msgid "Ctrl + F" +#~ msgstr "Ctrl + F" + +#~ msgid "Ctrl + G" +#~ msgstr "Ctrl + G" + +#~ msgid "Ctrl + Shift + G" +#~ msgstr "Ctrl + Shift + G" + +#~ msgid "Ctrl + H" +#~ msgstr "Ctrl + H" + +#~ msgid "Ctrl + Shift + K" +#~ msgstr "Ctrl + Shift + K" + +#~ msgid "Ctrl + I" +#~ msgstr "Ctrl + I" + +#~ msgid "Shift + F7" +#~ msgstr "Shift + F7" + +#~ msgid "Alt + F12" +#~ msgstr "Alt + F12" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Ctrl + Shift + D" +#~ msgstr "Ctrl + Shift + D" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "To save a file in gedit, click on the disk-drive icon with the " +#~ "word Save next to it. You may also select FileSave, or just press CtrlS." +#~ msgstr "" +#~ "Pentru a salva un fișier în gedit, apăsați pe pictograma de " +#~ "unitate de disc cu cuvântul salvare lângă ea. Puteți, de " +#~ "asemenea, să alegeți FișierSalvare, sau doar să apăsați CtrlS." + +#~ msgid "Printing output to a file" +#~ msgstr "Printare într-un fișier" + +#~ msgid "" +#~ "You can also use gedit to print to a file. To do so, select " +#~ "FilePrintPrint to File." +#~ msgstr "" +#~ "Puteți de asemenea să folosiți gedit pentru a scrie într-un " +#~ "fișier. Pentru a face acest lucru, alegeți FișierImprimareImprimare în fișier." + +#~ msgid "Paul Weaver" +#~ msgstr "Paul Weaver" + +#~ msgid "ch3pjw@bath.ac.uk" +#~ msgstr "ch3pjw@bath.ac.uk" + +#~ msgid "Autocomplete words or portions of code as you type" +#~ msgstr "Completare automată cuvinte sau porțiuni de cod în timpul tastării" + +#~ msgid "Word completion" +#~ msgstr "Completarea cuvântului" + +#~ msgid "" +#~ "The Word Completion plugin can speed up your editing by " +#~ "suggesting completions of words as you type. To enable the plugin, select " +#~ "EditPreferencesPluginsWord " +#~ "Completion." +#~ msgstr "" +#~ "Plugin-ul Completare cuvinte poate accelera editarea " +#~ "dumneavoastră prin sugerarea de completări de cuvinte în timpul tastării. " +#~ "Pentru a activa plugin-ul, alegeți EditarePreferințePlugin-uriCompletare cuvinte." + +#~ msgid "" +#~ "While editing, the Word Completion plugin will automatically " +#~ "display a pop-up list of words that begin with the letters you have " +#~ "already typed. Word suggestions are based upon words that appear " +#~ "elsewhere in your document and upon pre-defined keywords if your document " +#~ "is of a recognised format." +#~ msgstr "" +#~ "În timpul editării, plugin-ul Completare cuvinte va afișa " +#~ "automat o listă pop-up cu cuvinte care încep cu literele pe care le-ați " +#~ "tastat deja. Sugestiile de cuvinte se bazează pe cuvinte care apar în " +#~ "altă parte în document și de cuvinte cheie predefinite dacă documentul " +#~ "este un format recunoscut." + +#~ msgid "" +#~ "To insert a suggested word, double-click on it in the pop-up list or " +#~ "press AltNum, where Num " +#~ "is the number displayed next to your desired word." +#~ msgstr "" +#~ "Pentru a insera un cuvânt sugerat, dați dublu clic pe aceasta în lista " +#~ "pop-up sau apăsați AltNum, unde " +#~ "Num este numărul afișat lângă cuvântul dorit." + +#~ msgid "Add a terminal console to the bottom pane" +#~ msgstr "Adăugați o consolă terminat în panoul de jos" + +#~ msgid "Embedded terminal" +#~ msgstr "Terminal încorporat" + +#~ msgid "" +#~ "gedit makes it possible to include an embedded version of " +#~ "Gnome Terminal, the GNOME command-line application, in the " +#~ "bottom pane of the gedit window. This will let you run " +#~ "scripts, install needed software, or test your program without leaving " +#~ "gedit." +#~ msgstr "" +#~ "gedit face posibilă includerea unei versiuni a Gnome " +#~ "Terminal, aplicația de linie de comandă GNOME, în panoul din partea " +#~ "de jos a ferestrei gedit. Acest lucru vă va permite să " +#~ "executați script-uri, instalați software necesar, sau să testați " +#~ "programul fără a părăsi gedit." + +#~ msgid "" +#~ "To enable this plugin, select EditPreferencesPluginsEmbedded Terminal." +#~ msgstr "" +#~ "Pentru a activa acest plugin, alegeți EditarePreferințePlugin-uriTerminal încorporat." + +#~ msgid "" +#~ "Once you have enabled the plugin, add the terminal to the bottom pane by " +#~ "selecting ViewBottom Pane, or just " +#~ "press CtrlF9." +#~ msgstr "" +#~ "O dată ce ați activat plugin-ul, adăugați terminalul la panoul de jos " +#~ "selectând VizualizarePanou de jos, " +#~ "sau doar apăsați CtrlF9." + +#~ msgid "" +#~ "@@image: 'figures/gedit-side-pane3.png'; " +#~ "md5=4b800d370193ac0ed8db9eb33b86e11c" +#~ msgstr "" +#~ "@@image: 'figures/gedit-side-pane3.png'; " +#~ "md5=4b800d370193ac0ed8db9eb33b86e11c" + +#~ msgid "" +#~ "Automatically insert tags, strings and special characters into a document" +#~ msgstr "Inserați automat etichete, șiruri și caractere speciale în document" + +#~ msgid "Tag list" +#~ msgstr "Lista de etichete" + +#~ msgid "" +#~ "The Tag List plugin allows you to insert common tags and " +#~ "special characters from a list in the side pane. By default, the plugin " +#~ "can insert tags and special characters for HTML, XHTML, XSLT, XUL and " +#~ "LaTeX." +#~ msgstr "" +#~ "Plugin-ul Listă de etichete vă permite să inserați etichete " +#~ "comune și caractere speciale dintr-o listă în panoul lateral. În mod " +#~ "implicit, plugin-ul poate insera etichete și caractere speciale pentru " +#~ "HTML, XHTML, XSLT, XUL și LaTeX." + +#~ msgid "Using the Tag List plugin" +#~ msgstr "Folosirea plugin-ului listă de etichete" + +#~ msgid "" +#~ "To use the Tag List plugin, you will need to enable the " +#~ "plugin, and then activate the tag-list portion of the side pane." +#~ msgstr "" +#~ "Pentru a folosi plugin-ul Listă de etichete, va trebui să " +#~ "activați plugin-ul, și apoi să activați porțiunea listă etichete din " +#~ "panoul lateral." + +#~ msgid "" +#~ "You can activate the plugin by selecting EditPreferencesPluginsTag List. " +#~ "Once you have activated the plugin, access it by selecting " +#~ "ViewSide Pane, or by pressing " +#~ "F9." +#~ msgstr "" +#~ "Puteți să activați plugin-ul selectând EditarePreferințePlugin-uriListă de etichete. O dată ce ați activat plugin-ul, accesați-l selectând " +#~ "VizualizarePanou lateral, sau prin " +#~ "apăsarea tastei F9." + +#~ msgid "" +#~ "The side pane initially shows a list of open documents, so to view and " +#~ "use the tag list, you will need to click on the tab showing " +#~ "the \"plus\" icon at the bottom of the side pane. The icon will look " +#~ "similar to this:" +#~ msgstr "" +#~ "Panoul lateral afișează inițial o listă de documente deschise, atât " +#~ "pentru a vizualiza și folosi listă etichete, va trebui să " +#~ "apăsați pe fila ce afișează pictograma \"plus\" în partea de jos a " +#~ "panoului lateral. Pictograma va arăta similar cu aceasta:" + +#~ msgid "Inserting Tags and Special Characters" +#~ msgstr "Inserați etichete și caractere speciale" + +#~ msgid "" +#~ "The tag list uses a drop-down menu to let you choose from the " +#~ "different types of tags. For example, one tag option is HTML - Tags." +#~ msgstr "" +#~ "Lista de etichete utilizează un meniu de selecție pentru a vă " +#~ "permite să alegeți din diferite tipuri de etichete. De exemplu, o opțiune " +#~ "de etichete este etichete HTML." + +#~ msgid "To start inserting tags, complete the following:" +#~ msgstr "Pentru a începe să inserați etichete, competați următoarele:" + +#~ msgid "" +#~ "Move the cursor to where you will want to insert the tag or special " +#~ "character." +#~ msgstr "" +#~ "Mutați cursorul în locul în care veți dori să inserați eticheta sau un " +#~ "caracter special." + +#~ msgid "Scroll through the list to find the desired tag or character." +#~ msgstr "Parcurgeți lista pentru a găsi eticheta sau caracterul dorit." + +#~ msgid "Double-click on the tag in the tag list." +#~ msgstr "Dublu clic pe tag în lista de etichete." + +#~ msgid "" +#~ "The tag or special character you've chosen will then be displayed in your " +#~ "document." +#~ msgstr "Eticheta sau caracterul special ales apoi va fi afișat în document." + +#~ msgid "Tag List Tips" +#~ msgstr "Sfaturi pentru lista de etichete" + +#~ msgid "" +#~ "You can also insert a tag by pressing Return or " +#~ "ShiftReturn." +#~ msgstr "" +#~ "De asemenea, puteți insera o etichetă apăsând tasta Return sau " +#~ "ShiftReturn." + +#~ msgid "" +#~ "Pressing the Return key will insert the tag at the cursor " +#~ "position, and then return focus to the document. Pressing " +#~ "ShiftReturn will insert the tag at " +#~ "the cursor position, but will keep the focus on the tag-list." +#~ msgstr "" +#~ "Apăsând tasta Return va insera tag-ul la poziția cursorului, " +#~ "și apoi va întoarce focalizarea pe document. Apăsând ShiftReturn va insera tag-ul la poziția cursorului, " +#~ "dar va păstra focalizarea pe lista de etichete." + +#~ msgid "" +#~ "You can see a preview of what text will be inserted for each tag and " +#~ "special character by clicking on the word the Preview at the " +#~ "bottom of the side pane." +#~ msgstr "" +#~ "Puteți vedea o previzualizare a textului ce va fi inserat pentru fiecare " +#~ "etichetă și caracter special, apăsând pe cuvântul Previzualizare din partea inferioară a panoului lateral." + +#~ msgid "" +#~ "To enable the Sort plugin, select EditPreferencesPluginsSort." +#~ msgstr "" +#~ "Pentru a activa plugin-ul de sortare, alegeți " +#~ "EditarePreferințePlugin-uriSortare." + +#~ msgid "" +#~ "After you have enabled the Sort plugin, use it by selecting " +#~ "the lines of text you want to sort, and then clicking EditSort." +#~ msgstr "" +#~ "După ce ați activat plugin-ul sortare, folosiți-l selectând " +#~ "liniile de text pe care doriți să le sortați, și apoi apăsând pe " +#~ "EditareSortare." + +#~ msgid "Inserting snippets of text into your files" +#~ msgstr "Inserați fragmente de text în fișierele dumneavoastră" + +#~ msgid "The following points will help you get started with using snippets:" +#~ msgstr "" +#~ "Următoarele puncte vă vor ajuta să începeți cu folosirea fragmentelor:" + +#~ msgid "Make sure the syntax is set appropriately." +#~ msgstr "Asigurați-vă că sintaxa este setată corespunzător." + +#~ msgid "" +#~ "Select ToolsManage Snippets. " +#~ "Review the snippets that are available for your language or syntax. Find " +#~ "some basic snippets that you think might be useful for you." +#~ msgstr "" +#~ "Alegeți InstrumenteGestionare fragmente. Examinați fragmentele care sunt disponibile pentru limba sau " +#~ "sintaxa dumneavoastră. Găsiți câteva fragmente de bază care credeți că ar " +#~ "putea fi utile." + +#~ msgid "Try using some of the snippets." +#~ msgstr "Încercați să folosiți câteva fragmente." + +#~ msgid "Save and restore your working sessions" +#~ msgstr "Salvați și restabiliți sesiune în lucru" + +#~ msgid "Session Saver" +#~ msgstr "Salvați sesiunea" + +#~ msgid "" +#~ "The Session Saver plugin saves groups of files together so " +#~ "that you can open them together at a later time. To enable the plugin, " +#~ "select EditPreferencesPluginsSession Saver." +#~ msgstr "" +#~ "Plugin-ul Salvare sesiune salvează împreună grupuri de fișiere " +#~ "astfel încât să le puteți deschide împreună într-un moment mai târziu. " +#~ "Pentru a activa plugin-ul, alegeți EditarePreferințePlugin-uriSalvare sesiune." + +#~ msgid "To save a new session:" +#~ msgstr "Pentru a salva o sesiune nouă:" + +#~ msgid "Type a session name in the Save session dialog box." +#~ msgstr "" +#~ "Tastați un nume de sesiune în caseta de dialog Salvare sesiune." + +#~ msgid "Click Save." +#~ msgstr "apăsați pe Salvare." + +#~ msgid "To open an existing session:" +#~ msgstr "Pentru a deschide o sesiune existentă:" + +#~ msgid "Click the name of your desired session." +#~ msgstr "apăsați pe numele sesiunii dorite." + +#~ msgid "To delete an existing session:" +#~ msgstr "Pentru a șterge o sesiune existentă:" + +#~ msgid "" +#~ "Select FileSaved Sessions Manage saved " +#~ "sessions." +#~ msgstr "" +#~ "Alegeți FișierSesiuni salvateAdministrează sesiunile salvate." + +#~ msgid "Click Delete." +#~ msgstr "apăsați pe ștergere." + +#~ msgid "" +#~ "The session name will still be listed in your list of sessions until you " +#~ "close gedit." +#~ msgstr "" +#~ "Numele sesiunii va fi în continuare afișată în lista de sesiuni până când " +#~ "închideți gedit." + +#~ msgid "Once you've enabled it, here is how to use the plugin:" +#~ msgstr "O dată ce l-ați activat, aici este cum să folosiți plugin-ul:" + +#~ msgid "" +#~ "The Quick Open plugin will only display files that you have " +#~ "previously opened." +#~ msgstr "" +#~ "Plugin-ul Deschidere rapidă va afișa numai fișierele pe care " +#~ "le-ați deschis anterior." + +#~ msgid "2011" +#~ msgstr "2011" + +#~ msgid "Edit a document in multiple places at once" +#~ msgstr "Editați un document în mai multe locuri simultan" + +#~ msgid "Multi edit" +#~ msgstr "Editare multiplă" + +#~ msgid "" +#~ "The Multi Edit plugin allows you to edit a document in " +#~ "multiple places at once. This can be helpful when performing tedious " +#~ "editing tasks. To enable the Multi Edit plugin, select Edit PreferencesPluginsMulti Edit." +#~ msgstr "" +#~ "Plugin-ul Editare multiplă vă permite să editați un document " +#~ "în mai multe locuri odată. Acest lucru poate fi util atunci când " +#~ "efectuați sarcini complicate de editare. Pentru a activa plugin-ul " +#~ "editare multiplă, alegeți EditarePreferințePlugin-uriEditare multiplă." + +#~ msgid "" +#~ "After you have enabled the plugin, turn-on Multi Edit mode by pressing " +#~ "CtrlShiftC, or clicking " +#~ "EditMulti Edit Mode. You can then " +#~ "select the points in your file that you would like start editing." +#~ msgstr "" +#~ "După ce ați activat plugin-ul, porniți modul de editare multiplă prin " +#~ "apăsarea CtrlShiftC, " +#~ "sau apăsând pe EditareMod de editare multiplă. Apoi puteți să alegeți punctele din fișier care ați dori " +#~ "să începeți să le editați." + +#~ msgid "To insert editing points in your file:" +#~ msgstr "Pentru a insera puncte de editare în fișierul dumneavoastră:" + +#~ msgid "Place your cursor at your first desired editing point." +#~ msgstr "Plasați cursorul la primul punct de editare dorit." + +#~ msgid "" +#~ "Move to your next editing point, and press CtrlE again." +#~ msgstr "" +#~ "Deplasați-vă la punctul de editare următor, și apăsați CtrlE din nou." + +#~ msgid "Continue inserting editing points, adding as many as you need." +#~ msgstr "" +#~ "Continuați inserarea de puncte de editare, adăugând cât de multe aveți " +#~ "nevoie." + +#~ msgid "" +#~ "Once you have inserted all of your editing points, you can make your " +#~ "desired edits." +#~ msgstr "" +#~ "O dată ce ați inserat toate punctele de editare, puteți face editările " +#~ "dorite." + +#~ msgid "" +#~ "To remove editing points, press the Esc key. This will remove " +#~ "all of the editing points. Pressing the Esc key again will " +#~ "turn off Multi Edit mode, returning the editor back to its normal state." +#~ msgstr "" +#~ "Pentru a elimina puncte de editare, apăsați tasta Esc. Aceasta " +#~ "va elimina toate punctele editare. Apăsând tasta Esc din nou " +#~ "va dezactiva modul de editare multiplă, întorcând editorul înapoi în " +#~ "starea sa normală." + +#~ msgid "" +#~ "@@image: 'figures/gedit-side-pane1.png'; " +#~ "md5=ac9c80cb0552d63b593c71f23be69b53" +#~ msgstr "" +#~ "@@image: 'figures/gedit-side-pane1.png'; " +#~ "md5=ac9c80cb0552d63b593c71f23be69b53" + +#~ msgid "Show white space between words or portions of code" +#~ msgstr "Afișare spațiu alb între cuvinte sau porțiuni de cod" + +#~ msgid "Draw spaces" +#~ msgstr "Desenați spațiile" + +#~ msgid "" +#~ "The Draw Spaces plugin is a simple plugin that can mark " +#~ "spaces, tabs, and other types of whitespace with a small, visible marker. " +#~ "By making whitespace visible, you can more easily see how whitespace is " +#~ "used in a document, and can apply spacing strategies more consistently." +#~ msgstr "" +#~ "Plugin-ul Desenare spații este un plugin simplu care poate " +#~ "marca spații, tab-uri și alte tipuri de spațiu cu un mic marcator " +#~ "vizibil. Prin facerea spațiilor vizibile, puteți vedea mai ușor cât " +#~ "spațiu este folosit într-un document și puteți aplica strategii de " +#~ "spațiere într-un mod mai consistent." + +#~ msgid "" +#~ "To enable this plugin, select EditPreferencesPluginsDraw Spaces. After you have " +#~ "enabled the plugin, you can set its options by highlighting the plugin " +#~ "and selecting Preferences." +#~ msgstr "" +#~ "Pentru a activa acest plugin, alegeți EditarePreferințePlugin-uriDesenare spații. După ce ați activat plugin-ul, puteți seta opțiunile sale " +#~ "evidențiând plugin-ul și selectând Preferințe." + +#~ msgid "" +#~ "By default, the Draw Spaces plugin will mark the following " +#~ "types of whitespace in a file:" +#~ msgstr "" +#~ "În mod implicit, plugin-ul Desenare spații va marca " +#~ "următoarele tipuri de spațiu într-un fișier:" + +#~ msgid "Spaces" +#~ msgstr "Spații" + +#~ msgid "Leading spaces" +#~ msgstr "Spații de conducere" + +#~ msgid "Spaces in text" +#~ msgstr "Spații în text" + +#~ msgid "Trailing spaces" +#~ msgstr "Spații în coadă" + +#~ msgid "You can also set the plugin to mark:" +#~ msgstr "De asemenea, puteți seta plugin-ul de marcat:" + +#~ msgid "New Lines" +#~ msgstr "Linii noi" + +#~ msgid "Non-breaking spaces" +#~ msgstr "Spații inseparabile" + +#~ msgid "" +#~ "Though you will be able to see the dots when you work on a file, the dots " +#~ "will not be visible when you print a file to paper." +#~ msgstr "" +#~ "Deși veți fi capabil să vedeți punctele când lucrați pe un fișier, " +#~ "punctele nu vor fi vizibile atunci când imprimați un fișier pe hârtie." + +#~ msgid "Use a command-line interface for advanced editing" +#~ msgstr "Folosiți o interfață de linie de comandă pentru editare avansată" + +#~ msgid "Commander" +#~ msgstr "Comandant" + +#~ msgid "" +#~ "To enable the commander plugin, select Edit " +#~ "PreferencesPluginsCommander." +#~ msgstr "" +#~ "Pentru a activa plugin-ul Commander, alegeți EditarePreferințePlugin-uriCommander." + +#~ msgid "" +#~ "Once you have enabled the plugin, activate it by pressing " +#~ "Ctrl+.." +#~ msgstr "" +#~ "O dată ce ați activat plugin-ul, activați-l apăsând tasta " +#~ "Ctrl+.." + +#~ msgid "The last key in the above key combination is a period." +#~ msgstr "Ultima cheie în combinația de taste de mai sus este un punct." + +#~ msgid "First step..." +#~ msgstr "Primul pas..." + +#~ msgid "Second step..." +#~ msgstr "Al doilea pas..." + +#~ msgid "Third step..." +#~ msgstr "Al treilea pas..." + +#~ msgid "Pick a color from a dialog and insert its hexadecimal representation" +#~ msgstr "" +#~ "Alegeți o culoare dintr-o casetă de dialog și inserați reprezentarea sa " +#~ "hexazecimală" + +#~ msgid "Color picker" +#~ msgstr "Selector de culori" + +#~ msgid "" +#~ "The color picker plugin helps you to insert the character " +#~ "codes that represent a certain color. This can make it easier to choose " +#~ "and use the correct color in your programs." +#~ msgstr "" +#~ "Plugin-ul selector de culori vă ajută să introduceți coduri de " +#~ "caractere care reprezintă o anumită culoare. Acest lucru poate face mai " +#~ "ușor de a alege și folosi culoarea corectă în programe." + +#~ msgid "" +#~ "To enable the color picker plugin, select EditPreferencesPluginsColor Picker." +#~ msgstr "" +#~ "Pentru a activa plugin-ul selector de culori, alegeți " +#~ "EditarePreferințePlugin-uriSelector de culori." + +#~ msgid "To open and use the color picker:" +#~ msgstr "Pentru a deschide și folosi selectorul de culori:" + +#~ msgid "" +#~ "Place your cursor at the point in your document where you want to insert " +#~ "the color code." +#~ msgstr "" +#~ "Plasați cursorul la punctul din document unde doriți să inserați codul de " +#~ "culoare." + +#~ msgid "" +#~ "Select ToolsPick Color.... The " +#~ "color picker dialog will appear." +#~ msgstr "" +#~ "Alegeți InstrumenteAlege culoare.... Va apărea caseta de dialog pentru selectorul de culori." + +#~ msgid "" +#~ "If the color that you want to select is currently on your screen, click " +#~ "on the icon that looks like an eyedropper." +#~ msgstr "" +#~ "În cazul în care culoarea pe care doriți să o alegeți este în prezent pe " +#~ "ecran, apăsați pe pictograma care arata ca o pipetă." + +#~ msgid "" +#~ "Your mouse pointer will change appearance, and will look like an " +#~ "eyedropper." +#~ msgstr "" +#~ "Indicatorul mouseului își va schimba aspectul și va arata ca o pipetă." + +#~ msgid "" +#~ "Use the eyedropper and click on the portion of your screen that contains " +#~ "the color you want to use. The color code for that color will appear in " +#~ "the color picker window." +#~ msgstr "" +#~ "Folosiți pipeta și apăsați pe porțiunea de ecran care conține culoarea pe " +#~ "care doriți să o folosiți. Codul de culoare pentru culoarea respectivă va " +#~ "apărea în fereastra selectorului de culori." + +#~ msgid "" +#~ "To insert that color code into your document, click Insert. " +#~ "The code will be inserted where you had placed your cursor." +#~ msgstr "" +#~ "Pentru a insera acest cod de culoare în document, apăsați pe " +#~ "Inserare. Codul va fi inserat în cazul în care ați avut plasat " +#~ "cursorul." + +#~ msgid "To close the color picker, click Close." +#~ msgstr "" +#~ "Pentru a închide instrumentul selector de culori, apăsați pe " +#~ "Închidere." + +#~ msgid "" +#~ "You can make fine-grained adjustments to the color by adjusting the " +#~ "values for Hue, Saturation, Value, Red, Green, or Blue." +#~ msgstr "" +#~ "Puteți face ajustări fine la culoare ajustând valorile de nuanță, " +#~ "saturație, valoare, roșu, verde sau albastru." + +#~ msgid "" +#~ "Additionally, you can save colors by right-clicking on any of the colored " +#~ "boxes in the color picker, and selecting Save color here. This " +#~ "will make it easier to insert commonly-used colors later." +#~ msgstr "" +#~ "În plus, puteți să salvați culori prin clic dreapta pe oricare din " +#~ "casetele colorate din selectorul de culori, și selectând salvează " +#~ "culoarea aici. Acest lucru va face mai ușor să inserați culori " +#~ "frecvent folosite mai târziu." + +#~ msgid "Comment-out or uncomment a block of code" +#~ msgstr "De-comentați un bloc de cod" + +#~ msgid "Code comment" +#~ msgstr "Comentare cod" + +#~ msgid "" +#~ "Code comments are portions of text that make it easier for people to " +#~ "understand a program's code, but they don't affect how a program works. " +#~ "Comments are separated from other parts of a program by special " +#~ "characters." +#~ msgstr "" +#~ "Comentariile de cod sunt porțiunile de text care fac mai ușor pentru " +#~ "oameni să înțeleagă codul programului, dar acestea nu afectează modul în " +#~ "care un program funcționează. Comentariile sunt separate de celelalte " +#~ "părți ale unui program de caractere speciale." + +#~ msgid "" +#~ "The code comment plugin makes it easier to quickly create or " +#~ "remove code comments. To enable the code comment plugin, select " +#~ " Edit PreferencesPluginsCode comment." +#~ msgstr "" +#~ "Plugin-ul comentare cod face mai ușor crearea sau eliminarea " +#~ "rapidă de comentarii de cod. Pentru a activa plugin-ul comentare cod, " +#~ "alegeți EditarePreferințePlugin-uriComentare cod." + +#~ msgid "To create or remove a comment:" +#~ msgstr "Pentru a crea sau elimina un comentariu:" + +#~ msgid "" +#~ "Highlight the portion of text where you want to add or remove a comment." +#~ msgstr "" +#~ "Evidențiați porțiunea de text la care doriți să adăugați sau să eliminați " +#~ "un comentariu." + +#~ msgid "" +#~ "To add a comment, click EditComment Code, or press CtrlM." +#~ msgstr "" +#~ "Pentru a adăuga un comentariu, apăsați pe EditareComentare cod sau apăsați CtrlM." + +#~ msgid "" +#~ "Gedit will automatically use the correct style of comment " +#~ "based on the language or syntax of the file. If gedit doesn't " +#~ "identify your language or syntax, you can select it from the language " +#~ "list in the bottom Status bar." +#~ msgstr "" +#~ "Gedit va folosi automat stilul corect de comentariu pe baza " +#~ "limbajului sau sintaxei fișierului. Dacă gedit nu identifică " +#~ "limbajul sau sintaxa, îl puteți selecta din lista de limbaje din " +#~ "bara de stare de jos." + +#~ msgid "Insert special characters just by clicking on them" +#~ msgstr "Introduceți caractere speciale doar apăsând pe ele" + +#~ msgid "Character map" +#~ msgstr "Harta de caracter" + +#~ msgid "" +#~ "This assumes the reader knows how to use gedit in general. By the end of " +#~ "this page, the reader will be able to use the character map plugin to " +#~ "insert characters into their documents." +#~ msgstr "" +#~ "Aceasta presupune că cititorul știe cum să folosească gedit în general. " +#~ "La sfârșitul acestei pagini, cititorul va fi capabil să folosească plugin-" +#~ "ul hartă de caractere pentru a introduce caractere în documentele lui." + +#~ msgid "" +#~ "The Character Map plugin enables you to insert characters into " +#~ "your document that you may not be able to type easily using your " +#~ "keyboard. To enable this plugin, select EditPreferencesPluginsCharacter Map." +#~ msgstr "" +#~ "Plugin-ul hartă de caractere vă permite să inserați în " +#~ "documentul dumneavoastră caractere pe care nu ați reuși să le tastați cu " +#~ "ușurință utilizând tastatura. Pentru a activa acest plugin, alegeți " +#~ "EditarePreferințePlugin-uriHartă de caractere." + +#~ msgid "Using Character Map" +#~ msgstr "Folosirea hărții de caractere" + +#~ msgid "" +#~ "Once the plugin is enabled, you can add characters from the Character " +#~ "Map tab of the side panel (ViewSide Panel)." +#~ msgstr "" +#~ "O dată ce plugin-ul este activat, puteți adăuga caractere din fila " +#~ "Hartă de caractere din panoul lateral (VizualizarePanou lateral)." + +#~ msgid "" +#~ "Place the cursor at the point in your document at which you would like " +#~ "your special character." +#~ msgstr "" +#~ "Plasați cursorul la punctul din document la care doriți să fie caracterul " +#~ "special." + +#~ msgid "" +#~ "Open the side panel by selecting ViewSide Panel, or by pressing F9." +#~ msgstr "" +#~ "Deschideți panoul lateral selectând VizualizarePanou lateral, sau prin apăsarea tastei F9." + +#~ msgid "Select the Character Map tab in the side panel." +#~ msgstr "Alegeți fila Hartă de caractere din panoul lateral." + +#~ msgid "" +#~ "If neccessary, choose the character set to which your character belongs " +#~ "from the list at the top of the Character Map tab (e.g., Arabic)." +#~ msgstr "" +#~ "Dacă este necesar, alegeți setul de caractere din care caracterul face " +#~ "parte din lista din partea superioară a filei Hartă de caractere " +#~ "(de exemplu, arabic)." + +#~ msgid "Double click your desired character to insert it." +#~ msgstr "Dați dublu clic pe caracterul dorit pentru a-l insera." + +#~ msgid "Auto-complete closing brackets" +#~ msgstr "Auto-închidere completă paranteze" + +#~ msgid "Bracket completion" +#~ msgstr "Completare paranteze" + +#~ msgid "" +#~ "The Bracket Completion plugin will auto-complete closing " +#~ "brackets for curly braces, parentheses, and square brackets." +#~ msgstr "" +#~ "Plugin-ul Completare paranteze va completa automat parantezele " +#~ "închise pentru acolade, paranteze rotunde și paranteze pătrate." + +#~ msgid "" +#~ "To enable the plugin, select EditPreferencesPluginsBracket Completion." +#~ msgstr "" +#~ "Pentru a activa acest plugin, alegeți EditarePreferințePlugin-uriCompletare paranteze." + +#~ msgid "This plugin does not automatically insert closing HTML or XML tags." +#~ msgstr "" +#~ "Acest plugin nu inserează automat închiderea etichetelor HTML sau XML." + +#~ msgid "Record commonly-referenced locations with bookmarks" +#~ msgstr "Înregistrează locații referite frecvent cu marcaje" + +#~ msgid "Bookmarks" +#~ msgstr "Marcaje" + +#~ msgid "" +#~ "Gedit bookmarks allow you to highlight important lines of text within " +#~ "your document or program, making them easier to find. You can also move " +#~ "up or down between bookmarks, making document navigation a bit faster." +#~ msgstr "" +#~ "Marcajele Gedit vă permit să evidențiați linii de text importante în " +#~ "document sau program, făcându-le mai ușor de găsit. De asemenea, vă " +#~ "puteți muta în sus sau în jos între marcaje, făcând navigarea " +#~ "documentului un pic mai rapidă." + +#~ msgid "" +#~ "To enable the bookmark plugin, select Edit " +#~ "PreferencesPluginsBookmarks." +#~ msgstr "" +#~ "Pentru a activa plugin-ul Marcaje, alegeți EditarePreferințePlugin-uriMarcaje." + +#~ msgid "" +#~ "Bookmarks are inserted and removed by completing the same action. To " +#~ "insert or remove bookmarks:" +#~ msgstr "" +#~ "Marcajele sunt inserate și eliminate prin completarea aceleiași acțiuni. " +#~ "Pentru a insera sau elimina marcaje:" + +#~ msgid "" +#~ "Navigate to the line where you want to insert or remove the bookmark." +#~ msgstr "" +#~ "Navigați la linia unde doriți să inserați sau să eliminați marcajul." + +#~ msgid "" +#~ "Press CtrlAltB, or " +#~ "click EditToggle Bookmark." +#~ msgstr "" +#~ "Apăsați CtrlAltB, sau " +#~ "apăsați pe EditareComutare marcaj." + +#~ msgid "To move between bookmarks:" +#~ msgstr "Pentru a comuta între marcaje:" + +#~ msgid "" +#~ "Press CtrlShiftB to " +#~ "move to the previous bookmark." +#~ msgstr "" +#~ "Apăsați CtrlB pentru a trece la " +#~ "marcajul anterior." + +#~ msgid "" +#~ "If you prefer using the mouse, you can click EditGo to Next Bookmark or EditGo to Previous Bookmark." +#~ msgstr "" +#~ "Dacă preferați folosirea mouseului, apăsați pe EditareNavighează la următorul marcaj sau " +#~ "EditareNavighează la marcajul anterior." + +#~ msgid "Do more with gedit by using gedit plugins." +#~ msgstr "Faceți mai multe cu gedit utilizând plugin-urile gedit." + +#~ msgid "" +#~ "The easiest way to create a new file in gedit, is to click the " +#~ "icon that looks like a blank piece of paper with a \"plus\" sign next to " +#~ "it. If you prefer, you may also select FileNew, or press CtrlN." +#~ msgstr "" +#~ "Cel mai ușor mod de a crea un nou fișier în gedit, este să " +#~ "faceți clic pe pictograma care arată ca o bucată goală de hârtie, cu un " +#~ "semn „plus” alăturat. Dacă preferați, puteți, de asemenea, să alegeți " +#~ "FișierNou, sau să apăsați " +#~ "CtrlN." + +#~ msgid "To change the color scheme, complete the following steps:" +#~ msgstr "Pentru a modifica schema de culori, completați pașii următori:" diff --git a/help/ru/ru.po b/help/ru/ru.po new file mode 100644 index 0000000..0ef4da3 --- /dev/null +++ b/help/ru/ru.po @@ -0,0 +1,4406 @@ +# Russian translation of GEdit help +# Copyright 2008 Free Software Foundation Inc. +# Misha Shnurapet , 2011. +# Yuri Myasoedov , 2013. +# Andrew Razumnov , 2014. +# Stas Solovey , 2011, 2012, 2013, 2014, 2015. +# Ivan Komaritsyn , 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit HEAD\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-11 09:21+0000\n" +"PO-Revision-Date: 2018-03-19 15:38+0300\n" +"Last-Translator: Stas Solovey \n" +"Language-Team: Русский \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Poedit 2.0.6\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Stas Solovey , 2011-2018.\n" +"Ivan Komaritsyn , 2017." + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Изменение цвета текста и фона в gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:13 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:11 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:14 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-shortcut-keys.page:14 +#: C/gedit-spellcheck.page:12 C/gedit-syntax-highlighting.page:10 +#: C/gedit-tabs-moving.page:13 C/gedit-tabs.page:14 +#: C/gedit-undo-recent-action.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Джим Кэмпбелл (Jim Campbell)" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:17 +msgid "Jana Svarova" +msgstr "Яна Сварова (Jana Svarova)" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:19 C/gedit-change-color-scheme.page:24 +#: C/gedit-shortcut-keys.page:41 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:22 C/gedit-replace.page:26 +#: C/gedit-shortcut-keys.page:39 +msgid "Ekaterina Gerasimova" +msgstr "Екатерина Герасимова (Ekaterina Gerasimova)" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:30 +msgid "Change the color scheme" +msgstr "Изменение цветовой схемы" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:32 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"Текстовый редактор gedit включает в себя несколько различных " +"цветовых схем, что позволяет изменять внешний вид главного окна." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:36 +msgid "To change the color scheme:" +msgstr "Для изменения цветовой схемы:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:38 +msgid "" +"Open the gedit menu from the top bar, then select " +"PreferencesFont & Colors." +msgstr "" +"Откройте меню gedit на верхней панели, затем " +"выберите ПараметрыШрифты и цвета." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:43 +msgid "Choose your desired color scheme." +msgstr "Выберите нужную цветовую схему." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:47 +msgid "The new color scheme will be applied immediately." +msgstr "Новая цветовая схема будет сразу применена." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:50 +msgid "Use a Custom Color Scheme" +msgstr "Использование собственной цветовой схемы" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:56 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Можно создавать и использовать собственные цветовые схемы, а также " +"использовать цветовые схемы, созданные другими." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:59 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Инструкции по установке собственных цветовых схем, а также примеры цветовых " +"схем, которые можно загрузить и использовать, доступны в gedit wiki." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Использование собственного шрифта для текста в gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "Изменение шрифта по умолчанию" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"Текстовый редактор gedit по умолчанию использует системный " +"моноширинный шрифт, но можно изменить шрифт по умолчанию в соответствии с " +"вашими предпочтениями." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "" +"Чтобы изменить шрифт по умолчанию в gedit выполните следующие " +"действия:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"Выберите gedit Параметры Шрифты и цвета." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "Снимите флажок рядом с «Использовать системный моноширинный шрифт»." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Нажмите на имя текущего шрифта. gedit откроет окно выбора " +"шрифтов, позволяя увидеть доступные шрифты и выбрать нужный." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"После выбора нужного шрифта используйте ползунок под списком " +"шрифтов, чтобы установить размер шрифта по умолчанию." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "Нажмите Выбрать, затем нажмите Закрыть." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Выйти из используемого файла." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Закрытие файла" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears on the right-" +"side of the file's tab, or press Ctrl W." +msgstr "" +"Чтобы закрыть файл в gedit, выберите Закрыть. Также можно нажать на значок «X», который находится на " +"вкладке файла справа, или нажать Ctrl W." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:24 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Любое из этих действий закроет файл в gedit. Если файл содержит " +"изменения, которые не были сохранены, gedit предложит сохранить " +"эти изменения перед закрытием файла." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Открыть файл для редактирования." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-recent-action.page:24 +msgid "Shobha Tyagi" +msgstr "Шобха Тиаджи (Shobha Tyagi)" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Создание нового файла" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the toolbar, or " +"press CtrlT." +msgstr "" +"Самый простой способ создать новый файл в gedit — это нажать " +"кнопку Создать новый документ слева на панели инструментов, или " +"нажать CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Любое из этих действий создаст новый файл в окне gedit. Если в " +"gedit имеются уже открытые файлы, новый файл появится в новой " +"вкладке справа от этих файлов." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Использование административных прав для редактирования файла." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Редактирование файла с правами администратора (root)" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Редактирование файлов с правами администратора небезопасно и может повредить " +"систему при неправильном использовании. Будьте внимательны при " +"редактировании файлов с правами администратора." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Для редактирования файлов с правами администратора, запустите gedit из терминала, введя:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"При использовании команды sudo, необходимо правильно ввести " +"пароль, прежде чем gedit откроется." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"В качестве альтернативы команде sudo, можно получить права " +"администратора, введя:" + +# минус "-" на тире "—" не заменять +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Затем нужно запустить gedit, введя команду gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"После запуска gedit с правами администратора, он будет обладать " +"правами администратора, пока вы не закроете его." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Изучение основ работы с файлами в gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Основы: открытие, закрытие и сохранение файлов" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" +"Если вы впервые используете gedit, данные темы руководства " +"помогут вам c созданием, сохранением, открытием и закрытием файлов." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Настройка gedit для использования всего экрана." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Использование полноэкранного режима" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Полноэкранный режим gedit удобен при работе с большими " +"документами. При использовании полноэкранного режима будут скрыты " +"панель меню, панель вкладок и панель " +"инструментов, позволяя видеть больше текста и лучше сосредоточиться на " +"текущих задачах." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Включение полноэкранного режима" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Чтобы включить полноэкранный режим, нажмите клавишу F11. Меню, " +"заголовок и панель вкладок gedit будут скрыты, останется виден " +"только текст текущего файла." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Если при работе в полноэкранном режиме нужно выполнить действие из меню " +"gedit, наведите указатель мыши к верхней части экрана. Появится " +"всплывающая панель меню gedit, на которой можно выбрать нужное " +"действие." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Для переключения между открытыми вкладками в полноэкранном режиме нажмите " +"CtrlAltPgUp или " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Выключение полноэкранного режима" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Чтобы включить или выключить полноэкранный режим gedit, нажмите " +"F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Также можно переместить указатель мыши в верхнюю часть экрана, подождать " +"появления панели меню и выбрать в появившейся панели кнопку " +"Покинуть полноэкранный режим." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Использование боковой панели gedit для просмотра и открытия файлов." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Просмотр и открытие файлов из боковой панели" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Наиболее удобным способом переключения между файлами в gedit " +"является использование вкладок в верхней части окна gedit. " +"Однако, в некоторых случаях, особенно если вы работаете с большим " +"количеством открытых файлов, будет проще использовать боковую панель." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Для включения боковой панели, выберите Вид Боковая " +"панель, или просто нажмите клавишу F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Переключать положение боковой панели на открытое или закрытое можно в любое " +"время, нажимая клавишу F9." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Открытие файлов из боковой панели" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Для открытия файлов из боковой панели, сначала откройте боковую панель, " +"выбрав Вид Боковая панель (или просто " +"нажмите F9), затем нажмите на значок Обозреватель файлов в нижней части панели." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Это включит режим обозревателя файлов боковой панели. Чтобы найти и " +"открыть нужные файлы можно использовать кнопки навигации в верхней части " +"панели." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Использование боковой панели для переключения между открытыми файлами" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"После открытия нескольких файлов, можно использовать боковую панель для " +"переключения между открытыми файлами. Чтобы включить режим обзора открытых " +"файлов боковой панели, нажмите на значок Документы в нижней части " +"боковой панели." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Нажатие на любое имя файла в боковой панели откроет этот файл для " +"редактирования." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Открытие файлов для начала работы с ними." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Открытие файла или набора файлов" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Чтобы открыть файл в gedit, нажмите кнопку Открыть или " +"нажмите CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Появится диалоговое окно Открыть. С помощью мыши или клавиатуры " +"выберите нужный файл и нажмите кнопку Открыть. Выбранный файл " +"откроется в новой вкладке." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Чтобы закрыть диалоговое окно Открыть без открытия файла, нажмите " +"кнопку Отмена." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Для открытия нескольких файлов сразу, можно использовать клавиши Ctrl и Shift. Если удерживать клавишу Ctrl при выборе " +"нескольких файлов, то после нажатия кнопки Открыть откроются все " +"выбранные файлы." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Если удерживать клавишу Shift, то откроются первый и последний " +"выбранные файлы, а также все файлы между ними." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Доступ к фалам расположенным на другом компьютере." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Открытие файла, который находится на сервере" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Для открытия файла, который находится на сервере, из gedit, нужно " +"знать некоторую техническую информацию о сервере. Например, IP-адрес или URL " +"сервера, а также, возможно, тип сервера (HTTP, FTP и т.д.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Некоторые типы серверов накладывают ограничения на то, что можно делать с " +"файлами, которые находятся на сервере. Например, можно открыть файл с " +"сервера, но, возможно, изменения файла потребуется сохранять на компьютере " +"локально." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Чтобы открыть файл, который находится на сервере, используя gedit, выполните следующие действия:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the title bar, click on Open." +msgstr "В строке заголовка нажмите Открыть." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Documents…." +msgstr "Нажмите Другие документы…." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "" +"Press CtrlL in the Open " +"dialog." +msgstr "" +"Нажмите CtrlL в диалоговом окне " +"Открыть." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Введите IP-адрес или URL соответствующего сервера." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:38 +msgid "Find and select the file that you wish to open." +msgstr "Найдите и выберите файл, который нужно открыть." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Используя выпадающий список кодировки символов, выберите подходящую " +"кодировку." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:41 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Нажмите кнопку Открыть." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:44 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" +"Допустимые типы URI могут содержать http:, ftp:, file:, и все протоколы, " +"поддерживаемые gvfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:48 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Файлы с некоторых типов URI могут быть открыты только для чтения, поэтому " +"изменения в таких файлах должны быть сохранены в другое место. Например, " +"HTTP позволяет открывать файлы лишь для чтения. Файлы открытые с FTP тоже " +"могут оказаться недоступными для записи, поскольку не все FTP-серверы умеют " +"правильно работать с записью таких файлов." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have updated recently." +msgstr "Доступ к недавно изменённым фалам." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:17 +msgid "Reopen a recently-used file" +msgstr "Повторное открытие недавно использованного файла" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:19 +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" +"По умолчанию, gedit обеспечивает лёгкий доступ к пяти последним " +"недавно использованным файлам. Чтобы открыть недавно использовавшийся файл " +"выполните следующие действия:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:22 +msgid "Click the Open button." +msgstr "Нажмите кнопку Открыть." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:23 +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "" +"Текстовый редактор gedit отобразит список из пяти последних " +"недавно использованных файлов." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:25 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Выберите нужный файл, и он откроется в новой вкладке." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:28 +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the dconf-editor application." +msgstr "" +"Используя dconf-editor можно настроить количество отображаемых в " +"gedit недавно использованных файлов." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:32 +msgid "" +"Launch dconf-editor and select org gnomegeditpreferencesui max-recents." +msgstr "" +"Запустите dconf-editor и выберите org " +"gnomegeditpreferencesui max-" +"recents." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:35 +msgid "" +"Double-click on the number next to max-recents and change the " +"number to your desired value." +msgstr "" +"Дважды нажмите на цифру рядом с max-recents и измените количество " +"до нужного значения." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Использование модулей для настройки gedit." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Настройка и использование модулей gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Расширить функционал gedit можно с помощью модулей. Некоторые " +"модули установлены по умолчанию, но большое количество других модулей " +"доступны отдельно." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"В большинстве дистрибутивов Linux группа этих модулей доступна в виде пакета " +"gedit-plugins. Чтобы дополнительные модули были доступны в " +"gedit, установите пакет gedit-plugins." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Установите gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Стандартные модули gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Дополнительные модули gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:9 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-recent-action.page:16 +msgid "Daniel Neel" +msgstr "Даниэль Нил (Daniel Neel)" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Изменение регистра выделенного текста." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Изменение регистра" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Модуль позволяет изменять регистр выбранной части текста. Его можно " +"использовать для изменения текста полностью в нижний или в верхний регистр, " +"а также для инвертирования или применения заглавного регистра. Чтобы " +"включить модуль, выберите geditПараметры МодулиИзменение регистра." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"После включения модуля Изменить регистр, для его использования " +"выполните следующие действия:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Выделите часть текста, которую необходимо изменить." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Выберите geditИзменить регистр" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Выберите нужный параметр форматирования текста." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Обновления форматирования текста будут сразу применены." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Опция Инвертировать регистр будет преобразовывать все строчные " +"буквы в верхний регистр, а все заглавные — в нижний." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Опция Заглавный регистр будет преобразовывать первую букву " +"каждого слова в верхний регистр, а все остальные — в нижний." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Если текст не выделен, функция Изменить регистр будет неактивна. " +"Прежде чем использовать функцию Изменить регистр, нужно выделить " +"часть текста." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Просмотр статистики документа." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Статистика документа" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Модуль Статистика документа показывает различные статистические " +"данные о текущем документе. Чтобы включить модуль, выберите geditПараметрыМодулиСтатистика документа." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Использование статистики документа" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"После включения модуля, можно использовать его, выбрав Сервис Статистика документа. В открывшемся окне будет " +"отображаться статистическая информация документа, включающая количество " +"слов, строк, символов, символов без пробелов, и размер файла в байтах." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Также можно использовать модуль Статистика документа для " +"отображения информации только о части документа. Для этого, используя " +"указатель мыши, выделите часть текста, которую нужно проверить, затем " +"выберите СервисСтатистика документа. " +"Gedit отобразит информацию о выделенной части текста, а также о " +"документе полностью." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "" +"Запуск скриптов в текущих файлах, а также взаимодействие с другими " +"приложениями." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Внешние инструменты" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Модуль Внешние инструменты помогает упростить повторяющиеся задачи. " +"В частности, он расширяет возможности gedit, помогая запускать " +"скрипты в рабочих файлах, а также позволяет gedit " +"взаимодействовать с другими приложениями на компьютере. Для включения модуля " +"Внешние инструменты выберите gedit ПараметрыМодули Внешние " +"инструменты." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Настройка модуля «Внешние инструменты»" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"После включения модуля, нужно настроить его в соответствии с необходимыми " +"требованиями. Чтобы настроить параметры, выберите СервисУправление внешними инструментами." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Данный модуль предназначен для опытных пользователей, и для эффективного " +"использования требует знания скриптов. Используйте этот модуль с " +"осторожностью, так как ошибки в скриптах могут повлиять на документ " +"непредвиденным образом." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Использование боковой панели для просмотра и открытия файлов." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Панель обозревателя файлов" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"В зависимости от использования gedit, может быть полезным модуль " +"Панель обозревателя файлов. Данный модуль добавляет " +"обозреватель файлов в боковую панель, предоставляя быстрый доступ " +"к часто используемым файлам." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Чтобы включить модуль, выберите geditПараметры МодулиПанель обозревателя " +"файлов." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the pane." +msgstr "" +"Для открытия файлов из боковой панели, сначала откройте боковую панель, " +"выбрав Вид Боковая панель (или просто " +"нажмите F9), затем нажмите на значок Обозреватель файлов в нижней части панели." + +#. (itstool) path: section/p +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the pane to locate and open " +"your desired files." +msgstr "" +"Это включит режим обозревателя файлов боковой панели. Чтобы найти и " +"открыть нужные файлы можно использовать кнопки навигации в верхней части " +"панели." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:17 +msgid "Insert the current date/time at the cursor position." +msgstr "Вставка текущей даты и времени в место текущей позиции курсора." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:20 +msgid "Insert date/time" +msgstr "Вставка даты и времени" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:22 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select gedit PreferencesPlugins Insert Date/" +"Time. To use the plugin, press EditInsert Date and Time." +msgstr "" +"Модуль Вставка даты и времени позволяет вставить дату и/или время " +"на место текущей позиции курсора. Чтобы включить модуль, выберите " +"gedit ПараметрыМодули Вставка даты и времени. Чтобы " +"использовать модуль, нажмите ПравкаВставить дату и время." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:29 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"geditPreferences PluginsInsert Date/TimeConfigure." +msgstr "" +"По умолчанию, модуль Вставка даты и времени при каждом " +"использовании предлагает выбрать предпочтительный формат даты и времени. " +"Однако можно выбрать формат даты и времени по умолчанию, выбрав geditПараметры " +"МодулиВставка даты и времениПараметры." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Инструкция по установке сторонних модулей." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Добавление модулей gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Установка сторонних модулей предоставляет дополнительную функциональность, " +"которая не доступна в стандартных и дополнительных модулях gedit, " +"которые являются частью пакета gedit-plugins. Онлайн-список " +"сторонних модулей находится здесь." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Установка сторонних модулей включает в себя загрузку модуля, размещение " +"файлов модуля в правильный каталог, и его включение." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Обычно модуль можно загрузить с сайта модуля, но, возможно, понадобится " +"использовать программы c контролем версий, такие как git, " +"bazaar, или subversion, чтобы скопировать модуль из " +"репозитория в интернете. Обратитесь к документации модуля для получения " +"информации о способе загрузки." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Поместите файлы модуля в каталог /home/имя-пользователя/." +"local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Замените слово имя-пользователя вашим собственным именем " +"пользователя." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins [Name " +"of Plugin] to enable the plugin." +msgstr "" +"После добавления файлов модуля в правильный каталог, он появится в меню " +"Параметры. Чтобы включить модуль, выберите Правка ПараметрыМодули[Название модуля]." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:45 +msgid "Click Close." +msgstr "Нажмите кнопку Закрыть." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:48 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "После включения модуля, он будет доступен для использования." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:52 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Каталог .local по умолчанию скрыт. Чтобы отобразить его и " +"остальные скрытые файлы, выберите ПараметрыВидПоказывать скрытые файлы и резервные копии, или " +"нажмите CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:59 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Если каталога .local/share/gedit/plugins/ нет в системе, его " +"необходимо создать вручную." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Поддержка режима строк Emacs, Kate и Vim." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Режим строк" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Модуль Режим строк позволяет gedit анализировать " +"начальную и конечную строки файла, чтобы применить набор параметров " +"документа к файлу. Модуль Режим строк поддерживает подмножество " +"параметров, используемых Emacs, Kate и Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Чтобы включить модуль Режим строк, выберите gedit ПараметрыМодулиРежим строк." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Общие параметры режима строк" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Следующие параметры могут быть установлены с помощью режима строк " +"gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Ширина табуляции" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Ширина отступа" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Вставка пробелов вместо табуляций" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Перенос текста" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Положение правой границы" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Значения параметров, установленных с помощью режима строк, имеют " +"преимущество перед значениями тех же параметров, установленных в диалоговом " +"окне установки параметров." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Режим строк Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Сканируются первые две строки документа для обнаружения режима строк " +"Emacs, gedit поддерживает следующие режимы строк " +"Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Ширина табуляции" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Отступ со смещением" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Автоматическая расстановка пробелов и табуляции" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Автоматическое обтекание текстом" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Для получения дополнительной информации о режиме строк Emacs, " +"посетите Веб-сайт руководства по GNU Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Режим строк Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Сканируются первые и последние десять строк документа для обнаружения режима " +"строк Kate, gedit поддерживает следующие режимы строк " +"Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "ширина табуляции" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "ширина отступа" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "выравнивание текста по ширине" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "перенос слов" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "перенос слов по ширине столбца" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Для получения дополнительной информации о режиме строк Kate, " +"посетите Веб-сайт Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Режим строк Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Сканируются первые и последние три строки документа для обнаружения режима " +"строк Vim, gedit поддерживает следующие режимы строк " +"Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "перенос" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "ширина текста" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Для получения дополнительной информации о режиме строк Vim, " +"посетите Веб-сайт Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Добавление интерактивной консоли Python на нижнюю панель." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Консоль Python" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"На нижнюю панель можно добавить консоль Python, позволяющую проверять " +"скрипты Python, не выходя из gedit. Чтобы включить консоль " +"Python, выберите gedit ПараметрыМодули Консоль Python." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"После включения консоли Python, можно её отрыть, выбрав ВидНижняя панель." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Если также включён модуль Встроенный терминал, консоль Python " +"будет отображена в нижней панели в виде отдельной вкладки." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Быстро открыть файл или набор файлов." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Быстрое открытие" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Модуль Быстрое открытие позволяет открывать файлы быстрее, чем " +"обычный способ открытия файлов. Чтобы включить модуль, выберите gedit ПараметрыМодулиБыстрое " +"открытие." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"После включения модуля Быстрое открытие, можно начать его " +"использовать следующим образом:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Откройте диалоговое окно Быстрое открытие, нажав " +"CtrlAltO, или выбрав Быстрое открытие…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Появится диалоговое окно Быстрое открытие." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Используйте мышь, чтобы выбрать файл или группу файлов, которые нужно " +"открыть." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Чтобы выбрать несколько отдельных файлов, удерживайте клавишу Ctrl во время нажатия на файлы, которые нужно открыть." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Чтобы выбрать группу файлов, нажмите на первый файл, который нужно открыть, " +"затем, удерживая клавишу Shift, нажмите на последний файл в " +"списке, который нужно открыть." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Модуль Быстрое открытие будет просматривать файлы из:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Каталог текущего открытого документа" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Pane plugin" +msgstr "" +"Корневой каталог модуля Панель " +"обозревателя файлов" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Последние документы, которые также показаны в папке Недавние в " +"программе Файлы" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Папки, добавленные в закладки в программе Файлы" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Папка Рабочего стола" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Домашняя папка" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Модуль Быстрое открытие отображает файлы из любого вышеуказанного " +"места, независимо от того, открывали их ранее или нет." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-shortcut-keys.page:30 C/gedit-spellcheck.page:20 +#: C/gedit-syntax-highlighting.page:14 C/gedit-tabs-moving.page:21 +#: C/gedit-tabs.page:22 C/gedit-undo-recent-action.page:20 C/index.page:18 +msgid "Sindhu S" +msgstr "Синдху С (Sindhu S)" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Использование фрагментов для быстрой вставки часто используемых частей " +"текста." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Фрагменты" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Модуль Фрагменты предоставляет удобный способ вставки " +"повторяющихся частей кода в файлы. Например, фрагмент HTML для тега " +"<img> вставит открывающую и закрывающую части тега, а " +"также место, где можно ввести атрибуты изображения. Это может сделать " +"написание кода проще и быстрее." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Включение модуля Фрагменты" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Чтобы включить модуль Фрагменты:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Выберите gedit Параметры Модули." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Чтобы включить модуль, нажмите на Фрагменты." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Обзор фрагментов" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Чтобы просмотреть доступные фрагменты:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Выберите Сервис Управление фрагментами." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Убедитесь, что указан верный синтаксис. В строке состояния в нижней части " +"окна gedit показаны текущие настройки языка. Данная настройка " +"позволяет gedit вставлять правильные фрагменты. Gedit, как " +"правило, автоматически определяет язык или синтаксис используемого файла, но " +"иногда может понадобиться установить их вручную." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "В этом примере установлен язык HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Просмотрите фрагменты, доступные для текущего языка или синтаксиса." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Использование фрагментов" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Чтобы вставить фрагмент в текущий документ:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Введите слово-термин нужного фрагмента в любом месте текущего документа." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Нажмите клавишу Tab, чтобы вставить фрагмент, связанный с " +"набранным словом-термином." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Пример использования фрагмента" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Например, если установить синтаксис HTML, ввести слово-термин " +"head , и нажать клавишу Tab, текст будет " +"автоматически дополнен фрагментом:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Добавление фрагментов" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Можно добавлять новые фрагменты, которые могут работать как глобально (то " +"есть, независимо от языка), так и только при определённом синтаксисе." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Выберите Сервис Управление фрагментами." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"В боковой панели Управление фрагментами выберите нужный синтаксис " +"и нажмите на кнопку «+» рядом с ним, чтобы отобразить список существующих " +"фрагментов для выбранного синтаксиса." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Чтобы добавить фрагмент, который работает глобально (то есть, когда для " +"документа не установлен особый синтаксис или язык), выберите раздел " +"Глобальные в боковой панели Управление фрагментами." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Чтобы добавить новый фрагмент, нажмите на значок «плюс» внизу боковой панели " +"Управление фрагментами." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Введите имя для нового фрагмента. Имя фрагмента может не совпадать с текстом " +"добавляемого фрагмента." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"В разделе Включение, необходимо ввести в " +"текстовое поле Переключатель вкладок: слово-" +"термин, которое будет использоваться для вставки фрагмента." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Если нужно вставлять фрагмент с помощью комбинации клавиш, перенесите курсор " +"в текстовое поле Комбинация клавиш:, нажмите " +"нужную комбинацию клавиш и отпустите. После этого комбинация клавиш будет " +"установлена." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Под надписью Правка:, введите нужный текст " +"фрагмента. Можно использовать ${n} для обозначения переменных, " +"где n заменяется числом, которое представляет порядковый номер " +"переменной." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Пример нового фрагмента" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Например, вы создали фрагмент текста со словом-термином greetings " +"в графе Переключатель вкладок:. Текстовое поле " +"под надписью Правка: содержит следующее:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Можно вставить этот фрагмент, набрав в документе слово greetings " +"и нажав на клавиатуре кнопку Tab. Будет вставлен следующий " +"фрагмент текста:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Слова \"wonderful\" и \"amazing\" могут быть оставлены или удалены в " +"зависимости от вашего выбора. Для этого нажмите Tab, чтобы " +"выбрать между словами \"wonderful\" и \"amazing\", и нажмите Del, " +"чтобы удалить неподходящий вариант." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Сортировка строк текста в алфавитном порядке." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Сортировка" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Модуль Сортировка упорядочивает выбранные строки текста в алфавитном порядке." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Включение модуля Сортировка" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Чтобы включить модуль Сортировка:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Выберите Сортировка, чтобы включить модуль." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Использование модуля Сортировка" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Чтобы использовать модуль Сортировка:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Drag and highlight the desired lines of text." +msgstr "Перетащите и выделите нужные строки текста." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Выберите Интсрументы Сортировка…." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Откроется диалоговое окно Сортировка, в котором можно выбрать " +"между несколькими вариантами сортировки:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Параметр В обратном порядке позволяет упорядочить текст в " +"обратном алфавитном порядке." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Параметр Убирать повторения позволяет убрать повторяющиеся " +"значения из списка." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Параметр Игнорировать регистр позволяет не учитывать регистр." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Можно также производить сортировку игнорируя первые несколько символов в " +"строках, установив номер первого символа, с которого будет производиться " +"сортировка. Для этого воспользуйтесь полем Начинать со столбца." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "" +"Для выполнения операции сортировки, выберите команду Сортировка." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Установка печати страниц в определённом порядке." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Фил Булл (Phil Bull)" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Получение копий для печати в нужном порядке" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Наоборот" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Принтеры обычно печатают страницы, начиная с первой и заканчивая последней, " +"в итоге получается, что после печати страницы сложены в обратном порядке. " +"Чтобы изменить порядок:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Выберите Файл Печать." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"На вкладке Общие, в группе параметров Копии, отметьте параметр Наоборот." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Теперь печать будет идти с последней страницы и далее." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Упорядочить" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"При печати нескольких копий документа, распечатанные листы по умолчанию " +"группируются по номеру страницы (то есть, все копии первой страницы, затем " +"все копии второй страницы, и так далее). Параметр Упорядочить позволяет " +"вместо этого сгруппировать страницы каждой копии документа по порядку." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Чтобы упорядочить копии:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Нажмите Файл Печать." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"На вкладке Общие, в группе параметров Копии, отметьте параметр Упорядочить." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Печать файлов созданных в gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Печать документов" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Для печати с помощью gedit требуется подключённый и настроенный " +"принтер. Если это не сделано, обратитесь к руководству Печать в среде GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "" +"gedit позволяет выводить документ на печать на бумаге, а также " +"печатать в файл." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Предварительный просмотр печати" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Перед печатью документа, с помощью функции Просмотр печати, можно " +"увидеть, как будет выглядеть распечатанный документ. Для предварительного " +"просмотра документа:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Выберите Файл Просмотр печати, или нажмите ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Предварительный просмотр документа откроется в той же вкладке, что и файл. " +"По предварительному просмотру можно перемещаться с помощью кнопок навигации " +"и панели инструментов в верхней части вкладки предварительного просмотра " +"документа. Чтобы закрыть предварительный просмотр и вернуться к документу, " +"нажмите кнопку Закрыть просмотр печати." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Печать на бумаге" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Можно печатать документы на бумаге на локальном или удалённом принтере. " +"Чтобы распечатать файл:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Выберите Файл Печать Общие." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Выберите нужный принтер из списка доступных принтеров." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Можно просмотреть файл, нажав кнопку Просмотр печати. Если параметры печати соответствуют вашим ожиданиям, нажмите кнопку " +"Печать, чтобы отправить файл на принтер." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Дополнительно, на вкладке Параметры страницы, можно " +"выбрать параметры Размещения и Бумаги. Так как данные настройки доступны во всех приложениях " +"GNOME, обратитесь к руководству Параметры размещения и бумаги." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Печать нескольких копий и указанного диапазона страниц" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Можно указать Диапазон и количество Копий:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Печать в файл" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Также можно использовать gedit для печати документа в файл. Чтобы " +"распечатать документ в файл:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Выберите Файл Печать Печатать в файл." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Печать возможна в файлы следующих форматов, на выбор:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Для печати документа в файл, нажмите Печать." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Выбор страниц, которые необходимо напечатать." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Печать только указанных страниц" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Можно выборочно печатать лишь некоторые страницы документа. Например, если в " +"текстовое поле Страницы ввести «1,3,5-7,9», то будут распечатаны страницы 1, " +"3, 5, 6, 7 и 9. Чтобы выборочно напечатать страницы:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Выберите Файл Печать…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"На вкладке Общие, в группе параметров Диапазон, выберите параметр Страницы." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"В текстовом поле введите, разделяя запятыми, номера страниц документа, " +"которые нужно распечатать. Для указания диапазона страниц используйте дефис." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Краткое представление gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Начало работы с gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"Текстовый редактор gedit — это полнофункциональный текстовый " +"редактор среды рабочего стола GNOME. С помощью gedit можно делать простые " +"заметки и документы, а также, используя некоторые из его дополнительных " +"функций, использовать в качестве собственной среды разработки программного " +"обеспечения." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='bf1c5551e623923504e51c4f9fd885b7'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save icon in the gedit " +"toolbar." +msgstr "" +"После запуска gedit, можно сразу приступать к написанию текста. " +"Чтобы сохранить текст, нажмите кнопку Сохранить на панели " +"инструментов gedit." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Чтобы узнать о дополнительных функциях gedit и получить помощь в " +"выполнении различных задач, посетите остальные темы руководства gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Замена участков текста в файле." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Янг Ли (Young Li)" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Замена текста" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Редактирование текста может занять много времени. Для экономии времени, в " +"gedit есть функция Заменить, которая может находить и " +"заменять часть текста." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Замена текста в gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Откройте инструмент Заменить, нажав Кнопку менюНайти и заменить…, или нажмите CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Введите текст, который нужно заменить, в поле Найти." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Введите заменяющий текст в поле Заменить на." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"После ввода исходного и заменяющего текста, можно указать дополнительные " +"параметры поиска. Также можно выбрать что заменять:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Чтобы заменить только следующее соответствие, нажмите кнопку " +"Заменить." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Чтобы заменить все совпадения искомого текста, нажмите кнопку " +"Заменить все." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Используйте функцию Заменить все с осторожностью. Функция " +"Заменить все действует по всему текстовому файлу, и не позволяет " +"выделять часть текста, в которой функция замены не будет выполняться." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Дополнительные параметры" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Если нужно, можно указать дополнительные параметры поиска:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Учитывать регистр" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Опция Учитывать регистр позволяет выполнять поиск с учётом " +"регистра. Если выбрана эта опция, при поиске будет учитываться регистр. Если " +"нет, поиск будет производиться без учёта регистра." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Только полные слова" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Используйте эту опцию, чтобы найти определённое слово, исключив фрагменты " +"других слов. Например, если при включённой опции искать слово «на», то слово " +"«на» будет соответствовать, а слова «нам» и «Панама» нет." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Обратный поиск" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Опция Обратный поиск идентична функции Найти предыдущее. Выберите эту опцию, " +"если нужно выполнять поиск от конца к началу." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Автоматически переходить к началу документа" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Если включена опция Автоматически переходить к началу документа, " +"gedit, при достижения конца документа, продолжит поиск/замену c " +"его начала. Это гарантирует, что функция поиск/замена будет выполнена по " +"всему документу." + +# escape sequence - управляющий символ, как например разрыв строки, символ табуляции и т.д. В русском переводе их часто называют непечатные символы, так как на содержание текста они не влияют. +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Использование непечатных символов" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Можно использовать непечатные символы для поиска конца строк или " +"знаков табуляции." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Новая строка" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +# Возвра́т каре́тки — управляющий символ или механизм, используемый для возвращения позиции устройства к началу строки. Часто обозначается как CR (от англ. carriage return). (wiki) +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Возврат каретки" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Если нужно найти в тексте \\ (обратный слеш) или любой " +"другой непечатный символ, то при поиске нужно перед обратным слешем " +"поставить ещё один обратный слеш. Например, для поиска \\ " +"нужно ввести \\\\. Остальные непечатные символы можно найти " +"таким же образом: чтобы найти или заменить \\n, введите " +"\\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Сохранение файла, чтобы продолжить работу с ним позже." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Сохранение файла" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the toolbar or just press " +"CtrlS." +msgstr "" +"Чтобы сохранить файл в gedit, нажмите на кнопку Сохранить справа на панели инструментов, или просто нажмите " +"CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:32 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"При сохранении нового файла, появится диалоговое окно, в котором можно " +"выбрать имя файла, а также каталог в который будет сохранён файл." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Поиск участка текста в файле." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Поиск текста" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Поиск может помочь найти конкретную последовательность текста внутри файла." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Поиск текста" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Откройте окно поиска, нажав Menu " +"Button Найти… , или нажмите " +"CtrlF. Это переместит указатель в " +"начало окна поиска." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "В окне поиска введите текст, который нужно найти." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"По мере ввода, gedit будет подсвечивать соответствующие " +"введённому части текста." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "" +"Для перемещения по результатам поиска, выполните любое из следующих действий:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Нажмите на значок стрелка вверх или стрелка вниз рядом с окном поиска." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Нажмите клавишу стрелка вверх или стрелка вниз на " +"клавиатуре." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Нажмите CtrlG или CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Чтобы закрыть окно поиска, нажмите клавишу Esc или " +"Enter. Нажатие клавиши Esc перенесёт указатель на " +"позицию до начала поиска. Нажатие клавиши Enter перенесёт " +"указатель на позицию текущего результата поиска." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Советы по поиску" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Если выделить часть текста с помощью мыши, а затем нажать CtrlF, выделенный текст появится в окне поиска." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Для расширенного поиска, нажмите на значок Лупа " +"в окне поиска. Можно выбрать один или несколько следующих параметров поиска:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Выберите Учитывать регистр, чтобы сделать поиск с учётом регистра." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Выберите Только полные слова для поиска только полных слов." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Выберите Автоматически переходить к началу документа для " +"цикличного поиска." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Найденный текст будет оставаться подсвеченным gedit, даже после завершения " +"поиска. Чтобы снять выделение, выберите Очистить " +"подсветку, или нажмите CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-shortcut-keys.page:9 +msgid "Use keyboard shortcuts to help you work more quickly." +msgstr "Использование комбинаций клавиш для ускорения работы." + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:18 +msgid "Paolo Borelli" +msgstr "Паоло Борелли (Paolo Borelli)" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:21 +msgid "Jesse van den Kieboom" +msgstr "Джесси Ван ден Кибум (Jesse van den Kieboom)" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:24 +msgid "Steve Frécinaux" +msgstr "Стив Фресинукс (Steve Frécinaux)" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:27 +msgid "Ignacio Casal Quinteiro" +msgstr "Игнасио Касал Куантеро (Ignacio Casal Quinteiro)" + +#. (itstool) path: credit/name +#: C/gedit-shortcut-keys.page:34 C/gedit-tab-groups.page:15 +#: C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Радина Матик (Radina Matic)" + +#. (itstool) path: credit/years +#: C/gedit-shortcut-keys.page:36 C/gedit-tab-groups.page:17 +#: C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-shortcut-keys.page:47 +msgid "Shortcut keys" +msgstr "Комбинации клавиш" + +#. (itstool) path: page/p +#: C/gedit-shortcut-keys.page:49 +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" +"Использование комбинаций клавиш ускоряет работу по сравнению с " +"использованием только мыши и меню. В следующей таблице представлены все " +"комбинации клавиш gedit." + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:54 +msgid "Tab-related Shortcut keys" +msgstr "Комбинация клавиш для работы с вкладками" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:57 C/gedit-shortcut-keys.page:113 +#: C/gedit-shortcut-keys.page:167 C/gedit-shortcut-keys.page:261 +#: C/gedit-shortcut-keys.page:281 C/gedit-shortcut-keys.page:318 +#: C/gedit-shortcut-keys.page:347 +msgid "Action" +msgstr "Действие" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:58 C/gedit-shortcut-keys.page:114 +#: C/gedit-shortcut-keys.page:168 C/gedit-shortcut-keys.page:262 +#: C/gedit-shortcut-keys.page:282 C/gedit-shortcut-keys.page:319 +#: C/gedit-shortcut-keys.page:348 +msgid "Keyboard shortcut" +msgstr "Комбинация клавиш" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:63 +msgid "Switch to the next tab to the left" +msgstr "Переключиться на следующую вкладку влево" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:64 +msgid "CtrlAlt PageUp" +msgstr "CtrlAlt PageUp" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:68 +msgid "Switch to the next tab to the right" +msgstr "Переключиться на следующую вкладку вправо" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:69 +msgid "CtrlAlt PageDown" +msgstr "CtrlAlt PageDown" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:73 +msgid "Close tab" +msgstr "Закрыть вкладку" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:74 C/gedit-shortcut-keys.page:154 +msgid "CtrlW" +msgstr "CtrlW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:77 +msgid "Save all tabs" +msgstr "Сохранить все вкладки" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:78 +msgid "CtrlShift L" +msgstr "CtrlShift L" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:82 +msgid "Close all tabs" +msgstr "Закрыть все вкладки" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:83 +msgid "CtrlShiftW" +msgstr "CtrlShiftW" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:86 +msgid "Reopen the most recently closed tab" +msgstr "Повторно открыть последнюю закрытую вкладку" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:87 +msgid "CtrlShiftT" +msgstr "CtrlShiftT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:90 +msgid "Jump to nth tab" +msgstr "Перейти на n-ю вкладку" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:91 +msgid "Alt n" +msgstr "Alt n" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:95 +msgid "New tab group" +msgstr "Создать группу вкладок" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:96 +msgid "CtrlAltN" +msgstr "CtrlAltN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:99 +msgid "Previous tab group" +msgstr "Предыдущая группа вкладок" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:100 +msgid "" +"ShiftCtrlAltPage up" +msgstr "" +"ShiftCtrlAltPage up" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:103 +msgid "Next tab group" +msgstr "Следующая группа вкладок" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:104 +msgid "" +"ShiftCtrlAltPage down" +msgstr "" +"ShiftCtrlAltPage down" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:110 +msgid "Shortcut keys for working with files" +msgstr "Комбинации клавиш для работы с файлами" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:119 +msgid "Create a new document in a new window" +msgstr "Создание нового документа в новом окне" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:120 +msgid "CtrlN" +msgstr "CtrlN" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:123 +msgid "Create a new document in a new tab" +msgstr "Создание нового документа в новой вкладке" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:124 +msgid "CtrlT" +msgstr "CtrlT" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:127 +msgid "Open a document" +msgstr "Открыть документ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:128 +msgid "CtrlO" +msgstr "CtrlO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:131 +msgid "Open the Quick Open window" +msgstr "Диалоговое окно Быстрое открытие" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:132 +msgid "AltO" +msgstr "AltO" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:135 +msgid "Save the current document" +msgstr "Сохранить текущий документ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:136 +msgid "CtrlS" +msgstr "CtrlS" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:139 +msgid "Save the current document with a new filename" +msgstr "Сохранить текущий документ под новым именем" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:140 +msgid "CtrlShift S" +msgstr "CtrlShift S" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:144 +msgid "Print the current document" +msgstr "Напечатать текущий документ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:145 +msgid "Ctrl P" +msgstr "Ctrl P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:148 +msgid "Print preview" +msgstr "Предпросмотр печати" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:149 +msgid "CtrlShift P" +msgstr "CtrlShift P" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:153 +msgid "Close the current document" +msgstr "Закрыть текущий документ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:157 +msgid "Quit gedit" +msgstr "Завершить gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:158 +msgid "CtrlQ" +msgstr "CtrlQ" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:164 +msgid "Shortcut keys for editing files" +msgstr "Комбинации клавиш для редактирования файлов" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:173 +msgid "Move to the beginning of the current line" +msgstr "Перейти в начало текущей строки" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:174 +msgid "Home" +msgstr "Home" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:177 +msgid "Move to the end of the current line" +msgstr "Перейти в конец текущей строки" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:178 +msgid "End" +msgstr "End" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:181 +msgid "Move to the beginning of the document" +msgstr "Перейти к началу документа" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:182 +msgid "CtrlHome" +msgstr "CtrlHome" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:185 +msgid "Move to the end of the document" +msgstr "Перейти к концу документа" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:186 +msgid "CtrlEnd" +msgstr "CtrlEnd" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:189 +msgid "Move the selected word right one word" +msgstr "Переместить выделенное слово вправо на одно слово" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:190 +msgid "AltRight Arrow" +msgstr "AltСтрелка вправо" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:193 +msgid "Move the selected word left one word" +msgstr "Переместить выделенное слово влево на одно слово" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:194 +msgid "AltLeft Arrow" +msgstr "AltСтрелка влево" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:197 +msgid "Undo the last action" +msgstr "Отменить последнее действие" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:198 +msgid "CtrlZ" +msgstr "CtrlZ" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:201 +msgid "Redo the last undone action" +msgstr "Вернуть последнее отменённое действие" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:202 +msgid "CtrlShift Z" +msgstr "CtrlShift Z" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:206 +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Вырезать выделенный текст и поместить его в буфер обмена" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:208 +msgid "CtrlX" +msgstr "CtrlX" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:211 +msgid "Copy the selected text or region onto the clipboard" +msgstr "Скопировать выделенный текст в буфер обмена" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:212 +msgid "CtrlC" +msgstr "CtrlC" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:215 +msgid "Paste the contents of the clipboard" +msgstr "Вставить содержимое буфера обмена" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:216 +msgid "CtrlV" +msgstr "CtrlV" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:219 +msgid "Select all text in the file" +msgstr "Выделить весь текст в файле" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:220 +msgid "CtrlA" +msgstr "CtrlA" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:223 +msgid "Delete the current line" +msgstr "Удалить текущую строку" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:224 +msgid "CtrlD" +msgstr "CtrlD" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:227 +msgid "Move the selected line up one line" +msgstr "Переместить выделенную строку на одну строку вверх" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:228 +msgid "AltUp Arrow" +msgstr "AltСтрелка вверх" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:231 +msgid "Move the selected line down one line" +msgstr "Переместить выделенную строку на одну строку вниз" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:232 +msgid "AltDown Arrow" +msgstr "AltСтрелка вниз" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:235 +msgid "Add a tab stop" +msgstr "Добавить табуляцию" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:236 +msgid "Tab" +msgstr "Tab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:239 +msgid "Remove a tab stop" +msgstr "Убрать табуляцию" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:240 +msgid "ShiftTab" +msgstr "ShiftTab" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:243 +msgid "Convert the selected text to upper case" +msgstr "Преобразовать все буквы выделенного текста в заглавные" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:244 +msgid "CtrlU" +msgstr "CtrlU" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:247 +msgid "Convert the selected text to lower case" +msgstr "Преобразовать все буквы выделенного текста в строчные" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:248 +msgid "CtrlL" +msgstr "CtrlL" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:251 +msgid "Toggle case of the selected text" +msgstr "Переключить регистр выделенного текста" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:252 +msgid "Ctrl~" +msgstr "Ctrl~" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:258 +msgid "Shortcut keys for showing and hiding panes" +msgstr "Комбинации клавиш для отображения или скрытия панелей" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:267 +msgid "Show / hide the side panel" +msgstr "Показать/скрыть боковую панель" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:268 +msgid "F9" +msgstr "F9" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:271 +msgid "Open the file menu" +msgstr "Открыть меню файла" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:272 +msgid "F10" +msgstr "F10" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:278 +msgid "Shortcut keys for searching" +msgstr "Комбинации клавиш для поиска" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:287 +msgid "Find a string" +msgstr "Найти строку" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:288 +msgid "CtrlF" +msgstr "CtrlF" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:291 +msgid "Find the next instance of the string" +msgstr "Найти следующее совпадение" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:292 +msgid "CtrlG" +msgstr "CtrlG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:295 +msgid "Find the previous instance of the string" +msgstr "Найти предыдущее совпадение" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:296 +msgid "CtrlShiftG" +msgstr "CtrlShiftG" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:299 +msgid "Search and Replace" +msgstr "Найти и заменить" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:300 +msgid "CtrlH" +msgstr "CtrlH" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:303 +msgid "Clear highlight" +msgstr "Убрать подсветку" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:304 +msgid "CtrlShift K" +msgstr "CtrlShift K" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:308 +msgid "Goto line" +msgstr "Перейти к строке" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:309 +msgid "CtrlI" +msgstr "CtrlI" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:315 +msgid "Shortcut keys for tools" +msgstr "Комбинации клавиш для управления инструментами" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:324 +msgid "Check spelling" +msgstr "Проверить орфографию" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:325 +msgid "ShiftF7" +msgstr "ShiftF7" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:328 +msgid "Remove trailing spaces (with plugin)" +msgstr "Удалить завершающие пробелы (при наличии модуля)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:329 +msgid "AltF12" +msgstr "AltF12" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:332 +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Запустить «make» в текущем каталоге (при наличии модуля)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:333 +msgid "F8" +msgstr "F8" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:336 +msgid "Directory listing (with plugin)" +msgstr "Вывести список файлов (при наличии модуля)" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:337 +msgid "CtrlShift D" +msgstr "CtrlShift D" + +#. (itstool) path: table/title +#: C/gedit-shortcut-keys.page:344 +msgid "Shortcut keys for user help" +msgstr "Комбинации клавиш для управления справкой" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:353 +msgid "Open the gedit user guide" +msgstr "Открыть руководство пользователя gedit" + +#. (itstool) path: td/p +#: C/gedit-shortcut-keys.page:354 +msgid "F1" +msgstr "F1" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Проверка файлов на орфографические ошибки." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Баптист Милле-Матиас (Baptiste Mille-Mathias)" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Проверка орфографии документа" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Включение проверки орфографии" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Опция проверки орфографии предусмотрена в виде модуля gedit, " +"который может быть включён при необходимости. Чтобы включить модуль:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Выберите Проверка орфографии, чтобы включить " +"модуль." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Для проверки орфографических ошибок в документе:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Выберите Сервис Проверить орфографию." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Для автоматической проверки слов при вводе и подсветки ошибок, выберите " +"СервисПодсвечивать " +"слова с ошибками." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Использование проверки орфографии" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Можно выбрать правильный вариант для замены неправильно написанного слова, " +"используя диалоговое окно Проверка орфографии. Слово с ошибкой будет " +"отмечено модулем проверки орфографии и отображено жирным шрифтом в пункте " +"Слово с ошибкой:. Можно выбрать один из следующих вариантов " +"исправления:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Заменить на: — позволяет ввести слово и " +"использовать контрольное слово для проверки " +"правильности написания." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Варианты: — перечисляет доступные варианты замены " +"для слова." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Игнорировать — позволяет обойти проверку " +"орфографии для текущего экземпляра слова." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Игнорировать все — позволяет обойти проверку " +"орфографии для всех экземпляров слова." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Заменить — заменяет текущее слово с " +"орфографической ошибкой или неопознанное слово выбранным из списка Вариантов." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Заменить все — заменяет все слова с " +"орфографической ошибкой или неопознанные слова выбранным из списка Вариантов." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Добавить в словарь — позволяет добавить текущее " +"неопознанное слово в Словарь пользователя gedit. " +"Добавление слова в Словарь пользователя позволит gedit " +"распознавать его в документах и, следовательно, не выделять как неправильно " +"написанное слово." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Определение языка для проверки орфографии" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"По умолчанию, gedit использует для проверки документа текущий " +"язык системы. Если нужно изменить язык на другой, выберите СервисУстановить язык…, затем укажите нужный язык." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Словари" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. Enchant can " +"use several different dictionaries to check your spelling. Two such " +"dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit использует Enchant, небольшую системную утилиту для проверки " +"орфографии. Enchant может использовать несколько различных словарей для " +"проверки правописания. Hunspell и Aspell — два из основных " +"словарей." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Если нужный язык не доступен в gedit, используйте менеджер " +"пакетов для установки подходящего стороннего словаря." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Подсвечивать синтаксиса текста для удобства чтения." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Включение подсветки синтаксиса" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Подсветка синтаксиса" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit обеспечивает подсветку синтаксиса множества разметок " +"научных языков и языков программирования. Если gedit, при " +"открытии файла, распознаёт используемый синтаксис, он автоматически " +"подсвечивает текст." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Если синтаксис или язык не были подсвечены при запуске, можно выбрать " +"соответствующий синтаксис или язык, нажав Вид Режим подсветки синтаксиса, и " +"затем выбрав нужный синтаксис. Также можно выбрать синтаксис из списка в " +"нижней части окна gedit." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:11 +msgid "Group similar tabs together." +msgstr "Объединение похожих вкладок." + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:23 +msgid "Organize files in grouped tabs" +msgstr "Упорядочить файлы в сгруппированные вкладки" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:25 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"\"Untitled Document\" in the new pane, and make it active. You can open " +"files into that tab group and move tabs from one tab group to another." +msgstr "" +"Если вы работаете с множеством вкладок в gedit, то можно " +"сгруппировать их, так будет легче сохранять открытые файлы упорядоченными. " +"Добавление новой группы вкладок разделит окно gedit на две " +"панели, откроет новую вкладку «Несохранённый документ» в новой панели и " +"сделает её активной." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:32 +msgid "Open a new tab group in the gedit window" +msgstr "Создание группы вкладок в окне gedit" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:34 +msgid "To open a new tab group you can:" +msgstr "Чтобы создать группу вкладок:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:38 +msgid "" +"Go to DocumentsNew Tab Group in the " +"main menu." +msgstr "" +"Выберите ДокументыСоздать группу вкладок в главном меню." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:42 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Используйте комбинацию клавиш CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:47 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of " +"gedit window between panes according to your needs." +msgstr "" +"Это действие разделит окно gedit на две панели, панель с новой " +"группой вкладок будет помещена справа от активной вкладки. Можно перемещать " +"разделитель вправо либо влево, распределяя пространство окна gedit между панелями в соответствии с вашими потребностями." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:52 +msgid "" +"You can open as much tab groups in gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"В окне gedit можно открыть столько групп вкладок, сколько " +"позволяет экран монитора, но для корректного отображения вкладок придётся " +"перемещать разделитель." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:56 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Чтобы закрыть панель группы вкладок, нужно закрыть все вкладки, которые " +"открыты в этой панели." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:62 +msgid "Move through tab groups" +msgstr "Перемещение вкладок по группам вкладок" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:64 +msgid "To move forward (on the next) tab group:" +msgstr "Чтобы переместить вкладку в следующую группу вкладок:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:68 +msgid "" +"Go to DocumentsNext Tab Group in the " +"main menu." +msgstr "" +"Выберите ДокументыСледующая группа вкладок в главном меню приложения." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:72 +msgid "" +"Use the ShiftCtrlAltPage down shortcut." +msgstr "" +"Используйте комбинацию клавиш ShiftCtrlAltPage down." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:77 +msgid "To move backward (on the previous) tab group:" +msgstr "Чтобы переместить вкладку в предыдущую группу вкладок:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:81 +msgid "" +"Go to DocumentsPrevious Tab Group in " +"the main menu." +msgstr "" +"Выберите ДокументыПредыдущая группа вкладок в главном меню приложения." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:85 +msgid "" +"Use the ShiftCtrlAltPage up shortcut." +msgstr "" +"Используйте комбинацию клавиш ShiftCtrlAltPage up." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:93 +msgid "Move a tab to another tab group" +msgstr "Перемещение вкладки из одной группы вкладок в другую" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:95 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Чтобы переместить вкладку из одной группы вкладок в другую:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:66 C/gedit-tabs-moving.page:89 +msgid "Click and hold the mouse button on the tab." +msgstr "Нажмите и удерживайте кнопку мыши на вкладке." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:102 +msgid "Drag the tab to another tab group pane." +msgstr "Переместите вкладку в другую группу вкладок." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:105 +msgid "Place it beside other tabs in the tab group." +msgstr "Поместите её рядом с другими вкладками в группе вкладок." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:108 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:72 C/gedit-tabs-moving.page:98 +msgid "Release the mouse button." +msgstr "Отпустите кнопку мыши." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:112 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tab groups." +msgstr "" +"Посетите страницу Комбинация клавиш для " +"работы с вкладками, чтобы узнать комбинации клавиш для быстрого и " +"лёгкого управления группами вкладок." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Изменение расположения вкладок в окне gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Перемещение и изменение расположения вкладок" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"В gedit можно изменять расположение вкладок, что упрощает работу " +"с файлами. Вкладки можно перемещать между собой в одном окне, за пределы " +"окна gedit (создавая новое окно gedit), а также из " +"одного окна в другое." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Изменение расположения вкладок в окне gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Чтобы изменить расположение вкладок в окне:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tab." +msgstr "Переместите вкладку в нужное положение среди других вкладок." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Вкладка будет помещена ближе всего к тому месту, где вы её отпустите, " +"непосредственно рядом c другими открытыми вкладками." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:61 +msgid "Move a tab, creating a new gedit window" +msgstr "Перемещение вкладки с созданием нового окна gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:62 +msgid "To create a new window from an existing tab:" +msgstr "Чтобы создать новое окно из существующей вкладки:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:69 +msgid "Drag the tab out of the gedit window." +msgstr "Переместите вкладку за пределы окна gedit." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:77 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Чтобы переместить вкладку в новое окно, когда окно gedit " +"развёрнуто на весь экран, переместите вкладку на заголовок окна в верхней " +"части экрана." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:83 +msgid "Move a tab to another gedit window" +msgstr "Перемещение вкладки в другое окно gedit" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:85 +msgid "If you want to move a tab from one window to another:" +msgstr "Чтобы переместить вкладку из одного окна в другое:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:92 +msgid "Drag the tab to the new window." +msgstr "Переместите вкладку в другое окно." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:95 +msgid "Place it beside other tabs in the new window." +msgstr "Поместите её рядом с другими вкладками в другом окне." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:104 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Возможно, вам будет проще перемещать вкладки из одного окна в другое путём " +"перемещения вкладки в левый верхний угол в меню Обзор. Там будут " +"отображены все открытые окна gedit. Поднесите вкладку к нужному " +"окну gedit и отпустите." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:111 +msgid "" +"See the tab-related shortcut keys " +"table to make it easier to manage your tabs." +msgstr "" +"Посетите страницу Комбинации клавиш, чтобы узнать комбинации клавиш для быстрого управления вкладками." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Создание и удаление вкладок в окне gedit." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Добавление и удаление вкладок" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" +"Использование вкладок в gedit позволяет держать на виду несколько " +"файлов в одном окне. Вкладка большего размера указывает на открытый в данный " +"момент файл. Вкладки меньшего размера указывают на другие доступные для " +"работы файлы." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:45 +msgid "Adding tabs" +msgstr "Добавление вкладок" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:46 +msgid "" +"To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgstr "" +"Чтобы добавить новую вкладку, создайте новый файл нажав Ctrl T. Вкладка будет добавлена справа от остальных " +"вкладок." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:52 +msgid "Removing tabs" +msgstr "Удаление вкладок" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:53 +msgid "" +"To remove a tab, click the × on the tab's right " +"side. To remove all open tabs, press Ctrl ShiftW." +msgstr "" +"Для удаления вкладки, справа на вкладке нажмите ×. Для удаления всех открытых вкладок, нажмите Ctrl " +"ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-recent-action.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Отмена недавнего изменения одного из файлов." + +#. (itstool) path: page/title +#: C/gedit-undo-recent-action.page:31 +msgid "Undo a recent action" +msgstr "Отмена последнего действия" + +#. (itstool) path: page/p +#: C/gedit-undo-recent-action.page:33 +msgid "" +"If you make a mistake while using gedit, you can undo it by " +"pressing CtrlZ." +msgstr "" +"Если вы сделали ошибку при использовании gedit, можно отменить " +"изменения нажав CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-recent-action.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "После закрытия файла в gedit, отмена изменений невозможна." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Текстовый редактор gedit" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Текстовый редактор gedit" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Руководство пользователя gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Текстовый редактор gedit" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" +"Добро пожаловать в руководство по текстовому редактору gedit. " +"Чтобы узнать об основных функциях gedit, а также о некоторых " +"дополнительных комбинациях клавиш, посетите страницы: Начало работы с gedit и Комбинации клавиш." + +#. (itstool) path: page/p +#: C/index.page:36 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Другие темы руководства сгруппированы по разделам ниже. Приятного " +"использования gedit!" + +#. (itstool) path: section/title +#: C/index.page:40 +msgid "Working With Files" +msgstr "Работа с файлами" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Configure gedit" +msgstr "Настройка gedit" + +#. (itstool) path: section/title +#: C/index.page:49 +msgid "gedit Plugins" +msgstr "Модули gedit" + +#. (itstool) path: section/title +#: C/index.page:53 +msgid "Printing with gedit" +msgstr "Печать с помощью gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Эта работа распространяется под лицензией <_:link-1/>." + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "Выберите ФайлОткрыть, появится " +#~ "диалоговое окно Открыть файлы." + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "" +#~ "Нажмите на значок Карандаш в верхней части диалогового окна " +#~ "Открыть файлы." + +#~ msgid "" +#~ "Click the downward-facing arrow to the right of the Open " +#~ "button." +#~ msgstr "" +#~ "Справа от кнопки Открыть нажмите на обращённую вниз стрелку." + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "Чтобы включить и использовать обозревателя файлов в боковой " +#~ "панели, выберите ВидБоковая панель " +#~ "(или просто нажмите F9), затем нажмите на значок " +#~ "обозревателя файлов внизу боковой панели." + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "После выполнения сортировки, её нельзя отменить, поэтому " +#~ "рекомендуется сохранить файл перед её применением. Если при использовании " +#~ "сортировки была допущена ошибка, можно будет вернуться к предыдущей " +#~ "сохранённой версии файла, выбрав ФайлВосстановить." + +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "Выберите gedit Сортировать." + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "Нажмите кнопку Ctrl и с помощью мыши или прокрутки " +#~ "на тачпаде перемещайтесь вверх или вниз по тексту." + +#~| msgid "Show / hide the bottom pane." +#~ msgid "Show / hide the bottom pane" +#~ msgstr "Отобразить или скрыть нижнюю панель" + +#~ msgid "CtrlF9" +#~ msgstr "CtrlF9" + +#~ msgid "To change the color scheme, complete the following steps:" +#~ msgstr "Чтобы изменить цветовую схему выполните следующие действия:" + +#~ msgid "To Do This" +#~ msgstr "Действие" + +#~ msgid "Press This" +#~ msgstr "Комбинация" + +#~ msgid "Enable and use spell-checking feature" +#~ msgstr "Включение функции проверки орфографии" + +#~ msgid "View a list of files in the side pane" +#~ msgstr "Просмотр списка файлов в боковой панели" + +#~ msgid "" +#~ "Keeping track of a large number of files using tabs can be difficult. One " +#~ "way of managing large numbers of files is viewing them in a side pane. " +#~ "Side panes allow you to view more files at a time than is possible using " +#~ "tabs alone." +#~ msgstr "" +#~ "Отслеживание большого количества файлов с помощью вкладок может быть " +#~ "затруднительным. Один из способов управления большим количеством файлов — " +#~ "это их отображение в боковой панели. Боковые панели позволяют " +#~ "одновременно просматривать больше файлов, чем при использовании только " +#~ "вкладок." + +#~ msgid "" +#~ "To view a list of open files in a side pane, click View Side Pane. A " +#~ "pane will appear to the left of the workspace with a listing of all " +#~ "currently open files. Clicking a file in the side pane will display that " +#~ "file in the workspace." +#~ msgstr "" +#~ "Для просмотра списка открытых файлов в боковой панели, выберите " +#~ "Вид Боковая " +#~ "панель. Панель, с перечнем всех открытых файлов, появится " +#~ "слева от рабочей области. Нажатие на файл в боковой панели отобразит этот " +#~ "файл в рабочей области." + +#~ msgid "documents icon" +#~ msgstr "значок документа" + +#~ msgid "" +#~ "The side pane also contains a File Browser view. If the pane " +#~ "displays a file directory instead of currently open files, click <_:" +#~ "media-1/> at the bottom of the pane to switch to the Documents " +#~ "view." +#~ msgstr "" +#~ "Боковая панель также содержит режим обозревателя файлов. Если " +#~ "панель отображает каталог файлов вместо открытых на данный момент файлов, " +#~ "нажмите на <_:media-1/> в нижней части панели, чтобы перейти в режим " +#~ "обзора открытых документов." + +#~ msgid "" +#~ "The side pane only displays files that are open in the current window. " +#~ "When multiple windows are open, only the files in the current window will " +#~ "be displayed in the side pane." +#~ msgstr "" +#~ "Боковая панель отображает файлы только текущего окна. Когда открыто " +#~ "несколько окон, в боковой панели будут отображены только открытые в " +#~ "выбранном окне файлы." + +#~ msgid "http://creativecommons.org/licenses/by-sa/3.0/" +#~ msgstr "http://creativecommons.org/licenses/by-sa/3.0/" + +#~ msgid "" +#~ "This work is licensed under the Creative Commons Attribution-ShareAlike " +#~ "3.0 Unported License. To view a copy of this license, visit <_:link-1/> " +#~ "or send a letter to Creative Commons, 444 Castro Street, Suite 900, " +#~ "Mountain View, California, 94041, USA." +#~ msgstr "" +#~ "Эта работа лицензирована в соответствии с лицензией Creative Commons " +#~ "Attribution-ShareAlike 3.0 Unported. Для просмотра копии этой лицензии " +#~ "посетите <_:link-1/> или отправьте письмо по адресу: Creative Commons, " +#~ "444 Castro Street, Suite 900, Mountain View, California, 94041, USA." + +#~ msgid "" +#~ "or, while the tab to be moved is open, choose Documents Move to New Window" +#~ msgstr "" +#~ "или, когда открыта вкладка, которую нужно переместить, выберите " +#~ "ДокументыПереместить в новое окно" diff --git a/help/sl/sl.po b/help/sl/sl.po new file mode 100644 index 0000000..123cf54 --- /dev/null +++ b/help/sl/sl.po @@ -0,0 +1,2592 @@ +# Slovenian translations for gedit help. +# Copyright (C) 2009 gedit COPYRIGHT HOLDER +# This file is distributed under the same license as the gedit package. +# +# Andrej Žnidaršič , 2011 +# +msgid "" +msgstr "" +"Project-Id-Version: gedit help master\n" +"POT-Creation-Date: 2012-12-19 23:32+0000\n" +"PO-Revision-Date: 2012-12-24 14:08+0100\n" +"Last-Translator: Andrej Žnidaršič \n" +"Language-Team: Slovenian GNOME Translation Team \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0);\n" +"X-Poedit-Country: SLOVENIA\n" +"X-Poedit-Language: Slovenian\n" +"X-Poedit-SourceCharset: utf-8\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "Andrej Žnidaršič " + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/index.page:22(media) +msgctxt "_" +msgid "external ref='figures/gedit-icon.png' md5='a7174de2671462e1ac4f80a82ad09184'" +msgstr "external ref='figures/gedit-icon.png' md5='a7174de2671462e1ac4f80a82ad09184'" + +#: C/index.page:7(info/title) +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Gedit urejevalnik besedil " + +#: C/index.page:8(info/title) +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Gedit urejevalnik besedil " + +#: C/index.page:12(credit/name) +#: C/gedit-change-color-scheme.page:9(credit/name) +#: C/gedit-change-default-font.page:11(credit/name) +#: C/gedit-close-file.page:9(credit/name) +#: C/gedit-create-new-file.page:9(credit/name) +#: C/gedit-edit-as-root.page:9(credit/name) +#: C/gedit-files-basic.page:9(credit/name) +#: C/gedit-full-screen.page:9(credit/name) +#: C/gedit-open-files-from-sidepane.page:9(credit/name) +#: C/gedit-open-files.page:13(credit/name) +#: C/gedit-open-on-server.page:9(credit/name) +#: C/gedit-open-recent.page:9(credit/name) +#: C/gedit-plugin-guide.page:9(credit/name) +#: C/gedit-plugins-bookmarks.page:9(credit/name) +#: C/gedit-plugins-bracket-comp.page:9(credit/name) +#: C/gedit-plugins-change-case.page:14(credit/name) +#: C/gedit-plugins-character-map.page:9(credit/name) +#: C/gedit-plugins-code-assistance.page:9(credit/name) +#: C/gedit-plugins-code-comment.page:9(credit/name) +#: C/gedit-plugins-color-picker.page:9(credit/name) +#: C/gedit-plugins-commander.page:9(credit/name) +#: C/gedit-plugins-dashboard.page:9(credit/name) +#: C/gedit-plugins-doc-stats.page:14(credit/name) +#: C/gedit-plugins-draw-spaces.page:9(credit/name) +#: C/gedit-plugins-external-tools.page:15(credit/name) +#: C/gedit-plugins-file-browser.page:13(credit/name) +#: C/gedit-plugins-insert-date-time.page:14(credit/name) +#: C/gedit-plugins-install.page:8(credit/name) +#: C/gedit-plugins-join-split-lines.page:9(credit/name) +#: C/gedit-plugins-modelines.page:13(credit/name) +#: C/gedit-plugins-multi-edit.page:9(credit/name) +#: C/gedit-plugins-pyconsole.page:9(credit/name) +#: C/gedit-plugins-quick-open.page:9(credit/name) +#: C/gedit-plugins-session-saver.page:9(credit/name) +#: C/gedit-plugins-snippets-guide.page:8(credit/name) +#: C/gedit-plugins-snippets.page:9(credit/name) +#: C/gedit-plugins-sort.page:13(credit/name) +#: C/gedit-plugins-tag-list.page:13(credit/name) +#: C/gedit-plugins-terminal.page:10(credit/name) +#: C/gedit-plugins-text-size.page:10(credit/name) +#: C/gedit-plugins-word-completion.page:9(credit/name) +#: C/gedit-printing.page:11(credit/name) +#: C/gedit-quickstart.page:11(credit/name) +#: C/gedit-replace.page:10(credit/name) +#: C/gedit-save-file.page:9(credit/name) +#: C/gedit-search.page:10(credit/name) +#: C/gedit-shortcut-keys.page:10(credit/name) +#: C/gedit-spellcheck.page:9(credit/name) +#: C/gedit-syntax-highlighting.page:9(credit/name) +#: C/gedit-tabs-moving.page:9(credit/name) +#: C/gedit-tabs.page:10(credit/name) +#: C/gedit-undo-recent-action.page:9(credit/name) +#: C/gedit-undo-recent-action.page:18(credit/name) +#: C/gedit-view-open-files-in-sidepane.page:9(credit/name) +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#: C/index.page:21(page/title) +msgid " gedit Text Editor" +msgstr " gedit urejevalnik besedila" + +#: C/index.page:26(page/p) +msgid "Welcome to the gedit help guide. For a quick introduction into both gedit's most basic features, as well as some advanced keyboard shortcuts, visit the Get started with gedit and Shortcut keys pages." +msgstr "Dobrodošli v vodnik pomoči gedit. Za hiter uvod tako v najbolj osnovne zmožnosti gedit kot tudi nekatere naprednejše tipkovne bližnjice obiščite strani Kako začeti z gedit in Tipkovne bližnjice." + +#: C/index.page:31(page/p) +msgid "Other help topics are grouped together into sections below. Enjoy using gedit!" +msgstr "Druge teme pomoči so združene skupaj v odseke spodaj. Uživajte v uporabi gedit!" + +#: C/index.page:35(section/title) +msgid "Working With Files" +msgstr "Delo z datotekami" + +#: C/index.page:40(section/title) +msgid "Configure gedit" +msgstr "Nastavite gedit" + +#: C/index.page:44(section/title) +msgid "gedit Plugins" +msgstr "Vstavki gedit" + +#: C/index.page:48(section/title) +#: C/gedit-printing.page:16(page/title) +msgid "Printing with gedit" +msgstr "Tiskanje z gedit" + +#: C/gedit-change-color-scheme.page:14(page/title) +msgid "Change the color scheme" +msgstr "Spremeni barvno shemo" + +#: C/gedit-change-color-scheme.page:16(page/p) +msgid "gedit includes several different color schemes, allowing you to change the appearance of the main text window." +msgstr "gedit vključuje več različnih barvnih shem, ki vam omogočajo spremembo videza glavnega okna besedila. " + +#: C/gedit-change-color-scheme.page:19(page/p) +msgid "To change the color scheme, complete the following steps:" +msgstr "Za spremembo barvne sheme izvedite naslednje korake:" + +#: C/gedit-change-color-scheme.page:21(item/p) +#: C/gedit-change-default-font.page:24(item/p) +msgid "Select EditPreferencesFont & Colors." +msgstr "Izberite UrediMožnostiPisave in barve." + +#: C/gedit-change-color-scheme.page:23(item/p) +msgid "Choose your desired color scheme." +msgstr "Izberite svojo želeno barvno shemo." + +#: C/gedit-change-color-scheme.page:26(page/p) +msgid "The new color scheme will be applied immediately." +msgstr "Nova barvna shema bo nemudoma uveljavljena." + +#: C/gedit-change-color-scheme.page:29(section/title) +msgid "Use a Custom Color Scheme" +msgstr "Uporabi barvno shemo po meri" + +#: C/gedit-change-color-scheme.page:34(section/p) +msgid "You can also use color schemes that have been created by others, or create and use your own color schemes." +msgstr "Uporabite lahko barvne sheme, ki so jih ustvarili drugi ali pa ustvarite in uporabite svoje lastne barvne sheme." + +#: C/gedit-change-color-scheme.page:36(section/p) +msgid "Instructions on how to install custom color schemes, as well as examples of color schemes that you can download and use, are available on the gedit wiki ." +msgstr "Navodila za namestitev barvnih shem po meri kot tudi primere barvnih shem, ki jih lahko prejmete in uporabite, lahko dobite na wiki gedit." + +#: C/gedit-change-default-font.page:16(page/title) +msgid "Change the default font" +msgstr "Sprememba privzete pisave" + +#: C/gedit-change-default-font.page:18(page/p) +msgid "gedit will use the system fixed-width font by default, but you can change the default gedit font to suit your preferences." +msgstr "gedit bo privzeto uporabil sistemsko pisavo stalne širine, vendar lahko izberte privzeto pisavo gedit tako, da ustreza vašemu okusu." + +#: C/gedit-change-default-font.page:23(steps/title) +msgid "To change the default font in gedit:" +msgstr "Za spremembo privzete pisave v programu gedit:" + +#: C/gedit-change-default-font.page:26(item/p) +msgid "Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "Odstranite polje poleg fraze \"Uporabi sistemsko pisavo stalne širine.\"" + +#: C/gedit-change-default-font.page:28(item/p) +msgid "Choose your desired font, and use the slider to set the default font size." +msgstr "Izberite želeno pisavo in uporabite drsnik za nastavitev privzete pisave." + +#: C/gedit-change-default-font.page:30(item/p) +msgid "Click Select, and then click Close." +msgstr "Kliknite Izberi in nato kliknite Zapri." + +#: C/gedit-close-file.page:14(page/title) +msgid "Close a file" +msgstr "Zaprtje datoteke" + +#: C/gedit-close-file.page:16(page/p) +msgid "To close a file in gedit, select File Close. Alternately, you can click the small \"X\" that appears on the right-side of the file's tab, or press Ctrl W." +msgstr "Za zaprtje datoteke v gedit izberite DatotekaZapri. Nadomestno lahko kliknete na majhen \"X\", ki se pojavi na desni strani zavihka datoteke ali pritisnete CtrlW." + +#: C/gedit-close-file.page:20(page/p) +msgid "Any one of these actions will close a file in gedit. If your file contains changes that have not been saved, gedit will prompt you to save those changes before closing the file." +msgstr "Katerokoli od teh dejanj bo zaprlo datoteko v gedit. V primeru da vaša datoteke vsebuje spremembe, ki niso bile shranjene, vas bo gedit pozval k shranitvi teh sprememb pred zaprtjem datoteke." + +#: C/gedit-create-new-file.page:14(page/title) +msgid "Create a new file" +msgstr "Ustvarjanje nove datoteke" + +#: C/gedit-create-new-file.page:16(page/p) +msgid "The easiest way to create a new file in gedit, is to click the icon that looks like a blank piece of paper with a \"plus\" sign next to it. If you prefer, you may also select FileNew , or press CtrlN." +msgstr "Najlažji način za ustvarjanje nove datoteke v gedit je klik na ikono, ki je videti kot črn kos papirja z znakom \"plus\" poleg njega. Če vam je ljubše, lahko izberete tudi DatotekaNova ali pritisnete CtrlN." + +#: C/gedit-create-new-file.page:21(page/p) +msgid "Any one of these actions will create a new file in the gedit window. If you have other files open in gedit, the new file that you create will appear as a new tab to the right of those files." +msgstr "Katerokoli od teh dejanj bo ustvarilo novo datoteko v oknu gedit. V primeru da imate v gedit odprte druge datoteke, se bo nova datoteka pojavila kot nov zavihek desno od teh datotek." + +#: C/gedit-edit-as-root.page:14(page/title) +msgid "Edit a file as the root user" +msgstr "Urejanje datoteke kot skrbnik" + +#: C/gedit-edit-as-root.page:16(note/p) +msgid "Editing files as the root user is potentially dangerous, and may break your system in bad ways. Take great care when editing files as the root user." +msgstr "Urejanje datotek kot skrbik je potencialno nevarno in lahko vaš sistem pokvari. Bodite zelo pozorni med urejanjem datotek kot skrbnik. " + +#: C/gedit-edit-as-root.page:20(page/p) +msgid "To edit files as the root user, launch gedit from the terminal by entering:" +msgstr "Za urejanje datotek kot skrbnik zaženite gedit iz terminala z vnašanjem:" + +#: C/gedit-edit-as-root.page:21(page/code) +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#: C/gedit-edit-as-root.page:22(page/p) +msgid "Using the sudo command, you will need to successfully enter your password before gedit will open." +msgstr "Če uporabite ukaz sudo, boste morali pred odprtjem programa gedit uspešno vnesti svoje geslo." + +#: C/gedit-edit-as-root.page:27(page/p) +msgid "As an alternative to the sudo command, you may obtain administrative privileges by entering:" +msgstr "Kot nadomestilo za ukaz sudo lahko skrbniška dovoljenja pridobite z vnosom:" + +#: C/gedit-edit-as-root.page:29(page/code) +#, no-wrap +msgid "su -" +msgstr "su -" + +#: C/gedit-edit-as-root.page:30(page/p) +msgid "You would then launch gedit using the gedit command." +msgstr "Nato bi zagnali gedit z ukazom gedit." + +#: C/gedit-edit-as-root.page:33(note/p) +msgid "Once you have opened gedit with administrative privileges, the application will retain those privileges until you close it." +msgstr "Ko boste gedit odprli s skrbniškimi dovoljenji, bo program ta dovoljenja obdržal dokler ga ne zaprete. " + +#: C/gedit-files-basic.page:14(page/title) +msgid "File basics: Open, close, and save files" +msgstr "Osnove datotek: odpiranje, zapiranje in shranjevanje datotek." + +#: C/gedit-files-basic.page:16(page/p) +msgid "If you are new to gedit, these topics will help you with creating, saving, and opening and closing files." +msgstr "V primeru da ste v gedit novi, vam bodo te teme pomagale pri ustvarjanju, shranjevanju in odpiranju in zapiranju datotek." + +#: C/gedit-full-screen.page:14(page/title) +msgid "Use fullscreen mode" +msgstr "Uporaba celozaslonskega načina" + +#: C/gedit-full-screen.page:16(page/p) +msgid "When working with a large document, you may find it helpful to work in gedit's fullscreen mode. Using fullscreen mode will hide the menu bar, tab bar and the tool bar, presenting you with more of your text and allowing you to better focus on your tasks." +msgstr "Pri delu z velikimi dokumenti, vam bo morda prav prišel celozaslonski način gedit. Uporaba celozaslonskega načina bo skrila menijsko vrstico, vrstico zavihkov in orodno vrstico ter vam predstavila več vašega besedila in vam omogočila boljše osredotočenje na svoje naloge." + +#: C/gedit-full-screen.page:23(section/title) +msgid "Turn on fullscreen mode" +msgstr "Vklop celozaslonskega načina" + +#: C/gedit-full-screen.page:24(section/p) +msgid "To turn on fullscreen mode, select ViewFullscreen , or press F11. gedit's menu, title, and tab-bars will hide, and you will only be presented with the text of your current file." +msgstr "Za vklop celozaslonskega načina izberite PogledCelozaslonski način ali pritisnite F11. Meni, naziv in vrstice zavihkov gedit se bodo skrile. Ostalo bo le besedilo vaše trenutne datoteke." + +#: C/gedit-full-screen.page:28(section/p) +msgid "If you need to perform an action from the gedit menu while working in fullscreen mode, move your mouse pointer to the top of the screen. The gedit menu bar will reappear, and you can select your desired action." +msgstr "V primeru da želite izvesti dejanje iz menija gedit medtem ko delate v celozaslonskem načinu, premaknite svoj miškin kazalec na vrh zaslona. Menijska vrstica gedit se bo ponovno pojavila in izbrali boste lahko svoje želeno dejanje." + +#: C/gedit-full-screen.page:33(note/p) +msgid "To switch between open tabs while in fullscreen mode, press either CtrlAltPgUp or CtrlAltPgDn." +msgstr "Za preklop med odprtimi zavihki, ko ste v celozaslonskem načinu, pritisnite CtrlAltPgUo ali CtrlAltPgDn." + +#: C/gedit-full-screen.page:39(section/title) +msgid "Turn off fullscreen mode" +msgstr "Izklop celozaslonskega načina" + +#: C/gedit-full-screen.page:40(section/p) +msgid "To turn off fullscreen mode and return to the standard gedit window, move your mouse cursor to the top of the screen, and wait for the menu bar to appear. When the menu bar appears, select Leave Fullscreen. You can also press F11 to turn off fullscreen mode." +msgstr "Za izklop celozaslonskega načina in vrnitev na običajno okno gedit premaknite svojo miškino kazalko na vrh zaslona in počakajte, da se pojavi menijska vrstica. Ko se menijska vrstica pojavi, izberite Zapusti celozaslonski način. Za izklop celozaslonega način lahko tudi pritisnete F11." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-open-files-from-sidepane.page:43(media) +#: C/gedit-plugins-file-browser.page:39(media) +msgctxt "_" +msgid "external ref='figures/gedit-side-pane1.png' md5='ac9c80cb0552d63b593c71f23be69b53'" +msgstr "external ref='figures/gedit-side-pane1.png' md5='ac9c80cb0552d63b593c71f23be69b53'" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-open-files-from-sidepane.page:63(media) +#: C/gedit-view-open-files-in-sidepane.page:33(media) +msgctxt "_" +msgid "external ref='figures/gedit-side-pane2.png' md5='e7a12a43adc9c9cb8c992ad22a815a57'" +msgstr "external ref='figures/gedit-side-pane2.png' md5='e7a12a43adc9c9cb8c992ad22a815a57'" + +#: C/gedit-open-files-from-sidepane.page:14(page/title) +msgid "View and open files from the side pane" +msgstr "Ogled in odpiranje datotek iz stranskega pladnja" + +#: C/gedit-open-files-from-sidepane.page:15(page/p) +msgid "The most common way to switch between files in gedit is by using the tabs at the top of the gedit window. In some cases, though, particularly when you are working with a large number of open files, you may find it easier to use the side pane." +msgstr "Najbolj pogost način za preklop med datotekami v programu gedit je uporaba zavihkov na vrhu okna gedit. V nekaterih primerih, še posebno ko delate z velikim številom datotek, je lahko stranski pladenj zelo uporaben." + +#: C/gedit-open-files-from-sidepane.page:22(page/p) +msgid "To activate the side pane, select View Side Pane, or just press the F9 key." +msgstr "Za omogočitev stranskega pladnja izberite PogledStranski pladenj ali enostavno pritisnite tipko F9." + +#: C/gedit-open-files-from-sidepane.page:28(note/p) +msgid "You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "Med odprtim in zaprtim stranskim pladnjem lahko kadarkoli preklopite s pritiskom na F9." + +#: C/gedit-open-files-from-sidepane.page:35(section/title) +#: C/gedit-plugins-file-browser.page:31(section/title) +msgid "Opening files from the side pane" +msgstr "Odpiranje datotek iz stranskega pladnja" + +#: C/gedit-open-files-from-sidepane.page:36(section/p) +msgid "To open files from the side pane, first open the side pane by selecting ViewSide Pane, then click on the file-browser icon at the bottom of the pane." +msgstr "Za odprtje datotek iz stranskega pladnja najprej odprite stranski pladenj z izbiro PogledStranski pladenj in nato kliknite na ikono brskalnik-datotek na dnu pladnja." + +#: C/gedit-open-files-from-sidepane.page:46(section/p) +#: C/gedit-plugins-file-browser.page:42(section/p) +msgid "This will activate the file-browser mode of the side pane . You can then use the navigation buttons at the top of the pane to locate and open your desired files." +msgstr "To bo omogočilo način brskalnik-datotek stranskega pladnja. Nato lahko uporabite gumbe za krmarjenje na vrhu pladnja za iskanje in odpiranje želenih datotek." + +#: C/gedit-open-files-from-sidepane.page:54(section/title) +msgid "Using the side pane to switch between open files" +msgstr "Uporaba stranskega pladnja za preklop med odprtimi datotekami" + +#: C/gedit-open-files-from-sidepane.page:55(section/p) +msgid "Once you have several files open, you can use the side pane to switch between open files. To activate the file browser portion of the side pane, click on the file icon at the bottom of the side pane." +msgstr "Ko imate odprtih več datotek, lahko za preklop med odprtimi datotekami uporabljate stranski pladenj. Za omogočitev brskalniškega dela stranskega pladnja kliknite na ikono datoteka na dnu stranskega pladnja." + +#: C/gedit-open-files-from-sidepane.page:66(section/p) +msgid "Clicking on any file name in the side pane will open that file for editing." +msgstr "Klik na katerokoli ime datoteke v stranskem pladnju jo bo odprl za urejanje. " + +#: C/gedit-open-files.page:18(page/title) +msgid "Open a file or set of files" +msgstr "Odprte ene ali več datotek" + +#: C/gedit-open-files.page:20(page/p) +msgid "To open a file in gedit, click the Open button, or press CtrlO." +msgstr "Za odprtje datoteke v gedit, kliknite na gumb Odpri ali pritisnite CtrlO." + +#: C/gedit-open-files.page:22(page/p) +msgid "This will cause the Open Files dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "To bo povzročilo pojav pogovornega okna Odpiranje datotek. Uporabite miško ali tipkovnico za izbiro datoteke, ki jo želite odpreti, in nato kliknite Odpri. Izbrana datoteka bo bila odprta v novem zavihku." + +#: C/gedit-open-files.page:25(page/p) +msgid "To close the Open Files dialog without opening a file, click Cancel." +msgstr "Za zaprtje pogovornega okna Odpiranje datotek brez odprtja datoteke kliknite Prekliči." + +#: C/gedit-open-files.page:28(note/p) +msgid "You can use the Ctrl and Shift keys to open more than one file at a time. If you hold down the Ctrl key while you select multiple files, clicking Open will open each of the files that you have selected." +msgstr "Za odpiranje več datotek hkrati lahko uporabite tipki Ctrl in Shift. V primeru da med izbiro več datotek držite tipko Ctrl, bo klik na Odpri odprl vse izbrane datoteke." + +#: C/gedit-open-files.page:35(note/p) +msgid "Holding down the Shift while you select multiple files will open the first file that you select, the last file that you select, and all of the files in between." +msgstr "Pritisk na tipko Shift medtem ko izberete več datotek bo odprl vse datoteke med prvo in zadnjo izbrano." + +#: C/gedit-open-on-server.page:14(page/title) +msgid "Open a file that is located on a server" +msgstr "Odpiranje datoteke, ki se nahaja na strežniku" + +#: C/gedit-open-on-server.page:16(page/p) +msgid "Prior to opening a file on a server from within gedit, you need to know some technical information about the server. For example, you will need to know the IP Address or URL of the server, and may need to know what kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "Pred odpiranjem datoteke na strežniku v gedit morate vedeti nekaj tehničnih podrobnosti o strežniku. Na primer, vedeti boste morali IP naslov ali URL strežnika in morda boste morali vedeti kakšno vrsto strežnika imate (na primer HTTP, FTP, itd.)" + +#: C/gedit-open-on-server.page:21(page/p) +msgid "Also, some types of servers impose restrictions on what you can do with files stored on the server. For example, you may be able to open a file from a server, but may need to save any changes to the file locally, on your own computer." +msgstr "Nekatere vrste strežnika omejujejo kaj lahko storite z datotekami, ki so shranjene na strežniku. Tako boste morda lahko odprli datoteko na strežniku, vendar boste morali spremembe datoteke shraniti krajevno na svojem računalniku. " + +#: C/gedit-open-on-server.page:26(page/p) +msgid "With these caveats in mind, perform the following steps to open a file from a server using gedit:" +msgstr "S tem v mislih izvedite naslednje korake za odprtje datoteke s strežnika z uporabo gedit:" + +#: C/gedit-open-on-server.page:30(item/p) +msgid "Choose FileOpen to display the Open Files dialog." +msgstr "Izberite DatotekaOdpri za prikaz pogovornega okna Odpiranje datotek." + +#: C/gedit-open-on-server.page:32(item/p) +msgid "Select the Pencil icon near the top of the Open Files dialog." +msgstr "Izberite ikono Svinčnik blizu vrha pogovornega okna Odpiranje datotek." + +#: C/gedit-open-on-server.page:34(item/p) +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Vnesite IP naslov ali URL ustreznega strežnika." + +#: C/gedit-open-on-server.page:35(item/p) +msgid "Find and select the file that you wish to open." +msgstr "Najdite in izberite datoteko, ki jo želite odpreti." + +#: C/gedit-open-on-server.page:36(item/p) +msgid "Use the Character coding drop-down list to select the appropriate character coding." +msgstr "V spustnem seznamu Znakovno kodiranje izberite ustrezno znakovno kodiranje." + +#: C/gedit-open-on-server.page:38(item/p) +#: C/gedit-plugins-quick-open.page:37(item/p) +msgid "Click Open." +msgstr "Kliknite Odpri" + +#: C/gedit-open-on-server.page:41(page/p) +msgid "Valid types of URI include http:, ftp:, file:, and all of the methods supported by gvfs." +msgstr "Veljavne vrste URI vključujejo http:, ftp:, file: in vse načine, ki jih podpira vfs." + +#: C/gedit-open-on-server.page:45(note/p) +msgid "Files from some types of URI are opened as read-only, and any changes you make must be saved to a different location. For example, HTTP only allows files to be read. Files opened from FTP are read-only because not all FTP servers may correctly work with saving remote files." +msgstr "Datoteke iz nekaterih vrsti URI-jev so odprte kot le za branje in vse spremembe, ki jih naredite, morajo biti shranjene na drugo mesto. HTTP na primer omogoča le branje datotek. Datoteke, ki so odprte preko FTP, so le za branje, ker vsi strežniki FTP ne delujejo pravilno s shranjevanjem oddaljenih datotek." + +#: C/gedit-open-recent.page:14(page/title) +msgid "Reopen a recently-used file" +msgstr "Ponovno odprtje nedavno uporabljene datoteke" + +#: C/gedit-open-recent.page:16(page/p) +msgid "By default, gedit provides easy access to five of your most recently-used files. Here is how you can open a recently-used file:" +msgstr "Privzeto omogoča program gedit enostaven dostop do petih nazadnje uporabljenih datotek. Za odpiranje nedavnih datotek je treba:" + +#: C/gedit-open-recent.page:19(item/p) +msgid "Click the downward-facing arrow to the right of the Open button." +msgstr "Kliknite navzdol usmerjeno puščico desno od gumba Odpri." + +#: C/gedit-open-recent.page:21(item/p) +msgid "gedit will display a list of the five most-recently used files." +msgstr "gedit bo prikazal seznam petih najbolj nedavno uporabljenih datotek." + +#: C/gedit-open-recent.page:23(item/p) +msgid "Select the desired file, and it will open in a new tab." +msgstr "Izberite želeno datoteko in odprla se bo v novem zavihku." + +#: C/gedit-open-recent.page:26(note/p) +msgid "To adjust the number of recently-used files that gedit displays, you will need to use the dconf-editor application." +msgstr "Za prilagoditev števila nedavno uporabljenih datotek, ki jih gedit prikaže, boste morali uporabiti program gconf-editor." + +#: C/gedit-open-recent.page:30(item/p) +msgid "Launch dconf-editor and select orggnomegeditpreferencesui max-recents." +msgstr "Zaženite gconf-editor in izberite appsgnomegedit-2preferencesuimax-recents." + +#: C/gedit-open-recent.page:33(item/p) +msgid "Double-click on the number next to max-recents and change the number to your desired value." +msgstr "Dvokliknite na število poleg max_recents in spremenite število na želeno vrednost." + +#: C/gedit-plugin-guide.page:14(page/title) +msgid "Configure and use gedit Plugins" +msgstr "Nastavite in uporabite vstavke gedit" + +#: C/gedit-plugin-guide.page:15(page/p) +msgid "You can do more with gedit by using plugins. Several plugins are installed by default, but a large number of other plugins are available separately." +msgstr "Program gedit omogoča podporo vstavkov. Privzeto je nameščenih nekaj vstavkov, na voljo pa jih je še veliko več." + +#: C/gedit-plugin-guide.page:19(note/p) +msgid "Many Linux distributions make a group of these plugins available as a gedit-plugins package. Install the gedit-plugins package to make these extra plugins available to gedit." +msgstr "Veliko Linux distribucij naredi skupino teh vstavkov na voljo kot paket gedit-plugins. Če želite, da ima gedit na voljo več vstavkov, namestite paket gedit-plugins." + +#: C/gedit-plugin-guide.page:24(section/title) +msgid "Default gedit Plugins" +msgstr "Privzeti vstavki gedit" + +#: C/gedit-plugin-guide.page:28(section/title) +msgid "Additional gedit Plugins" +msgstr "Dodatni vstavki gedit" + +#: C/gedit-plugins-bookmarks.page:13(info/desc) +msgid "Record commonly-referenced locations with bookmarks" +msgstr "Posnemite pogosto sklicana mesta z zaznamki" + +#: C/gedit-plugins-bookmarks.page:16(page/title) +msgid "Bookmarks" +msgstr "Zaznamki" + +#: C/gedit-plugins-bookmarks.page:18(page/p) +msgid "Gedit bookmarks allow you to highlight important lines of text within your document or program, making them easier to find. You can also move up or down between bookmarks, making document navigation a bit faster." +msgstr "Zaznamki Gedit vam omogočajo poudarjanje pomembnih vrstic besedila v dokumentu ali programu, kar olajša njihovo iskanje. Med zaznamki se lahko premikate navzgor ali navzdol kar naredi krmarjenje po dokumentu hitrejše." + +#: C/gedit-plugins-bookmarks.page:22(page/p) +msgid "To enable the bookmark plugin, select Edit PreferencesPluginsBookmarks." +msgstr "Za omogočitev vstavka zaznamka izberite Uredi MožnostiVstavkiZaznamki." + +#: C/gedit-plugins-bookmarks.page:26(steps/title) +msgid "Bookmarks are inserted and removed by completing the same action. To insert or remove bookmarks:" +msgstr "Zaznamke lahko vstavite in odstranite z dokončanjem enakega dejanja. Za odstranitev ali odstranitev zaznamkov:" + +#: C/gedit-plugins-bookmarks.page:28(item/p) +msgid "Navigate to the line where you want to insert or remove the bookmark." +msgstr "Krmarite do vrstice kjer želite vstaviti ali odstraniti zaznamek." + +#: C/gedit-plugins-bookmarks.page:30(item/p) +msgid "Press CtrlAltB, or click EditToggle Bookmark." +msgstr "Pritisnite CtrlAltB ali kliknite UrediPreklopi zaznamek." + +#: C/gedit-plugins-bookmarks.page:36(steps/title) +msgid "To move between bookmarks:" +msgstr "Za premik med zaznamki:" + +#: C/gedit-plugins-bookmarks.page:37(item/p) +msgid "Press CtrlB to move to the next bookmark." +msgstr "Za premik na naslednji zaznamek pritisnite CtrlB." + +#: C/gedit-plugins-bookmarks.page:39(item/p) +msgid "Press CtrlShiftB to move to the previous bookmark." +msgstr "Za premik na prejšnji zaznamek pritisnite CtrlShiftB." + +#: C/gedit-plugins-bookmarks.page:41(note/p) +msgid "If you prefer using the mouse, you can click Edit Go to Next Bookmark or EditGo to Previous Bookmark." +msgstr "Če raje uporabljate miško, kliknite UrediPojdi na naslednji zaznamek ali UrediPojdi na prehodni zaznamek." + +#: C/gedit-plugins-bracket-comp.page:12(info/desc) +msgid "Auto-complete closing brackets" +msgstr "Samodejno dodaj zaklepaje" + +#: C/gedit-plugins-bracket-comp.page:15(page/title) +msgid "Bracket completion" +msgstr "Dopolnjevanje oklepajev" + +#: C/gedit-plugins-bracket-comp.page:17(page/p) +msgid "The Bracket Completion plugin will auto-complete closing brackets for curly braces, parentheses, and square brackets." +msgstr "Vstavek Dopolnjevanje oklepajev bo samodejno dokončal zaprte oklepaje za okrogle, oglate in zavite oklepaje." + +#: C/gedit-plugins-bracket-comp.page:20(page/p) +msgid "To enable the plugin, select EditPreferences PluginsBracket Completion." +msgstr "Za omogočitev tega vstavka izberite UrediMožnostiVstavkiDokončevanje oklepajev." + +#: C/gedit-plugins-bracket-comp.page:23(note/p) +msgid "This plugin does not automatically insert closing HTML or XML tags." +msgstr "Ta vstavek ne vstavki končnih oznak HTML ali XML." + +#: C/gedit-plugins-change-case.page:9(credit/name) +#: C/gedit-plugins-doc-stats.page:10(credit/name) +#: C/gedit-plugins-external-tools.page:11(credit/name) +#: C/gedit-plugins-file-browser.page:9(credit/name) +#: C/gedit-plugins-insert-date-time.page:9(credit/name) +#: C/gedit-plugins-install.page:12(credit/name) +#: C/gedit-plugins-modelines.page:9(credit/name) +#: C/gedit-plugins-snippets.page:13(credit/name) +#: C/gedit-plugins-sort.page:9(credit/name) +#: C/gedit-plugins-tag-list.page:9(credit/name) +#: C/gedit-replace.page:15(credit/name) +#: C/gedit-search.page:15(credit/name) +#: C/gedit-tabs-moving.page:14(credit/name) +#: C/gedit-tabs.page:15(credit/name) +#: C/gedit-undo-recent-action.page:14(credit/name) +#: C/gedit-view-open-files-in-sidepane.page:14(credit/name) +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#: C/gedit-plugins-change-case.page:17(info/desc) +msgid "Change the case of selected text" +msgstr "Spremenite velikost izbranega besedila" + +#: C/gedit-plugins-change-case.page:20(page/title) +msgid "Change case" +msgstr "Spremeni velikost črk" + +#: C/gedit-plugins-change-case.page:22(page/p) +msgid "This plugin helps you to change the case of selected portions of text. You can use it to change text to be all lower case, all upper case, to invert the case, or apply title case. To enable this plugin, select Edit PreferencesPluginsChange Case." +msgstr "Ta vstavek vam pomaga pri spremembi velikosti črk izbranih delov besedila. Uporabite ga lahko za spremembo vsega besedila v male črke, velike črke, obrnitev velikost črk ali uveljavitev velikosti naslova. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiSpremeni velikost črk." + +#: C/gedit-plugins-change-case.page:28(page/p) +msgid "Once the Change Case plugin is enabled, you can use it by completing the following steps:" +msgstr "Ko je vstavek Spremeni velikost črk omogočen, ga lahko uporabite tako da sledite naslednjim korakom:" + +#: C/gedit-plugins-change-case.page:31(item/p) +msgid "Highlight the portion of text that you want to change." +msgstr "Poudarite del besedila, ki ga želite spremeniti." + +#: C/gedit-plugins-change-case.page:32(item/p) +msgid "Select EditChange Case" +msgstr "Izberite UrediSpremeni velikost črk" + +#: C/gedit-plugins-change-case.page:34(item/p) +msgid "Choose your desired text-formatting option." +msgstr "Izberite vašo želeno možnost oblikovanja besedila." + +#: C/gedit-plugins-change-case.page:37(page/p) +msgid "The updates to the text formatting will take place immediately." +msgstr "Posodobitve oblikovanja besedila bo imele učinek takoj." + +#: C/gedit-plugins-change-case.page:39(note/p) +msgid "The Invert Case option will convert all lower case letters to upper case, and will convert all upper case letters to lower case." +msgstr "Možnost Obrni velikost besedila bo pretvorila vse male črke ali velike in vse velike črke v male." + +#: C/gedit-plugins-change-case.page:42(note/p) +msgid "The Title Case option will convert the first letter of each word to upper case. All other letters will be converted to lower case." +msgstr "Možnost Velike prve črke besed bo pretvorila prvo črko vsake besede v veliko črko. Vse ostale črke bodo pretvorjene v male črke." + +#: C/gedit-plugins-change-case.page:45(note/p) +msgid "If you have not highlighted any text, the Change Case feature will be grayed-out. You need to select a portion of text before you use the Change Case feature." +msgstr "V primeru da niste izbrali nobenega besedila, bo možnost Spremeni velikost siva. Preden lahko možnost Spremeni velikost uporabite, morate izbrati del besedila." + +#: C/gedit-plugins-character-map.page:14(credit/name) +#: C/gedit-plugins-word-completion.page:14(credit/name) +msgid "Paul Weaver" +msgstr "Paul Weaver" + +#: C/gedit-plugins-character-map.page:18(info/desc) +msgid "Insert special characters just by clicking on them" +msgstr "Vstavitev posebnih znakov s klikom nanje." + +#: C/gedit-plugins-character-map.page:21(page/title) +msgid "Character map" +msgstr "Preglednica znakov" + +#: C/gedit-plugins-character-map.page:30(page/p) +msgid "The Character Map plugin enables you to insert characters into your document that you may not be able to type easily using your keyboard. To enable this plugin, select EditPreferences PluginsCharacter Map." +msgstr "Vstavek Preglednica znakov vam omogoča vstavitev znakov,ki jih s tipkovnico morda ne bi bilo enostavno vnesti. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiPreglednica znakov." + +#: C/gedit-plugins-character-map.page:36(section/title) +msgid "Using Character Map" +msgstr "Uporaba preglednice znakov" + +#: C/gedit-plugins-character-map.page:38(section/p) +msgid "Once the plugin is enabled, you can add characters from the Character Map tab of the side panel (ViewSide Panel )." +msgstr "Ko je vstavek omogočen, lahko znake dodate iz zavihka Preglednica znakov v stranskem pultu (PogledStranski pladenj)." + +#: C/gedit-plugins-character-map.page:43(item/p) +msgid "Place the cursor at the point in your document at which you would like your special character." +msgstr "Premaknite kazalko, kamor želite vstaviti oznako ali poseben znak." + +#: C/gedit-plugins-character-map.page:45(item/p) +msgid "Open the side panel by selecting ViewSide Panel, or by pressing F9." +msgstr "Odprite stranski pladenj z izbiro PogledStranski pladenj ali pritiskom na F9." + +#: C/gedit-plugins-character-map.page:47(item/p) +msgid "Select the Character Map tab in the side panel." +msgstr "Izberite zavihek Preglednica znakov v stranskem pultu." + +#: C/gedit-plugins-character-map.page:48(item/p) +msgid "If neccessary, choose the character set to which your character belongs from the list at the top of the Character Map tab (e.g., Arabic)." +msgstr "Po potrebi izberite nabor znakov v preglednica znakov, kateremu iskani znak pripada." + +#: C/gedit-plugins-character-map.page:51(item/p) +msgid "Double click your desired character to insert it." +msgstr "Dvokliknite na želen znak za njegovo vstavitev." + +#: C/gedit-plugins-character-map.page:54(note/p) +msgid "You must click on the editing view of your document to continue editing normally." +msgstr "Za nadaljevanje z običajnim urejanjem morate kliknite na pogled urejanja." + +#: C/gedit-plugins-code-assistance.page:13(info/desc) +msgid "Real-time error highlighting for supported languages" +msgstr "Realnočasovno poudarjanje napak za podprte jezike" + +#: C/gedit-plugins-code-assistance.page:16(page/title) +msgid "Code assistance" +msgstr "Pomočnik kode" + +#: C/gedit-plugins-code-assistance.page:21(page/p) +msgid "The gedit-code-assistance plugin provides real-time error highlighting for C, C++ and Objective-C. To enable this plugin, select EditPreferencesPluginsCode Assistance." +msgstr "Vstavek gedit-code-assistance zagotavlja realnočasovno poudarjanje napak za C, C++ in Objective-C. Za omogočitev vstavka opombe kode izberite UrediMožnostiVstavkiPomoč kode." + +#: C/gedit-plugins-code-assistance.page:39(section/title) +msgid "How the code assistance plugin works" +msgstr "Kako deluje vstavek pomočnika kode" + +#: C/gedit-plugins-code-assistance.page:41(section/p) +msgid "The plugin currently relies on information in the makefile to deduce the Clang error-highlighting rules. It examines the make rules and determines which targets depend on the the file that is being parsed. The plugin then extracts the compiler flags by simulating an execution of those targets." +msgstr "Vstavek se trenutno za določitev pravil poudarjanja napak Clang zanaša na podatke v datoteki make. Vstavek preuči pravila make in določi kateri cilj je odvisen od datoteke, ki se razčljenjuje. Vstavek nato izvleče zastavice kodnega prevajalnika s simulacijo izvajanja teh ciljev." + +#: C/gedit-plugins-code-assistance.page:47(section/p) +msgid "This is not completely fool proof, of course. In the future, the plugin will allow you to manually specify the compile flags." +msgstr "To ni popolnoma odporno na neumnosti. V prihodnosti vam bo vstavek omogočal ročno določitev zastavic kodnega prevajanja." + +#: C/gedit-plugins-code-comment.page:13(info/desc) +msgid "Comment-out or uncomment a block of code" +msgstr "Dodajanje ali odstranitev opombe izbranega bloka kode" + +#: C/gedit-plugins-code-comment.page:16(page/title) +msgid "Code comment" +msgstr "Opomba kode" + +#: C/gedit-plugins-code-comment.page:18(page/p) +msgid "Code comments are portions of text that make it easier for people to understand a program's code, but they don't affect how a program works. Comments are separated from other parts of a program by special characters." +msgstr "Opombe kode so deli besedila, ki ljudem olajšajo razumevanje kode programa, vendar pa ne vplivajo na delovanje programa. Opombe so od drugih delov programa ločene s posebnimi znaki. " + +#: C/gedit-plugins-code-comment.page:23(page/p) +msgid "The code comment plugin makes it easier to quickly create or remove code comments. To enable the code comment plugin, select Edit PreferencesPluginsCode comment ." +msgstr "Vstavek opomba kode vam lahko olajša hitro ustvaritev ali odstranitev opomb kode. Za omogočitev vstavka opombe kode izberite UrediMožnostiVstavkiOpombe kode." + +#: C/gedit-plugins-code-comment.page:28(page/p) +msgid "To create or remove a comment:" +msgstr "Za ustvaritev ali odstranitev opombe:" + +#: C/gedit-plugins-code-comment.page:30(item/p) +msgid "Highlight the portion of text where you want to add or remove a comment." +msgstr "Poudarite del besedila, kjer želite dodati ali odstraniti opombo." + +#: C/gedit-plugins-code-comment.page:32(item/p) +msgid "To add a comment, click EditComment Code , or press CtrlM." +msgstr "Za dodajanje opombe kliknite UrediUstvari opombo kode ali pritisnite CtrlM." + +#: C/gedit-plugins-code-comment.page:35(item/p) +msgid "To remove a comment, click EditUncomment Code, or press ShiftCtrl M." +msgstr "Za odstranitev opombe kliknite na UrediOdstrani opombo kode ali pritisnite ShiftCtrlM." + +#: C/gedit-plugins-code-comment.page:40(note/p) +msgid "Gedit will automatically use the correct style of comment based on the language or syntax of the file. If gedit doesn't identify your language or syntax, you can select it from the language list in the bottom Status bar." +msgstr "Gedit bo samodejno uporabil pravilni slog opomb glede na jezik ali skladnjo datoteke. Če gedit jezika ali skladnje ne določi pravilno, jo lahko izberete s seznama jezikov na dnu Vrstice stanja." + +#: C/gedit-plugins-color-picker.page:13(info/desc) +msgid "Pick a color from a dialog and insert its hexadecimal representation" +msgstr "Izbor barve iz pogovornega okna njena vstavitev v šestnajstiškem zapisu" + +#: C/gedit-plugins-color-picker.page:17(page/title) +msgid "Color picker" +msgstr "Izbirnik parv" + +#: C/gedit-plugins-color-picker.page:19(page/p) +msgid "The color picker plugin helps you to insert the character codes that represent a certain color. This can make it easier to choose and use the correct color in your programs." +msgstr "Vstavek izbirnik barv vam pomaga vstaviti kode znakov, ki predstavljajo določeno barvo. To lahko olajša izbiro in uporabo prave barve v vaših programih." + +#: C/gedit-plugins-color-picker.page:23(page/p) +msgid "To enable the color picker plugin, select EditPreferencesPluginsColor Picker ." +msgstr "Za omogočitev vstavka izbirnika barv izberite UrediMožnostiVstavkiIzbirnik barv." + +#: C/gedit-plugins-color-picker.page:27(page/p) +msgid "To open and use the color picker:" +msgstr "Za odprtje in uporabo izbirnika barv:" + +#: C/gedit-plugins-color-picker.page:29(item/p) +msgid "Place your cursor at the point in your document where you want to insert the color code." +msgstr "Postavite kazalec na točko v dokumentu kamor želite vstaviti barvno kodo." + +#: C/gedit-plugins-color-picker.page:31(item/p) +msgid "Select ToolsPick Color.... The color picker dialog will appear." +msgstr "Izberite OrodjaIzberi barvo. Pojavilo se bo pogovorno okno izbirnika barv." + +#: C/gedit-plugins-color-picker.page:33(item/p) +msgid "Click on the desired color in the color picker window." +msgstr "Kliknite na želeno barvo v oknu izbirnika barv." + +#: C/gedit-plugins-color-picker.page:35(item/p) +msgid "The appropriate color code will be inserted where you had placed your cursor." +msgstr "Ustrezna barvna koda bo vstavljena na mesto kazalke." + +#: C/gedit-plugins-color-picker.page:37(item/p) +msgid "To close the color picker, click Close." +msgstr "Za zaprtje izbirnika barv, kliknite Zapri." + +#: C/gedit-plugins-color-picker.page:42(note/p) +msgid "You can make fine-grained adjustments to the color by adjusting the values for Hue, Saturation, Value, Red, Green, or Blue." +msgstr "Natančne prilagoditve barve lahko izvedete s prilagoditvijo vrednosti odtenek, nasičenost, vrednost, rdeča, zelena in modra." + +#: C/gedit-plugins-color-picker.page:44(note/p) +msgid "Additionally, you can save colors by right-clicking on any of the colored boxes in the color picker, and selecting Save color here. This will make it easier to insert commonly-used colors later." +msgstr "Poleg tega lahko barve shranite tudi z desnim klikom na kateregakoli od obarvanih polj v izbirniku barv in izbiro Shrani barvo tukaj. To vam bo kasneje olajšalo vstavljanje pogosto uporabljenih barv." + +#: C/gedit-plugins-commander.page:13(info/desc) +msgid "Use a command-line interface for advanced editing" +msgstr "Uporaba vmesnika ukazne vrstice za napredno urejanje" + +#: C/gedit-plugins-commander.page:16(page/title) +msgid "Commander" +msgstr "Ukaznik" + +#: C/gedit-plugins-commander.page:19(page/p) +msgid "The Commander plugin is a plugin for advanced gedit users that allows you to perform command-line actions on the current file. To enable the commander plugin, select Edit PreferencesPluginsCommander." +msgstr "Vstavek Ukaznik je vstavek za napredne uporabnike gedit, ki vam omogoča izvajanje dejanj ukazne vrstice na trenutni datoteki. Za omogočitev vstavka ukaznik izberite UrediMožnostiVstavkiUkaznik." + +#: C/gedit-plugins-commander.page:24(page/p) +msgid "Once you have enabled the plugin, activate it by pressing Ctrl.." +msgstr "Ko je vstavek omogočen, ga zaženite s pritiskom na Ctrl.." + +#: C/gedit-plugins-commander.page:27(note/p) +msgid "The last key in the above key combination is a period." +msgstr "Zadnja tipka nad kombinacijo tipk je pika." + +#: C/gedit-plugins-commander.page:33(td/p) +#: C/gedit-shortcut-keys.page:56(td/p) +#: C/gedit-shortcut-keys.page:88(td/p) +#: C/gedit-shortcut-keys.page:124(td/p) +#: C/gedit-shortcut-keys.page:168(td/p) +#: C/gedit-shortcut-keys.page:186(td/p) +#: C/gedit-shortcut-keys.page:217(td/p) +#: C/gedit-shortcut-keys.page:243(td/p) +msgid "To Do This" +msgstr "Za to opravilo" + +#: C/gedit-plugins-commander.page:33(td/p) +#: C/gedit-shortcut-keys.page:56(td/p) +#: C/gedit-shortcut-keys.page:88(td/p) +#: C/gedit-shortcut-keys.page:124(td/p) +#: C/gedit-shortcut-keys.page:168(td/p) +#: C/gedit-shortcut-keys.page:186(td/p) +#: C/gedit-shortcut-keys.page:217(td/p) +#: C/gedit-shortcut-keys.page:243(td/p) +msgid "Press This" +msgstr "Pritisnite to" + +#: C/gedit-plugins-commander.page:38(td/p) +msgid "See an overview of available commands" +msgstr "Oglejte si pregled razpoložljivih ukazov" + +#: C/gedit-plugins-commander.page:38(td/p) +msgid "Tab + Tab" +msgstr "Tab + Tab" + +#: C/gedit-plugins-commander.page:42(td/p) +msgid "Find a word within the current file" +msgstr "Najde besedo v trenutni datoteki" + +#: C/gedit-plugins-commander.page:42(td/p) +msgid "/ foo " +msgstr "/ foo " + +#: C/gedit-plugins-commander.page:44(td/p) +msgid "This will find the word foo." +msgstr "To bo našlo besedo foo." + +#: C/gedit-plugins-commander.page:47(td/p) +msgid "Replace a word within the current file" +msgstr "Zamenja besedo v trenutni datoteki" + +#: C/gedit-plugins-commander.page:47(td/p) +msgid "// foo bar" +msgstr "// foo bar" + +#: C/gedit-plugins-commander.page:49(td/p) +msgid "This will replace foo with bar." +msgstr "To bo zamenjalo foo z bar." + +#: C/gedit-plugins-commander.page:52(td/p) +msgid "Move the cursor to a certain line number in your file" +msgstr "Premik kazalke na določeno številko vrstice v datoteki" + +#: C/gedit-plugins-commander.page:53(td/p) +msgid "go [line number] or just g [line number]" +msgstr "go [števila vrstice] ali g [številka vrstice]" + +#: C/gedit-plugins-commander.page:57(td/p) +msgid "Toggle the bookmark indicator for the current line" +msgstr "Preklop kazalnika zaznamkov za trenutno vrstico" + +#: C/gedit-plugins-commander.page:58(td/p) +msgid "bookmark or just b" +msgstr "zaznamek ali le b" + +#: C/gedit-plugins-commander.page:63(note/p) +msgid "Some commands, such as the bookmark command require that the appropriate plugin be installed and activated. If you do not have the appropriate plugin installed and activated, you will receive an error message." +msgstr "Nekateri ukazi kot je ukaz zaznamek zahtevajo, da je ustrezen vstavek nameščen in omogočen. Če ustreznega vstavka nimate nameščenega in omogočenega, boste prejeli sporočilo o napaki." + +#: C/gedit-plugins-dashboard.page:13(info/desc) +msgid "Display recently-used and most-used files on startup" +msgstr "Ob zagonu prikaže nedavno uporabljene in najboj pogosto uporabljene datoteke." + +#: C/gedit-plugins-dashboard.page:16(page/title) +msgid "Dashboard" +msgstr "Pregledna plošča" + +#: C/gedit-plugins-dashboard.page:18(page/p) +msgid "The Dashboard plugin provides quick access to your most recently-used files and most-frequently used files. To activate the Dashboard plugin, select Edit PreferencesPluginsDashboard. You will need to restart gedit to activate the Dashboard plugin." +msgstr "Vstavek Pregledna plošča zagotavlja hiter dostop do vaših nedavno uporabljenih datotek in najpogosteje uporabljenih datotek. Za omogočitev vstavka Pregledna plošča izberite Uredi MožnostiVstavkiPregledna plošča. Za omogočitev vstavka Pregledna plošča boste morali ponovno zagnati gedit." + +#: C/gedit-plugins-dashboard.page:25(page/p) +msgid "The dashboard also includes a Search window, allowing you to search for files that may not appear in the list of files." +msgstr "Pregledna plošča vključuje tudi okno Iskanje, ki vam omogoča iskanje datotek, ki se morda ne pojavijo na seznamu datotek." + +#: C/gedit-plugins-dashboard.page:29(section/title) +msgid "Recently used files" +msgstr "Nedavno uporabljene datoteke" + +#: C/gedit-plugins-dashboard.page:30(section/p) +msgid "The dashboard will initially display a shortcut for an empty document and seven of your most recently-used files. Click on the empty document to create a new file. Click on any of the other files to open that file." +msgstr "Pregledna plošča bo na začetku prikazala bližnjico za prazen dokument in sedem najbolj nedavno uporabljenih datotek. Kliknite na prazen dokument za ustvarjanje nove datoteke. Kliknite na katerokoli drugo datoteko za odprtje te datoteke." + +#: C/gedit-plugins-dashboard.page:37(section/title) +msgid "Most frequently-used files" +msgstr "Najbolj pogosto uporabljane datoteke" + +#: C/gedit-plugins-dashboard.page:38(section/p) +msgid "Similarly, the dashboard displays a shortcut for an empty document and seven of your most frequently-used files. Click on the empty document to create a new file. Click on any of the other files to open that file." +msgstr "Podobno pregledna plošča prikazuje bližnjico za prazen dokument in sedem vaših najbolj nedavno uporabljenih datotek. Kliknite na prazen dokument za ustvarjanje nove datoteke. Kliknite na katerokoli od drugih datotek za odprtje te datoteke." + +#: C/gedit-plugins-dashboard.page:43(note/p) +msgid "Once activated, the dashboard will be displayed by default when you open gedit. You can also open the dashboard by clicking FileNew , or by pressing CtrlN." +msgstr "Ko bo omogočena, bo pregledna plošča ob odprtju gedita privzeto prikazana. Pregledno ploščo lahko odprete s klikom na DatotekaNova ali s pritiskom na CtrlN." + +#: C/gedit-plugins-doc-stats.page:17(info/desc) +msgid "View document statistics" +msgstr "Ogled statistike dokumenta" + +#: C/gedit-plugins-doc-stats.page:20(page/title) +msgid "Document statistics" +msgstr "Statistika dokumenta" + +#: C/gedit-plugins-doc-stats.page:22(page/p) +msgid "The Document Statistics plugin shows you various statistics about your current document. To enable this plugin, select Edit PreferencesPluginsDocument Statistics ." +msgstr "Vstavek Statistika dokumenta vam lahko pokaže različno statistiko o trenutnem dokumentu. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiStatistika dokumenta." + +#: C/gedit-plugins-doc-stats.page:28(section/title) +msgid "Using Document Statistics" +msgstr "Uporaba statistike dokumenta" + +#: C/gedit-plugins-doc-stats.page:30(section/p) +msgid "Once the plugin is enabled, use it by selecting Tools Document Statistics. A window will display the statistical information of your document, including the number of words, lines, characters, non-space characters, and the size of your file in bytes." +msgstr "Ko je vstavek omogočen, ga uporabite z izbiro OrodjaStatistika dokumenta. Okno bo prikazalo statistične podatke o dokumentu vključno s številom besed, vrstic, znakov, znakov brez presledkov in velikostjo datoteke v bajtih." + +#: C/gedit-plugins-doc-stats.page:36(section/p) +msgid "You can also use Document Statistics to show you information about just a portion of your document. To do this, use the mouse pointer to select the portion of text that you want to examine, and then select ToolsDocument Statistics. Gedit will display information for both your entire document, and for the portion of text that you highlighted." +msgstr "Statistiko dokumenta lahko uporabite tudi za prikaz le podatkov o delu vašega dokumenta. Za to uporabite miško za izbiro dela besedila, ki ga želite preučiti, in nato izberite OrodjaStatistika dokumenta. Gedit bo prikazal podatke tako za vaš celoten dokument kot za izbrani del besedila." + +#: C/gedit-plugins-draw-spaces.page:13(info/desc) +msgid "Show white space between words or portions of code" +msgstr "Pokaži presledke med besedami ali deli kode" + +#: C/gedit-plugins-draw-spaces.page:16(page/title) +msgid "Draw spaces" +msgstr "Izriši presledke" + +#: C/gedit-plugins-draw-spaces.page:18(page/p) +msgid "The Draw Spaces plugin is a simple plugin that can mark spaces, tabs, and other types of whitespace with a small, visible marker. By making whitespace visible, you can more easily see how whitespace is used in a document, and can apply spacing strategies more consistently." +msgstr "Vstavek Izriši presledke je enostaven vstavek, ki lahko označi presledke, zavihke in druge vrste presledkov z majhno, vidno oznako. Tako lahko vidite koliko presledkov uporabljate v dokumentu in uporabite bolj skladne strategije presledkov." + +#: C/gedit-plugins-draw-spaces.page:23(page/p) +msgid "To enable this plugin, select EditPreferences PluginsDraw Spaces. After you have enabled the plugin, you can set its options by highlighting the plugin and selecting Preferences." +msgstr "Vstavek lahko omogočite z izbiro UrediMožnostiVstavkiIzriši presledke. Ko boste vstavek omogočili, lahko do njega dostopate z izbiro vstavka in izbiro Možnosti." + +#: C/gedit-plugins-draw-spaces.page:29(list/title) +msgid "By default, the Draw Spaces plugin will mark the following types of whitespace in a file:" +msgstr "Privzeto bo vstavek Izriši presledke označil naslednje vrste presledkov v datoteki:" + +#: C/gedit-plugins-draw-spaces.page:31(item/p) +msgid "Spaces" +msgstr "Presledki" + +#: C/gedit-plugins-draw-spaces.page:32(item/p) +msgid "Tabs" +msgstr "Tabulatorji" + +#: C/gedit-plugins-draw-spaces.page:33(item/p) +msgid "Leading spaces" +msgstr "Vodilni presledki" + +#: C/gedit-plugins-draw-spaces.page:34(item/p) +msgid "Spaces in text" +msgstr "Presledki v besedilu" + +#: C/gedit-plugins-draw-spaces.page:35(item/p) +msgid "Trailing spaces" +msgstr "Sledeči presledki" + +#: C/gedit-plugins-draw-spaces.page:39(list/title) +msgid "You can also set the plugin to mark:" +msgstr "Vstavek lahko nastavite tudi, da označi:" + +#: C/gedit-plugins-draw-spaces.page:40(item/p) +msgid "New Lines" +msgstr "Nove vrstice" + +#: C/gedit-plugins-draw-spaces.page:41(item/p) +msgid "Non-breaking spaces" +msgstr "Nedeljivi presledki" + +#: C/gedit-plugins-draw-spaces.page:44(note/p) +msgid "Though you will be able to see the dots when you work on a file, the dots will not be visible when you print a file to paper." +msgstr "Pike boste lahko videli med delom na datoteki, vendar pike ob tisku na papir ne bodo vidne." + +#: C/gedit-plugins-external-tools.page:18(info/desc) +msgid "Run scripts on your current files, and interact with other applications" +msgstr "Poženite skripte na svojih trenutnih datotekah in se sporazumevajte z drugimi programi" + +#: C/gedit-plugins-external-tools.page:22(page/title) +msgid "External tools" +msgstr "Zunanja orodja" + +#: C/gedit-plugins-external-tools.page:24(page/p) +msgid "The External Tools plugin can help simplify repetitive tasks. Specifically, it extends gedit by helping you to run scripts on your working files, and by allowing gedit to interact with other programs on your computer. To enable the External Tools plugin, select EditPreferencesPlugins External Tools." +msgstr "Vstavek Zunanja orodja lahko poenostavi ponavljajoče naloge. gedit razširi tako, da vam pomaga pri izvajanju skriptov na vaših delovnih datotekah in z omogočanjem sporazumevanja med gedit in drugimi programi na računalniku. Za omogočitev vstavka zunanja orodja izberite UrediMožnostiVstavkiZunanja orodja." + +#: C/gedit-plugins-external-tools.page:32(section/title) +msgid "Configure the external tools plugin" +msgstr "Nastavitev vstavka zunanjih orodij" + +#: C/gedit-plugins-external-tools.page:34(section/p) +msgid "Once you have enabled the plugin, you will need to configure it to suit your needs. The configuration options are available by selecting ToolsManage External Tools." +msgstr "Ko je vstavek omogočen, ga boste morali nastaviti, da bo ustrezal vašim potrebam. Možnosti nastavitve so na voljo z izbiro OrodjaUpravljaj zunanja orodja." + +#: C/gedit-plugins-external-tools.page:38(note/p) +msgid "This plugin is for advanced users, and requires knowledge of scripting to be used effectively. Use this plugin with care, as mistakes with your scripts can affect your work in unintended ways." +msgstr "Ta vstavek je za napredne uporabnike in za učinkovito uporabo zahteva znanje skriptanja. Ta vstavek uporabljajte previdno, saj lahko napake v vaših skriptih na nepredvidljive načine." + +#: C/gedit-plugins-file-browser.page:16(info/desc) +msgid "Use the side pane to browse and open files" +msgstr "Uporabite stranski pladenj za brskanje in odpiranje datotek" + +#: C/gedit-plugins-file-browser.page:19(page/title) +msgid "File browser pane" +msgstr "Pladenj pregledovalnika datotek" + +#: C/gedit-plugins-file-browser.page:21(page/p) +msgid "Depending on how you use gedit, you may find it helpful to use the File Browser pane plugin. This plugin embeds a file browser in the side pane, giving you easy access to your frequently-used files." +msgstr "Če iz programa gedit pogosto odpirate datoteke, vam bo morda v pomoč vstavek Pladenj brskalnika datotek. Ta vstavek v stranski pladenj vstavi brskalnik datotek Gnome, ki vam omogoča enostaven dostop do vaših pogosto uporabljenih datotek." + +#: C/gedit-plugins-file-browser.page:26(page/p) +msgid "You can enable the Side Pane by selecting Edit PreferencesPluginsFile Browser Pane ." +msgstr "Za omogočitev vstavka Stranski pladenj izberite UrediMožnostiVstavkiPladenj brskalnika datotek." + +#: C/gedit-plugins-file-browser.page:32(section/p) +msgid "To activate and use the side pane, select View Side pane (or just press F9), and then click on the file-browser icon at the bottom of the pane." +msgstr "Za omogočitev in uporabo stranskega pladnja izberite PogledStranski pladenj (ali pa pritisnite F9) in nato kliknite na ikono brskalnik-datotek na dnu pladnja." + +#: C/gedit-plugins-insert-date-time.page:17(info/desc) +msgid "Insert the current date/time at the cursor position" +msgstr "Vstavi trenutni datum in uro na položaj kazalke" + +#: C/gedit-plugins-insert-date-time.page:20(page/title) +msgid "Insert date/time" +msgstr "Vstavi datum/uro" + +#: C/gedit-plugins-insert-date-time.page:22(page/p) +msgid "As this name of this plugin suggests, the Insert Date/Time plugin allows you to insert the date and/or time at the current cursor position. To enable this plugin, select EditPreferences PluginsInsert Date/Time. To use the plugin, press EditInsert Date and Time." +msgstr "Kot predlaga ime tega vstavka, vam vstavek Vstavi datum/čas omogoča vstavljanje datuma in/ali časa na trenuten položaj kazalke. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiVstavi datum/čas." + +#: C/gedit-plugins-insert-date-time.page:28(page/p) +msgid "By default, the Insert Date/Time plugin will prompt you to choose your preferred date/time format each time that you use the plugin. However, you can choose your own default date and time format by selecting Edit PreferencesPluginsInsert Date/Time Configure." +msgstr "Privzeto vas bo vstavek Vstavi datum/čas pozval za izbiro prednostne oblike datuma/časa vsakič, ko uporabite vstavek. Vendar pa lahko izberete tudi svojo privzeto obliko datuma in časa z izbiro UrediMožnostiVstavkiVstavi datum in časNastavi." + +#: C/gedit-plugins-install.page:15(info/desc) +msgid "How to install third-party plugins" +msgstr "Kako namestiti vstavke tretjih oseb" + +#: C/gedit-plugins-install.page:18(page/title) +msgid "Additional gedit plugins" +msgstr "Dodatni vstavki gedit" + +#: C/gedit-plugins-install.page:20(page/p) +msgid "Installing third-party plugins gives you extra functionality that isn't available in default gedit plugins, or even the extra plugins that are part of the gedit-plugins package. An online list of third-party plugins is kept here." +msgstr "Nameščanje vstavkov tretjih oseb vam da dodatne zmožnosti, ki privzeto niso vključene v privzetih vstavkih gedit ali dodatnih vstavkih, ki so del paketa gedit-plugins. Spletni seznam vstavkov tretjih oseb lahko najdete tukaj." + +#: C/gedit-plugins-install.page:27(page/p) +msgid "Installing a third-party plugin involves downloading the plugin, placing the plugin files in the right directory, and activating the plugin." +msgstr "Namestitev vstavkov tretjih oseb vključuje prejem vstavka, postavitev vstavka v pravo mapo in njegovo omogočitev." + +#: C/gedit-plugins-install.page:31(item/p) +msgid "You can usually download a plugin from the plugin's website, but may need to use a revision-control program like git, bazaar, or subversion to copy a plugin's software repository from the internet. Refer to the plugin's documentation for information on getting the plugin." +msgstr "Običajno lahko vstavek prejmete s spletišča vstavka. Včasih boste za kopiranje skladišča vstavka z interneta morda potrebovali program za nadzor predelav kot je git, bazaar, ali subversion. Za več podrobnosti o tem kako dobiti vstavek si oglejte dokumentacijo vstavka." + +#: C/gedit-plugins-install.page:36(item/p) +msgid "Place the plugin files into the /home/username/.local/share/gedit/plugins directory." +msgstr "Datoteke vstavkov kopirajte v mapo /home/username/.local/share/gedit/plugins." + +#: C/gedit-plugins-install.page:39(item/p) +msgid "Of course, replace the word username with your own username." +msgstr "Besedo uporabniško ime zamenjajte s svojim uporabniškim imenom." + +#: C/gedit-plugins-install.page:41(item/p) +msgid "After you have placed the plugin files into the correct directory, the plugin will appear in the Preferences menu. Select Edit PreferencesPlugins[Name of Plugin] to enable the plugin." +msgstr "Potem ko ste datoteke vstavka premaknili v pravilno mapo, se bo vstavek pojavil v meniju Možnosti. Izberite UrediMožnostiVstavki[Ime vstavka] za omogočitev vstavka." + +#: C/gedit-plugins-install.page:45(item/p) +#: C/gedit-plugins-session-saver.page:46(item/p) +msgid "Click Close." +msgstr "Kliknite Zapri." + +#: C/gedit-plugins-install.page:48(page/p) +msgid "After you have enabled the plugin, it should be available for you to use." +msgstr "Po namestitvi vstavka, bo na voljo za uporabo." + +#: C/gedit-plugins-install.page:52(note/p) +msgid "The .local directory is hidden by default. To view it and other hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "Mapa .local je privzeto skrita. Za prikaz skritih datotek kliknite PogledPokaži skrite datoteke ali pritisnite CtrlH." + +#: C/gedit-plugins-install.page:59(note/p) +msgid "If the directory .local/share/gedit/plugins/ is not present on your system, you will need to create it." +msgstr "V primeru da mapa .local/share/gedit/plugins/ na vašem sistemu ni prisotna, jo boste morali ustvariti." + +#: C/gedit-plugins-join-split-lines.page:13(info/desc) +msgid "Join several lines of text, or split long lines" +msgstr "Združi več vrstic besedila ali razdeli dolge vrstice" + +#: C/gedit-plugins-join-split-lines.page:16(page/title) +msgid "Join/Split lines" +msgstr "Združi/razdeli vrstice" + +#: C/gedit-plugins-join-split-lines.page:18(page/p) +msgid "The Join/Split Lines plugin can join shorter lines into one longer line, or can split a long line into multiple shorter lines." +msgstr "Vstavek združi/razdeli vrstice lahko krajše vrstice združi v daljšo vrstico ali razdeli dolgo vrstico v več kratkih vrstic." + +#: C/gedit-plugins-join-split-lines.page:21(page/p) +msgid "To enable this plugin, select EditPreferences PluginsJoin/Split Lines." +msgstr "Za omogočitev tega vstavka izberite UrediMožnostiVstavkiZdruži/razdeli vrstice." + +#: C/gedit-plugins-join-split-lines.page:25(steps/title) +msgid "To join multiple lines into one longer line:" +msgstr "Za združitev več vrstic v eno daljšo vrstico:" + +#: C/gedit-plugins-join-split-lines.page:26(item/p) +msgid "Select the lines that you want to join. To do this, you can use the mouse, or you can press ShiftUp Arrow or ShiftDown Arrow." +msgstr "Izberite vrstice, ki jih želite združiti. Za preklop med odprtimi zavihki, ko ste v celozaslonskem načinu, pritisnite ShiftPuščica navzgor ali ShiftPuščica navzdol." + +#: C/gedit-plugins-join-split-lines.page:30(item/p) +msgid "Press CtrlJ." +msgstr "Pritisnite CtrlJ." + +#: C/gedit-plugins-join-split-lines.page:31(item/p) +msgid "The lines that you selected will be joined into one longer line." +msgstr "Izbrane vrstice bodo združene v eno dolgo vrstico." + +#: C/gedit-plugins-join-split-lines.page:36(steps/title) +msgid "To split one line into multiple lines:" +msgstr "Za razdelitev vrstice v več vrstic:" + +#: C/gedit-plugins-join-split-lines.page:37(item/p) +msgid "Select the line that you want to split by placing your cursor anywhere on that line." +msgstr "Izberite vrstico, ki jo želite razdeliti, s postavljanjem svoje kazalke kjerkoli na vrstici." + +#: C/gedit-plugins-join-split-lines.page:39(item/p) +msgid "Press CtrlShiftJ." +msgstr "Pritisnite CtrlShiftJ." + +#: C/gedit-plugins-join-split-lines.page:41(item/p) +msgid "The line will be split into multiple lines. Spaces are used to determine where it is safe to split a line, and the length of each line will not exceed 80 characters." +msgstr "Vrstica bo bila razdeljena v več vrstic. Presledki se uporabljajo za določitev kje je varno razdeliti vrstico in dolžina vrstice ne sme presegati 80 znakov." + +#: C/gedit-plugins-modelines.page:16(info/desc) +msgid "Emacs, Kate and Vim-style modelines support for gedit" +msgstr "Podpora za modelines v slogu programov Emacs, Kate in Vim." + +#: C/gedit-plugins-modelines.page:19(page/title) +msgid "Modelines" +msgstr "Modelines" + +#: C/gedit-plugins-modelines.page:21(page/p) +msgid "The Modelines plugin allows gedit to analyze the lines of text at the start and end of a file, and then apply a set of document preferences to the file. The Modelines plugin supports a subset of the options used by the Emacs, Kate and Vim text editors." +msgstr "Vstavek Modelines programu gedit omogoča analizo vrstic besedila na začetku in koncu datoteke in nato uveljavitev možnosti dokumenta na datoteko. Vstavek Modelines omogoča uporabo podniza možnosti, ki jih uporbaljajo urejevalniki besedila Emacs, Kate in Vim." + +#: C/gedit-plugins-modelines.page:27(page/p) +msgid "To enable the Modelines plugin, select Edit PreferencesPluginsModelines." +msgstr "Za omogočitev vstavka Modelines izberite UrediMožnostiVstavkiModelines." + +#: C/gedit-plugins-modelines.page:31(section/title) +msgid "General Modeline Options" +msgstr "Splošne možnosti modeline" + +#: C/gedit-plugins-modelines.page:32(section/p) +msgid "The following options can be set using gedit modelines:" +msgstr "Z gedit modelines lahko nastavite naslednje možnosti:" + +#: C/gedit-plugins-modelines.page:34(item/p) +msgid "Tab width" +msgstr "Širina tabulatorja" + +#: C/gedit-plugins-modelines.page:35(item/p) +msgid "Indent width" +msgstr "Širina zamika" + +#: C/gedit-plugins-modelines.page:36(item/p) +msgid "Inserting spaces instead of tabs" +msgstr "Vstavlajnje presledkov namesto tabulatorjev" + +#: C/gedit-plugins-modelines.page:37(item/p) +msgid "Text Wrapping" +msgstr "Prelom besedila" + +#: C/gedit-plugins-modelines.page:38(item/p) +msgid "Right margin width" +msgstr "Širina desnega odmika" + +#: C/gedit-plugins-modelines.page:41(note/p) +msgid "Preferences set using modelines take precedence over the ones specified in the preference dialog." +msgstr "Možnosti nastavljene z modelines imajo prednost pred možnostmi, nastavljenimi v pogovornem oknu možnosti." + +#: C/gedit-plugins-modelines.page:46(section/title) +msgid "Emacs Modelines" +msgstr "Modelines Emacs" + +#: C/gedit-plugins-modelines.page:48(section/p) +msgid "The first two lines of a document are scanned for Emacs modelines, and gedit supports the following Emacs modeline options:" +msgstr "Prvi dve vrstici dokumenta sta preiskani za modelines Emacs. gedit podpira naslednje možnosti modeline Emacs:" + +#: C/gedit-plugins-modelines.page:52(item/p) +msgid "Tab-width" +msgstr "Širina tabulatorja" + +#: C/gedit-plugins-modelines.page:53(item/p) +msgid "Indent-offset" +msgstr "Odmik zamika" + +#: C/gedit-plugins-modelines.page:54(item/p) +msgid "Indent-tabs-mode" +msgstr "Način zamikanja zavihkov" + +#: C/gedit-plugins-modelines.page:55(item/p) +msgid "Text auto-wrap" +msgstr "Samodejno prelaml" + +#: C/gedit-plugins-modelines.page:57(section/p) +msgid "For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "Za več podrobnosti o modelines Emacs obiščite Priročnik GNU Emacs." + +#: C/gedit-plugins-modelines.page:63(section/title) +msgid "Kate Modelines" +msgstr "Modelines Kate" + +#: C/gedit-plugins-modelines.page:65(section/p) +msgid "The first and last ten lines a document are scanned for Kate modelines, and gedit supports the following Kate modeline options:" +msgstr "Za modelines Kate je preiskanih prvih in zadnjih deset vrstic dokumenta. gedit podpira naslednje možnosti modeline Kate:" + +#: C/gedit-plugins-modelines.page:70(item/p) +msgid "tab-width" +msgstr "širina-tabulatorja" + +#: C/gedit-plugins-modelines.page:71(item/p) +msgid "indent-width" +msgstr "širina-zamika" + +#: C/gedit-plugins-modelines.page:72(item/p) +msgid "space-indent" +msgstr "presledek zamika" + +#: C/gedit-plugins-modelines.page:73(item/p) +msgid "word-wrap" +msgstr "prelomi besede" + +#: C/gedit-plugins-modelines.page:74(item/p) +msgid "word-wrap-column" +msgstr "prelomi besede v stolpcu" + +#: C/gedit-plugins-modelines.page:77(section/p) +msgid "For more information about Kate modelines, visit the Kate website." +msgstr "Za več podrobnosti o modelines Kate obiščite spletišče Kate." + +#: C/gedit-plugins-modelines.page:82(section/title) +msgid "Vim Modelines" +msgstr "Modelines Vim" + +#: C/gedit-plugins-modelines.page:83(section/p) +msgid "The first and last three lines a document are scanned for Vim modelines, and gedit supports the following Vim modeline options:" +msgstr "Za modelines Vim so preiskane prve in zadnje tri vrstice dokumenta. gedit podpira naslednje možnosti modeline Vim:" + +#: C/gedit-plugins-modelines.page:88(item/p) +msgid "et (expandtab)" +msgstr "et (razširizavihek)" + +#: C/gedit-plugins-modelines.page:89(item/p) +msgid "ts (tabstop)" +msgstr "ts (zaustavi zavihek)" + +#: C/gedit-plugins-modelines.page:90(item/p) +msgid "sw (shiftwidth)" +msgstr "sw (širina zamika)" + +#: C/gedit-plugins-modelines.page:91(item/p) +msgid "wrap" +msgstr "prelom" + +#: C/gedit-plugins-modelines.page:92(item/p) +msgid "textwidth" +msgstr "širina besedila" + +#: C/gedit-plugins-modelines.page:95(section/p) +msgid "For more information on Vim modelines, visit the Vim website." +msgstr "Za več podrobnosti o modelines Vim obiščite spletišče Vim." + +#: C/gedit-plugins-multi-edit.page:11(credit/years) +msgid "2011" +msgstr "2011" + +#: C/gedit-plugins-multi-edit.page:14(info/desc) +msgid "Edit a document in multiple places at once" +msgstr "Urejanje dokumenta na več mestih hkrati" + +#: C/gedit-plugins-multi-edit.page:17(page/title) +msgid "Multi edit" +msgstr "Hkratno urejanje" + +#: C/gedit-plugins-multi-edit.page:19(page/p) +msgid "The Multi Edit plugin allows you to edit a document in multiple places at once. This can be helpful when performing tedious editing tasks. To enable the Multi Edit plugin, select Edit PreferencesPluginsMulti Edit." +msgstr "Vstavek Hkratno urejanje vam omogoča urejanje dokumenta na več mestih hkrati. To je lahko uporabno pri izvajanju težavnih nalog urejanje. Za omogočitev vstavka Hkratnega Urejanja izberite UrediMožnostiVstavkiHkratno urejanje." + +#: C/gedit-plugins-multi-edit.page:24(page/p) +msgid "After you have enabled the plugin, turn-on Multi Edit mode by pressing CtrlShiftC, or clicking EditMulti Edit Mode. You can then select the points in your file that you would like start editing." +msgstr "Ko ste vstavek omogočili, način hkratnega urejanja vklopite s pritiskom na CtrlShiftC, ali klikom UrediNačin hkratnega urejanja. Nato lahko izberete točke v datoteki, kjer želite začeti z urejanjem." + +#: C/gedit-plugins-multi-edit.page:29(page/p) +msgid "To insert editing points in your file:" +msgstr "Za vstavitev točk urejanja v datoteko:" + +#: C/gedit-plugins-multi-edit.page:31(item/p) +msgid "Place your cursor at your first desired editing point." +msgstr "Postavite kazalko na prvo želeno točko urejanja" + +#: C/gedit-plugins-multi-edit.page:32(item/p) +msgid "Press CtrlE." +msgstr "Pritisnite CtrlE." + +#: C/gedit-plugins-multi-edit.page:33(item/p) +msgid "Move to your next editing point, and press Ctrl E again." +msgstr "Premaknite se na naslednjo točko urejanja in ponovno pritisnite CtrlE." + +#: C/gedit-plugins-multi-edit.page:35(item/p) +msgid "Continue inserting editing points, adding as many as you need." +msgstr "Nadaljujte z vstavljanjem točk urejanja in jih dodajte toliko kolikor jih potrebujete." + +#: C/gedit-plugins-multi-edit.page:39(page/p) +msgid "Once you have inserted all of your editing points, you can make your desired edits." +msgstr "Ko ste vstavili vse točke urejanja, izvedite želena urejanja." + +#: C/gedit-plugins-multi-edit.page:42(page/p) +msgid "To remove editing points, press the Esc key. This will remove all of the editing points. Pressing the Esc key again will turn off Multi Edit mode, returning the editor back to its normal state." +msgstr "Za odstranitev točk urejanja pritisnite tipko Esc. To bo odstranilo vse točke urejanja. Ponoven pritisk na tipko Esc bo izklopil način Hkratnega urejanja in vrnil urejevalnik v običajno stanje." + +#: C/gedit-plugins-pyconsole.page:12(info/desc) +msgid "Add an interactive Python console to the bottom pane" +msgstr "Vzajemna konzola Python v spodnjem pladnju" + +#: C/gedit-plugins-pyconsole.page:15(page/title) +msgid "Python console" +msgstr "Konzola python" + +#: C/gedit-plugins-pyconsole.page:17(page/p) +msgid "You can add a Python console to the bottom pane, allowing you to test Python scripts without leaving gedit. To enable the Python console, select EditPreferencesPlugins Python Console." +msgstr "Konzolo Python lahko dodate na spodnji pult. Omogoča vam preizkus skriptov Python ne da bi zapustili gedit. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiKonzola Python." + +#: C/gedit-plugins-pyconsole.page:22(page/p) +msgid "Once the Python console is enabled, you can open it by selecting ViewBottom Pane, or just press ShiftF9." +msgstr "Ko je konzola Python omogočena, dodajte terminal na spodnji pult z izbiro PogledSpodnji pult ali pritisnite ShiftF9." + +#: C/gedit-plugins-pyconsole.page:26(note/p) +msgid "If you have also enabled the Embeded Terminal plugin, the Python Console will appear as a separate tab in the bottom pane." +msgstr "V primeru da imate omogočen tudi vstavek Vstavljen terminal, se bo Konzola Python pojavila kot ločen zavihek v spodnjem pladnju." + +#: C/gedit-plugins-quick-open.page:13(info/desc) +msgid "Quickly open a file or set of files" +msgstr "Hitro odpiranje ene ali več datotek" + +#: C/gedit-plugins-quick-open.page:16(page/title) +msgid "Quick open" +msgstr "Hitro odpiranje" + +#: C/gedit-plugins-quick-open.page:18(page/p) +msgid "As the name of this plugin would imply, the Quick Open plugin helps you to open files more quickly than the regular way of opening files. To enable this plugin, select Edit PreferencesPluginsQuick Open." +msgstr "Vstavek Hitro odpiranje vam omogoča hitrejše odpiranje datotek kot z običajnim načinom odpiranja datotek. Za omogočitev vstavka izberite UrediMožnostiVstavkiHitro odpiranje." + +#: C/gedit-plugins-quick-open.page:23(page/p) +msgid "Once you've enabled it, here is how to use the plugin:" +msgstr "Ko ste ga omogočili, ga lahko uporabljate na naslednji način:" + +#: C/gedit-plugins-quick-open.page:26(item/p) +msgid "Open the Quick Open dialog by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "Odprite pogovorno okno Hitro odpiranje s pritiskom na CtrlAltO ali izbiro DatotekaHitro odpiranje." + +#: C/gedit-plugins-quick-open.page:29(item/p) +msgid "The Quick Open file dialog will appear." +msgstr "Odprlo se bo pogovorno okno datotek Hitro odpiranje." + +#: C/gedit-plugins-quick-open.page:30(item/p) +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Uporabite miško in izberite datoteko ali datoteke, ki jih želite odpreti." + +#: C/gedit-plugins-quick-open.page:32(item/p) +msgid "To select several individual files, hold down your Ctrl key while you click on the files that you want to open." +msgstr "Za izbiro več posameznih datotek držite tipko Ctrl medtem ko klikate datoteke, ki jih želite odpreti." + +#: C/gedit-plugins-quick-open.page:34(item/p) +msgid "To select a group of files, click on the first file that you want to open, hold down the Shift key, and then click on the last file in the list that you want to open." +msgstr "Za izbiro skupine datotek kliknite na prvo datoteko, ki jo želite odpreti, držite tipko Shift in nato kliknite na zadnjo datoteko na seznamu, ki jo želite odpreti." + +#: C/gedit-plugins-quick-open.page:40(note/p) +msgid "The Quick Open plugin will only display files that you have previously opened." +msgstr "Vstavek Hitro odpiranje bo prikazal le datoteke, ki ste jih v preteklosti že odprli." + +#: C/gedit-plugins-session-saver.page:13(info/desc) +msgid "Save and restore your working sessions" +msgstr "Shranjevanje in obnavljanje delovne seje" + +#: C/gedit-plugins-session-saver.page:16(page/title) +msgid "Session Saver" +msgstr "Shranjevalnik seje" + +#: C/gedit-plugins-session-saver.page:18(page/p) +msgid "The Session Saver plugin saves groups of files together so that you can open them together at a later time. To enable the plugin, select EditPreferencesPlugins Session Saver." +msgstr "Vstavek Shranjevalnik seje shrani skupino datotek, da jo lahko kasneje odprete skupaj. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiShranjevalnik seje." + +#: C/gedit-plugins-session-saver.page:24(steps/title) +msgid "To save a new session:" +msgstr "Za shranitev nove seje:" + +#: C/gedit-plugins-session-saver.page:25(item/p) +msgid "Select FileSaved SessionsSave current session." +msgstr "Izberite DatotekaShranjene sejeShrani trenutno sejo." + +#: C/gedit-plugins-session-saver.page:27(item/p) +msgid "Type a session name in the Save session dialog box." +msgstr "Vnesite ime seje v pogovorno polje Shrani sejo." + +#: C/gedit-plugins-session-saver.page:29(item/p) +msgid "Click Save." +msgstr "Kliknite Shrani." + +#: C/gedit-plugins-session-saver.page:33(steps/title) +msgid "To open an existing session:" +msgstr "Za odprtje obstoječe seje:" + +#: C/gedit-plugins-session-saver.page:34(item/p) +msgid "Select FileSaved Sessions." +msgstr "Izberite DatotekaShranjene seje." + +#: C/gedit-plugins-session-saver.page:36(item/p) +msgid "Click the name of your desired session." +msgstr "Izberite ime svoje želene seje." + +#: C/gedit-plugins-session-saver.page:40(steps/title) +msgid "To delete an existing session:" +msgstr "Za izbris obstoječe seje:" + +#: C/gedit-plugins-session-saver.page:41(item/p) +msgid "Select FileSaved Sessions Manage saved sessions." +msgstr "Izberite DatotekaShranjene sejeUpravljaj shranjene seje." + +#: C/gedit-plugins-session-saver.page:43(item/p) +msgid "Select the name of the session that you want to delete." +msgstr "Izberite ime seje, ki jo želite izbrisati." + +#: C/gedit-plugins-session-saver.page:45(item/p) +msgid "Click Delete." +msgstr "Kliknite Izbriši" + +#: C/gedit-plugins-session-saver.page:47(item/p) +msgid "The session name will still be listed in your list of sessions until you close gedit." +msgstr "Ime seje bo izpisano na seznamu sej, dokler programa gedit ne zaprete." + +#: C/gedit-plugins-snippets-guide.page:11(info/desc) +msgid "Use snippets to quickly insert often-used pieces of text" +msgstr "Uporabite koščke za hitro vstavljanje pogosto uporabljenih delov besedila" + +#: C/gedit-plugins-snippets-guide.page:14(page/title) +msgid "Snippets" +msgstr "Izrezki" + +#: C/gedit-plugins-snippets-guide.page:16(page/p) +msgid "Snippets provide a convenient way of inserting repetitive portions of code into your files. For example, an HTML snippet for the <img> tag would insert the opening and closing portions of the tag, as well as fixed places where you can enter image attributes. This can make writing code easier and faster." +msgstr "Izrezki zagotavljajo priročen način vstavljanja ponavljajočih se delov kode v vaše datoteke. Na primer izrezek HTML za oznako <img> bi vstavil odpirajoči in zapirajoči del oznake kot tudi stalna mesta, kjer lahko vnesete atribute slike. To lahko naredi pisanje kode lažje in hitrejše." + +#: C/gedit-plugins-snippets-guide.page:22(page/p) +msgid "To enable the Snippets plugin, select Edit PreferencesPluginsSnippets." +msgstr "Za omogočitev vstavka Izrezki izberite UrediMožnostiVstavkiIzrezki." + +#: C/gedit-plugins-snippets-guide.page:26(section/title) +msgid "Using, Modifying and creating snippets" +msgstr "Uporaba, spreminjanje in ustvarjanje izrezkov" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:35(media) +msgctxt "_" +msgid "external ref='figures/gedit-html-snippet.png' md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "external ref='figures/gedit-html-snippet.png' md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#: C/gedit-plugins-snippets.page:16(info/desc) +msgid "Inserting snippets of text into your files" +msgstr "Vstavljanje odsekov besedila v datoteke" + +#: C/gedit-plugins-snippets.page:19(page/title) +msgid "Using snippets" +msgstr "Uporaba izrezkov" + +#: C/gedit-plugins-snippets.page:21(page/p) +msgid "The following points will help you get started with using snippets:" +msgstr "Naslednje točke vam bodo pomagale začeti delati z izrezki:" + +#: C/gedit-plugins-snippets.page:24(item/p) +msgid "Make sure the syntax is set appropriately." +msgstr "Prepričajte se, da je skladna pravilno nastavljena." + +#: C/gedit-plugins-snippets.page:25(item/p) +msgid "The status bar at the bottom of the gedit window will show the current language setting. This language setting is what allows gedit to insert the proper snippets. Gedit will normally detect the language or syntax of the file that you're using, but sometimes you may need to set it." +msgstr "Vrstica stanja na dnu okna gedit bo prikazala trenutno nastavitev jezika. Nastavitev jezika geditu omogoča vstavitev ustreznik odsekov. Gedit običajno zazna jezik ali skladnjo, ki jo uporabljate, vendar jo boste morda morali včasih nastaviti ročno." + +#: C/gedit-plugins-snippets.page:33(figure/desc) +msgid "In this example, the language is set to HTML." +msgstr "V tem primeru je jezik nastavljen na HTML" + +#: C/gedit-plugins-snippets.page:40(item/p) +msgid "Review the default snippets." +msgstr "Pregled privzetih izrezkov" + +#: C/gedit-plugins-snippets.page:41(item/p) +msgid "Select ToolsManage Snippets. Review the snippets that are available for your language or syntax. Find some basic snippets that you think might be useful for you." +msgstr "Izberite OrodjaUpravljaj izrezke. Preglejte si izrezke, ki so na voljo za vaš jezik ali skladnjo. Najdite nekaj osnovnih izrezkov, ki bodo za vas morda uporabni." + +#: C/gedit-plugins-snippets.page:45(item/p) +msgid "Try using some of the snippets." +msgstr "Poskusite z uporabo nekaterih izrezkov." + +#: C/gedit-plugins-snippets.page:46(item/p) +msgid "For example, if you set the syntax to HTML, type head , and press the Tab key, you should see something like this:" +msgstr "Če nastavite skladnjo na HTML, vnesite head in pritisnite tipko Tab. Videti bi morali nekaj takšnega:" + +#: C/gedit-plugins-snippets.page:51(page/code) +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " + +#: C/gedit-plugins-sort.page:16(info/desc) +msgid "Sort lines of text into alphabetical order" +msgstr "Razvrsti vrstice besedila po abecedi" + +#: C/gedit-plugins-sort.page:19(page/title) +msgid "Sort" +msgstr "Razvrsti" + +#: C/gedit-plugins-sort.page:21(page/p) +msgid "The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "Vstavek razvrščanja izbrane vrstice besedila razporedi po abecednem vrstnem redu." + +#: C/gedit-plugins-sort.page:23(note/p) +msgid "You cannot use the Undo feature to correct a Sort operation, so we recommend that you save the file immediately before performing the sort. If you make a mistake with the sort, you can revert to the previously-saved version of the file by selecting File Revert." +msgstr "Opravila Razvrščanja ne morete razveljaviti, zato vam priporočamo shranjevanje datoteke pred izvedbo razvrščanja. Če naredite napako, se lahko na shranjeno različico datoteke povrnete z izbiro DatotekaPovrni. " + +#: C/gedit-plugins-sort.page:29(page/p) +msgid "To enable the Sort plugin, select Edit PreferencesPluginsSort." +msgstr "Za omogočitev vstavka Razvrsti izberite UrediMožnostiVstavkiRazvrsti." + +#: C/gedit-plugins-sort.page:32(page/p) +msgid "After you have enabled the Sort plugin, use it by selecting the lines of text you want to sort, and then clicking Edit Sort." +msgstr "Ko ste vstavek Razvrsti omogočen, ga uporabite tako, da izberete vrstice, ki jih želite razvrstiti, ter kliknite UrediRazvrsti. " + +#: C/gedit-plugins-sort.page:36(page/p) +msgid "The Sort dialog will open, allowing you to choose between several sorting options:" +msgstr "Pojavilo se bo pogovorno okno razvrščanja, ki vam omogoča izbiro med več možnostmi razvrščanja:" + +#: C/gedit-plugins-sort.page:39(item/p) +msgid "Reverse order will arrange the text in reverse alphabetical order." +msgstr "Obratni vrsti red bo besedilo razporedil v obratnem abecednem vrstnem redu." + +#: C/gedit-plugins-sort.page:41(item/p) +msgid "Remove duplicates will remove duplicate values from the list." +msgstr "Odstrani dvojnike bo s seznama odstranil podvojene vrednosti." + +#: C/gedit-plugins-sort.page:43(item/p) +msgid "Ignore case will ignore case sensitivity." +msgstr "Prezri velikost črk bo prezrl občutljivost na velikost črk." + +#: C/gedit-plugins-sort.page:44(item/p) +msgid "To have the sort ignore the characters at the start of the lines, set the first character that should be used for sorting in the Start at column spin box." +msgstr "Če želite, da razvrščanje prezre znake na začetku vrstic, nastavite prvi znak, ki naj bo uporabljen za razvrščanje v vrtilnem polju stolpca Začni na." + +#: C/gedit-plugins-sort.page:48(page/p) +msgid "To perform the sort operation, click Sort." +msgstr "Za izvedbo razvrščanja kliknite Razvrsti." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-tag-list.page:44(media) +msgctxt "_" +msgid "external ref='figures/gedit-side-pane3.png' md5='4b800d370193ac0ed8db9eb33b86e11c'" +msgstr "external ref='figures/gedit-side-pane3.png' md5='4b800d370193ac0ed8db9eb33b86e11c'" + +#: C/gedit-plugins-tag-list.page:16(info/desc) +msgid "Automatically insert tags, strings and special characters into a document" +msgstr "Samodejno vstavite oznake, nize in posebne znake v dokument" + +#: C/gedit-plugins-tag-list.page:20(page/title) +msgid "Tag list" +msgstr "Seznam oznak" + +#: C/gedit-plugins-tag-list.page:22(page/p) +msgid "The Tag List plugin allows you to insert common tags and special characters from a list in the side pane. By default, the plugin can insert tags and special characters for HTML, XHTML, XSLT, XUL and LaTeX." +msgstr "Vstavek Seznam oznak vam omogoča vstavljanje pogostih oznak in posebnih oznak s seznama na stranskem pladnju. Privzeto lahko vstavek vstavi oznake in posebne oznake za HTML, XHTML, XSLT, XUL in LaTeX." + +#: C/gedit-plugins-tag-list.page:27(section/title) +msgid "Using the Tag List plugin" +msgstr "Uporaba vstavka seznama oznak" + +#: C/gedit-plugins-tag-list.page:29(section/p) +msgid "To use the Tag List plugin, you will need to enable the plugin, and then activate the tag-list portion of the side pane." +msgstr "Za uporabo vstavka Seznam oznak, ga boste morali omogočiti in nato omogočiti del stranskega pladnja s seznamom oznak." + +#: C/gedit-plugins-tag-list.page:33(section/title) +msgid "Enabling the Plugin" +msgstr "Omogočanje vstavka" + +#: C/gedit-plugins-tag-list.page:34(section/p) +msgid "You can activate the plugin by selecting Edit PreferencesPluginsTag List. Once you have activated the plugin, access it by selecting ViewSide Pane, or by pressing F9." +msgstr "Vstavek lahko omogočite z izbiro UrediMožnostiVstavkiSeznam oznak. Ko boste vstavek omogočili, lahko do njega dostopate z izbiro PogledStranski pladenj ali s pritiskom na F9." + +#: C/gedit-plugins-tag-list.page:39(section/p) +msgid "The side pane initially shows a list of open documents, so to view and use the tag list, you will need to click on the tab showing the \"plus\" icon at the bottom of the side pane. The icon will look similar to this:" +msgstr "Stranski pladenj na začetku prikaže seznam odprtih dokumentov, zato boste morali za ogled in uporabo seznama oznak kliknite na zavihek z ikono \"plus\" na dnu stranskega pladnja. Ikona bo bila videti podobno tej:" + +#: C/gedit-plugins-tag-list.page:48(section/title) +msgid "Inserting Tags and Special Characters" +msgstr "Vstavljanje oznak in posebnih znakov" + +#: C/gedit-plugins-tag-list.page:50(section/p) +msgid "The tag list uses a drop-down menu to let you choose from the different types of tags. For example, one tag option is HTML - Tags ." +msgstr "Seznam oznak uporablja spustni meni, ki vam omogoča izbiro med različnimi vrstami oznak. Na primer ena od možnosti oznak je HTML - oznake." + +#: C/gedit-plugins-tag-list.page:54(section/p) +msgid "To start inserting tags, complete the following:" +msgstr "Za začetek vstavljanja oznak naredite naslednje:" + +#: C/gedit-plugins-tag-list.page:57(item/p) +msgid "Move the cursor to where you will want to insert the tag or special character." +msgstr "Premaknite kazalko, kjer boste želeli vstaviti oznako ali poseben znak." + +#: C/gedit-plugins-tag-list.page:59(item/p) +msgid "Select the desired tag type from the drop-down menu at the top of the side pane." +msgstr "Izberite želeno vrsto oznake iz spustnega menija na vrhu stranskega pladnja." + +#: C/gedit-plugins-tag-list.page:61(item/p) +msgid "Scroll through the list to find the desired tag or character." +msgstr "Drsajte skozi seznam in najdite želeno oznako ali znak." + +#: C/gedit-plugins-tag-list.page:63(item/p) +msgid "Double-click on the tag in the tag list." +msgstr "Dvakrat kliknete na oznako na seznamu oznak." + +#: C/gedit-plugins-tag-list.page:66(section/p) +msgid "The tag or special character you've chosen will then be displayed in your document." +msgstr "Oznaka ali poseben znak, ki ste ga izbrali, bo bil prikazan v vašem dokumentu." + +#: C/gedit-plugins-tag-list.page:71(section/title) +msgid "Tag List Tips" +msgstr "Namigi seznama oznak" + +#: C/gedit-plugins-tag-list.page:72(note/p) +msgid "You can also insert a tag by pressing Return or ShiftReturn." +msgstr "Oznako lahko vstavite tudi s pritiskom na Enter ali ShiftEnter." + +#: C/gedit-plugins-tag-list.page:74(note/p) +msgid "Pressing the Return key will insert the tag at the cursor position, and then return focus to the document. Pressing Shift Return will insert the tag at the cursor position, but will keep the focus on the tag-list." +msgstr "Pritisk tipke Enter bo vstavil oznako na položaj kazalke in nato vrnil žarišče na dokument. Pritisk na ShiftEnter bo vstavil oznako na položaj kazalke, vendar bo žarišče obdržal na seznamu oznak." + +#: C/gedit-plugins-tag-list.page:79(note/p) +msgid "You can see a preview of what text will be inserted for each tag and special character by clicking on the word the Preview at the bottom of the side pane." +msgstr "Predogled besedila, ki bo vstavljeno za vsako oznako in poseben znak, lahko vidite s klikom na besedo Predogled na dnu stranskega pladnja." + +#: C/gedit-plugins-terminal.page:13(info/desc) +msgid "Add a terminal console to the bottom pane" +msgstr "Dodajanje konzole Terminal v spodnji pladenj" + +#: C/gedit-plugins-terminal.page:16(page/title) +msgid "Embedded terminal" +msgstr "Vstavljen terminal" + +#: C/gedit-plugins-terminal.page:18(page/p) +msgid "gedit makes it possible to include an embedded version of Gnome Terminal, the GNOME command-line application, in the bottom pane of the gedit window. This will let you run scripts, install needed software, or test your program without leaving gedit." +msgstr "gedit vam omogoča vključitev vstavljene različice programa Gnome Terminal, Gnome programa ukazne vrstice na spodnjem pladnju okna gedit. To vam bo omogočilo poganjanje skriptov, nameščanje programov ali preizkušanje vašega programa, ne da bi zapustili gedit." + +#: C/gedit-plugins-terminal.page:23(page/p) +msgid "To enable this plugin, select EditPreferences PluginsEmbedded Terminal." +msgstr "Za omogočitev tega vstavka izberite UrediMožnostiVstavkiVstavljen Terminal." + +#: C/gedit-plugins-terminal.page:26(page/p) +msgid "Once you have enabled the plugin, add the terminal to the bottom pane by selecting ViewBottom Pane, or just press CtrlF9." +msgstr "Ko je vstavek omogočen, dodajte terminal na spodnji pladenj z izbiro PogledSpodnji pult ali samo pritisnite CtrlF9." + +#: C/gedit-plugins-text-size.page:14(info/desc) +msgid "Increase or decrease the text size" +msgstr "Poveča ali zmanjša velikost besedila" + +#: C/gedit-plugins-text-size.page:17(page/title) +msgid "Text Size" +msgstr "Velikost besedila" + +#: C/gedit-plugins-text-size.page:19(page/p) +msgid "The text size plugin allows you to temporarily change the text size in gedit without changing the program's default text size. To enable this plugin, select EditPreferencesPlugins Text Size." +msgstr "Vstavek velikost besedila vam omogoča začasno spremembo velikosti besedila v geditu ne da bi spremenili privzeto velikost besedila. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiVelikost besedila." + +#: C/gedit-plugins-text-size.page:25(list/title) +msgid "Once you have enabled the plugin, do any of the following to change the text size in gedit:" +msgstr "Ko ste ste vstavek omogočili, naredite karkoli od naslednjega za spremembo velikosti besedila v programu gedit:" + +#: C/gedit-plugins-text-size.page:27(item/p) +msgid "To increase the text size, press Ctrl +." +msgstr "Za povečanje velikosti besedila izberite Ctrl +." + +#: C/gedit-plugins-text-size.page:29(item/p) +msgid "To decrease the text size, press Ctrl -." +msgstr "Za zmanjšanje velikosti besedila izberite Ctrl -." + +#: C/gedit-plugins-text-size.page:31(item/p) +msgid "To reset the text size to the default size, press Ctrl0." +msgstr "Za ponastavitev velikosti besedila na privzeto velikost izberite Ctrl0." + +#: C/gedit-plugins-word-completion.page:18(info/desc) +msgid "Autocomplete words or portions of code as you type" +msgstr "Samodejno dokončevanje besede ali delov kode medtem ko tipkate" + +#: C/gedit-plugins-word-completion.page:21(page/title) +msgid "Word completion" +msgstr "Dokončevanje besed>" + +#: C/gedit-plugins-word-completion.page:23(page/p) +msgid "The Word Completion plugin can speed up your editing by suggesting completions of words as you type. To enable the plugin, select EditPreferencesPluginsWord Completion." +msgstr "Vstavek Dokončevanje besed lahko pohitri vaše urejanje s predlaganjem končanja besed mdtem ko tipkate. Za omogočitev tega vstavka izberite UrediMožnostiVstavkiDokončevanje besed." + +#: C/gedit-plugins-word-completion.page:28(page/p) +msgid "While editing, the Word Completion plugin will automatically display a pop-up list of words that begin with the letters you have already typed. Word suggestions are based upon words that appear elsewhere in your document and upon pre-defined keywords if your document is of a recognised format." +msgstr "Med urejanjem bo vstavek Dokončevanje besed samodejno prikazal pojavni seznam besed, ki se začnejo s črkami, ki ste jih že vnesli. Predlogi besed so osnovani na besedah, ki se pojavijo drugje v vašem dokumentu in predhodno določenih ključnih besedah, če je vaš dokument v prepoznani obliki." + +#: C/gedit-plugins-word-completion.page:34(page/p) +msgid "To insert a suggested word, double-click on it in the pop-up list or press AltNum, where Num is the number displayed next to your desired word." +msgstr "Za vstavitev predlagane besede dvokliknite nanjo v pojavnem seznamu ali pritisnite AltNum, kjer je Num število prikazano poleg želene besede." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-printing-order.page:58(media) +msgctxt "_" +msgid "external ref='reverse-collate.png' md5='__failed__'" +msgstr "external ref='reverse-collate.png' md5='__failed__'" + +#: C/gedit-printing-order.page:10(credit/name) +#: C/gedit-printing-select.page:10(credit/name) +msgid "Phil Bull" +msgstr "Phil Bull" + +#: C/gedit-printing-order.page:14(license/p) +#: C/gedit-printing-select.page:14(license/p) +msgid "Creative Commons Share Alike 3.0" +msgstr "Creative Commons - deljenje pod enakimi pogoji 3.0" + +#: C/gedit-printing-order.page:18(page/title) +msgid "Getting Copies To Print In The Correct Order" +msgstr "Tiskanje kopij v pravilnem vrstnem redu" + +#: C/gedit-printing-order.page:21(section/title) +msgid "Reverse" +msgstr "Obrnjeno" + +#: C/gedit-printing-order.page:24(section/p) +msgid "Printers usually print the first page first, and the last page last, so the pages end up in reverse order when you pick them up." +msgstr "Tiskalniki običajno najprej natisnejo prvo stran in nazadnje zadnjo stran zato bodo strani, ko jih poberete s tiskalnika, v obratnem vrstnem redu." + +#: C/gedit-printing-order.page:28(section/p) +msgid "To reverse the order:" +msgstr "Za obratni vrstni red:" + +#: C/gedit-printing-order.page:32(item/p) +msgid "FilePrint" +msgstr "Kliknite DatotekaNatisni." + +#: C/gedit-printing-order.page:33(item/p) +msgid "In the General tab of the Print window under Copies , check Reverse. The last page will be printed first, and so on." +msgstr "V zavihku Splošno okna Tiskanje pod Kopije izberite Obratno. Najprej bo natisnjena zadnja stran in tako naprej." + +#: C/gedit-printing-order.page:40(section/title) +msgid "Collate" +msgstr "Zberi" + +#: C/gedit-printing-order.page:43(section/p) +msgid "If you are printing more than one copy of the document, the print outs will be grouped by page number by default. (e.g. The copies of page one come out, then the copies of page two, etc.) Collating will make each copy come out with its pages grouped together." +msgstr "V primeru da tiskate več kot eno kopijo dokumenta, bodo kopije privzeto združene po števili strani (najprej pridejo ven kopije strani eni, nato kopije strani dva, itd.). Zbiranje bo natisnilo vsako kopijo naenkrat v celoti." + +#: C/gedit-printing-order.page:50(section/p) +msgid "To Collate:" +msgstr "Za zbiranje:" + +#: C/gedit-printing-order.page:54(item/p) +msgid "Click FilePrint" +msgstr "Kliknite DatotekaNatisni" + +#: C/gedit-printing-order.page:55(item/p) +msgid "In the General tab of the Print window under Copies check Collate." +msgstr "V zavihku Splošno okna Tiskanje pod Kopije izberite Zberi." + +#: C/gedit-printing.page:19(note/p) +msgid "Printing with gedit requires that you have connected and configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "Tiskanje z gedit zahteva, da imate povezan in nastavljen tiskalnik. V primeru da tega nimate, si oglejte pomoč o tiskanju za namizno okolje GNOME." + +#: C/gedit-printing.page:24(page/p) +msgid "gedit allows you to both print output to a file, as well as printing output to paper. Prior to printing your document, you can also preview how the printed document will look by using the Print Preview feature." +msgstr "gedit omogoča tiskanje izhoda v datoteko kot tudi na papir. Pred tiskanjem dokumenta si lahko ogledate predogled natisnjenega dokumenta z zmožnostjo Predogled tiskanja." + +#: C/gedit-printing.page:30(section/title) +msgid "Printing to paper" +msgstr "Tiskanje na papir" + +#: C/gedit-printing.page:34(section/title) +msgid "Printing output to a file" +msgstr "Tiskanje izhoda v datoteko" + +#: C/gedit-printing.page:36(section/p) +msgid "You can also use gedit to print to a file. To do so, select FilePrintPrint to File." +msgstr "gedit lahko uporabite tudi za tiskanje v datoteko. Za to izberite DatotekaNatisniNatisni v datoteko." + +#: C/gedit-printing.page:38(section/p) +msgid "Printing is enabled for the following file formats:" +msgstr "Tiskanje je omogočeno za naslednje vrste datotek:" + +#: C/gedit-printing.page:40(item/p) +msgid "Portable Document Format (.pdf)" +msgstr "Prenosljiva vrsta dokumenta (.pdf)" + +#: C/gedit-printing.page:41(item/p) +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#: C/gedit-printing.page:42(item/p) +msgid "Scalable Vector Graphic (.svg)" +msgstr "Raztegljiva vektorska grafika (.svg)" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-printing-select.page:37(media) +msgctxt "_" +msgid "external ref='print-select.png' md5='__failed__'" +msgstr "external ref='print-select.png' md5='__failed__'" + +#: C/gedit-printing-select.page:18(page/title) +msgid "Only Printing Certain Pages" +msgstr "Tiskanje le določenih strani" + +#: C/gedit-printing-select.page:20(page/p) +msgid "To only print certain pages from the document:" +msgstr "Za tiskanje le določenih strani v dokumentu:" + +#: C/gedit-printing-select.page:24(item/p) +msgid "Click File Print..." +msgstr "Kliknite DatotekaNatisni ...." + +#: C/gedit-printing-select.page:25(item/p) +msgid "In the General tab in the Print window choose Pages from the Range section." +msgstr "V zavihku Splošno okna Tiskanje v odseku Obseg izberite Strani." + +#: C/gedit-printing-select.page:27(item/p) +msgid "Type the numbers of the pages you want to print in the textbox, separated by commas. Use a dash to denote a range of pages." +msgstr "V besedilno polje vpišite števila strani, ki jih želite natisniti, ločena z vejicami. Uporabite pomišljaj za tiskanje obsega več strani." + +#: C/gedit-printing-select.page:33(note/p) +msgid "For example, if you enter \"1,3,5-7,9\" in the Pages textbox, pages 1, 3, 5, 6, 7 and 9 will be printed." +msgstr "Na primer, če v besedilno polje Strani vnesete \"1, 3, 5-7, 9\" , bodo natisnjene strani 1, 3, 5, 6, 7 in 9." + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:22(media) +msgctxt "_" +msgid "external ref='figures/gedit3-screenshot.png' md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" +msgstr "external ref='figures/gedit3-screenshot.png' md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" + +#: C/gedit-quickstart.page:16(page/title) +msgid "Get started with gedit" +msgstr "Kako začeti z gedit" + +#: C/gedit-quickstart.page:17(page/p) +msgid "gedit is a full-featured text editor for the GNOME desktop environment. You can use it to prepare simple notes and documents, or you can use some of its advanced features, making it your own software development environment." +msgstr "gedit je polno zmožen urejevalnik besedila za namizno okolje GNOME. Uporabite ga lahko za pripravo enostavnih sporočilc in dokumentov ali pa uporabite nekatere od njegovih naprednih zmožnosti in ga uporabljate kot svoje programsko razvojno okolje." + +#: C/gedit-quickstart.page:24(page/p) +msgid "Once gedit launches, you can start writing right away. To save your text, just click Save." +msgstr "Ko se gedit zažene, lahko takoj začnete pisati. Za shranjevanje svojega besedila enostavno kliknite Shrani." + +#: C/gedit-quickstart.page:27(page/p) +msgid "To learn about additional gedit features and to get assistance with performing additional tasks, explore the other portions of the gedit help." +msgstr "Za več podrobnosti o zmožnostih gedit in za pomoč pri izvajanju dodatnih nalog raziščite druge dele pomoči gedit." + +#: C/gedit-replace.page:20(page/title) +msgid "Replace text" +msgstr "Zamenjaj besedilo" + +#: C/gedit-replace.page:22(page/p) +msgid "Editing text can be time consuming. To save time, gedit includes a Replace function that helps you to find and replace portions of text." +msgstr "Urejanje besedila lahko vzame veliko časa. Za prihranek časa gedit vključuje zmožnost Zamenjaj, ki vam pomaga pri iskanju in zamenjavi delov besedila." + +#: C/gedit-replace.page:27(steps/title) +msgid "Replace text in gedit" +msgstr "Zamenjava besedila v gedit" + +#: C/gedit-replace.page:28(item/p) +msgid "Open the Replace tool by clicking Search Replace or press CtrlH ." +msgstr "Odprite orodje zamenjaj s klikom na IščiZamenjaj ali pritisnite CtrlH." + +#: C/gedit-replace.page:31(item/p) +msgid "Enter the text that you wish to replace into the 'Search for:' field." +msgstr "Vnesite besedilo, ki ga želite zamenjati, v polje 'Poišči:'." + +#: C/gedit-replace.page:33(item/p) +msgid "Enter the new, replacement text into the 'Replace with:' field." +msgstr "Vnesite besedilo za zamenjavo v polje 'Zamenjaj z:'." + +#: C/gedit-replace.page:36(item/p) +msgid "Once you have entered the original and replacement text, select your desired replacement options:" +msgstr "Ko ste vnesli izvirno besedilo in besedilo za zamenjavo, izberite možnosti zamenjave:" + +#: C/gedit-replace.page:39(item/p) +msgid "To replace only the next matching portion of text, click Replace." +msgstr "Za zamenjavo le naslednjega ujemajočega dela besedila kliknite Zamenjaj." + +#: C/gedit-replace.page:41(item/p) +msgid "To replace all occurrences of the searched-for text, click Replace All." +msgstr "Za zamenjavo vseh primerov iskanega besedila kliknite Zamenjaj vse." + +#: C/gedit-replace.page:48(note/p) +msgid "Use the Replace All function with care. Replace All works on the entirety of your text file, and does not allow you to highlight portions of text where the replace function will be performed." +msgstr "Zmožnost Zamenjaj vse uporabljajte previdno. Zamenjaj vse deluje na vaši celotni besedilni datoteki in vam ne omogoča poudarjanja delov besedila, kjer bo izvedena zamenjava." + +#: C/gedit-replace.page:55(section/title) +msgid "More options" +msgstr "Več možnosti" + +#: C/gedit-replace.page:58(item/title) +msgid "Match case" +msgstr "Upoštevaj velikost črk" + +#: C/gedit-replace.page:59(item/p) +msgid "The Match case option allows you to specify whether you want your search to be case-sensitive. If this option is selected, searches will be case-sensitive. If not, searches will not be case-sensitive." +msgstr "Možnost Upoštevaj velikost črk vam omogoča navedbo ali naj bo iskanje občutljivo na velikost črk. V primeru da je ta možnost izbrana, bodo iskanja občutljiva na velikost črk. V nasprotnem primeru iskanja na velikost črk ne bodo občutljiva." + +#: C/gedit-replace.page:65(item/title) +msgid "Match entire word only" +msgstr "Poišči le cele besede" + +#: C/gedit-replace.page:66(item/p) +msgid "Use this option to search for a specific word without including fragments of other words. For example, if you searched for the word 'and' with this option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "To možnost uporabite za iskanje določene besede brez vključevanja delčkov drugih besed. Na primer če bi iskali besedo 'in', bi beseda 'in' ustrezala, besedi 'kino' in 'malina' pa ne." + +#: C/gedit-replace.page:73(item/title) +msgid "Search backwards" +msgstr "Iskanje nazaj" + +#: C/gedit-replace.page:74(item/p) +msgid "This command behaves identically to the Find Previous command. If you wish to step through search results from end to beginning, select this option." +msgstr "Ta ukaz se obnaša enako kot Poišči nazaj. V primeru na želite stopati med rezultati iskanja od začetka proti koncu, izberite to možnost." + +#: C/gedit-replace.page:79(item/title) +msgid "Wrap around" +msgstr "Prelomi vrstice" + +#: C/gedit-replace.page:80(item/p) +msgid "With the wrap around option enabled, gedit will re-start the search/replace action at the top of the file after it has reached the bottom of the file. This ensures that your search/replace action is made across your entire file." +msgstr "V primeru da je možnost prelomi vrstice omogočena, bo gedit ponovno zagnal dejanje išči/zamenjaj na vrhu datoteke po tem ko bo dosegel dno datoteke. To zagotovi, da je dejanje išči/zamenjaj izvedeno na vaši celotni datoteki." + +#: C/gedit-save-file.page:14(page/title) +msgid "Save a file" +msgstr "Shranjevanje datoteke" + +#: C/gedit-save-file.page:16(page/p) +msgid "To save a file in gedit, click on the disk-drive icon with the word Save next to it. You may also select File Save, or just press CtrlS ." +msgstr "Za shranjevanje datoteke v gedit kliknite na ikono diskovnega pogona z besedo Shrani poleg nje. Izberete lahko tudi DatotekaShrani ali pritisnete CtrlS." + +#: C/gedit-save-file.page:20(page/p) +msgid "If you are saving a new file, the Save File dialog will appear, and you can select a name for the file, as well as the directory where you would like the file to be saved." +msgstr "V primeru da shranjujete novo datoteko, se bo pojavilo pogovorno okno Shrani datoteko. Izberete lahko ime datoteke in mapo kamor jo želite shraniti." + +#: C/gedit-search.page:20(page/title) +msgid "Search for text" +msgstr "Iskanje besedila" + +#: C/gedit-search.page:22(page/p) +msgid "The Find tool can help you find specific sequences of text within in your file." +msgstr "Orodje iskanje vam lahko pomaga pri iskanju določenih zaporedij besedila v vaši datoteki." + +#: C/gedit-search.page:26(steps/title) +msgid "Finding text" +msgstr "Iskanje besedila" + +#: C/gedit-search.page:27(item/p) +msgid "Open the search window by clicking SearchFind or pressing CtrlF. This will move your cursor to the start of the search window." +msgstr "Odprite iskalno okno s klikom na IskanjeIšči ali pritisnite CtrlF. To bo kazalko premaknilo na začetek iskalnega okna." + +#: C/gedit-search.page:32(item/p) +msgid "Type the text you wish to search for in the search window." +msgstr "Vnesite besedilo, ki ga želite zamenjati, v iskalno okno." + +#: C/gedit-search.page:34(item/p) +msgid "As you type, gedit will begin highlighting the portions of text that match what you have entered." +msgstr "Medtem ko tipkate bo gedit začel poudarjati dele besedila, ki se ujemajo z vnesenim." + +#: C/gedit-search.page:39(page/p) +msgid "To scroll through the search results, do any of the following:" +msgstr "Za drsanje med rezultati naredite nekaj od naslednjega:" + +#: C/gedit-search.page:41(item/p) +msgid "Click on the up or down facing arrows next to the search window" +msgstr "Kliknite na puščici navzgor ali navzdol poleg iskalnega okna" + +#: C/gedit-search.page:43(item/p) +msgid "Press the up arrow or down arrow keys on your keyboard" +msgstr "Pritisnite tipki puščica navzgor ali puščica navzdol na tipkovnici" + +#: C/gedit-search.page:45(item/p) +msgid "Press CtrlG or CtrlShiftG." +msgstr "Pritisnite CtrlG ali CtrlShiftG." + +#: C/gedit-search.page:47(item/p) +msgid "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +msgstr "Pritisnite Ctrl in uporabite zmožnost drsenja svoje miške ali drsne ploščice za premik navzgor ali navzdol po besedilu." + +#: C/gedit-search.page:52(page/p) +msgid "To close the search window, press either Esc or Enter. Pressing Esc will return the cursor to where it was before you began your search. Pressing Enter will return the cursor to the current position in the search results." +msgstr "Za zaprtje okna iskanja, pritisnite Esc ali Enter. Pritisk na Esc bo vrnil kazalko kjer je bila, preden ste začeli iskanje. Pritisk na Enter bo kazalko vrnil na trenutno mesto med rezultati iskanja." + +#: C/gedit-search.page:58(list/title) +msgid "Search tips" +msgstr "Iskalni namigi" + +#: C/gedit-search.page:59(item/p) +msgid "If you highlight a portion of text with your mouse, and then press CtrlF, the text you've highlighted will appear in the search window." +msgstr "Če z miško poudarite del besedila in pritisnete CtrlF, se bo poudarjeno besedilo pojavilo v iskalnem oknu." + +#: C/gedit-search.page:62(item/p) +msgid "For advanced search options, you can click on the Magnifying Glass icon in the search window, or you can right-click on any portion of the search window." +msgstr "Za napredne možnosti iskanja lahko kliknete na ikono Povečevalno steklo v iskalnem oknu ali pa desno kliknete na katerikoli del iskalnega okna." + +#: C/gedit-search.page:65(item/p) +msgid "The text that you've searched for will remain highlighted by gedit, even after you have completed your search. To remove the highlight, click SearchClear Highlight, or press CtrlShiftK." +msgstr "Besedilo, ki ste ga iskali, bo ostalo poudarjeno, tudi ko ste dokončali svoje iskanje. Za odstranitev poudarjanja kliknite IščiPočisti poudarjanje ali pritisnite CtrlShiftK." + +#: C/gedit-shortcut-keys.page:14(credit/name) +msgid "Paolo Borelli" +msgstr "Paolo Borelli" + +#: C/gedit-shortcut-keys.page:17(credit/name) +msgid "Jesse van den Kieboom" +msgstr "Jesse van den Kieboom" + +#: C/gedit-shortcut-keys.page:20(credit/name) +msgid "Steve Frécinaux" +msgstr "Steve Frécinaux" + +#: C/gedit-shortcut-keys.page:23(credit/name) +msgid "Ignacio Casal Quinteiro" +msgstr "Ignacio Casal Quinteiro" + +#: C/gedit-shortcut-keys.page:27(page/title) +msgid "Shortcut keys" +msgstr "Tipkovne bližnjice" + +#: C/gedit-shortcut-keys.page:29(page/p) +msgid "Use shortcut keys to perform common tasks more quickly than with the mouse and menus. The following tables list all of gedit's shortcut keys." +msgstr "Uporabite tipkovne bližnjice za izvajanje pogostih opravil hitreje kot z miško in meniji. Naslednja preglednica vsebuje seznam vseh tipkovnih bližnjic gedit." + +#: C/gedit-shortcut-keys.page:53(table/title) +msgid "Tab-related Shortcut keys" +msgstr "Z zavihki povezane tipkovne bližnjice" + +#: C/gedit-shortcut-keys.page:61(td/p) +msgid "Switch to the next tab to the left" +msgstr "Premakni trenutni zavihek na levo" + +#: C/gedit-shortcut-keys.page:61(td/p) +msgid "Ctrl + Alt + PageUp" +msgstr "Ctrl + Alt + StranNavzgor" + +#: C/gedit-shortcut-keys.page:65(td/p) +msgid "Switch to the next tab to the right" +msgstr "Premakni trenutni zavihek na desno" + +#: C/gedit-shortcut-keys.page:65(td/p) +msgid "Ctrl + Alt + PageDown" +msgstr "Ctrl + Alt + StranNavzdol" + +#: C/gedit-shortcut-keys.page:69(td/p) +msgid "Close tab" +msgstr "Zapri zavihek" + +#: C/gedit-shortcut-keys.page:69(td/p) +#: C/gedit-shortcut-keys.page:112(td/p) +msgid "Ctrl + W" +msgstr "Ctrl + W" + +#: C/gedit-shortcut-keys.page:72(td/p) +msgid "Save all tabs" +msgstr "Shrani vse zavihke" + +#: C/gedit-shortcut-keys.page:72(td/p) +msgid "Ctrl + Shift + L" +msgstr "Ctrl + Shift + L" + +#: C/gedit-shortcut-keys.page:75(td/p) +msgid "Close all tabs" +msgstr "Zapri vse zavihke" + +#: C/gedit-shortcut-keys.page:75(td/p) +msgid "Ctrl + Shift + W" +msgstr "Ctrl + Shift + W" + +#: C/gedit-shortcut-keys.page:78(td/p) +msgid "Jump to nth tab" +msgstr "Skoči na n-ti zavihek" + +#: C/gedit-shortcut-keys.page:78(td/p) +msgid "Alt + n" +msgstr "Alt + n" + +#: C/gedit-shortcut-keys.page:85(table/title) +msgid "Shortcut keys for working with files" +msgstr "Tipkovne bližnjice za delo z datotekami" + +#: C/gedit-shortcut-keys.page:93(td/p) +msgid "Create a new document" +msgstr "Ustvari nov dokument" + +#: C/gedit-shortcut-keys.page:93(td/p) +msgid "Ctrl + N" +msgstr "Ctrl + N" + +#: C/gedit-shortcut-keys.page:96(td/p) +msgid "Open a document" +msgstr "Odpri dokument" + +#: C/gedit-shortcut-keys.page:96(td/p) +msgid "Ctrl + O" +msgstr "Ctrl + O" + +#: C/gedit-shortcut-keys.page:99(td/p) +msgid "Save the current document" +msgstr "Shrani trenutni dokument" + +#: C/gedit-shortcut-keys.page:99(td/p) +msgid "Ctrl + S" +msgstr "Ctrl + S" + +#: C/gedit-shortcut-keys.page:102(td/p) +msgid "Save the current document with a new filename" +msgstr "Shrani trenutni dokument z novim imenom datoteke" + +#: C/gedit-shortcut-keys.page:102(td/p) +msgid "Ctrl + Shift + S" +msgstr "Ctrl + Shift + S" + +#: C/gedit-shortcut-keys.page:106(td/p) +msgid "Print the current document" +msgstr "Natisni trenutni dokument" + +#: C/gedit-shortcut-keys.page:106(td/p) +msgid "Ctrl + P" +msgstr "Ctrl + P" + +#: C/gedit-shortcut-keys.page:109(td/p) +msgid "Print preview" +msgstr "Predogled tiskanja" + +#: C/gedit-shortcut-keys.page:109(td/p) +msgid "Ctrl + Shift + P" +msgstr "Ctrl + Shift + P" + +#: C/gedit-shortcut-keys.page:112(td/p) +msgid "Close the current document" +msgstr "Zapri trenutni dokument" + +#: C/gedit-shortcut-keys.page:115(td/p) +msgid "Quit gedit" +msgstr "Končaj gedit" + +#: C/gedit-shortcut-keys.page:115(td/p) +msgid "Ctrl + Q" +msgstr "Ctrl + Q" + +#: C/gedit-shortcut-keys.page:121(table/title) +msgid "Shortcut keys for editing files" +msgstr "Tipkovne bližnjice za urejanje datotek" + +#: C/gedit-shortcut-keys.page:129(td/p) +msgid "Undo the last action" +msgstr "Razveljavi zadnje dejanje" + +#: C/gedit-shortcut-keys.page:129(td/p) +msgid "Ctrl + Z" +msgstr "Ctrl + Z" + +#: C/gedit-shortcut-keys.page:132(td/p) +msgid "Redo the last undone action" +msgstr "Obnovi zadnje razveljavljeno dejanje" + +#: C/gedit-shortcut-keys.page:132(td/p) +msgid "Ctrl + Shift + Z" +msgstr "Ctrl + Shift + Z" + +#: C/gedit-shortcut-keys.page:136(td/p) +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "Izreže izbrano besedilo ali področje in ga postavi na odložišče" + +#: C/gedit-shortcut-keys.page:137(td/p) +msgid "Ctrl + X" +msgstr "Ctrl + X" + +#: C/gedit-shortcut-keys.page:140(td/p) +msgid "Copy the selected text or region onto the clipboard" +msgstr "Kopira izbrano besedilo ali področje in ga postavi na odložišče" + +#: C/gedit-shortcut-keys.page:141(td/p) +msgid "Ctrl + C" +msgstr "Ctrl + C" + +#: C/gedit-shortcut-keys.page:144(td/p) +msgid "Paste the contents of the clipboard" +msgstr "Prilepi vsebino odložišča" + +#: C/gedit-shortcut-keys.page:144(td/p) +msgid "Ctrl + V" +msgstr "Ctrl + V" + +#: C/gedit-shortcut-keys.page:148(td/p) +msgid "Select all text in the file" +msgstr "Izbere vse besedilo v datoteki" + +#: C/gedit-shortcut-keys.page:148(td/p) +msgid "Ctrl + A" +msgstr "Ctrl + A" + +#: C/gedit-shortcut-keys.page:151(td/p) +msgid "Delete the current line" +msgstr "Izbriši trenutno vrstico" + +#: C/gedit-shortcut-keys.page:151(td/p) +msgid "Ctrl + D" +msgstr "Ctrl + D" + +#: C/gedit-shortcut-keys.page:154(td/p) +msgid "Move the selected line up one line" +msgstr "Premakni izbrano vrstico za eno vrstico navzgor" + +#: C/gedit-shortcut-keys.page:154(td/p) +msgid "Alt + Up Arrow" +msgstr "Alt + Puščica navzgor" + +#: C/gedit-shortcut-keys.page:158(td/p) +msgid "Move the selected line down one line" +msgstr "Premakni izbrano vrstico za eno vrstico navzdol" + +#: C/gedit-shortcut-keys.page:158(td/p) +msgid "Alt + Down Arrow" +msgstr "Alt + Puščica navzdol" + +#: C/gedit-shortcut-keys.page:165(table/title) +msgid "Shortcut keys for showing and hiding panes" +msgstr "Tipkovne bližnjice za prikaz in skrivanje pladnjev" + +#: C/gedit-shortcut-keys.page:173(td/p) +msgid "Show / hide the side pane" +msgstr "Pokaži / skrij stranski pladenj" + +#: C/gedit-shortcut-keys.page:173(td/p) +msgid "F9" +msgstr "F9" + +#: C/gedit-shortcut-keys.page:176(td/p) +msgid "Show / hide the bottom pane." +msgstr "Pokaži / skrij stranski pladenj." + +#: C/gedit-shortcut-keys.page:176(td/p) +msgid "Ctrl + F9" +msgstr "Ctrl + F9" + +#: C/gedit-shortcut-keys.page:183(table/title) +msgid "Shortcut keys for searching" +msgstr "Tipkovne bližnjice za iskanje" + +#: C/gedit-shortcut-keys.page:191(td/p) +msgid "Find a string" +msgstr "Najdi niz" + +#: C/gedit-shortcut-keys.page:191(td/p) +msgid "Ctrl + F" +msgstr "Ctrl + F" + +#: C/gedit-shortcut-keys.page:194(td/p) +msgid "Find the next instance of the string" +msgstr "Poišče naslednjo pojavitev niza" + +#: C/gedit-shortcut-keys.page:194(td/p) +msgid "Ctrl + G" +msgstr "Ctrl + G" + +#: C/gedit-shortcut-keys.page:198(td/p) +msgid "Find the previous instance of the string" +msgstr "Najdi predhodno pojavitev niza" + +#: C/gedit-shortcut-keys.page:198(td/p) +msgid "Ctrl + Shift + G" +msgstr "Ctrl + Shift + G" + +#: C/gedit-shortcut-keys.page:202(td/p) +msgid "Search and Replace" +msgstr "Poišči in zamenjaj" + +#: C/gedit-shortcut-keys.page:202(td/p) +msgid "Ctrl + H" +msgstr "Ctrl + H" + +#: C/gedit-shortcut-keys.page:205(td/p) +msgid "Clear highlight" +msgstr "Počisti poudarjanje" + +#: C/gedit-shortcut-keys.page:205(td/p) +msgid "Ctrl + Shift + K" +msgstr "Ctrl + Shift + K" + +#: C/gedit-shortcut-keys.page:208(td/p) +msgid "Goto line" +msgstr "Pojdi na vrstico" + +#: C/gedit-shortcut-keys.page:208(td/p) +msgid "Ctrl + I" +msgstr "Ctrl + I" + +#: C/gedit-shortcut-keys.page:214(table/title) +msgid "Shortcut keys for tools" +msgstr "Tipkovne bližnjice za orodja" + +#: C/gedit-shortcut-keys.page:222(td/p) +msgid "Check spelling" +msgstr "Preveri črkovanje" + +#: C/gedit-shortcut-keys.page:222(td/p) +msgid "Shift + F7" +msgstr "Shift + F7" + +#: C/gedit-shortcut-keys.page:225(td/p) +msgid "Remove trailing spaces (with plugin)" +msgstr "Odstrani končne presledke (z vstavkom)" + +#: C/gedit-shortcut-keys.page:225(td/p) +msgid "Alt + F12" +msgstr "Alt + F12" + +#: C/gedit-shortcut-keys.page:229(td/p) +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "Požene \"make\" v trenutni mapi (z vstavkom)" + +#: C/gedit-shortcut-keys.page:230(td/p) +msgid "F8" +msgstr "F8" + +#: C/gedit-shortcut-keys.page:233(td/p) +msgid "Directory listing (with plugin)" +msgstr "Seznam map (z vstavkom)" + +#: C/gedit-shortcut-keys.page:233(td/p) +msgid "Ctrl + Shift + D" +msgstr "Ctrl + Shift + D" + +#: C/gedit-shortcut-keys.page:240(table/title) +msgid "Shortcut keys for user help" +msgstr "Tipkovne bližnjice za uporabniško pomoč" + +#: C/gedit-shortcut-keys.page:248(td/p) +msgid "Open the gedit user guide" +msgstr "Odpre uporabniški vodnik gedit" + +#: C/gedit-shortcut-keys.page:248(td/p) +msgid "F1" +msgstr "F1" + +#: C/gedit-spellcheck.page:13(credit/name) +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#: C/gedit-spellcheck.page:16(info/desc) +msgid "Enable and use gedit's spell-checking feature" +msgstr "Omogočitev in uporabe zmožnosti preverjanja črkovanja gedit." + +#: C/gedit-spellcheck.page:19(page/title) +msgid "Spell-check your document" +msgstr "Preverjanje črkovanja v dokumentih" + +#: C/gedit-spellcheck.page:21(section/title) +msgid "Enable the spell checker" +msgstr "Omogočitev črkovalnika" + +#: C/gedit-spellcheck.page:22(section/p) +msgid "To enable the plugin, select EditPreferences PluginsSpell Checker." +msgstr "Za omogočitev vstavka izberite Uredi MožnostiVstavkiČrkovalnik." + +#: C/gedit-spellcheck.page:25(section/p) +msgid "gedit will only check your document's spelling when you choose ToolsCheck Spelling. To have gedit automatically check your spelling, select Tools Highlight Misspelled Words." +msgstr "gedit bo preveril črkovanje dokumenta, ko izberete OrodjaPreveri črkovanje. Da gedit samodejno preveri črkovanje, izberite Orodja Poudari napačno črkovane besede." + +#: C/gedit-spellcheck.page:32(section/title) +msgid "Define the language to use for spell checking" +msgstr "Določitev jezika za preverjanje črkovanja" + +#: C/gedit-spellcheck.page:33(section/p) +msgid "By default, gedit will use your current language to spell check your document. If you need to use another language, choose ToolsSet Language..., then choose the language you want to use." +msgstr "Privzeto program gedit za preverjanje črkovanje uporabi trenutno nastavljeni jezik. Za uporabo drugega jezika izberite možnost menija OrodjaNastavi jezik ...." + +#: C/gedit-spellcheck.page:39(note/p) +msgid "The list of available languages will vary, depending on the configuration of your system." +msgstr "Seznam razpoložljivih jezikov je odvisen od nastavitve vašega sistema." + +#: C/gedit-syntax-highlighting.page:14(page/title) +msgid "Turn on syntax highlighting" +msgstr "Omogoči poudarjanje skladnje" + +#: C/gedit-syntax-highlighting.page:17(section/title) +msgid "Syntax Highlighting" +msgstr "Poudarjanje skladnje" + +#: C/gedit-syntax-highlighting.page:18(section/p) +msgid "gedit provides syntax highlighting for a wide range of markup, programming, and scientific languages. If gedit recognizes the syntax being used when you open a file, it will automatically highlight the text." +msgstr "gedit zagotavlja poudarjanje skladnje za širok obseg označevalnih, programskih in znanstvenih jezikov. V primeru da gedit prepozna uporabljeno skladnjo, jo bo samodejno poudaril." + +#: C/gedit-syntax-highlighting.page:23(section/p) +msgid "If your syntax or language is not highlighted upon startup, you can select the appropriate syntax or language by clicking View Highlight Mode, and then choosing the desired syntax. Alternately, you can select the syntax name from a list at the bottom of the gedit window." +msgstr "V primeru da vaša skladnja ali jezik ob zagonu ni poudarjen, lahko izberete primerno skladnjo ali jezik s klikom na PogledNačin poudarjanja in izbiro želene skladnje. Namesto tega lahko ime skladnje izberete iz seznama na dnu okna gedit." + +#: C/gedit-tabs-moving.page:19(page/title) +msgid "Move and re-order tabs" +msgstr "Premikanje in prerazporeditev zavihkov" + +#: C/gedit-tabs-moving.page:20(page/p) +msgid "Tabs in gedit can be moved, making it easier to work with your files. Tabs can be can re-ordered within the same window, moved outside of gedit (creating a new gedit window), and moved from one window to another." +msgstr "Zavihke v gedit lahko premaknete in si s tem olajšate delo z datotekami. Zavihke lahko preuredite v istem oknu, premaknete ven iz gedit (in s tem ustvarite novo okno gedit) in premaknete iz enega okna v drugo." + +#: C/gedit-tabs-moving.page:26(section/title) +msgid "Change the order of tabs in the gedit window" +msgstr "Sprememinjanje vrstnega red zavihkov v oknu" + +#: C/gedit-tabs-moving.page:28(section/p) +msgid "To change the ordering of tabs in a window:" +msgstr "Za spremembo vrstnega red zavihkov v oknu:" + +#: C/gedit-tabs-moving.page:31(item/p) +#: C/gedit-tabs-moving.page:67(item/p) +msgid "Click and hold the mouse button on the tab" +msgstr "Kliknite in držite miškin gumb na zavihku" + +#: C/gedit-tabs-moving.page:32(item/p) +msgid "Move the tab to the desired position among the other tabs" +msgstr "Premaknite zavihek na želen položaj med drugimi zavihki" + +#: C/gedit-tabs-moving.page:34(item/p) +#: C/gedit-tabs-moving.page:70(item/p) +msgid "Release the mouse button" +msgstr "Spustite miškin gumb" + +#: C/gedit-tabs-moving.page:37(section/p) +msgid "The tab will be placed in the position closest to where you release the tab, immediately beside other opened tabs." +msgstr "Zavihek bo bil postavljen na položaj, kjer boste spustili zavihek, poleg drugih odprtih zavihkov." + +#: C/gedit-tabs-moving.page:43(section/title) +msgid "Move a tab, creating a new gedit window" +msgstr "Premaknite zavihek in s tem ustvarite novo okno gedit" + +#: C/gedit-tabs-moving.page:44(section/p) +msgid "To create a new window from an existing tab:" +msgstr "Za ustvarjanje novega okna iz obstoječega zavihka:" + +#: C/gedit-tabs-moving.page:47(item/p) +msgid "Click and hold the mouse button on the tab." +msgstr "Kliknite in držite miškin gumb na zavihku." + +#: C/gedit-tabs-moving.page:48(item/p) +msgid "Drag the tab out of the gedit window." +msgstr "Povlecite zavihek iz okna gedit." + +#: C/gedit-tabs-moving.page:49(item/p) +msgid "Release the mouse button." +msgstr "Izpustite miškin gumb" + +#: C/gedit-tabs-moving.page:52(section/p) +msgid "or, while the tab to be moved is open, choose Documents Move to New Window" +msgstr "ali izberite DokumentiPremakni v novo okno, medtem ko je odprt zavihek za premikanje" + +#: C/gedit-tabs-moving.page:56(note/p) +msgid "To move a tab into a new window when gedit is maximized, drag the tab onto the top bar at the top of the screen." +msgstr "Za premik zavihka v novo okno, ko je gedit razpet, povlecite zavihek v vrhnjo vrstico na vrhu zaslona." + +#: C/gedit-tabs-moving.page:62(section/title) +msgid "Move a tab to another gedit window" +msgstr "Povlecite zavihek v novo okno gedit" + +#: C/gedit-tabs-moving.page:64(section/p) +msgid "If you want to move a tab from one window to another:" +msgstr "V primeru da želite premakniti zavihek iz enega okna v drugo:" + +#: C/gedit-tabs-moving.page:68(item/p) +msgid "Drag the tab to the new window" +msgstr "Povlecite zavihek v novo okno" + +#: C/gedit-tabs-moving.page:69(item/p) +msgid "Place it beside other tabs in the new window" +msgstr "Postavite ga poleg drugih zavihkov v novem oknu" + +#: C/gedit-tabs-moving.page:75(note/p) +msgid "You may find it easier to move a tab from one window to another by dragging the tab to the Activities hot-corner of the GNOME Shell. This will reveal each of the open gedit windows. You can then release the tab on the desired gedit window." +msgstr "Morda vam bo zavihek lažje premakniti iz enega zavihka v drugega z vlečenjem zavihka v vroči kot Dejavnosti GNOME Shell. To bo razkrilo vsa odprta okna gedit. Nato lahko zavihek izpustite na želeno okno gedit." + +#: C/gedit-tabs-moving.page:82(section/p) +msgid "See the tab-related shortcut keys table to make it easier to manage your tabs." +msgstr "Oglejte si z zavihki povezane tipkovne bližnjice, ki naredijo upravljanje vaših zavihkov enostavnejše." + +#: C/gedit-tabs.page:20(page/title) +msgid "Add and remove tabs" +msgstr "Dodajanje in odstranjevanje zavihkov" + +#: C/gedit-tabs.page:21(page/p) +msgid "Working with tabs in gedit allows you to keep an eye on several files in a single window. The tab that is larger than the other tabs indicates the file that is currently open. The smaller tabs indicate other files that are available to work on." +msgstr "Delo z zavihki v gedit vam omogoča nadzor nad več datotekami v enem oknu. Zavihek, ki je večji kot drugi zavihki, nakazuje, da je ta datoteka trenutno odprta. Manjši zavihki nakazujejo, da so druge datoteke na voljo za delo." + +#: C/gedit-tabs.page:28(section/title) +msgid "Adding tabs" +msgstr "Dodajanje zavihkov" + +#: C/gedit-tabs.page:29(section/p) +msgid "To add a new tab, create a new file with CtrlN . The tab will be added to the right side of any other tabs." +msgstr "Za dodajanje novega zavihka ustvarite novo datoteko s CtrlN. Zavihek bo bil dodan desno od drugih zavihkov." + +#: C/gedit-tabs.page:35(section/title) +msgid "Removing tabs" +msgstr "Odstranjevanje zavihkov" + +#: C/gedit-tabs.page:36(section/p) +msgid "To remove a tab, click the X on the tab's right side. To remove all open tabs, press CtrlShift W" +msgstr "Za odstranitev zavihka kliknite X na desni strani zavihka. Za odstranitev vseh odprtih zavihkov pritisnite CtrlShiftW" + +#: C/gedit-undo-recent-action.page:23(page/title) +msgid "Undo a recent action" +msgstr "Razveljavi zadnje dejanje" + +#: C/gedit-undo-recent-action.page:25(page/p) +msgid "If you make a mistake while using gedit, you can undo it by pressing CtrlZ, or by clicking EditUndo. Doing so will cause gedit to undo one set of similar actions." +msgstr "Kadar pri uporabi programa gedit storite napako, jo lahko razveljavite s pritiskom kombinacije tipk krmilkaZ ali s klikom UrediRazveljavi. Na ta način bo gedit razveljavil cel skupek podobnih dejanj." + +#: C/gedit-undo-recent-action.page:30(note/p) +msgid "Undoing a \"set of similar actions\" means, for example, that gedit will remove an entire word rather than removing each character in the word one at a time. This makes gedit's undo feature more efficient." +msgstr "Razveljavljanje \"skupka podobnih dejanj\" pomeni, da npr. gedit odstrani celo besedo namesto vsakega znaka besede posebej. Zato je funkcija razveljavi programa gedit bolj učinkovita." + +#: C/gedit-undo-recent-action.page:35(note/p) +msgid "You cannot undo a change after you have saved it." +msgstr "Stanja pred spremembo ni mogoče več povrniti, če ste datoteko že shranili." + +#: C/gedit-view-open-files-in-sidepane.page:19(page/title) +msgid "View a list of files in the side pane" +msgstr "Oglejte seznama datotek v stranskem pladnju" + +#: C/gedit-view-open-files-in-sidepane.page:21(page/p) +msgid "Keeping track of a large number of files using tabs can be difficult. One way of managing large numbers of files is viewing them in a side pane. Side panes allow you to view more files at a time than is possible using tabs alone." +msgstr "Sledenje velikemu številu datotek z uporabo zavihkov je lahko težavno. En način upravljanja velikega števila datotek je njihov ogled v stranskem pladnju. Stranski pladnji vam omogočajo ogled več datotek hkrati kot le z zavihki." + +#: C/gedit-view-open-files-in-sidepane.page:26(page/p) +msgid "To view a list of open files in a side pane, click View Side Pane. A pane will appear to the left of the workspace with a listing of all currently open files. Clicking a file in the side pane will display that file in the workspace." +msgstr "Za ogled seznama odprtih datotek v stranskem pladnju kliknite PogledStranski pladenj. Na levi strani delovne površine se bo pojavil pladenj, ki bo izpisal vse trenutno odprte datoteke. Klik na datoteko v stranskem pladnju jo bo prikazal na delovni površini." + +#: C/gedit-view-open-files-in-sidepane.page:31(page/p) +msgid "The side pane also contains a File Browser view. If the pane displays a file directory instead of currently open files, click documents icon at the bottom of the pane to switch to the Documents view." +msgstr "Stranski pladenj vsebuje tudi pogled Brskalnika datotek. V primeru da pladenj prikazuje seznam map namesto trenutno odprtih datotek, kliknite ikono dokumentov na dnu pladnja za preklop na pogled Dokumenti." + +#: C/gedit-view-open-files-in-sidepane.page:38(note/p) +msgid "The side pane only displays files that are open in the current window. When multiple windows are open, only the files in the current window will be displayed in the side pane." +msgstr "Stranski pladenj prikazuje le datoteke, ki so odprte v trenutnem oknu. Ko je odprtih več oken, bodo v stranskem pladnju prikazane le datoteke v trenutnem oknu." diff --git a/help/sv/figures/gedit-html-snippet.png b/help/sv/figures/gedit-html-snippet.png new file mode 100644 index 0000000..3edf6ba Binary files /dev/null and b/help/sv/figures/gedit-html-snippet.png differ diff --git a/help/sv/figures/gedit3-screenshot.png b/help/sv/figures/gedit3-screenshot.png new file mode 100644 index 0000000..e7d3a46 Binary files /dev/null and b/help/sv/figures/gedit3-screenshot.png differ diff --git a/help/sv/sv.po b/help/sv/sv.po new file mode 100644 index 0000000..b5610d1 --- /dev/null +++ b/help/sv/sv.po @@ -0,0 +1,4168 @@ +# Daniel Nylander , 2007, 2008, 2009. +# Anders Jonsson , 2016, 2017, 2019, 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit\n" +"POT-Creation-Date: 2020-11-13 22:20+0000\n" +"PO-Revision-Date: 2020-11-14 12:09+0100\n" +"Last-Translator: Anders Jonsson \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.1\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Daniel Nylander , 2007, 2008, 2009\n" +"Anders Jonsson , 2016, 2017" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Ändra text- och bakgrundsfärgerna i gedit." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:11 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Ändra färgschemat" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"gedit inkluderar flera olika färgscheman, vilket låter dig ändra " +"utseendet för huvudtextfönstret." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "För att ändra färgschemat:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 C/gedit-change-default-font.page:29 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Tryck på menyknappen i fönstrets övre högra hörn och välj InställningarTypsnitt och färger." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Välj ditt önskade färgschema." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Det nya färgschemat kommer tillämpas omedelbart." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Använda ett anpassat färgschema" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Du kan också använda färgscheman som har skapats av andra, eller skapa och " +"använda dina egna färgscheman." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Instruktioner för hur du installerar anpassade färgscheman, såväl som " +"exempel på färgscheman som du kan hämta och använda finns tillgängliga på " +"geditwikin." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Använd ett anpassat typsnitt för din text i gedit." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:13 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:20 +msgid "Change the default font" +msgstr "Ändra standardtypsnittet" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:22 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit kommer använda systemets typsnitt med fast breddsteg som " +"standard, men du kan ändra standardtypsnittet för gedit så att " +"det passar dina önskemål." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:27 +msgid "To change the default font in gedit:" +msgstr "För att ändra standardtypsnittet i gedit:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed width font.\"" +msgstr "" +"Kryssa ur rutan intill frasen ”Använd systemets typsnitt med fast breddsteg”." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:34 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Klicka på det aktuella typsnittsnamnet. gedit kommer att öppna " +"ett typsnittsväljarfönster, vilket låter dig se tillgängliga typsnitt och " +"välja det som du föredrar." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Efter att du har valt ett nytt typsnitt, använd skjutreglaget " +"under listan med typsnitt för att ställa in standardtypsnittsstorleken." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:39 +msgid "Click Select, and then close the dialog." +msgstr "Klicka på Välj, och stäng sedan dialogrutan." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Gå ut ur filen som du använder." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Stäng en fil" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"För att stänga en fil i gedit, klicka på knappen × till höger i filens flik, eller tryck CtrlW." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Endera av dessa åtgärder kommer att stänga en fil i gedit. Om din " +"fil innehåller ändringar som inte har sparats kommer gedit att " +"fråga dig om du vill spara ändringarna innan filen stängs." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Öppna en ny fil för redigering." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Skapa en ny fil" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"Det enklaste sättet att skapa en ny fil i gedit är att klicka på " +"knappen Skapa nytt dokument till vänster i rubrikraden, eller " +"trycka CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Endera av dessa åtgärder kommer att skapa en ny fil i gedit. Om " +"du har andra filer öppna i gedit kommer den nya filen som du " +"skapar att dyka upp som en ny flik till höger om de filerna." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Använd administratörsbehörighet för att redigera en fil." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Redigera en fil som root-användaren" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Att redigera filer som root-användaren är potentiellt farligt, och kan " +"förstöra ditt system på otrevliga sätt. Var ytterst försiktig när du " +"redigerar filer som root-användaren." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"För att redigera filer som root-användaren, starta gedit från " +"terminalen genom att skriva:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Då du använder kommandot sudo måste du mata in ditt lösenord för " +"att gedit ska öppnas." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Som ett alternativ till kommandot sudo kan du få " +"administratörsbehörighet genom att mata in:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Du skulle då sedan starta gedit med kommandot gedit." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Då du har öppnat gedit med administratörsbehörighet kommer " +"gedit att behålla denna behörighet tills du stänger det." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Lär dig grunderna i hur du arbetar med filer i gedit." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Filgrunder: öppna, stänga och spara filer" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Om du är nybörjare med gedit kommer dessa ämnen att hjälpa dig " +"med att skapa, spara, öppna och stänga filer." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Ställ in gedit att använda hela skärmen." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Använd helskärmsläge" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Då du arbetar med ett stort dokument kan du tycka att det hjälper att arbeta " +"i gedits helskärmsläge. Att använda helskärmsläge kommer dölja " +"menyraden, flikraden och verktygsfältet, " +"vilket visar dig mer av din text och låter dig fokusera bättre på dina " +"uppgifter." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Slå på helskärmsläge" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Tryck F11 för att slå på helskärmsläge. Meny-, titel- och " +"flikraderna i gedit kommer att döljas, och endast texten i din " +"aktuella fil kommer att visas." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Om du behöver utföra en åtgärd från gedit-menyn medan du arbetar " +"i helskärmsläge flyttar du muspekaren högst upp på skärmen. Menyraden i " +"gedit kommer att dyka upp igen, och du kan välja önskad åtgärd." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"För att växla mellan öppna flikar medan du är i helskärmsläge, tryck " +"antingen CtrlAltPgUp eller " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Slå av helskärmsläge" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"För att slå av helskärmsläge och återvända till standardfönstret för " +"gedit, tryck F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Du kan också flytta muspekaren överst på skärmen och vänta på att " +"menyraden dyker upp. Då menyraden dyker upp, välj " +"knappen Lämna helskärmsläge." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Använd gedits sidopanel som en filbläddrare." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Visa och öppna filer från sidopanelen" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Det vanligaste sättet att växla mellan filer i gedit är genom att " +"använda flikarna högst upp i gedit-fönstret. Ibland kan du dock, " +"i synnerhet då du arbetar med ett stort antal öppna filer, finna det lättare " +"att använda sidopanelen." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"För att aktivera sidopanelen, välj Visa Sidopanel, eller tryck bara ned F9-tangenten." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Du kan öppna eller stänga sidopanelen när som helst genom att trycka " +"F9." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Öppna filer från sidopanelen" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"För att öppna filer från sidopanelen, öppna först sidopanelen genom att " +"välja Visa Sidopanel, (eller tryck " +"helt enkelt F9), och välj sedan Filbläddrare från " +"rullgardinsmenyn högst upp i panelen." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Detta kommer aktivera filbläddrarläget för sidopanelen. Du kan " +"sedan använda navigeringsknapparna högst upp i panelen för att hitta och " +"öppna dina önskade filer." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Använda sidopanelen för att växla mellan öppna filer" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Då du har flera filer öppna kan du använda sidopanelen för att växla mellan " +"öppna filer. För att lista öppna filer, välj Dokument från " +"rullgardinsmenyn högst upp i panelen." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Att klicka på ett filnamn i sidopanelen kommer att öppna den filen för " +"redigering." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Öppna filer för att börja arbeta med dem." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Öppna en fil eller en uppsättning filer" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"För att öppna en fil i gedit, klicka på knappen Öppna " +"eller tryck CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Detta kommer att få dialogrutan Öppna att visas. Använd musen " +"eller tangentbordet för att markera filen som du vill öppna och klicka sedan " +"Öppna. Filen som du har markerat kommer att öppnas i en ny flik." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"För att stänga dialogrutan Öppna utan att öppna en fil, klicka på " +"Avbryt." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Du kan använda tangenterna Ctrl och Skift för att " +"öppna mer än en fil samtidigt. Om du håller ner Ctrl-tangenten " +"medan du markerar flera filer så kommer att klicka på Öppna att " +"öppna var och en av filerna som du har markerat." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Att hålla ner Skift medan du markerar flera filer kommer öppna " +"den första filen som du markerar, den sista filen som du markerar, och alla " +"filer däremellan." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Kom åt filer som lagras på en annan dator." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Öppna en fil som finns på en server" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Före du öppnar en fil på en server inifrån gedit kommer du behöva " +"viss teknisk information om servern. Du kommer till exempel behöva veta IP-" +"adress eller URL för servern, och kan även behöva veta vad för slags server " +"det är (t.ex. HTTP, FTP o.s.v.)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Vidare ålägger några sorters servrar restriktioner på vad du kan gör med " +"filerna på servern. Till exempel kan du kanske öppna en fil från en server, " +"men kan behöva att spara alla ändringar i filen lokalt på din egen dator." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Medveten om dessa varningar kan du utföra följande steg för att öppna en fil " +"från en server med gedit:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "Klicka på Öppna i rubrikraden." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Klicka på Andra platser." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Ange IP-adress eller URL för lämplig server." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Hitta och välj filen som du vill öppna." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Använd rullgardinsmenyn Teckenkodning för att välja lämplig teckenkodning." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Klicka på Öppna." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Giltiga typer av URI inkluderar http:, ftp:, file: och alla de metoder som " +"stöds av GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Filer från vissa typer av URI:er öppnas skrivskyddade, och alla ändringar du " +"gör måste sparas på en annan plats. Till exempel tillåter HTTP endast filer " +"att bli lästa. Filer öppnade från en FTP-server är skrivskyddade på grund av " +"att inte alla FTP-servrar fungerar korrekt när man sparar fjärrfiler." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Kom åt filer som du har öppnat tidigare i gedit." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Återöppna en nyligen använd fil" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"gedit tillhandahåller lätt åtkomst till dina tio senast använda " +"filer, som tidigare har öppnats i gedit. Här kan du se hur du kan " +"öppna en nyligen använd fil:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "Klicka på pilknappen intill knappen Öppna i rubrikraden." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "" +"gedit kommer att visa en meny med de tio senast använda filerna." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Välj den önskade filen så kommer den öppnas i en ny flik." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Vid hovring med musen över en nyligen använd fil från menyn visas filens " +"fullständiga sökväg i statusraden längst ner i gedit-fönstret." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Använd insticksmoduler för att anpassa hur gedit arbetar för dig." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Konfigurera och använd insticksmoduler i gedit" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Du kan göra mer med gedit genom att använda insticksmoduler. " +"Flera insticksmoduler installeras som standard, men ett stort antal andra " +"insticksmoduler finns tillgängliga separat." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Många Linuxdistributioner gör en grupp av dessa insticksmoduler tillgängliga " +"som ett paket med namnet gedit-plugins. Installera paketet " +"gedit-plugins för att göra dessa extra insticksmoduler " +"tillgängliga för gedit." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Installera gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Standardinsticksmoduler för gedit" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Ytterligare insticksmoduler för gedit" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Ändra skiftläget för markerad text." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Ändra skiftläge" + +# TODO: Can't find "Change Case" among strings. +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Denna insticksmodul hjälper dig ändra skiftläge för markerade textstycken. " +"Du kan använda den för att ändra all text till gemener, till versaler, för " +"att växla skiftläget eller för att tillämpa inledande versaler på ord. För " +"att aktivera denna insticksmodul, välj geditInställningar InsticksmodulerÄndra skiftläge." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Då insticksmodulen Ändra skiftläge är aktiverad kan du använda den " +"genom att utföra följande steg:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Markera textstycket som du vill ändra." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Välj geditÄndra skiftläge" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Välj ditt önskade textformateringsalternativ." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "" +"Uppdateringarna för textformateringen kommer att verkställas omedelbart." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Alternativet Invertera skiftläge kommer konvertera alla gemener " +"till versaler och alla versaler till gemener." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Alternativet Versaler inleder ord kommer konvertera den första " +"bokstaven i varje ord till versal. Alla andra bokstäver kommer konverteras " +"till gemener." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Om du inte har markerat någon text kommer funktionen Ändra skiftläge att vara gråtonad. Du måste välja ett textstycke innan du använder " +"funktionen Ändra skiftläge." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Visa dokumentstatistik." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Dokumentstatistik" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Insticksmodulen Dokumentstatistik visar dig diverse statistik om " +"ditt aktuella dokument. För att aktivera denna insticksmodul, välj " +"geditInställningar InsticksmodulerDokumentstatistik." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Använda dokumentstatistik" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Då insticksmodulen är aktiverad kan du använda den genom att välja " +"Verktyg Dokumentstatistik. Ett " +"fönster kommer att visa statistiken för ditt dokument, detta inkluderar " +"antalet ord, rader, tecken, blankstegsskilda tecken och filstorleken i byte." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Du kan också använda Dokumentstatistik för att visa dig information " +"om bara en del av ditt dokument. För att göra detta, använd muspekaren för " +"att markera textstycket som du vill undersöka, och välj sedan " +"VerktygDokumentstatistik. Gedit kommer visa information både för hela ditt dokument och för textstycket " +"som du markerat." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "Kör skript på dina aktuella filer, och interagera med andra program." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Externa verktyg" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Insticksmodulen Externa verktyg kan hjälpa till att förenkla " +"enformiga uppgifter. Specifikt utökar det gedit genom att hjälpa " +"dig att köra skript på dina arbetsfiler och genom att låta gedit " +"interagera med andra program på din dator. För att aktivera insticksmodulen " +"Externa verktyg, välj gedit " +"InställningarInsticksmoduler " +"Externa verktyg." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Konfigurera insticksmodulen Externa verktyg" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Då du har aktiverat insticksmodulen kommer du behöva konfigurera den så att " +"den passar för dina behov. Konfigurationsalternativen är tillgängliga genom " +"att välja VerktygHantera externa verktyg." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Denna insticksmodul är för avancerade användare, och kräver kunskap om " +"skript för att kunna användas effektivt. Använd denna insticksmodul med " +"försiktighet eftersom misstag med dina skript kan påverka ditt arbete på " +"sätt som du inte avsett." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Använd sidopanelen för att bläddra bland och öppna filer." + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Filbläddrarpanel" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Beroende på hur du använder gedit kan du finna det praktiskt att " +"använda insticksmodulen Filbläddrarpanel. Denna insticksmodul " +"bäddar in en filbläddrare i sidopanelen, vilket ger dig enkel " +"åtkomst till ofta använda filer." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Du kan aktivera sidopanelen genom att välja geditInställningar " +"InsticksmodulerFilbläddrarpanel." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Infoga aktuellt datum och tid vid markörpositionen." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Infoga datum/tid" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Som namnet antyder så låter insticksmodulen Infoga datum/tid dig " +"infoga aktuellt datum och/eller tid vid aktuell markörposition." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "För att aktivera insticksmodulen:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Tryck på menyknappen i fönstrets övre högra hörn och välj Inställningar Insticksmoduler." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Välj Infoga datum/tid för att aktivera " +"insticksmodulen." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"För att använda insticksmodulen, tryck på menyknappen i fönstrets övre högra " +"hörn och välj Verktyg Infoga datum och tid…." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Som standard kommer insticksmodulen Infoga datum/tid att be dig " +"att välja ditt föredragna format för datum/tid varje gång du använder " +"insticksmodulen. Du kan dock välja ditt eget standardformat för datum och " +"tid genom att trycka på menyknappen i fönstrets övre högra hörn och välja " +" Inställningar InsticksmodulerInfoga datum/tidInställningar." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Hur man installerar insticksmoduler från tredje part." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Ytterligare insticksmoduler för gedit" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Att installera insticksmoduler från tredje part ger dig extra funktionalitet " +"som inte är tillgänglig i standardinsticksmodulerna för gedit, " +"eller ens i de extra insticksmodulerna som paketet gedit-plugins " +"består av. En lista på nätet över tredjepartsinsticksmoduler kan hittas här." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Att installera en insticksmodul från tredje part inkluderar att hämta hem " +"insticksmodulen, placera insticksmodulfilerna i rätt katalog och att " +"aktivera insticksmodulen." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Du kan vanligen hämta en insticksmodul från insticksmodulens webbplats, men " +"kan behöva använda ett versionshanteringsprogram som git, " +"bazaar eller subversion för att kopiera en insticksmoduls " +"programvaruarkiv från internet. Se insticksmodulens dokumentation för " +"information om hur du kan få tag på insticksmodulen." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Placera insticksmodulfilerna i katalogen /home/användarnamn/.local/share/gedit/plugins." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Ordet användarnamn ska förstås ersättas med ditt eget " +"användarnamn." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Efter att du har placerat insticksmodulfilerna i rätt katalog kommer " +"insticksmodulen dyka upp i menyn Inställningar. Tryck på menyknappen i " +"fönstrets övre högra hörn och välj InställningarInsticksmoduler[Namn på " +"insticksmodul] för att aktivera insticksmodulen." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Klicka på Stäng." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" +"Efter att du aktiverat insticksmodulen bör den vara tillgänglig för dig att " +"använda." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Katalogen .local är som standard dold. För att visa den och " +"andra dolda filer, välj VisaVisa dolda filer, eller tryck CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Om katalogen .local/share/gedit/plugins/ inte finns på ditt " +"system kommer du behöva skapa den." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Stöd för lägesrader med Emacs-, Kate- och Vim-stil för gedit." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Lägesrader" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Insticksmodulen Lägesrader låter gedit analysera " +"raderna i början och slutet på en fil, och sedan tillämpa en uppsättning " +"dokumentinställningar för filen. Insticksmodulen Lägesrader " +"stöder en delmängd av alternativen som används av textredigerarna " +"Emacs, Kate och Vim." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"För att aktivera insticksmodulen Lägesrader, välj gedit InställningarInsticksmodulerLägesrader." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Allmänna lägesradsalternativ" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "Följande alternativ kan ställas in med lägesrader i gedit:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tabulatorbredd" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Indenteringsbredd" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Infoga blanksteg istället för tabulatortecken" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Textradbrytning" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Högermarginalbredd" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Inställningar inställda med lägesrader åsidosätter de som angivits i " +"inställningsdialogen." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Lägesrader för Emacs" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"De två första raderna i ett dokument söks igenom efter lägesrader för " +"Emacs, och gedit stöder följande lägesradsflaggor för " +"Emacs:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Indent-offset" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Indent-tabs-mode" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Text auto-wrap" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"För mer information om lägesrader för Emacs, se handboken för GNU " +"Emacs." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Lägesrader för Kate" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"De tio första och sista raderna i ett dokument söks igenom efter lägesrader " +"för Kate, och gedit stöder följande lägesradsflaggor " +"för Kate:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "tab-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "indent-width" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "space-indent" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "word-wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "word-wrap-column" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"För mer information om lägesrader för Kate, besök webbplatsen för Kate." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Lägesrader för Vim" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"De tre första och sista raderna i ett dokument söks igenom efter lägesrader " +"för Vim, och gedit stöder följande lägesradsflaggor " +"för Vim:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "wrap" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "textwidth" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"För mer information om lägesrader för Vim, besök webbplatsen för Vim." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Lägg till en interaktiv Python-konsol i underpanelen." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Python-konsol" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Du kan lägga till en Python-konsol till underpanelen, vilket låter dig testa " +"Pythonskript utan att lämna gedit. För att aktivera Python-" +"konsolen, välj gedit InställningarInstickmoduler Python-konsol." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Då Python-konsolen är aktiverad kan du öppna den genom att välja " +"VisaUnderpanel." + +# TODO: embedded +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Om du också har aktiverat insticksmodulen Inbäddad terminal " +"kommer Python-konsol att dyka upp som en separat flik i " +"underpanelen." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Öppna snabbt en fil eller en uppsättning filer." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Snabböppna" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Som namnet på insticksmodulen antyder så hjälper Snabböppna dig " +"att öppna filer snabbare än de vanliga sätten att öppna filer. För att " +"aktivera denna insticksmodul. välj gedit " +"InställningarInsticksmodulerSnabböppna." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Då du har aktiverat insticksmodulen Snabböppna kan du använda den " +"enligt följande:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Öppna dialogrutan Snabböppna genom att trycka CtrlAltO, eller genom att välja Snabböppna…." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "Fildialogen Snabböppna kommer att dyka upp." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "Använd musen för att välja filen eller filerna som du vill öppna." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"För att välja flera individuella filer, håll nere Ctrl-tangenten " +"medan du klickar på filerna som du vill öppna." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"För att välja en grupp filer, klicka på det första filen som du vill öppna, " +"håll nere Skift-tangenten och klicka på den sista filen i listan " +"filer som du vill öppna." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "Snabböppna kommer att leta efter filer i:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "Katalogen för det aktuella öppnade dokumentet" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"Rotkatalogen för insticksmodulen Filbläddrarpanel" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"Nyligen använda dokument som också visas i Senaste-mappen i " +"Filer" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Kataloger som du har bokmärkt i Filer" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "Din Skrivbordskatalog" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "Din Hemkatalog" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"Snabböppna visar filer i alla ovannämnda platser oavsett om du " +"öppnat dem tidigare eller inte." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "Använd textsnuttar för att snabbt infoga ofta använda textstycken." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Textsnuttar" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"Textsnuttar tillhandahåller ett bekvämt sätt att infoga " +"kodstycken som upprepar sig i dina filer. Till exempel skulle en HTML-" +"textsnutt för taggen <img> infoga start- och slutdelarna " +"för taggen, såväl som fasta platser där du kan ange bildattribut. Detta kan " +"göra det enklare och snabbare att skriva kod." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Aktivera insticksmodulen Textsnuttar" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "För att aktivera insticksmodulen Textsnuttar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Välj gedit Inställningar Insticksmoduler." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Välj Textsnuttar för att aktivera " +"insticksmodulen." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Bläddra bland textsnuttar" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "För att bläddra bland tillgängliga textsnuttar:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Välj Verktyg Hantera textsnuttar." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Säkerställ att syntaxen är lämpligt inställd. Statusraden längst ner på " +"gedit-fönstret kommer visa den aktuella språkinställningen. Denna " +"språkinställning är vad som låter gedit infoga rätt textsnuttar. Gedit kommer vanligtvis att detektera språk eller syntax för filen som du " +"använder, men ibland kan du behöva ställa in det." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "I detta exempel är språket inställt till HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "" +"Bläddra bland textsnuttarna som finns tillgängliga för ditt språk eller " +"syntax." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Använda textsnuttar" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "För att infoga en textsnutt i ditt aktuella dokument:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "" +"Skriv namnet på den önskade textsnutten var som helst i ditt aktuella " +"dokument." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Tryck Tabb för att infoga textsnutten som är associerad med " +"inmatningen." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Exempel på användning av textsnutt" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Till exempel, om du ställt in syntax till HTML, skriv head , och tryck ned Tabb-tangenten. Texten autokompletteras då " +"till en textsnutt som:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Sidtitel</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Lägg till textsnuttar" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Du kan lägga till nya textsnuttar som antingen fungerar globalt (det vill " +"säga oberoende av språk) eller endast i en specifik syntax." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Välj Verktyg Hantera textsnuttar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"Från sidopanelen Hantera textsnuttar, välj den önskade syntaxen " +"och klicka på ”+”-knappen för att lista befintliga textsnuttar för vald " +"syntax." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"För att lägga till en textsnutt som fungerar globalt (det vill säga då ingen " +"specifik syntax eller språk har ställts in för dokumentet), välj " +"Global från sidopanelen Hantera textsnuttar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"För att lägga till en ny textsnutt, klicka på ”plus”-ikonen i sidopanelen " +"Hantera textsnuttar." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Mata in ett namn för den nya textsnutten. Namnet på textsnutten kan skilja " +"sig från textsnutten som du vill lägga till." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Under avsnittet Aktivering måste du mata in en " +"term för textområdet Tabulatorutlösare:. Du " +"kommer att använda denna term för att infoga din textsnutt." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Om du vill infoga en textsnutt med en tangentbordsgenväg klickar du med " +"muspekaren på textområdet Kortkommando: och " +"trycker den önskade tangentkombinationen. Då du har tryckt ner och släppt " +"tangenterna kommer kortkommandot att vara inställt." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Under textområdet för Redigera:, mata in den " +"önskade texten för textsnutten. Du kan använda ${n} för att " +"indikera variabler, där n ersätts med ett tal som representerar " +"nummerordningen för inkluderade variabler." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Nytt textsnuttsexempel" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Anta att du skapat en textsnutt med termen hälsningar i Tabulatorutlösare:. Textområdet Redigera: innehåller:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hej ${1:underbara}${2:fantastiska} värld!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Du kan infoga denna textsnutt genom att skriva hälsningar i " +"dokumentet och trycka ner Tabb-tangenten. Följande textsnutt " +"kommer att infogas:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hej underbarafantastiska värld!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Orden ”underbara” och ”fantastiska” kan behållas eller tas bort beroende på " +"vad du väljer att använda. För att göra detta, tryck Tabb för att " +"välja mellan ”underbara” och ”fantastiska” och tryck Del för att " +"ta bort det minst önskade alternativet." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Sortera textrader till alfabetisk ordning." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Sortera" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Insticksmodulen Sortera arrangerar om markerade textrader till alfabetisk " +"ordning." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Aktivera insticksmodulen Sortera" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "För att aktivera insticksmodulen Sortera:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Välj Sortera för att aktivera insticksmodulen." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Använda insticksmodulen Sortera" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "För att använda insticksmodulen Sortera:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Markera de önskade textraderna." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Välj Arkiv Sortera…" +"." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Dialogrutan Sortera kommer att öppnas, vilket låter dig välja " +"mellan flera sorteringsalternativ:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"Baklänges kommer arrangera texten i omvänd alfabetisk ordning." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "" +"Ta bort dubbletter kommer ta bort dubblerade värden från listan." + +# TODO: Is this called "Case sensitive"? +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "" +"Ignorera skiftläge kommer att ignorera skiftlägeskänslighet." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"För att sorteringen ska ignorera tecknen i början av raderna, ställ in det " +"första tecknet som ska användas för sorteringen i snurrväljaren Börja " +"vid kolumn." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "För att genomföra sorteringsåtgärden, klicka på Sortera." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Ställ in sidorna att skrivas ut i en speciell ordning." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Få exemplar att skrivas ut i korrekt ordning" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Omvänd ordning" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Skrivare skriver vanligtvis ut den första sidan först, och den sista sidan " +"sist så sidorna kommer ut i omvänd ordning när du tar dem. För att vända på " +"ordningen:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Välj Arkiv Skriv " +"ut." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"I fliken Allmänt i utskriftsdialogen, under Kopior, kryssa i Omvänd." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Den sista sidan kommer att skrivas ut först o.s.v." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Sortera" + +# TODO: e.g -> i.e +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Om du skriver ut mer än ett exemplar av dokumentet kommer utskrifterna att " +"som standard grupperas efter sidnummer. (D.v.s. kommer först exemplar av " +"sida ett att komma ut, sedan exemplar av sida två, o.s.v.) Sortering kommer " +"att få varje exemplar att komma ut med dess sidor grupperade ihop." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "För att sortera:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Klicka Arkiv Skriv " +"ut." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"I fliken Allmänt i utskriftsdialogrutan, under Kopior, kryssa i Sortera." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Skriv ut filerna som du skapar med gedit." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Skriva ut dokument" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Att skriva ut med gedit kräver att du har anslutit och " +"konfigurerat din skrivare. Om du inte har gjort detta, konsultera utskriftshjälpen för GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "gedit låter dig både skriva ut till en fil och på papper." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Förhandsvisa utskrift" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"Före du skriver ut ditt dokument kan du förhandsvisa hur det utskrivna " +"dokumentet kommer se ut genom att använda Förhandsvisa. För att " +"förhandsvisa dokumentet:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Välj Arkiv Förhandsvisa utskrift. Alternativt kan du trycka " +"SkiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"En förhandsgranskning av ditt dokument kommer att öppnas i samma flik som " +"filen. Du kan bläddra i denna förhandsgranskning med hjälp av " +"navigeringsknappar och verktyg i verktygsfältet högst upp i " +"dokumentförhandsgranskningsfliken. För att stänga och återvända till " +"dokumentet klicka på Stäng förhandsvisning." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Utskrift på papper" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Du kan skriva ut dina dokument på papper med en lokal skrivare eller en " +"fjärrskrivare. För att skriva ut en fil:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Välj Arkiv Skriv " +"ut Allmänt." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Välj den önskade skrivaren från listan av tillgängliga skrivare." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Du kan förhandsgranska filen med Förhandsvisa, " +"och då du är nöjd med inställningarna kan du klicka Skriv ut för att sända filen till skrivaren." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Dessutom kan du från fliken Sidinställning välja " +"alternativ för Layout och Papper. Eftersom dessa inställningar är tillgängliga i diverse " +"GNOME-program, se hjälpsidan för alternativ för layout och papper." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Skriv ut flera exemplar och inom angivna intervall" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Du kan ställa in alternativen Intervall och Kopior för att hjälpa dig:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Utskrift till fil" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Du kan också använda gedit för att skriva ut till en fil. För att " +"skriva ut ditt dokument till en fil med ett annat format:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Välj Arkiv Skriv " +"ut Skriv ut till fil." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Utskrift är aktiverad för följande filformat, du kan välja bland:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "Postscript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"För att skriva ut dokumentet till en fil, klicka på Skriv ut." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Välj de sidor som du vill skriva ut." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Skriv bara ut vissa sidor" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Du kan välja att endast skriva ut vissa sidor från dokumentet. Om du till " +"exempel anger sidnumren ”1,3,5-7,9” kommer endast sidorna 1, 3, 5, 6, 7 och " +"9 att skrivas ut. För att skriva ut dina önskade sidor:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Välj Arkiv Skriv " +"ut…." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"I fliken Allmänt i utskriftsdialogen, välj Sidor från avsnittet Intervall." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Skriv in numren för sidorna som du vill skriva ut från dokumentet, " +"separerade av kommatecken. Använd ett bindestreck för att ange ett " +"sidintervall." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "En kort introduktion till gedit." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Kom igång med gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit är en komplett textredigerare för skrivbordsmiljön GNOME. " +"Du kan använda den för att förbereda enkla anteckningar och dokument, eller " +"så kan du använda några av dess avancerade funktioner så att den blir din " +"egen programvaruutvecklingsmiljö." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Då gedit startar kan du börja skriva direkt. För att spara din " +"text klickar du bara på Spara-ikonen i gedits " +"rubrikrad." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"För att lära dig om ytterligare funktioner i gedit och för att få " +"hjälp med att utföra andra uppgifter, utforska de andra " +"avsnitten i hjälpen för gedit." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Ersätt textstycken i en fil." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Ersätt text" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Att redigera text kan vara tidsödande. För att spara tid inkluderar " +"gedit funktionen Ersätt som hjälper dig hitta och " +"ersätta textstycken." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Ersätt text i gedit" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Öppna verktyget Ersätt genom att klicka MenyknappSök och ersätt… eller trycka CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "Skriv in texten som du vill ersätta i fältet Sök." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "Ange den nya ersättningstexten i fältet Ersätt med." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Då du har angivit den ursprungliga texten och ersättningstexten kan du lägga " +"till extra parametrar till sökningen. Du kan också välja vad du vill ersätta:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"För att ersätta endast nästa matchning, klicka på Ersätt." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"För att ersätta alla förekomster av den sökta texten, klicka på " +"Ersätt alla." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Använd funktionen Ersätt alla försiktigt. Ersätt alla " +"utförs på hela din textfil, och låter dig inte markera textstycken där " +"funktionen kommer att utföras." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Fler alternativ" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Om du vill kan du lägga till extra parametrar till din sökning:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Gör skillnad på skiftläge" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Alternativet Gör skillnad på skiftläge låter dig ange huruvida du " +"vill att dina sökningar ska vara skiftlägeskänsliga. Om detta alternativ är " +"markerat kommer sökningar att vara skiftlägeskänsliga. I annat fall kommer " +"sökningar inte att vara skiftlägeskänsliga." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Matcha endast hela ord" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Använd detta alternativ för att söka efter ett specifikt ord utan att " +"inkludera delar av andra ord. Om du till exempel sökte efter ordet ”and” med " +"detta alternativ markerat så kommer ordet ”and” att ge en sökträff, men " +"orden ”sand” och ”kommando” skulle inte ge någon sökträff." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Sök baklänges" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Detta kommando beter sig precis som kommandot Sök föregående. Kryssa i detta " +"alternativ om du vill stega genom resultat från slutet till början." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Börja om från början" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Då alternativet Börja om från början är aktiverat kommer " +"gedit att starta om sök/ersätt-åtgärden i början av filen då den " +"har nått slutet på filen. Detta säkerställer att din sök/ersätt-åtgärd " +"utförs i hela din fil." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Använda kontrollsekvenser" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Du kan använda kontrollsekvenser för att söka efter nyrader, " +"vagnreturer och tabbar." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Nyrad" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Vagnretur" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Tabb" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Om du faktiskt vill söka efter ett \\ (omvänt snedstreck) " +"eller en av kontrollsekvenserna i texten så måste det omvända snedstrecket " +"föregås av ett extra omvänt snedstreck. För att söka efter \\ " +"behöver du till exempel mata in \\\\ i sök- eller ersätt-" +"fältet. Du kan söka efter kontrollsekvenser på samma sätt: för att söka " +"efter eller ersätta med ett \\n, använd inmatningstermen " +"\\\\n." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Spara din fil för att arbeta med den senare." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Spara en fil" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"För att spara en fil i gedit, klicka på knappen Spara till höger i rubrikraden eller tryck helt enkelt " +"CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Om du sparar en ny fil kommer en dialogruta att dyka upp, och du kan välja " +"ett namn på filen, såväl som katalogen där du vill att filen ska sparas." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Sök ett textstycke i en fil." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Sök efter text" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "Sökverktyget kan hjälpa dig hitta specifika textsekvenser i din fil." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Söka efter text" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Öppna sökfönstret genom att klicka Menyknapp Sök… eller genom " +"att trycka CtrlF. Detta kommer att " +"förflytta din markör till början av sökfönstret." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "Skriv in texten du vill söka efter i sökfönstret." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Under tiden du skriver kommer gedit att börja färgmarkera de " +"textstycken som matchar det som du har matat in." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "Gör något av följande för att bläddra igenom sökresultaten:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Klicka på upp- eller ner-pilarna intill sökfönstret." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Tryck på tangenterna uppåtpil eller nedåtpil på ditt " +"tangentbord." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Tryck CtrlG eller CtrlSkiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"För att stänga sökfönstret, tryck antingen Esc eller " +"Retur. Att trycka Esc kommer återföra markören till " +"där den var innan du började söka. Att trycka Retur kommer " +"återföra markören till den aktuella positionen i sökresultaten." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Söktips" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Om du markerar ett textstycke med musen och sedan trycker CtrlF kommer texten du markerat att dyka upp i " +"sökfönstret." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"För mer sökalternativ, klicka på Förstoringsglas-" +"ikonen i sökfönstret, eller högerklicka var som helst i sökfönstret. Du kan " +"välja ett eller flera av följande sökalternativ:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Välj Gör skillnad på skiftläge för att göra sökningen " +"skiftlägeskänslig." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "" +"Välj Matcha endast hela ord för att endast söka efter " +"fullständiga ord." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Välj Börja om från början för att söka text uppifrån och ner och " +"sedan börja om från början igen." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Texten som du sökt efter kommer förbli färgmarkerad av gedit, även efter att " +"du har avslutat din sökning. För att ta bort färgmarkeringen, klicka Rensa färgmarkering, eller tryck CtrlSkiftK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Leta efter stavfel i dina filer." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Stavningskontrollera ditt dokument" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Aktivera stavningskontrollen" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Stavningskontrollfunktionen tillhandahålls som en insticksmodul i " +"gedit som kan aktiveras efter behov. För att aktivera " +"insticksmodulen:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Välj Stavningskontroll för att aktivera " +"insticksmodulen." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "För att söka felstavade ord i ditt dokument:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Välj Verktyg Kontrollera stavning." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"För att gedit automatiskt ska färgmarkera felstavade ord i ditt " +"dokument under tiden du skriver, välj VerktygFärgmarkera felstavade ord." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Använda stavningskontroll" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Du kan välja den rätta ersättningen för felstavade ord med dialogrutan " +"Kontrollera stavning. Det felstavade ordet som kontrolleras av " +"stavningskontrollen visas i fetstil intill Felstavat ord:. Du kan " +"välja bland följande rättningsåtgärder:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"Ändra till: låter dig mata in ett ord och använda " +"Kontrollera ord för att kontrollera att " +"stavningen är rätt." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"Förslag: listar de tillgängliga ersättningarna för " +"ordet." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"Ignorera låter dig hoppa över stavningskontroll " +"för en förekomst av aktuellt ord." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"Ignorera alla låter dig hoppa över " +"stavningskontroll för alla förekomster av aktuellt ord." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"Ändra ersätter det felstavade eller ej igenkända " +"ordet med en vald ersättning från listan Förslag:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"Ändra alla ersätter alla felstavade " +"eller ej igenkända ord med den valda ersättningen från listan Förslag:." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"Lägg till ord låter dig lägga till det aktuella " +"ordet till gedits Användarordbok. Att lägga till " +"anpassade ord till Användarordboken kommer låta gedit " +"känna igen ordet i dokument och kommer därmed inte att markeras som ett " +"felstavat ord." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Definiera språket att använda för stavningskontroll" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Som standard kommer gedit att använda ditt aktuella språk för att " +"stavningskontrollera ditt dokument. Om du behöver använda ett annat språk, " +"välj VerktygStäll " +"in språk… och välj sedan språket som du vill använda." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Ordböcker" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit använder Enchant, ett litet systemverktyg, för stavningskontroll. " +"Enchant kan använda flera olika ordböcker för att kontrollera din stavning. " +"Två sådana ordboksbakändar är Hunspell och Aspell." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Om språket du vill använda inte är tillgängligt i gedit, använd " +"din dators programvaruinstallerare eller pakethanterare för att installera " +"ordboksbakänden som du vill ha." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Färgmarkera din text för att göra den lättare att läsa." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Slå på syntaxmarkering" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Syntaxmarkering" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit tillhandahåller syntaxfärgning för ett stort antal märk- " +"och programmeringsspråk samt vetenskapliga språk. Om gedit känner " +"igen den syntax som används då du öppnar en fil kommer det automatiskt att " +"färgmarkera texten." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Om din syntax eller språk inte färgmarkeras vid start kan du välja lämplig " +"syntax eller språk genom att klicka på Visa Färgmarkeringsläge och sedan " +"välja önskad syntax. Alternativt kan du välja syntaxnamnet från en lista " +"längst ner i gedit-fönstret." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Gruppera liknande flikar tillsammans." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Organisera filer i grupperade flikar" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Om du arbetar med flera flikar i gedit kan du gruppera dem vilket " +"gör det lättare att hålla dina öppnade filer organiserade. Att lägga till en " +"ny flikgrupp kommer dela gedit-fönstret i två paneler, öppna ett " +"nytt ”Namnlöst dokument” i den nya panelen, och göra det aktivt. Du kan " +"öppna filer till den flikgruppen och flytta flikar från en flikgrupp till en " +"annan." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Öppna en ny flikgrupp i geditfönstret" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "För att öppna en ny flikgrupp kan du:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "Högerklicka på en flik och välj Flytta till ny flikgrupp." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Använda kortkommandot CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Denna åtgärd kommer dela gedit-fönstret i två paneler, och " +"panelen med den nya flikgruppen kommer placeras till höger om den aktiva " +"fliken. Du kan flytta handtaget till höger eller vänster för att tilldela " +"mer eller mindre utrymme av gedit-fönstret mellan paneler enligt " +"dina behov." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Du kan öppna så många flikgrupper i ett gedit-fönster som din " +"skärm tillåter, men du kommer att behöva flytta handtaget för att se dem " +"korrekt." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"För att stänga en flikgruppspanel, stäng bara alla flikar som är öppna i den." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Flytta en flik till en annan flikgrupp" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Om du vill flytta en flik från en flikgrupp till en annan:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Klicka och håll ner musknappen på fliken." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Dra fliken till en annan flikgruppspanel." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Placera den bredvid andra flikar i flikgruppen." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Släpp musknappen." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Ändra positionen för en flik i geditfönstret." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Flytta och ändra ordning på flikar" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Flikar i gedit kan flyttas, vilket gör det enklare att arbeta med " +"dina filer. Ordningen för flikar kan ändras i samma fönster, flyttas utanför " +"gedit (vilket skapar ett nytt gedit-fönster), och " +"flyttas från ett fönster till ett annat." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Ändra ordningen på flikarna i geditfönstret" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "För att ändra ordningen på flikar i ett fönster:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Dra fliken till den önskade positionen bland de andra flikarna." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Fliken kommer placeras på positionen närmast där du släppte fliken, " +"omedelbart intill andra öppna flikar." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Flytta en flik, skapa ett nytt geditfönster" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "För att skapa ett nytt fönster från en befintlig flik:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Dra fliken ut ur gedit-fönstret." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"För att flytta en flik till ett nytt fönster då gedit är " +"maximerat, dra fliken till systemraden högst upp på skärmen." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Flytta en flik till ett annat geditfönster" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Om du vill flytta en flik från ett fönster till ett annat:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Dra fliken till det nya fönstret." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Placera den bredvid andra flikar i det nya fönstret." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Du kan finna det lättare att flytta en flik från ett fönster till ett annat " +"genom att dra fliken till övre vänstra hörnet Aktiviteter i " +"GNOME Shell. Detta kommer att visa alla öppna gedit-" +"fönster. Du kan sedan släppa fliken på det önskade gedit-fönstret." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Skapa eller ta bort flikar i geditfönstret." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Lägg till och ta bort flikar" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Att arbeta med flikar i gedit låter dig hålla ett öga på flera " +"filer i ett enda fönster." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Lägga till flikar" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"För att lägga till en ny flik för att skapa en ny fil, klicka på knappen " +"Skapa nytt dokument till vänster i rubrikraden, eller tryck " +"CtrlT. Fliken kommer läggas till på " +"höger sida om alla andra flikar." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Ta bort flikar" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"För att ta bort en flik, klicka på × på flikens " +"högra sida, eller tryck CtrlW. För " +"att ta bort alla öppna flikar, tryck Ctrl SkiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Återställ en nyligen utförd ändring i en av dina filer." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Ångra/gör om en nyligen utförd åtgärd" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Om du gör ett misstag när du redigerar ett dokument i gedit kan " +"du ångra det genom att trycka CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "" +"Du kan inte ångra en ändring efter att du stängt en gedit-fil." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"För att göra om ändringen som ångrades, tryck CtrlSkiftZ" + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit textredigerare" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit textredigerare" + +# Inte en webbsida, indexsidan för hjälpen +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Hemsida för hjälpguiden för gedit." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit textredigerare" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Välkommen till hjälpguiden för gedit. För en snabb introduktion " +"till både gedits mest grundläggande funktioner kan du besöka " +"sidan Kom igång med gedit." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Andra hjälpämnen är grupperade i avsnitten nedan. Ha så kul med gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Arbeta med filer" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Konfigurera gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Insticksmoduler för gedit" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Skriva ut med gedit" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Erkännande-DelaLika 3.0 Unported" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Det här programmet är licensierat under licensen <_:link-1/>." + +#~ msgid "" +#~ "Select gedit Preferences Font & Colors." +#~ msgstr "" +#~ "Välj gedit Inställningar Typsnitt och färger." + +#~ msgid "" +#~ "To close a file in gedit, select Close. Alternately, you can click the small \"X\" that appears " +#~ "on the right-side of the file's tab, or press Ctrl " +#~ "W." +#~ msgstr "" +#~ "För att stänga en fil i gedit, välj Stäng. Alternativt kan du klicka på det lilla ”X” som dyker upp " +#~ "på högersidan av filens flik, eller trycka Ctrl " +#~ "W." + +#~ msgid "" +#~ "Press CtrlL in the Open " +#~ "dialog." +#~ msgstr "" +#~ "Tryck CtrlL i dialogrutan " +#~ "Öppna." + +# TODO: -taggar saknas. +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "För att justera antalet nyligen använda filer som gedit visar kommer du " +#~ "att behöva använda programmet dconf-editor." + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "Starta dconf-editor och välj org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "" +#~ "Dubbelklicka på talet intill max-recents och ändra talet till " +#~ "ditt önskade värde." + +#~ msgid "" +#~ "To open files from the side panel, first open the side panel by selecting " +#~ "View Side Panel (or just press " +#~ "F9), and then choose File Browser from the dropdown " +#~ "at the top of the pane." +#~ msgstr "" +#~ "För att öppna filer från sidopanelen, öppna först sidopanelen genom att " +#~ "välja Visa Sidopanel (eller tryck " +#~ "helt enkelt F9), och välj sedan Filbläddrare från " +#~ "rullgardinsmenyn högst upp i panelen." + +#~ msgid "" +#~ "This will activate the File Browser mode of the side panel. You " +#~ "can then use the navigation buttons at the top of the pane to locate and " +#~ "open your desired files." +#~ msgstr "" +#~ "Detta kommer aktivera filbläddrarläget för sidopanelen. Du kan " +#~ "sedan använda navigeringsknapparna högst upp i panelen för att hitta och " +#~ "öppna dina önskade filer." + +#~ msgid "" +#~ "This plugin currently does not work!" +#~ msgstr "" +#~ "Denna insticksmodul fungerar inte för tillfället!" + +#~ msgid "Use keyboard shortcuts to help you work more quickly." +#~ msgstr "Använd tangentbordsgenvägar för att få hjälp att arbeta snabbare." + +#~ msgid "Paolo Borelli" +#~ msgstr "Paolo Borelli" + +#~ msgid "Jesse van den Kieboom" +#~ msgstr "Jesse van den Kieboom" + +#~ msgid "Steve Frécinaux" +#~ msgstr "Steve Frécinaux" + +#~ msgid "Ignacio Casal Quinteiro" +#~ msgstr "Ignacio Casal Quinteiro" + +#~ msgid "Shortcut keys" +#~ msgstr "Kortkommandon" + +#~ msgid "" +#~ "Use shortcut keys to perform common tasks more quickly than " +#~ "with the mouse and menus. The following tables list all of gedit's shortcut keys." +#~ msgstr "" +#~ "Använd kortkommandon för att genomföra vanliga uppgifter på " +#~ "ett snabbare sätt än med musen och menyerna. Följande tabell listar alla " +#~ "kortkommandon i gedit." + +#~ msgid "Tab-related Shortcut keys" +#~ msgstr "Flikrelaterade kortkommandon" + +#~ msgid "Action" +#~ msgstr "Åtgärd" + +#~ msgid "Keyboard shortcut" +#~ msgstr "Tangentbordsgenväg" + +#~ msgid "Switch to the next tab to the left" +#~ msgstr "Växla till nästa flik åt vänster" + +#~ msgid "CtrlAlt PageUp" +#~ msgstr "CtrlAlt PageUp" + +#~ msgid "Switch to the next tab to the right" +#~ msgstr "Växla till nästa flik åt höger" + +#~ msgid "CtrlAlt PageDown" +#~ msgstr "CtrlAlt PageDown" + +#~ msgid "Close tab" +#~ msgstr "Stäng flik" + +#~ msgid "CtrlW" +#~ msgstr "CtrlW" + +#~ msgid "Save all tabs" +#~ msgstr "Spara alla flikar" + +#~ msgid "CtrlShift L" +#~ msgstr "CtrlSkift L" + +#~ msgid "Close all tabs" +#~ msgstr "Stäng alla flikar" + +#~ msgid "CtrlShiftW" +#~ msgstr "CtrlSkiftW" + +#~ msgid "Reopen the most recently closed tab" +#~ msgstr "Återöppna den senast stängda fliken" + +#~ msgid "CtrlShiftT" +#~ msgstr "CtrlSkiftT" + +#~ msgid "Jump to nth tab" +#~ msgstr "Hoppa till flik nummer n" + +#~ msgid "Alt n" +#~ msgstr "Alt n" + +#~ msgid "New tab group" +#~ msgstr "Ny flikgrupp" + +#~ msgid "CtrlAltN" +#~ msgstr "CtrlAltN" + +#~ msgid "Previous tab group" +#~ msgstr "Föregående flikgrupp" + +#~ msgid "" +#~ "ShiftCtrlAltPage up" +#~ msgstr "" +#~ "SkiftCtrlAltPage up" + +#~ msgid "Next tab group" +#~ msgstr "Nästa flikgrupp" + +#~ msgid "" +#~ "ShiftCtrlAltPage down" +#~ msgstr "" +#~ "SkiftCtrlAltPage down" + +#~ msgid "Shortcut keys for working with files" +#~ msgstr "Kortkommandon för arbete med filer" + +#~ msgid "Create a new document in a new window" +#~ msgstr "Skapa ett nytt dokument i ett nytt fönster" + +#~ msgid "CtrlN" +#~ msgstr "CtrlN" + +#~ msgid "Create a new document in a new tab" +#~ msgstr "Skapa ett nytt dokument i en ny flik" + +#~ msgid "CtrlT" +#~ msgstr "CtrlT" + +#~ msgid "Open a document" +#~ msgstr "Öppna ett dokument" + +#~ msgid "CtrlO" +#~ msgstr "CtrlO" + +#~ msgid "Save the current document" +#~ msgstr "Spara aktuellt dokument" + +#~ msgid "CtrlS" +#~ msgstr "CtrlS" + +#~ msgid "Save the current document with a new filename" +#~ msgstr "Spara aktuellt dokument med ett nytt filnamn" + +#~ msgid "CtrlShift S" +#~ msgstr "CtrlSkift S" + +#~ msgid "Print the current document" +#~ msgstr "Skriv ut aktuellt dokument" + +#~ msgid "Ctrl P" +#~ msgstr "Ctrl P" + +#~ msgid "Close the current document" +#~ msgstr "Stäng aktuellt dokument" + +#~ msgid "Quit gedit" +#~ msgstr "Avsluta gedit" + +#~ msgid "CtrlQ" +#~ msgstr "CtrlQ" + +#~ msgid "Shortcut keys for editing files" +#~ msgstr "Kortkommandon för redigering av filer" + +#~ msgid "Move the selected word right one word" +#~ msgstr "Flytta markerat ord ett ord till höger" + +#~ msgid "AltRight Arrow" +#~ msgstr "AltHögerpil" + +#~ msgid "Move the selected word left one word" +#~ msgstr "Flytta markerat ord ett ord till vänster" + +#~ msgid "AltLeft Arrow" +#~ msgstr "AltVänsterpil" + +#~ msgid "Undo the last action" +#~ msgstr "Ångra föregående åtgärd" + +#~ msgid "CtrlZ" +#~ msgstr "CtrlZ" + +#~ msgid "Redo the last undone action" +#~ msgstr "Gör om senaste ångrade åtgärden" + +#~ msgid "Cut the selected text or region and place it on the clipboard" +#~ msgstr "Klipp ut markerad text eller område och placera den i urklipp" + +#~ msgid "CtrlX" +#~ msgstr "CtrlX" + +#~ msgid "Copy the selected text or region onto the clipboard" +#~ msgstr "Kopiera markerad text eller område till urklipp" + +#~ msgid "CtrlC" +#~ msgstr "CtrlC" + +#~ msgid "Paste the contents of the clipboard" +#~ msgstr "Klistra in innehållet i urklipp" + +#~ msgid "CtrlV" +#~ msgstr "CtrlV" + +#~ msgid "Select all text in the file" +#~ msgstr "Markera all text i filen" + +#~ msgid "CtrlA" +#~ msgstr "CtrlA" + +#~ msgid "Unselect all text" +#~ msgstr "Avmarkera all text" + +#~ msgid "CtrlBackslash" +#~ msgstr "CtrlBakstreck" + +#~ msgid "Delete the current line" +#~ msgstr "Ta bort aktuell rad" + +#~ msgid "CtrlD" +#~ msgstr "CtrlD" + +#~ msgid "Move the selected line up one line" +#~ msgstr "Flytta markerad rad en rad uppåt" + +#~ msgid "AltUp Arrow" +#~ msgstr "AltUppåtpil" + +#~ msgid "Move the selected line down one line" +#~ msgstr "Flytta markerad rad en rad nedåt" + +#~ msgid "AltDown Arrow" +#~ msgstr "AltNedåtpil" + +#~ msgid "Add a tab stop" +#~ msgstr "Lägg till ett tabulatorstopp" + +#~ msgid "Tab" +#~ msgstr "Tabb" + +#~ msgid "Remove a tab stop" +#~ msgstr "Ta bort ett tabulatorstopp" + +#~ msgid "ShiftTab" +#~ msgstr "SkiftTabb" + +#~ msgid "Convert the selected text to upper case" +#~ msgstr "Konvertera markerad text till versaler" + +#~ msgid "CtrlU" +#~ msgstr "CtrlU" + +#~ msgid "Convert the selected text to lower case" +#~ msgstr "Konvertera markerad text till gemener" + +#~ msgid "CtrlL" +#~ msgstr "CtrlL" + +#~ msgid "Toggle case of the selected text" +#~ msgstr "Växla skiftläge för markerad text" + +#~ msgid "Ctrl~" +#~ msgstr "Ctrl~" + +#~ msgid "Toggle cursor visibility" +#~ msgstr "Växla markörsynlighet" + +#~ msgid "F7" +#~ msgstr "F7" + +#~ msgid "Shortcut keys for showing and hiding panes" +#~ msgstr "Kortkommandon för att visa och dölja paneler" + +#~ msgid "Show / hide the side panel" +#~ msgstr "Visa / dölj sidopanelen" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Open the file menu" +#~ msgstr "Öppna filmenyn" + +#~ msgid "F10" +#~ msgstr "F10" + +#~ msgid "Shortcut keys for navigation" +#~ msgstr "Kortkommandon för navigering" + +#~ msgid "Move to matching bracket" +#~ msgstr "Gå till matchande parentes" + +#~ msgid "Ctrl%" +#~ msgstr "Ctrl%" + +#~ msgid "Goto line" +#~ msgstr "Gå till rad" + +#~ msgid "CtrlI" +#~ msgstr "CtrlI" + +#~ msgid "Move to the beginning of the current line" +#~ msgstr "Gå till början på aktuell rad" + +#~ msgid "Home" +#~ msgstr "Home" + +#~ msgid "Move to the end of the current line" +#~ msgstr "Gå till slutet på aktuell rad" + +#~ msgid "End" +#~ msgstr "End" + +#~ msgid "Move to the beginning of the document" +#~ msgstr "Gå till början på dokumentet" + +#~ msgid "CtrlHome" +#~ msgstr "CtrlHome" + +#~ msgid "Move to the end of the document" +#~ msgstr "Gå till slutet på dokumentet" + +#~ msgid "CtrlEnd" +#~ msgstr "CtrlEnd" + +#~ msgid "Move viewport up within the file" +#~ msgstr "Flytta visningsområde uppåt i filen" + +#~ msgid "ShiftAltUp" +#~ msgstr "SkiftAltUpp" + +#~ msgid "Move viewport down within the file" +#~ msgstr "Flytta visningsområde nedåt i filen" + +#~ msgid "ShiftAltDown" +#~ msgstr "SkiftAltNed" + +#~ msgid "Move viewport to beginning of file" +#~ msgstr "Flytta visningsområde till början på filen" + +#~ msgid "ShiftAltHome" +#~ msgstr "SkiftAltHome" + +#~ msgid "Move viewport to end of file" +#~ msgstr "Flytta visningsområde till slutet på filen" + +#~ msgid "ShiftAltEnd" +#~ msgstr "SkiftAltEnd" + +#~ msgid "Shortcut keys for searching" +#~ msgstr "Kortkommandon för sökning" + +#~ msgid "Find a string" +#~ msgstr "Sök efter en sträng" + +#~ msgid "CtrlF" +#~ msgstr "CtrlF" + +#~ msgid "Find the next instance of the string" +#~ msgstr "Sök nästa förekomst av strängen" + +#~ msgid "CtrlG" +#~ msgstr "CtrlG" + +#~ msgid "Find the previous instance of the string" +#~ msgstr "Sök föregående förekomst av strängen" + +#~ msgid "CtrlShiftG" +#~ msgstr "CtrlSkiftG" + +#~ msgid "Search and Replace" +#~ msgstr "Sök och ersätt" + +#~ msgid "CtrlH" +#~ msgstr "CtrlH" + +#~ msgid "Clear highlight" +#~ msgstr "Ta bort markering" + +#~ msgid "CtrlShift K" +#~ msgstr "CtrlSkift K" + +#~ msgid "Shortcut keys for tools" +#~ msgstr "Kortkommandon för verktyg" + +#~ msgid "Check spelling" +#~ msgstr "Kontrollera stavning" + +#~ msgid "ShiftF7" +#~ msgstr "SkiftF7" + +#~ msgid "Remove trailing spaces (with plugin)" +#~ msgstr "Ta bort eftersläpande blanksteg (med insticksmodul)" + +#~ msgid "AltF12" +#~ msgstr "AltF12" + +#~ msgid "Run \"make\" in the current directory (with plugin)" +#~ msgstr "Kör ”make” i aktuell katalog (med insticksmodul)" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Directory listing (with plugin)" +#~ msgstr "Kataloglistning (med insticksmodul)" + +#~ msgid "CtrlShift D" +#~ msgstr "CtrlSkift D" + +#~ msgid "Shortcut keys for user help" +#~ msgstr "Kortkommandon för användarhjälp" + +#~ msgid "Open the gedit user guide" +#~ msgstr "Öppna användarguiden för gedit" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "Go to DocumentsNew Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Gå till DokumentNy flikgrupp i " +#~ "huvudmenyn." + +#~ msgid "Move through tab groups" +#~ msgstr "Gå mellan flikgrupper" + +#~ msgid "To move forward (on the next) tab group:" +#~ msgstr "För att gå framåt till (nästa) flikgrupp:" + +#~ msgid "" +#~ "Go to DocumentsNext Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "Gå till DokumentNästa flikgrupp i " +#~ "huvudmenyn." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "down shortcut." +#~ msgstr "" +#~ "Använd kortkommandot SkiftCtrlAltPage down." + +#~ msgid "To move backward (on the previous) tab group:" +#~ msgstr "För att gå bakåt till (föregående) flikgrupp:" + +#~ msgid "" +#~ "Go to DocumentsPrevious Tab Group " +#~ "in the main menu." +#~ msgstr "" +#~ "Gå till DokumentFöregående flikgrupp i huvudmenyn." + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "up shortcut." +#~ msgstr "" +#~ "Använd kortkommandot SkiftCtrlAltPage up." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tab groups." +#~ msgstr "" +#~ "Se tabellen flikrelaterade " +#~ "kortkommandon för att göra det lättare att hantera dina " +#~ "flikgrupper." + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tabs." +#~ msgstr "" +#~ "Se tabellen flikrelaterade " +#~ "kortkommandon för att göra det lättare att hantera dina flikar." + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. The tab that is larger than the other " +#~ "tabs indicates the file that is currently open. The smaller tabs indicate " +#~ "other files that are available to work on." +#~ msgstr "" +#~ "Att arbeta med flikar i gedit låter dig hålla ett öga på flera " +#~ "filer i ett enda fönster. Fliken som är större än de andra flikarna " +#~ "indikerar filen som är öppen nu. De mindre flikarna står för andra filer " +#~ "som finns tillgängliga att arbeta med." + +#~ msgid "Click the Open button." +#~ msgstr "Klicka på knappen Öppna." + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "Som namnet antyder så låter insticksmodulen Infoga datum/tid " +#~ "dig infoga aktuellt datum och/eller tid vid aktuell markörposition. För " +#~ "att aktivera denna insticksmodul, välj gedit InställningarInsticksmoduler Infoga datum/tid. För att använda " +#~ "insticksmodulen, tryck RedigeraInfoga datum och tid." + +#~ msgid "Open the Quick Open window" +#~ msgstr "Öppna fönstret Snabböppna" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Print preview" +#~ msgstr "Förhandsvisa utskrift" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlSkift P" + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "Välj ArkivÖppna för att visa " +#~ "dialogrutan Öppna filer." + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "" +#~ "Välj Pennikonen nästan högst upp i dialogrutan Öppna " +#~ "filer." + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "För att aktivera och använda sidopanelen, välj " +#~ "VisaSidopanel (eller klicka bara " +#~ "F9), och klicka sedan på Filbläddrarikonen längs " +#~ "ner i panelen." + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "Du kan inte använda funktionen Ångra för att rätta till en " +#~ "Sorteringsåtgärd, så vi rekommenderar att du sparar filen " +#~ "omedelbart innan du genomför sorteringen. Om du gör ett misstag med " +#~ "sorteringen kan du återgå till den tidigare sparade versionen genom att " +#~ "välja ArkivÅterställ." + +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "Välj gedit Sortera." + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "Tryck ned Ctrl och använd din mus eller styrplattas " +#~ "rullningsfunktion för att flytta upp eller ner genom texten." + +#~ msgid "Show / hide the bottom pane" +#~ msgstr "Visa / dölj underpanelen" + +#~ msgid "CtrlF9" +#~ msgstr "CtrlF9" diff --git a/help/te/te.po b/help/te/te.po new file mode 100644 index 0000000..af8a400 --- /dev/null +++ b/help/te/te.po @@ -0,0 +1,3262 @@ +# Telugu translation for gedit. +# Copyright (C) 2011, 2012 Swecha Telugu Localisation Team +# This file is distributed under the same license as the gedit package. +# Bhuvan Krishna , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit master\n" +"POT-Creation-Date: 2012-03-25 06:45+0000\n" +"PO-Revision-Date: 2012-03-25 16:18+0530\n" +"Last-Translator: Bhuvan Krishna \n" +"Language-Team: Telugu \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n!=1);\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "అనువాదకుల-పరపతులు" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/index.page:22(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-icon.png' md5='a7174de2671462e1ac4f80a82ad09184'" +msgstr "" + +#: C/index.page:7(info/title) +msgctxt "link" +msgid "gedit Text Editor" +msgstr "" + +#: C/index.page:8(info/title) +msgctxt "text" +msgid "gedit Text Editor" +msgstr "" + +#: C/index.page:12(credit/name) +#: C/gedit-change-color-scheme.page:9(credit/name) +#: C/gedit-change-default-font.page:11(credit/name) +#: C/gedit-close-file.page:9(credit/name) +#: C/gedit-create-new-file.page:9(credit/name) +#: C/gedit-edit-as-root.page:9(credit/name) +#: C/gedit-files-basic.page:9(credit/name) +#: C/gedit-full-screen.page:9(credit/name) +#: C/gedit-open-files-from-sidepane.page:9(credit/name) +#: C/gedit-open-files.page:13(credit/name) +#: C/gedit-open-on-server.page:9(credit/name) +#: C/gedit-open-recent.page:9(credit/name) +#: C/gedit-plugin-guide.page:9(credit/name) +#: C/gedit-plugins-bookmarks.page:9(credit/name) +#: C/gedit-plugins-bracket-comp.page:9(credit/name) +#: C/gedit-plugins-change-case.page:14(credit/name) +#: C/gedit-plugins-character-map.page:9(credit/name) +#: C/gedit-plugins-code-assistance.page:9(credit/name) +#: C/gedit-plugins-code-comment.page:9(credit/name) +#: C/gedit-plugins-color-picker.page:9(credit/name) +#: C/gedit-plugins-commander.page:9(credit/name) +#: C/gedit-plugins-dashboard.page:9(credit/name) +#: C/gedit-plugins-doc-stats.page:13(credit/name) +#: C/gedit-plugins-draw-spaces.page:9(credit/name) +#: C/gedit-plugins-external-tools.page:15(credit/name) +#: C/gedit-plugins-file-browser.page:13(credit/name) +#: C/gedit-plugins-insert-date-time.page:14(credit/name) +#: C/gedit-plugins-install.page:8(credit/name) +#: C/gedit-plugins-join-split-lines.page:9(credit/name) +#: C/gedit-plugins-modelines.page:13(credit/name) +#: C/gedit-plugins-multi-edit.page:9(credit/name) +#: C/gedit-plugins-pyconsole.page:9(credit/name) +#: C/gedit-plugins-quick-open.page:9(credit/name) +#: C/gedit-plugins-session-saver.page:9(credit/name) +#: C/gedit-plugins-snippets-guide.page:8(credit/name) +#: C/gedit-plugins-snippets.page:9(credit/name) +#: C/gedit-plugins-sort.page:13(credit/name) +#: C/gedit-plugins-tag-list.page:13(credit/name) +#: C/gedit-plugins-terminal.page:10(credit/name) +#: C/gedit-plugins-text-size.page:10(credit/name) +#: C/gedit-plugins-word-completion.page:9(credit/name) +#: C/gedit-printing.page:11(credit/name) +#: C/gedit-quickstart.page:11(credit/name) +#: C/gedit-replace.page:10(credit/name) C/gedit-save-file.page:9(credit/name) +#: C/gedit-search.page:10(credit/name) +#: C/gedit-shortcut-keys.page:10(credit/name) +#: C/gedit-spellcheck.page:10(credit/name) +#: C/gedit-syntax-highlighting.page:9(credit/name) +#: C/gedit-tabs-moving.page:9(credit/name) C/gedit-tabs.page:10(credit/name) +#: C/gedit-undo-recent-action.page:9(credit/name) +#: C/gedit-undo-recent-action.page:18(credit/name) +#: C/gedit-view-open-files-in-sidepane.page:9(credit/name) +msgid "Jim Campbell" +msgstr "" + +#: C/index.page:21(page/title) +msgid "" +" gedit Text Editor" +msgstr "" + +#: C/index.page:26(page/p) +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"both gedit's most basic features, as well as some advanced " +"keyboard shortcuts, visit the Get started " +"with gedit and Shortcut keys pages." +msgstr "" + +#: C/index.page:28(page/p) +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" + +#: C/index.page:31(section/title) +msgid "Working With Files" +msgstr "" + +#: C/index.page:36(section/title) +msgid "Configure gedit" +msgstr "" + +#: C/index.page:40(section/title) +msgid "gedit Plugins" +msgstr "" + +#: C/index.page:44(section/title) C/gedit-printing.page:16(page/title) +msgid "Printing with gedit" +msgstr "" + +#: C/gedit-change-color-scheme.page:14(page/title) +msgid "Change the color scheme" +msgstr "" + +#: C/gedit-change-color-scheme.page:16(page/p) +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" + +#: C/gedit-change-color-scheme.page:18(page/p) +msgid "To change the color scheme, complete the following steps:" +msgstr "" + +#: C/gedit-change-color-scheme.page:20(item/p) +msgid "" +"Select EditPreferencesFont & Colors." +msgstr "" + +#: C/gedit-change-color-scheme.page:21(item/p) +msgid "Choose your desired color scheme." +msgstr "" + +#: C/gedit-change-color-scheme.page:24(page/p) +msgid "The new color scheme will be applied immediately." +msgstr "" + +#: C/gedit-change-color-scheme.page:27(section/title) +msgid "Use a Custom Color Scheme" +msgstr "" + +#: C/gedit-change-color-scheme.page:29(section/p) +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" + +#: C/gedit-change-color-scheme.page:30(section/p) +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" + +#: C/gedit-change-default-font.page:16(page/title) +msgid "Change the default font" +msgstr "" + +#: C/gedit-change-default-font.page:18(page/p) +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" + +#: C/gedit-change-default-font.page:23(steps/title) +msgid "To change the default font in gedit:" +msgstr "" + +#: C/gedit-change-default-font.page:24(item/p) +msgid "" +"Select EditPreferencesFont & Colors." +msgstr "" + +#: C/gedit-change-default-font.page:26(item/p) +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "" + +#: C/gedit-change-default-font.page:28(item/p) +msgid "" +"Choose your desired font, and use the slider to set the default " +"font size." +msgstr "" + +#: C/gedit-change-default-font.page:30(item/p) +msgid "Click Select, and then click Close." +msgstr "" + +#: C/gedit-close-file.page:14(page/title) +msgid "Close a file" +msgstr "" + +#: C/gedit-close-file.page:16(page/p) +msgid "" +"To close a file in gedit, select File " +"Close. Alternately, you can click the small \"X\" that " +"appears on the right-side of the file's tab, or press Ctrl W." +msgstr "" + +#: C/gedit-close-file.page:20(page/p) +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" + +#: C/gedit-create-new-file.page:14(page/title) +msgid "Create a new file" +msgstr "" + +#: C/gedit-create-new-file.page:16(page/p) +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"icon that looks like a blank piece of paper with a \"plus\" sign next to it. " +"If you prefer, you may also select FileNew, or press CtrlN." +msgstr "" + +#: C/gedit-create-new-file.page:18(page/p) +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" + +#: C/gedit-edit-as-root.page:14(page/title) +msgid "Edit a file as the root (administative) user" +msgstr "" + +#: C/gedit-edit-as-root.page:16(note/p) +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" + +#: C/gedit-edit-as-root.page:18(page/p) +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" + +#: C/gedit-edit-as-root.page:19(page/code) +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#: C/gedit-edit-as-root.page:20(page/p) +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" + +#: C/gedit-edit-as-root.page:22(page/p) +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" + +#: C/gedit-edit-as-root.page:23(page/code) +#, no-wrap +msgid "su -" +msgstr "su -" + +#: C/gedit-edit-as-root.page:24(page/p) +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" + +#: C/gedit-edit-as-root.page:26(note/p) +msgid "" +"Once you have opened gedit with administrative privileges, the " +"application will retain those privileges until you close it." +msgstr "" + +#: C/gedit-files-basic.page:14(page/title) +msgid "File basics: Open, close, and save files" +msgstr "" + +#: C/gedit-files-basic.page:16(page/p) +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, and opening and closing files." +msgstr "" + +#: C/gedit-full-screen.page:14(page/title) +msgid "Use fullscreen mode" +msgstr "" + +#: C/gedit-full-screen.page:16(page/p) +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" + +#: C/gedit-full-screen.page:19(section/title) +msgid "Turn on fullscreen mode" +msgstr "" + +#: C/gedit-full-screen.page:20(section/p) +msgid "" +"To turn on fullscreen mode, select ViewFullscreen, or press F11. gedit's menu, title, and " +"tab-bars will hide, and you will only be presented with the text of your " +"current file." +msgstr "" + +#: C/gedit-full-screen.page:21(section/p) +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" + +#: C/gedit-full-screen.page:23(note/p) +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" + +#: C/gedit-full-screen.page:27(section/title) +msgid "Turn off fullscreen mode" +msgstr "" + +#: C/gedit-full-screen.page:28(section/p) +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, move your mouse cursor to the top of the screen, and wait for the " +"menu bar to appear. When the menu bar appears, select " +"Leave Fullscreen. You can also press F11 to turn off " +"fullscreen mode." +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-open-files-from-sidepane.page:36(media) +#: C/gedit-plugins-file-browser.page:32(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-side-pane1.png' " +"md5='ac9c80cb0552d63b593c71f23be69b53'" +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#. +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-open-files-from-sidepane.page:51(media) +#: C/gedit-view-open-files-in-sidepane.page:25(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-side-pane2.png' " +"md5='e7a12a43adc9c9cb8c992ad22a815a57'" +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:14(page/title) +msgid "View and open files from the side pane" +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:15(page/p) +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side pane." +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:19(page/p) +msgid "" +"To activate the side pane, select ViewSide Pane, or just press the F9 key." +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:24(note/p) +msgid "" +"You can toggle the side pane open or closed by pressing F9 at any time." +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:30(section/title) +#: C/gedit-plugins-file-browser.page:26(section/title) +msgid "Opening files from the side pane" +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:31(section/p) +msgid "" +"To open files from the side pane, first open the side pane by selecting ViewSide Pane, then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:39(section/p) +#: C/gedit-plugins-file-browser.page:35(section/p) +msgid "" +"This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +"locate and open your desired files." +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:45(section/title) +msgid "Using the side pane to switch between open files" +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:46(section/p) +msgid "" +"Once you have several files open, you can use the side pane to switch " +"between open files. To activate the file browser portion of the side " +"pane, click on the file icon at the bottom of the side " +"pane." +msgstr "" + +#: C/gedit-open-files-from-sidepane.page:54(section/p) +msgid "" +"Clicking on any file name in the side pane will open that file " +"for editing." +msgstr "" + +#: C/gedit-open-files.page:18(page/title) +msgid "Open a file or set of files" +msgstr "" + +#: C/gedit-open-files.page:20(page/p) +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" + +#: C/gedit-open-files.page:21(page/p) +msgid "" +"This will cause the Open Files dialog to appear. Use your mouse " +"or keyboard to select the file that you wish to open, and then click " +"Open. The file that you've selected will open in a new tab." +msgstr "" + +#: C/gedit-open-files.page:22(page/p) +msgid "" +"To close the Open Files dialog without opening a file, click " +"Cancel." +msgstr "" + +#: C/gedit-open-files.page:24(note/p) +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" + +#: C/gedit-open-files.page:28(note/p) +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" + +#: C/gedit-open-on-server.page:14(page/title) +msgid "Open a file that is located on a server" +msgstr "" + +#: C/gedit-open-on-server.page:16(page/p) +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" + +#: C/gedit-open-on-server.page:18(page/p) +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" + +#: C/gedit-open-on-server.page:20(page/p) +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" + +#: C/gedit-open-on-server.page:23(item/p) +msgid "" +"Choose FileOpen to display the " +"Open Files dialog." +msgstr "" + +#: C/gedit-open-on-server.page:24(item/p) +msgid "" +"Select the Pencil icon near the top of the Open Files " +"dialog." +msgstr "" + +#: C/gedit-open-on-server.page:25(item/p) +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "" + +#: C/gedit-open-on-server.page:26(item/p) +msgid "Find and select the file that you wish to open." +msgstr "" + +#: C/gedit-open-on-server.page:27(item/p) +msgid "" +"Use the Character coding drop-down list to select the appropriate character " +"coding." +msgstr "" + +#: C/gedit-open-on-server.page:28(item/p) +#: C/gedit-plugins-quick-open.page:37(item/p) +msgid "Click Open." +msgstr "" + +#: C/gedit-open-on-server.page:31(page/p) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by gvfs." +msgstr "" + +#: C/gedit-open-on-server.page:34(note/p) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" + +#: C/gedit-open-recent.page:14(page/title) +msgid "Reopen a recently-used file" +msgstr "" + +#: C/gedit-open-recent.page:16(page/p) +msgid "" +"By default, gedit provides easy access to five of your most " +"recently-used files. Here is how you can open a recently-used file:" +msgstr "" + +#: C/gedit-open-recent.page:18(item/p) +msgid "" +"Click the downward-facing arrow to the right of the Open button." +msgstr "" + +#: C/gedit-open-recent.page:19(item/p) +msgid "" +"gedit will display a list of the five most-recently used files." +msgstr "" + +#: C/gedit-open-recent.page:20(item/p) +msgid "Select the desired file, and it will open in a new tab." +msgstr "" + +#: C/gedit-open-recent.page:23(note/p) +msgid "" +"To adjust the number of recently-used files that gedit displays, you will " +"need to use the gconf-editor application." +msgstr "" + +#: C/gedit-open-recent.page:25(item/p) +msgid "" +"Launch gconf-editor and select appsgedit-2preferencesuirecents." +msgstr "" + +#: C/gedit-open-recent.page:26(item/p) +msgid "" +"Double-click on the number next to max_recents and change the " +"number to your desired value." +msgstr "" + +#: C/gedit-plugin-guide.page:14(page/title) +msgid "Configure and use gedit Plugins" +msgstr "" + +#: C/gedit-plugin-guide.page:15(page/p) +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" + +#: C/gedit-plugin-guide.page:19(note/p) +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" + +#: C/gedit-plugin-guide.page:24(section/title) +msgid "Default gedit Plugins" +msgstr "" + +#: C/gedit-plugin-guide.page:28(section/title) +msgid "Additional gedit Plugins" +msgstr "" + +#: C/gedit-plugins-bookmarks.page:13(info/desc) +msgid "Record commonly-referenced locations with bookmarks" +msgstr "" + +#: C/gedit-plugins-bookmarks.page:16(page/title) +msgid "Bookmarks" +msgstr "బుక్మార్క్లు" + +#: C/gedit-plugins-bookmarks.page:18(page/p) +msgid "" +"Gedit bookmarks allow you to highlight important lines of text within your " +"document or program, making them easier to find. You can also move up or " +"down between bookmarks, making document navigation a bit faster." +msgstr "" + +#: C/gedit-plugins-bookmarks.page:22(page/p) +msgid "" +"To enable the bookmark plugin, select Edit " +"PreferencesPluginsBookmarks." +msgstr "" + +#: C/gedit-plugins-bookmarks.page:26(steps/title) +msgid "" +"Bookmarks are inserted and removed by completing the same action. To insert " +"or remove bookmarks:" +msgstr "" + +#: C/gedit-plugins-bookmarks.page:28(item/p) +msgid "Navigate to the line where you want to insert or remove the bookmark." +msgstr "" + +#: C/gedit-plugins-bookmarks.page:30(item/p) +msgid "" +"Press CtrlAltB, or click " +"EditToggle Bookmark." +msgstr "" + +#: C/gedit-plugins-bookmarks.page:36(steps/title) +msgid "To move between bookmarks:" +msgstr "" + +#: C/gedit-plugins-bookmarks.page:37(item/p) +msgid "" +"Press CtrlB to move to the next " +"bookmark." +msgstr "" + +#: C/gedit-plugins-bookmarks.page:39(item/p) +msgid "" +"Press CtrlShiftB to move " +"to the previous bookmark." +msgstr "" + +#: C/gedit-plugins-bookmarks.page:41(note/p) +msgid "" +"If you prefer using the mouse, you can click Edit Go " +"to Next Bookmark or EditGo to " +"Previous Bookmark." +msgstr "" + +#: C/gedit-plugins-bracket-comp.page:12(info/desc) +msgid "Auto-complete closing brackets" +msgstr "" + +#: C/gedit-plugins-bracket-comp.page:15(page/title) +msgid "Bracket completion" +msgstr "" + +#: C/gedit-plugins-bracket-comp.page:17(page/p) +msgid "" +"The Bracket Completion plugin will auto-complete closing brackets " +"for curly braces, parentheses, and square brackets." +msgstr "" + +#: C/gedit-plugins-bracket-comp.page:19(page/p) +msgid "" +"To enable the plugin, select EditPreferencesPluginsBracket Completion." +msgstr "" + +#: C/gedit-plugins-bracket-comp.page:21(note/p) +msgid "This plugin does not automatically insert closing HTML or XML tags." +msgstr "" + +#: C/gedit-plugins-change-case.page:9(credit/name) +#: C/gedit-plugins-doc-stats.page:9(credit/name) +#: C/gedit-plugins-external-tools.page:11(credit/name) +#: C/gedit-plugins-file-browser.page:9(credit/name) +#: C/gedit-plugins-insert-date-time.page:9(credit/name) +#: C/gedit-plugins-install.page:12(credit/name) +#: C/gedit-plugins-modelines.page:9(credit/name) +#: C/gedit-plugins-snippets.page:13(credit/name) +#: C/gedit-plugins-sort.page:9(credit/name) +#: C/gedit-plugins-tag-list.page:9(credit/name) +#: C/gedit-replace.page:15(credit/name) C/gedit-search.page:15(credit/name) +#: C/gedit-tabs-moving.page:14(credit/name) C/gedit-tabs.page:15(credit/name) +#: C/gedit-undo-recent-action.page:14(credit/name) +#: C/gedit-view-open-files-in-sidepane.page:14(credit/name) +msgid "Daniel Neel" +msgstr "" + +#: C/gedit-plugins-change-case.page:17(info/desc) +msgid "Change the case of selected text" +msgstr "" + +#: C/gedit-plugins-change-case.page:20(page/title) +msgid "Change case" +msgstr "" + +#: C/gedit-plugins-change-case.page:22(page/p) +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select " +"EditPreferencesPluginsChange " +"Case." +msgstr "" + +#: C/gedit-plugins-change-case.page:24(page/p) +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" + +#: C/gedit-plugins-change-case.page:26(item/p) +msgid "Highlight the portion of text that you want to change." +msgstr "" + +#: C/gedit-plugins-change-case.page:27(item/p) +msgid "Select EditChange Case" +msgstr "" + +#: C/gedit-plugins-change-case.page:28(item/p) +msgid "Choose your desired text-formatting option." +msgstr "" + +#: C/gedit-plugins-change-case.page:31(page/p) +msgid "The updates to the text formatting will take place immediately." +msgstr "" + +#: C/gedit-plugins-change-case.page:33(note/p) +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" + +#: C/gedit-plugins-change-case.page:34(note/p) +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" + +#: C/gedit-plugins-change-case.page:36(note/p) +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" + +#: C/gedit-plugins-character-map.page:14(credit/name) +#: C/gedit-plugins-word-completion.page:14(credit/name) +msgid "Paul Weaver" +msgstr "" + +#: C/gedit-plugins-character-map.page:18(info/desc) +msgid "Insert special characters just by clicking on them" +msgstr "" + +#: C/gedit-plugins-character-map.page:21(page/title) +msgid "Character map" +msgstr "అక్షర పటం" + +#: C/gedit-plugins-character-map.page:29(page/p) +msgid "" +"The Character Map plugin enables you to insert characters into " +"your document that you may not be able to type easily using your keyboard. " +"To enable this plugin, select EditPreferencesPluginsCharacter Map." +msgstr "" + +#: C/gedit-plugins-character-map.page:32(section/title) +msgid "Using Character Map" +msgstr "" + +#: C/gedit-plugins-character-map.page:34(section/p) +msgid "" +"Once the plugin is enabled, you can add characters from the Character " +"Map tab of the side panel (ViewSide Panel)." +msgstr "" + +#: C/gedit-plugins-character-map.page:37(item/p) +msgid "" +"Place the cursor at the point in your document at which you would like your " +"special character." +msgstr "" + +#: C/gedit-plugins-character-map.page:38(item/p) +msgid "" +"Open the side panel by selecting ViewSide Panel, or by pressing F9." +msgstr "" + +#: C/gedit-plugins-character-map.page:39(item/p) +msgid "Select the Character Map tab in the side panel." +msgstr "" + +#: C/gedit-plugins-character-map.page:40(item/p) +msgid "" +"If neccessary, choose the character set to which your character belongs from " +"the list at the top of the Character Map tab (e.g., Arabic)." +msgstr "" + +#: C/gedit-plugins-character-map.page:41(item/p) +msgid "Double click your desired character to insert it." +msgstr "" + +#: C/gedit-plugins-character-map.page:44(note/p) +msgid "" +"You must click on the editing view of your document to continue editing " +"normally." +msgstr "" + +#: C/gedit-plugins-code-assistance.page:13(info/desc) +msgid "Real-time error highlighting for supported languages" +msgstr "" + +#: C/gedit-plugins-code-assistance.page:16(page/title) +msgid "Code assistance" +msgstr "" + +#: C/gedit-plugins-code-assistance.page:21(page/p) +msgid "" +"The gedit-code-assistance plugin provides real-time error " +"highlighting for C, C++ and Objective-C. To enable this plugin, select " +"EditPreferencesPluginsCode " +"Assistance." +msgstr "" + +#: C/gedit-plugins-code-assistance.page:39(section/title) +msgid "How the code assistance plugin works" +msgstr "" + +#: C/gedit-plugins-code-assistance.page:41(section/p) +msgid "" +"The plugin currently relies on information in the makefile to deduce the " +"Clang error-highlighting rules. It examines the make rules and " +"determines which targets depend on the the file that is being parsed. The " +"plugin then extracts the compiler flags by simulating an execution of those " +"targets." +msgstr "" + +#: C/gedit-plugins-code-assistance.page:47(section/p) +msgid "" +"This is not completely fool proof, of course. In the future, the plugin will " +"allow you to manually specify the compile flags." +msgstr "" + +#: C/gedit-plugins-code-comment.page:13(info/desc) +msgid "Comment-out or uncomment a block of code" +msgstr "" + +#: C/gedit-plugins-code-comment.page:16(page/title) +msgid "Code comment" +msgstr "" + +#: C/gedit-plugins-code-comment.page:18(page/p) +msgid "" +"Code comments are portions of text that make it easier for people to " +"understand a program's code, but they don't affect how a program works. " +"Comments are separated from other parts of a program by special characters." +msgstr "" + +#: C/gedit-plugins-code-comment.page:23(page/p) +msgid "" +"The code comment plugin makes it easier to quickly create or " +"remove code comments. To enable the code comment plugin, select " +" Edit PreferencesPluginsCode " +"comment ." +msgstr "" + +#: C/gedit-plugins-code-comment.page:28(page/p) +msgid "To create or remove a comment:" +msgstr "" + +#: C/gedit-plugins-code-comment.page:30(item/p) +msgid "" +"Highlight the portion of text where you want to add or remove a comment." +msgstr "" + +#: C/gedit-plugins-code-comment.page:32(item/p) +msgid "" +"To add a comment, click EditComment Code, or press CtrlM." +msgstr "" + +#: C/gedit-plugins-code-comment.page:34(item/p) +msgid "" +"To remove a comment, click EditUncomment Code, or press ShiftCtrl M." +msgstr "" + +#: C/gedit-plugins-code-comment.page:39(note/p) +msgid "" +"Gedit will automatically use the correct style of comment based " +"on the language or syntax of the file. If gedit doesn't identify " +"your language or syntax, you can select it from the language list in the " +"bottom Status bar." +msgstr "" + +#: C/gedit-plugins-color-picker.page:13(info/desc) +msgid "Pick a color from a dialog and insert its hexadecimal representation" +msgstr "" + +#: C/gedit-plugins-color-picker.page:16(page/title) +msgid "Color picker" +msgstr "" + +#: C/gedit-plugins-color-picker.page:18(page/p) +msgid "" +"The color picker plugin helps you to insert the character codes " +"that represent a certain color. This can make it easier to choose and use " +"the correct color in your programs." +msgstr "" + +#: C/gedit-plugins-color-picker.page:22(page/p) +msgid "" +"To enable the color picker plugin, select EditPreferencesPluginsColor Picker ." +msgstr "" + +#: C/gedit-plugins-color-picker.page:26(page/p) +msgid "To open and use the color picker:" +msgstr "" + +#: C/gedit-plugins-color-picker.page:28(item/p) +msgid "" +"Place your cursor at the point in your document where you want to insert the " +"color code." +msgstr "" + +#: C/gedit-plugins-color-picker.page:30(item/p) +msgid "" +"Select ToolsPick Color.... The color " +"picker dialog will appear." +msgstr "" + +#: C/gedit-plugins-color-picker.page:32(item/p) +msgid "" +"If the color that you want to select is currently on your screen, click on " +"the icon that looks like an eyedropper." +msgstr "" + +#: C/gedit-plugins-color-picker.page:34(item/p) +msgid "" +"Your mouse pointer will change appearance, and will look like an eyedropper." +msgstr "" + +#: C/gedit-plugins-color-picker.page:36(item/p) +msgid "" +"Use the eyedropper and click on the portion of your screen that contains the " +"color you want to use. The color code for that color will appear in the " +"color picker window." +msgstr "" + +#: C/gedit-plugins-color-picker.page:39(item/p) +msgid "" +"To insert that color code into your document, click Insert. The " +"code will be inserted where you had placed your cursor." +msgstr "" + +#: C/gedit-plugins-color-picker.page:42(item/p) +msgid "To close the color picker, click Close." +msgstr "" + +#: C/gedit-plugins-color-picker.page:46(note/p) +msgid "" +"You can make fine-grained adjustments to the color by adjusting the values " +"for Hue, Saturation, Value, Red, Green, or Blue." +msgstr "" + +#: C/gedit-plugins-color-picker.page:48(note/p) +msgid "" +"Additionally, you can save colors by right-clicking on any of the colored " +"boxes in the color picker, and selecting Save color here. This " +"will make it easier to insert commonly-used colors later." +msgstr "" + +#: C/gedit-plugins-commander.page:13(info/desc) +msgid "Use a command-line interface for advanced editing" +msgstr "" + +#: C/gedit-plugins-commander.page:16(page/title) +msgid "Commander" +msgstr "" + +#: C/gedit-plugins-commander.page:19(page/p) +msgid "" +"The Commander plugin is a plugin for advanced gedit " +"users that allows you to perform command-line actions on the current file. " +"To enable the commander plugin, select Edit " +"PreferencesPluginsCommander." +msgstr "" + +#: C/gedit-plugins-commander.page:24(page/p) +msgid "" +"Once you have enabled the plugin, activate it by pressing " +"Ctrl.." +msgstr "" + +#: C/gedit-plugins-commander.page:27(note/p) +msgid "The last key in the above key combination is a period." +msgstr "" + +#: C/gedit-plugins-commander.page:33(td/p) C/gedit-shortcut-keys.page:56(td/p) +#: C/gedit-shortcut-keys.page:88(td/p) C/gedit-shortcut-keys.page:124(td/p) +#: C/gedit-shortcut-keys.page:168(td/p) C/gedit-shortcut-keys.page:186(td/p) +#: C/gedit-shortcut-keys.page:217(td/p) C/gedit-shortcut-keys.page:243(td/p) +msgid "To Do This" +msgstr "" + +#: C/gedit-plugins-commander.page:33(td/p) C/gedit-shortcut-keys.page:56(td/p) +#: C/gedit-shortcut-keys.page:88(td/p) C/gedit-shortcut-keys.page:124(td/p) +#: C/gedit-shortcut-keys.page:168(td/p) C/gedit-shortcut-keys.page:186(td/p) +#: C/gedit-shortcut-keys.page:217(td/p) C/gedit-shortcut-keys.page:243(td/p) +msgid "Press This" +msgstr "ఇది నొక్కండి" + +#: C/gedit-plugins-commander.page:38(td/p) +msgid "See an overview of available commands" +msgstr "" + +#: C/gedit-plugins-commander.page:38(td/p) +msgid "Tab + Tab" +msgstr "Tab + Tab" + +#: C/gedit-plugins-commander.page:42(td/p) +msgid "Find a word within the current file" +msgstr "" + +#: C/gedit-plugins-commander.page:42(td/p) +msgid "/ foo " +msgstr "/ foo " + +#: C/gedit-plugins-commander.page:44(td/p) +msgid "This will find the word foo." +msgstr "" + +#: C/gedit-plugins-commander.page:47(td/p) +msgid "Replace a word within the current file" +msgstr "" + +#: C/gedit-plugins-commander.page:47(td/p) +msgid "// foo bar" +msgstr "// foo bar" + +#: C/gedit-plugins-commander.page:49(td/p) +msgid "This will replace foo with bar." +msgstr "" + +#: C/gedit-plugins-commander.page:52(td/p) +msgid "Move the cursor to a certain line number in your file" +msgstr "" + +#: C/gedit-plugins-commander.page:53(td/p) +msgid "go [line number] or just g [line number]" +msgstr "" + +#: C/gedit-plugins-commander.page:57(td/p) +msgid "Toggle the bookmark indicator for the current line" +msgstr "" + +#: C/gedit-plugins-commander.page:58(td/p) +msgid "bookmark or just b" +msgstr "" + +#: C/gedit-plugins-commander.page:63(note/p) +msgid "" +"Some commands, such as the bookmark command require that the " +"appropriate plugin be installed and activated. If you do not have the " +"appropriate plugin installed and activated, you will receive an error " +"message." +msgstr "" + +#: C/gedit-plugins-dashboard.page:13(info/desc) +msgid "Display recently-used and most-used files on startup" +msgstr "" + +#: C/gedit-plugins-dashboard.page:16(page/title) +msgid "Dashboard" +msgstr "డాష్బోర్డ్ను" + +#: C/gedit-plugins-dashboard.page:18(page/p) +msgid "" +"The Dashboard plugin provides quick access to your most recently-" +"used files and most-frequently used files. To activate the Dashboard plugin, select Edit PreferencesPluginsDashboard. You will need to " +"restart gedit to activate the Dashboard plugin." +msgstr "" + +#: C/gedit-plugins-dashboard.page:25(page/p) +msgid "" +"The dashboard also includes a Search window, allowing " +"you to search for files that may not appear in the list of files." +msgstr "" + +#: C/gedit-plugins-dashboard.page:29(section/title) +msgid "Recently used files" +msgstr "" + +#: C/gedit-plugins-dashboard.page:30(section/p) +msgid "" +"The dashboard will initially display a shortcut for an empty document and seven of your most recently-used files. Click on the empty " +"document to create a new file. Click on any of the other files to open " +"that file." +msgstr "" + +#: C/gedit-plugins-dashboard.page:37(section/title) +msgid "Most frequently-used files" +msgstr "" + +#: C/gedit-plugins-dashboard.page:38(section/p) +msgid "" +"Similarly, the dashboard displays a shortcut for an empty document and seven of your most frequently-used files. Click on the empty " +"document to create a new file. Click on any of the other files to open " +"that file." +msgstr "" + +#: C/gedit-plugins-dashboard.page:43(note/p) +msgid "" +"Once activated, the dashboard will be displayed by default when " +"you open gedit. You can also open the dashboard by " +"clicking FileNew , or by pressing " +"CtrlN." +msgstr "" + +#: C/gedit-plugins-doc-stats.page:16(info/desc) +msgid "View document statistics" +msgstr "" + +#: C/gedit-plugins-doc-stats.page:19(page/title) +msgid "Document statistics" +msgstr "" + +#: C/gedit-plugins-doc-stats.page:21(page/p) +msgid "" +"The Document Statistics plugin can show you various statistics " +"about your current document. To enable this plugin, select " +"EditPreferencesPluginsDocument " +"Statisics." +msgstr "" + +#: C/gedit-plugins-doc-stats.page:24(section/title) +msgid "Using Document Statistics" +msgstr "" + +#: C/gedit-plugins-doc-stats.page:26(section/p) +msgid "" +"Once the plugin is enabled, use it by selecting ToolsDocument Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" + +#: C/gedit-plugins-doc-stats.page:28(section/p) +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:13(info/desc) +msgid "Show white space between words or portions of code" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:16(page/title) +msgid "Draw spaces" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:18(page/p) +msgid "" +"The Draw Spaces plugin is a simple plugin that can mark spaces, " +"tabs, and other types of whitespace with a small, visible marker. By making " +"whitespace visible, you can more easily see how whitespace is used in a " +"document, and can apply spacing strategies more consistently." +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:23(page/p) +msgid "" +"To enable this plugin, select EditPreferences " +"PluginsDraw Spaces. After you have enabled " +"the plugin, you can set its options by highlighting the plugin and selecting " +"Preferences." +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:27(list/title) +msgid "" +"By default, the Draw Spaces plugin will mark the following types " +"of whitespace in a file:" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:28(item/p) +msgid "Spaces" +msgstr "ఖాళీలు" + +#: C/gedit-plugins-draw-spaces.page:29(item/p) +msgid "Tabs" +msgstr "టాబ్లు" + +#: C/gedit-plugins-draw-spaces.page:30(item/p) +msgid "Leading spaces" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:31(item/p) +msgid "Spaces in text" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:32(item/p) +msgid "Trailing spaces" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:36(list/title) +msgid "You can also set the plugin to mark:" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:37(item/p) +msgid "New Lines" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:38(item/p) +msgid "Non-breaking spaces" +msgstr "" + +#: C/gedit-plugins-draw-spaces.page:41(note/p) +msgid "" +"Though you will be able to see the dots when you work on a file, the dots " +"will not be visible when you print a file to paper." +msgstr "" + +#: C/gedit-plugins-external-tools.page:18(info/desc) +msgid "Run scripts on your current files, and interact with other applications" +msgstr "" + +#: C/gedit-plugins-external-tools.page:22(page/title) +msgid "External tools" +msgstr "" + +#: C/gedit-plugins-external-tools.page:24(page/p) +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select EditPreferencesPluginsExternal Tools." +msgstr "" + +#: C/gedit-plugins-external-tools.page:27(section/title) +msgid "Configure the external tools plugin" +msgstr "" + +#: C/gedit-plugins-external-tools.page:29(section/p) +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" + +#: C/gedit-plugins-external-tools.page:31(note/p) +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" + +#: C/gedit-plugins-file-browser.page:16(info/desc) +msgid "Use the side pane to browse and open files" +msgstr "" + +#: C/gedit-plugins-file-browser.page:19(page/title) +msgid "File browser pane" +msgstr "" + +#: C/gedit-plugins-file-browser.page:21(page/p) +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser pane plugin. This plugin embeds a file " +"browser in the side pane, giving you easy access to your frequently-" +"used files." +msgstr "" + +#: C/gedit-plugins-file-browser.page:23(page/p) +msgid "" +"You can enable the Side Pane by selecting EditPreferencesPluginsFile Browser Pane." +msgstr "" + +#: C/gedit-plugins-file-browser.page:27(section/p) +msgid "" +"To activate and use the side pane, select ViewSide pane (or just press F9), and then " +"click on the file-browser icon at the bottom of the pane." +msgstr "" + +#: C/gedit-plugins-insert-date-time.page:17(info/desc) +msgid "Insert the current date/time at the cursor position" +msgstr "" + +#: C/gedit-plugins-insert-date-time.page:20(page/title) +msgid "Insert date/time" +msgstr "" + +#: C/gedit-plugins-insert-date-time.page:22(page/p) +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position. To " +"enable this plugin, select EditPreferencesPluginsInsert Date/Time. To use the " +"plugin, press EditInsert Date and Time." +msgstr "" + +#: C/gedit-plugins-insert-date-time.page:24(page/p) +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by selecting " +"EditPreferencesPluginsInsert " +"Date/TimeConfigure." +msgstr "" + +#: C/gedit-plugins-install.page:15(info/desc) +msgid "How to install third-party plugins" +msgstr "" + +#: C/gedit-plugins-install.page:18(page/title) +msgid "Additional gedit plugins" +msgstr "" + +#: C/gedit-plugins-install.page:20(page/p) +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept here." +msgstr "" + +#: C/gedit-plugins-install.page:27(page/p) +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" + +#: C/gedit-plugins-install.page:31(item/p) +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" + +#: C/gedit-plugins-install.page:36(item/p) +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" + +#: C/gedit-plugins-install.page:39(item/p) +msgid "Of course, replace the word username with your own username." +msgstr "" + +#: C/gedit-plugins-install.page:41(item/p) +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Select Edit PreferencesPlugins[Name of Plugin] to enable the plugin." +msgstr "" + +#: C/gedit-plugins-install.page:45(item/p) +#: C/gedit-plugins-session-saver.page:46(item/p) +msgid "Click Close." +msgstr "" + +#: C/gedit-plugins-install.page:48(page/p) +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "" + +#: C/gedit-plugins-install.page:52(note/p) +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" + +#: C/gedit-plugins-install.page:59(note/p) +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:13(info/desc) +msgid "Join several lines of text, or split long lines" +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:16(page/title) +msgid "Join/Split lines" +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:18(page/p) +msgid "" +"The Join/Split Lines plugin can join shorter lines into one " +"longer line, or can split a long line into multiple shorter lines." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:21(page/p) +msgid "" +"To enable this plugin, select EditPreferences " +"PluginsJoin/Split Lines." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:25(steps/title) +msgid "To join multiple lines into one longer line:" +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:26(item/p) +msgid "" +"Select the lines that you want to join. To do this, you can use the mouse, " +"or you can press ShiftUp Arrow or " +"ShiftDown Arrow." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:30(item/p) +msgid "Press CtrlJ." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:31(item/p) +msgid "The lines that you selected will be joined into one longer line." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:36(steps/title) +msgid "To split one line into multiple lines:" +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:37(item/p) +msgid "" +"Select the line that you want to split by placing your cursor anywhere on " +"that line." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:39(item/p) +msgid "Press CtrlShiftJ." +msgstr "" + +#: C/gedit-plugins-join-split-lines.page:41(item/p) +msgid "" +"The line will be split into multiple lines. Spaces are used to determine " +"where it is safe to split a line, and the length of each line will not " +"exceed 80 characters." +msgstr "" + +#: C/gedit-plugins-modelines.page:16(info/desc) +msgid "Emacs, Kate and Vim-style modelines support for gedit" +msgstr "" + +#: C/gedit-plugins-modelines.page:19(page/title) +msgid "Modelines" +msgstr "" + +#: C/gedit-plugins-modelines.page:21(page/p) +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" + +#: C/gedit-plugins-modelines.page:23(page/p) +msgid "" +"To enable the Modelines plugin, select EditPreferencesPluginsModelines." +msgstr "" + +#: C/gedit-plugins-modelines.page:26(section/title) +msgid "General Modeline Options" +msgstr "" + +#: C/gedit-plugins-modelines.page:27(section/p) +msgid "The following options can be set using gedit modelines:" +msgstr "" + +#: C/gedit-plugins-modelines.page:29(item/p) +msgid "Tab width" +msgstr "" + +#: C/gedit-plugins-modelines.page:30(item/p) +msgid "Indent width" +msgstr "" + +#: C/gedit-plugins-modelines.page:31(item/p) +msgid "Inserting spaces instead of tabs" +msgstr "" + +#: C/gedit-plugins-modelines.page:32(item/p) +msgid "Text Wrapping" +msgstr "" + +#: C/gedit-plugins-modelines.page:33(item/p) +msgid "Right margin width" +msgstr "" + +#: C/gedit-plugins-modelines.page:36(note/p) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" + +#: C/gedit-plugins-modelines.page:40(section/title) +msgid "Emacs Modelines" +msgstr "" + +#: C/gedit-plugins-modelines.page:42(section/p) +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" + +#: C/gedit-plugins-modelines.page:44(item/p) +msgid "Tab-width" +msgstr "" + +#: C/gedit-plugins-modelines.page:45(item/p) +msgid "Indent-offset" +msgstr "" + +#: C/gedit-plugins-modelines.page:46(item/p) +msgid "Indent-tabs-mode" +msgstr "" + +#: C/gedit-plugins-modelines.page:47(item/p) +msgid "Text auto-wrap" +msgstr "" + +#: C/gedit-plugins-modelines.page:49(section/p) +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" + +#: C/gedit-plugins-modelines.page:53(section/title) +msgid "Kate Modelines" +msgstr "" + +#: C/gedit-plugins-modelines.page:55(section/p) +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" + +#: C/gedit-plugins-modelines.page:58(item/p) +msgid "tab-width" +msgstr "" + +#: C/gedit-plugins-modelines.page:59(item/p) +msgid "indent-width" +msgstr "" + +#: C/gedit-plugins-modelines.page:60(item/p) +msgid "space-indent" +msgstr "" + +#: C/gedit-plugins-modelines.page:61(item/p) +msgid "word-wrap" +msgstr "" + +#: C/gedit-plugins-modelines.page:62(item/p) +msgid "word-wrap-column" +msgstr "" + +#: C/gedit-plugins-modelines.page:65(section/p) +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" + +#: C/gedit-plugins-modelines.page:69(section/title) +msgid "Vim Modelines" +msgstr "" + +#: C/gedit-plugins-modelines.page:70(section/p) +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" + +#: C/gedit-plugins-modelines.page:73(item/p) +msgid "et (expandtab)" +msgstr "" + +#: C/gedit-plugins-modelines.page:74(item/p) +msgid "ts (tabstop)" +msgstr "" + +#: C/gedit-plugins-modelines.page:75(item/p) +msgid "sw (shiftwidth)" +msgstr "" + +#: C/gedit-plugins-modelines.page:76(item/p) +msgid "wrap" +msgstr "పొట్లం కట్టు" + +#: C/gedit-plugins-modelines.page:77(item/p) +msgid "textwidth" +msgstr "" + +#: C/gedit-plugins-modelines.page:80(section/p) +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:11(credit/years) +msgid "2011" +msgstr "2011" + +#: C/gedit-plugins-multi-edit.page:14(info/desc) +msgid "Edit a document in multiple places at once" +msgstr "" + +#: C/gedit-plugins-multi-edit.page:17(page/title) +msgid "Multi edit" +msgstr "" + +#: C/gedit-plugins-multi-edit.page:19(page/p) +msgid "" +"The Multi Edit plugin allows you to edit a document in multiple " +"places at once. This can be helpful when performing tedious editing tasks. " +"To enable the Multi Edit plugin, select Edit " +"PreferencesPluginsMulti Edit." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:24(page/p) +msgid "" +"After you have enabled the plugin, turn-on Multi Edit mode by pressing " +"CtrlShiftC, or clicking " +"EditMulti Edit Mode. You can then " +"select the points in your file that you would like start editing." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:29(page/p) +msgid "To insert editing points in your file:" +msgstr "" + +#: C/gedit-plugins-multi-edit.page:31(item/p) +msgid "Place your cursor at your first desired editing point." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:32(item/p) +msgid "Press CtrlE." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:33(item/p) +msgid "" +"Move to your next editing point, and press Ctrl E again." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:35(item/p) +msgid "Continue inserting editing points, adding as many as you need." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:39(page/p) +msgid "" +"Once you have inserted all of your editing points, you can make your desired " +"edits." +msgstr "" + +#: C/gedit-plugins-multi-edit.page:42(page/p) +msgid "" +"To remove editing points, press the Esc key. This will remove all " +"of the editing points. Pressing the Esc key again will turn off " +"Multi Edit mode, returning the editor back to its normal state." +msgstr "" + +#: C/gedit-plugins-pyconsole.page:12(info/desc) +msgid "Add an interactive Python console to the bottom pane" +msgstr "" + +#: C/gedit-plugins-pyconsole.page:15(page/title) +msgid "Python console" +msgstr "" + +#: C/gedit-plugins-pyconsole.page:17(page/p) +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select EditPreferencesPluginsPython Console." +msgstr "" + +#: C/gedit-plugins-pyconsole.page:19(page/p) +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Pane, or just press " +"ShiftF9." +msgstr "" + +#: C/gedit-plugins-pyconsole.page:21(note/p) +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" + +#: C/gedit-plugins-quick-open.page:13(info/desc) +msgid "Quickly open a file or set of files" +msgstr "" + +#: C/gedit-plugins-quick-open.page:16(page/title) +msgid "Quick open" +msgstr "" + +#: C/gedit-plugins-quick-open.page:18(page/p) +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than the regular way of opening files. " +"To enable this plugin, select Edit PreferencesPluginsQuick Open." +msgstr "" + +#: C/gedit-plugins-quick-open.page:23(page/p) +msgid "Once you've enabled it, here is how to use the plugin:" +msgstr "" + +#: C/gedit-plugins-quick-open.page:26(item/p) +msgid "" +"Open the Quick Open dialog by pressing CtrlAltO, or by selecting FileQuick Open." +msgstr "" + +#: C/gedit-plugins-quick-open.page:29(item/p) +msgid "The Quick Open file dialog will appear." +msgstr "" + +#: C/gedit-plugins-quick-open.page:30(item/p) +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" + +#: C/gedit-plugins-quick-open.page:32(item/p) +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" + +#: C/gedit-plugins-quick-open.page:34(item/p) +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" + +#: C/gedit-plugins-quick-open.page:40(note/p) +msgid "" +"The Quick Open plugin will only display files that you have " +"previously opened." +msgstr "" + +#: C/gedit-plugins-session-saver.page:13(info/desc) +msgid "Save and restore your working sessions" +msgstr "" + +#: C/gedit-plugins-session-saver.page:16(page/title) +msgid "Session Saver" +msgstr "" + +#: C/gedit-plugins-session-saver.page:18(page/p) +msgid "" +"The Session Saver plugin saves groups of files together so that " +"you can open them together at a later time. To enable the plugin, select " +"EditPreferencesPlugins Session " +"Saver." +msgstr "" + +#: C/gedit-plugins-session-saver.page:24(steps/title) +msgid "To save a new session:" +msgstr "" + +#: C/gedit-plugins-session-saver.page:25(item/p) +msgid "" +"Select FileSaved SessionsSave current " +"session." +msgstr "" + +#: C/gedit-plugins-session-saver.page:27(item/p) +msgid "Type a session name in the Save session dialog box." +msgstr "" + +#: C/gedit-plugins-session-saver.page:29(item/p) +msgid "Click Save." +msgstr "" + +#: C/gedit-plugins-session-saver.page:33(steps/title) +msgid "To open an existing session:" +msgstr "" + +#: C/gedit-plugins-session-saver.page:34(item/p) +msgid "Select FileSaved Sessions." +msgstr "" + +#: C/gedit-plugins-session-saver.page:36(item/p) +msgid "Click the name of your desired session." +msgstr "" + +#: C/gedit-plugins-session-saver.page:40(steps/title) +msgid "To delete an existing session:" +msgstr "" + +#: C/gedit-plugins-session-saver.page:41(item/p) +msgid "" +"Select FileSaved Sessions Manage saved " +"sessions." +msgstr "" + +#: C/gedit-plugins-session-saver.page:43(item/p) +msgid "Select the name of the session that you want to delete." +msgstr "" + +#: C/gedit-plugins-session-saver.page:45(item/p) +msgid "Click Delete." +msgstr "" + +#: C/gedit-plugins-session-saver.page:47(item/p) +msgid "" +"The session name will still be listed in your list of sessions until you " +"close gedit." +msgstr "" + +#: C/gedit-plugins-snippets-guide.page:11(info/desc) +msgid "Use snippets to quickly insert often-used pieces of text" +msgstr "" + +#: C/gedit-plugins-snippets-guide.page:14(page/title) +msgid "Snippets" +msgstr "" + +#: C/gedit-plugins-snippets-guide.page:16(page/p) +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" + +#: C/gedit-plugins-snippets-guide.page:22(page/p) +msgid "" +"To enable the Snippets plugin, select Edit " +"PreferencesPluginsSnippets." +msgstr "" + +#: C/gedit-plugins-snippets-guide.page:26(section/title) +msgid "Using, Modifying and creating snippets" +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:35(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" + +#: C/gedit-plugins-snippets.page:16(info/desc) +msgid "Inserting snippets of text into your files" +msgstr "" + +#: C/gedit-plugins-snippets.page:19(page/title) +msgid "Using snippets" +msgstr "" + +#: C/gedit-plugins-snippets.page:21(page/p) +msgid "The following points will help you get started with using snippets:" +msgstr "" + +#: C/gedit-plugins-snippets.page:24(item/p) +msgid "Make sure the syntax is set appropriately." +msgstr "" + +#: C/gedit-plugins-snippets.page:25(item/p) +msgid "" +"The status bar at the bottom of the gedit window will show the " +"current language setting. This language setting is what allows gedit to " +"insert the proper snippets. Gedit will normally detect the " +"language or syntax of the file that you're using, but sometimes you may need " +"to set it." +msgstr "" + +#: C/gedit-plugins-snippets.page:33(figure/desc) +msgid "In this example, the language is set to HTML." +msgstr "" + +#: C/gedit-plugins-snippets.page:40(item/p) +msgid "Review the default snippets." +msgstr "" + +#: C/gedit-plugins-snippets.page:41(item/p) +msgid "" +"Select ToolsManage Snippets. Review " +"the snippets that are available for your language or syntax. Find some basic " +"snippets that you think might be useful for you." +msgstr "" + +#: C/gedit-plugins-snippets.page:45(item/p) +msgid "Try using some of the snippets." +msgstr "" + +#: C/gedit-plugins-snippets.page:46(item/p) +msgid "" +"For example, if you set the syntax to HTML, type head , and press the Tab key, you should see something like this:" +msgstr "" + +#: C/gedit-plugins-snippets.page:51(page/code) +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" \n" +" </head>\n" +" " + +#: C/gedit-plugins-sort.page:16(info/desc) +msgid "Sort lines of text into alphabetical order" +msgstr "" + +#: C/gedit-plugins-sort.page:19(page/title) +msgid "Sort" +msgstr "" + +#: C/gedit-plugins-sort.page:21(page/p) +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" + +#: C/gedit-plugins-sort.page:23(note/p) +msgid "" +"You cannot use the Undo feature to correct a Sort " +"operation, so we recommend that you save the file immediately before " +"performing the sort. If you make a mistake with the sort, you can revert to " +"the previously-saved version of the file by selecting FileRevert." +msgstr "" + +#: C/gedit-plugins-sort.page:25(page/p) +msgid "" +"To enable the Sort plugin, select EditPreferencesPluginsSort." +msgstr "" + +#: C/gedit-plugins-sort.page:27(page/p) +msgid "" +"After you have enabled the Sort plugin, use it by selecting the " +"lines of text you want to sort, and then clicking EditSort." +msgstr "" + +#: C/gedit-plugins-sort.page:29(page/p) +msgid "" +"The Sort dialog will open, allowing you to choose between several sorting " +"options:" +msgstr "" + +#: C/gedit-plugins-sort.page:31(item/p) +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" + +#: C/gedit-plugins-sort.page:32(item/p) +msgid "Remove duplicates will remove duplicate values from the list." +msgstr "" + +#: C/gedit-plugins-sort.page:33(item/p) +msgid "Ignore case will ignore case sensitivity." +msgstr "" + +#: C/gedit-plugins-sort.page:34(item/p) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" + +#: C/gedit-plugins-sort.page:36(page/p) +msgid "To perform the sort operation, click Sort." +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-tag-list.page:35(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit-side-pane3.png' " +"md5='4b800d370193ac0ed8db9eb33b86e11c'" +msgstr "" + +#: C/gedit-plugins-tag-list.page:16(info/desc) +msgid "" +"Automatically insert tags, strings and special characters into a document" +msgstr "" + +#: C/gedit-plugins-tag-list.page:19(page/title) +msgid "Tag list" +msgstr "" + +#: C/gedit-plugins-tag-list.page:21(page/p) +msgid "" +"The Tag List plugin allows you to insert common tags and special " +"characters from a list in the side pane. By default, the plugin can insert " +"tags and special characters for HTML, XHTML, XSLT, XUL and LaTeX." +msgstr "" + +#: C/gedit-plugins-tag-list.page:24(section/title) +msgid "Using the Tag List plugin" +msgstr "" + +#: C/gedit-plugins-tag-list.page:26(section/p) +msgid "" +"To use the Tag List plugin, you will need to enable the plugin, " +"and then activate the tag-list portion of the side pane." +msgstr "" + +#: C/gedit-plugins-tag-list.page:29(section/title) +msgid "Enabling the Plugin" +msgstr "" + +#: C/gedit-plugins-tag-list.page:30(section/p) +msgid "" +"You can activate the plugin by selecting EditPreferencesPluginsTag List. " +"Once you have activated the plugin, access it by selecting " +"ViewSide Pane, or by pressing " +"F9." +msgstr "" + +#: C/gedit-plugins-tag-list.page:32(section/p) +msgid "" +"The side pane initially shows a list of open documents, so to view and use " +"the tag list, you will need to click on the tab showing the \"plus" +"\" icon at the bottom of the side pane. The icon will look similar to this:" +msgstr "" + +#: C/gedit-plugins-tag-list.page:39(section/title) +msgid "Inserting Tags and Special Characters" +msgstr "" + +#: C/gedit-plugins-tag-list.page:41(section/p) +msgid "" +"The tag list uses a drop-down menu to let you choose from the " +"different types of tags. For example, one tag option is HTML - Tags." +msgstr "" + +#: C/gedit-plugins-tag-list.page:43(section/p) +msgid "To start inserting tags, complete the following:" +msgstr "" + +#: C/gedit-plugins-tag-list.page:46(item/p) +msgid "" +"Move the cursor to where you will want to insert the tag or special " +"character." +msgstr "" + +#: C/gedit-plugins-tag-list.page:47(item/p) +msgid "" +"Select the desired tag type from the drop-down menu at the top of the side " +"pane." +msgstr "" + +#: C/gedit-plugins-tag-list.page:48(item/p) +msgid "Scroll through the list to find the desired tag or character." +msgstr "" + +#: C/gedit-plugins-tag-list.page:49(item/p) +msgid "Double-click on the tag in the tag list." +msgstr "" + +#: C/gedit-plugins-tag-list.page:52(section/p) +msgid "" +"The tag or special character you've chosen will then be displayed in your " +"document." +msgstr "" + +#: C/gedit-plugins-tag-list.page:56(section/title) +msgid "Tag List Tips" +msgstr "" + +#: C/gedit-plugins-tag-list.page:57(note/p) +msgid "" +"You can also insert a tag by pressing Return or " +"ShiftReturn." +msgstr "" + +#: C/gedit-plugins-tag-list.page:58(note/p) +msgid "" +"Pressing the Return key will insert the tag at the cursor " +"position, and then return focus to the document. Pressing " +"ShiftReturn will insert the tag at " +"the cursor position, but will keep the focus on the tag-list." +msgstr "" + +#: C/gedit-plugins-tag-list.page:60(note/p) +msgid "" +"You can see a preview of what text will be inserted for each tag and special " +"character by clicking on the word the Preview at the bottom of " +"the side pane." +msgstr "" + +#: C/gedit-plugins-terminal.page:13(info/desc) +msgid "Add a terminal console to the bottom pane" +msgstr "" + +#: C/gedit-plugins-terminal.page:16(page/title) +msgid "Embedded terminal" +msgstr "" + +#: C/gedit-plugins-terminal.page:18(page/p) +msgid "" +"gedit makes it possible to include an embedded version of " +"Gnome Terminal, the GNOME command-line application, in the bottom " +"pane of the gedit window. This will let you run scripts, install " +"needed software, or test your program without leaving gedit." +msgstr "" + +#: C/gedit-plugins-terminal.page:20(page/p) +msgid "" +"To enable this plugin, select EditPreferencesPluginsEmbedded Terminal." +msgstr "" + +#: C/gedit-plugins-terminal.page:22(page/p) +msgid "" +"Once you have enabled the plugin, add the terminal to the bottom pane by " +"selecting ViewBottom Pane, or just " +"press CtrlF9." +msgstr "" + +#: C/gedit-plugins-text-size.page:14(info/desc) +msgid "Increase or decrease the text size" +msgstr "" + +#: C/gedit-plugins-text-size.page:17(page/title) +msgid "Text Size" +msgstr "" + +#: C/gedit-plugins-text-size.page:19(page/p) +msgid "" +"The text size plugin allows you to temporarily change the text size in " +"gedit without changing the program's default text size. To enable " +"this plugin, select EditPreferencesPlugins Text Size." +msgstr "" + +#: C/gedit-plugins-text-size.page:25(list/title) +msgid "" +"Once you have enabled the plugin, do any of the following to change the text " +"size in gedit:" +msgstr "" + +#: C/gedit-plugins-text-size.page:27(item/p) +msgid "" +"To increase the text size, select Ctrl +." +msgstr "" + +#: C/gedit-plugins-text-size.page:29(item/p) +msgid "" +"To decrease the text size, select Ctrl -." +msgstr "" + +#: C/gedit-plugins-text-size.page:31(item/p) +msgid "" +"To reset the text size to the default size, select " +"Ctrl0." +msgstr "" + +#: C/gedit-plugins-word-completion.page:18(info/desc) +msgid "Autocomplete words or portions of code as you type" +msgstr "" + +#: C/gedit-plugins-word-completion.page:21(page/title) +msgid "Word completion" +msgstr "" + +#: C/gedit-plugins-word-completion.page:23(page/p) +msgid "" +"The Word Completion plugin can speed up your editing by " +"suggesting completions of words as you type. To enable the plugin, select " +"EditPreferencesPluginsWord " +"Completion." +msgstr "" + +#: C/gedit-plugins-word-completion.page:28(page/p) +msgid "" +"While editing, the Word Completion plugin will automatically " +"display a pop-up list of words that begin with the letters you have already " +"typed. Word suggestions are based upon words that appear elsewhere in your " +"document and upon pre-defined keywords if your document is of a recognised " +"format." +msgstr "" + +#: C/gedit-plugins-word-completion.page:34(page/p) +msgid "" +"To insert a suggested word, double-click on it in the pop-up list or press " +"AltNum, where Num is the " +"number displayed next to your desired word." +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-printing-order.page:53(media) +msgctxt "_" +msgid "external ref='reverse-collate.png' md5='__failed__'" +msgstr "" + +#: C/gedit-printing-order.page:10(credit/name) +#: C/gedit-printing-select.page:10(credit/name) +msgid "Phil Bull" +msgstr "" + +#: C/gedit-printing-order.page:14(license/p) +#: C/gedit-printing-select.page:14(license/p) +msgid "Creative Commons Share Alike 3.0" +msgstr "" + +#: C/gedit-printing-order.page:18(page/title) +msgid "Getting Copies To Print In The Correct Order" +msgstr "" + +#: C/gedit-printing-order.page:21(section/title) +msgid "Reverse" +msgstr "" + +#: C/gedit-printing-order.page:24(section/p) +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up." +msgstr "" + +#: C/gedit-printing-order.page:28(section/p) +msgid "To reverse the order:" +msgstr "" + +#: C/gedit-printing-order.page:32(item/p) +msgid "FilePrint" +msgstr "" + +#: C/gedit-printing-order.page:33(item/p) +msgid "" +"In the General tab of the Print window under Copies, " +"check Reverse. The last page will be printed first, and so on." +msgstr "" + +#: C/gedit-printing-order.page:38(section/title) +msgid "Collate" +msgstr "" + +#: C/gedit-printing-order.page:41(section/p) +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" + +#: C/gedit-printing-order.page:46(section/p) +msgid "To Collate:" +msgstr "" + +#: C/gedit-printing-order.page:50(item/p) +msgid "Click FilePrint" +msgstr "" + +#: C/gedit-printing-order.page:51(item/p) +msgid "" +"In the General tab of the Print window under Copies " +"check Collate." +msgstr "" + +#: C/gedit-printing.page:19(note/p) +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the " +"printing help documentation for your desktop environment." +msgstr "" + +#: C/gedit-printing.page:22(page/p) +msgid "" +"gedit allows you to both print output to a file, as well as " +"printing output to paper. Prior to printing your document, you can also " +"preview how the printed document will look by using the Print Preview feature." +msgstr "" + +#: C/gedit-printing.page:25(section/title) +msgid "Printing to paper" +msgstr "" + +#: C/gedit-printing.page:29(section/title) +msgid "Printing output to a file" +msgstr "" + +#: C/gedit-printing.page:31(section/p) +msgid "" +"You can also use gedit to print to a file. To do so, select " +"FilePrintPrint to File." +msgstr "" + +#: C/gedit-printing.page:32(section/p) +msgid "Printing is enabled for the following file formats:" +msgstr "" + +#: C/gedit-printing.page:34(item/p) +msgid "Portable Document Format (.pdf)" +msgstr "" + +#: C/gedit-printing.page:35(item/p) +msgid "PostScript (.ps)" +msgstr "" + +#: C/gedit-printing.page:36(item/p) +msgid "Scalable Vector Graphic (.svg)" +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-printing-select.page:34(media) +msgctxt "_" +msgid "external ref='print-select.png' md5='__failed__'" +msgstr "" + +#: C/gedit-printing-select.page:18(page/title) +msgid "Only Printing Certain Pages" +msgstr "" + +#: C/gedit-printing-select.page:20(page/p) +msgid "To only print certain pages from the document:" +msgstr "" + +#: C/gedit-printing-select.page:24(item/p) +msgid "Click File Print..." +msgstr "" + +#: C/gedit-printing-select.page:25(item/p) +msgid "" +"In the General tab in the Print window choose Pages " +"from the Range section." +msgstr "" + +#: C/gedit-printing-select.page:26(item/p) +msgid "" +"Type the numbers of the pages you want to print in the textbox, separated by " +"commas. Use a dash to denote a range of pages." +msgstr "" + +#: C/gedit-printing-select.page:31(note/p) +msgid "" +"For example, if you enter \"1,3,5-7,9\" in the Pages textbox, " +"pages 1,3,5,6,7 and 9 will be printed." +msgstr "" + +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:19(media) +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='3f101415d3b97ca8b0e81dc3cc1a6bd7'" +msgstr "" + +#: C/gedit-quickstart.page:16(page/title) +msgid "Get started with gedit" +msgstr "" + +#: C/gedit-quickstart.page:17(page/p) +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" + +#: C/gedit-quickstart.page:21(page/p) +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click Save." +msgstr "" + +#: C/gedit-quickstart.page:23(page/p) +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" + +#: C/gedit-replace.page:20(page/title) +msgid "Replace text" +msgstr "" + +#: C/gedit-replace.page:22(page/p) +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" + +#: C/gedit-replace.page:25(steps/title) +msgid "Replace text in gedit" +msgstr "" + +#: C/gedit-replace.page:26(item/p) +msgid "" +"Open the Replace tool by clicking SearchReplace or press CtrlH." +msgstr "" + +#: C/gedit-replace.page:27(item/p) +msgid "Enter the text that you wish to replace into the 'Search for:' field." +msgstr "" + +#: C/gedit-replace.page:28(item/p) +msgid "Enter the new, replacement text into the 'Replace with:' field." +msgstr "" + +#: C/gedit-replace.page:30(item/p) +msgid "" +"Once you have entered the original and replacement text, select your desired " +"replacement options:" +msgstr "" + +#: C/gedit-replace.page:32(item/p) +msgid "" +"To replace only the next matching portion of text, click " +"Replace." +msgstr "" + +#: C/gedit-replace.page:33(item/p) +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" + +#: C/gedit-replace.page:39(note/p) +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" + +#: C/gedit-replace.page:43(section/title) +msgid "More options" +msgstr "" + +#: C/gedit-replace.page:46(item/title) +msgid "Match case" +msgstr "" + +#: C/gedit-replace.page:47(item/p) +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" + +#: C/gedit-replace.page:50(item/title) +msgid "Match entire word only" +msgstr "" + +#: C/gedit-replace.page:51(item/p) +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" + +#: C/gedit-replace.page:54(item/title) +msgid "Search backwards" +msgstr "" + +#: C/gedit-replace.page:55(item/p) +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" + +#: C/gedit-replace.page:58(item/title) +msgid "Wrap around" +msgstr "" + +#: C/gedit-replace.page:59(item/p) +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" + +#: C/gedit-save-file.page:14(page/title) +msgid "Save a file" +msgstr "" + +#: C/gedit-save-file.page:16(page/p) +msgid "" +"To save a file in gedit, click on the disk-drive icon with the " +"word Save next to it. You may also select FileSave, or just press CtrlS." +msgstr "" + +#: C/gedit-save-file.page:17(page/p) +msgid "" +"If you are saving a new file, the Save File dialog will appear, " +"and you can select a name for the file, as well as the directory where you " +"would like the file to be saved." +msgstr "" + +#: C/gedit-search.page:20(page/title) +msgid "Search for text" +msgstr "" + +#: C/gedit-search.page:22(page/p) +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" + +#: C/gedit-search.page:26(steps/title) +msgid "Finding text" +msgstr "" + +#: C/gedit-search.page:27(item/p) +msgid "" +"Open the search window by clicking " +"SearchFind or pressing " +"CtrlF. This will move your cursor to " +"the start of the search window." +msgstr "" + +#: C/gedit-search.page:32(item/p) +msgid "Type the text you wish to search for in the search window." +msgstr "" + +#: C/gedit-search.page:34(item/p) +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" + +#: C/gedit-search.page:39(page/p) +msgid "To scroll through the search results, do any of the following:" +msgstr "" + +#: C/gedit-search.page:41(item/p) +msgid "" +"Click on the up or down facing arrows next to the " +"search window" +msgstr "" + +#: C/gedit-search.page:43(item/p) +msgid "" +"Press the up arrow or down arrow keys on your keyboard" +msgstr "" + +#: C/gedit-search.page:45(item/p) +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" + +#: C/gedit-search.page:47(item/p) +msgid "" +"Press the Ctrl and use your mouse or touchpad's scroll " +"feature to move up or down through the text." +msgstr "" + +#: C/gedit-search.page:52(page/p) +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" + +#: C/gedit-search.page:58(list/title) +msgid "Search tips" +msgstr "" + +#: C/gedit-search.page:59(item/p) +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" + +#: C/gedit-search.page:62(item/p) +msgid "" +"For advanced search options, you can click on the Magnifying Glass icon in the search window, or you can right-click on any portion of the " +"search window." +msgstr "" + +#: C/gedit-search.page:65(item/p) +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click " +"SearchClear Highlight, or press " +"CtrlShiftK." +msgstr "" + +#: C/gedit-shortcut-keys.page:14(credit/name) +msgid "Paolo Borelli" +msgstr "" + +#: C/gedit-shortcut-keys.page:17(credit/name) +msgid "Jesse van den Kieboom" +msgstr "" + +#: C/gedit-shortcut-keys.page:20(credit/name) +msgid "Steve Frécinaux" +msgstr "" + +#: C/gedit-shortcut-keys.page:23(credit/name) +msgid "Ignacio Casal Quinteiro" +msgstr "" + +#: C/gedit-shortcut-keys.page:27(page/title) +msgid "Shortcut keys" +msgstr "" + +#: C/gedit-shortcut-keys.page:29(page/p) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with " +"the mouse and menus. The following tables list all of gedit's " +"shortcut keys." +msgstr "" + +#: C/gedit-shortcut-keys.page:53(table/title) +msgid "Tab-related Shortcut keys" +msgstr "" + +#: C/gedit-shortcut-keys.page:61(td/p) +msgid "Switch to the next tab to the left" +msgstr "" + +#: C/gedit-shortcut-keys.page:61(td/p) +msgid "Ctrl + Alt + PageUp" +msgstr "" + +#: C/gedit-shortcut-keys.page:65(td/p) +msgid "Switch to the next tab to the right" +msgstr "" + +#: C/gedit-shortcut-keys.page:65(td/p) +msgid "Ctrl + Alt + PageDown" +msgstr "" + +#: C/gedit-shortcut-keys.page:69(td/p) +msgid "Close tab" +msgstr "" + +#: C/gedit-shortcut-keys.page:69(td/p) C/gedit-shortcut-keys.page:112(td/p) +msgid "Ctrl + W" +msgstr "" + +#: C/gedit-shortcut-keys.page:72(td/p) +msgid "Save all tabs" +msgstr "" + +#: C/gedit-shortcut-keys.page:72(td/p) +msgid "Ctrl + Shift + L" +msgstr "" + +#: C/gedit-shortcut-keys.page:75(td/p) +msgid "Close all tabs" +msgstr "" + +#: C/gedit-shortcut-keys.page:75(td/p) +msgid "Ctrl + Shift + W" +msgstr "" + +#: C/gedit-shortcut-keys.page:78(td/p) +msgid "Jump to nth tab" +msgstr "" + +#: C/gedit-shortcut-keys.page:78(td/p) +msgid "Alt + n" +msgstr "" + +#: C/gedit-shortcut-keys.page:85(table/title) +msgid "Shortcut keys for working with files" +msgstr "" + +#: C/gedit-shortcut-keys.page:93(td/p) +msgid "Create a new document" +msgstr "" + +#: C/gedit-shortcut-keys.page:93(td/p) +msgid "Ctrl + N" +msgstr "" + +#: C/gedit-shortcut-keys.page:96(td/p) +msgid "Open a document" +msgstr "" + +#: C/gedit-shortcut-keys.page:96(td/p) +msgid "Ctrl + O" +msgstr "" + +#: C/gedit-shortcut-keys.page:99(td/p) +msgid "Save the current document" +msgstr "" + +#: C/gedit-shortcut-keys.page:99(td/p) +msgid "Ctrl + S" +msgstr "" + +#: C/gedit-shortcut-keys.page:102(td/p) +msgid "Save the current document with a new filename" +msgstr "" + +#: C/gedit-shortcut-keys.page:102(td/p) +msgid "Ctrl + Shift + S" +msgstr "" + +#: C/gedit-shortcut-keys.page:106(td/p) +msgid "Print the current document" +msgstr "" + +#: C/gedit-shortcut-keys.page:106(td/p) +msgid "Ctrl + P" +msgstr "" + +#: C/gedit-shortcut-keys.page:109(td/p) +msgid "Print preview" +msgstr "" + +#: C/gedit-shortcut-keys.page:109(td/p) +msgid "Ctrl + Shift + P" +msgstr "" + +#: C/gedit-shortcut-keys.page:112(td/p) +msgid "Close the current document" +msgstr "" + +#: C/gedit-shortcut-keys.page:115(td/p) +msgid "Quit gedit" +msgstr "" + +#: C/gedit-shortcut-keys.page:115(td/p) +msgid "Ctrl + Q" +msgstr "" + +#: C/gedit-shortcut-keys.page:121(table/title) +msgid "Shortcut keys for editing files" +msgstr "" + +#: C/gedit-shortcut-keys.page:129(td/p) +msgid "Undo the last action" +msgstr "" + +#: C/gedit-shortcut-keys.page:129(td/p) +msgid "Ctrl + Z" +msgstr "" + +#: C/gedit-shortcut-keys.page:132(td/p) +msgid "Redo the last undone action" +msgstr "" + +#: C/gedit-shortcut-keys.page:132(td/p) +msgid "Ctrl + Shift + Z" +msgstr "" + +#: C/gedit-shortcut-keys.page:136(td/p) +msgid "Cut the selected text or region and place it on the clipboard" +msgstr "" + +#: C/gedit-shortcut-keys.page:137(td/p) +msgid "Ctrl + X" +msgstr "" + +#: C/gedit-shortcut-keys.page:140(td/p) +msgid "Copy the selected text or region onto the clipboard" +msgstr "" + +#: C/gedit-shortcut-keys.page:141(td/p) +msgid "Ctrl + C" +msgstr "" + +#: C/gedit-shortcut-keys.page:144(td/p) +msgid "Paste the contents of the clipboard" +msgstr "" + +#: C/gedit-shortcut-keys.page:144(td/p) +msgid "Ctrl + V" +msgstr "" + +#: C/gedit-shortcut-keys.page:148(td/p) +msgid "Select all text in the file" +msgstr "" + +#: C/gedit-shortcut-keys.page:148(td/p) +msgid "Ctrl + A" +msgstr "" + +#: C/gedit-shortcut-keys.page:151(td/p) +msgid "Delete the current line" +msgstr "" + +#: C/gedit-shortcut-keys.page:151(td/p) +msgid "Ctrl + D" +msgstr "" + +#: C/gedit-shortcut-keys.page:154(td/p) +msgid "Move the selected line up one line" +msgstr "" + +#: C/gedit-shortcut-keys.page:154(td/p) +msgid "Alt + Up Arrow" +msgstr "" + +#: C/gedit-shortcut-keys.page:158(td/p) +msgid "Move the selected line down one line" +msgstr "" + +#: C/gedit-shortcut-keys.page:158(td/p) +msgid "Alt + Down Arrow" +msgstr "" + +#: C/gedit-shortcut-keys.page:165(table/title) +msgid "Shortcut keys for showing and hiding panes" +msgstr "" + +#: C/gedit-shortcut-keys.page:173(td/p) +msgid "Show / hide the side pane" +msgstr "" + +#: C/gedit-shortcut-keys.page:173(td/p) +msgid "F9" +msgstr "" + +#: C/gedit-shortcut-keys.page:176(td/p) +msgid "Show / hide the bottom pane." +msgstr "" + +#: C/gedit-shortcut-keys.page:176(td/p) +msgid "Ctrl + F9" +msgstr "" + +#: C/gedit-shortcut-keys.page:183(table/title) +msgid "Shortcut keys for searching" +msgstr "" + +#: C/gedit-shortcut-keys.page:191(td/p) +msgid "Find a string" +msgstr "" + +#: C/gedit-shortcut-keys.page:191(td/p) +msgid "Ctrl + F" +msgstr "" + +#: C/gedit-shortcut-keys.page:194(td/p) +msgid "Find the next instance of the string" +msgstr "" + +#: C/gedit-shortcut-keys.page:194(td/p) +msgid "Ctrl + G" +msgstr "" + +#: C/gedit-shortcut-keys.page:198(td/p) +msgid "Find the previous instance of the string" +msgstr "" + +#: C/gedit-shortcut-keys.page:198(td/p) +msgid "Ctrl + Shift + G" +msgstr "" + +#: C/gedit-shortcut-keys.page:202(td/p) +msgid "Search and Replace" +msgstr "" + +#: C/gedit-shortcut-keys.page:202(td/p) +msgid "Ctrl + H" +msgstr "" + +#: C/gedit-shortcut-keys.page:205(td/p) +msgid "Clear highlight" +msgstr "" + +#: C/gedit-shortcut-keys.page:205(td/p) +msgid "Ctrl + Shift + K" +msgstr "" + +#: C/gedit-shortcut-keys.page:208(td/p) +msgid "Goto line" +msgstr "" + +#: C/gedit-shortcut-keys.page:208(td/p) +msgid "Ctrl + I" +msgstr "" + +#: C/gedit-shortcut-keys.page:214(table/title) +msgid "Shortcut keys for tools" +msgstr "" + +#: C/gedit-shortcut-keys.page:222(td/p) +msgid "Check spelling" +msgstr "" + +#: C/gedit-shortcut-keys.page:222(td/p) +msgid "Shift + F7" +msgstr "" + +#: C/gedit-shortcut-keys.page:225(td/p) +msgid "Remove trailing spaces (with plugin)" +msgstr "" + +#: C/gedit-shortcut-keys.page:225(td/p) +msgid "Alt + F12" +msgstr "" + +#: C/gedit-shortcut-keys.page:229(td/p) +msgid "Run \"make\" in the current directory (with plugin)" +msgstr "" + +#: C/gedit-shortcut-keys.page:230(td/p) +msgid "F8" +msgstr "" + +#: C/gedit-shortcut-keys.page:233(td/p) +msgid "Directory listing (with plugin)" +msgstr "" + +#: C/gedit-shortcut-keys.page:233(td/p) +msgid "Ctrl + Shift + D" +msgstr "" + +#: C/gedit-shortcut-keys.page:240(table/title) +msgid "Shortcut keys for user help" +msgstr "" + +#: C/gedit-shortcut-keys.page:248(td/p) +msgid "Open the gedit user guide" +msgstr "" + +#: C/gedit-shortcut-keys.page:248(td/p) +msgid "F1" +msgstr "" + +#: C/gedit-spellcheck.page:15(page/title) +msgid "Spell-check your document" +msgstr "" + +#: C/gedit-spellcheck.page:16(page/p) +msgid "" +"Using the spell-check feature in gedit requires that you first " +"enable the spell-check plugin. To enable the plugin, select " +"Edit PreferencesPluginsSpell " +"Checker ." +msgstr "" + +#: C/gedit-spellcheck.page:22(note/p) +msgid "" +"Select ToolsAutocheck Spelling to " +"make gedit highlight spelling errors while you type." +msgstr "" + +#: C/gedit-syntax-highlighting.page:14(page/title) +msgid "Turn on syntax highlighting" +msgstr "" + +#: C/gedit-syntax-highlighting.page:17(section/title) +msgid "Syntax Highlighting" +msgstr "" + +#: C/gedit-syntax-highlighting.page:18(section/p) +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" + +#: C/gedit-syntax-highlighting.page:20(section/p) +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking ViewHighlight Mode, and then choosing the desired " +"syntax. Alternately, you can select the syntax name from a list at the " +"bottom of the gedit window." +msgstr "" + +#: C/gedit-tabs-moving.page:19(page/title) +msgid "Move and re-order tabs" +msgstr "" + +#: C/gedit-tabs-moving.page:20(page/p) +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" + +#: C/gedit-tabs-moving.page:26(section/title) +msgid "Change the order of tabs in the gedit window" +msgstr "" + +#: C/gedit-tabs-moving.page:28(section/p) +msgid "To change the ordering of tabs in a window:" +msgstr "" + +#: C/gedit-tabs-moving.page:31(item/p) C/gedit-tabs-moving.page:67(item/p) +msgid "Click and hold the mouse button on the tab" +msgstr "" + +#: C/gedit-tabs-moving.page:32(item/p) +msgid "Move the tab to the desired position among the other tabs" +msgstr "" + +#: C/gedit-tabs-moving.page:34(item/p) C/gedit-tabs-moving.page:70(item/p) +msgid "Release the mouse button" +msgstr "" + +#: C/gedit-tabs-moving.page:37(section/p) +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" + +#: C/gedit-tabs-moving.page:43(section/title) +msgid "Move a tab, creating a new gedit window" +msgstr "" + +#: C/gedit-tabs-moving.page:44(section/p) +msgid "To drag a tab into a new window:" +msgstr "" + +#: C/gedit-tabs-moving.page:47(item/p) +msgid "Click and hold the mouse button on the tab." +msgstr "" + +#: C/gedit-tabs-moving.page:48(item/p) +msgid "Drag the tab out of the gedit window." +msgstr "" + +#: C/gedit-tabs-moving.page:49(item/p) +msgid "Release the mouse button." +msgstr "" + +#: C/gedit-tabs-moving.page:52(section/p) +msgid "" +"or, while the tab to be moved is open, choose Documents Move to New Window" +msgstr "" + +#: C/gedit-tabs-moving.page:56(note/p) +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" + +#: C/gedit-tabs-moving.page:62(section/title) +msgid "Move a tab to another gedit window" +msgstr "" + +#: C/gedit-tabs-moving.page:64(section/p) +msgid "If you want to move a tab from one window to another:" +msgstr "" + +#: C/gedit-tabs-moving.page:68(item/p) +msgid "Drag the tab to the new window" +msgstr "" + +#: C/gedit-tabs-moving.page:69(item/p) +msgid "Place it beside other tabs in the new window" +msgstr "" + +#: C/gedit-tabs-moving.page:73(section/p) +msgid "" +"See for shortcuts " +"to make it easier to manage your tabs." +msgstr "" + +#: C/gedit-tabs.page:20(page/title) +msgid "Add and remove tabs" +msgstr "" + +#: C/gedit-tabs.page:21(page/p) +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window. The tab that is larger than the other tabs " +"indicates the file that is currently open. The smaller tabs indicate other " +"files that are available to work on." +msgstr "" + +#: C/gedit-tabs.page:25(section/title) +msgid "Adding tabs" +msgstr "" + +#: C/gedit-tabs.page:26(section/p) +msgid "" +"To add a new tab, create a new file with CtrlN. The tab will be added to the right side of any other tabs." +msgstr "" + +#: C/gedit-tabs.page:30(section/title) +msgid "Removing tabs" +msgstr "" + +#: C/gedit-tabs.page:31(section/p) +msgid "" +"To remove a tab, click the X on the tab's right " +"side. To remove all open tabs, press CtrlShiftW" +msgstr "" + +#: C/gedit-undo-recent-action.page:23(page/title) +msgid "Undo a recent action" +msgstr "" + +#: C/gedit-undo-recent-action.page:28(page/p) +msgid "" +"We all make mistakes. Even gedit users make mistakes. " +"Fortunately, gedit can help you recover from mistakes. To undo an " +"action in gedit, press CtrlZ, or click EditUndo." +msgstr "" + +#: C/gedit-undo-recent-action.page:30(page/p) +msgid "" +"gedit will undo one action every time you press " +"CtrlZ or select EditUndo." +msgstr "" + +#: C/gedit-view-open-files-in-sidepane.page:19(page/title) +msgid "View a list of files in the side pane" +msgstr "" + +#: C/gedit-view-open-files-in-sidepane.page:21(page/p) +msgid "" +"Keeping track of a large number of files using tabs can be difficult. One " +"way of managing large numbers of files is viewing them in a side pane. Side " +"panes allow you to view more files at a time than is possible using tabs " +"alone." +msgstr "" + +#: C/gedit-view-open-files-in-sidepane.page:23(page/p) +msgid "" +"To view a list of open files in a side pane, click ViewSide Pane. A pane will appear to the left of the " +"workspace with a listing of all currently open files. Clicking a file in the " +"side pane will display that file in the workspace." +msgstr "" + +#: C/gedit-view-open-files-in-sidepane.page:25(page/p) +msgid "" +"The side pane also contains a File Browser view. If the pane " +"displays a file directory instead of currently open files, click documents " +"icon at the bottom of the pane to switch to the Documents " +"view." +msgstr "" + +#: C/gedit-view-open-files-in-sidepane.page:28(note/p) +msgid "" +"The side pane only displays files that are open in the current window. When " +"multiple windows are open, only the files in the current window will be " +"displayed in the side pane." +msgstr "" diff --git a/help/th/th.po b/help/th/th.po new file mode 100644 index 0000000..4ad2e1d --- /dev/null +++ b/help/th/th.po @@ -0,0 +1,3832 @@ +# Thai translation of gedit help. +# Copyright (C) 2008-2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gedit package. +# +# Tosaporn Kijosoth , 2008. +# Kittiphong Meesawat , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: gedit\n" +"POT-Creation-Date: 2010-12-08 14:31+0000\n" +"PO-Revision-Date: 2010-12-09 13:33+0700\n" +"Last-Translator: Kittiphong Meesawat \n" +"Language-Team: Thai \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Thai\n" +"X-Poedit-Country: THAILAND\n" +"X-Poedit-SourceCharset: utf-8\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: C/legal.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or " +"in the file COPYING-DOCS distributed with this manual." +msgstr "" +"อนุญาตให้ทำซ้ำ เผยแพร่ และ/หรือ ดัดแปลงเอกสารนี้ได้ ภายใต้เงื่อนไขของ GNU Free " +"Documentation License (GFDL) รุ่น 1.1 หรือรุ่นถัดมารุ่นใดๆ ที่เผยแพร่โดยมูลนิธิซอฟต์แวร์เสรี " +"(Free Software Foundation) โดยไม่มี \"หัวข้อห้ามเปลี่ยน\" (Invariant Sections), ไม่มี " +"\"ข้อความปกหน้า\" (Front-Cover Texts) และไม่มี \"ข้อความปกหลัง\" (Back-Cover " +"Texts) คุณสามารถอ่านสำเนาของ GFDL ได้จาก ลิงก์นี้ หรือในแฟ้ม COPYING-DOCS ที่เผยแพร่มาพร้อมกับคู่มือนี้" + +#: C/legal.xml:12(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" +"คู่มือนี้ เป็นส่วนหนึ่งของชุดคู่มือ GNOME ที่เผยแพร่ภายใต้ GFDL " +"ถ้าคุณต้องการเผยแพร่คู่มือนี้แยกต่างหากจากชุด " +"คุณสามารถทำได้โดยเพิ่มสำเนาของสัญญาอนุญาตไปกับคู่มือ ตามที่อธิบายในข้อ 6 ของสัญญาอนุญาต" + +#: C/legal.xml:19(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" +"มีชื่อหลายชื่อที่บริษัทต่างๆ ใช้แยกความแตกต่างของผลิตภัณฑ์และบริการของตนจากบริษัทอื่น " +"และอ้างเป็นเครื่องหมายการค้า ที่ใดก็ตามที่ชื่อเหล่านั้นปรากฏในเอกสารของ GNOME " +"และสมาชิกโครงการเอกสาร GNOME ได้รับทราบเกี่ยวกับเครื่องหมายการค้าเหล่านั้น " +"ชื่อเหล่านั้นจะเขียนด้วยตัวพิมพ์ใหญ่ หรือขึ้นต้นด้วยตัวพิมพ์ใหญ่" + +#: C/legal.xml:35(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" +"เอกสารนี้ เผยแพร่ตามสภาพที่เป็น โดยไม่มีการรับประกันใดๆ ทั้งสิ้น ไม่ว่าจะโดยชัดแจ้งหรือโดยนัย " +"ซึ่งรวมถึงโดยไม่ได้จำกัดเพียงการรับประกันว่าเอกสารนี้หรือฉบับดัดแปลงของเอกสารนี้จะปลอดจากข้อผิดพลาดที่อาจเรียกร้องความเสียหายได้ " +"หรือเหมาะกับวัตถุประสงค์เฉพาะใดๆ หรือไม่มีการละเมิดสิทธิ์ ความเสี่ยงทั้งหมดเกี่ยวกับคุณภาพ " +"ความถูกต้อง และประสิทธิภาพของเอกสารนี้หรือฉบับดัดแปลงของเอกสารนี้ อยู่ที่ตัวคุณ " +"หากมีการพิสูจน์พบว่าเอกสารนี้หรือฉบับดัดแปลงมีข้อบกพร่องในแง่ใดๆ ก็ตาม คุณ (ไม่ใช่ผู้เขียนเริ่มแรก " +"หรือผู้ร่วมสมทบใดๆ) จะรับภาระค่าใช้จ่ายของการให้บริการ การซ่อมแซมหรือแก้ไขที่จำเป็น " +"คำปฏิเสธความรับผิดชอบเกี่ยวกับการรับประกันนี้ เป็นส่วนสำคัญของสัญญาอนุญาตนี้ " +"ไม่อนุญาตให้ใช้เอกสารนี้หรือฉบับดัดแปลงของเอกสารนี้ นอกจากจะอยู่ภายใต้คำปฏิเสธความรับผิดชอบนี้ " +"และไม่มีสภาวะใดและทฤษฎีทางกฎหมายใด ไม่ว่าจะในการล่วงละเมิด (รวมถึงการละเลย), ในสัญญา " +"หรืออื่นๆ ที่ผู้เขียน ผู้เขียนเริ่มแรก ผู้ร่วมสมทบใดๆ หรือผู้เผยแพร่เอกสารนี้หรือฉบับดัดแปลง " +"หรือผู้สนับสนุนแก่กลุ่มคนดังกล่าว จะมีภาระผูกพันต่อบุคคลใดในความเสียหายโดยตรง โดยอ้อม โดยพิเศษ " +"โดยบังเอิญ หรือโดยผลพวง ของสิ่งใด " +"รวมถึงโดยไม่จำกัดเพียงความเสียหายในเรื่องความสูญเสียเจตนาดี การสะดุดของงาน " +"ความล้มเหลวหรือการทำงานผิดพลาดของคอมพิวเตอร์ หรือความเสียหายหรือความสูญเสียอื่นใดทั้งหมด " +"ที่เกิดขึ้นจาก หรือเกี่ยวข้องกับการใช้เอกสารนี้หรือฉบับดัดแปลง " +"แม้กลุ่มบุคคลเหล่านั้นจะได้รับทราบความเป็นไปได้ของความเสียหายดังกล่าวก็ตาม" + +#: C/legal.xml:28(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" +"เอกสารนี้และฉบับดัดแปลงของเอกสารนี้ เผยแพร่ภายใต้เงื่อนไขของ GNU FREE DOCUMENTATION " +"LICENSE พร้อมด้วยความเข้าใจในสิ่งต่อไปนี้: " + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:268(None) +msgid "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" +msgstr "" +"@@image: 'figures/gedit_window.png'; md5=a1daf2ed54a551bb590a172bc730594c" + +#. When image changes, this message will be marked fuzzy or untranslated for you. +#. It doesn't matter what you translate it to: it's not used at all. +#: C/gedit.xml:349(None) +msgid "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" +msgstr "" +"@@image: 'figures/gedit_recent_files_menu_icon.png'; " +"md5=62b4bede31db64226f7e7f9b18f5eb74" + +#: C/gedit.xml:23(title) +msgid "Gedit Manual" +msgstr "คู่มือ Gedit" + +#: C/gedit.xml:25(year) +msgid "2007" +msgstr "2550" + +#: C/gedit.xml:26(holder) C/gedit.xml:45(publishername) +#: C/gedit.xml:56(firstname) C/gedit.xml:79(orgname) C/gedit.xml:120(para) +#: C/gedit.xml:128(para) C/gedit.xml:136(para) C/gedit.xml:144(para) +#: C/gedit.xml:152(para) C/gedit.xml:160(para) C/gedit.xml:168(para) +#: C/gedit.xml:176(para) C/gedit.xml:184(para) C/gedit.xml:192(para) +#: C/gedit.xml:200(para) +msgid "GNOME Documentation Project" +msgstr "โครงการเอกสาร GNOME" + +#: C/gedit.xml:28(year) +msgid "2002" +msgstr "2545" + +#: C/gedit.xml:29(year) +msgid "2003" +msgstr "2546" + +#: C/gedit.xml:30(year) +msgid "2004" +msgstr "2547" + +#: C/gedit.xml:31(holder) C/gedit.xml:71(orgname) +msgid "Sun Microsystems" +msgstr "ซัน ไมโครซิสเท็มส์" + +#: C/gedit.xml:33(year) C/gedit.xml:116(date) +msgid "2000" +msgstr "2543" + +#: C/gedit.xml:34(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: C/gedit.xml:52(firstname) +msgid "Joachim" +msgstr "Joachim" + +#: C/gedit.xml:53(surname) +msgid "Noreiko" +msgstr "Noreiko" + +#: C/gedit.xml:59(orgname) +msgid "GNOME" +msgstr "GNOME" + +#: C/gedit.xml:63(firstname) +msgid "Hal" +msgstr "Hal" + +#: C/gedit.xml:64(surname) +msgid "Canary" +msgstr "Canary" + +#: C/gedit.xml:65(contrib) +msgid "Added the Shortcut Keys Table" +msgstr "เพิ่มตารางปุ่มลัด" + +#: C/gedit.xml:68(firstname) C/gedit.xml:191(para) +msgid "Sun Java Desktop System Documentation Team" +msgstr "ทีมเอกสารระบบเดสก์ท็อปจาวาของซัน" + +#: C/gedit.xml:72(email) +msgid "gdocteam@sun.com" +msgstr "gdocteam@sun.com" + +#: C/gedit.xml:76(firstname) +msgid "Eric" +msgstr "Eric" + +#: C/gedit.xml:77(surname) +msgid "Baudais" +msgstr "Baudais" + +#: C/gedit.xml:80(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: C/gedit.xml:84(firstname) +msgid "Baris" +msgstr "Baris" + +#: C/gedit.xml:85(surname) +msgid "" +"Cicek provided information from earlier revisions of the gedit application." +msgstr "Cicek ให้ข้อมูลเกี่ยวกับโปรแกรม gedit รุ่นก่อนหน้า" + +#: C/gedit.xml:86(contrib) C/gedit.xml:91(contrib) +msgid "Acknowledgements" +msgstr "กิติกรรมประกาศ" + +#: C/gedit.xml:89(firstname) +msgid "Ajit" +msgstr "Ajit" + +#: C/gedit.xml:90(surname) +msgid "George provided information about plugins." +msgstr "George ให้ข้อมูลเกี่ยวกับปลั๊กอินต่าง ๆ" + +#: C/gedit.xml:115(revnumber) +msgid "gedit V1.0" +msgstr "gedit รุ่น 1.0" + +#: C/gedit.xml:118(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu" + +#: C/gedit.xml:124(revnumber) +msgid "gedit Manual V2.0" +msgstr "คู่มือ gedit รุ่น 2.0" + +#: C/gedit.xml:125(date) +msgid "March 2002" +msgstr "มีนาคม 2545" + +#: C/gedit.xml:127(para) C/gedit.xml:135(para) C/gedit.xml:143(para) +#: C/gedit.xml:151(para) C/gedit.xml:159(para) C/gedit.xml:167(para) +#: C/gedit.xml:175(para) C/gedit.xml:183(para) +msgid "Sun GNOME Documentation Team" +msgstr "ทีมเอกสาร GNOME ของซัน" + +#: C/gedit.xml:132(revnumber) +msgid "gedit Manual V2.1" +msgstr "คู่มือ gedit รุ่น 2.1" + +#: C/gedit.xml:133(date) +msgid "June 2002" +msgstr "มิถุนายน 2545" + +#: C/gedit.xml:140(revnumber) +msgid "gedit Manual V2.2" +msgstr "คู่มือ gedit รุ่น 2.2" + +#: C/gedit.xml:141(date) +msgid "August 2002" +msgstr "สิงหาคม 2545" + +#: C/gedit.xml:148(revnumber) +msgid "gedit Manual V2.3" +msgstr "คู่มือ gedit รุ่น 2.3" + +#: C/gedit.xml:149(date) +msgid "September 2002" +msgstr "ตุลาคม 2545" + +#: C/gedit.xml:156(revnumber) +msgid "gedit Manual V2.4" +msgstr "คู่มือ gedit รุ่น 2.4" + +#: C/gedit.xml:157(date) +msgid "January 2003" +msgstr "มกราคม 2546" + +#: C/gedit.xml:164(revnumber) +msgid "gedit Manual V2.5" +msgstr "คู่มือ gedit รุ่น 2.5" + +#: C/gedit.xml:165(date) +msgid "March 2003" +msgstr "มีนาคม 2546" + +#: C/gedit.xml:172(revnumber) +msgid "gedit Manual V2.6" +msgstr "คู่มือ gedit รุ่น 2.6" + +#: C/gedit.xml:173(date) +msgid "September 2003" +msgstr "กันยายน 2546" + +#: C/gedit.xml:180(revnumber) +msgid "gedit Manual V2.7" +msgstr "คู่มือ gedit รุ่น 2.7" + +#: C/gedit.xml:181(date) +msgid "March 2004" +msgstr "มีนาคม 2547" + +#: C/gedit.xml:188(revnumber) +msgid "gedit Manual V2.8" +msgstr "คู่มือ gedit รุ่น 2.8" + +#: C/gedit.xml:189(date) C/gedit.xml:197(date) +msgid "July 2006" +msgstr "มิถุนายน 2549" + +#: C/gedit.xml:196(revnumber) +msgid "gedit Manual V2.9" +msgstr "คู่มือ gedit รุ่น 2.9" + +#: C/gedit.xml:199(para) +msgid "GNOME Documentation Team" +msgstr "ทีมเอกสาร GNOME" + +#: C/gedit.xml:204(releaseinfo) +msgid "This manual describes version 2.16 of gedit." +msgstr "คู่มือนี้อธิบาย gedit รุ่น 2.16" + +#: C/gedit.xml:207(title) +msgid "Feedback" +msgstr "ข้อเสนอแนะ" + +#: C/gedit.xml:208(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" +"หากพบปัญหาหรือมีข้อเสนอแนะสำหรับโปรแกรม gedit " +"หรือเกี่ยวกับคู่มือนี้ กรุณาแจ้งให้เราทราบ ตามขั้นตอนใน หน้าเสนอแนะ GNOME" + +#: C/gedit.xml:213(para) +msgid "" +"gedit is a text editor for the GNOME Desktop featuring basic yet robust " +"capabilities such as printing, spell checking, find and replace, and syntax " +"highlighting. More advanced features are available as plugins." +msgstr "" +"gedit เป็นเครื่องมือแก้ไขข้อความสำหรับเดสก์ท็อป GNOME โดยมาพร้อมกับความสามารถพื้น ๆ " +"แต่เปี่ยมประสิทธิภาพ เช่น การพิมพ์ การตรวจตัวสะกด การหาและแทนที่ และการเน้นไวยากรณ์ " +"และยังสามารถติดตั้งคุณสมบัติพิเศษเพิ่มเติมได้จากปลั๊กอินต่าง ๆ" + +#: C/gedit.xml:218(primary) +msgid "gedit" +msgstr "gedit" + +#: C/gedit.xml:219(primary) +msgid "text editor" +msgstr "เครื่องมือแก้ไขข้อความ" + +#: C/gedit.xml:224(title) +msgid "Introduction" +msgstr "เกริ่นนำ" + +#: C/gedit.xml:229(para) +msgid "" +"The gedit application enables you to create and " +"edit text files." +msgstr "โปรแกรม gedit ช่วยคุณสร้างและแก้ไขแฟ้มข้อความ" + +#: C/gedit.xml:231(para) +msgid "" +"The aim of gedit is to be a simple and easy to " +"use text editor. More powerful features can be enabled with different " +"plugins, allowing a variety of tasks related to text-" +"editing." +msgstr "" +"เป้าหมายของ gedit " +"คือการเป็นเครื่องมือแก้ไขข้อความที่เรียบง่ายและใช้ง่าย ผู้ใช้สามารถเพิ่มความสามารถพิเศษได้ด้วย " +"ปลั๊กอิน ต่าง ๆ " +"ซึ่งช่วยให้ดำเนินการเกี่ยวกับการแก้ไขข้อความได้หลายหลาย" + +#: C/gedit.xml:235(title) +msgid "Getting Started" +msgstr "เริ่มต้นใช้งาน" + +#: C/gedit.xml:239(title) +msgid "Starting gedit" +msgstr "การเรียกใช้ gedit" + +#: C/gedit.xml:240(para) +msgid "You can start gedit in the following ways:" +msgstr "" +"คุณสามารถเปิดใช้งาน gedit ได้ด้วยวิธีต่าง ๆ ดังต่อไปนี้:" + +#: C/gedit.xml:243(term) +msgid "Applications menu" +msgstr "เมนู โปรแกรม" + +#: C/gedit.xml:245(para) +msgid "" +"Choose AccessoriesText " +"Editor." +msgstr "" +"เลือก เครื่องใช้ไม้สอยเครื่องมือแก้ไขข้อความ" + +#: C/gedit.xml:249(term) +msgid "Command line" +msgstr "บรรทัดคำสั่ง" + +#: C/gedit.xml:251(para) +msgid "Execute the following command: gedit" +msgstr "เรียกคำสั่งต่อไปนี้: gedit" + +#: C/gedit.xml:255(para) +msgid "" +"By default, when you open a text document in the file manager, gedit will " +"start, and display the document." +msgstr "" +"โดยปกติแล้ว เมื่อคุณเปิดแฟ้มข้อความในโปรแกรมจัดการแฟ้ม gedit " +"ก็จะเริ่มทำงานและแสดงแฟ้มข้อความดังกล่าว" + +#: C/gedit.xml:260(title) +msgid "The gedit Window" +msgstr "หน้าต่าง gedit" + +#: C/gedit.xml:261(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "เมื่อคุณเปิด gedit จะปรากฏหน้าต่างต่อไปนี้:" + +#: C/gedit.xml:264(title) +msgid "gedit Window" +msgstr "หน้าต่าง gedit" + +#: C/gedit.xml:270(phrase) +msgid "Shows gedit main window." +msgstr "แสดงหน้าต่างหลักของ gedit" + +#: C/gedit.xml:276(para) +msgid "" +"The gedit window contains the following elements:" +msgstr "หน้าต่าง gedit มีองค์ประกอบดังต่อไปนี้:" + +#: C/gedit.xml:279(term) +msgid "Menubar" +msgstr "แถบเมนู" + +#: C/gedit.xml:281(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"เมนูในแถบเมนูบรรจุคำสั่งทั้งหมดที่จำเป็นสำหรับการทำงานกับแฟ้มต่าง ๆ ใน gedit" + +#: C/gedit.xml:284(term) +msgid "Toolbar" +msgstr "แถบเครื่องมือ" + +#: C/gedit.xml:286(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "แถบเครื่องมือบรรจุคำสั่งบางส่วนจากคำสั่งที่คุณสามารถเข้าถึงได้จากแถบเมนู" + +#: C/gedit.xml:289(term) +msgid "Display area" +msgstr "พื้นที่แสดงผล" + +#: C/gedit.xml:291(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "พื้นที่แสดงผลจะแสดงข้อความจากแฟ้มที่คุณกำลังแก้ไขอยู่" + +#: C/gedit.xml:294(term) +msgid "Statusbar" +msgstr "แถบสถานะ" + +#: C/gedit.xml:296(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items. The " +"statusbar also displays the following information:" +msgstr "" +"แถบสถานะแสดงข้อมูลเกี่ยวกับกิจกรรมที่ gedit กำลังทำอยู่ " +"และรายละเอียดเกี่ยวกับรายการเมนู นอกจากนี้แถบสถานะยังแสดงข้อมูลต่อไปนี้:" + +#: C/gedit.xml:299(para) +msgid "" +"Cursor position: the line number and column number where the cursor is " +"located." +msgstr "ตำแหน่งเคอร์เซอร์: เลขบรรทัดและคอลัมน์ที่เคอร์เซอร์วางอยู่" + +#: C/gedit.xml:302(para) +msgid "" +"Edit mode: If the editor is in insert mode, the statusbar contains the text " +"INS. If the editor is in overwrite mode, the statusbar " +"contains the text OVR. Press the Insert key to change edit mode." +msgstr "" +"โหมดแก้ไข: หากเครื่องมือแก้ไขข้อความอยู่ในโหมดแทรก แถบสถานะจะแสดงข้อความ " +"แทรก หากเครื่องมือแก้ไขอยู่ในโหมดเขียนทับ แถบสถานะจะแสดงข้อความ " +"ทับ โหมดของเครื่องมือแก้ไขเปลี่ยนแปลงได้โดยกดปุ่ม Insert" + +#: C/gedit.xml:307(term) +msgid "Side Pane" +msgstr "แถบข้าง" + +#: C/gedit.xml:309(para) +msgid "" +"The side pane displays a list of open documents, and other information " +"depending on which plugins are enabled." +msgstr "แถบด้านข้างแสดงรายชื่อเอกสารที่เปิดอยู่และข้อมูลอื่น ๆ ตามแต่ปลั๊กอินที่เปิดใช้งาน" + +#: C/gedit.xml:310(para) +msgid "" +"By default the side pane is not shown. To show it, choose " +"ViewSide Pane." +msgstr "" +"โดยปกติ แถบข้างจะไม่แสดง หากต้องการแสดง ให้เลือก มุมมองแถบข้าง" + +#: C/gedit.xml:313(term) +msgid "Bottom Pane" +msgstr "แถบด้านล่าง" + +#: C/gedit.xml:315(para) +msgid "" +"The bottom pane is used by programming tools such as the Python " +"Console plugin to display output." +msgstr "" +"แถบด้านล่างมีไว้สำหรับให้เครื่องมือเขียนโปรแกรม เช่น ปลั๊กอิน คอนโซลไพธอน ใช้แสดงผลลัพธ์" + +#: C/gedit.xml:316(para) +msgid "" +"By default the bottom pane is not shown. To show it, choose " +"ViewBottom Pane." +msgstr "" +"โดยปกติ แถบด้านล่างจะไม่แสดง หากต้องการแสดง ให้เลือก มุมมองแถบด้านล่าง" + +#: C/gedit.xml:320(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"เมื่อคุณคลิกขวาในหน้าต่าง gedit จะปรากฏเมนูผุดขึ้น " +"เมนูที่ผุดขึ้นนี้จะบรรจุคำสั่งเกี่ยวกับการแก้ไขข้อความที่ใช้บ่อย" + +#: C/gedit.xml:322(para) +msgid "" +"Like other GNOME applications, actions in gedit " +"can be performed in several ways: with the menu, with the toolbar, or with " +"shortcut keys. Shortcuts keys common to all applications are listed in the " +"User Guide." +msgstr "" +"เช่นเดียวกับโปรแกรมอื่น ๆ ของ GNOME การกระทำต่าง ๆ ใน gedit สามารถสั่งได้หลายทาง: ด้วยเมนู ด้วยแถบเครื่องมือ หรือด้วยปุ่มลัด " +"รายชื่อปุ่มลัดที่ใช้ร่วมกันในทุกโปรแกรมจะรวบรวมไว้ใน คู่มือผู้ใช้" + +#: C/gedit.xml:327(title) +msgid "Running gedit from a Command Line" +msgstr "การเรียก gedit จากบรรทัดคำสั่ง" + +#: C/gedit.xml:328(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" +"คุณสามารถเรียกใช้ gedit ได้จากบรรทัดคำสั่ง " +"โดยสามารถเปิดเพียงหนึ่งแฟ้มหรือจะเปิดหลายแฟ้มก็ได้ สำหรับการเปิดหลายแฟ้มจากบรรทัดคำสั่ง " +"ให้พิมพ์คำสั่งดังนี้แล้วกด Enter:" + +#: C/gedit.xml:329(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "file1.txt file2.txt file3.txt" + +#: C/gedit.xml:329(command) +msgid "gedit " +msgstr "gedit " + +#: C/gedit.xml:330(para) +msgid "Alternatively, you can specify a URI instead of a filename." +msgstr "อีกทางหนึ่ง คุณสามารถระบุ URI แทนชื่อแฟ้มก็ได้" + +#: C/gedit.xml:331(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see the unix manual page for gedit, gedit1." +msgstr "" +"ดูข้อมูลเพิ่มเติมเกี่ยวกับการเรียกใช้ gedit " +"จากบรรดทัดคำสั่งได้ที่หน้า manual ของยูนิกซ์สำหรับ gedit ที่ gedit1" + +#: C/gedit.xml:336(title) +msgid "Working with Files" +msgstr "การทำงานกับแฟ้ม" + +#: C/gedit.xml:340(title) +msgid "Creating a New Document" +msgstr "การสร้างเอกสารใหม่" + +#: C/gedit.xml:341(para) +msgid "" +"To create a new document, choose FileNew. The application " +"displays a new blank document in the gedit window." +msgstr "" +"การสร้างเอกสารใหม่ทำได้โดยเลือก แฟ้มใหม่ " +"โปรแกรมจะแสดงเอกสารเปล่าขึ้นมาใหม่หน้าต่าง gedit" + +#: C/gedit.xml:346(title) C/gedit.xml:1597(title) +msgid "Opening a File" +msgstr "การเปิดแฟ้ม" + +#: C/gedit.xml:347(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click Open. The file is displayed in the gedit " +"window." +msgstr "" +"การเปิดแฟ้ม ทำได้โดยเลือก แฟ้มเปิด เพื่อแสดงกล่องโต้ตอบ เปิดแฟ้ม จากนั้น " +"เลือกแฟ้มที่ต้องการเปิดแล้วคลิก เปิด เนื้อหาแฟ้มจะปรากฏในหน้าต่าง " +"gedit" + +#: C/gedit.xml:349(phrase) +msgid "Shows Recent Files menu icon." +msgstr "แสดงไอคอนของเมนูแฟ้มล่าสุด" + +#: C/gedit.xml:349(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the icon on the toolbar to display the list of recent files." +msgstr "" +"โปรแกรมจะเก็บบันทึกรายชื่อแฟ้ม 5 แฟ้มล่าสุดที่คุณเปิดแก้ และจะแสดงแฟ้มเหล่านี้ในเมนู " +"แฟ้ม นอกจากนี้คุณยังสามารถคลิกที่ไอคอน " +" บนแถบเครื่องมือเพื่อแสดงรายชื่อแฟ้มล่าสุดดังกล่าวได้ด้วย" + +#: C/gedit.xml:351(para) +msgid "" +"You can open multiple files in gedit. The " +"application adds a tab for each open file to the window. For more on this " +"see ." +msgstr "" +"ใน gedit คุณสามารถเปิดแฟ้มได้พร้อม ๆ กันหลายแฟ้ม " +"โปรแกรมจะเพิ่มแท็บสำหรับแต่ละแฟ้มลงในหน้าต่าง ดูรายละเอียดเพิ่มเติมได้ที่ " + +#: C/gedit.xml:357(title) +msgid "Saving a File" +msgstr "การบันทึกแฟ้ม" + +#: C/gedit.xml:358(para) +msgid "You can save files in the following ways:" +msgstr "คุณสามารถบันทึกแฟ้มได้ด้วยวิธีต่าง ๆ ดังนี้" + +#: C/gedit.xml:360(para) +msgid "" +"To save changes to an existing file, choose FileSave." +msgstr "" +"การบันทึกแฟ้มที่มีอยู่แล้ว ทำได้โดยเลือก แฟ้มบันทึก" + +#: C/gedit.xml:362(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save As " +"dialog, then click Save." +msgstr "" +"การบันทึกแฟ้มที่สร้างขึ้นใหม่หรือบันทึกแฟ้มที่มีอยู่เดิมในชื่อใหม่ ทำได้โดยเลือก " +"แฟ้มบันทึกเป็น กรอกชื่อแฟ้มที่ต้องการลงในกล่องโต้ตอบ บันทึกเป็น " +"จากนั้นกดปุ่ม บันทึก" + +#: C/gedit.xml:364(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" +"การบันทึกแฟ้มทุกแฟ้มที่เปิดอยู่ใน gedit ทำได้โดยเลือก " +"เอกสารบันทึกทุกเอกสาร" + +#: C/gedit.xml:367(para) +msgid "" +"To close all of the files that are currently open in gedit, choose DocumentsClose All." +msgstr "" +"การปิดแฟ้มทุกแฟ้มที่เปิดอยู่ใน gedit ทำได้โดยเลือก " +"เอกสารปิดทั้งหมด" + +#: C/gedit.xml:372(title) +msgid "Opening a File from a URI" +msgstr "การเปิดแฟ้มจาก URI" + +#: C/gedit.xml:373(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform the " +"following steps:" +msgstr "การเปิดแฟ้มจาก Uniform Resource Identifier (URI) ทำได้ตามขั้นตอนต่อไปนี้:" + +#: C/gedit.xml:376(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog." +msgstr "" +"เลือก แฟ้มเปิดตำแหน่งแฟ้ม เพื่อแสดงกล่องโต้ตอบ เปิดตำแหน่งแฟ้ม" + +#: C/gedit.xml:379(para) +msgid "Enter the URI of the file that you want to open." +msgstr "กรอก URI ของแฟ้มที่คุณต้องการเปิด" + +#: C/gedit.xml:382(para) +msgid "" +"Use the Character coding drop-down list to select the " +"appropriate character coding." +msgstr "ใช้รายชื่อดึงลง รหัสอักขระ เลือกรหัสอักขระที่เหมาะสม" + +#: C/gedit.xml:385(para) +msgid "Click Open." +msgstr "คลิก เปิด" + +#: C/gedit.xml:388(para) +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the " +"methods supported by gnome-vfs." +msgstr "" +"ชนิดของ URI ที่ใช้ได้ มี http:, " +"ftp:, file: และอื่น ๆ ที่รองรับโดย " +"gnome-vfs" + +#: C/gedit.xml:389(para) +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. HTTP only allows files to be " +"read. Files opened from FTP are read-only because because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"แฟ้มเอกสารจาก URI บางชนิดจะสามารถเปิดได้แบบอ่านอย่างเดียวเท่านั้น การเปลี่ยนแปลงใด ๆ " +"จะต้องบันทึกลงในตำแหน่งอื่น HTTP จะให้อ่านแฟ้มอย่างเดียวเท่านั้น แฟ้มที่เปิดจาก FTP " +"จะเป็นแบบอ่านอย่างเดียวเท่านั้น เพราะเซิร์ฟเวอร์ FTP ต่าง ๆ " +"ไม่ได้รองรับการบันทึกแฟ้มระยะไกลได้ถูกต้องไปเสียทั้งหมด" + +#: C/gedit.xml:390(para) +msgid "" +"Saving to FTP servers can be enabled with Configuration Editor, " +"setting the key /apps/gedit-2/preferences/editor/save/" +"writable_vfs_schemes, but this may cause errors." +msgstr "" + +#: C/gedit.xml:395(title) +msgid "Working With Tabs" +msgstr "การใช้แท็บ" + +#: C/gedit.xml:397(para) +msgid "" +"When more than one file is open, gedit shows a " +"tab for each document above the display area. To " +"switch to another document, click on its tab." +msgstr "" +"เมื่อเปิดแฟ้มมากกว่าหนึ่งแฟ้ม gedit จะแสดง " +"แท็บ สำหรับแต่ละเอกสารที่ด้านบนของพื้นที่แสดงผล " +"เมื่อต้องการสลับไปที่เอกสารอื่น ให้คลิกที่แท็บของเอกสารนั้น ๆ" + +#: C/gedit.xml:398(para) +msgid "" +"To move a document to another gedit window, drag " +"the tab corresponding to the file to the window you want to move it to." +msgstr "" +"เมื่อต้องการย้ายเอกสารไปที่หน้าต่างอื่นของ gedit " +"ให้ลากแท็บของแฟ้มนั้น ๆ ไปยังหน้าต่างที่คุณต้องการ" + +#: C/gedit.xml:399(para) +msgid "" +"To move a document to a new gedit window, either " +"drag its tab to the desktop, or choose DocumentsMove to New Window." +msgstr "" +"เมื่อต้องการย้ายเอกสารออกไปเป็นหน้าต่างใหม่ของ gedit " +"ทำได้โดยลากแท็บเอกสารไปยังพื้นโต๊ะ หรือเลือก เอกสารย้ายไปหน้าต่างใหม่" + +#: C/gedit.xml:405(title) +msgid "Working with Text" +msgstr "การทำงานกับข้อความ" + +#: C/gedit.xml:409(title) +msgid "Editing Text" +msgstr "การแก้ไขข้อความ" + +#: C/gedit.xml:410(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "คุณสามารถแก้ไขข้อความในแฟ้มได้ด้วยวิธีต่าง ๆ ดังนี้:" + +#: C/gedit.xml:412(para) +msgid "" +"Type new text from the keyboard. The blinking insertion cursor marks the point where new text appears. To change this, use the " +"arrow keys on the keyboard or click with the mouse." +msgstr "" +"พิมพ์ข้อความใหม่จากแป้นพิมพ์ เคอร์เซอร์แทรก " +"ที่กะพริบอยู่นั้นจะระบุตำแหน่งที่ข้อความจะปรากฏขึ้น หากต้องการเปลี่ยนตำแหน่ง " +"ให้ใช้ปุ่มลูกศรบนแป้นพิมพ์หรือคลิกด้วยเมาส์" + +#: C/gedit.xml:414(para) +msgid "" +"To copy the selected text to the clipboard, choose " +"EditCopy." +msgstr "" +"การคัดลอกข้อความที่เลือกไว้ไปที่คลิปบอร์ด ทำได้โดยเลือก แก้ไขคัดลอก" + +#: C/gedit.xml:416(para) +msgid "" +"To delete the selected text from the file and move the selected text to the " +"clipboard, choose EditCut." +msgstr "" +"การลบข้อความที่เลือกออกจากแฟ้ม พร้อมกับย้ายข้อความไปยังคลิปบอร์ด ทำได้โดยเลือก " +"แก้ไขตัด" + +#: C/gedit.xml:418(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" +"การลบข้อความที่เลือกออกจากแฟ้มอย่างถาวร ทำได้โดยเลือก แก้ไขลบ" + +#: C/gedit.xml:420(para) +msgid "" +"To insert the contents of the clipboard at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file, either from gedit or another application." +msgstr "" +"การแทรกเนื้อหาจากคลิปบอร์ดไปยังตำแหน่งของเคอร์เซอร์ ทำได้โดยเลือก " +"แก้ไขแปะ คุณจะต้องตัดหรือคัดลอกข้อความก่อน ไม่ว่าจะจาก gedit หรือจากโปรแกรมอื่น " +"ก่อนที่คุณจะสามารถแปะข้อความดังกล่าวลงในแฟ้มได้" + +#: C/gedit.xml:422(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" +"การเลือกข้อความทั้งหมดในแฟ้ม ทำได้โดยเลือก แก้ไขเลือกทั้งหมด" + +#: C/gedit.xml:428(title) +msgid "Undoing and Redoing Changes" +msgstr "การเรียกคืนและทำซ้ำการเปลี่ยนแปลง" + +#: C/gedit.xml:429(para) +msgid "" +"To undo a change you have made, choose EditUndo. To reverse this " +"action, choose EditRedo." +msgstr "" +"การเรียกคืนการเปลี่ยนแปลงที่คุณทำไว้ ทำได้โดยเลือก แก้ไขเรียกคืน " +"หากต้องการยกเลิกการเรียกคืนนี้ ก็เลือก แก้ไขทำซ้ำ" + +#: C/gedit.xml:434(title) +msgid "Finding and Replacing" +msgstr "การค้นหาและแทนที่" + +#: C/gedit.xml:436(para) +msgid "" +"In gedit, there are two ways of searching for " +"text. You can use the Find dialog to search for a " +"specific piece of text, or Incremental Search to " +"highlight matching text as you type it." +msgstr "" +"ใน gedit การค้นหาข้อความทำได้สองวิธีด้วยกัน " +"คุณสามารถใช้กล่องโต้ตอบ หา เพื่อค้นหาข้อความที่เจาะจง หรือจะใช้ " +"ค้นหาแบบคืบหน้าทีละส่วน เพื่อเน้นข้อความที่ตรงกันขณะที่คุณพิมพ์ก็ได้" + +#: C/gedit.xml:441(title) +msgid "Finding Text" +msgstr "การค้นหาข้อความ" + +#: C/gedit.xml:442(para) +msgid "To search a file for a string of text, perform the following steps:" +msgstr "การค้นหาข้อความในแฟ้ม ทำได้ตามขั้นตอนต่อไปนี้:" + +#: C/gedit.xml:444(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" +"เลือก ค้นหาหา เพื่อแสดงกล่องโต้ตอบ หา" + +#: C/gedit.xml:446(para) +msgid "" +"Type the string that you want to find in the Search for " +"field. You can include special characters such as a new line or tab: see " +"." +msgstr "" +"พิมพ์ข้อความที่คุณต้องการค้นหาลงในช่อง ค้นหา คุณสามารถใช้อักขระพิเศษ " +"เช่น ขึ้นบรรทัดใหม่ หรือ แท็บ ในช่องนี้ได้: โปรดดู " + +#: C/gedit.xml:448(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string after your current cursor position. If " +"gedit finds the string, the application selects " +"first occurrence of the string. Other occurrences of the string are " +"highlighted." +msgstr "" +"คลิก หา เพื่อค้นหาข้อความโดยเริ่มจากตำแหน่งปัจจุบัน ถ้า " +"gedit หาข้อความพบ โปรแกรมจะเลือกข้อความแห่งแรกที่ปรากฏ " +"และจะเน้นแห่งที่เหลือไว้" + +#: C/gedit.xml:450(para) +msgid "" +"To find the next occurrence of the string, click Find " +"or choose SearchFind Next. To find the previous occurrence of the text, " +"choose SearchFind Previous." +msgstr "" +"การหาคำเดิมที่ปรากฏถัดไป ทำได้โดยคลิก หา หรือเลือก " +"ค้นหาหาต่อ การหาคำเดิมที่ปรากฏก่อนหน้า ทำได้โดยเลือก ค้นหาหาก่อนหน้า" + +#: C/gedit.xml:453(para) +msgid "" +"After you have closed the Find dialog, you can still " +"move the selection to other occurrences of the text by choosing " +"SearchFind Next and SearchFind " +"Previous." +msgstr "" +"หลังจากที่คุณปิดกล่องโต้ตอบ หา ไปแล้ว " +"คุณยังสามารถหาและเลือกคำค้นที่ปรากฏในตำแหน่งอื่น ๆ ได้ โดยเลือก " +"ค้นหาหาต่อ และ ค้นหาหาก่อนหน้า" + +#: C/gedit.xml:454(para) +msgid "" +"To remove the highlighting from the text, choose " +"SearchClear Highlight." +msgstr "" +"การยกเลิกการเน้นข้อความ ทำได้โดยเลือก ค้นหาเลิกเน้นคำค้น" + +#: C/gedit.xml:458(title) +msgid "Incremental Search" +msgstr "การค้นหาแบบคืบหน้าทีละส่วน" + +#: C/gedit.xml:460(para) +msgid "" +"Incremental search highlights matching text in the document as you type it " +"letter by letter. (This is similar to the search feature in several web " +"browsers.)" +msgstr "" +"การค้นหาแบบคืบหน้าทีละส่วนจะเน้นข้อความในเอกสารที่ตรงกับคำค้นไปพร้อม ๆ " +"กับที่คุณพิมพ์คำค้นแต่ละตัวอักษร " +"(ซึ่งคล้ายกับความสามารถในการค้นหาคำในเว็บเบราว์เซอร์หลายโปรแกรม)" + +#: C/gedit.xml:461(para) +msgid "" +"To start an incremental search, choose SearchIncremental Search. The " +"search box appears at the top of the display area." +msgstr "" +"การเริ่มค้นหาแบบคืบหน้าทีละส่วน ทำได้โดยเลือก ค้นหาค้นหาแบบคืบหน้าทีละส่วน " +"กล่องค้นหาจะปรากฏขึ้นที่ด้านบนของพื้นที่แสดงผล" + +#: C/gedit.xml:462(para) +msgid "" +"Begin typing, and text that matches will be highlighted in the document. The " +"first instance after the cursor position is also selected." +msgstr "" +"เมื่อเริ่มพิมพ์ ข้อความในเอกสารที่ตรงกับคำค้นจะถูกเน้น และข้อความแรกที่ตรงกับคำค้นจะถูกเลือกด้วย" + +#: C/gedit.xml:463(para) +msgid "" +"To advance the selection to the next match while keeping the incremental " +"search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +msgstr "" +"การเลื่อนการเลือกข้อความไปยังตำแหน่งปรากฏถัดไปทั้งที่ยังเปิดกล่องค้นหาแบบคืบหน้าทีละส่วนอยู่ " +"ทำได้โดยกดปุ่ม CtrlG " +"ถ้าจะกลับไปยังตำแหน่งปรากฏก่อนหน้า ก็กดปุ่ม CtrlShiftG" + +#: C/gedit.xml:464(para) +msgid "" +"You can also use the up and down arrow keys or the mouse wheel to move the " +"selection between matches." +msgstr "" + +#: C/gedit.xml:469(title) +msgid "Replacing Text" +msgstr "การแทนที่ข้อความ" + +#: C/gedit.xml:471(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "การค้นหาข้อความในแฟ้มและแทนที่ด้วยอีกข้อความหนึ่ง ทำได้โดยขั้นตอนต่อไปนี้:" + +#: C/gedit.xml:473(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"เลือก ค้นหาแทนที่ เพื่อแสดงกล่องโต้ตอบ แทนที่" + +#: C/gedit.xml:475(para) +msgid "" +"Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +"tab: see ." +msgstr "" +"พิมพ์ข้อความที่คุณต้องการค้นหาลงในช่อง ค้นหา คุณสามารถใช้อักขระพิเศษ " +"เช่น ขึ้นบรรทัดใหม่ หรือ แท็บ ในช่องนี้ได้: โปรดดู " + +#: C/gedit.xml:476(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "" +"พิมพ์ข้อความที่คุณต้องการใช้แทนข้อความที่คุณค้นหาลงในช่องข้อมูล แทนที่ด้วย" + +#: C/gedit.xml:480(para) +msgid "" +"To examine each occurrence of the string before replacing it, click " +"Find. If gedit finds the " +"string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +"next occurrence of the string, click Find again." +msgstr "" +"การตรวจสอบข้อความที่ตรงกับคำค้นในแต่ละที่ที่ปรากฏก่อนจะแทนที่ ทำได้โดยคลิก หา หาก gedit พบข้อความที่ตรงกับคำค้น " +"ก็จะเลือกข้อความนั้น ๆ ให้ ถ้าต้องการแทนที่ข้อความที่เลือกอยู่นั้น ก็คลิก แทนที่ ถ้าต้องการหาข้อความที่ตรงกับคำค้นในตำแหน่งถัดไป ก็คลิก หา อีกครั้ง" + +#: C/gedit.xml:481(para) +msgid "" +"To replace all occurrences of the string throughout the document, click " +"Replace All." +msgstr "" +"หากต้องการแทนที่ข้อความทั้งหมดในเอกสารที่ตรงกับคำค้น ให้คลิก แทนที่ทั้งหมด" + +#: C/gedit.xml:486(title) +msgid "Find and Replace Options" +msgstr "ตัวเลือกการค้นหาและแทนที่" + +#: C/gedit.xml:487(para) +msgid "" +"The Find dialog and the Replace " +"dialog both have the following options:" +msgstr "" +"กล่องโต้ตอบ หา และกล่องโต้ตอบ แทนที่ " +"มีตัวเลือกที่เหมือนกันดังต่อไปนี้:" + +#: C/gedit.xml:489(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type. For example, " +"with Match case selected, \"TEXT\" will not match \"text" +"\"." +msgstr "" +"เลือกตัวเลือก ตัวพิมพ์ใหญ่-เล็กตรงกัน " +"ถ้าต้องการหาข้อความที่ตรงกับคำค้นแบบตัวพิมพ์ใหญ่-เล็กตรงกันเท่านั้น ตัวอย่างเช่น เมื่อเลือกตัวเลือก " +"ตัวพิมพ์ใหญ่-เล็กตรงกัน ข้อความ \"TEXT\" จะถือว่าไม่ตรงกันกับ \"text" +"\"" + +#: C/gedit.xml:491(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type. For example, with Match entire word only " +"selected, \"text\" will not match \"texture\"." +msgstr "" +"เลือกตัวเลือก ค้นหาทั้งคำ " +"เพื่อค้นหาเฉพาะข้อความในเอกสารที่ตรงกันทั้งคำกับข้อความที่คุณป้อนเท่านั้น ตัวอย่างเช่น " +"ถ้าเลือก ค้นหาทั้งคำ คำค้นว่า \"text\" จะไม่ตรงกับข้อความ \"texture" +"\"" + +#: C/gedit.xml:493(para) +msgid "" +"Select the Search backwards option to search backwards " +"towards the beginning of the document." +msgstr "เลือกตัวเลือก ค้นหาย้อนกลับ เพื่อค้นหาย้อนกลับไปทางต้นเอกสาร" + +#: C/gedit.xml:495(para) +msgid "" +"Select the Wrap around option to search to one end of " +"the document and then continue the search from the other end of the file." +msgstr "" +"เลือกตัวเลือก หมดแล้วเริ่มใหม่ เพื่อค้นหาไปจนจบเอกสารด้านหนึ่ง " +"และจากนั้นค้นหาต่อไปจากปลายอีกด้านหนึ่งของเอกสาร" + +#: C/gedit.xml:502(title) +msgid "Special Characters" +msgstr "อักขระพิเศษ" + +# ใช้คำว่า รหัส เพื่อแปลคำว่า escape sequence +#: C/gedit.xml:503(para) +msgid "" +"You can include the following escape sequences in the text to find or " +"replace to represent special characters:" +msgstr "คุณสามารถใช้รหัสเหล่านี้แทนอักขระพิเศษ ในข้อความที่จะใช้ค้นหาหรือแทนที่ได้" + +#: C/gedit.xml:506(literal) +msgid "\\n" +msgstr "\\n" + +#: C/gedit.xml:508(para) +msgid "Specifies a new line." +msgstr "แทนการขึ้นบรรทัดใหม่" + +#: C/gedit.xml:512(literal) +msgid "\\t" +msgstr "\\t" + +#: C/gedit.xml:514(para) +msgid "Specifies a tab character." +msgstr "แทนอักขระแท็บ" + +#: C/gedit.xml:518(literal) +msgid "\\r" +msgstr "\\r" + +#: C/gedit.xml:520(para) +msgid "Specifies a carriage return." +msgstr "แทนอักขระปัดแคร่" + +#: C/gedit.xml:524(literal) +msgid "\\\\" +msgstr "\\\\" + +#: C/gedit.xml:526(para) +msgid "" +"The backslash character itself must be escaped if it is being searched for. " +"For example, if you are looking for the \"\\n\" literal, " +"you will have to type \"\\\\n\" in the Search for " +"field. Or if you are looking for a sequence of backslashes, you will have to " +"double the number of searched backslashes." +msgstr "" + +#: C/gedit.xml:538(title) +msgid "Positioning the Cursor on a Specific Line" +msgstr "การเลื่อนตำแหน่งเคอร์เซอร์ไปยังบรรทัดที่กำหนด" + +#: C/gedit.xml:540(para) +msgid "" +"To position the cursor on a specific line in the current file, choose " +"SearchGo to Line. The line number box appears at the top of the display area." +msgstr "" +"การเลื่อนตำแหน่งเคอร์เซอร์ไปยังบรรทัดที่กำหนด ทำได้โดยเลือก ค้นหาไปบรรทัดที่ " +"กล่องเลขบรรทัดข้อความจะปรากฏที่ด้านบนของพื้นที่แสดงผล" + +#: C/gedit.xml:541(para) +msgid "" +"Begin typing the number of the line that you want to move the cursor to and " +"the document will scroll to the specified line." +msgstr "พิมพ์เลขบรรทัดที่คุณต้องการเลื่อนเคอร์เซอร์ไปลงในกล่อง เอกสารจะเลื่อนไปยังบรรทัดนั้น" + +#: C/gedit.xml:542(para) +msgid "" +"To dismiss the box and move the cursor to the specified line, press " +"Return." +msgstr "" +"ปิดกล่องเลขบรรทัดและเลื่อนเคอร์เซอร์ไปยังบรรทัดนั้นได้โดยกด Enter" + +#: C/gedit.xml:548(title) +msgid "Printing" +msgstr "การพิมพ์" + +#: C/gedit.xml:552(title) +msgid "Setting the Page Options" +msgstr "การตั้งค่าตัวเลือกของหน้ากระดาษ" + +#: C/gedit.xml:554(para) +msgid "" +"To set the page options, choose FilePage Setup to display the " +"Page Setup dialog." +msgstr "" +"การตั้งค่าตัวเลือกของหน้ากระดาษ ทำได้โดยเลือก แฟ้มตั้งหน้ากระดาษ กล่องโต้ตอบ " +"การตั้งค่าหน้ากระดาษ จะปรากฏขึ้น" + +#: C/gedit.xml:556(para) +msgid "" +"The Page Setup dialog enables you to specify the " +"following print options:" +msgstr "" +"กล่องโต้ตอบ การตั้งค่าหน้ากระดาษ " +"ช่วยให้คุณตั้งค่าตัวเลือกการพิมพ์ต่อไปนี้ได้:" + +#: C/gedit.xml:559(title) +msgid "General Tabbed Section" +msgstr "" + +#: C/gedit.xml:561(guilabel) +msgid "Print syntax highlighting" +msgstr "พิมพ์แบบเน้นไวยากรณ์" + +#: C/gedit.xml:563(para) +msgid "" +"Select this option to print syntax highlighting. For more information about " +"syntax highlighting, see ." +msgstr "" +"เลือกตัวเลือกนี้เมื่อต้องการพิมพ์โดยเน้นไวยากรณ์ สำหรับข้อมูลเพิ่มเติมโปรดดูที่ " + +#: C/gedit.xml:566(guilabel) +msgid "Print page headers" +msgstr "พิมพ์หัวกระดาษ" + +#: C/gedit.xml:568(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "" +"เลือกตัวเลือกนี้เมื่อต้องการพิมพ์หัวกระดาษลงในแต่ละหน้าเอกสารของคุณ " +"คุณไม่สามารถปรับแต่งหัวกระดาษได้" + +#: C/gedit.xml:571(guilabel) C/gedit.xml:1183(guilabel) +msgid "Line Numbers" +msgstr "เลขบรรทัด" + +#: C/gedit.xml:574(para) +msgid "" +"Select the Print line numbers option to include line " +"numbers when you print a file." +msgstr "" +"เลือกตัวเลือก พิมพ์เลขบรรทัด " +"เมื่อต้องการพิมพ์เลขบรรทัดลงในงานพิมพ์ของคุณ" + +#: C/gedit.xml:575(para) +msgid "" +"Use the Number every ... lines spin box to specify how " +"often to print the line numbers, for example every 5 lines, every 10 lines, " +"and so on." +msgstr "" + +#: C/gedit.xml:578(guilabel) C/gedit.xml:1176(guilabel) C/gedit.xml:1693(para) +msgid "Text Wrapping" +msgstr "" + +#: C/gedit.xml:580(para) +msgid "" +"Select the Enable text wrapping option to wrap text " +"onto the next line, at a character level, when you print a file. The " +"application counts wrapped lines as one line for line numbering purposes." +msgstr "" + +#: C/gedit.xml:582(para) +msgid "" +"Select the Do not split words over two lines option to " +"wrap text onto the next line, at a word level, when you print a file." +msgstr "" + +#: C/gedit.xml:590(title) +msgid "Fonts" +msgstr "แบบอักษร" + +#: C/gedit.xml:592(guilabel) +msgid "Body" +msgstr "ตัวเนื้อความ" + +#: C/gedit.xml:594(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "คลิกปุ่มนี้เพื่อเลือกแบบอักษรสำหรับใช้ในการพิมพ์เนื้อความของเอกสาร" + +#: C/gedit.xml:597(guilabel) +msgid "Line numbers" +msgstr "เลขบรรทัด" + +#: C/gedit.xml:600(para) +msgid "Click on this button to select the font to use to print line numbers." +msgstr "คลิกปุ่มนี้เพื่อเลือกแบบอักษรสำหรับใช้ในการพิมพ์เลขบรรทัด" + +#: C/gedit.xml:603(guilabel) +msgid "Headers and footers" +msgstr "หัวกระดาษและท้ายกระดาษ" + +#: C/gedit.xml:605(para) +msgid "" +"Click on this button to select the font to use to print the headers and " +"footers in a file." +msgstr "คลิกปุ่มนี้เพื่อเลือกแบบอักษรสำหรับใช้ในการพิมพ์หัวกระดาษและท้ายกระดาษของเอกสาร" + +#: C/gedit.xml:609(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit, click Restore Default Fonts." +msgstr "" + +#: C/gedit.xml:616(title) +msgid "Printing a Document" +msgstr "การพิมพ์เอกสาร" + +#: C/gedit.xml:617(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "" +"คุณสามารถใช้ gedit เพื่อดำเนินการพิมพ์เอกสารดังต่อไปนี้ได้:" + +#: C/gedit.xml:619(para) +msgid "Print a document to a printer." +msgstr "พิมพ์เอกสารออกทางเครื่องพิมพ์" + +#: C/gedit.xml:621(para) +msgid "Print the output of the print command to a file." +msgstr "เก็บผลลัพธ์ของคำสั่งพิมพ์ลงในแฟ้ม" + +#: C/gedit.xml:624(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" + +#: C/gedit.xml:626(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" +"คุณสามารถดูตัวอย่างก่อนพิมพ์ได้โดยเลือก แฟ้มตัวอย่างก่อนพิมพ์" + +#: C/gedit.xml:628(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" +"เมื่อต้องการพิมพ์แฟ้มปัจจุบันออกทางเครื่องพิมพ์หรือลงในแฟ้ม ให้เลือก แฟ้มพิมพ์ เพื่อเปิดกล่องโต้ตอบ " +"พิมพ์" + +#: C/gedit.xml:630(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "กล่องโต้ตอบ พิมพ์ ช่วยให้คุณกำหนดตัวเลือกของการพิมพ์ต่อไปนี้ได้:" + +#: C/gedit.xml:633(title) +msgid "Job Tabbed Section" +msgstr "" + +#: C/gedit.xml:635(guilabel) +msgid "Print range" +msgstr "ช่วงการพิมพ์" + +#: C/gedit.xml:637(para) +msgid "" +"Select one of the following options to determine how many pages to print:" +msgstr "เลือกตัวเลือกใดตัวเลือกหนึ่งต่อไปนี้เพื่อกำหนดจำนวนหน้าของเอกสารที่จะพิมพ์:" + +#: C/gedit.xml:640(guilabel) +msgid "All" +msgstr "ทุกหน้า" + +#: C/gedit.xml:641(para) +msgid "Select this option to print all of the pages in the file." +msgstr "เลือกตัวเลือกนี้หากต้องการพิมพ์ทุกหน้าในเอกสาร" + +#: C/gedit.xml:644(guilabel) +msgid "Lines" +msgstr "บรรทัด" + +#: C/gedit.xml:645(para) +msgid "" +"Select this option to print the specified lines only. Use the " +"From and To spin boxes to specify " +"the line range." +msgstr "" + +#: C/gedit.xml:648(guilabel) +msgid "Selection" +msgstr "ส่วนที่เลือก" + +#: C/gedit.xml:649(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" + +#: C/gedit.xml:655(guilabel) +msgid "Copies" +msgstr "" + +#: C/gedit.xml:657(para) +msgid "" +"Use the Number of copies spin box to specify the number " +"of copies of the file that you want to print." +msgstr "" + +#: C/gedit.xml:658(para) +msgid "" +"If you print multiple copies of the file, select the Collate option to collate the printed copies." +msgstr "" + +#: C/gedit.xml:665(title) +msgid "Printer Tabbed Section" +msgstr "" + +#: C/gedit.xml:667(guilabel) +msgid "Printer" +msgstr "" + +#: C/gedit.xml:669(para) +msgid "" +"Use this drop-down list to select the printer to which you want to print the " +"file." +msgstr "" + +#: C/gedit.xml:672(guilabel) +msgid "Settings" +msgstr "" + +#: C/gedit.xml:674(para) +msgid "Use this drop-down list to select the printer settings." +msgstr "" + +#: C/gedit.xml:676(para) +msgid "" +"To configure the printer, click Configure. For " +"example, you can enable or disable duplex printing, or schedule delayed " +"printing, if this functionality is supported by the printer." +msgstr "" + +#: C/gedit.xml:680(guilabel) +msgid "Location" +msgstr "" + +#: C/gedit.xml:682(para) +msgid "" +"Use this drop-down list to select one of the following print destinations:" +msgstr "" + +#: C/gedit.xml:687(guilabel) +msgid "CUPS" +msgstr "" + +#: C/gedit.xml:689(para) +msgid "Print the file to a CUPS printer." +msgstr "" + +#: C/gedit.xml:693(para) +msgid "" +"If the selected printer is a CUPS printer, CUPS is the " +"only entry in this drop-down list." +msgstr "" + +#: C/gedit.xml:700(guilabel) +msgid "lpr" +msgstr "" + +#: C/gedit.xml:702(para) +msgid "Print the file to a printer." +msgstr "" + +#: C/gedit.xml:708(guilabel) +msgid "File" +msgstr "แฟ้ม" + +#: C/gedit.xml:710(para) +msgid "Print the file to a PostScript file." +msgstr "" + +#: C/gedit.xml:713(para) +msgid "" +"Click Save As to display a dialog where you specify " +"the name and location of the PostScript file." +msgstr "" + +#: C/gedit.xml:719(guilabel) +msgid "Custom" +msgstr "" + +#: C/gedit.xml:721(para) +msgid "Use the specified command to print the file." +msgstr "" + +#: C/gedit.xml:724(para) +msgid "" +"Type the name of the command in the text box. Include all command-line " +"arguments." +msgstr "" + +#: C/gedit.xml:732(guilabel) +msgid "State" +msgstr "" + +#: C/gedit.xml:734(para) C/gedit.xml:740(para) C/gedit.xml:746(para) +msgid "This functionality is not supported in this version of gedit." +msgstr "" + +#: C/gedit.xml:738(guilabel) +msgid "Type" +msgstr "" + +#: C/gedit.xml:744(guilabel) +msgid "Comment" +msgstr "" + +#: C/gedit.xml:754(title) +msgid "Paper Tabbed Section" +msgstr "" + +#: C/gedit.xml:756(guilabel) +msgid "Paper size" +msgstr "" + +#: C/gedit.xml:758(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "" + +#: C/gedit.xml:761(guilabel) +msgid "Width" +msgstr "" + +#: C/gedit.xml:763(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit." +msgstr "" + +#: C/gedit.xml:766(guilabel) +msgid "Height" +msgstr "" + +#: C/gedit.xml:768(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "" + +#: C/gedit.xml:771(guilabel) +msgid "Feed orientation" +msgstr "" + +#: C/gedit.xml:773(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "" + +#: C/gedit.xml:776(guilabel) +msgid "Page orientation" +msgstr "" + +#: C/gedit.xml:778(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "" + +#: C/gedit.xml:781(guilabel) +msgid "Layout" +msgstr "" + +#: C/gedit.xml:783(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" + +#: C/gedit.xml:786(guilabel) +msgid "Paper tray" +msgstr "" + +#: C/gedit.xml:788(para) +msgid "Use this drop-down list to select the paper tray." +msgstr "" + +#: C/gedit.xml:799(title) +msgid "Programming Features" +msgstr "" + +#: C/gedit.xml:801(para) +msgid "" +"Several of gedit's features for programming are " +"provided with plugins. For example, the Tag List plugin provides a list of " +"commonly-used tags for different markup languages: see ." +msgstr "" + +#: C/gedit.xml:805(title) +msgid "Syntax Highlighting" +msgstr "" + +#: C/gedit.xml:806(para) +msgid "" +"Syntax highlighting makes source code easier to read by showing different " +"parts of the text in different colors." +msgstr "" + +#: C/gedit.xml:808(para) +msgid "" +"gedit chooses an appropriate syntax highlighting " +"mode based on a document's type. To override the syntax highlighting mode, " +"choose ViewHighlight Mode, then choose one of the following menu items:" +msgstr "" + +#: C/gedit.xml:811(guimenuitem) +msgid "Normal" +msgstr "" + +#: C/gedit.xml:813(para) +msgid "Do not display any syntax highlighting." +msgstr "" + +#: C/gedit.xml:817(guisubmenu) +msgid "Sources" +msgstr "" + +#: C/gedit.xml:819(para) +msgid "" +"Display syntax highlighting to edit source code. Use the " +"Sources submenu to select the source code type." +msgstr "" + +#: C/gedit.xml:823(guisubmenu) +msgid "Markup" +msgstr "" + +#: C/gedit.xml:825(para) +msgid "" +"Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type." +msgstr "" + +#: C/gedit.xml:829(guisubmenu) +msgid "Scripts" +msgstr "" + +#: C/gedit.xml:831(para) +msgid "" +"Display syntax highlighting to edit script code. Use the " +"Scripts submenu to select the script code type." +msgstr "" + +#: C/gedit.xml:835(guisubmenu) +msgid "Others" +msgstr "" + +#: C/gedit.xml:837(para) +msgid "" +"Display syntax highlighting to edit other types of code. Use the " +"Others submenu to select the code type." +msgstr "" + +#: C/gedit.xml:845(title) +msgid "Piping the Output of a Command to a File" +msgstr "" + +#: C/gedit.xml:846(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" + +#: C/gedit.xml:847(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" + +#: C/gedit.xml:848(para) +msgid "" +"Alternatively, you can use the External tools " +"plugin to pipe command output to the current file." +msgstr "" + +#: C/gedit.xml:854(title) +msgid "Shortcut Keys" +msgstr "" + +#: C/gedit.xml:855(para) +msgid "" +"Use shortcut keys to perform common tasks more quickly than with the mouse " +"and menus. The following tables list all of gedit's shortcut keys." +msgstr "" + +#: C/gedit.xml:856(para) +msgid "" +"For more on shortcut keys, see the Desktop User Guide." +msgstr "" + +#. ============= Tabs ======================== +#: C/gedit.xml:859(bridgehead) C/gedit.xml:1215(guilabel) +msgid "Tabs" +msgstr "" + +#: C/gedit.xml:860(para) +msgid "Shortcuts for tabs:" +msgstr "" + +#: C/gedit.xml:868(para) C/gedit.xml:912(para) C/gedit.xml:968(para) +#: C/gedit.xml:1024(para) C/gedit.xml:1052(para) C/gedit.xml:1099(para) +#: C/gedit.xml:1142(para) +msgid "Shortcut Key" +msgstr "" + +#: C/gedit.xml:870(para) C/gedit.xml:914(para) C/gedit.xml:970(para) +#: C/gedit.xml:1026(para) C/gedit.xml:1054(para) C/gedit.xml:1101(para) +#: C/gedit.xml:1144(para) +msgid "Command" +msgstr "" + +#: C/gedit.xml:875(para) +msgid "Ctrl + Alt + PageUp" +msgstr "" + +#: C/gedit.xml:876(para) +msgid "Switches to the next tab to the left." +msgstr "" + +#: C/gedit.xml:879(para) +msgid "Ctrl + Alt + PageDown" +msgstr "" + +#: C/gedit.xml:880(para) +msgid "Switches to the next tab to the right." +msgstr "" + +#: C/gedit.xml:883(para) C/gedit.xml:947(para) +msgid "Ctrl + W" +msgstr "" + +#: C/gedit.xml:884(para) +msgid "Close tab." +msgstr "" + +#: C/gedit.xml:887(para) +msgid "Ctrl + Shift + L" +msgstr "" + +#: C/gedit.xml:888(para) +msgid "Save all tabs." +msgstr "" + +#: C/gedit.xml:891(para) +msgid "Ctrl + Shift + W" +msgstr "" + +#: C/gedit.xml:892(para) +msgid "Close all tabs." +msgstr "" + +#: C/gedit.xml:895(para) +msgid "Alt + n" +msgstr "" + +#: C/gedit.xml:896(para) +msgid "Jump to nth tab." +msgstr "" + +#. ============= Files ======================== +#: C/gedit.xml:903(bridgehead) +msgid "Files" +msgstr "" + +#: C/gedit.xml:904(para) +msgid "Shortcuts for working with files:" +msgstr "" + +#: C/gedit.xml:919(para) +msgid "Ctrl + N" +msgstr "" + +#: C/gedit.xml:920(para) +msgid "Create a new document." +msgstr "" + +#: C/gedit.xml:923(para) +msgid "Ctrl + O" +msgstr "" + +#: C/gedit.xml:924(para) +msgid "Open a document." +msgstr "" + +#: C/gedit.xml:927(para) +msgid "Ctrl + L" +msgstr "" + +#: C/gedit.xml:928(para) +msgid "Open a location." +msgstr "" + +#: C/gedit.xml:931(para) +msgid "Ctrl + S" +msgstr "" + +#: C/gedit.xml:932(para) +msgid "Save the current document to disk." +msgstr "" + +#: C/gedit.xml:935(para) +msgid "Ctrl + Shift + S" +msgstr "" + +#: C/gedit.xml:936(para) +msgid "Save the current document with a new filename." +msgstr "" + +#: C/gedit.xml:939(para) +msgid "Ctrl + P" +msgstr "" + +#: C/gedit.xml:940(para) +msgid "Print the current document." +msgstr "" + +#: C/gedit.xml:943(para) +msgid "Ctrl + Shift + P" +msgstr "" + +#: C/gedit.xml:944(para) +msgid "Print preview." +msgstr "" + +#: C/gedit.xml:948(para) +msgid "Close the current document." +msgstr "" + +#: C/gedit.xml:951(para) +msgid "Ctrl + Q" +msgstr "" + +#: C/gedit.xml:952(para) +msgid "Quit Gedit." +msgstr "" + +#. ============= Edit ======================= +#: C/gedit.xml:959(bridgehead) C/gedit.xml:1414(guimenu) +#: C/gedit.xml:1420(guimenu) C/gedit.xml:1426(guimenu) +#: C/gedit.xml:1432(guimenu) +msgid "Edit" +msgstr "" + +#: C/gedit.xml:960(para) +msgid "Shortcuts for editing documents:" +msgstr "" + +#: C/gedit.xml:975(para) +msgid "Ctrl + Z" +msgstr "" + +#: C/gedit.xml:976(para) +msgid "Undo the last action." +msgstr "" + +#: C/gedit.xml:979(para) +msgid "Ctrl + Shift + Z" +msgstr "" + +#: C/gedit.xml:980(para) +msgid "Redo the last undone action ." +msgstr "" + +#: C/gedit.xml:983(para) +msgid "Ctrl + X" +msgstr "" + +#: C/gedit.xml:984(para) +msgid "Cut the selected text or region and place it on the clipboard." +msgstr "" + +#: C/gedit.xml:987(para) +msgid "Ctrl + C" +msgstr "" + +#: C/gedit.xml:988(para) +msgid "Copy the selected text or region onto the clipboard." +msgstr "" + +#: C/gedit.xml:991(para) +msgid "Ctrl + V" +msgstr "" + +#: C/gedit.xml:992(para) +msgid "Paste the contents of the clipboard." +msgstr "" + +#: C/gedit.xml:995(para) +msgid "Ctrl + A" +msgstr "" + +#: C/gedit.xml:996(para) +msgid "Select all." +msgstr "" + +#: C/gedit.xml:999(para) +msgid "Ctrl + D" +msgstr "" + +#: C/gedit.xml:1000(para) +msgid "Delete current line." +msgstr "" + +#: C/gedit.xml:1003(para) +msgid "Alt + Up" +msgstr "" + +#: C/gedit.xml:1004(para) +msgid "Move the selected line up one line." +msgstr "" + +#: C/gedit.xml:1007(para) +msgid "Alt + Down" +msgstr "" + +#: C/gedit.xml:1008(para) +msgid "Move the selected line down one line." +msgstr "" + +#. ============= Panes ======================= +#: C/gedit.xml:1015(bridgehead) +msgid "Panes" +msgstr "" + +#: C/gedit.xml:1016(para) +msgid "Shortcuts for showing and hiding panes:" +msgstr "" + +#: C/gedit.xml:1031(para) +msgid "F9" +msgstr "" + +#: C/gedit.xml:1032(para) +msgid "Show/hide the side pane." +msgstr "" + +#: C/gedit.xml:1035(para) +msgid "Ctrl + F9" +msgstr "" + +#: C/gedit.xml:1036(para) +msgid "Show/hide the bottom pane." +msgstr "" + +#. ============= Search ======================= +#: C/gedit.xml:1043(bridgehead) +msgid "Search" +msgstr "" + +#: C/gedit.xml:1044(para) +msgid "Shortcuts for searching:" +msgstr "" + +#: C/gedit.xml:1059(para) +msgid "Ctrl + F" +msgstr "" + +#: C/gedit.xml:1060(para) +msgid "Find a string." +msgstr "" + +#: C/gedit.xml:1063(para) +msgid "Ctrl + G" +msgstr "" + +#: C/gedit.xml:1064(para) +msgid "Find the next instance of the string." +msgstr "" + +#: C/gedit.xml:1067(para) +msgid "Ctrl + Shift + G" +msgstr "" + +#: C/gedit.xml:1068(para) +msgid "Find the previous instance of the string." +msgstr "" + +#: C/gedit.xml:1071(para) +msgid "Ctrl + K" +msgstr "" + +#: C/gedit.xml:1072(para) +msgid "Interactive search." +msgstr "" + +#: C/gedit.xml:1075(para) +msgid "Ctrl + H" +msgstr "" + +#: C/gedit.xml:1076(para) +msgid "Search and replace." +msgstr "" + +#: C/gedit.xml:1079(para) +msgid "Ctrl + Shift + K" +msgstr "" + +#: C/gedit.xml:1080(para) +msgid "Clear highlight." +msgstr "" + +#: C/gedit.xml:1083(para) +msgid "Ctrl + I" +msgstr "" + +#: C/gedit.xml:1084(para) +msgid "Goto line." +msgstr "" + +#. ============= Tools ======================= +#: C/gedit.xml:1090(bridgehead) +msgid "Tools" +msgstr "" + +#: C/gedit.xml:1091(para) +msgid "Shortcuts for tools:" +msgstr "" + +#: C/gedit.xml:1106(para) +msgid "Shift + F7" +msgstr "" + +#: C/gedit.xml:1107(para) +msgid "Check spelling (with plugin)." +msgstr "" + +#: C/gedit.xml:1110(para) +msgid "Alt + F12" +msgstr "" + +#: C/gedit.xml:1111(para) +msgid "Remove trailing spaces (with plugin)." +msgstr "" + +#: C/gedit.xml:1114(para) +msgid "Ctrl + T" +msgstr "" + +#: C/gedit.xml:1115(para) +msgid "Indent (with plugin)." +msgstr "" + +#: C/gedit.xml:1118(para) +msgid "Ctrl + Shift + T" +msgstr "" + +#: C/gedit.xml:1119(para) +msgid "Remove Indent (with plugin)." +msgstr "" + +#: C/gedit.xml:1122(para) +msgid "F8" +msgstr "" + +#: C/gedit.xml:1123(para) +msgid "Run \"make\" in current directory (with plugin)." +msgstr "" + +#: C/gedit.xml:1126(para) +msgid "Ctrl + Shift + D" +msgstr "" + +#: C/gedit.xml:1127(para) +msgid "Directory listing (with plugin)." +msgstr "" + +#. ============= Help ======================= +#: C/gedit.xml:1133(bridgehead) +msgid "Help" +msgstr "" + +#: C/gedit.xml:1134(para) +msgid "Shortcuts for help:" +msgstr "" + +#: C/gedit.xml:1149(para) +msgid "F1" +msgstr "" + +#: C/gedit.xml:1150(para) +msgid "Open gedit's user manual." +msgstr "" + +#: C/gedit.xml:1162(title) +msgid "Preferences" +msgstr "การปรับแต่ง" + +#: C/gedit.xml:1164(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" + +#: C/gedit.xml:1173(title) +msgid "View Preferences" +msgstr "" + +#: C/gedit.xml:1178(para) +msgid "" +"Select the Enable text wrapping option to have long " +"lines of text flow into paragraphs instead of running off the edge of the " +"text window. This avoids having to scroll horizontally" +msgstr "" + +#: C/gedit.xml:1179(para) +msgid "" +"Select the Do not split words over two lines option to " +"have the text wrapping option preserve whole words when flowing text to the " +"next line. This makes text easier to read." +msgstr "" + +#: C/gedit.xml:1185(para) +msgid "" +"Select the Display line numbers option to display line " +"numbers on the left side of the gedit window." +msgstr "" + +#: C/gedit.xml:1189(guilabel) +msgid "Current Line" +msgstr "บรรทัดปัจจุบัน" + +#: C/gedit.xml:1191(para) +msgid "" +"Select the Highlight current line option to highlight " +"the line where the cursor is placed." +msgstr "" + +#: C/gedit.xml:1195(guilabel) +msgid "Right Margin" +msgstr "" + +#: C/gedit.xml:1197(para) +msgid "" +"Select the Display right margin option to display a " +"vertical line that indicates the right margin." +msgstr "" + +#: C/gedit.xml:1198(para) +msgid "" +"Use the Right margin at column spin box to specify the " +"location of the vertical line." +msgstr "" + +#: C/gedit.xml:1202(guilabel) +msgid "Bracket Matching" +msgstr "" + +#: C/gedit.xml:1204(para) +msgid "" +"Select the Highlight matching bracket option to " +"highlight the corresponding bracket when the cursor is positioned on a " +"bracket character." +msgstr "" + +#: C/gedit.xml:1212(title) +msgid "Editor Preferences" +msgstr "" + +#: C/gedit.xml:1217(para) +msgid "" +"Use the Tab width spin box to specify the width of the " +"space that gedit inserts when you press the " +"Tab key." +msgstr "" + +#: C/gedit.xml:1218(para) +msgid "" +"Select the Insert spaces instead of tabs option to " +"specify that gedit inserts spaces instead of a " +"tab character when you press the Tab key." +msgstr "" + +#: C/gedit.xml:1222(guilabel) +msgid "Auto Indentation" +msgstr "" + +#: C/gedit.xml:1224(para) +msgid "" +"Select the Enable auto indentation option to specify " +"that the next line starts at the indentation level of the current line." +msgstr "" + +#: C/gedit.xml:1228(guilabel) +msgid "File Saving" +msgstr "" + +#: C/gedit.xml:1230(para) +msgid "" +"Select the Create a backup copy of files before saving " +"option to create a backup copy of a file each time you save the file. The " +"backup copy of the file contains a ~ at the end of the filename." +msgstr "" + +#: C/gedit.xml:1231(para) +msgid "" +"Select the Autosave files every ... minutes option to " +"automatically save the current file at regular intervals. Use the spin box " +"to specify how often you want to save the file." +msgstr "" + +#: C/gedit.xml:1238(title) +msgid "Font & Colors Preferences" +msgstr "การปรับแต่งแบบอักษรและสี" + +#: C/gedit.xml:1241(guilabel) +msgid "Font" +msgstr "แบบอักษร" + +#: C/gedit.xml:1243(para) +msgid "" +"Select the Use default theme font option to use the " +"default system font for the text in the gedit " +"text window." +msgstr "" + +#: C/gedit.xml:1244(para) +msgid "" +"The Editor font field displays the font that " +"gedit uses to display text. Click on the button " +"to specify the font type, style, and size to use for text." +msgstr "" + +#: C/gedit.xml:1248(guilabel) +msgid "Color Scheme" +msgstr "" + +#: C/gedit.xml:1250(para) +msgid "" +"You can choose a color scheme from the list of color schemes. By default, " +"the following color schemes are installed:" +msgstr "" + +#: C/gedit.xml:1253(guilabel) +msgid "Classic" +msgstr "" + +#: C/gedit.xml:1255(para) +msgid "Classic color scheme based on the gvim color scheme." +msgstr "" + +#: C/gedit.xml:1259(guilabel) +msgid "Cobalt" +msgstr "" + +#: C/gedit.xml:1261(para) +msgid "Blue based color scheme." +msgstr "" + +#: C/gedit.xml:1265(guilabel) +msgid "Kate" +msgstr "" + +#: C/gedit.xml:1267(para) +msgid "Color scheme used in the Kate text editor." +msgstr "" + +#: C/gedit.xml:1271(guilabel) +msgid "Oblivion" +msgstr "" + +#: C/gedit.xml:1273(para) +msgid "Dark color scheme using the Tango color palette." +msgstr "" + +#: C/gedit.xml:1277(guilabel) +msgid "Tango" +msgstr "" + +#: C/gedit.xml:1279(para) +msgid "Color scheme using the Tango color scheme." +msgstr "" + +#: C/gedit.xml:1283(para) +msgid "" +"You can add a new color scheme by clicking on Add..., " +"and selecting a color scheme file" +msgstr "" + +#: C/gedit.xml:1284(para) +msgid "" +"You can remove the selected color scheme by clicking on Remove" +msgstr "" + +#: C/gedit.xml:1291(title) +msgid "Plugins Preferences" +msgstr "" + +#: C/gedit.xml:1292(para) +msgid "" +"Plugins add extra features to gedit. For more " +"information on plugins and how to use the built-in plugins, see ." +msgstr "" + +#: C/gedit.xml:1296(title) +msgid "Enabling a Plugin" +msgstr "" + +#: C/gedit.xml:1297(para) +msgid "" +"To enable a gedit plugin, perform the following " +"steps:" +msgstr "" + +#: C/gedit.xml:1300(para) C/gedit.xml:1321(para) C/gedit.xml:1643(para) +msgid "" +"Choose EditPreferences." +msgstr "" + +#: C/gedit.xml:1303(para) C/gedit.xml:1324(para) C/gedit.xml:1646(para) +msgid "Select the Plugins tab." +msgstr "" + +#: C/gedit.xml:1306(para) +msgid "" +"Select the check box next to the name of the plugin that you want to enable." +msgstr "" + +#: C/gedit.xml:1309(para) C/gedit.xml:1330(para) +msgid "" +"Click Close to close the Preferences dialog." +msgstr "" + +#: C/gedit.xml:1316(title) +msgid "Disabling a Plugin" +msgstr "" + +#: C/gedit.xml:1317(para) +msgid "" +"A plugin remains enabled when you quit gedit." +msgstr "" + +#: C/gedit.xml:1318(para) +msgid "" +"To disable a gedit plugin, perform the following " +"steps:" +msgstr "" + +#: C/gedit.xml:1327(para) +msgid "" +"Deselect the check box next to the name of the plugin that you want to " +"disable." +msgstr "" + +#: C/gedit.xml:1339(title) +msgid "Plugins" +msgstr "" + +#: C/gedit.xml:1341(title) +msgid "Working with Plugins" +msgstr "" + +#: C/gedit.xml:1342(para) +msgid "" +"You can add extra features to gedit by enabling " +"plugins. A plugin is a supplementary program that " +"enhances the functionality of an application. Plugins add new items to the " +"gedit menus for the new features they provide." +msgstr "" + +#: C/gedit.xml:1344(para) +msgid "" +"Several plugins come built-in with gedit, and you " +"can install more. The gedit website lists third-party plugins." +msgstr "" + +#: C/gedit.xml:1345(para) +msgid "" +"To enable and disable plugins, or see which plugins are currently enabled, " +"use the Plugins Preferences." +msgstr "" + +#: C/gedit.xml:1346(para) +msgid "" +"The following plugins come built-in with gedit:" +msgstr "" + +#: C/gedit.xml:1352(para) +msgid "" +"Change Case allows you to change the case of the selected text." +msgstr "" + +#: C/gedit.xml:1355(para) +msgid "" +"Document " +"Statistics shows the number of lines, words, and " +"characters in the document." +msgstr "" + +#: C/gedit.xml:1358(para) +msgid "" +"External Tools allows you to execute external commands from " +"gedit." +msgstr "" + +#: C/gedit.xml:1361(para) +msgid "" +"File Browser allows you to browse your files and " +"folders in the side pane." +msgstr "" + +#: C/gedit.xml:1364(para) +msgid "" +"Indent Lines adds or removes indentation from the selected lines." +msgstr "" + +#: C/gedit.xml:1367(para) +msgid "" +"Insert Date/" +"Time adds the current date and time into a document." +msgstr "" + +#: C/gedit.xml:1370(para) +msgid "" +"Modelines allows you to set editing preferences for individual documents, " +"and supports Emacs, Kate and Vim-style modelines." +msgstr "" + +#: C/gedit.xml:1373(para) +msgid "" +"Python Console allows you to run commands in the python programming " +"language." +msgstr "" + +#: C/gedit.xml:1376(para) +msgid "" +"Snippets allows you to store frequently-used pieces of text and insert " +"them quickly into a document." +msgstr "" + +#: C/gedit.xml:1379(para) +msgid "" +"Sort " +"arranges selected lines of text into alphabetical order." +msgstr "" + +#: C/gedit.xml:1382(para) +msgid "" +"Spell Checker corrects the spelling in the selected text, or marks " +"errors automatically in the document." +msgstr "" + +#: C/gedit.xml:1385(para) +msgid "" +"Tag List lets you insert commonly-used tags for HTML and other languages " +"from a list in the side pane." +msgstr "" + +#: C/gedit.xml:1389(para) +msgid "" +"For more information on creating plugins, see the gedit " +"website." +msgstr "" + +#: C/gedit.xml:1393(title) +msgid "Change Case Plugin" +msgstr "" + +#: C/gedit.xml:1394(para) +msgid "" +"The Change Case plugin changes the case of the " +"selected text." +msgstr "" + +#: C/gedit.xml:1395(para) +msgid "" +"The following items are added to the Edit menu when the " +"Change Case plugin is enabled:" +msgstr "" + +#: C/gedit.xml:1405(para) +msgid "Menu Item" +msgstr "" + +#: C/gedit.xml:1407(para) +msgid "Action" +msgstr "" + +#: C/gedit.xml:1409(para) +msgid "Example" +msgstr "" + +#: C/gedit.xml:1415(guisubmenu) C/gedit.xml:1421(guisubmenu) +#: C/gedit.xml:1427(guisubmenu) C/gedit.xml:1433(guisubmenu) +msgid "Change Case" +msgstr "" + +#: C/gedit.xml:1415(guimenuitem) +msgid "All Upper Case" +msgstr "" + +#: C/gedit.xml:1416(para) +msgid "Change each character to uppercase." +msgstr "" + +#: C/gedit.xml:1417(para) +msgid "This text becomes THIS TEXT" +msgstr "" + +#: C/gedit.xml:1421(guimenuitem) +msgid "All Lower Case" +msgstr "" + +#: C/gedit.xml:1422(para) +msgid "Change each character to lowercase." +msgstr "" + +#: C/gedit.xml:1423(para) +msgid "This Text becomes this text" +msgstr "" + +#: C/gedit.xml:1427(guimenuitem) +msgid "Invert Case" +msgstr "" + +#: C/gedit.xml:1428(para) +msgid "" +"Change each lowercase character to uppercase, and change each uppercase " +"character to lowercase." +msgstr "" + +#: C/gedit.xml:1429(para) +msgid "This Text becomes tHIS tEXT" +msgstr "" + +#: C/gedit.xml:1433(guimenuitem) +msgid "Title Case" +msgstr "" + +#: C/gedit.xml:1434(para) +msgid "Change the first character of each word to uppercase." +msgstr "" + +#: C/gedit.xml:1435(para) +msgid "this text becomes This Text" +msgstr "" + +#: C/gedit.xml:1444(title) +msgid "Document Statistics Plugin" +msgstr "" + +#: C/gedit.xml:1445(para) +msgid "" +"The Document Statistics plugin counts the number " +"of lines, words, characters with spaces, characters without spaces, and " +"bytes in the current file. The plugin displays the results in a " +"Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" + +#: C/gedit.xml:1447(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"displays the following information about the file:" +msgstr "" + +#: C/gedit.xml:1450(para) +msgid "Number of lines in the current document." +msgstr "" + +#: C/gedit.xml:1453(para) +msgid "Number of words in the current document." +msgstr "" + +#: C/gedit.xml:1456(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "" + +#: C/gedit.xml:1459(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "" + +#: C/gedit.xml:1462(para) +msgid "Number of bytes in the current document." +msgstr "" + +#: C/gedit.xml:1467(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click " +"Update." +msgstr "" + +#: C/gedit.xml:1474(title) +msgid "External Tools Plugin" +msgstr "" + +#: C/gedit.xml:1475(para) +msgid "" +"The External Tools plugin allows you to execute " +"external commands from gedit. You can pipe some " +"content into a command and exploit its output (for example, " +"sed), or launch a predefined command (for " +"example, make)." +msgstr "" + +#: C/gedit.xml:1476(para) +msgid "" +"Use the External Tools Manager to create and edit " +"commands. To run an external command, choose it from the Tools menu." +msgstr "" + +#: C/gedit.xml:1479(title) +msgid "Built-in Commands" +msgstr "" + +#: C/gedit.xml:1480(para) +msgid "" +"The following commands are provided with the External Tools plugin:" +msgstr "" + +#: C/gedit.xml:1482(term) +msgid "Build" +msgstr "" + +#: C/gedit.xml:1484(para) +msgid "" +"Runs make in the current document's directory." +msgstr "" + +#: C/gedit.xml:1487(term) +msgid "Directory Listing" +msgstr "" + +#: C/gedit.xml:1489(para) +msgid "" +"Lists the contents of the current document's directory in a new document." +msgstr "" + +#: C/gedit.xml:1492(term) +msgid "Environment Variables" +msgstr "" + +#: C/gedit.xml:1494(para) +msgid "Displays the environment variables list in the bottom pane." +msgstr "" + +#: C/gedit.xml:1497(term) +msgid "Grep" +msgstr "" + +#: C/gedit.xml:1499(para) +msgid "" +"Searches for a term in all files in the current document directory, using " +"pattern matching. Results are shown in the bottom pane." +msgstr "" + +#: C/gedit.xml:1502(term) +msgid "Remove Trailing Spaces" +msgstr "" + +#: C/gedit.xml:1504(para) +msgid "Removes all spaces from the end of lines in the document." +msgstr "" + +#: C/gedit.xml:1511(title) +msgid "Defining a Command" +msgstr "" + +#: C/gedit.xml:1512(para) +msgid "" +"To add an external command, choose ToolsExternal Tools." +msgstr "" + +#: C/gedit.xml:1513(para) +msgid "" +"In the External Tools Manager window, click " +"New. You can speficy the following details for the " +"new command:" +msgstr "" + +#: C/gedit.xml:1515(term) +msgid "Description" +msgstr "" + +#: C/gedit.xml:1517(para) +msgid "" +"This description is shown in the statusbar when the menu command is chosen." +msgstr "" + +#: C/gedit.xml:1520(term) +msgid "Accelerator" +msgstr "" + +#: C/gedit.xml:1522(para) +msgid "Enter a keyboard shortcut for the command." +msgstr "" + +#: C/gedit.xml:1525(term) +msgid "Commands" +msgstr "" + +#: C/gedit.xml:1527(para) +msgid "" +"The actual commands to be run. Several gedit " +"environment variables can be used to pass content to these commands: see " +"." +msgstr "" + +#: C/gedit.xml:1530(term) +msgid "Input" +msgstr "" + +#: C/gedit.xml:1532(para) +msgid "" +"The content to give to the commands (as stdin): the " +"entire text of the current document, the current selection, line, or word." +msgstr "" + +#: C/gedit.xml:1535(term) +msgid "Output" +msgstr "" + +#: C/gedit.xml:1537(para) +msgid "" +"What to do with the output of the commands: display in the bottom pane, put " +"in a new document, or place in the current document, at the end, at the " +"cursor position, or replacing the selection or the entire document." +msgstr "" + +#: C/gedit.xml:1540(term) +msgid "Applicability" +msgstr "" + +#: C/gedit.xml:1542(para) +msgid "" +"Determines which sort of documents can be affected by the command, for " +"example whether saved or not, and local or remote." +msgstr "" + +#: C/gedit.xml:1550(title) +msgid "Editing and Removing Tools" +msgstr "" + +#: C/gedit.xml:1551(para) +msgid "" +"To edit a tool, select it in the list and make changes to its properties." +msgstr "" + +#: C/gedit.xml:1552(para) +msgid "To rename a tool, click it again in the list." +msgstr "" + +#: C/gedit.xml:1553(para) +msgid "" +"To restore a built-in tool that you have changed, press Revert." +msgstr "" + +#: C/gedit.xml:1554(para) +msgid "" +"To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created " +"yourself." +msgstr "" + +#: C/gedit.xml:1558(title) +msgid "Variables" +msgstr "" + +#: C/gedit.xml:1559(para) +msgid "" +"You can use the following variables in the Commands " +"field of the command definition:" +msgstr "" + +#: C/gedit.xml:1562(para) +msgid "GEDIT_CURRENT_DOCUMENT_URI" +msgstr "" + +#: C/gedit.xml:1565(para) +msgid "GEDIT_CURRENT_DOCUMENT_NAME" +msgstr "" + +#: C/gedit.xml:1568(para) +msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +msgstr "" + +#: C/gedit.xml:1571(para) +msgid "GEDIT_CURRENT_DOCUMENT_PATH" +msgstr "" + +#: C/gedit.xml:1574(para) +msgid "GEDIT_CURRENT_DOCUMENT_DIR" +msgstr "" + +#: C/gedit.xml:1577(para) +msgid "GEDIT_DOCUMENTS_URI" +msgstr "" + +#: C/gedit.xml:1580(para) +msgid "GEDIT_DOCUMENTS_PATH" +msgstr "" + +#: C/gedit.xml:1587(title) +msgid "File Browser Plugin" +msgstr "" + +#: C/gedit.xml:1588(para) +msgid "" +"The File Browser Plugin shows your files and " +"folders in the side pane, allowing you to quickly open files." +msgstr "" + +#: C/gedit.xml:1589(para) +msgid "" +"To view the File Browser, choose ViewSide Pane and then click on " +"the tab showing the File Browser icon at the bottom of the side pane." +msgstr "" + +#: C/gedit.xml:1591(title) +msgid "Browsing your Files" +msgstr "" + +#: C/gedit.xml:1592(para) +msgid "" +"The File Browser tab initially shows your file manager bookmarks. To browse " +"the contents of any item, double-click it." +msgstr "" + +#: C/gedit.xml:1593(para) +msgid "" +"To show a parent folder, choose from the drop-down list, or press the up " +"arrow on the File Browser's toolbar." +msgstr "" + +#: C/gedit.xml:1594(para) +msgid "" +"To show the folder that contains the document you are currently working on, " +"right-click in the file list and choose Set root to active " +"document." +msgstr "" + +#: C/gedit.xml:1598(para) +msgid "" +"To open a file in gedit, double-click it in the " +"file list." +msgstr "" + +#: C/gedit.xml:1601(title) +msgid "Creating Files and Folders" +msgstr "" + +#: C/gedit.xml:1602(para) +msgid "" +"To create a new, empty text file in the current folder shown in the browser, " +"right-click in the file list and choose New File." +msgstr "" + +#: C/gedit.xml:1603(para) +msgid "" +"To create a new folder in the current folder shown in the browser, right-" +"click in the file list and choose New Folder." +msgstr "" + +#: C/gedit.xml:1608(title) +msgid "Indent Lines Plugin" +msgstr "" + +#: C/gedit.xml:1609(para) +msgid "" +"The Indent Lines plugin adds or removes space " +"from the beginning of lines of text." +msgstr "" + +#: C/gedit.xml:1610(para) +msgid "To indent or unindent text, perform the following steps:" +msgstr "" + +#: C/gedit.xml:1612(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" + +#: C/gedit.xml:1617(para) +msgid "" +"To indent the text, choose EditIndent." +msgstr "" + +#: C/gedit.xml:1620(para) +msgid "" +"To remove the indentation, choose EditUnindent." +msgstr "" + +#: C/gedit.xml:1625(para) +msgid "" +"The amount of space used, and whether tab character or space characters are " +"used, depends on the Tab Stops settings in the Editor " +"Preferences: see ." +msgstr "" + +#: C/gedit.xml:1630(title) +msgid "Insert Date/Time Plugin" +msgstr "" + +#: C/gedit.xml:1631(para) +msgid "" +"The Insert Date/Time plugin inserts the current " +"date and time into a document. To use the Insert Date/Time plugin, perform " +"the following steps:" +msgstr "" + +#: C/gedit.xml:1633(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" + +#: C/gedit.xml:1634(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click Insert to close the Insert Date " +"and Time dialog. gedit inserts the " +"date/time at the cursor position in the current file." +msgstr "" + +#: C/gedit.xml:1635(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed. The date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" + +#: C/gedit.xml:1640(title) +msgid "Configuring the Insert Date/Time Plugin" +msgstr "" + +#: C/gedit.xml:1641(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "" + +#: C/gedit.xml:1649(para) +msgid "Select the Insert Date/Time plugin." +msgstr "" + +#: C/gedit.xml:1652(para) +msgid "" +"Click Configure Plugin to display the " +"Configure insert date/time plugin dialog." +msgstr "" + +#: C/gedit.xml:1655(para) +msgid "Select one of the options, as follows:" +msgstr "" + +#: C/gedit.xml:1657(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" + +#: C/gedit.xml:1660(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" + +#: C/gedit.xml:1663(para) +msgid "" +"To use the same customized date/time format each time you insert the date/" +"time, select the Use custom format option, then enter " +"the appropriate format in the text box. For more information about how to " +"specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose EditInsert Date and Time." +msgstr "" + +#: C/gedit.xml:1668(para) +msgid "" +"Click OK to close the Configure insert date/" +"time plugin dialog." +msgstr "" + +#: C/gedit.xml:1671(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" + +#: C/gedit.xml:1678(title) +msgid "Modelines Plugin" +msgstr "" + +#: C/gedit.xml:1679(para) +msgid "" +"The Modelines plugin allows you to set " +"preferences for individual documents. A modeline is a " +"line of text at the start or end of the document with settings that " +"gedit recognises." +msgstr "" + +#: C/gedit.xml:1680(para) +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" + +#: C/gedit.xml:1681(para) +msgid "You can set the following preferences with modelines:" +msgstr "" + +#: C/gedit.xml:1684(para) +msgid "Tab width" +msgstr "" + +#: C/gedit.xml:1687(para) +msgid "Indent width" +msgstr "" + +#: C/gedit.xml:1690(para) +msgid "Insert spaces instead of tabs" +msgstr "" + +#: C/gedit.xml:1696(para) +msgid "Right margin width" +msgstr "" + +#: C/gedit.xml:1700(para) +msgid "" +"The Modelines plugin supports a subset of the " +"options used by other text editors Emacs, " +"Kate and Vim." +msgstr "" + +#: C/gedit.xml:1703(title) +msgid "Emacs Modelines" +msgstr "" + +#: C/gedit.xml:1704(para) +msgid "" +"The first two lines of a document are scanned for Emacs modelines." +msgstr "" + +#: C/gedit.xml:1705(para) +msgid "" +"The Emacs options for tab-width, indent-offset, " +"indent-tabs-mode and autowrap are supported. For more information, see the " +"GNU Emacs Manual." +msgstr "" + +#: C/gedit.xml:1708(title) +msgid "Kate Modelines" +msgstr "" + +#: C/gedit.xml:1709(para) +msgid "" +"The first and last ten lines a document are scanned for Kate modelines." +msgstr "" + +#: C/gedit.xml:1710(para) +msgid "" +"The Kate options for tab-width, indent-width, " +"space-indent, word-wrap and word-wrap-column are supported. For more " +"information, see the Kate website." +msgstr "" + +#: C/gedit.xml:1713(title) +msgid "Vim Modelines" +msgstr "" + +#: C/gedit.xml:1714(para) +msgid "" +"The first and last three lines a document are scanned for Vim modelines." +msgstr "" + +#: C/gedit.xml:1715(para) +msgid "" +"The Vim options for et, expandtab, ts, tabstop, " +"sw, shiftwidth, wrap, and textwidth are supported. For more information, see " +"the Vim website." +msgstr "" + +#: C/gedit.xml:1720(title) +msgid "Python Console Plugin" +msgstr "" + +#: C/gedit.xml:1721(para) +msgid "" +"The Python Console Plugin allows you to run " +"commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This shows " +"recent output and a command prompt field." +msgstr "" + +#: C/gedit.xml:1722(para) +msgid "" +"Commands entered into the python console are not checked before they are " +"run. It is therefore possible to hang gedit, for " +"example by entering an infinite loop." +msgstr "" + +#: C/gedit.xml:1726(title) +msgid "Snippets Plugin" +msgstr "" + +#: C/gedit.xml:1727(para) +msgid "" +"The Snippets plugin allows you to store " +"frequently-used pieces of text, called snippets, and " +"insert them quickly into a document." +msgstr "" + +#: C/gedit.xml:1728(para) +msgid "" +"Snippets are specific to the language syntax of the current document. For " +"example, when you are working with an HTML document, you can choose from a " +"list of snippets that are useful for HTML. In addition, some snippets are " +"global, and are available in all documents." +msgstr "" + +#: C/gedit.xml:1729(para) +msgid "" +"A number of built-in snippets are installed with gedit, which can be modified." +msgstr "" + +#: C/gedit.xml:1732(title) +msgid "Inserting Snippets" +msgstr "" + +#: C/gedit.xml:1733(para) +msgid "" +"To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +"usually the first few letters of the snippet, or something else that is " +"short and easy to remember." +msgstr "" + +#: C/gedit.xml:1734(para) +msgid "" +"Alternatively, press CtrlSpace to see a list of snippets you can insert." +msgstr "" + +#: C/gedit.xml:1738(title) +msgid "Adding Snippets" +msgstr "" + +#: C/gedit.xml:1739(para) +msgid "To create a new snippet, do the following:" +msgstr "" + +#: C/gedit.xml:1742(para) +msgid "" +"Choose ToolsManage Snippets. The Snippets Manager window " +"opens." +msgstr "" + +#: C/gedit.xml:1745(para) +msgid "" +"The list of snippets is grouped by language. Select the language you want to " +"add a snippet to, or a snippet in that language group. To add a snippet for " +"all languages, choose Global at the top of the list. The syntax of the " +"document you are currently working with is shown by default." +msgstr "" + +#: C/gedit.xml:1748(para) +msgid "Click New. A new snippet appears in the list." +msgstr "" + +#: C/gedit.xml:1751(para) +msgid "Enter the following information for the new snippet:" +msgstr "" + +#: C/gedit.xml:1753(term) +msgid "Name" +msgstr "" + +#: C/gedit.xml:1755(para) +msgid "" +"Enter a name for the snippet in the text field within the snippet list. The " +"name of a snippet serves only as a reminder of its purpose. You can change " +"name of a snippet you create by clicking on it in the list." +msgstr "" + +#: C/gedit.xml:1758(term) +msgid "Snippet text" +msgstr "" + +#: C/gedit.xml:1760(para) +msgid "" +"Enter the text of the snippet in the Edit snippet text " +"box. For special codes you can use, see ." +msgstr "" + +#: C/gedit.xml:1761(para) +msgid "" +"You can switch back to the document window to copy text without closing the " +"Snippets Manager window." +msgstr "" + +#: C/gedit.xml:1764(term) +msgid "Tab Trigger" +msgstr "" + +#: C/gedit.xml:1766(para) +msgid "" +"Enter the tab trigger for the snippet. This is the text that you type before " +"pressing Tab to insert the snippet." +msgstr "" + +#: C/gedit.xml:1767(para) +msgid "" +"The tag must be either a single word comprising only letters, or any single " +"character. The Tab trigger will highlight in red if an " +"invalid tab trigger is entered." +msgstr "" + +#: C/gedit.xml:1770(term) +msgid "Shortcut key" +msgstr "" + +#: C/gedit.xml:1772(para) +msgid "Type a shortcut key to use for inserting the snippet." +msgstr "" + +#: C/gedit.xml:1781(title) +msgid "Editing and Removing Snippets" +msgstr "" + +#: C/gedit.xml:1782(para) +msgid "" +"To edit a snippet, select it in the list and make changes to its text and " +"activation properties." +msgstr "" + +#: C/gedit.xml:1783(para) +msgid "To rename a snippet, click it again in the list." +msgstr "" + +#: C/gedit.xml:1784(para) +msgid "" +"To restore a built-in snippet that you have changed, press Revert." +msgstr "" + +#: C/gedit.xml:1785(para) +msgid "" +"To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +"created yourself." +msgstr "" + +#: C/gedit.xml:1789(title) +msgid "Snippet Substitutions" +msgstr "" + +#: C/gedit.xml:1790(para) +msgid "" +"In addition to inserting stored text, a snippet can include customizable " +"text, or mark spaces where you can add text once the snippet is inserted in " +"your document." +msgstr "" + +#: C/gedit.xml:1794(para) +msgid "You can use the following placeholder codes in snippet text:" +msgstr "" + +#: C/gedit.xml:1796(term) +msgid "Tab placeholders" +msgstr "" + +#: C/gedit.xml:1798(para) +msgid "" +"$n defines a tab placeholder, " +"where n is any number from 1 upwards." +msgstr "" + +#: C/gedit.xml:1799(para) +msgid "" +"${n:default} defines a tab placeholder with a default value." +msgstr "" + +#: C/gedit.xml:1800(para) +msgid "" +"A tab placeholder marks a place in the snippet text where you can add extra " +"text after the snippet is inserted." +msgstr "" + +#: C/gedit.xml:1801(para) +msgid "" +"To use tab placeholders, insert the snippet as normal. The cursor is placed " +"at the first tab placeholder. Type text, and press Tab to " +"advance to the next tab placeholder. The number in the placeholder code " +"defines the order in which tab advances to each place in the text." +msgstr "" + +#: C/gedit.xml:1802(para) +msgid "" +"Press ShiftTab to " +"return to the previous tab placeholder. Pressing Tab when " +"there are no more tab placeholders moves the cursor to the end of the " +"snippet text, or to the end placeholder if it exists." +msgstr "" + +#: C/gedit.xml:1805(term) +msgid "Mirror placeholders" +msgstr "" + +#: C/gedit.xml:1807(para) +msgid "" +"A repeated tab placeholder will mirror the placeholder already defined. This " +"allows you to type in text only once that you want to appear several times " +"in the snippet." +msgstr "" + +#: C/gedit.xml:1810(term) +msgid "End placeholder" +msgstr "" + +#: C/gedit.xml:1812(para) +msgid "" +"$0 defines the end placeholder. This allows you to finish " +"working with the snippet with the cursor at a point other than the end of " +"the snippet text." +msgstr "" + +#: C/gedit.xml:1815(term) +msgid "Environmental variables" +msgstr "" + +#: C/gedit.xml:1817(para) +msgid "" +"Environmental variable such as $PATH and $HOME are substituted in snippet text. The following variables specific " +"to gedit can also be used:" +msgstr "" + +#: C/gedit.xml:1819(term) +msgid "$GEDIT_SELECTED_TEXT" +msgstr "" + +#: C/gedit.xml:1821(para) +msgid "The currently selected text." +msgstr "" + +#: C/gedit.xml:1824(term) +msgid "$GEDIT_FILENAME" +msgstr "" + +#: C/gedit.xml:1826(para) +msgid "" +"The full filename of the document, or an empty string if the document isn't " +"saved yet." +msgstr "" + +#: C/gedit.xml:1829(term) +msgid "$GEDIT_BASENAME" +msgstr "" + +#: C/gedit.xml:1831(para) +msgid "" +"The basename of the filename of the document, or an empty string if the " +"document isn't saved yet." +msgstr "" + +#: C/gedit.xml:1834(term) +msgid "$GEDIT_CURRENT_WORD" +msgstr "" + +#: C/gedit.xml:1836(para) +msgid "" +"The word at the cursor's location in the document. When this variable is " +"used, the current word will be replaced by the snippet text." +msgstr "" + +#: C/gedit.xml:1844(term) +msgid "Shell placeholders" +msgstr "" + +#: C/gedit.xml:1846(para) +msgid "" +"$(cmd) is replaced by the " +"result of executing cmd in a shell." +msgstr "" + +#: C/gedit.xml:1847(para) +msgid "" +"$(n:cmd) allows you to give this placeholder a reference, where " +"n is any number from 1 upwards. Use " +"$n to use the output from one shell " +"placeholder as input in another." +msgstr "" + +#: C/gedit.xml:1850(term) +msgid "Python placeholders" +msgstr "" + +#: C/gedit.xml:1852(para) +msgid "" +"$<cmd> is replaced by " +"the result of evaluating cmd in the python " +"interpreter." +msgstr "" + +#: C/gedit.xml:1853(para) +msgid "" +"$<a:cmd>" +" specifies another python placeholder as a dependency, where " +"a gives its order in the snippet. This allows you " +"to use python functions defined in another snippet. To specify several " +"dependencies, separate the numbers with commas thus: $<" +"a,b:cmd>" +msgstr "" + +#: C/gedit.xml:1854(para) +msgid "" +"To use a variable in all other python snippets, declare it as " +"global." +msgstr "" + +#: C/gedit.xml:1863(title) +msgid "Sort Plugin" +msgstr "" + +#: C/gedit.xml:1864(para) +msgid "" +"The Sort plugin arranges selected lines of text " +"into alphabetical order." +msgstr "" + +#: C/gedit.xml:1865(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" + +#: C/gedit.xml:1868(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "" + +#: C/gedit.xml:1871(para) +msgid "Select the lines of text you want to sort." +msgstr "" + +#: C/gedit.xml:1873(para) +msgid "" +"Choose EditSort. The Sort dialog opens." +msgstr "" + +#: C/gedit.xml:1876(para) +msgid "Choose the options you want for the sort:" +msgstr "" + +#: C/gedit.xml:1879(para) +msgid "" +"To arrange the text in reverse order, select Reverse order." +msgstr "" + +#: C/gedit.xml:1882(para) +msgid "" +"To delete duplicate lines, select Remove duplicates." +msgstr "" + +#: C/gedit.xml:1885(para) +msgid "To ignore case sensitivity, select Ignore case." +msgstr "" + +#: C/gedit.xml:1888(para) +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" + +#: C/gedit.xml:1893(para) +msgid "To perform the sort operation, click Sort." +msgstr "" + +#: C/gedit.xml:1900(title) +msgid "Spell Checker Plugin" +msgstr "" + +#: C/gedit.xml:1901(para) +msgid "" +"The Spell Checker plugin checks the spelling in " +"the selected text. You can configure gedit to " +"check the spelling automatically, or you can check the spelling manually, in " +"the specified language. The language setting, and the autocheck spelling " +"properties, apply per document. To use the Spell checker plugin, perform the " +"following steps:" +msgstr "" + +#: C/gedit.xml:1903(para) +msgid "" +"Choose ToolsSet Language to display the Set language " +"dialog. Select the appropriate language from the list. Click OK to close the Set language dialog." +msgstr "" + +#: C/gedit.xml:1906(para) +msgid "" +"To check the spelling automatically, choose ToolsAutocheck Spelling. To unset " +"the automatic spell check, choose ToolsAutocheck Spelling again. " +"When automatic spell checking is set, an icon is displayed beside the " +"Autocheck Spelling menu item. Automatic spell " +"checking is unset by default, each time gedit " +"starts." +msgstr "" + +#: C/gedit.xml:1907(para) +msgid "" +"Unknown spellings are displayed in a different color, and underlined. Right-" +"click on an unknown spelling, then select Spelling Suggestions from the popup menu:" +msgstr "" + +#: C/gedit.xml:1910(para) +msgid "" +"To replace the unknown spelling with another spelling in the list, select " +"the replacement spelling from the Spelling Suggestions " +"popup menu." +msgstr "" + +#: C/gedit.xml:1913(para) +msgid "" +"To add the unknown spelling to your personal dictionary, select " +"Spelling SuggestionsAdd." +msgstr "" + +#: C/gedit.xml:1916(para) +msgid "" +"To ignore all occurrences of the unknown spelling, so that they are no " +"longer flagged as unknown but are not added to your personal dictionary, " +"select Spelling SuggestionsIgnore All. The unknown word " +"is ignored in the current gedit session only." +msgstr "" + +#: C/gedit.xml:1921(para) +msgid "" +"To check the spelling manually, choose ToolsCheck Spelling." +msgstr "" + +#: C/gedit.xml:1923(para) +msgid "" +"If there are no spelling errors, an Information dialog " +"displays a message stating that the document does not contain misspelled " +"words. Click OK to close the Information dialog." +msgstr "" + +#: C/gedit.xml:1925(para) +msgid "" +"If there are spelling errors, the Check Spelling dialog " +"is displayed:" +msgstr "" + +#: C/gedit.xml:1928(para) +msgid "" +"The Misspelled word is displayed at the top of the " +"dialog." +msgstr "" + +#: C/gedit.xml:1931(para) +msgid "" +"A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +"selecting a spelling from the Suggestions list, or you " +"can enter text directly into the Change to text box." +msgstr "" + +#: C/gedit.xml:1934(para) +msgid "" +"To check the spelling of the text in the Change to text " +"box, click Check Word. If this is a known word, the " +"Suggestions list is replaced with the text " +"(correct spelling). If the word is not known, new entries appear " +"in the Suggestions list." +msgstr "" + +#: C/gedit.xml:1937(para) +msgid "" +"To ignore the current occurrence of the unknown word, click " +"Ignore. To ignore all occurrences of the unknown " +"word, click Ignore All. The unknown word is ignored " +"in the current gedit session only." +msgstr "" + +#: C/gedit.xml:1940(para) +msgid "" +"To change the current occurrence of the unknown word to the text in the " +"Change to text box, click Change. To change all occurrences of the unknown word to the text in the " +"Change to text box, click Change All." +msgstr "" + +#: C/gedit.xml:1943(para) +msgid "" +"To add the unknown word to your personal dictionary, click Add " +"word." +msgstr "" + +#: C/gedit.xml:1946(para) +msgid "" +"To close the Check Spelling dialog, click " +"Close." +msgstr "" +"ปิดกล่องโต้ตอบ ตรวจตัวสะกด ได้โดยคลิก ปิด" + +#: C/gedit.xml:1955(title) +msgid "Tag List Plugin" +msgstr "" + +#: C/gedit.xml:1956(para) +msgid "" +"The Tag List plugin allows you to insert common " +"tags from a list in the side pane." +msgstr "" + +#: C/gedit.xml:1957(para) +msgid "To use the Tag List plugin, perform the following steps:" +msgstr "การใช้ปลั๊กอินรายชื่อแท็ก ทำได้ตามขั้นตอนต่อไปนี้:" + +#: C/gedit.xml:1959(para) +msgid "" +"Choose ViewSide Pane." +msgstr "" +"เลือก มุมมองแถบข้าง" + +#: C/gedit.xml:1963(para) +msgid "" +"By default, the side pane shows a tab containing a list of open documents. " +"Click on the tab showing a + icon at the bottom of the side pane to show the " +"tag list tab." +msgstr "" +"โดยปกติแล้ว แถบข้างจะแสดงแท็บรายชื่อเอกสารที่เปิดอยู่ ให้คลิกแท็บที่มีไอคอน + " +"ที่ด้านล่างของแถบข้างเพื่อแสดงแท็บรายชื่อแท็ก" + +#: C/gedit.xml:1965(para) +msgid "" +"Select the appropriate tag category from the drop-down list. For example, " +"HTML - Tags." +msgstr "" + +#: C/gedit.xml:1968(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "" + +#: C/gedit.xml:1971(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" + +#: C/gedit.xml:1973(para) +msgid "" +"To insert a tag in the current file and change the focus from the side pane " +"to the display area, press Return." +msgstr "" + +#: C/gedit.xml:1976(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftReturn." +msgstr "" + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2 +#: C/gedit.xml:0(None) +msgid "translator-credits" +msgstr "Tosaporn Kijosoth , 2008" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_bold.png'; " +#~ "md5=950264711a3f0808bef134fa94b0a582" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_bold.png'; " +#~ "md5=950264711a3f0808bef134fa94b0a582" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_italic.png'; " +#~ "md5=feb9817676516ae91b9f6b1cd36a5eca" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_underline.png'; " +#~ "md5=58f5848d81ea3f0656ccce82ba32ec9c" + +#~ msgid "" +#~ "@@image: 'figures/gedit_format_strikethrough.png'; " +#~ "md5=cf962f5d9df721c1f4f4cef2780915ed" +#~ msgstr "" +#~ "@@image: 'figures/gedit_format_strikethrough.png'; " +#~ "md5=cf962f5d9df721c1f4f4cef2780915ed" + +#~ msgid "Colors" +#~ msgstr "สี" + +#~ msgid "Syntax Highlighting Preferences" +#~ msgstr "การปรับแต่งการเน้นไวยากรณ์" + +#~ msgid "Enable syntax highlighting" +#~ msgstr "เปิดใช้งานการเน้นไวยากรณ์" + +#~ msgid "Highlight mode" +#~ msgstr "โหมดเน้น" + +#~ msgid "Format buttons" +#~ msgstr "ปุ่มรูปแบบข้อความ" + +#~ msgid "Button" +#~ msgstr "ปุ่ม" + +#~ msgid "Format" +#~ msgstr "รูปแบบ" diff --git a/help/uk/uk.po b/help/uk/uk.po new file mode 100644 index 0000000..1570081 --- /dev/null +++ b/help/uk/uk.po @@ -0,0 +1,3535 @@ +# Ukrainian translation to gedit manual. +# Copyright © Free Software Foundation, 2007 +# This file is distributed under the same license as the gedit package. +# +# Maxim Dziumanenko , 2007. +# Назарій Ріттер , 2014. +# Yuri Chornoivan , 2020. +msgid "" +msgstr "" +"Project-Id-Version: gedit manual\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-11-13 22:20+0000\n" +"PO-Revision-Date: 2020-11-14 09:57+0200\n" +"Last-Translator: Yuri Chornoivan \n" +"Language-Team: Ukrainian \n" +"Language: uk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 20.11.70\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<" +"=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Максим Дзюманенко , 2007\n" +"Назарій Ріттер , 2014" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "Зміна кольорів тексту та тла у «gedit»." + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:11 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Катерина Герасимова" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "Зміна кольорової схеми" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "" +"«gedit» містить декілька різних кольорових схем, дозволяючи, " +"таким чином, змінювати вигляд головного текстового вікна." + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "Щоб змінити схему кольорів:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 C/gedit-change-default-font.page:29 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"Натисніть кнопку меню у верхньому правому куті вікна і виберіть «Параметри» «Шрифт і кольори»." + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "Виберіть бажану кольорову схему." + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "Нову кольорову схему буде застосовано негайно." + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "Використання користувацької кольорової схеми" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "" +"Також можна використовувати кольорові схеми, створені іншими користувачами, " +"чи створювати свої власні." + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"Інструкції зі встановлення користувацьких кольорових схем, а також зразки " +"кольорових схем, які можна завантажити та використовувати, доступні у вікі " +"gedit." + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "Використання нетипового шрифту для вашого тексту у «gedit»." + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:13 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:20 +msgid "Change the default font" +msgstr "Зміна типового шрифту" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:22 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"«gedit» типово використовує системний моноширинний шрифт, однак " +"можна змінити типовий шрифт «gedit» на той, який відповідає Вашим " +"уподобанням." + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:27 +msgid "To change the default font in gedit:" +msgstr "Щоб змінити типовий шрифт в «gedit»:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +#| msgid "" +#| "Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed width font.\"" +msgstr "" +"Зніміть прапорець біля фрази, «Використовувати системний моноширинний шрифт»." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:34 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"Клацніть на назві поточного шрифту. gedit відкриє вікно вибору " +"шрифту, дозволяючи, таким чином, зі списку доступних шрифтів вибрати той, " +"який Вам підходить." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"Після вибору нового шрифту, використовуйте повзунок, що нижче " +"списку шрифтів, для встановлення типового розміру шрифту." + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:39 +#| msgid "Click Select, and then click Close." +msgid "Click Select, and then close the dialog." +msgstr "Клацніть на «Вибрати», а потім закрийте діалогове вікно." + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "Завершення роботи з файлом." + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "Закриття файла" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"Щоб закрити файл у «gedit», натисніть кнопку × у правій частині вкладки файла або натисніть комбінацію клавіш " +"Ctrl W." + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"Будь-яка з цих дій закриє файл в «gedit». Якщо файл міститиме " +"незбережені зміни, «gedit» запропонує їх зберегти перед закриттям " +"файла." + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "Відкриття нового файла для редагування." + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "Створення нового файла" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"Найпростіший спосіб створити новий файл в «gedit» – клацнути на " +"кнопці «Створити новий документ», що з лівої сторони панелі " +"заголовка, або натиснути CtrlT." + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"Будь-яка з цих дій створить новий файл у вікні «gedit». Якщо в " +"«gedit» вже є інші відкриті файли, то новий файл з'явиться в " +"новій вкладці справа від цих файлів." + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "Використання прав доступу адміністратора для редагування файла." + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "Редагування файла з правами адміністратора" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"Редагування файлів з правами адміністратора є потенційно небезпечним і може " +"пошкодити Вашу систему. Будьте дуже обережні при редагуванні файлів з " +"правами адміністратора." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "" +"Для редагування файлів з правами адміністратора, запустіть «gedit» з терміналу, ввівши:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"Використовуючи команду «sudo», потрібно правильно ввести свій " +"пароль перед тим, як відкриється «gedit»." + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"Як альтернатива команді «sudo», отримати права адміністратора " +"можна ввівши:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "" +"Потім запустити «gedit», використовуючи команду «gedit»." + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"Після відкриття «gedit» з правами адміністратора, ці права будуть " +"доступні до закриття програми gedit." + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "Дізнайтеся більше про основи роботи з файлами у «gedit»." + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "Основи роботи з файлами: відкривання, закривання та збереження файлів" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"Якщо Ви – новачок в «gedit», то ці розділи допоможуть Вам у " +"створенні, збереженні та відкриванні/закриванні файлів." + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "Використання усього екрана для редагування у «gedit»." + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "Використання повноекранного режиму" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"Працюючи з великими документами, може бути корисним працювати в " +"повноекранному режимі gedit. Використання повноекранного режиму " +"приховує смужку меню, панель вкладок та панель " +"інструментів, показуючи більше тексту та дозволяючи краще " +"сконцентруватися на своїх задачах." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "Увімкнення повноекранного режиму" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"Щоб увімкнути повноекранний режим, натисніть F11. Меню " +"«gedit», заголовок вікна та панель вкладок стануть прихованими, а " +"текст поточного файла залишиться видимим." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"Якщо під час роботи в повноекранному режимі, потрібно виконати дію з меню " +"«gedit», перемістіть вказівник миші до верхньої частини екрану. " +"Смужка меню «gedit» з'явиться знову, та можна буде вибрати " +"потрібну дію." + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"Для перемикання між відкритими вкладками в повноекранному режимі, натисніть " +"або CtrlAltPgUp або " +"CtrlAltPgDn." + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "Вимкнення повноекранного режиму" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "" +"Щоб вимкнути повноекранний режим і повернутися в стандартне вікно " +"«gedit», натисніть F11." + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"Також можна перемістити курсор миші до верхньої частини екрану та зачекати " +"до появи смужки меню. Коли смужка меню з'явиться, " +"виберіть «Вийти з повноекранного режиму»." + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "Використання бічної панелі «gedit» для навігації файловою системою." + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +msgid "View and open files from the side panel" +msgstr "Перегляд та відкриття файлів з бічної панелі" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"Найпоширенішим способом перемикання між файлами в «gedit» є " +"використання вкладок, що у верхній частині вікна «gedit». Однак, " +"в деяких випадках, особливо, якщо Ви працюєте з великою кількістю відкритих " +"файлів, може бути простішим користуватися бічною панеллю." + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"Щоб активувати бічну панель, виберіть «Вигляд» " +"«Бічна панель» або натисніть клавішу F9." + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "" +"Завжди можна увімкнути/вимкнути бічну панель, натиснувши F9." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +msgid "Opening files from the side panel" +msgstr "Відкриття файлів з бічної панелі" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"Для відкриття файлів з бічної панелі, спочатку відкрийте бічну панель, " +"вибравши «Перегляд» «Бічна панель» " +"(або просто натиснувши F9), а потім виберіть «Оглядач " +"файлів» зі спадного списку у верхній частині панелі." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"Це активує режим Оглядача файлів бічної панелі. Після цього можна " +"використовувати навігаційні кнопки, що в верхній частині панелі, для " +"розміщування та відкривання потрібних файлів." + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +msgid "Using the side panel to switch between open files" +msgstr "Використання бічної панелі для перемикання між відкритими файлами" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"Як тільки відкрито декілька файлів, можна користуватися бічною панеллю для " +"перемикання між відкритими файлами. Щоб переглянути список відкритих файлів, " +"виберіть пункт «Документи» зі спадного списку у верхній частині " +"панелі." + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "" +"Клацання на назві будь-якого файла на бічній панелі відкриває цей файл для " +"редагування." + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "Відкриття файлів для роботи з ними." + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "Відкривання файла або набору файлів" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"Щоб відкрити файл в «gedit», клацніть на кнопці «Відкрити» або натисніть CtrlO." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"Відкриється діалогове вікно «Відкрити». Використовуйте мишу або " +"клавіатуру для вибору файла для відкриття, а потім клацніть на " +"«Відкрити». Вибраний файл відкриється в новій вкладці." + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"Щоб закрити діалогове вікно «Відкрити» без відкриття файла, " +"клацніть на «Скасувати»." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"Можна використовувати клавіші Ctrl та Shift для " +"відкриття більш, ніж одного файла за раз. Якщо утримувати клавішу Ctrl під час вибору декількох файлів і клацнути на «Відкрити», то " +"відкриються всі вибрані файли." + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"Утримування клавіші Shift під час вибору декількох файлів " +"відкриває перший та останній вибраний файли та всі файли, що знаходяться між " +"ними." + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "Доступ до файлів, які зберігаються на іншому комп'ютері." + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "Відкриття файла, що знаходиться на сервері" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"Перед відкриванням файла, що знаходиться на сервері, з «gedit», " +"потрібно знати деяку технічну інформацію про сервер. Наприклад, IP-адресу чи " +"URL сервера, або, можливо, потрібно знати тип сервера (HTTP, FTP, тощо)." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"Також, деякі типи серверів накладають обмеження на операції з файлами, що " +"зберігаються на цьому сервері. Наприклад, можна відкрити файл з сервера, але " +"зберегти зміни, внесені в файл, може бути потрібно на свій комп'ютер." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"Маючи на увазі ці застереження, виконайте наступні дії для відкриття файла з " +"сервера, використовуючи «gedit»:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +msgid "In the header bar, click on Open." +msgstr "На смужці заголовка натисніть кнопку «Відкрити»." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "Натисніть «Інші місця»." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "Введіть IP-адресу чи URL потрібного сервера." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "Знайдіть та виберіть файл, який хочете відкрити." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "" +"Скористайтеся спадним списком кодувань символів, щоб вибрати відповідне " +"кодування." + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "Клацніть на «Відкрити»." + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "" +"Допустимі типи URI включають http:, ftp:, файл: та інші методи, що " +"підтримуються GVfs." + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"Файли з деякими типами URI відкриваються лише для читання, і будь-які зміни " +"потрібно зберегти в іншому місці. HTTP дозволяє лише читати файли. Файли " +"відкриті з FTPдоступні лише для читання, оскільки не всі сервери FTP можуть " +"коректно зберігати віддалені файли." + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +msgid "Access files that you have previously opened in gedit." +msgstr "Доступ до нещодавно відкритих у «gedit» файлів." + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "Відкриття останнього файла знову" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"Типово, «gedit» забезпечує легкий доступ до останніх десяти " +"файлів, які раніше було відкрито у «gedit». Щоб відкрити останні " +"файли:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "" +"Клацніть на кнопці зі стрілкою, яку розташовано поряд із кнопкою " +"«Відкрити» на панелі заголовка." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +msgid "" +"gedit will display a menu with the ten most recently-used files." +msgstr "" +"«gedit» покаже меню із десятьма останніми використаними файлами." + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "Виберіть потрібний файл. Він відкриється в новій вкладці." + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse over a recently-used file from the menu, the " +"full path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" +"Якщо ви наведете вказівник миші на пункт файла у меню останніх відкритих " +"файлів, на смужці стану у нижній частині вікна «gedit» буде " +"показано шлях до відповідного файла повністю." + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "Використання додатків для налаштовування роботи «gedit»." + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "Налаштування та користування додатків «gedit»" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"Можна зробити більше з «gedit», використовуючи додатки. Декілька " +"додатків встановлено типово, а величезна кількість інших додатків доступна " +"окремо." + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"Багато дистрибутивів Linux роблять доступними групу цих додатків як пакунок " +"«gedit-plugins». Встановіть пакунок «gedit-plugins», " +"щоб зробити ці додаткові додатки доступними в «gedit»." + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"Встановити gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "Типові додатки «gedit»" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "Додаткові додатки «gedit»" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "Змінює регістр вибраного тексту." + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "Змінити регістр" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"Цей додаток допомагає змінити регістр вибраної частини тексту. Можна " +"змінити, щоб текст був у нижньому або у верхньому регістрі, інвертувати " +"регістр або застосувати регістр заголовку. Щоб увімкнути цей додаток, " +"виберіть «gedit»«Параметри» «Додатки»«Змінити регістр»." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "" +"Як тільки додаток «Змінити регістр» увімкнено, його можна " +"використовувати, виконавши наступні дії:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "Виділіть фрагмент тексту, який потрібно змінити." + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"Виберіть «gedit»«Змінити регістр»" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "Виберіть потрібний варіант форматування тексту." + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "Текст буде змінено негайно." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "" +"Опція «Інвертувати регістр» змінює нижній регістр символів на " +"верхній, а верхній регістр символів на верхній." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"Опція «Регістр заголовку» змінює регістр перших літер кожного " +"слова на верхній. Регістр всіх інших літер змінюється на нижній." + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"Якщо текст не вибрано, елемент «Змінити регістр» буде недоступним. " +"Потрібно вибрати фрагмент тексту перед використанням елементу «Змінити " +"регістр»." + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "Перегляд статистики документа." + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "Статистика документа" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"Додаток «Статистика документа» надає різні статистичні дані про " +"поточний документ. Щоб увімкнути цей додаток, виберіть «gedit»«Параметри» " +"«Додатки»«Статистика документа»." + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "Використання «Статистики документа»" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"Як тільки додаток увімкнено, використовуйте його, вибравши " +"«Інструменти» \"\"«Статистика документа». У вікні буде показано інформацію про документ, включаючи кількість " +"слів, рядків, символів, символів без пробілів та розмір файла в байтах." + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"Можна також використовувати «Статистику документа» для показу " +"інформації про фрагмент документа. Щоб зробити це, використовуйте вказівник " +"миші для вибору фрагменту тексту, який потрібно дослідити, виберіть " +"«Інструменти»«Статистика документа». " +"Gedit покаже інформацію і про весь документ, і про фрагмент " +"вибраного тексту." + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "Виконує скрипти в поточних файлах та взаємодіє з іншими програмами." + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "Зовнішні інструменти" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"Додаток «Зовнішні інструменти» може допомогти спростити повторювані " +"завдання. Особливо, він розширює можливості «gedit», допомагаючи " +"виконувати скрипти в робочих файлах та дозволяє «gedit» " +"взаємодіяти з іншими програмами на Вашому комп'ютері. Щоб увімкнути додаток " +"«Зовнішні інструменти», виберіть «gedit» «Параметри»«Додатки» «Зовнішні інструменти»." + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "Налаштування додатка «Зовнішні інструменти»" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"Як тільки додаток увімкнено, його потрібно налаштувати відповідно до своїх " +"потреб. Отримати доступ до опцій налаштування можна вибравши " +"«Інструменти»«Управління зовнішніми інструментами»." + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"Цей додаток – для досвідчених користувачів і для ефективного використання, " +"він вимагає знання скриптів. Використовуйте цей додаток обережно, оскільки, " +"помилки у скриптах можуть ненавмисно зіпсувати Вашу роботу." + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +msgid "Use the side panel to browse and open files." +msgstr "Використовує бічну панель для огляду та відкриття файлів" + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +msgid "File browser panel" +msgstr "Панель оглядача файлів" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"Залежно від того, як використовується «gedit», може бути корисним " +"використовувати додаток «Панель оглядача файлів». Цей додаток " +"вбудовує оглядач файлів в бічну панель, надаючи легкий доступ до " +"найчастіше використовуваних файлів." + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"Увімкнути бічну панель можна, вибравши «gedit»«Параметри» «Додатки»«Панель оглядача файлів»." + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "Вставляє поточну дату/час в поточну позицію курсору." + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "Вставка дати/часу" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" +"Як можна здогадатися із назви цього додатка, додаток Вставка дати/часу надає вам змогу вставити дату і/або час до поточної позиції курсора." + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "Щоб увімкнути додаток:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"Натисніть кнопку меню у верхньому правому куті вікна і виберіть «Параметри» «Додатки»." + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "" +"Виберіть «Вставити дату або час», щоб " +"увімкнути додаток." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"Щоб скористатися додатком, натисніть кнопку меню у верхньому правому куті " +"вікна і виберіть «Інструменти» «Вставити дату і час»." + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"Типово, додаток «Вставити дату/час» щоразу буде пропонувати " +"вибрати потрібний формат дати/часу. Однак, можна вибрати типовий формат дати " +"та часу, натиснувши кнопку меню у верхньому правому куті вікна програми і " +"вибравши «Параметри» «Додатки»«Вставити дату/час»«Налаштування»." + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "Як встановити сторонні додатки." + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "Додаткові додатки «gedit»" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"Встановлення сторонніх додатків надає додаткової функціональності, яка " +"недоступна в стандартних додатках «gedit», або навіть в " +"додаткових додатках, які є частиною пакунку «gedit-plugins». " +"Онлайн-список сторонніх додатків міститься тут." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "" +"Під встановленням стороннього додатка мається на увазі завантаження додатка, " +"розміщення його в правильному каталозі та активування додатка." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"Зазвичай, можна просто завантажити додаток з інтернет-сторінки додатка, " +"однак може знадобитися програма для контролю версії, така як «git», «bazaar» або «subversion», щоб скопіювати з " +"інтернету сховище програмного забезпечення додатка. Дивіться документацію " +"додатка для отримання інформації про додаток." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"Помістіть файли додатка в каталог «/home/ім'я_користувача/." +"local/share/gedit/plugins»." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "" +"Звичайно ж, замініть «ім'я_користувача» на своє власне ім'я." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"Після розміщення файлів додатка у відповідному каталозі, додаток з'явиться в " +"меню «Параметри». Натисніть кнопку меню у верхньому правому куті вікна і " +"виберіть «Параметри»«Додатки» [Назва додатка], щоб увімкнути " +"додаток." + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "Клацніть на «Закрити»." + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "Після увімкнення додатка, він має стати доступним для користування." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +"Каталог «.local» є типово прихованим. Щоб показати його та інші " +"приховані файли, виберіть «Вигляд»«Показувати " +"приховані файли» або натисніть CtrlH." + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"Якщо каталог «.local/share/gedit/plugins/» відсутній у Вашій " +"системі, його потрібно створити." + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Підтримка режиму рядків в стилі «Emacs», «Kate» та «Vim»." + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "Режим рядків" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"Додаток «Режим рядків» дає gedit змогу аналізувати " +"текстові рядки на початку та в кінці файла, та потім застосовувати набір " +"параметрів документа до файла. Додаток «Режим рядків» підтримує " +"підмножину опцій, що використовуються текстовими редакторами «Emacs», «Kate» та «Vim»." + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"Щоб увімкнути додаток «Режим рядків», виберіть «gedit» «Параметри»«Додатки»«Режим рядків»." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "Загальні параметри «Режиму рядків»" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "" +"Можна вибрати наступні параметри, використовуючи режим рядків в «gedit»:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Ширина табуляції" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "Ширина відступу" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "Вставка пробілів замість табуляції" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "Перенесення тексту" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "Ширина правого поля" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "" +"Параметри, встановленні з використанням режиму рядків, мають пріоритет над " +"іншими параметрами, вказаними в діалоговому вікні параметрів." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Режим рядків «Emacs»" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"Перші два рядки документа зчитуються для режиму рядків «Emacs». " +"«gedit» підтримує наступні параметри режиму рядків «Emacs»:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Ширина табуляції" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "Зміщення відступу" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Режим відступу-табуляцій" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "Автоматичне перенесення тексту" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"Щоб дізнатися більше про режим рядків «Emacs», перегляньте довідку з «GNU " +"Emacs»." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Режим рядків «Kate»" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"Десять перших та десять останніх рядків документа зчитуються для режиму " +"рядків «Kate». «gedit» підтримує наступні параметри " +"режиму рядків «Kate»:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "ширина табуляції" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "ширина відступу" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "пробіл-відступ" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "перенесення слів" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "перенесення слів стовпчиком" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"Щоб дізнатися більше про режим рядків «Kate», відвідайте інтернет-сторінку «Kate»." + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Режим рядків «Vim»" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"Три перших та три останніх рядки документа зчитуються для режиму рядків " +"«Vim». «gedit» підтримує наступні параметри режиму " +"рядків «Vim»:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "рт (розгортання табуляції)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "пт (позиція табуляції)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "шз (ширина зсуву)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "перенесення" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "ширина тексту" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"Щоб дізнатися більше про режим рядків «Vim», відвідайте інтернет-сторінку «Vim»." + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "Додає інтерактивну консоль «Python» до нижньої панелі." + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Консоль «Python»" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"Можна додати консоль «Python» до нижньої панелі, отримавши, таким чином, " +"змогу тестувати скрипти «Python», не виходячи з «gedit». Щоб " +"увімкнути консоль «Python», виберіть «gedit» «Параметри»«Додатки» " +"«Консоль «Python»»." + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"Як тільки консоль «Python» увімкнено, її можна відкрити вибравши " +"«Вигляд»«Нижня панель»." + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"Якщо увімкнути додаток «Вбудований термінал», то «Консоль " +"«Python»» відкриється в окремій вкладці на нижній панелі." + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "Швидко відкриває файли або набір файлів." + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "Швидке відкриття" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"Як видно з назви, додаток «Швидке відкриття» допомагає відкривати " +"файли швидше, ніж при використанні стандартних методів відкривання файлів. " +"Щоб увімкнути цей додаток, виберіть «gedit» «Параметри»«Додатки»«Швидке відкриття»." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "" +"Як тільки додаток «Швидке відкриття» увімкнено, його можна " +"використовувати як описано нижче:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"Відкрийте діалогове вікно «Швидкого відкриття», натиснувши " +"CtrlAltO, або вибравши " +"«Швидке відкриття»." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "З'явиться файлове діалогове вікно «Швидке відкриття»." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "" +"Використовуйте мишу для вибору файла або файлів, які потрібно відкрити." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "" +"Щоб вибрати декілька окремих файлів, утримуючи клавішу Ctrl, " +"клацайте на файлах, які потрібно відкрити." + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"Щоб вибрати групу файлів, клацніть на першому файлі, який потрібно відкрити, " +"та утримуючи клавішу Shift, клацніть на останньому файлі, який " +"потрібно відкрити." + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "«Швидке відкриття» буде шукати файли в:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "каталозі поточного відкритого документа" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"кореневому каталозі додатка «Панель " +"оглядача файлів»" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "" +"останніх документах, які також буде показано у теці «Нещодавні» " +"в «Файлах»" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "Каталогах, які було позначено в «Файлах»" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "в каталозі Вашої «Стільниці»" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "в Вашій «Домівці»" + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"«Швидке відкриття» показує файл у будь-якому з вищеназваних " +"каталогів, незважаючи на те, чи відкривалися вони раніше." + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "" +"Використовує фрагменти для швидкої вставки фрагментів тексту, що часто " +"використовуються." + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "Фрагменти" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"«Фрагменти» забезпечують зручний спосіб вставки фрагментів коду, " +"що часто повторюються, у файли. Наприклад, фрагмент HTML для тегу <" +"img> буде вставляти як початкові та завершальні фрагменти тегу так " +"і фіксовані місця для введення атрибутів зображення. Це може зробити " +"написання коду простішим та швидшим." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "Увімкнення додатка «Фрагменти»" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "Щоб увімкнути додаток «Фрагменти»:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"Виберіть «gedit» «Параметри» «Додатки»." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "" +"Виберіть «Фрагменти», щоб увімкнути додаток." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "Огляд фрагментів" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "Щоб оглянути доступні фрагменти:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Виберіть «Інструменти» «Управління фрагментами»." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"Переконайтеся, що синтаксис встановлено вірно. Статусна панель в нижній " +"частині вікна «gedit» показує поточні мовні налаштування. Ці " +"мовні налаштування «gedit» вставляти правильні фрагменти. «Gedit», зазвичай, визначає мову або синтаксис файла, що використовується, " +"однак, інколи, може буде потрібно встановити його." + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "В цьому прикладі, встановлено мову HTML." + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "Перегляньте фрагменти, доступні для Вашої мови або синтаксису." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "Використання «Фрагментів»" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "Щоб вставити фрагмент до поточного документа:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "Введіть назву потрібного фрагменту будь-де в поточному документі." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "" +"Натисніть Tab, щоб вставити фрагмент, асоційований зі введеним " +"терміном." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "Приклад використання «Фрагментів»" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"Наприклад, якщо встановлено синтаксис HTML, введіть «head » та натисніть клавішу Tab. Текст буде доповнено фрагментом " +"як:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html;" +" charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html;" +" charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "Додавання фрагментів" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"Можна додавати фрагменти, що будуть діяти або глобально (тобто, незалежно " +"від мови), або лише за певного синтаксису." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"Виберіть «Інструменти» " +"«Управління фрагментами»." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"З бічної панелі «Управління фрагментами» виберіть потрібний " +"синтаксис та клацніть на кнопці «+», щоб показати наявні фрагменти для " +"обраного синтаксису." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"Щоб додати фрагмент, що діє глобально (тобто, коли не встановлено певного " +"синтаксису чи мови для документа), виберіть «Глобальний» з бічної " +"панелі «Управління фрагментами»." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "" +"Щоб додати новий фрагмент, клацніть на піктограмі «плюс», що на бічній " +"панелі «Управління фрагментами»." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "" +"Введіть назву нового фрагменту. Назва фрагменту може відрізнятися від самого " +"фрагменту, що додається." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"В розділі «Активація» потрібно ввести термін для " +"текстовому полі «Тригеру табуляції:». Цей термін " +"буди використовуватися для вставки даного фрагменту." + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"Якщо хочете вставляти фрагмент за допомогою комбінації клавіш, клацніть " +"вказівником миші в текстовому полі «Комбінація клавіш:» та натисніть потрібну комбінацію клавіш. Як тільки клавіші були " +"натиснуті, комбінацію клавіш буде встановлено." + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"Під текстовим полем «Змінити:», введіть потрібний " +"текст фрагменту. Можна використовувати «${n}», для вказання " +"змінних, де «n» замінюється числом, що означає порядковий номер " +"включених змінних." + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "Ще один приклад використання «Фрагментів»" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"Припустимо, було створено фрагмент з терміном «вітання» в «Тригері табуляції:». Текстове поле «Змінити:» містить:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +"\" <вітання>Привіт, ${1:чудовий}${2:дивовижний} світе!\n" +" </вітання>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"Ввести цей фрагмент можна набравши в документі «вітання» та " +"натиснувши клавішу Tab. Буде вставлено наступний текстовий " +"фрагмент:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <вітання>Привіт, чудовийдивовижний світе!</вітання>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"Слова «чудовий» та «дивовижний» можна зберегти або видалити, на Ваш вибір. " +"Щоб зробити це, натисніть Tab, щоб вибрати між «чудовий» та " +"«дивовижний», та натисніть Del, щоб видалити найменш придатний " +"варіант." + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "Сортує текстові рядки в алфавітному порядку." + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "Сортування" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "" +"Додаток «Сортування» впорядковує виділені текстові рядки в алфавітному " +"порядку." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "Увімкнення додатка «Сортування»" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "Щоб увімкнути додаток «Сортування»:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "" +"Виберіть «Сортування», щоб увімкнути додаток." + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "Використання додатка «Сортування»" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "Щоб скористатися додатком «Сортування», виконайте такі дії:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "Позначте потрібні рядки тексту." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"Виберіть «Засоби» «Упорядкувати…»." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "" +"Відкриється діалогове вікно «Сортування», дозволяючи вибрати між " +"декількома варіантами сортування:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "" +"«У зворотньому порядку» відсортує текст у зворотньому алфавітному " +"порядку." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "«Видалити дублікати» видалить дублікати зі списку." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "«Без врахування регістру» буде ігнорувати регістр." + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "" +"Щоб при сортуванні не враховувались символи на початку рядків, встановіть " +"перший символ для використання при сортуванні в полі лічильника " +"«Починати з»." + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "Для запуску операції сортування, клацніть на «Сортувати»." + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "Встановлення певного порядку друку сторінок." + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "Друкування в потрібному порядку" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "Зворотній порядок" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"Принтери, зазвичай, друкують спочатку першу сторінку, а в кінці – останню, " +"тому сторінки виявляються в зворотньому порядку, коли їх забирають. Щоб " +"змінити порядок:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"Виберіть «Файл» «Друкувати»." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"У вкладці «Загальні» діалогового вікна «Друкувати», " +"під «Копіями», виберіть «У зворотньому порядку»." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "Останню сторінку буде надруковано першою і так далі." + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "Впорядкування" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"Якщо друкується більш, ніж один екземпляр документа, то, типово, роздруківки " +"будуть згруповані за номерами сторінок (наприклад, копії першої сторінки, " +"потім копії другої сторінки, і так далі). Впорядкування дозволяє групувати " +"сторінки одного екземпляру." + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "Для впорядкування:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"Клацніть на «Файл» «Друкувати»." + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"У вкладці «Загальні» діалогового вікна «Друкувати», " +"під «Копіями», виберіть «Впорядкувати»." + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "Друк створених у «gedit» файлів." + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "Друкування документів" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"Щоб друкувати в «gedit», потрібно під'єднати та налаштувати " +"принтер. Якщо Ви не зробили цього, зверніться до довідки з друкування для GNOME." + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "В «gedit» можна друкувати і у файл і на папір." + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "Попередній перегляд" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"За допомогою «Попередній перегляд», перед друкуванням документа, " +"можна попередньо переглянути, який вигляд буде мати роздрукований документ. " +"Щоб попередньо переглянути документ:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"Виберіть «Файл» «Попередній перегляд». Також, можна натиснути " +"ShiftCtrl P." + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"Попередній перегляд документа відкриється в тій самій вкладці, що й файл. " +"Можна переглянути цей попередній вигляд за допомогою навігаційних кнопок та " +"інструментів на панелі інструментів вгорі вкладки попереднього перегляду " +"документа. Щоб закрити попередній перегляд та повернутися до документа " +"клацніть на «Закрити попередній перегляд»." + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "Друкування на папір" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "" +"Можна роздрукувати документи на папір, використовуючи локальний або " +"віддалений принтер. Щоб роздрукувати файл:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"Виберіть «Файл» «Друкувати» «Загальні»." + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "Виберіть потрібний принтер зі списку доступних принтерів." + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"Можна попередньо переглянути файл, використовуючи «Попередній перегляд» і, як тільки налаштування Вас задовольняють, " +"клацніть на «Друкувати», щоб відправити файл до " +"принтеру." + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"Крім того, у вкладці «Параметри сторінки» можна " +"вибрати параметри «Розмітки» та «Паперу». Оскільки ці налаштування зустрічаються в програмах " +"GNOME, зверніться до довідки з «Параметри розмітки та паперу»." + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "Друкування декількох екземплярів та між визначеним діапазоном" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"Можна задати параметри «Діапазону» та «Копій»:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "Друкування до файла" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"Можна також використовувати «gedit» для друкування до файла. Щоб " +"друкувати документ до файла іншого формату:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"Виберіть «Файл» «Друкувати» «Друкувати до файла»." + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "Друкування доступне для наступних форматів файлів на вибір:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "Portable Document Format (.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "Scalable Vector Graphic (.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "" +"Щоб надрукувати документ до файла, клацніть на «Друкувати»." + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "Виберіть сторінки, які ви хочете надрукувати." + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "Друк лише частини сторінок" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"Можна друкувати лише деякі сторінки документа. Наприклад, як ввести номери " +"сторінок «1,3,5-7,9», то буде надруковано лише 1, 3, 5, 6, 7 та 9 сторінки. " +"Щоб роздрукувати вибрані сторінки:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"Виберіть «Файл» «Друкувати…»." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"У вкладці «Загальні» діалогового вікна «Друкувати», " +"виберіть «Сторінки» з розділу «Діапазон»." + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "" +"Введіть номери сторінок, які потрібно роздрукувати, розділяючи їх комами. " +"Використовуйте дефіс, для задання діапазону сторінок." + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "Короткий вступ до «gedit»." + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "Початок роботи з «gedit»" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"«gedit» – повнофункціональний текстовий редактор для стільничного " +"середовища «GNOME». Його можна використовувати для створення звичайних " +"нотаток та документів, або, використовуючи деякі його вдосконалені функції, " +"зробити його своїм середовищем для розробки програмного забезпечення." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"Як тільки «gedit» запущено, можна відразу ж починати писати в " +"ньому. Щоб зберегти написане, просто натисніть кнопку «Зберегти», " +"що на панелі заголовка «gedit»." + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"Щоб дізнатися про додаткові функції «gedit» та отримати допомогу " +"з виконанням додаткових задач, відвідайте інші розділи довідки з «gedit»." + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "Заміна фрагментів тексту у файлі." + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "Заміна тексту" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"Редагування тексту може забирати багато часу. Щоб зекономити час, " +"«gedit» має функцію «Замінити», яка дозволяє знайти та " +"замінити фрагменти тексту." + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "Заміна тексту з «gedit»" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"Відкрийте інструмент «Замінити», клацнувши на кнопці >Меню«Замінити і замінити…» або натиснувши CtrlH." + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +msgid "Enter the text that you wish to replace into the Find field." +msgstr "У полі «Знайти:» введіть текст, який потрібно замінити." + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +msgid "Enter the new, replacement text into the Replace with field." +msgstr "" +"У полі «Замінити на» введіть текст, на який потрібно замінити." + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "" +"Як тільки початковий текст та текст заміни було введено, можна вибрати " +"додаткові параметри пошуку. Можна вибрати, що потрібно замінити:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "" +"Щоб замінити лише наступне збіг, клацніть на «Замінити»." + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"Щоб замінити всі збіг шуканого тексту, клацніть на «Замінити " +"все»." + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"Використовуйте функцію «Замінити все» обережно. «Замінити " +"все» впливає на весь текст Вашого файла, та не дозволяє виділяти " +"фрагменти тексту, які будуть замінені." + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "Більше параметрів" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "Якщо потрібно, можна додати додаткові параметри для пошуку:" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "Врахування регістру" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"Параметр «Враховувати регістр» дозволяє зробити пошук чутливим до " +"регістру. Якщо цей параметр вибрано, пошук буде чутливим до регістру. Якщо " +"ні, пошук буде виконуватися без врахування регістру." + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "Лише ціле слово" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"Використовуйте цей параметр для пошуку певного слова без врахування " +"фрагментів інших слів. Наприклад, якщо шукане слово – «кіт», то при цьому " +"вибраному параметрі, буде знайдено слово «кіт», а слова «гуркіт» та " +"«макітра» – ні." + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "Пошук в зворотному напрямку" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"Ця команда діє аналогічно команді «Знайти попереднє». Якщо потрібно пройтися " +"по результатам пошуку з кінця до початку, виберіть дану опцію." + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "Перейти до початку" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"Якщо параметр «Перейти до початку» увімкнено, «gedit» " +"знову почне пошук/заміну з початку файла, після того як буде досягнуто кінця " +"файла. Це забезпечує виконання пошуку/заміни по всьому файлові." + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "Використання керівних послідовностей" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "" +"Можна використовувати керівні послідовності для пошуку розривів " +"рядків, переведень каретки та символів табуляції." + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "Символ нового рядка" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "Символ повернення каретки" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "Символ табуляції" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"Якщо потрібно шукати «\\» (зворотню похилу риску) або якусь " +"керівну послідовність в тексті, то потрібно екранувати зворотню похилу риску " +"додатковою зворотною похилою рискою. Наприклад, щоб шукати «\\», потрібно ввести «\\\\» в пошукове поле або поле " +"заміни. Таким самим чином можна шукати керівні послідовності: для пошуку чи " +"заміни на «\\n», використовуйте «\\\\n»." + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "Збереження вашого файла для наступної роботи з ним." + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "Збереження файла" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"Щоб зберегти файл в «gedit», клацніть на кнопці «Зберегти», що з правого боку панелі заголовка, або просто " +"натисніть CtrlS." + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"Якщо Ви зберігаєте новий файл, то з'явиться діалогове вікно, де можна як " +"ввести назву файла, так і вибрати каталог для збереження файла." + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "Пошук фрагмента тексту у файлі." + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "Пошук тексту" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "" +"Інструмент «Знайти» допомагає знаходити задані послідовності тексту у файлі." + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "Пошук тексту" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"Відкрийте вікно пошуку, клацнувши на кнопці Меню «Знайти» або " +"натиснувши CtrlF. Це помістить курсор " +"на початок пошукового вікна." + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "У пошуковому вікні введіть текст, який потрібно шукати." + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "" +"Під час введення тексту, «gedit» підсвічує фрагменти тексту, що " +"відповідають введеному." + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "Для переміщення по результатам пошуку, виконайте одну з наступних дій:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"Клацніть на стрілках вгору або вниз біля пошукового вікна." + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "" +"Натисніть клавіші стрілка вгору чи стрілка вниз на " +"клавіатурі." + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"Натисніть CtrlG або " +"CtrlShiftG." + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"Для закриття пошукового вікна, натисніть Esc або " +"Enter. Натиснення Esc поверне курсор на ту позицію, де " +"він знаходився перед початком пошуку. Натиснення Enter – на " +"поточну позицію результатів пошуку." + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "Поради з пошуку" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"Якщо вибрати фрагмент тексту за допомогою миші, а потім натиснути " +"CtrlF, то вибраний текст з'явиться в " +"пошуковому вікні." + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"Для більшої кількості параметри, клацніть на піктограмі «Лупи» у вікні пошуку або клацніть правою кнопкою миші будь-де в " +"пошуковому вікні. Можна вибрати одну або декілька опцій пошуку з наступних:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "" +"Виберіть «Враховувати регістр», щоб зробити пошук чутливим до " +"регістру." + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "Виберіть «Лише ціле слово», щоб шукати лише цілі слова." + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "" +"Виберіть «Перейти до початку», щоб шукати текст з верху до низу і " +"знову спочатку." + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"Шуканий текст буде залишатися виділеним, навіть, після закінчення пошуку. " +"Щоб прибрати виділення, клацніть на «Очистити " +"виділення» або натисніть CtrlShiftK." + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "Перевірка ваших файлів на помилки у правописі." + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "Перевірка орфографії документа" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "Увімкнення перевірки орфографії" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "" +"Функція перевірки орфографії забезпечується додатком в «gedit», " +"який можна увімкнути, коли потрібно. Щоб увімкнути додаток:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "" +"Виберіть «Перевірка орфографії», щоб увімкнути " +"додаток." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "Щоб перевірити документ на наявність слів з орфографічними помилками:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"Виберіть «Інструменти» «Перевірка орфографії»." + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"Для автоматичного виділення gedit слів з орфографічними помилками " +"при набиранні тексту в документі, виберіть «Інструменти»«Виділяти слова з " +"орфографічними помилками»." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "Використання функції перевірки орфографії" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"Використовуючи діалогове вікно перевірки орфографії, можна вибрати потрібну " +"заміну слів з орфографічними помилками. Слово з орфографічною помилкою, що " +"перевіряється функцією перевірки орфографії, показується жирним шрифтом " +"після «Слово з орфографічною помилкою:». Можна вибрати наступні " +"дії для виправлення:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"«Змінити на:» дозволяє ввести слово та " +"використати «Перевірити слово» для перевірки " +"правильності написання." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "" +"«Варіанти:» показує список доступних замін слова." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"«Пропустити» дозволяє ігнорувати перевірку " +"орфографії для одного екземпляру поточного слова." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"«Пропустити все» дозволяє ігнорувати перевірку " +"орфографії для всіх екземплярів поточного слова." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"«Змінити» заміняє нерозпізнане слово або слово з " +"орфографічною помилкою на вибрану заміну зі списку «Варіанти:»." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"«Змінити все» заміняє всі нерозпізнані " +"слова або слова з орфографічними помилками на вибрану заміну зі списку «Варіанти:»." + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"«Додати слово» дозволяє додати поточне слово у " +"«gedit» до «Словника користувача». Додання " +"користувацьких слів до «Словника користувача» дозволяє " +"«gedit» розпізнавати їх в документах і, таким чином, вони не " +"будуть виділятися як слова з орфографічними помилками." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "Визначення мови для перевірки орфографії" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"Типово, для перевірки орфографії документа у «gedit» " +"використовується поточна мова. Якщо потрібно використовувати іншу мову, " +"виберіть «Інструменти»«Встановити мову…», а потім виберіть потрібну мову." + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "Словники" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"«gedit» використовує «Enchant» – невелику системну утиліту, для " +"перевірки орфографії. «Enchant» може використовувати декілька різних " +"словників для перевірки орфографії. Двоє з таких фонових словників – це " +"«Hunspell» та «Aspell»." + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"Якщо потрібна мова – відсутня в «gedit», використовуйте " +"встановлювач програмного забезпечення або менеджер пакунків для встановлення " +"потрібного словника." + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "Підсвічування тексту для полегшення його читання." + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "Увімкнення виділення синтаксису" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "Підсвічування синтаксису" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"«gedit» забезпечує виділення синтаксису для великої кількості мов " +"розмітки, програмування та наукових мов. Якщо «gedit» розпізнає " +"синтаксис при відкритті файла, то текст буде автоматично виділено." + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"Якщо синтаксис або мова не підсвічується при запуску, то можна вибрати " +"правильний синтаксис або мову, клацнувши на «Вигляд» «Режим підсвічування», а вибравши потім потрібний синтаксис. Також, можна вибрати назву " +"синтаксису зі списку, що внизу вікна «gedit»." + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "Групування подібних вкладок." + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "Організація файлів в групові вкладки" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"Якщо Ви працюєте в «gedit» з декількома вкладками, то можна їх " +"групувати, щоб полегшити зберігання відкритих файлів організованими. Додання " +"нової групи вкладок розділяє вікно «gedit» на два підвікна, " +"відкриває новий «Неназваний документ» в новому підвікні та робить його " +"активним. Можна відкривати файли в цій групі вкладок і переміщати їх з " +"однієї групи в іншу." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "Відкриття нової групи вкладок у вікні «gedit»" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "Щоб відкрити нову групу вкладок:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" +"Клацніть правою кнопкою на вкладці і виберіть Перенести до нової групи " +"вкладок." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"Використовуйте комбінацію клавіш CtrlAltN." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"Ця дія розділить вікно «gedit» на два підвікна, і, підвікно з " +"новою групою вкладок буде розміщено справа від активної вкладки. Можна " +"перетягнути маніпулятор вправо або вліво для збільшення або зменшення " +"простору вікна «gedit» відповідно до власних потреб." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"Можна відкрити стільки груп вкладок у вікні «gedit», скільки " +"дозволяє екран. Однак, потрібно буде переміщувати маніпулятор, для їхнього " +"коректного показу." + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "" +"Щоб закрити підвікно групи вкладок, просто закрийте всі вкладки, що відкриті " +"в ньому." + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "Переміщення вкладки до іншої групи вкладок" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "Якщо хочете перемістити вкладку з однієї групи вкладок до іншої:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "Клацніть та утримуйте кнопку миші на вкладці." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "Перетягніть вкладку до іншого підвікна групи вкладок." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "Помістіть її поруч з іншими вкладками у групі вкладок." + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "Відпустіть кнопку миші." + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "Зміна розташування вкладки у вікні «gedit»." + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "Переміщення та зміна розташування вкладок" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"Вкладки в «gedit» можна переміщувати, полегшуючи, таким чином, " +"роботу з файлами. Вкладки можна перерозміщувати в тому самому вікні, " +"переміщувати за межі «gedit» (створюючи нове вікно «gedit») та переміщувати з одного вікна в інше." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "Зміна порядку вкладок у вікні «gedit»" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "Щоб змінити порядок вкладок у вікні:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +msgid "Move the tab to the desired position among the other tabs." +msgstr "Перемістіть вкладку до потрібної позиції між іншими вкладками." + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "" +"Вкладка розміститься в позиції, найближчій до тієї, де вона була відпущена, " +"безпосередньо поруч з іншими відкритими вкладками." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "Переміщення вкладки зі створенням нового вікна «gedit»" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "Для створення нового вікна з наявної вкладки:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "Перетягніть вкладку за межі вікна «gedit»." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"Щоб перемістити вкладку до нового вікна, при розгорнутому вікні «gedit», перетягніть вкладку на верхню панель, що вгорі екрану." + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "Переміщення вкладки до іншого вікна «gedit»" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "Якщо потрібно перемістити вкладку з одного вікна до іншого:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "Перетягніть вкладку до нового вікна." + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "Розмістіть її поруч з іншими вкладками в новому вікні." + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"Можливо, простіше перемістити вкладку з одного вікна до іншого, перетягнувши " +"вкладку до кутка «Дії» оболонки «GNOME». Це покаже всі " +"відкриті вікна «gedit». Потім можна відпустити вкладку на " +"потрібному вікні «gedit»." + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "Створення та закриття вкладок у вікні «gedit»." + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "Додавання та видалення вкладок" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" +"Працюючи зі вкладками в «gedit», можна тримати в полі зору " +"декілька файлів в одному вікні." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "Додавання вкладок" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"Щоб створити нову вкладку або новий файл, натисніть кнопку Створити " +"новий документ у лівій частині панелі заголовка або натисніть " +"комбінацію клавіш Ctrl T. Вкладку " +"буде додано справа від інших вкладок." + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "Видалення вкладок" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"Щоб видалити вкладку, клацніть на «×», що з " +"правої сторони вкладки або натисніть комбінацію клавіш CtrlW. Щоб видалити всі відкриті вкладки, натисніть " +"Ctrl ShiftW." + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "Скасування нещодавніх змін у одному з ваших файлів." + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "Скасування або повторення останньої дії" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"Якщо зробили помилку під час редагування документа у «gedit», то " +"можна скасувати дію, натиснувши CtrlZ." + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "Після закриття файла «gedit», скасувати зміни – неможливо." + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"Щоб повторити раніше скасовану дію, натисніть комбінацію клавіш " +"CtrlShift Z." + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "Текстовий редактор «gedit»" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "Текстовий редактор «gedit»" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "Домашня сторінка підручника з «gedit»." + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> Текстовий редактор «gedit»" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"Ласкаво просимо до довідки з «gedit». Для швидкого ознайомлення і " +"з основними функціями «gedit» відвідайте сторінку «Початок роботи з «gedit»." + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "" +"Інші теми довідки згруповані в розділи нижче. Приємного користування " +"«gedit»!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "Робота з файлами" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "Налаштування «gedit»" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "Додатки «gedit»" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "Друкування з «gedit»" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "Ця робота розповсюджується за умов дотримання <_:link-1/>." + +#~ msgid "" +#~ "Select gedit Preferences Font & Colors." +#~ msgstr "" +#~ "Виберіть «gedit» «Параметри» «Шрифт & кольори»." diff --git a/help/zh_CN/zh_CN.po b/help/zh_CN/zh_CN.po new file mode 100644 index 0000000..de7936d --- /dev/null +++ b/help/zh_CN/zh_CN.po @@ -0,0 +1,9066 @@ +# TeliuTe , 2009, 2011. +# Colin Zhao , 2011. +# Wylmer Wang , 2013. +msgid "" +msgstr "" +"Project-Id-Version: gedit-master-help\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-06-07 06:01+0000\n" +"PO-Revision-Date: 2020-07-03 23:19-0400\n" +"Last-Translator: Boyuan Yang <073plan@gmail.com>\n" +"Language-Team: Chinese Simplified \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 2.3.1\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"TeliuTe , 2009, 2011\n" +"Colin Zhao , 2011\n" +"wancheng zhang , 2012\n" +"Zhe Wei , 2014" + +#. (itstool) path: info/desc +#: C/gedit-change-color-scheme.page:8 +msgid "Change the text and background colors in gedit." +msgstr "更改 gedit 中文字和背景的颜色。" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:14 C/gedit-change-default-font.page:10 +#: C/gedit-close-file.page:11 C/gedit-create-new-file.page:12 +#: C/gedit-edit-as-root.page:10 C/gedit-files-basic.page:10 +#: C/gedit-full-screen.page:13 C/gedit-open-files-from-sidepane.page:11 +#: C/gedit-open-files.page:17 C/gedit-open-on-server.page:10 +#: C/gedit-open-recent.page:12 C/gedit-plugin-guide.page:13 +#: C/gedit-plugins-change-case.page:14 C/gedit-plugins-doc-stats.page:14 +#: C/gedit-plugins-external-tools.page:15 C/gedit-plugins-file-browser.page:15 +#: C/gedit-plugins-insert-date-time.page:15 C/gedit-plugins-install.page:8 +#: C/gedit-plugins-modelines.page:13 C/gedit-plugins-pyconsole.page:10 +#: C/gedit-plugins-quick-open.page:11 C/gedit-plugins-snippets.page:9 +#: C/gedit-plugins-sort.page:14 C/gedit-printing.page:10 +#: C/gedit-quickstart.page:12 C/gedit-replace.page:14 C/gedit-save-file.page:13 +#: C/gedit-search.page:12 C/gedit-spellcheck.page:12 +#: C/gedit-syntax-highlighting.page:10 C/gedit-tabs-moving.page:13 +#: C/gedit-tabs.page:14 C/gedit-undo-redo.page:12 C/index.page:14 +msgid "Jim Campbell" +msgstr "Jim Campbell" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:18 +msgid "Jana Svarova" +msgstr "Jana Svarova" + +#. (itstool) path: credit/years +#: C/gedit-change-color-scheme.page:20 C/gedit-change-color-scheme.page:25 +msgid "2015" +msgstr "2015" + +#. (itstool) path: credit/name +#: C/gedit-change-color-scheme.page:23 C/gedit-replace.page:26 +msgid "Ekaterina Gerasimova" +msgstr "Ekaterina Gerasimova" + +#. (itstool) path: page/title +#: C/gedit-change-color-scheme.page:31 +msgid "Change the color scheme" +msgstr "更改配色方案" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:33 +msgid "" +"gedit includes several different color schemes, allowing you to " +"change the appearance of the main text window." +msgstr "gedit 包含多种不同配色方案,允许您更改主文本窗口的外观。" + +#. (itstool) path: steps/title +#: C/gedit-change-color-scheme.page:37 +msgid "To change the color scheme:" +msgstr "更改配色方案:" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:39 +#, fuzzy +#| msgid "" +#| "Open the gedit menu from the top bar, then " +#| "select PreferencesFont & " +#| "Colors." +msgid "" +"Press the menu button in the top-right corner of the window and select " +"PreferencesFont & Colors." +msgstr "" +"打开位于顶栏的 gedit 菜单,然后选择首选项字体和颜色。" + +#. (itstool) path: item/p +#: C/gedit-change-color-scheme.page:44 +msgid "Choose your desired color scheme." +msgstr "选择您想使用的配色方案。" + +#. (itstool) path: page/p +#: C/gedit-change-color-scheme.page:48 +msgid "The new color scheme will be applied immediately." +msgstr "新的配色方案会立即生效。" + +#. (itstool) path: section/title +#: C/gedit-change-color-scheme.page:51 +msgid "Use a Custom Color Scheme" +msgstr "使用自定义的颜色方案" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:57 +msgid "" +"You can also use color schemes that have been created by others, or create " +"and use your own color schemes." +msgstr "您也可以使用其他人创建的配色方案,或者使用自己的颜色方案。" + +#. (itstool) path: section/p +#: C/gedit-change-color-scheme.page:60 +msgid "" +"Instructions on how to install custom color schemes, as well as examples of " +"color schemes that you can download and use, are available on the gedit wiki." +msgstr "" +"关于如何安装自定义配色方案的说明,以及您可以下载并使用的配色方案,可以在 " +"gedit wiki 上找到。" + +#. (itstool) path: info/desc +#: C/gedit-change-default-font.page:6 +msgid "Use a custom font for your text in gedit." +msgstr "在 gedit 中使用自定义的字体。" + +#. (itstool) path: credit/years +#: C/gedit-change-default-font.page:12 +msgid "2011 2012 2013" +msgstr "2011 2012 2013" + +#. (itstool) path: page/title +#: C/gedit-change-default-font.page:19 +msgid "Change the default font" +msgstr "更改默认字体" + +#. (itstool) path: page/p +#: C/gedit-change-default-font.page:21 +msgid "" +"gedit will use the system fixed-width font by default, but you " +"can change the default gedit font to suit your preferences." +msgstr "" +"gedit 默认使用系统等宽字体,你可以根据个人习惯修改 gedit 的默认字体" + +#. (itstool) path: steps/title +#: C/gedit-change-default-font.page:26 +msgid "To change the default font in gedit:" +msgstr "要更改 gedit 默认字体:" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:27 +msgid "" +"Select gedit Preferences Font & Colors." +msgstr "" +"选择 gedit 首选项 字体和颜色。" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:30 +msgid "" +"Uncheck the box next to the phrase, \"Use the system fixed-width font.\"" +msgstr "取消选中“使用系统等宽字体”旁的复选框。" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:32 +msgid "" +"Click on the current font name. gedit will open a font-chooser " +"window, allowing you to see available fonts and choose the one that you " +"prefer." +msgstr "" +"点击当前字体名称。gedit 将打开字体选择器,您可以查看可用的字体并且" +"选择所需要使用的字体。" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:35 +msgid "" +"After you have chosen a new font, use the slider under the list " +"of fonts to set the default font size." +msgstr "" +"选择你需要的字体后,使用字体列表下方的滑动条调整默认字体的大小。" + +#. (itstool) path: item/p +#: C/gedit-change-default-font.page:37 +msgid "Click Select, and then click Close." +msgstr "点击选择,然后点击关闭。" + +#. (itstool) path: info/desc +#: C/gedit-close-file.page:7 +msgid "Exit from the file you are using." +msgstr "退出你正在使用的文件。" + +#. (itstool) path: page/title +#: C/gedit-close-file.page:18 +msgid "Close a file" +msgstr "关闭文件" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:20 +#, fuzzy +#| msgid "" +#| "To save a file in gedit, click on the Save the current file button with the disk-drive icon on the " +#| "right side of the toolbar or just press CtrlS." +msgid "" +"To close a file in gedit, click the × " +"that appears on the right-side of the file's tab, or press " +"CtrlW." +msgstr "" +"要在 gedit 中保存文件,点击 工具栏右侧显示为磁盘驱动器的保存" +"当前文件按钮,或者按组合键 CtrlO。" + +#. (itstool) path: page/p +#: C/gedit-close-file.page:23 +msgid "" +"Any one of these actions will close a file in gedit. If your file " +"contains changes that have not been saved, gedit will prompt you " +"to save those changes before closing the file." +msgstr "" +"上述的任何一个操作都会关闭文件,如果您的文件中发生了变化而没有保存," +"gedit 会在关闭前提示您保存更改。" + +#. (itstool) path: info/desc +#: C/gedit-create-new-file.page:8 +msgid "Open a new file for editing." +msgstr "打开一个新文件来编辑。" + +#. (itstool) path: credit/name +#: C/gedit-create-new-file.page:16 C/gedit-full-screen.page:17 +#: C/gedit-open-files.page:21 C/gedit-plugins-quick-open.page:15 +#: C/gedit-replace.page:30 C/gedit-save-file.page:21 C/gedit-search.page:24 +#: C/gedit-tabs.page:31 C/gedit-undo-redo.page:24 +msgid "Shobha Tyagi" +msgstr "Shobha Tyagi" + +#. (itstool) path: page/title +#: C/gedit-create-new-file.page:22 +msgid "Create a new file" +msgstr "创建新文件" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:24 +#, fuzzy +#| msgid "" +#| "The easiest way to create a new file in gedit, is to click the " +#| "Create a new document button on the left side of the toolbar, " +#| "or press CtrlT." +msgid "" +"The easiest way to create a new file in gedit, is to click the " +"Create a new document button on the left side of the header bar, " +"or press CtrlT." +msgstr "" +"要在 gedit 中新建一个文件,点击工具栏左侧的新建文档按" +"钮,或者按组合键 CtrlT。" + +#. (itstool) path: page/p +#: C/gedit-create-new-file.page:28 +msgid "" +"Any one of these actions will create a new file in the gedit " +"window. If you have other files open in gedit, the new file that " +"you create will appear as a new tab to the right of those files." +msgstr "" +"这些操作都会在 gedit 窗口中创建一个新文件。如果窗口中已经打开有文" +"件,那么新文件会在那些文件的右边新建一个标签。" + +#. (itstool) path: info/desc +#: C/gedit-edit-as-root.page:7 +msgid "Use administrative privileges to edit a file." +msgstr "使用管理权限编辑文件。" + +#. (itstool) path: page/title +#: C/gedit-edit-as-root.page:16 +msgid "Edit a file as the root user" +msgstr "以 root(管理员)身份编辑文件" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:19 +msgid "" +"Editing files as the root user is potentially dangerous, and may break your " +"system in bad ways. Take great care when editing files as the root user." +msgstr "" +"以 root 身份编辑文件可能带来潜在危险,会因操作失误而损坏系统。请特别小心使用 " +"root 身份编辑文件。" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:24 +msgid "" +"To edit files as the root user, launch gedit from the terminal by " +"entering:" +msgstr "要以 root 身份编辑文件,在终端运行下列命令:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:26 +#, no-wrap +msgid "sudo gedit" +msgstr "sudo gedit" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:28 +msgid "" +"Using the sudo command, you will need to successfully enter your " +"password before gedit will open." +msgstr "" +"使用 sudo 命令,正确输入自己的密码后,打开 gedit。" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:31 +msgid "" +"As an alternative to the sudo command, you may obtain " +"administrative privileges by entering:" +msgstr "" +"作为 sudo 命令的替代,您也可以通过输入下列命令来获取管理员权限:" + +#. (itstool) path: page/code +#: C/gedit-edit-as-root.page:33 +#, no-wrap +msgid "su -" +msgstr "su -" + +#. (itstool) path: page/p +#: C/gedit-edit-as-root.page:35 +msgid "" +"You would then launch gedit using the gedit command." +msgstr "然后您就可以使用 gedit 命令运行 gedit 。" + +#. (itstool) path: note/p +#: C/gedit-edit-as-root.page:39 +msgid "" +"Once you have opened gedit with administrative privileges, " +"gedit will keep those privileges until you close it." +msgstr "" +"一旦您以管理员身份打开 gedit,在您关闭程序前,它将一直具备管理员权" +"限。" + +#. (itstool) path: info/desc +#: C/gedit-files-basic.page:7 +msgid "Learn the basics of how to work with files in gedit." +msgstr "学习对文件的基础操作。" + +#. (itstool) path: page/title +#: C/gedit-files-basic.page:16 +msgid "File basics: Open, close, and save files" +msgstr "文件操作基础:打开、关闭和保存" + +#. (itstool) path: page/p +#: C/gedit-files-basic.page:18 +#, fuzzy +#| msgid "" +#| "If you are new to gedit, these topics will help you with " +#| "creating, saving, and opening and closing files." +msgid "" +"If you are new to gedit, these topics will help you with " +"creating, saving, opening and closing files." +msgstr "" +"如果您才接触 gedit,这一章将会帮助您创建、保存、打开和关闭文件。" + +#. (itstool) path: info/desc +#: C/gedit-full-screen.page:8 +msgid "Set gedit to use the entire screen." +msgstr "设置 gedit 使用整个屏幕。" + +#. (itstool) path: page/title +#: C/gedit-full-screen.page:23 +msgid "Use fullscreen mode" +msgstr "使用全屏模式" + +#. (itstool) path: page/p +#: C/gedit-full-screen.page:25 +msgid "" +"When working with a large document, you may find it helpful to work in " +"gedit's fullscreen mode. Using fullscreen mode will hide the " +"menu bar, tab bar and the tool bar, " +"presenting you with more of your text and allowing you to better focus on " +"your tasks." +msgstr "" +"当打开一个很大的文档时,您会发现使用 gedit 的全屏模式很有用处。这" +"时会隐藏 菜单栏标签栏工具栏,从而可以" +"显示更多的文本内容,让您更专注地编辑文档。" + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:32 +msgid "Turn on fullscreen mode" +msgstr "开启全屏模式" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:33 +msgid "" +"To turn on fullscreen mode, press F11. gedit's menu, " +"title, and tab-bars will hide, and you will only be presented with the text " +"of your current file." +msgstr "" +"要进入全屏模式,请按 F11 键。gedit 的菜单、标题栏和标签" +"栏将会隐藏,只显示当前文档的内容。" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:36 +msgid "" +"If you need to perform an action from the gedit menu while " +"working in fullscreen mode, move your mouse pointer to the top of the " +"screen. The gedit menu bar will reappear, and you can select your " +"desired action." +msgstr "" +"如果在全屏模式下,您想要运行 gedit 的菜单命令,把鼠标移动到屏幕顶" +"部,就会显示 gedit 的菜单栏,然后您就可以选择相应的菜单命令。" + +#. (itstool) path: note/p +#: C/gedit-full-screen.page:42 +msgid "" +"To switch between open tabs while in fullscreen mode, press either " +"CtrlAltPgUp or " +"CtrlAltPgDn." +msgstr "" +"要在全屏模式下,切换不同的标签,按组合键 CtrlAltPgUpCtrlAltPgDn。" + +#. (itstool) path: section/title +#: C/gedit-full-screen.page:50 +msgid "Turn off fullscreen mode" +msgstr "关闭全屏模式" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:51 +msgid "" +"To turn off fullscreen mode and return to the standard gedit " +"window, press F11." +msgstr "要退出全屏回到正常gedit窗口,请按F11键。" + +#. (itstool) path: section/p +#: C/gedit-full-screen.page:53 +#, fuzzy +#| msgid "" +#| "You can also move your mouse cursor to the top of the screen, and wait " +#| "for the menu bar to appear. When the menu bar " +#| "appears, select Leave Fullscreen." +msgid "" +"You can also move your mouse cursor to the top of the screen, and wait for " +"the menu bar to appear. When the menu bar appears, " +"select the Leave Fullscreen button." +msgstr "" +"要关闭全屏模式返回到 gedit 窗口模式,把鼠标指针移到窗口顶部,出现" +"菜单栏,然后点离开全屏。" + +#. (itstool) path: info/desc +#: C/gedit-open-files-from-sidepane.page:8 +msgid "Use gedit's side pane as a file browser." +msgstr "使用侧边栏作为文件浏览器。" + +#. (itstool) path: page/title +#: C/gedit-open-files-from-sidepane.page:17 +#, fuzzy +#| msgid "View and open files from the side pane" +msgid "View and open files from the side panel" +msgstr "从侧边栏查看和打开文件" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:18 +#, fuzzy +#| msgid "" +#| "The most common way to switch between files in gedit is by " +#| "using the tabs at the top of the gedit window. In some cases, " +#| "though, particularly when you are working with a large number of open " +#| "files, you may find it easier to use the side pane." +msgid "" +"The most common way to switch between files in gedit is by using " +"the tabs at the top of the gedit window. In some cases, though, " +"particularly when you are working with a large number of open files, you may " +"find it easier to use the side panel." +msgstr "" +"在 gedit 中切换文件最常用的方法是,点击窗口上的标签栏。而在某些情" +"况下,比如当您要操作大量文件时,您会发现使用侧边栏会更方便些。" + +#. (itstool) path: page/p +#: C/gedit-open-files-from-sidepane.page:25 +#, fuzzy +#| msgid "" +#| "To activate the side pane, select View " +#| "Side Pane, or just press the F9 key." +msgid "" +"To activate the side panel, select View Side Panel, or just press the F9 key." +msgstr "" +"要激活侧边栏,点菜单 查看侧边栏,或者按 F9 键。" + +#. (itstool) path: note/p +#: C/gedit-open-files-from-sidepane.page:31 +#, fuzzy +#| msgid "" +#| "You can toggle the side pane open or closed by pressing " +#| "F9 at any time." +msgid "" +"You can toggle the side panel open or closed by pressing F9 at " +"any time." +msgstr "您可以在任何时候,按 F9 来切换侧边栏的显示。" + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:39 +#: C/gedit-plugins-file-browser.page:33 +#, fuzzy +#| msgid "Opening files from the side pane" +msgid "Opening files from the side panel" +msgstr "从侧边栏打开文件" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:40 +#: C/gedit-plugins-file-browser.page:34 +#, fuzzy +#| msgid "" +#| "To open files from the side pane, first open the side " +#| "pane by selecting View Side Pane, then click on the file-browser icon at the bottom of " +#| "the pane." +msgid "" +"To open files from the side panel, first open the side panel by selecting " +"View Side Panel (or just press " +"F9), and then choose File Browser from the dropdown at " +"the top of the panel." +msgstr "" +"要从侧边栏中打开文件,首先要打开侧边栏,点菜单 " +"查看侧边栏,然后点面板底部的文件" +"浏览器图标。" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:48 +#: C/gedit-plugins-file-browser.page:42 +#, fuzzy +#| msgid "" +#| "This will activate the file-browser mode of the side panel. You can then use the navigation buttons at the top of the pane to " +#| "locate and open your desired files." +msgid "" +"This will activate the File Browser mode of the side panel. You can " +"then use the navigation buttons at the top of the panel to locate and open " +"your desired files." +msgstr "" +"这将激活侧边栏文件浏览器模式,您可以使用面板顶部的位置" +"按钮来查找所需的文件。" + +#. (itstool) path: section/title +#: C/gedit-open-files-from-sidepane.page:56 +#, fuzzy +#| msgid "Using the side pane to switch between open files" +msgid "Using the side panel to switch between open files" +msgstr "使用侧边栏来切换各个打开的文件" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:57 +#, fuzzy +#| msgid "" +#| "Once you have several files open, you can use the side pane to switch " +#| "between open files. To activate the file browser portion of the side " +#| "pane, click on the file icon at the bottom of the " +#| "side pane." +msgid "" +"Once you have several files open, you can use the side panel to switch " +"between open files. To list open files, choose Documents from the " +"dropdown at the top of the panel." +msgstr "" +"当您打开多个文件时,可以使用侧边栏来切换各个文件,要激活侧边栏的文" +"件浏览功能,点击侧边栏底部的文件按钮图标。" + +#. (itstool) path: section/p +#: C/gedit-open-files-from-sidepane.page:63 +#, fuzzy +#| msgid "" +#| "Clicking on any file name in the side pane will open that file " +#| "for editing." +msgid "" +"Clicking on any file name in the side panel will open that file for editing." +msgstr "点击侧边栏中的文件名,就会在工作区中显示它。" + +#. (itstool) path: info/desc +#: C/gedit-open-files.page:12 +msgid "Open files to start working on them." +msgstr "打开文件开始编辑。" + +#. (itstool) path: page/title +#: C/gedit-open-files.page:27 +msgid "Open a file or set of files" +msgstr "打开一个文件或一组文件" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:29 +msgid "" +"To open a file in gedit, click the Open button, or " +"press CtrlO." +msgstr "" +"要在 gedit 中打开一个文件,点击 打开按钮,或者按组合键 " +"CtrlO。" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:31 +msgid "" +"This will cause the Open dialog to appear. Use your mouse or " +"keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab." +msgstr "" +"然后会出现打开对话框,用鼠标或键盘选择想要打开的文件,然后点" +"打开按钮,选中的文件将会在新标签页打开。" + +#. (itstool) path: page/p +#: C/gedit-open-files.page:34 +msgid "" +"To close the Open dialog without opening a file, click " +"Cancel." +msgstr "" +"要关闭 打开文件 对话框,而不打开任何文件,请点击取消按" +"钮。" + +#. (itstool) path: note/p +#: C/gedit-open-files.page:37 +msgid "" +"You can use the Ctrl and Shift keys to open more than " +"one file at a time. If you hold down the Ctrl key while you " +"select multiple files, clicking Open will open each of the files " +"that you have selected." +msgstr "" +"您也可以用 CtrlShift 键,一次选择打开多个文件,如果" +"按住 Ctrl 键选择多个文件,点打开会打开所有点过的文件。" + +#. (itstool) path: note/p +#: C/gedit-open-files.page:44 +msgid "" +"Holding down the Shift while you select multiple files will open " +"the first file that you select, the last file that you select, and all of " +"the files in between." +msgstr "" +"按住 Shift 键选择多个文件,会打开从第一个到最后一个之间连续的所有" +"文件。" + +#. (itstool) path: info/desc +#: C/gedit-open-on-server.page:7 +msgid "Access files that are stored on a different computer." +msgstr "访问存储在其他计算机上的文件。" + +#. (itstool) path: page/title +#: C/gedit-open-on-server.page:16 +msgid "Open a file that is located on a server" +msgstr "打开位于服务器上的文件" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:18 +msgid "" +"Prior to opening a file on a server from within gedit, you need " +"to know some technical information about the server. For example, you will " +"need to know the IP Address or URL of the server, and may need to know what " +"kind of server it is (e.g., HTTP, FTP, etc.)." +msgstr "" +"要用 gedit 打开存放于服务器上的文件,您首先需要了解服务器的相关技" +"术信息,例如,您需要知道服务器的 IP 地址或 URL,还要知道是哪一种服务器(比如 " +"HTTP、FTP 等等)。" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:23 +msgid "" +"Also, some types of servers impose restrictions on what you can do with " +"files stored on the server. For example, you may be able to open a file from " +"a server, but may need to save any changes to the file locally, on your own " +"computer." +msgstr "" +"还有,一些类型的服务器限制了文件存储。例如,您可以打开服务器上的一个文件,但" +"是您只能将修改过的文件存储在本地计算机上。" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:28 +msgid "" +"With these caveats in mind, perform the following steps to open a file from " +"a server using gedit:" +msgstr "" +"了解这些信息后,您可以在 gedit 中,按下列步骤打开服务器上的文件:" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:32 +#, fuzzy +#| msgid "Click Open." +msgid "In the header bar, click on Open." +msgstr "点 打开。" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:33 +msgid "Click Other Locations." +msgstr "点击 其它位置。" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:34 +msgid "Enter the IP Address or URL of the appropriate server." +msgstr "输入服务器的 IP 地址或 URL。" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:36 +msgid "Find and select the file that you wish to open." +msgstr "查找并选择您想打开的文件。" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:37 +#, fuzzy +#| msgid "" +#| "Use the Character coding drop-down list to select the appropriate " +#| "character coding." +msgid "" +"Use the Character Encoding drop-down list to select the appropriate " +"character coding." +msgstr "在字符编码下拉列表中,选择合适的字符编码。" + +#. (itstool) path: item/p +#: C/gedit-open-on-server.page:39 C/gedit-plugins-quick-open.page:44 +msgid "Click Open." +msgstr "点 打开。" + +#. (itstool) path: page/p +#: C/gedit-open-on-server.page:42 +#, fuzzy +#| msgid "" +#| "Valid types of URI include http:, ftp:, file:, and all of the methods " +#| "supported by gvfs." +msgid "" +"Valid types of URI include http:, ftp:, file:, and all of the methods " +"supported by GVfs." +msgstr "有效的 URI 包括 http:、ftp:、file: 和所有 gvfs 支持的格式。" + +#. (itstool) path: note/p +#: C/gedit-open-on-server.page:46 +msgid "" +"Files from some types of URI are opened as read-only, and any changes you " +"make must be saved to a different location. For example, HTTP only allows " +"files to be read. Files opened from FTP are read-only because not all FTP " +"servers may correctly work with saving remote files." +msgstr "" +"某些类型的 URI 会以只读方式打开,当您更改后必须另存到其他位置。例如, HTTP 只" +"允许读取文件,从 FTP 上打开的文件一般也是只读,因为并不是所有 FTP 服务器能够" +"远程保存文件。" + +#. (itstool) path: info/desc +#: C/gedit-open-recent.page:7 +#, fuzzy +#| msgid "Access files that you have updated recently." +msgid "Access files that you have previously opened in gedit." +msgstr "访问您最近更新过的文件。" + +#. (itstool) path: page/title +#: C/gedit-open-recent.page:18 +msgid "Reopen a recently-used file" +msgstr "重新打开最近使用的文件" + +#. (itstool) path: page/p +#: C/gedit-open-recent.page:20 +#, fuzzy +#| msgid "" +#| "By default, gedit provides easy access to five of your most " +#| "recently-used files. Here is how you can open a recently-used file:" +msgid "" +"gedit provides easy access to your ten most recently-used files, " +"that have been previously opened in gedit. Here is how you can " +"open a recently-used file:" +msgstr "" +"默认情况下,gedit 提供快速访问最近使用的五个文件,用这个方法可以打" +"开最近使用的文件:" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:24 +#, fuzzy +#| msgid "" +#| "Click the downward-facing arrow to the right of the Open " +#| "button." +msgid "" +"Click the arrow button next to the Open button in the header bar." +msgstr "点击打开按钮旁边的下拉箭头按钮。" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:26 +#, fuzzy +#| msgid "" +#| "gedit will display a list of the five most-recently used files." +msgid "" +"gedit will display a menu with the ten most-recently used files." +msgstr "gedit 会列出最近访问的五个文件。" + +#. (itstool) path: item/p +#: C/gedit-open-recent.page:28 +msgid "Select the desired file, and it will open in a new tab." +msgstr "选择想要打开的文件,然后就会在新标签中打开它。" + +#. (itstool) path: note/p +#: C/gedit-open-recent.page:31 +msgid "" +"When hovering with the mouse a recently-used file from the menu, the full " +"path to the file is displayed in the status bar at the bottom of the " +"gedit window." +msgstr "" + +#. (itstool) path: info/desc +#: C/gedit-plugin-guide.page:9 +msgid "Use plugins to customize how gedit works for you." +msgstr "使用插件来定制 gedit 的工作方式。" + +#. (itstool) path: page/title +#: C/gedit-plugin-guide.page:19 +msgid "Configure and use gedit plugins" +msgstr "配置和使用 gedit 插件" + +#. (itstool) path: page/p +#: C/gedit-plugin-guide.page:20 +msgid "" +"You can do more with gedit by using plugins. Several plugins are " +"installed by default, but a large number of other plugins are available " +"separately." +msgstr "" +"您可以通过插件让 gedit 做更多事,一些插件已经默认安装好,但还有更" +"多可用的插件。" + +#. (itstool) path: note/p +#: C/gedit-plugin-guide.page:24 +msgid "" +"Many Linux distributions make a group of these plugins available as a " +"gedit-plugins package. Install the gedit-plugins " +"package to make these extra plugins available to gedit." +msgstr "" +"许多 Linux 发行版会制作一个像 gedit-plugins 这样的软件包,安装这" +"个 gedit-plugins 包,可以在 gedit 中使用更多的外部插" +"件。" + +#. (itstool) path: when/p +#: C/gedit-plugin-guide.page:30 +msgid "" +"Install gedit-plugins" +msgstr "" +"安装 gedit-plugins" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:36 +msgid "Default gedit Plugins" +msgstr "默认的 gedit 插件" + +#. (itstool) path: section/title +#: C/gedit-plugin-guide.page:40 +msgid "Additional gedit Plugins" +msgstr "额外的 gedit 插件" + +#. (itstool) path: credit/name +#: C/gedit-plugins-change-case.page:9 C/gedit-plugins-doc-stats.page:10 +#: C/gedit-plugins-external-tools.page:11 C/gedit-plugins-file-browser.page:11 +#: C/gedit-plugins-insert-date-time.page:10 C/gedit-plugins-install.page:12 +#: C/gedit-plugins-modelines.page:9 C/gedit-plugins-sort.page:10 +#: C/gedit-replace.page:18 C/gedit-search.page:16 C/gedit-tabs-moving.page:17 +#: C/gedit-tabs.page:18 C/gedit-undo-redo.page:16 +msgid "Daniel Neel" +msgstr "Daniel Neel" + +#. (itstool) path: info/desc +#: C/gedit-plugins-change-case.page:17 +msgid "Change the case of selected text." +msgstr "更改选中文本的大小写。" + +#. (itstool) path: page/title +#: C/gedit-plugins-change-case.page:20 +msgid "Change case" +msgstr "改变大小写" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:22 +msgid "" +"This plugin helps you to change the case of selected portions of text. You " +"can use it to change text to be all lower case, all upper case, to invert " +"the case, or apply title case. To enable this plugin, select geditPreferences " +"PluginsChange Case." +msgstr "" +"这个插件帮助您更改选中文本的大小写,您可以将文本全部改为小写字母,全部改为大" +"写字母,大小写翻转,或者让字首大写。要启用此插件,点菜单 gedit首选项 插件" +"更改大小写。" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:28 +msgid "" +"Once the Change Case plugin is enabled, you can use it by " +"completing the following steps:" +msgstr "一旦启用了更改大小写插件,您可以按下列步骤来使用它:" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:32 +msgid "Highlight the portion of text that you want to change." +msgstr "选中你想更改的文本内容。" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:33 +msgid "" +"Select geditChange Case" +msgstr "" +"点菜单 gedit更改大小写" + +#. (itstool) path: item/p +#: C/gedit-plugins-change-case.page:35 +msgid "Choose your desired text-formatting option." +msgstr "选择您想使用的格式选项。" + +#. (itstool) path: page/p +#: C/gedit-plugins-change-case.page:38 +msgid "The updates to the text formatting will take place immediately." +msgstr "文本格式的更改会立即生效。" + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:41 +msgid "" +"The Invert Case option will convert all lower case letters to " +"upper case, and will convert all upper case letters to lower case." +msgstr "反转大小写 选项把小写字母改成大写,把大写字母改成小写。" + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:43 +msgid "" +"The Title Case option will convert the first letter of each word " +"to upper case. All other letters will be converted to lower case." +msgstr "" +"字首大写选项将会把每个单词的第一个字母改成大写,其他字母会转成小" +"写。" + +#. (itstool) path: note/p +#: C/gedit-plugins-change-case.page:49 +msgid "" +"If you have not highlighted any text, the Change Case feature will " +"be grayed-out. You need to select a portion of text before you use the " +"Change Case feature." +msgstr "" +"如果您没有选中任何的文本内容,更改大小写将变成灰色不可用状态。因此," +"在使用此项功能前,您必须要选中文本内容。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-doc-stats.page:17 +msgid "View document statistics." +msgstr "查看文档统计。" + +#. (itstool) path: page/title +#: C/gedit-plugins-doc-stats.page:20 +msgid "Document statistics" +msgstr "文档统计" + +#. (itstool) path: page/p +#: C/gedit-plugins-doc-stats.page:22 +msgid "" +"The Document Statistics plugin shows you various statistics about " +"your current document. To enable this plugin, select geditPreferences PluginsDocument Statistics." +msgstr "" +"文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +"gedit首选项 " +"插件文档统计。" + +#. (itstool) path: section/title +#: C/gedit-plugins-doc-stats.page:28 +msgid "Using Document Statistics" +msgstr "使用文档统计" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:30 +msgid "" +"Once the plugin is enabled, use it by selecting Tools " +"Document Statistics. A window will display the " +"statistical information of your document, including the number of words, " +"lines, characters, non-space characters, and the size of your file in bytes." +msgstr "" +"一旦启用此插件,点菜单 工具文档统计," +"就会出现一个窗口,显示文档的统计信息,包括单词数、行数、字符数和非空格的字符" +"数,以及文件的字节数。" + +#. (itstool) path: section/p +#: C/gedit-plugins-doc-stats.page:36 +msgid "" +"You can also use Document Statistics to show you information about " +"just a portion of your document. To do this, use the mouse pointer to select " +"the portion of text that you want to examine, and then select " +"ToolsDocument Statistics. Gedit will display information for both your entire document, and for the " +"portion of text that you highlighted." +msgstr "" +"您还可以让文档统计只显示部分文档的信息,要做到这一点,用鼠标选中想要" +"统计的文本,然后点菜单 工具文档统计," +"Gedit 除了显示整个文档的信息外,还会显示您选中这部分文档的信息。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-external-tools.page:18 +msgid "" +"Run scripts on your current files, and interact with other applications." +msgstr "在当前文档上执行脚本,并与其他程序交互。" + +#. (itstool) path: page/title +#: C/gedit-plugins-external-tools.page:22 +msgid "External tools" +msgstr "外部工具" + +#. (itstool) path: page/p +#: C/gedit-plugins-external-tools.page:24 +msgid "" +"The External Tools plugin can help simplify repetitive tasks. " +"Specifically, it extends gedit by helping you to run scripts on " +"your working files, and by allowing gedit to interact with other " +"programs on your computer. To enable the External Tools plugin, " +"select gedit PreferencesPlugins External Tools." +msgstr "" +"外部工具插件可用于简单的重复任务,尤其是,它可以在您编辑的文档上执行" +"脚本,并且允许 gedit 与系统中的其他程序交互作用。要启用外部工" +"具,点菜单 gedit 首选项插件 外部工具。" + +#. (itstool) path: section/title +#: C/gedit-plugins-external-tools.page:33 +msgid "Configure the external tools plugin" +msgstr "配置外部工具插件" + +#. (itstool) path: section/p +#: C/gedit-plugins-external-tools.page:35 +msgid "" +"Once you have enabled the plugin, you will need to configure it to suit your " +"needs. The configuration options are available by selecting " +"ToolsManage External Tools." +msgstr "" +"一旦启用此插件,您得按需要来配置它。配置选项可以点菜单 工具管理外部工具。" + +#. (itstool) path: note/p +#: C/gedit-plugins-external-tools.page:40 +msgid "" +"This plugin is for advanced users, and requires knowledge of scripting to be " +"used effectively. Use this plugin with care, as mistakes with your scripts " +"can affect your work in unintended ways." +msgstr "" +"这个插件是为高级用户设计的,需要运行脚本的知识。使用此插件要特别小心,脚本的" +"错误会无意中影响您的工作。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-file-browser.page:18 +#, fuzzy +#| msgid "Use the side pane to browse and open files." +msgid "Use the side panel to browse and open files." +msgstr "使用侧边栏浏览和打开文件。" + +#. (itstool) path: page/title +#: C/gedit-plugins-file-browser.page:21 +#, fuzzy +#| msgid "File browser pane" +msgid "File browser panel" +msgstr "文件浏览器面板" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:23 +#, fuzzy +#| msgid "" +#| "Depending on how you use gedit, you may find it helpful to use " +#| "the File Browser pane plugin. This plugin embeds a file " +#| "browser in the side pane, giving you easy access to your frequently-" +#| "used files." +msgid "" +"Depending on how you use gedit, you may find it helpful to use " +"the File Browser panel plugin. This plugin embeds a file " +"browser in the side panel, giving you easy access to your frequently-" +"used files." +msgstr "" +"依据您的 gedit 使用习惯,您可能会发现文件浏览器面板插件" +"非常有用,这个插件在侧面板内放一个文件浏览器,让您很方便地存取频繁" +"使用的文件。" + +#. (itstool) path: page/p +#: C/gedit-plugins-file-browser.page:28 +#, fuzzy +#| msgid "" +#| "You can enable the Side Pane by selecting geditPreferences " +#| "PluginsFile Browser Pane." +msgid "" +"You can enable the side panel by selecting geditPreferences PluginsFile Browser Panel." +msgstr "" +"要启用侧边栏 ,点菜单 gedit首选项 插件文件浏览器面板。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-insert-date-time.page:18 +msgid "Insert the current date/time at the cursor position." +msgstr "在光标位置插入当前日期/时间。" + +#. (itstool) path: page/title +#: C/gedit-plugins-insert-date-time.page:21 +msgid "Insert date/time" +msgstr "插入日期/时间" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:23 +msgid "" +"As this name of this plugin suggests, the Insert Date/Time plugin " +"allows you to insert the date and/or time at the current cursor position." +msgstr "" + +#. (itstool) path: steps/title +#: C/gedit-plugins-insert-date-time.page:28 +msgid "To enable the plugin:" +msgstr "要启用插件:" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:30 +#, fuzzy +#| msgid "" +#| "Select gedit Preferences Plugins." +msgid "" +"Press the menu button in the top-right corner of the window and select " +"Preferences Plugins." +msgstr "" +"点菜单 gedit 首选项" +" 插件。" + +#. (itstool) path: item/p +#: C/gedit-plugins-insert-date-time.page:35 +#, fuzzy +#| msgid "Select Sort to enable the plugin." +msgid "" +"Select Insert Date/Time to enable the plugin." +msgstr "选择 排序 来启用该插件。" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:39 +#, fuzzy +#| msgid "" +#| "Select Tools Manage Snippets." +msgid "" +"To use the plugin, press the menu button in the top-right corner of the " +"window and select Tools Insert Date and Time…." +msgstr "" +"点菜单 工具 管理片" +"段" + +#. (itstool) path: page/p +#: C/gedit-plugins-insert-date-time.page:43 +#, fuzzy +#| msgid "" +#| "By default, the Insert Date/Time plugin will prompt you to " +#| "choose your preferred date/time format each time that you use the plugin. " +#| "However, you can choose your own default date and time format by " +#| "selecting geditPreferences PluginsInsert Date/TimeConfigure." +msgid "" +"By default, the Insert Date/Time plugin will prompt you to choose " +"your preferred date/time format each time that you use the plugin. However, " +"you can choose your own default date and time format by pressing the menu " +"button in the top-right corner of the window and selecting PreferencesPlugins " +"Insert Date/TimePreferences." +msgstr "" +"默认情况下,插入日期/时间插件会提示您选择一种日期/时间格式。当然," +"您也可以在 gedit首" +"选项 插件插入日期/时间配置 " +"中,选择一个默认日期和时间格式。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-install.page:15 +msgid "How to install third-party plugins." +msgstr "如何安装第三方插件。" + +#. (itstool) path: page/title +#: C/gedit-plugins-install.page:18 +msgid "Additional gedit plugins" +msgstr "额外的 gedit 插件" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:20 +msgid "" +"Installing third-party plugins gives you extra functionality that isn't " +"available in default gedit plugins, or even the extra plugins " +"that are part of the gedit-plugins package. An online list of " +"third-party plugins is kept " +"here." +msgstr "" +"安装第三方插件,可以让您获得 gedit 的默认插件甚至gedit-" +"plugins中所没有的额外功能。在 此处 有一个在线的第三方插件列表。" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:27 +msgid "" +"Installing a third-party plugin involves downloading the plugin, placing the " +"plugin files in the right directory, and activating the plugin." +msgstr "安装第三方插件需要下载插件,保存在正确的路径下,并激活它。" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:31 +msgid "" +"You can usually download a plugin from the plugin's website, but may need to " +"use a revision-control program like git, bazaar, or " +"subversion to copy a plugin's software repository from the " +"internet. Refer to the plugin's documentation for information on getting the " +"plugin." +msgstr "" +"通常您可以从插件网站上获取到插件,但您可能需要使用版本控制器例如git bazaar 或者 subversion 从互联网上的软件仓库中获" +"取插件的拷贝。您可以从插件文档中参考如何获取该插件。" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:36 +msgid "" +"Place the plugin files into the /home/username/.local/share/" +"gedit/plugins directory." +msgstr "" +"将插件放到 /home/用户名/.local/share/gedit/plugins 目" +"录下。" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:39 +msgid "Of course, replace the word username with your own username." +msgstr "当然,您需要将 username 替换为您的用户名。" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:41 +#, fuzzy +#| msgid "" +#| "After you have placed the plugin files into the correct directory, the " +#| "plugin will appear in the Preferences menu. Select Edit PreferencesPlugins " +#| "[Name of Plugin] to enable the plugin." +msgid "" +"After you have placed the plugin files into the correct directory, the " +"plugin will appear in the Preferences menu. Press the menu button in the top-" +"right corner of the window and select " +"PreferencesPlugins[Name of Plugin] " +" to enable the plugin." +msgstr "" +"在您将插件文件复制到正确的文件夹后,插件将会出现在首选项菜单中。选择" +"编辑 首选项插件 " +"[插件名]启用插件。" + +#. (itstool) path: item/p +#: C/gedit-plugins-install.page:46 +msgid "Click Close." +msgstr "点 关闭。" + +#. (itstool) path: page/p +#: C/gedit-plugins-install.page:49 +msgid "" +"After you have enabled the plugin, it should be available for you to use." +msgstr "在启用插件后,就可以使用了。" + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:53 +msgid "" +"The .local directory is hidden by default. To view it and other " +"hidden files, select ViewShow Hidden Files, or press CtrlH." +msgstr "" +".local 目录是默认隐藏的。要显示它及其他隐藏文件,点菜单 " +"查看显示隐藏文件 或者按组合键 " +"CtrlH。" + +#. (itstool) path: note/p +#: C/gedit-plugins-install.page:60 +msgid "" +"If the directory .local/share/gedit/plugins/ is not present on " +"your system, you will need to create it." +msgstr "" +"如果在系统中,文件夹 .local/share/gedit/plugins/ 不存在,就需要" +"您自己创建它。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-modelines.page:16 +msgid "Emacs, Kate and Vim-style modelines support for gedit." +msgstr "Emacs、Kate 和 Vim 风格的模式行支持。" + +#. (itstool) path: page/title +#: C/gedit-plugins-modelines.page:19 +msgid "Modelines" +msgstr "模式行" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:21 +msgid "" +"The Modelines plugin allows gedit to analyze the lines " +"of text at the start and end of a file, and then apply a set of document " +"preferences to the file. The Modelines plugin supports a subset " +"of the options used by the Emacs, Kate and Vim text editors." +msgstr "" +"模式行插件允许 gedit 分析文件中开始行和结束行,然后为文" +"件设置文档选项,模式行插件支持 EmacsKate " +"和 Vim 文本编辑器选项的子集。" + +#. (itstool) path: page/p +#: C/gedit-plugins-modelines.page:27 +msgid "" +"To enable the Modelines plugin, select gedit PreferencesPluginsModelines." +msgstr "" +"要启用模式行插件,点菜单 gedit " +"首选项插件模式行。" + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:31 +msgid "General Modeline Options" +msgstr "常规模式行选项" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:32 +msgid "The following options can be set using gedit modelines:" +msgstr "下列选项可用于 gedit 模式行设置:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:34 +msgid "Tab width" +msgstr "Tab 制表符宽度" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:35 +msgid "Indent width" +msgstr "缩进宽度" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:36 +msgid "Inserting spaces instead of tabs" +msgstr "插入空格而不是制表符" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:37 +msgid "Text Wrapping" +msgstr "文本换行" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:38 +msgid "Right margin width" +msgstr "右边距宽度" + +#. (itstool) path: note/p +#: C/gedit-plugins-modelines.page:42 +msgid "" +"Preferences set using modelines take precedence over the ones specified in " +"the preference dialog." +msgstr "使用 modelines 设置的选项,会覆盖在首选项对话框里设定的选项。" + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:48 +msgid "Emacs Modelines" +msgstr "Emacs Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:50 +msgid "" +"The first two lines of a document are scanned for Emacs " +"modelines, and gedit supports the following Emacs " +"modeline options:" +msgstr "" +"对 Emacs 模式行扫描文档开头的两行,gedit 支持下列 " +"Emacs 模式行选项:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:54 +msgid "Tab-width" +msgstr "Tab 制表符宽度" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:55 +msgid "Indent-offset" +msgstr "缩进" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:56 +msgid "Indent-tabs-mode" +msgstr "Tab 缩排模式" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:57 +msgid "Text auto-wrap" +msgstr "文本自动缩进" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:59 +msgid "" +"For more information on Emacs modelines, visit the GNU Emacs Manual." +msgstr "" +"要了解更多关于 Emacs 模式行的相关信息,请访问 GNU Emacs 手册。" + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:65 +msgid "Kate Modelines" +msgstr "Kate Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:67 +msgid "" +"The first and last ten lines a document are scanned for Kate " +"modelines, and gedit supports the following Kate " +"modeline options:" +msgstr "" +"对 Kate 模式行扫描文档开头和最后十行,gedit 支持下列 " +"Kate 模式行选项:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:72 +msgid "tab-width" +msgstr "Tab 制表符宽度" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:73 +msgid "indent-width" +msgstr "缩进宽度" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:74 +msgid "space-indent" +msgstr "空格缩进" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:75 +msgid "word-wrap" +msgstr "词缩进" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:76 +msgid "word-wrap-column" +msgstr "按列缩进词" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:79 +#, fuzzy +#| msgid "" +#| "For more information about Kate modelines, visit the Kate website." +msgid "" +"For more information about Kate modelines, visit the Kate website." +msgstr "" +"更多关于 Kate 模式行的相关信息,请访问 Kate 网站。" + +#. (itstool) path: section/title +#: C/gedit-plugins-modelines.page:84 +msgid "Vim Modelines" +msgstr "Vim Modelines" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:85 +msgid "" +"The first and last three lines a document are scanned for Vim " +"modelines, and gedit supports the following Vim " +"modeline options:" +msgstr "" +"对 Vim 模式行扫描文档开头和最后的三行,gedit 支持下列 " +"Vim 模式行选项:" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:90 +msgid "et (expandtab)" +msgstr "et (expandtab)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:91 +msgid "ts (tabstop)" +msgstr "ts (tabstop)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:92 +msgid "sw (shiftwidth)" +msgstr "sw (shiftwidth)" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:93 +msgid "wrap" +msgstr "缩进" + +#. (itstool) path: item/p +#: C/gedit-plugins-modelines.page:94 +msgid "textwidth" +msgstr "文本宽度" + +#. (itstool) path: section/p +#: C/gedit-plugins-modelines.page:97 +#, fuzzy +#| msgid "" +#| "For more information on Vim modelines, visit the Vim website." +msgid "" +"For more information on Vim modelines, visit the Vim website." +msgstr "" +"更多关于 Vim 模式行的信息,请访问 Vim 网站。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-pyconsole.page:14 +msgid "Add an interactive Python console to the bottom pane." +msgstr "在底部面板添加一个交互式的 Python 控制台。" + +#. (itstool) path: page/title +#: C/gedit-plugins-pyconsole.page:17 +msgid "Python console" +msgstr "Python 控制台" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:19 +msgid "" +"You can add a Python console to the bottom pane, allowing you to test Python " +"scripts without leaving gedit. To enable the Python console, " +"select gedit PreferencesPlugins Python Console." +msgstr "" +"您可以在底部面板添加一个 Python 控制台,从而不需要离开gedit 就可以" +"测试 Python 脚本。要启用 Python 控制台,点菜单 gedit 首选项插件 " +"Python 控制台。" + +#. (itstool) path: page/p +#: C/gedit-plugins-pyconsole.page:25 +#, fuzzy +#| msgid "" +#| "Once the Python console is enabled, you can open it by selecting " +#| "ViewBottom Pane, or just press " +#| "ShiftF9." +msgid "" +"Once the Python console is enabled, you can open it by selecting " +"ViewBottom Panel." +msgstr "" +"一旦启用 Python 控制台,您就可以通过点菜单 查看底部面" +"板,或者按组合键 ShiftF9 来打开它。" + +#. (itstool) path: note/p +#: C/gedit-plugins-pyconsole.page:28 +msgid "" +"If you have also enabled the Embeded Terminal plugin, the " +"Python Console will appear as a separate tab in the bottom pane." +msgstr "" +"如果您同时还启用了内部终端插件,Python 控制台将会出现在" +"底部面板的另一个标签中。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-quick-open.page:19 +msgid "Quickly open a file or set of files." +msgstr "快速打开一个文件或一组文件。" + +#. (itstool) path: page/title +#: C/gedit-plugins-quick-open.page:22 +msgid "Quick open" +msgstr "快速打开" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:24 +msgid "" +"As the name of this plugin would imply, the Quick Open plugin " +"helps you to open files more quickly than using the usual ways of opening " +"files. To enable this plugin, select gedit " +"PreferencesPluginsQuick Open." +msgstr "" +"要在gedit中使用拼写检查功能,首先需要您启用拼写插件。要启用此插" +"件,点菜单gedit 首选项插件" +"快速打开。" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:29 +msgid "" +"Once you have enabled the Quick Open plugin you can use it as " +"follows:" +msgstr "当启用了快速打开插件,使用方法如下:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:33 +#, fuzzy +#| msgid "" +#| "Open the Quick Open dialog box by pressing CtrlAltO, or by selecting " +#| "FileQuick Open." +msgid "" +"Open the Quick Open dialog box by pressing CtrlAltO, or by selecting Quick Open…." +msgstr "" +"快速打开 对话框可通过按下组合键CtrlAltO 或者 选择菜单文件快速打开 打开。" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:36 +msgid "The Quick Open file dialog will appear." +msgstr "将出现快速打开的文件对话框。" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:37 +msgid "Use your mouse to select the file or files that you want to open." +msgstr "用鼠标选择您想打开的文件。" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:39 +msgid "" +"To select several individual files, hold down your Ctrl key while " +"you click on the files that you want to open." +msgstr "要选择多个单独的文件,请在选择文件时按住Ctrl键。" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:41 +msgid "" +"To select a group of files, click on the first file that you want to open, " +"hold down the Shift key, and then click on the last file in the " +"list that you want to open." +msgstr "" +"要选择连续的文件,请点击要打开的第一个文件,然后按住Shift键点击要" +"打开的最后一个文件。" + +#. (itstool) path: page/p +#: C/gedit-plugins-quick-open.page:47 +msgid "Quick Open will look for files in:" +msgstr "快速打开将在以下范围搜索文件:" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:50 +msgid "The directory of the currently opened document" +msgstr "当前打开文档的目录" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:51 +#, fuzzy +#| msgid "" +#| "The root directory of the File " +#| "Browser Pane plugin" +msgid "" +"The root directory of the File " +"Browser Panel plugin" +msgstr "" +"文件浏览器面板插件的根目录。" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:54 +msgid "" +"Recent documents which are also shown in the Recent folder in " +"Files" +msgstr "在文件最近使用 的文件夹中所显示的最近文件" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:56 +msgid "Directories which you have bookmarked in Files" +msgstr "在文件中标记为书签的目录" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:58 +msgid "Your Desktop directory" +msgstr "您的 桌面 目录" + +#. (itstool) path: item/p +#: C/gedit-plugins-quick-open.page:59 +msgid "Your Home directory" +msgstr "您的 主目录 " + +#. (itstool) path: note/p +#: C/gedit-plugins-quick-open.page:63 +msgid "" +"Quick Open displays files in any of the above locations " +"regardless of whether or not you have opened them previously." +msgstr "" +"快速打开将把上述任何目录中文件显示出来,无论您之前是否打开过这些文" +"件。" + +#. (itstool) path: credit/name +#: C/gedit-plugins-snippets.page:13 C/gedit-plugins-sort.page:18 +#: C/gedit-printing-order.page:15 C/gedit-printing.page:14 +#: C/gedit-printing-select.page:14 C/gedit-quickstart.page:16 +#: C/gedit-replace.page:22 C/gedit-save-file.page:17 C/gedit-search.page:20 +#: C/gedit-spellcheck.page:20 C/gedit-syntax-highlighting.page:14 +#: C/gedit-tabs-moving.page:21 C/gedit-tabs.page:22 C/gedit-undo-redo.page:20 +#: C/index.page:18 +msgid "Sindhu S" +msgstr "Sindhu S" + +#. (itstool) path: info/desc +#: C/gedit-plugins-snippets.page:17 +msgid "Use snippets to quickly insert often-used pieces of text." +msgstr "使用片断功能快速插入常用文本短语。" + +#. (itstool) path: page/title +#: C/gedit-plugins-snippets.page:20 +msgid "Snippets" +msgstr "片段" + +#. (itstool) path: page/p +#: C/gedit-plugins-snippets.page:22 +msgid "" +"Snippets provide a convenient way of inserting repetitive " +"portions of code into your files. For example, an HTML snippet for the " +"<img> tag would insert the opening and closing portions " +"of the tag, as well as fixed places where you can enter image attributes. " +"This can make writing code easier and faster." +msgstr "" +"片段为您提供了一个将常用片段方便地插入到文件中的方法。例如," +"<img> 的HTML代码片段可以插入标签开始和结束的代码,并且直接" +"定位到需要写入图片属性的位置。这将使编码变得更快更简单。" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:29 +msgid "Enable Snippets Plugin" +msgstr "启用片段插件" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:31 +msgid "To enable the Snippets plugin:" +msgstr "启用片段插件:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:35 C/gedit-plugins-sort.page:37 +#: C/gedit-spellcheck.page:36 +msgid "" +"Select gedit Preferences Plugins." +msgstr "" +"点菜单 gedit 首选项" +" 插件。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:40 +msgid "Select Snippets to enable the plugin." +msgstr "选择 片段 来启用该插件。" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:47 +msgid "Browse Snippets" +msgstr "浏览片段" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:49 +msgid "To browse available snippets:" +msgstr "浏览可用的片段:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:52 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"点菜单 工具 管理片" +"段" + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:55 +msgid "" +"Make sure the syntax is set appropriately. The status bar at the bottom of " +"the gedit window will show the current language setting. This " +"language setting is what allows gedit to insert the proper snippets. " +"Gedit will normally detect the language or syntax of the file " +"that you're using, but sometimes you may need to set it." +msgstr "" +"请确保正确设置语法。gedit底部的状态栏会显示当前的语言设置。gedit会" +"依据语言设置插入正确的片段。通常Gedit可以自动识别文件的语言或语" +"法,但有时需要您手工设置。" + +#. (itstool) path: figure/desc +#: C/gedit-plugins-snippets.page:62 +msgid "In this example, the language is set to HTML." +msgstr "在这个示例中,语言设置为了 HTML 。" + +#. (itstool) path: figure/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-plugins-snippets.page:64 +msgctxt "_" +msgid "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" +msgstr "" +"external ref='figures/gedit-html-snippet.png' " +"md5='1f02c599b116ed209e6fb79e3e63b9ca'" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:69 +msgid "Browse the snippets that are available for your language or syntax." +msgstr "浏览适合您的语言或语法的片段。" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:76 +msgid "Using Snippets" +msgstr "使用片段" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:78 +msgid "To insert a snippet into your current document:" +msgstr "将片段插入到当前的文档中:" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:82 +msgid "Type the desired snippet name anywhere in your current document." +msgstr "在文档的任意位置输入您所需代码片段的名字。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:85 +msgid "" +"Press Tab to insert the snippet associated with the input term." +msgstr "按下Tab键即可将片段插入相应的代码片段。" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:92 +msgid "Snippet Example Usage" +msgstr "片段插件的用法示例" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:94 +msgid "" +"For example, if you have set the syntax to HTML, type head , and press the Tab key. The text would have auto completed " +"into a snippet as:" +msgstr "" +"例如,如果您已设置语法为HTML,输入head ,然后按下" +"Tab键。以下文本将自动插入:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:98 +#, no-wrap +msgid "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " +msgstr "" +"\n" +" <head>\n" +" <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n" +" <title>Page Title</title>\n" +" </head>\n" +" " + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:108 +msgid "Adding Snippets" +msgstr "添加片段" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:110 +msgid "" +"You can add new Snippets that work either globally (that is, they are " +"language agnostic) or only in a particular syntax." +msgstr "" +"您可以将新代码片段设定为作用于全局(也就是说,他们是语言无关的)或者只作用于" +"特定语法。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:115 +msgid "" +"Select Tools Manage Snippets." +msgstr "" +"选择 工具 管理片段。" + +# 新版本Gedit的片段管理器已将+改为>。 +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:119 +msgid "" +"From the Manage Snippets sidebar select the desired syntax and " +"click on the \"+\" button to list existing snippets for the selected syntax." +msgstr "" +"从管理片段侧边栏选择所需语法,然后通过点击语法左侧 \"+\" 按钮显示" +"该语法已有的片段。" + +# 怀疑原文档编写错误,应该作用于无论是否设置语言语法的文档都可用。 +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:123 +msgid "" +"To add a snippet that works globally (that is, when no particular syntax or " +"language has been set for the document), select Global from the " +"Manage Snippets sidebar." +msgstr "" +"要添加作用于全局的片段(即使是未设置特定语法或语言的文档),请在管理片段" +"侧边栏选择Global。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:129 +msgid "" +"To add a new snippet, click on the \"plus\" icon in the Manage " +"Snippets sidebar." +msgstr "要添加新片段,点击管理片段侧边栏底部的\"+\"图标。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:133 +msgid "" +"Input a name for the new snippet. The name of the snippet can be different " +"from the snippet you want to add." +msgstr "为新增的片段输入名称,名称可以与您要添加的片段不同。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:137 +msgid "" +"Under the Activation section, you must input a " +"term for the Tab trigger: textarea. You will be " +"using this term to insert your snippet." +msgstr "" +"Activation区域内,你必须在触" +"发条件:文本框中输入一个词语。你可以通过这则词语将该片段插入到文档中。" + +#. (itstool) path: note/p +#: C/gedit-plugins-snippets.page:141 +msgid "" +"If you wish to insert a snippet with a keyboard shortcut, then click your " +"mouse pointer on Shortcut key: textarea and press " +"the desired combination of keys. Once you have pressed and released the " +"keys, the keyboard shortcut will be set." +msgstr "" +"如果您希望通过快捷键插入片段,请使用鼠标点击快捷键:文本框并按下所需的组合键。当您按下并放开组合键的时候,该快捷键就设置好" +"了。" + +#. (itstool) path: item/p +#: C/gedit-plugins-snippets.page:148 +msgid "" +"Under the textarea for Edit:, input the desired " +"text for the snippet. You may use ${n} to indicate variables, " +"where n is replaced with a number that represents the numerical " +"order of variables included." +msgstr "" +"在编辑:文本框中,输入合适的片段内容。您可以使用" +"${n}表示变量,请将n替换为数字,用以标示变量的顺序。" + +#. (itstool) path: section/title +#: C/gedit-plugins-snippets.page:158 +msgid "New Snippet Example" +msgstr "新增片段示例" + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:160 +msgid "" +"Consider you have created a snippet with the term greetings in " +"Tab trigger:. The Edit: textarea contains:" +msgstr "" +"目前认为您已经创建了触发条件:greetings的片段。编辑:区域内容如下:" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:164 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello ${1:wonderful}${2:amazing} world!\n" +" </greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:169 +msgid "" +"You can insert this snippet by typing greetings in the document " +"and pressing the Tab key. The following text snippet will be " +"inserted:" +msgstr "" +"您可以在文档中输入greetings并按Tab键来插入该片段。以下" +"的文本片段将被插入。" + +#. (itstool) path: section/code +#: C/gedit-plugins-snippets.page:173 +#, no-wrap +msgid "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " +msgstr "" +"\n" +" <greetings>Hello wonderfulamazing world!</greetings>\n" +" " + +#. (itstool) path: section/p +#: C/gedit-plugins-snippets.page:177 +msgid "" +"The words \"wonderful\" and \"amazing\" can be retained or deleted depending " +"on your choice of usage. To do so, press Tab to choose between " +"\"wonderful\" and \"amazing\" and press Del to delete the least " +"preferred option." +msgstr "" +"根据您的选择\"wonderful\"和\"amazing\"两个单词可保留或删除。如果要删除的话," +"请按下Tab键选择\"wonderful\"或\"amazing\",然后按下Del" +"键来删除您不需要的那个。" + +#. (itstool) path: info/desc +#: C/gedit-plugins-sort.page:22 +msgid "Sort lines of text into alphabetical order." +msgstr "对多行文字按字母顺序排列。" + +#. (itstool) path: page/title +#: C/gedit-plugins-sort.page:25 +msgid "Sort" +msgstr "排序" + +#. (itstool) path: page/p +#: C/gedit-plugins-sort.page:27 +msgid "" +"The Sort plugin arranges selected lines of text into alphabetical order." +msgstr "排序插件,可以按字母顺序排列选中的文本行。" + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:31 +msgid "Enable Sort Plugin" +msgstr "启用排序插件" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:33 +msgid "To enable the Sort plugin:" +msgstr "要启用排序插件:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:42 +msgid "Select Sort to enable the plugin." +msgstr "选择 排序 来启用该插件。" + +#. (itstool) path: section/title +#: C/gedit-plugins-sort.page:49 +msgid "Using Sort Plugin" +msgstr "使用排序插件" + +#. (itstool) path: section/p +#: C/gedit-plugins-sort.page:51 +msgid "To use the Sort plugin:" +msgstr "要使用排序插件:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:55 +msgid "Select the desired lines of text." +msgstr "选择需要排序的那些行。" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:58 +#, fuzzy +#| msgid "" +#| "Select File Print…." +msgid "" +"Select Tools Sort…" +"." +msgstr "" +"选择菜单 文件 打" +"印...。" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:62 +msgid "" +"The Sort dialog will open, allowing you to choose between several " +"sorting options:" +msgstr "在出来的排序对话框中,有几个选项可供选择:" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:66 +msgid "" +"Reverse order will arrange the text in reverse alphabetical order." +msgstr "逆序 按照相反字母顺序排序。" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:70 +msgid "" +"Remove duplicates will remove duplicate values from the list." +msgstr "删除重复内容 删除列表中重复的行。" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:74 +msgid "Ignore case will ignore case sensitivity." +msgstr "忽略大小写 不区分字母的大小写。" + +#. (itstool) path: note/p +#: C/gedit-plugins-sort.page:76 +msgid "" +"To have the sort ignore the characters at the start of the lines, set the " +"first character that should be used for sorting in the Start at " +"column spin box." +msgstr "可以通过在开始于整数旋转框设置行首前几位字符作为排序依据。" + +#. (itstool) path: item/p +#: C/gedit-plugins-sort.page:84 +msgid "To perform the sort operation, click Sort." +msgstr "要执行排序操作,点击 排序 按钮。" + +#. (itstool) path: info/desc +#: C/gedit-printing-order.page:7 +msgid "Set the pages to print in a certain order." +msgstr "设置页面以特定的顺序打印。" + +#. (itstool) path: credit/name +#: C/gedit-printing-order.page:11 C/gedit-printing-select.page:10 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: page/title +#: C/gedit-printing-order.page:21 +msgid "Getting Copies To Print In The Correct Order" +msgstr "让副本以正确的顺序打印" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:24 +msgid "Reverse" +msgstr "倒序" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:26 +msgid "" +"Printers usually print the first page first, and the last page last, so the " +"pages end up in reverse order when you pick them up. To reverse the order:" +msgstr "" +"打印机通常是第一页先打印,最后一页最后打印,所以当您拿起纸张时发现最后一页在" +"最上面。您可以这样调整顺序:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:32 +msgid "" +"Select File Print." +msgstr "" +"选择 文件 打印。" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:36 +msgid "" +"In the General tab of the Print dialog under Copies, check Reverse." +msgstr "" +"在打印对话框的 常规 标签页的 副" +"本选项中,勾选 逆序。" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:42 +msgid "The last page will be printed first, and so on." +msgstr "最后一页会先打印,第一页最后打印。" + +#. (itstool) path: section/title +#: C/gedit-printing-order.page:46 +msgid "Collate" +msgstr "逐份" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:48 +msgid "" +"If you are printing more than one copy of the document, the print outs will " +"be grouped by page number by default. (e.g. The copies of page one come out, " +"then the copies of page two, etc.) Collating will make each copy come out " +"with its pages grouped together." +msgstr "" +"当您在打印多份文档时,默认会按页码分组打印(例如,第一页全部打印完,然后才打" +"印第二页)。逐份打印功能实现一份所有页码打印完,再打印下一份。" + +#. (itstool) path: section/p +#: C/gedit-printing-order.page:53 +msgid "To Collate:" +msgstr "逐份打印:" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:56 +msgid "" +"Click File Print." +msgstr "" +"点击 文件 打印。" + +#. (itstool) path: item/p +#: C/gedit-printing-order.page:60 +msgid "" +"In the General tab of the Print dialog under Copies check Collate." +msgstr "" +"在打印对话框的 常规 标签页的 副" +"本选项中,勾选 逐份。" + +#. (itstool) path: info/desc +#: C/gedit-printing.page:7 +msgid "Print the files that you create with gedit." +msgstr "打印您创建的文件。" + +#. (itstool) path: page/title +#: C/gedit-printing.page:20 +msgid "Printing documents" +msgstr "打印文档" + +#. (itstool) path: note/p +#: C/gedit-printing.page:23 +msgid "" +"Printing with gedit requires that you have connected and " +"configured your printer. If you have not done this, please consult the printing help for GNOME." +msgstr "" +"在 gedit 中使用打印,需要您连接并配置好打印机,如果您还没有准备" +"好,请查阅GNOME 打印帮助。" + +#. (itstool) path: page/p +#: C/gedit-printing.page:28 +msgid "gedit allows you to print both to a file and to paper." +msgstr "在gedit中,您可以打印到文件和纸张。" + +#. (itstool) path: section/title +#: C/gedit-printing.page:31 +msgid "Print Preview" +msgstr "打印预览" + +#. (itstool) path: section/p +#: C/gedit-printing.page:33 +msgid "" +"Prior to printing your document, you can preview how the printed document " +"will look by using Print Preview. To preview the document:" +msgstr "" +"在您打印文档之前,您可以使用打印预览预览打印效果。打印预览的方法:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:38 +msgid "" +"Select File Print " +"Preview. Alternatively, you can press ShiftCtrl P." +msgstr "" +"选择菜单 文件 打印" +"预览。另外,您也可以使用组合键ShiftCtrl P。" + +#. (itstool) path: section/p +#: C/gedit-printing.page:45 +msgid "" +"A preview of your document will open in the same tab as the file. You can " +"browse this preview with help of navigation buttons and tools in the toolbar " +"at the top of the document preview tab. To close and return to the document " +"click Close Preview." +msgstr "" +"在文件的同一标签下会出现文件预览。您可以使用文件预览顶端工具栏上的导航按钮等" +"工具帮助您浏览文件预览。您可以通过点击 关闭预览按" +"钮返回文档。" + +#. (itstool) path: section/title +#: C/gedit-printing.page:53 +msgid "Printing To Paper" +msgstr "打印到纸张" + +#. (itstool) path: section/p +#: C/gedit-printing.page:55 +msgid "" +"You can print your documents to paper using a local or remote printer. To " +"print a file:" +msgstr "您可以通过本地或远程打印机将文档打印到纸张上。打印方法:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:60 +msgid "" +"Select File Print General." +msgstr "" +"点击菜单文件 打印 常规。" + +#. (itstool) path: item/p +#: C/gedit-printing.page:65 +msgid "Select the desired printer from the list of printers available." +msgstr "在可用的打印机列表中选择合适的打印机。" + +#. (itstool) path: item/p +#: C/gedit-printing.page:68 +msgid "" +"You can preview the file using Print Preview and " +"once you are satisfied with the settings, click Print to send the file to printer." +msgstr "" +"您可以通过打印预览预览效果,如果效果满意可以单击" +"打印按钮将文件发送到打印机打印。" + +#. (itstool) path: section/p +#: C/gedit-printing.page:74 +msgid "" +"Additionally, from Page Setup tab: you can choose " +"Layout and Paper " +"options. As these settings are available throughout GNOME " +"programs, please consult Layout and Paper options help." +msgstr "" +"此外,从页面设置标签页:您可以更改布局纸张选项。这些选项在GNOME所有的程序中都是一致的,所以您可以参考页面与纸张设置的帮助文档。" + +#. (itstool) path: section/title +#: C/gedit-printing.page:84 +msgid "Print Multiple Copies And Between Specified Ranges" +msgstr "为指定的范围打印多份副本" + +#. (itstool) path: section/p +#: C/gedit-printing.page:86 +msgid "" +"You can set Range and Copies options to help you:" +msgstr "" +"您可以通过设置范围副本选项来帮您实现这个功能:" + +#. (itstool) path: section/title +#: C/gedit-printing.page:92 +msgid "Printing To File" +msgstr "打印到文件" + +#. (itstool) path: section/p +#: C/gedit-printing.page:94 +msgid "" +"You can also use gedit to print to a file. To print your document " +"to file of a different format:" +msgstr "" +"您也可以使用gedit将文档打印到文件。将文档打印到不同格式的文件:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:99 +msgid "" +"Select File Print Print to File." +msgstr "" +"选择 文件 打印 打印到文件。" + +#. (itstool) path: item/p +#: C/gedit-printing.page:104 +msgid "" +"Printing is enabled for the following file formats, you may select from:" +msgstr "打印允许使用下列文件格式:" + +#. (itstool) path: item/p +#: C/gedit-printing.page:108 +msgid "Portable Document Format (.pdf)" +msgstr "便携式文档格式(.pdf)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:111 +msgid "PostScript (.ps)" +msgstr "PostScript (.ps)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:114 +msgid "Scalable Vector Graphic (.svg)" +msgstr "可缩放矢量图形(.svg)" + +#. (itstool) path: item/p +#: C/gedit-printing.page:119 +msgid "To print the document to file, click Print." +msgstr "点击打印按钮,文档将打印到文件。" + +#. (itstool) path: info/desc +#: C/gedit-printing-select.page:7 +msgid "Choose the pages that you want to print." +msgstr "选择您想要打印的页。" + +#. (itstool) path: page/title +#: C/gedit-printing-select.page:20 +msgid "Only print certain pages" +msgstr "仅打印特定页" + +#. (itstool) path: page/p +#: C/gedit-printing-select.page:22 +msgid "" +"You can selectively print only certain pages from the document. For example, " +"if you enter the page numbers \"1,3,5-7,9\", then only pages 1, 3, 5, 6, 7 " +"and 9 will be printed. To print pages of your choice:" +msgstr "" +"您可以有选择的只打印文档中指定的页。例如,如果您输入页码\"1,3,5-7,9\",则只打" +"印1, 3, 5, 6, 7, 9这几页。如何打印选择的页:" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:28 +msgid "" +"Select File Print…" +"." +msgstr "" +"选择菜单 文件 打" +"印...。" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:32 +msgid "" +"In the General tab in the Print dialog choose Pages from the Range " +"section." +msgstr "" +"在打印对话框常规标签页内从范围" +"区域中选择页面。" + +#. (itstool) path: item/p +#: C/gedit-printing-select.page:36 +msgid "" +"Type the numbers of the pages you want to print from the document, separated " +"by commas. Use a dash to specify a range of pages." +msgstr "输入文档中需要打印的页码,以逗号分隔。使用短横线指定页码范围。" + +#. (itstool) path: info/desc +#: C/gedit-quickstart.page:9 +msgid "A brief introduction to gedit." +msgstr "一个简单的 gedit 介绍。" + +#. (itstool) path: page/title +#: C/gedit-quickstart.page:22 +msgid "Get started with gedit" +msgstr "开始使用 gedit" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:23 +msgid "" +"gedit is a full-featured text editor for the GNOME desktop " +"environment. You can use it to prepare simple notes and documents, or you " +"can use some of its advanced features, making it your own software " +"development environment." +msgstr "" +"gedit 具备 GNOME 桌面环境的全部特性,您可以使用它书写简单的便笺和" +"文档,也可以使用它的高级特性,让它成为一个软件开发平台。" + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/gedit-quickstart.page:28 +#, fuzzy +#| msgctxt "_" +#| msgid "" +#| "external ref='figures/gedit3-screenshot.png' " +#| "md5='883fe82b057396bce097926551bb109e'" +msgctxt "_" +msgid "" +"external ref='figures/gedit3-screenshot.png' " +"md5='5fd76174e1e72f99c870b9983034ccd1'" +msgstr "" +"external ref='figures/gedit3-screenshot.png' " +"md5='883fe82b057396bce097926551bb109e'" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:30 +msgid "" +"Once gedit launches, you can start writing right away. To save " +"your text, just click the Save button in the gedit " +"header bar." +msgstr "" +"在 gedit 文本编辑器启动之后,您就可以马上开始书写了。要保存文本," +"请点击gedit 标题栏上的保存按钮。" + +#. (itstool) path: page/p +#: C/gedit-quickstart.page:34 +msgid "" +"To learn about additional gedit features and to get assistance " +"with performing additional tasks, explore the other " +"portions of the gedit help." +msgstr "" +"要学习 gedit 的额外特性,进行别的任务,请访问 gedit 帮" +"助的 其他部分。" + +#. (itstool) path: info/desc +#: C/gedit-replace.page:8 +msgid "Replace portions of text in a file." +msgstr "替换文件中的部分文本。" + +#. (itstool) path: credit/name +#: C/gedit-replace.page:34 +msgid "Young Li" +msgstr "Young Li" + +#. (itstool) path: page/title +#: C/gedit-replace.page:40 +msgid "Replace text" +msgstr "替换文本" + +#. (itstool) path: page/p +#: C/gedit-replace.page:42 +msgid "" +"Editing text can be time consuming. To save time, gedit includes " +"a Replace function that helps you to find and replace portions of " +"text." +msgstr "" +"修改文本是比较费时的,为了节省时间,gedit 提供了一个 替换 功能,来帮助您查找并替换文本。" + +#. (itstool) path: steps/title +#: C/gedit-replace.page:47 +msgid "Replace text in gedit" +msgstr "在 gedit 中替换文本" + +#. (itstool) path: item/p +#: C/gedit-replace.page:49 +msgid "" +"Open the Replace tool by clicking Menu buttonFind and Replace… " +"or press CtrlH." +msgstr "" +"点 菜单按钮查找和" +"替换... 命令打开 Replace 工具,也可以按组合键 " +"CtrlH。" + +#. (itstool) path: item/p +#: C/gedit-replace.page:55 +#, fuzzy +#| msgid "" +#| "Enter the text that you wish to replace into the Search for: " +#| "field." +msgid "Enter the text that you wish to replace into the Find field." +msgstr "在搜索:输入框中,输入您想要替换的文本。" + +#. (itstool) path: item/p +#: C/gedit-replace.page:59 +#, fuzzy +#| msgid "" +#| "Enter the new, replacement text into the Replace with: field." +msgid "Enter the new, replacement text into the Replace with field." +msgstr "在替换为:输入框中,输入想替换成的文本。" + +#. (itstool) path: item/p +#: C/gedit-replace.page:63 +msgid "" +"Once you have entered the original and replacement text, you can add extra " +"parameters to the search. You can also choose what you want to replace:" +msgstr "当您输入要替换的文本后,接着选择合适的替换选项:" + +#. (itstool) path: item/p +#: C/gedit-replace.page:68 +msgid "To replace only the next match, click Replace." +msgstr "要替换文档中的下个匹配项,点 替换。" + +#. (itstool) path: item/p +#: C/gedit-replace.page:72 +msgid "" +"To replace all occurrences of the searched-for text, click " +"Replace All." +msgstr "" +"要替换文档中的所有匹配项,点 替换全部。" + +#. (itstool) path: note/p +#: C/gedit-replace.page:80 +msgid "" +"Use the Replace All function with care. Replace All " +"works on the entirety of your text file, and does not allow you to highlight " +"portions of text where the replace function will be performed." +msgstr "" +"使用 全部替换 功能要仔细,它会替换文档中的所有项目,并且不会高亮显" +"示被替换的文本。" + +#. (itstool) path: section/title +#: C/gedit-replace.page:87 +msgid "More options" +msgstr "更多选项" + +#. (itstool) path: section/p +#: C/gedit-replace.page:89 +msgid "If you wish, you can add some extra parameters to your search:" +msgstr "如果需要,您还可以为搜索设置更多选项。" + +#. (itstool) path: item/title +#: C/gedit-replace.page:93 +msgid "Match case" +msgstr "区分大小写" + +#. (itstool) path: item/p +#: C/gedit-replace.page:94 +msgid "" +"The Match case option allows you to specify whether you want your " +"search to be case-sensitive. If this option is selected, searches will be " +"case-sensitive. If not, searches will not be case-sensitive." +msgstr "" +"区分大小写 选项可以指定搜索时是否考虑大小写。选中此项搜索时将会区分" +"字母的大小写,如果不选中,则不区分字母大小写。" + +#. (itstool) path: item/title +#: C/gedit-replace.page:99 +msgid "Match entire word only" +msgstr "匹配整个单词" + +#. (itstool) path: item/p +#: C/gedit-replace.page:100 +msgid "" +"Use this option to search for a specific word without including fragments of " +"other words. For example, if you searched for the word 'and' with this " +"option selected, the word 'and' would be matched, but the words 'sand' and 'commander' would not be matched." +msgstr "" +"使用此选项,将会搜索完整的字词,不包括词语的片段,例如,您要搜索“文档”,并且" +"选中此选项,那么单独的“文档”会被搜索到,而“本文档”和“在文档" +"中”都不会被搜索到。" + +#. (itstool) path: item/title +#: C/gedit-replace.page:107 +msgid "Search backwards" +msgstr "反向搜索" + +#. (itstool) path: item/p +#: C/gedit-replace.page:108 +msgid "" +"This command behaves identically to the Find Previous command. If you wish " +"to step through search results from end to beginning, select this option." +msgstr "" +"这个命令会让查找改变方向,如果您想让搜索从后往前进行,那么就可以选中此项。" + +#. (itstool) path: item/title +#: C/gedit-replace.page:113 +msgid "Wrap around" +msgstr "回到文档头部继续搜索" + +#. (itstool) path: item/p +#: C/gedit-replace.page:114 +msgid "" +"With the wrap around option enabled, gedit will re-" +"start the search/replace action at the top of the file after it has reached " +"the bottom of the file. This ensures that your search/replace action is made " +"across your entire file." +msgstr "" +"选中回到文档头部继续搜索选项,当查找/替换到文档结尾时,会跳到开头" +"重新进行,这将确保查找/替换文档的所有内容。" + +#. (itstool) path: section/title +#: C/gedit-replace.page:124 +msgid "Using escape sequences" +msgstr "使用转义字符" + +#. (itstool) path: section/p +#: C/gedit-replace.page:126 +msgid "" +"You can use escape sequences to search for line breaks, carriage " +"returns, and tabs." +msgstr "您可以使用转义字符 搜索换行符、回车符和制表符。" + +#. (itstool) path: item/title +#: C/gedit-replace.page:131 +msgid "\\n" +msgstr "\\n" + +#. (itstool) path: item/p +#: C/gedit-replace.page:132 +msgid "Newline" +msgstr "换行符" + +#. (itstool) path: item/title +#: C/gedit-replace.page:135 +msgid "\\r" +msgstr "\\r" + +#. (itstool) path: item/p +#: C/gedit-replace.page:136 +msgid "Carriage return" +msgstr "回车" + +#. (itstool) path: item/title +#: C/gedit-replace.page:139 +msgid "\\t" +msgstr "\\t" + +#. (itstool) path: item/p +#: C/gedit-replace.page:140 +msgid "Tab" +msgstr "制表符" + +#. (itstool) path: section/p +#: C/gedit-replace.page:144 +msgid "" +"If you actually want to search for a \\ (backslash) or one " +"of the escape sequences in the text, you need to escape the backslash with " +"an extra backslash. For example, to search for \\, you need " +"to enter \\\\ into the search or replace field. You can " +"search for escape sequences in the same way: to search for or replace with a " +"\\n, use the \\\\n term." +msgstr "" +"如果您需要搜索\\ (反斜杠)或文本中的一个转义字符,您需要用额" +"外的反斜杠来转义反斜杠。例如,要搜索\\,您需要在搜索栏或替换栏" +"输入\\\\。您可以同样的方法搜索其他转义符:要搜索或替换" +"\\n,就输入\\\\n。" + +#. (itstool) path: info/desc +#: C/gedit-save-file.page:8 +msgid "Save your file to work on it later." +msgstr "保存您的文件以便稍后继续编辑。" + +#. (itstool) path: page/title +#: C/gedit-save-file.page:28 +msgid "Save a file" +msgstr "保存文件" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:30 +#, fuzzy +#| msgid "" +#| "To save a file in gedit, click on the Save the current file button with the disk-drive icon on the " +#| "right side of the toolbar or just press CtrlS." +msgid "" +"To save a file in gedit, click on the Save button on the right side of the header bar or just press " +"CtrlS." +msgstr "" +"要在 gedit 中保存文件,点击 工具栏右侧显示为磁盘驱动器的保存" +"当前文件按钮,或者按组合键 CtrlO。" + +#. (itstool) path: page/p +#: C/gedit-save-file.page:33 +msgid "" +"If you are saving a new file, a dialog will appear, and you can select a " +"name for the file, as well as the directory where you would like the file to " +"be saved." +msgstr "" +"如果您是第一次保存,会出现一个对话框;您可以选择文件存储的位置,输入文件的名" +"称。" + +#. (itstool) path: info/desc +#: C/gedit-search.page:8 +msgid "Find a portion of text within a file." +msgstr "在文件中查找文本的一部分。" + +#. (itstool) path: page/title +#: C/gedit-search.page:30 +msgid "Search for text" +msgstr "搜索文本" + +#. (itstool) path: page/p +#: C/gedit-search.page:32 +msgid "" +"The Find tool can help you find specific sequences of text within in your " +"file." +msgstr "搜索工具可以帮您查找文档中指定的文本。" + +#. (itstool) path: steps/title +#: C/gedit-search.page:36 +msgid "Finding text" +msgstr "查找文本" + +#. (itstool) path: item/p +#: C/gedit-search.page:38 +msgid "" +"Open the search window by clicking Menu Button Find… or " +"pressing CtrlF. This will move your " +"cursor to the start of the search window." +msgstr "" +"通过点击菜单按钮 查" +"找... 或使用组合键CtrlF" +"可以打开搜索窗口。这将移动您的光标到搜索窗口的开始位" +"置。" + +#. (itstool) path: item/p +#: C/gedit-search.page:45 +msgid "Type the text you wish to search for in the search window." +msgstr "在 搜索窗口 中输入您想要查找的文本。" + +#. (itstool) path: item/p +#: C/gedit-search.page:49 +msgid "" +"As you type, gedit will begin highlighting the portions of text " +"that match what you have entered." +msgstr "在您输入的同时,gedit 就会高亮显示文档中的匹配项。" + +#. (itstool) path: page/p +#: C/gedit-search.page:54 +msgid "To scroll through the search results, do any of the following:" +msgstr "如需滚动显示搜索结果,以下操作均可实现:" + +#. (itstool) path: item/p +#: C/gedit-search.page:57 +msgid "" +"Click on the up or down facing arrows next to the search window." +msgstr "" +"点击搜索窗口旁的的箭头。" + +#. (itstool) path: item/p +#: C/gedit-search.page:62 +msgid "" +"Press the up arrow or down arrow keys on your keyboard." +msgstr "按键盘上的键。" + +#. (itstool) path: item/p +#: C/gedit-search.page:66 +msgid "" +"Press CtrlG or CtrlShiftG." +msgstr "" +"按CtrlGCtrlShiftG" + +#. (itstool) path: page/p +#: C/gedit-search.page:71 +msgid "" +"To close the search window, press either Esc or " +"Enter. Pressing Esc will return the cursor to where it " +"was before you began your search. Pressing Enter will return the " +"cursor to the current position in the search results." +msgstr "" +"按下 Esc 或者 Enter 键都可以关闭 搜索 窗口。" +"但使用 Esc 键的话光标会返回到搜索前的位置;而使用 Enter 键,光标则会返回到搜索结果的位置。" + +#. (itstool) path: list/title +#: C/gedit-search.page:77 +msgid "Search tips" +msgstr "搜索技巧" + +#. (itstool) path: item/p +#: C/gedit-search.page:79 +msgid "" +"If you highlight a portion of text with your mouse, and then press " +"CtrlF, the text you've highlighted " +"will appear in the search window." +msgstr "" +"如果您使用鼠标选中一段文本,然后按 CtrlF 进行搜索,则这段文本会自动出现在搜索窗口中。" + +#. (itstool) path: item/p +#: C/gedit-search.page:84 +msgid "" +"For more search options, click on the Magnifying " +"Glass icon in the search window, or right-click anywhere in the search " +"window. You can select one or more of the following search options:" +msgstr "" +"更多搜索选项,请点击搜索窗口的 放大镜 图标,或右" +"键点击搜索窗口。您可以在以下搜索选项中选择一个或多个:" + +#. (itstool) path: item/p +#: C/gedit-search.page:90 +msgid "Select Match Case to make the search case sensitive." +msgstr "选择 区分大小写 实现对大小写的严格匹配。" + +#. (itstool) path: item/p +#: C/gedit-search.page:93 +msgid "Select Match Entire Word Only to search only complete words." +msgstr "选择 只匹配整个单词 仅搜索完整的单词。" + +#. (itstool) path: item/p +#: C/gedit-search.page:97 +msgid "" +"Select Wrap Around to search text from top to bottom and cycle " +"back again." +msgstr "选择回到文档头部继续搜索从头重新搜索。" + +#. (itstool) path: item/p +#: C/gedit-search.page:103 +#, fuzzy +#| msgid "" +#| "The text that you've searched for will remain highlighted by gedit, even " +#| "after you have completed your search. To remove the highlight, click " +#| "SearchClear Highlight, or press " +#| "CtrlShiftK." +msgid "" +"The text that you've searched for will remain highlighted by gedit, even " +"after you have completed your search. To remove the highlight, click Clear Highlight, or press CtrlShiftK." +msgstr "" +"您搜索的文本会保持高亮状态,甚至搜索完毕还会高亮。要取消高亮状态,点菜单 " +"搜索清除突出显示,或者按组合键 " +"CtrlShiftK。" + +#. (itstool) path: info/desc +#: C/gedit-spellcheck.page:7 +msgid "Check your files for spelling errors." +msgstr "检查文件中的拼写错误。" + +#. (itstool) path: credit/name +#: C/gedit-spellcheck.page:16 +msgid "Baptiste Mille-Mathias" +msgstr "Baptiste Mille-Mathias" + +#. (itstool) path: page/title +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:28 C/gedit-spellcheck.page:49 +msgid "Spell-check your document" +msgstr "拼写检查" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:30 +msgid "Enable the spell checker" +msgstr "启用拼写检查器" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:31 +msgid "" +"The Spell-check feature is provided as a plugin in gedit which " +"can be enabled as required. To enable the plugin:" +msgstr "拼写检查是 gedit 提供的一个按需启用的插件。启用该插件:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:41 +msgid "" +"Select Spell Checker to enable the plugin." +msgstr "选择 拼写检查器 来启用该插件。" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:51 +msgid "To check for misspelt words in your document:" +msgstr "检查文档中拼写错误的单词:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:55 +msgid "" +"Select Tools Check " +"Spelling." +msgstr "" +"选择工具检查拼写。" + +#. (itstool) path: note/p +#: C/gedit-spellcheck.page:61 +msgid "" +"To have gedit automatically highlight misspelt words in your " +"document as you type, select ToolsHighlight Misspelled Words." +msgstr "" +"要让 gedit 自动高亮显示您在文档中拼写错误的单词,请选择 " +"工具高亮显示拼写错" +"误的单词。" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:68 +msgid "Using spell-check" +msgstr "拼写检查使用中" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:70 +msgid "" +"You can choose the right substitution for misspelt words using the Check " +"Spelling dialog. The misspelt word being checked by the spell-checker is " +"displayed in bold style next to Misspelled word:. You can choose " +"from the following corrective actions:" +msgstr "" +"在拼写检查对话框中您可以选择正确的单词替代拼写错误的单词。被拼写检查器检查出" +"拼写错误的单词会在 拼写错误的单词: 后边粗体显示。您可以从以下校对" +"方法中选择:" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:77 +msgid "" +"Change to: allows you to input a word and use " +"Check Word to check the validity of the spelling." +msgstr "" +"更改为: 允许您输入一个单词并使用 检查单词 来检查拼写是否正确。" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:82 +msgid "" +"Suggestions: lists the available substitutions for " +"the word." +msgstr "建议: 列出可选的替代词。" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:86 +msgid "" +"Ignore allows you to bypass spell check for " +"a instance of current word." +msgstr "" +"忽略 允许您忽略对当前单词的 这一个 拼写" +"检查。" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:90 +msgid "" +"Ignore All allows you to bypass spell check for " +"all instances of the current word." +msgstr "" +"忽略所有 允许您忽略当前单词的 所有 拼写" +"检查。" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:94 +msgid "" +"Change substitutes the misspelt or unrecognized " +"word with a chosen substitute from the Suggestions: list." +msgstr "" +"按下 更改 按钮,在 建议:" +" 列表中选择的单词将替代掉这个拼写错误或无法识别的单词。" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:99 +msgid "" +"Change all substitutes all misspelt or " +"unrecognized words with the chosen substitute from the Suggestions: list." +msgstr "" +"按下 更改 按钮,在 建议:" +" 列表中选择的单词将替代掉 所有的 这个拼写错误或无法识别的单" +"词。" + +#. (itstool) path: item/p +#: C/gedit-spellcheck.page:104 +msgid "" +"Add word allows you to add the current word to " +"the gedit User dictionary. Adding custom words to the " +"User dictionary will allow gedit to recognize the word " +"in documents and thus will not be highlighted as a misspelt word." +msgstr "" +"添加单词 允许您将当前单词添加到 gedit " +"的 用户词典。添加自定义单词到 用户辞典 会使 " +"gedit 将识别这个单词并且不会将它高亮显示为拼写错误的单词。" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:115 +msgid "Define the language to use for spell checking" +msgstr "为拼写检查定义语言" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:116 +msgid "" +"By default, gedit will use your current language to spell check " +"your document. If you need to use another language, choose ToolsSet Language…, then choose the language you want to use." +msgstr "" +"默认,gedit 会使用当前的语言对文档进行拼写检查。如果需要使用其他语" +"言,请选择 工具选择" +"语言…,然后选择您想使用的语言。" + +#. (itstool) path: section/title +#: C/gedit-spellcheck.page:123 +msgid "Dictionaries" +msgstr "字典" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:125 +#, fuzzy +#| msgid "" +#| "gedit uses Enchant, a small system utility, for spell checking. " +#| "Enchant can use several different dictionaries to check your spelling. " +#| "Two such dictionary back-ends are Hunspell and Aspell." +msgid "" +"gedit uses Enchant, a small system utility, for spell checking. " +"Enchant can use several different dictionaries to check your spelling. Two " +"such dictionary back-ends are Hunspell and Aspell." +msgstr "" +"gedit 使用的是 Enchant, 一个用于拼写检查的系统小工具。 Enchant 可以使用多" +"种不同的词典来检查您的拼写。 其中两个词典后端是 Hunspell 和 " +"Aspell。" + +#. (itstool) path: section/p +#: C/gedit-spellcheck.page:131 +msgid "" +"If the language you want to use is not available in gedit, use " +"your computer's software installer or package manager to install the " +"dictionary back-end that you want." +msgstr "" +"如果您需要使用的语言在 gedit 中不可用,请使用软件安装器或软件包管" +"理器安装您需要的词典后端程序。" + +#. (itstool) path: info/desc +#: C/gedit-syntax-highlighting.page:7 +msgid "Highlight your text to make it easier to read." +msgstr "高亮文本让它更加易读。" + +#. (itstool) path: page/title +#: C/gedit-syntax-highlighting.page:20 +msgid "Turn on syntax highlighting" +msgstr "打开语法高亮显示" + +#. (itstool) path: section/title +#: C/gedit-syntax-highlighting.page:23 +msgid "Syntax highlighting" +msgstr "语法高亮显示" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:24 +msgid "" +"gedit provides syntax highlighting for a wide range of markup, " +"programming, and scientific languages. If gedit recognizes the " +"syntax being used when you open a file, it will automatically highlight the " +"text." +msgstr "" +"gedit 支持广泛的高亮语法,像标记语言、程序语言和科学语言等等,如" +"果 gedit 识别出打开的文件,它将会自动显示高亮文本。" + +#. (itstool) path: section/p +#: C/gedit-syntax-highlighting.page:29 +msgid "" +"If your syntax or language is not highlighted upon startup, you can select " +"the appropriate syntax or language by clicking View Highlight Mode, and " +"then choosing the desired syntax. Alternately, you can select the syntax " +"name from a list at the bottom of the gedit window." +msgstr "" +"如果打开一种文件格式或语言后,没有显示高亮语法,您可以通过点菜单 " +"查看突出显示模式 来选择一种高亮格式。或者,您还可以从 gedit 窗口底部" +"的格式列表中选择。" + +#. (itstool) path: info/desc +#: C/gedit-tab-groups.page:10 +msgid "Group similar tabs together." +msgstr "为相似的标签页分组。" + +#. (itstool) path: credit/name +#: C/gedit-tab-groups.page:14 C/gedit-tabs-moving.page:25 C/gedit-tabs.page:26 +msgid "Radina Matic" +msgstr "Radina Matic" + +#. (itstool) path: credit/years +#: C/gedit-tab-groups.page:16 C/gedit-tabs-moving.page:27 C/gedit-tabs.page:28 +msgid "2013" +msgstr "2013" + +#. (itstool) path: page/title +#: C/gedit-tab-groups.page:22 +msgid "Organize files in grouped tabs" +msgstr "通过分组标签页组织文件" + +#. (itstool) path: page/p +#: C/gedit-tab-groups.page:24 +#, fuzzy +#| msgid "" +#| "If you are working with multiple tabs in gedit you can group " +#| "them, making it easier to keep your opened files organized. Adding a new " +#| "tab group will divide the gedit window in two panes, open a " +#| "new \"Untitled Document\" in the new pane, and make it active. You can " +#| "open files into that tab group and move tabs from one tab group to " +#| "another." +msgid "" +"If you are working with multiple tabs in gedit you can group " +"them, making it easier to keep your opened files organized. Adding a new tab " +"group will divide the gedit window in two panes, open a new " +"“Untitled Document” in the new pane, and make it active. You can open files " +"into that tab group and move tabs from one tab group to another." +msgstr "" +"在您使用 gedit 的多标签页的时候其实可以将他们分组,这样就可以保持" +"打开的文件是有条理的。添加一个标签页组会将 gedit 窗口分成两块格" +"子,然后在新窗格中新打开一个 \"无标题文档\" ,并激活它。您可以在那个标签组中" +"打开文件,也可以把标签页从一个组移动到另一个组。" + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:31 +msgid "Open a new tab group in the gedit window" +msgstr "在 gedit 窗口中新建标签页组" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:33 +msgid "To open a new tab group you can:" +msgstr "新建一个标签页组:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:37 +msgid "Right click on a tab and select Move to New Tab Group." +msgstr "" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:40 +msgid "" +"Use the CtrlAltN shortcut." +msgstr "" +"使用快捷键CtrlAlt PageUp。" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:45 +#, fuzzy +#| msgid "" +#| "This action will divide the gedit window in two panes, and the " +#| "pane with the new tab group will be placed on the right of the active " +#| "tab. You can move the handle right or left assigning more or less space " +#| "of gedit window between panes according to your needs." +msgid "" +"This action will divide the gedit window in two panes, and the " +"pane with the new tab group will be placed on the right of the active tab. " +"You can move the handle right or left assigning more or less space of the " +"gedit window between panes according to your needs." +msgstr "" +"这个操作将 gedit 窗口分为两个窗格,新生成标签页组的窗格位于原标签" +"的右侧。您可以按需对 gedit 的这两个窗格的位置大小进行调整。" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:50 +#, fuzzy +#| msgid "" +#| "You can open as much tab groups in gedit window as your screen " +#| "allows, but you will have to move the handle in order to see them " +#| "correctly." +msgid "" +"You can open as much tab groups in a gedit window as your screen " +"allows, but you will have to move the handle in order to see them correctly." +msgstr "" +"您可以在 gedit 窗口中打开任意多的标签页组直到把窗口撑满,当然如果" +"真这样做的话使用起来可不轻松。" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:54 +msgid "" +"To close a tab group pane just close all the tabs that are opened inside it." +msgstr "要关闭一个标签页组的窗格,您只需要关闭窗格中所有标签页就可以了。" + +#. (itstool) path: section/title +#: C/gedit-tab-groups.page:84 +msgid "Move a tab to another tab group" +msgstr "将标签页移到其他标签页组中" + +#. (itstool) path: section/p +#: C/gedit-tab-groups.page:86 +msgid "If you want to move a tab from one tab group to another:" +msgstr "如果您想将标签从一个标签页组移动到另一个标签页组:" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:90 C/gedit-tabs-moving.page:45 +#: C/gedit-tabs-moving.page:65 C/gedit-tabs-moving.page:88 +msgid "Click and hold the mouse button on the tab." +msgstr "在标签上点击并按住鼠标按钮。" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:93 +msgid "Drag the tab to another tab group pane." +msgstr "拖动标签页到另外一个标签页组。" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:96 +msgid "Place it beside other tabs in the tab group." +msgstr "将它放在该标签页组的其他标签旁。" + +#. (itstool) path: item/p +#: C/gedit-tab-groups.page:99 C/gedit-tabs-moving.page:51 +#: C/gedit-tabs-moving.page:71 C/gedit-tabs-moving.page:97 +msgid "Release the mouse button." +msgstr "松开鼠标按钮。" + +#. (itstool) path: info/desc +#: C/gedit-tabs-moving.page:10 +msgid "Change the position of a tab in the gedit window." +msgstr "在 gedit 窗口中改变标签顺序。" + +#. (itstool) path: page/title +#: C/gedit-tabs-moving.page:32 +msgid "Move and re-order tabs" +msgstr "移动和重排标签顺序" + +#. (itstool) path: page/p +#: C/gedit-tabs-moving.page:33 +msgid "" +"Tabs in gedit can be moved, making it easier to work with your " +"files. Tabs can be can re-ordered within the same window, moved outside of " +"gedit (creating a new gedit window), and moved from " +"one window to another." +msgstr "" +"gedit 中的标签可以移动,这样文件操作就更加方便,同一个窗口内的标签" +"可以重新排序,也可以移出 gedit(创建一个新的 gedit 窗" +"口),并且可以从一个窗口移到另外一个窗口中。" + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:39 +msgid "Change the order of tabs in the gedit window" +msgstr "在 gedit 窗口中改变标签顺序" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:41 +msgid "To change the ordering of tabs in a window:" +msgstr "要更改窗口中标签的顺序:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:48 +#, fuzzy +#| msgid "Move the tab to the desired position among the other tab." +msgid "Move the tab to the desired position among the other tabs." +msgstr "拖动标签到想要的位置。" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:55 +msgid "" +"The tab will be placed in the position closest to where you release the tab, " +"immediately beside other opened tabs." +msgstr "标签将会放在您松手位置标签的旁边,立即插在其他打开标签的中间。" + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:60 +msgid "Move a tab, creating a new gedit window" +msgstr "移动标签,创建一个新的 gedit 窗口" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:61 +msgid "To create a new window from an existing tab:" +msgstr "将标签页移到新窗口:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:68 +msgid "Drag the tab out of the gedit window." +msgstr "将标签拖出gedit窗口。" + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:76 +msgid "" +"To move a tab into a new window when gedit is maximized, drag the " +"tab onto the top bar at the top of the screen." +msgstr "" +"在 gedit 最大化时要将一个标签页移到新窗口,就请将标签页拖拽到屏幕" +"上方的顶栏。" + +#. (itstool) path: section/title +#: C/gedit-tabs-moving.page:82 +msgid "Move a tab to another gedit window" +msgstr "将标签移到其他 gedit 窗口中" + +#. (itstool) path: section/p +#: C/gedit-tabs-moving.page:84 +msgid "If you want to move a tab from one window to another:" +msgstr "如果您想将标签从一个窗口移动到另一个窗口中:" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:91 +msgid "Drag the tab to the new window." +msgstr "拖动标签到新窗口。" + +#. (itstool) path: item/p +#: C/gedit-tabs-moving.page:94 +msgid "Place it beside other tabs in the new window." +msgstr "将它放在新窗口的其他标签旁边。" + +#. (itstool) path: note/p +#: C/gedit-tabs-moving.page:103 +msgid "" +"You may find it easier to move a tab from one window to another by dragging " +"the tab to the Activities hot-corner of GNOME Shell. " +"This will reveal each of the open gedit windows. You can then " +"release the tab on the desired gedit window." +msgstr "" +"在 GNOME Shell 中您可以轻松的将一个窗口中的标签页拖动到 活动" +" 热角,然后再拖动到另外一个窗口中。这期间会展示出每一个打开了的 " +"gedit 窗口。然后您就可以把标签页释放到预期的 gedit 窗口" +"中。" + +#. (itstool) path: info/desc +#: C/gedit-tabs.page:10 +msgid "Create or close tabs in the gedit window." +msgstr "在 gedit 窗口中改变标签顺序。" + +#. (itstool) path: page/title +#: C/gedit-tabs.page:38 +msgid "Add and remove tabs" +msgstr "添加和删除标签" + +#. (itstool) path: page/p +#: C/gedit-tabs.page:39 +msgid "" +"Working with tabs in gedit allows you to keep an eye on several " +"files in a single window." +msgstr "" + +#. (itstool) path: section/title +#: C/gedit-tabs.page:43 +msgid "Adding tabs" +msgstr "添加标签" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:44 +#, fuzzy +#| msgid "" +#| "To add a new tab, create a new file with Ctrl T. The tab will be added to the right side of any other tabs." +msgid "" +"To add a new tab to create a new file, click the Create a new document button on the left side of the header bar, or press CtrlT. The tab will be added to the right side of any " +"other tabs." +msgstr "" +"要添加一个新标签,按组合键 Ctrl T创建" +"一个新文件。新标签将会放在标签栏的最右边。" + +#. (itstool) path: section/title +#: C/gedit-tabs.page:51 +msgid "Removing tabs" +msgstr "删除标签" + +#. (itstool) path: section/p +#: C/gedit-tabs.page:52 +#, fuzzy +#| msgid "" +#| "To remove a tab, click the × on the tab's " +#| "right side. To remove all open tabs, press Ctrl " +#| "ShiftW." +msgid "" +"To remove a tab, click the × on the tab's right " +"side, or press CtrlW. To remove all " +"open tabs, press Ctrl ShiftW." +msgstr "" +"要移除一个标签,点击标签右边的 X 按钮,要关闭所有" +"打开的标签,按组合键 CtrlShiftW。" + +#. (itstool) path: info/desc +#: C/gedit-undo-redo.page:8 +msgid "Revert a recent change to one of your files." +msgstr "撤销最近对您的文件所做的更改。" + +#. (itstool) path: page/title +#: C/gedit-undo-redo.page:31 +msgid "Undo/redo a recent action" +msgstr "撤销/重做最近的操作" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:33 +msgid "" +"If you make a mistake while editing a document in gedit, you can " +"undo the change by pressing CtrlZ." +msgstr "" +"如果您在gedit中发生了误操作,您可以通过组合键 CtrlZ撤销这个操作。" + +#. (itstool) path: note/p +#: C/gedit-undo-redo.page:37 +msgid "You cannot undo a change after you have closed a gedit file." +msgstr "当您关闭gedit的文件后,将无法取消修改。" + +#. (itstool) path: page/p +#: C/gedit-undo-redo.page:40 +msgid "" +"To redo the change that was undone, press CtrlShiftZ." +msgstr "" +"如需重做刚刚撤销的操作,请使用 CtrlShiftZ 组合键。" + +#. (itstool) path: info/title +#: C/index.page:8 +msgctxt "link" +msgid "gedit Text Editor" +msgstr "gedit 文本编辑器" + +#. (itstool) path: info/title +#: C/index.page:9 +msgctxt "text" +msgid "gedit Text Editor" +msgstr "gedit 文本编辑器" + +#. (itstool) path: info/desc +#: C/index.page:11 +msgid "Home page of the gedit help guide." +msgstr "gedit 使用指南首页。" + +#. (itstool) path: page/title +#: C/index.page:26 +msgid "<_:media-1/> gedit Text Editor" +msgstr "<_:media-1/> gedit 文本编辑器" + +#. (itstool) path: page/p +#: C/index.page:30 +msgid "" +"Welcome to the gedit help guide. For a quick introduction into " +"gedit's most basic features, visit the Get started with gedit page." +msgstr "" +"欢迎阅读 gedit 帮助指导。要查看 gedit 基本功能的简要介" +"绍,请转到“开始使用 gedit”页面。" + +#. (itstool) path: page/p +#: C/index.page:34 +msgid "" +"Other help topics are grouped together into sections below. Enjoy using " +"gedit!" +msgstr "本页上还分组列出了其他帮助主题。祝您愉快地使用 gedit!" + +#. (itstool) path: section/title +#: C/index.page:38 +msgid "Working With Files" +msgstr "文件操作" + +#. (itstool) path: section/title +#: C/index.page:43 +msgid "Configure gedit" +msgstr "配置 gedit" + +#. (itstool) path: section/title +#: C/index.page:47 +msgid "gedit Plugins" +msgstr "gedit 插件" + +#. (itstool) path: section/title +#: C/index.page:51 +msgid "Printing with gedit" +msgstr "使用 gedit 打印" + +#. (itstool) path: p/link +#: C/legal.xml:3 +msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License" +msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License" + +#. (itstool) path: license/p +#: C/legal.xml:3 +msgid "This work is licensed under a <_:link-1/>." +msgstr "本帮助手册基于 <_:link-1/> 授权。" + +#~ msgid "" +#~ "To close a file in gedit, select File " +#~ "Close. Alternately, you can click the small \"X\" " +#~ "that appears on the right-side of the file's tab, or press " +#~ "Ctrl W." +#~ msgstr "" +#~ "要在 gedit 中关闭一个文件,点菜单 文件" +#~ "关闭。另外,您也可以点击这个文件所在标签右侧的小“X”,或者按" +#~ "组合键 CtrlW。" + +#~ msgid "" +#~ "This will activate the file-browser mode of the side pane. You can then use the navigation buttons at the top of the pane to " +#~ "locate and open your desired files." +#~ msgstr "" +#~ "这将会激活侧边栏文件浏览器模式,您可以使用面板顶部的" +#~ "访问按钮来定位文件的路径。" + +#~ msgid "" +#~ "Choose FileOpen to display the " +#~ "Open Files dialog." +#~ msgstr "" +#~ "点菜单 文件打开 命令,显示 打" +#~ "开文件 对话框。" + +#~ msgid "" +#~ "Select the Pencil icon near the top of the Open Files dialog." +#~ msgstr "在打开对话框的左上角,点击铅笔图标。" + +#~ msgid "" +#~ "To adjust the number of recently-used files that gedit displays, you will " +#~ "need to use the dconf-editor application." +#~ msgstr "" +#~ "要更改显示最近访问的文件数,您需要使用 gconf-editor 程序。" + +#~ msgid "" +#~ "Launch dconf-editor and select org " +#~ "gnomegeditpreferencesui " +#~ "max-recents." +#~ msgstr "" +#~ "启动 dconf-editor 并选择 org gnomegeditpreferencesui max-recents。" + +#~ msgid "" +#~ "Double-click on the number next to max-recents and change the " +#~ "number to your desired value." +#~ msgstr "双击 max_recents 旁边的数字,然后输入想要的数字。" + +#~ msgid "" +#~ "To activate and use the side pane, select ViewSide pane (or just press F9), and then " +#~ "click on the file-browser icon at the bottom of the pane." +#~ msgstr "" +#~ "要激活侧边栏,点菜单 查看侧边栏(或者按 F9),然后点侧边栏底部的文件浏览器图" +#~ "标。" + +#~ msgid "" +#~ "As this name of this plugin suggests, the Insert Date/Time " +#~ "plugin allows you to insert the date and/or time at the current cursor " +#~ "position. To enable this plugin, select gedit PreferencesPlugins Insert Date/Time. To use the plugin, press " +#~ " EditInsert Date and Time." +#~ msgstr "" +#~ "根据插件名称就可以知道,插入日期/时间插件可以在光标处插入日期" +#~ "和/或时间。要启用此插件,点菜单 gedit " +#~ "首选项插件 插入日期/时间。要使用此插件,点菜单 编辑插入日期和时间。" + +#~ msgid "" +#~ "You cannot use the Undo feature to correct a Sort " +#~ "operation, so we recommend that you save the file immediately before " +#~ "performing the sort. If you make a mistake with the sort, you can revert " +#~ "to the previously-saved version of the file by selecting " +#~ "FileRevert." +#~ msgstr "" +#~ "由于排序无法使用撤消命令恢复,所以建议您在执行排序前" +#~ "保存文件,如果您发现排序操作产生错误,可以通过点菜单 文件还原 命令,恢复为之前保存的文件。" + +#~ msgid "" +#~ "Select gedit Sort." +#~ msgstr "" +#~ "点击菜单 gedit " +#~ "排序 命令。" + +#~ msgid "" +#~ "Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text." +#~ msgstr "" +#~ "按下 Ctrl 的同时使用鼠标或触控板的 滚轮 功能来上下翻" +#~ "动文本。" + +#~ msgid "Use keyboard shortcuts to help you work more quickly." +#~ msgstr "使用键盘快捷键可实现更快的操作。" + +#~ msgid "Paolo Borelli" +#~ msgstr "Paolo Borelli" + +#~ msgid "Jesse van den Kieboom" +#~ msgstr "Jesse van den Kieboom" + +#~ msgid "Steve Frécinaux" +#~ msgstr "Steve Frécinaux" + +#~ msgid "Ignacio Casal Quinteiro" +#~ msgstr "Ignacio Casal Quinteiro" + +#~ msgid "Shortcut keys" +#~ msgstr "快捷键" + +#~ msgid "" +#~ "Use shortcut keys to perform common tasks more quickly than " +#~ "with the mouse and menus. The following tables list all of gedit's shortcut keys." +#~ msgstr "" +#~ "使用快捷键执行常用任务,比用鼠标和菜单要快。下表列出了 " +#~ "gedit 的常用快捷键。" + +#~ msgid "Tab-related Shortcut keys" +#~ msgstr "标签相关的快捷键" + +#~ msgid "Action" +#~ msgstr "操作" + +#~ msgid "Keyboard shortcut" +#~ msgstr "键盘快捷键" + +#~ msgid "Switch to the next tab to the left" +#~ msgstr "切换到左边的标签" + +#~ msgid "CtrlAlt PageUp" +#~ msgstr "CtrlAlt PageUp" + +#~ msgid "Switch to the next tab to the right" +#~ msgstr "切换到右边的标签" + +#~ msgid "CtrlAlt PageDown" +#~ msgstr "CtrlAlt PageDown" + +#~ msgid "Close tab" +#~ msgstr "关闭标签" + +#~ msgid "CtrlW" +#~ msgstr "CtrlW" + +#~ msgid "Save all tabs" +#~ msgstr "保存全部标签" + +#~ msgid "CtrlShift L" +#~ msgstr "CtrlShift L" + +#~ msgid "Close all tabs" +#~ msgstr "关闭全部标签" + +#~ msgid "CtrlShiftW" +#~ msgstr "CtrlShift W" + +#~ msgid "Reopen the most recently closed tab" +#~ msgstr "重新打开最后关闭的标签" + +#~ msgid "CtrlShiftT" +#~ msgstr "CtrlShiftG" + +#~ msgid "Jump to nth tab" +#~ msgstr "跳到第 n 个标签" + +#~ msgid "Alt n" +#~ msgstr "Alt n" + +#~ msgid "New tab group" +#~ msgstr "新标签页组" + +#~ msgid "CtrlAltN" +#~ msgstr "CtrlAlt PageUp" + +#~ msgid "Previous tab group" +#~ msgstr "上一个标签页组" + +#~ msgid "" +#~ "ShiftCtrlAltPage up" +#~ msgstr "CtrlAlt PageUp" + +#~ msgid "Next tab group" +#~ msgstr "下一个标签页组" + +#~ msgid "" +#~ "ShiftCtrlAltPage down" +#~ msgstr "CtrlAlt PageDown" + +#~ msgid "Shortcut keys for working with files" +#~ msgstr "文件操作的快捷键" + +#~ msgid "Create a new document in a new window" +#~ msgstr "在新窗口中创建新文档" + +#~ msgid "CtrlN" +#~ msgstr "CtrlN" + +#~ msgid "Create a new document in a new tab" +#~ msgstr "在新标签中创建新文档" + +#~ msgid "CtrlT" +#~ msgstr "CtrlT" + +#~ msgid "Open a document" +#~ msgstr "打开文档" + +#~ msgid "CtrlO" +#~ msgstr "CtrlO" + +#~ msgid "Open the Quick Open window" +#~ msgstr "打开快速打开窗口。" + +#~ msgid "AltO" +#~ msgstr "AltO" + +#~ msgid "Save the current document" +#~ msgstr "保存当前文档" + +#~ msgid "CtrlS" +#~ msgstr "CtrlS" + +#~ msgid "Save the current document with a new filename" +#~ msgstr "文件另存为" + +#~ msgid "CtrlShift S" +#~ msgstr "CtrlShift S" + +#~ msgid "Print the current document" +#~ msgstr "打印当前文档" + +#~ msgid "Ctrl P" +#~ msgstr "Ctrl P" + +#~ msgid "Print preview" +#~ msgstr "打印预览" + +#~ msgid "CtrlShift P" +#~ msgstr "CtrlShift P" + +#~ msgid "Close the current document" +#~ msgstr "关闭当前文档" + +#~ msgid "Quit gedit" +#~ msgstr "退出 gedit" + +#~ msgid "CtrlQ" +#~ msgstr "CtrlQ" + +#~ msgid "Shortcut keys for editing files" +#~ msgstr "编辑文档的快捷键" + +#~ msgid "Move to the beginning of the current line" +#~ msgstr "移动到行首" + +#~ msgid "Home" +#~ msgstr "Home" + +#~ msgid "Move to the end of the current line" +#~ msgstr "移动到行尾" + +#~ msgid "End" +#~ msgstr "End" + +#~ msgid "Move to the beginning of the document" +#~ msgstr "移动到文档起始位置" + +#~ msgid "CtrlHome" +#~ msgstr "CtrlHome" + +#~ msgid "Move to the end of the document" +#~ msgstr "移动到文档末尾位置" + +#~ msgid "CtrlEnd" +#~ msgstr "CtrlEnd" + +#~ msgid "Move the selected word right one word" +#~ msgstr "将选中的单词右移一个单词" + +#~ msgid "AltRight Arrow" +#~ msgstr "Alt" + +#~ msgid "Move the selected word left one word" +#~ msgstr "将选中的单词左移一个单词" + +#~ msgid "AltLeft Arrow" +#~ msgstr "Alt" + +#~ msgid "Undo the last action" +#~ msgstr "撤销上一次操作" + +#~ msgid "CtrlZ" +#~ msgstr "CtrlZ" + +#~ msgid "Redo the last undone action" +#~ msgstr "重做上一次撤销的操作" + +#~ msgid "Cut the selected text or region and place it on the clipboard" +#~ msgstr "剪切选中的文本或文本块,并放到剪贴板中" + +#~ msgid "CtrlX" +#~ msgstr "CtrlX" + +#~ msgid "Copy the selected text or region onto the clipboard" +#~ msgstr "复制选中的文本或文本块,并放到剪贴板中" + +#~ msgid "CtrlC" +#~ msgstr "CtrlC" + +#~ msgid "Paste the contents of the clipboard" +#~ msgstr "从剪贴板中粘贴内容" + +#~ msgid "CtrlV" +#~ msgstr "CtrlV" + +#~ msgid "Select all text in the file" +#~ msgstr "全部选中" + +#~ msgid "CtrlA" +#~ msgstr "CtrlA" + +#~ msgid "Delete the current line" +#~ msgstr "删除当前行" + +#~ msgid "CtrlD" +#~ msgstr "CtrlD" + +#~ msgid "Move the selected line up one line" +#~ msgstr "将选中的行上移一行" + +#~ msgid "AltUp Arrow" +#~ msgstr "Alt" + +#~ msgid "Move the selected line down one line" +#~ msgstr "将选中的行下移一行" + +#~ msgid "AltDown Arrow" +#~ msgstr "Alt" + +#~ msgid "Add a tab stop" +#~ msgstr "添加制表符" + +#~ msgid "Tab" +#~ msgstr "Tab" + +#~ msgid "Remove a tab stop" +#~ msgstr "删除制表符" + +#~ msgid "ShiftTab" +#~ msgstr "ShiftTab" + +#~ msgid "Convert the selected text to upper case" +#~ msgstr "将选中的内容转换为大写" + +#~ msgid "CtrlU" +#~ msgstr "CtrlW" + +#~ msgid "Convert the selected text to lower case" +#~ msgstr "将选中的内容转换为小写" + +#~ msgid "CtrlL" +#~ msgstr "CtrlW" + +#~ msgid "Toggle case of the selected text" +#~ msgstr "切换选中文本的大小写" + +#~ msgid "Ctrl~" +#~ msgstr "CtrlW" + +#~ msgid "Shortcut keys for showing and hiding panes" +#~ msgstr "显示和隐藏面板的快捷键" + +#~ msgid "Show / hide the side pane" +#~ msgstr "显示/隐藏侧边栏" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Show / hide the bottom pane" +#~ msgstr "显示/隐藏底部面板" + +#~ msgid "CtrlF9" +#~ msgstr "CtrlF9" + +#~ msgid "Open the file menu" +#~ msgstr "打开文件菜单" + +#~ msgid "F10" +#~ msgstr "F10" + +#~ msgid "Shortcut keys for searching" +#~ msgstr "搜索的快捷键" + +#~ msgid "Find a string" +#~ msgstr "查找字符串" + +#~ msgid "CtrlF" +#~ msgstr "CtrlF" + +#~ msgid "Find the next instance of the string" +#~ msgstr "查找下一个匹配的字符串" + +#~ msgid "CtrlG" +#~ msgstr "CtrlG" + +#~ msgid "Find the previous instance of the string" +#~ msgstr "查找上一个匹配的字符串" + +#~ msgid "CtrlShiftG" +#~ msgstr "CtrlShiftG" + +#~ msgid "Search and Replace" +#~ msgstr "查找和替换" + +#~ msgid "CtrlH" +#~ msgstr "CtrlH" + +#~ msgid "Clear highlight" +#~ msgstr "清除高亮" + +#~ msgid "CtrlShift K" +#~ msgstr "CtrlShift K" + +#~ msgid "Goto line" +#~ msgstr "跳转到行" + +#~ msgid "CtrlI" +#~ msgstr "CtrlI" + +#~ msgid "Shortcut keys for tools" +#~ msgstr "使用工具的快捷键" + +#~ msgid "Check spelling" +#~ msgstr "检查拼写" + +#~ msgid "ShiftF7" +#~ msgstr "ShiftF7" + +#~ msgid "Remove trailing spaces (with plugin)" +#~ msgstr "删除尾部空格(使用插件)" + +#~ msgid "AltF12" +#~ msgstr "AltF12" + +#~ msgid "Run \"make\" in the current directory (with plugin)" +#~ msgstr "在当前文件夹运行“make”命令(用插件)" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Directory listing (with plugin)" +#~ msgstr "文件夹列表(使用插件)" + +#~ msgid "CtrlShift D" +#~ msgstr "CtrlShift D" + +#~ msgid "Shortcut keys for user help" +#~ msgstr "帮助的快捷键" + +#~ msgid "Open the gedit user guide" +#~ msgstr "打开使用指南" + +#~ msgid "F1" +#~ msgstr "F1" + +#~ msgid "" +#~ "Go to DocumentsNew Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "点击主菜单 文档新建标签页组。" + +#~ msgid "Move through tab groups" +#~ msgstr "移动标签页组" + +#~ msgid "To move forward (on the next) tab group:" +#~ msgstr "移动到下一个标签页组:" + +#~ msgid "" +#~ "Go to DocumentsNext Tab Group in " +#~ "the main menu." +#~ msgstr "" +#~ "点击主菜单 文档下一标签页组 命令。" + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "down shortcut." +#~ msgstr "" +#~ "使用快捷键CtrlAlt PageDown" + +#~ msgid "To move backward (on the previous) tab group:" +#~ msgstr "移动到上一个标签页组:" + +#~ msgid "" +#~ "Go to DocumentsPrevious Tab Group " +#~ "in the main menu." +#~ msgstr "" +#~ "点击主菜单 文档上一标签页组命令。" + +#~ msgid "" +#~ "Use the ShiftCtrlAltPage " +#~ "up shortcut." +#~ msgstr "" +#~ "使用快捷键CtrlAlt PageUp。" + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tab groups." +#~ msgstr "" +#~ "了解与标签相关的快捷键来更容易地" +#~ "管理标签页组。" + +#~ msgid "" +#~ "See the tab-related shortcut keys table to make it easier to manage your tabs." +#~ msgstr "" +#~ "了解与标签相关的快捷键来更容易地" +#~ "管理标签。" + +#~ msgid "" +#~ "Working with tabs in gedit allows you to keep an eye on " +#~ "several files in a single window. The tab that is larger than the other " +#~ "tabs indicates the file that is currently open. The smaller tabs indicate " +#~ "other files that are available to work on." +#~ msgstr "" +#~ "在 gedit 中使用标签,可以让您在一个窗口中同时操作多个文件,当前" +#~ "窗口中显示的文档标签要比别的标签稍大些,较小的标签指示其他可用的文件。" + +#~ msgid "To change the color scheme, complete the following steps:" +#~ msgstr "要更改配色方案,请执行以下步骤:" + +#~ msgid "Log user activity for documents which are opened in gedit" +#~ msgstr "记录用户对当前gedit打开的文档所做的操作" + +#~ msgid "Zeitgeist dataprovider" +#~ msgstr "Zeitgeist 数据记录器" + +#~ msgid "" +#~ "Zeitgeist is a service that logs user activities and events. Zeitgeist " +#~ "lets other applications access this information in the form of statistics " +#~ "and timelines.The Zeitgeist dataprovider plugin for gedit " +#~ "records user activity for documents used with gedit giving easy access to " +#~ "recently-used and frequently-used files." +#~ msgstr "" +#~ "Zeitgeist是一个记录用户操作和事件的服务。Zeitgeist允许其他应用访问统计数据" +#~ "和时间轴的表格信息。gedit的Zeitgeist数据记录插件记录用户对文档" +#~ "的操作" + +#~ msgid "Enable Zeitgeist dataprovider" +#~ msgstr "开启 Zeitgeist 数据记录器" + +# The word "Zietgeist" should be spelled as "Zeitgeist" +#~ msgid "Select Zietgeist Dataprovider." +#~ msgstr "选择 Zeitgeist 数据记录器 。" + +#~ msgid "To Do This" +#~ msgstr "操作" + +#~ msgid "Press This" +#~ msgstr "快捷键" + +#~ msgid "Enable and use spell-checking feature" +#~ msgstr "开启并使用拼写检查功能" + +#~ msgid "" +#~ "or, while the tab to be moved is open, choose Documents Move to New Window" +#~ msgstr "" +#~ "或者,标签打开后,点菜单 文档移动到新窗口。" + +#~ msgid "View a list of files in the side pane" +#~ msgstr "在侧边栏中查看文件列表" + +#~ msgid "" +#~ "Keeping track of a large number of files using tabs can be difficult. One " +#~ "way of managing large numbers of files is viewing them in a side pane. " +#~ "Side panes allow you to view more files at a time than is possible using " +#~ "tabs alone." +#~ msgstr "" +#~ "用标签页对一大堆文件进行操作一定会让人苦不堪言。如果需要管理的文件数量众多" +#~ "的话,将它们放在侧边栏中查看是一个不错的选择。和仅仅使用标签页相比,使用侧" +#~ "边栏可以一次让用户看到更多的文件。" + +#~ msgid "" +#~ "To view a list of open files in a side pane, click View Side Pane. A " +#~ "pane will appear to the left of the workspace with a listing of all " +#~ "currently open files. Clicking a file in the side pane will display that " +#~ "file in the workspace." +#~ msgstr "" +#~ "要在侧边栏中查看已打开文件的列表,请单击“查" +#~ "看”“侧边栏”。此时工作区的左边" +#~ "会出现一个窗格,列出所有当前已打开的文件。在侧边栏中单击某个文件后,工作区" +#~ "内将会显示此文件。" + +#~ msgid "documents icon" +#~ msgstr "文档图标" + +#~ msgid "" +#~ "The side pane also contains a File Browser view. If the pane " +#~ "displays a file directory instead of currently open files, click <_:" +#~ "media-1/> at the bottom of the pane to switch to the Documents " +#~ "view." +#~ msgstr "" +#~ "同时,侧边栏还包含了“文件浏览器”视图。如果侧边栏中显示的是文件" +#~ "目录而非当前已打开的文件,请单击窗格底部的<_:media-1/>切换到“文档”视图。" + +#~ msgid "" +#~ "The side pane only displays files that are open in the current window. " +#~ "When multiple windows are open, only the files in the current window will " +#~ "be displayed in the side pane." +#~ msgstr "" +#~ "侧边栏中只显示当前窗口内已打开的文件。如果打开了多个窗口,那么只有当前窗口" +#~ "中的文件会显示在侧边栏中。" + +#~ msgid "http://creativecommons.org/licenses/by-sa/3.0/" +#~ msgstr "http://creativecommons.org/licenses/by-sa/3.0/" + +#~ msgid "" +#~ "This work is licensed under the Creative Commons Attribution-ShareAlike " +#~ "3.0 Unported License. To view a copy of this license, visit <_:link-1/> " +#~ "or send a letter to Creative Commons, 444 Castro Street, Suite 900, " +#~ "Mountain View, California, 94041, USA." +#~ msgstr "" +#~ "本作品采用the Creative Commons Attribution-ShareAlike 3.0 Unported License" +#~ "许可授权。如需查看该许可请访问 <_:link-1/> 或致函 Creative Commons, 444 " +#~ "Castro Street, Suite 900, Mountain View, California, 94041, USA." + +#~| msgid "" +#~| "The easiest way to create a new file in gedit, is to click " +#~| "the icon that looks like a blank piece of paper with a \"plus\" sign " +#~| "next to it. If you prefer, you may also select FileNew, or press CtrlN." +#~ msgid "" +#~ "The easiest way to create a new file in gedit, is to click the " +#~ "icon in the toolbar that looks like a blank piece of paper. If you " +#~ "prefer, you may also select FileNew, or press CtrlN." +#~ msgstr "" +#~ "点击 gedit 的工具栏上,一个带有“+”号的空白页图标按钮,就可以很" +#~ "方便创建一个新文件。您也可以点菜单 文件新建 或者按组合键 CtrlN。" + +#~| msgid "" +#~| "To save a file in gedit, click on the disk-drive icon with " +#~| "the word Save next to it. You may also select " +#~| "FileSave, or just press " +#~| "CtrlS." +#~ msgid "" +#~ "To save a file in gedit, click on the disk-drive icon with the " +#~ "word Save next to it. You may also select " +#~ "File Save, or just press CtrlS." +#~ msgstr "" +#~ "要保存当前文档,点击工具栏上的一个小磁盘图标,旁边写着 保存。您也可以点菜单 文件 保存 命令,或者按组合键 " +#~ "CtrlS。" + +#~ msgid "" +#~ "If you make a mistake while using gedit, you can undo it by " +#~ "pressing CtrlZ, or by clicking " +#~ "gedit Undo. Doing so will cause gedit to undo one set of " +#~ "similar actions." +#~ msgstr "" +#~ "gedit 每次撤消一步,当您按 CtrlZ 组合键,或者点菜单 编辑撤消 命令时。" + +#, fuzzy +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-icon.png' " +#~ "md5='a7174de2671462e1ac4f80a82ad09184'" +#~ msgstr "" +#~ "@@image: 'figures/gedit-icon.png'; md5=a7174de2671462e1ac4f80a82ad09184" + +#, fuzzy +#~ msgid "" +#~ " " +#~ " gedit Text Editor" +#~ msgstr "" +#~ " gedit 文本编辑器" + +#, fuzzy +#~ msgid "" +#~ "Select EditPreferencesFont & " +#~ "Colors." +#~ msgstr "" +#~ "点菜单 编辑首选项字体 & 颜色。" + +#, fuzzy +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane1.png' " +#~ "md5='ac9c80cb0552d63b593c71f23be69b53'" +#~ msgstr "" +#~ "@@image: 'figures/gedit-side-pane1.png'; " +#~ "md5=ac9c80cb0552d63b593c71f23be69b53" + +#, fuzzy +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane2.png' " +#~ "md5='e7a12a43adc9c9cb8c992ad22a815a57'" +#~ msgstr "" +#~ "@@image: 'figures/gedit-side-pane2.png'; " +#~ "md5=e7a12a43adc9c9cb8c992ad22a815a57" + +#~ msgid "Record commonly-referenced locations with bookmarks" +#~ msgstr "使用标签记录常用位置" + +#~ msgid "Bookmarks" +#~ msgstr "书签" + +#~ msgid "" +#~ "Gedit bookmarks allow you to highlight important lines of text within " +#~ "your document or program, making them easier to find. You can also move " +#~ "up or down between bookmarks, making document navigation a bit faster." +#~ msgstr "" +#~ "Gedit的书签让你可以空突出文档或程序中重要的行,使它们更容易找到。你也可以" +#~ "在书签之间上移下移,使文档导航更快。" + +#, fuzzy +#~ msgid "" +#~ "To enable the bookmark plugin, select Edit " +#~ "PreferencesPluginsBookmarks." +#~ msgstr "" +#~ "要启用排序插件,点菜单 编辑首选项插件排序。" + +#~ msgid "" +#~ "Bookmarks are inserted and removed by completing the same action. To " +#~ "insert or remove bookmarks:" +#~ msgstr "" +#~ "Bookmarks are inserted and removed by completing the same action. To " +#~ "insert or remove bookmarks:" + +#~ msgid "" +#~ "Navigate to the line where you want to insert or remove the bookmark." +#~ msgstr "导航到你要插入或删除书签的行。" + +#, fuzzy +#~ msgid "" +#~ "Press CtrlAltB, or " +#~ "click EditToggle Bookmark." +#~ msgstr "" +#~ "gedit 每次撤消一步,当您按 CtrlZ 组合键,或者点菜单 编辑撤消 命令时。" + +#~ msgid "To move between bookmarks:" +#~ msgstr "在书签之间移动:" + +#, fuzzy +#~ msgid "" +#~ "Press CtrlB to move to the next " +#~ "bookmark." +#~ msgstr "" +#~ "要在全屏模式下,切换不同的标签,按组合键 CtrlAltPgUpCtrlAltPgDn。" + +#, fuzzy +#~ msgid "" +#~ "Press CtrlShiftB to " +#~ "move to the previous bookmark." +#~ msgstr "" +#~ "要在全屏模式下,切换不同的标签,按组合键 CtrlAltPgUpCtrlAltPgDn。" + +#~ msgid "" +#~ "If you prefer using the mouse, you can click Edit " +#~ "Go to Next Bookmark or EditGo " +#~ "to Previous Bookmark." +#~ msgstr "" +#~ "如果你习惯使用鼠标,你可以点击编辑下一标签或者编辑上一标签" + +#~ msgid "Auto-complete closing brackets" +#~ msgstr "自动补全括号" + +#, fuzzy +#~ msgid "Bracket completion" +#~ msgstr "括号匹配" + +#, fuzzy +#~ msgid "" +#~ "The Bracket Completion plugin will auto-complete closing " +#~ "brackets for curly braces, parentheses, and square brackets." +#~ msgstr "括号补全插件可以自动补全花括号、圆括号和方括号。" + +#~ msgid "" +#~ "To enable the plugin, select EditPreferencesPluginsBracket Completion." +#~ msgstr "" +#~ "要启用此插件,点菜单 编辑首选项插件括号补全。" + +#~ msgid "This plugin does not automatically insert closing HTML or XML tags." +#~ msgstr "这个插件不能自动补全插入的 HTML 或 XML 标记。" + +#~ msgid "Paul Weaver" +#~ msgstr "Paul Weaver" + +#~ msgid "Insert special characters just by clicking on them" +#~ msgstr "特殊字符,点击插入" + +#~ msgid "Character map" +#~ msgstr "字符映射表" + +#, fuzzy +#~ msgid "" +#~ "The Character Map plugin enables you to insert characters into " +#~ "your document that you may not be able to type easily using your " +#~ "keyboard. To enable this plugin, select EditPreferencesPluginsCharacter Map." +#~ msgstr "" +#~ "文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +#~ "编辑首选项插件文档统计。" + +#~ msgid "Using Character Map" +#~ msgstr "使用字符映射表" + +#~ msgid "" +#~ "Once the plugin is enabled, you can add characters from the Character " +#~ "Map tab of the side panel (ViewSide Panel)." +#~ msgstr "" +#~ "一旦启用插件,你可以从侧面板(视图侧面板)的字符映射表选项卡中添加字符。" + +#, fuzzy +#~ msgid "" +#~ "Place the cursor at the point in your document at which you would like " +#~ "your special character." +#~ msgstr "把鼠标指针定位想要插入标记符号或特殊字符的位置。" + +#, fuzzy +#~ msgid "" +#~ "Open the side panel by selecting ViewSide Panel, or by pressing F9." +#~ msgstr "" +#~ "要激活侧边栏,点菜单 查看侧边栏,或者按 F9 键。" + +#~ msgid "Select the Character Map tab in the side panel." +#~ msgstr "在侧面板中选中字符映射表选项卡" + +#~ msgid "" +#~ "If neccessary, choose the character set to which your character belongs " +#~ "from the list at the top of the Character Map tab (e.g., Arabic)." +#~ msgstr "" +#~ "如果需要,从字符映射表选项卡顶部的列表中选择你的字符所属的字符集" +#~ "(如:阿拉伯语)。" + +#, fuzzy +#~ msgid "Double click your desired character to insert it." +#~ msgstr "双击列表中的标记名称。" + +#~ msgid "" +#~ "You must click on the editing view of your document to continue editing " +#~ "normally." +#~ msgstr "你必须点击编辑视图以继续正常编辑" + +#~ msgid "Real-time error highlighting for supported languages" +#~ msgstr "为支持的语言实时高亮显示错误" + +#~ msgid "Code assistance" +#~ msgstr "代码辅助" + +#, fuzzy +#~ msgid "" +#~ "The gedit-code-assistance plugin provides real-time error " +#~ "highlighting for C, C++ and Objective-C. To enable this plugin, select " +#~ "EditPreferencesPluginsCode " +#~ "Assistance." +#~ msgstr "" +#~ "文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +#~ "编辑首选项插件文档统计。" + +#~ msgid "How the code assistance plugin works" +#~ msgstr "代码辅助插件是怎样工作的" + +#~ msgid "Comment-out or uncomment a block of code" +#~ msgstr "注释和取消注释代码块" + +#, fuzzy +#~ msgid "Code comment" +#~ msgstr "注释" + +#~ msgid "" +#~ "Code comments are portions of text that make it easier for people to " +#~ "understand a program's code, but they don't affect how a program works. " +#~ "Comments are separated from other parts of a program by special " +#~ "characters." +#~ msgstr "" +#~ "文本中的代码注释使程序员的代码更易于被别人读懂,并且不影响程序的运行。注释" +#~ "和程序中的其它部分被特殊字符割离。" + +#, fuzzy +#~ msgid "" +#~ "The code comment plugin makes it easier to quickly create or " +#~ "remove code comments. To enable the code comment plugin, select " +#~ " Edit PreferencesPluginsCode comment ." +#~ msgstr "" +#~ "文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +#~ "编辑首选项插件文档统计。" + +#~ msgid "To create or remove a comment:" +#~ msgstr "添加或删除注释:" + +#, fuzzy +#~ msgid "" +#~ "Highlight the portion of text where you want to add or remove a comment." +#~ msgstr "选中你想更改的文本内容。" + +#, fuzzy +#~ msgid "" +#~ "To add a comment, click EditComment Code, or press CtrlM." +#~ msgstr "" +#~ "点菜单 搜索替换 命令打开替换工具," +#~ "也可以按组合键 CtrlH。" + +#~ msgid "" +#~ "Gedit will automatically use the correct style of comment " +#~ "based on the language or syntax of the file. If gedit doesn't " +#~ "identify your language or syntax, you can select it from the language " +#~ "list in the bottom Status bar." +#~ msgstr "" +#~ "Gedit会根据代码的语言或语法自动使用正确的注释风格,如果" +#~ "gedit不能识别你的语言或语法,你可从底部状态栏的语言列表中选择。" + +#~ msgid "Pick a color from a dialog and insert its hexadecimal representation" +#~ msgstr "从对话框中取色并插入该颜色的十六进制编码" + +#~ msgid "Color picker" +#~ msgstr "取色器" + +#~ msgid "" +#~ "The color picker plugin helps you to insert the character " +#~ "codes that represent a certain color. This can make it easier to choose " +#~ "and use the correct color in your programs." +#~ msgstr "" +#~ "取色器插件可以帮助你插入代表特定颜色的字符编码,使你在程序中容易选择和使用" +#~ "正确的颜色。" + +#, fuzzy +#~ msgid "" +#~ "To enable the color picker plugin, select EditPreferencesPluginsColor Picker ." +#~ msgstr "" +#~ "要启用排序插件,点菜单 编辑首选项插件排序。" + +#~ msgid "To open and use the color picker:" +#~ msgstr "打开和使用取色器:" + +#~ msgid "" +#~ "Place your cursor at the point in your document where you want to insert " +#~ "the color code." +#~ msgstr "在文档中,将光标定位于要插入颜色编码的地方。" + +#, fuzzy +#~ msgid "" +#~ "Select ToolsPick Color.... The " +#~ "color picker dialog will appear." +#~ msgstr "" +#~ "点菜单 工具自动拼写检查," +#~ "gedit 会在您输入时,高亮显示错误的拼写。" + +#~ msgid "" +#~ "If the color that you want to select is currently on your screen, click " +#~ "on the icon that looks like an eyedropper." +#~ msgstr "如果你要选择的颜色就在屏幕上,点击像吸管的图标" + +#~ msgid "" +#~ "Your mouse pointer will change appearance, and will look like an " +#~ "eyedropper." +#~ msgstr "你的鼠标外观会发生改变,看起来像吸管。" + +#~ msgid "" +#~ "Use the eyedropper and click on the portion of your screen that contains " +#~ "the color you want to use. The color code for that color will appear in " +#~ "the color picker window." +#~ msgstr "使用吸管点击屏幕上你要使用的颜色,颜色编码会出现在取色器窗口。" + +#~ msgid "" +#~ "To insert that color code into your document, click Insert. " +#~ "The code will be inserted where you had placed your cursor." +#~ msgstr "" +#~ "要将颜色编码插入你的文档,只需点击插入.颜色编码就会插入光标所在" +#~ "处。" + +#, fuzzy +#~ msgid "To close the color picker, click Close." +#~ msgstr "要执行排序操作,点击 排序 按钮。" + +#~ msgid "" +#~ "You can make fine-grained adjustments to the color by adjusting the " +#~ "values for Hue, Saturation, Value, Red, Green, or Blue." +#~ msgstr "你可以通过调整颜色编码的数值对颜色的色调,饱和度,和三原色色值。" + +#~ msgid "" +#~ "Additionally, you can save colors by right-clicking on any of the colored " +#~ "boxes in the color picker, and selecting Save color here. This " +#~ "will make it easier to insert commonly-used colors later." +#~ msgstr "" +#~ "此外,为了方便以后插入,你可以保存常用颜色,右击取色器上任何颜色框,选择" +#~ "保存该颜色." + +#~ msgid "Use a command-line interface for advanced editing" +#~ msgstr "使用命令行接口进行高级编辑" + +#, fuzzy +#~ msgid "Commander" +#~ msgstr "命令" + +#, fuzzy +#~ msgid "" +#~ "The Commander plugin is a plugin for advanced gedit " +#~ "users that allows you to perform command-line actions on the current " +#~ "file. To enable the commander plugin, select Edit " +#~ "PreferencesPluginsCommander." +#~ msgstr "" +#~ "要在 gedit 中使用拼写检查功能,首先需要您启用拼写插件。要启用此" +#~ "插件,点菜单 编辑首选项插件" +#~ "拼写检查器。" + +#, fuzzy +#~ msgid "" +#~ "Once you have enabled the plugin, activate it by pressing " +#~ "Ctrl.." +#~ msgstr "" +#~ "要在 gedit 中打开一个文件,点击 打开按钮,或者按组合" +#~ "键 CtrlO。" + +#~ msgid "See an overview of available commands" +#~ msgstr "查看可用命令概述" + +#~ msgid "Tab + Tab" +#~ msgstr "Tab + Tab" + +#~ msgid "/ foo " +#~ msgstr "/ foo " + +#~ msgid "This will find the word foo." +#~ msgstr "查找单词foo。" + +#~ msgid "// foo bar" +#~ msgstr "// foo bar" + +#~ msgid "This will replace foo with bar." +#~ msgstr "使用bar替换foo。" + +#~ msgid "Move the cursor to a certain line number in your file" +#~ msgstr "将光标移动到文档中的某一行" + +#~ msgid "go [line number] or just g [line number]" +#~ msgstr "go [行号] 或者只用g [行号]" + +#~ msgid "bookmark or just b" +#~ msgstr "bookmark 或者 只用 b" + +#~ msgid "" +#~ "Some commands, such as the bookmark command require that the " +#~ "appropriate plugin be installed and activated. If you do not have the " +#~ "appropriate plugin installed and activated, you will receive an error " +#~ "message." +#~ msgstr "" +#~ "一些命令,如bookmark命令需要相应的插件已安装并激,否则,你会收" +#~ "到错误信息。" + +#, fuzzy +#~ msgid "Recently used files" +#~ msgstr "重新打开最近使用的文件" + +#, fuzzy +#~ msgid "Most frequently-used files" +#~ msgstr "重新打开最近使用的文件" + +#, fuzzy +#~ msgid "" +#~ "Once activated, the dashboard will be displayed by default " +#~ "when you open gedit. You can also open the dashboard by clicking FileNew , or by " +#~ "pressing CtrlN." +#~ msgstr "" +#~ "要保存当前文档,点击工具栏上的一个小磁盘图标,旁边写着 保存。您" +#~ "也可以点菜单 文件保存 命令,或者按" +#~ "组合键 CtrlS。" + +#~ msgid "Draw spaces" +#~ msgstr "空白可见" + +#~ msgid "" +#~ "The Draw Spaces plugin is a simple plugin that can mark " +#~ "spaces, tabs, and other types of whitespace with a small, visible marker. " +#~ "By making whitespace visible, you can more easily see how whitespace is " +#~ "used in a document, and can apply spacing strategies more consistently." +#~ msgstr "" +#~ "空白可见是一个简单插件,可以标记空格、制表符等空白,体积小,标" +#~ "记可见。通过空白可见,你更容易看到空格在文档中的使用,并且和空白统计更一" +#~ "致。" + +#, fuzzy +#~ msgid "" +#~ "To enable this plugin, select EditPreferences PluginsDraw Spaces. After you have " +#~ "enabled the plugin, you can set its options by highlighting the plugin " +#~ "and selecting Preferences." +#~ msgstr "" +#~ "你可以点菜单 编辑首选项插件" +#~ "标记列表 启用此插件,然后点菜单 查看侧边栏,或者按 F9 键。" + +#~ msgid "" +#~ "By default, the Draw Spaces plugin will mark the following " +#~ "types of whitespace in a file:" +#~ msgstr "空白显示插件默认标记文件中以下类型的空白:" + +#~ msgid "Spaces" +#~ msgstr "空格" + +#~ msgid "Leading spaces" +#~ msgstr "前导空格" + +#, fuzzy +#~ msgid "Spaces in text" +#~ msgstr "替换文本" + +#~ msgid "Trailing spaces" +#~ msgstr "结尾空白" + +#~ msgid "You can also set the plugin to mark:" +#~ msgstr "你也可以设置插件标记以下内容:" + +#, fuzzy +#~ msgid "New Lines" +#~ msgstr "行" + +#~ msgid "Non-breaking spaces" +#~ msgstr "不间断空白" + +#~ msgid "" +#~ "Though you will be able to see the dots when you work on a file, the dots " +#~ "will not be visible when you print a file to paper." +#~ msgstr "虽然你使用文件时能看到点号,但打印时点号不会被打印到纸上。" + +#, fuzzy +#~ msgid "" +#~ "To enable this plugin, select EditPreferences PluginsJoin/Split Lines." +#~ msgstr "" +#~ "要启用此插件,点菜单 编辑首选项插件括号补全。" + +#, fuzzy +#~ msgid "" +#~ "Select the lines that you want to join. To do this, you can use the " +#~ "mouse, or you can press ShiftUp Arrow or ShiftDown Arrow." +#~ msgstr "" +#~ "要在全屏模式下,切换不同的标签,按组合键 CtrlAltPgUpCtrlAltPgDn。" + +#, fuzzy +#~ msgid "The lines that you selected will be joined into one longer line." +#~ msgstr "将选中的行下移一行" + +#, fuzzy +#~ msgid "" +#~ "Select the line that you want to split by placing your cursor anywhere on " +#~ "that line." +#~ msgstr "" +#~ "选择所需缩进行。要对单行进行缩进或取消缩进,请将光标放在该行的任意位置上。" + +#, fuzzy +#~ msgid "Multi edit" +#~ msgstr "退出 gedit" + +#, fuzzy +#~ msgid "" +#~ "The Multi Edit plugin allows you to edit a document in " +#~ "multiple places at once. This can be helpful when performing tedious " +#~ "editing tasks. To enable the Multi Edit plugin, select Edit PreferencesPluginsMulti Edit." +#~ msgstr "" +#~ "文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +#~ "编辑首选项插件文档统计。" + +#, fuzzy +#~ msgid "" +#~ "Move to your next editing point, and press Ctrl " +#~ "E again." +#~ msgstr "" +#~ "要在 gedit 中打开一个文件,点击 打开按钮,或者按组合" +#~ "键 CtrlO。" + +#, fuzzy +#~ msgid "" +#~ "The Session Saver plugin saves groups of files together so " +#~ "that you can open them together at a later time. To enable the plugin, " +#~ "select EditPreferencesPlugins " +#~ "Session Saver." +#~ msgstr "" +#~ "文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +#~ "编辑首选项插件文档统计。" + +#, fuzzy +#~ msgid "Click Save." +#~ msgstr "点 打开。" + +#, fuzzy +#~ msgid "" +#~ "Select FileSaved Sessions Manage saved " +#~ "sessions." +#~ msgstr "" +#~ "点菜单 编辑首选项字体 & 颜色。" + +#, fuzzy +#~ msgid "Select the name of the session that you want to delete." +#~ msgstr "选中您想启用的插件名称旁边的复选框。" + +#, fuzzy +#~ msgid "Click Delete." +#~ msgstr "点 打开。" + +#, fuzzy +#~ msgid "" +#~ "To enable the Snippets plugin, select Edit " +#~ "PreferencesPluginsSnippets." +#~ msgstr "" +#~ "要启用排序插件,点菜单 编辑首选项插件排序。" + +#, fuzzy +#~ msgid "Using, Modifying and creating snippets" +#~ msgstr "编辑和删除片段" + +#~ msgid "" +#~ "To enable the Sort plugin, select EditPreferencesPluginsSort." +#~ msgstr "" +#~ "要启用排序插件,点菜单 编辑首选项插件排序。" + +#~ msgid "" +#~ "After you have enabled the Sort plugin, use it by selecting " +#~ "the lines of text you want to sort, and then clicking EditSort." +#~ msgstr "" +#~ "在您启用排序插件后,选中您想要排序的多个行,然后点菜单 " +#~ "编辑排序。" + +#, fuzzy +#~ msgctxt "_" +#~ msgid "" +#~ "external ref='figures/gedit-side-pane3.png' " +#~ "md5='4b800d370193ac0ed8db9eb33b86e11c'" +#~ msgstr "" +#~ "@@image: 'figures/gedit-side-pane3.png'; " +#~ "md5=4b800d370193ac0ed8db9eb33b86e11c" + +#~ msgid "" +#~ "Automatically insert tags, strings and special characters into a document" +#~ msgstr "在文档中,插入标记符号、字符串和特殊字符" + +#~ msgid "Tag list" +#~ msgstr "标记列表" + +#~ msgid "" +#~ "The Tag List plugin allows you to insert common tags and " +#~ "special characters from a list in the side pane. By default, the plugin " +#~ "can insert tags and special characters for HTML, XHTML, XSLT, XUL and " +#~ "LaTeX." +#~ msgstr "" +#~ "标记列表 插件允许您从侧面板中,插入普通的标记和特殊的字符。默认" +#~ "情况,此插件可以插入 HTML、XHTML、XSLT、XUL 和 LaTeX 的标记和特殊字符。" + +#~ msgid "Using the Tag List plugin" +#~ msgstr "使用标记列表插件" + +#~ msgid "" +#~ "To use the Tag List plugin, you will need to enable the " +#~ "plugin, and then activate the tag-list portion of the side pane." +#~ msgstr "" +#~ "要使用 标记列表 插件,首先要启用此插件,然后在侧边栏底部选择标" +#~ "签列表按钮。" + +#~ msgid "Enabling the Plugin" +#~ msgstr "启用插件" + +#~ msgid "" +#~ "You can activate the plugin by selecting EditPreferencesPluginsTag List. " +#~ "Once you have activated the plugin, access it by selecting " +#~ "ViewSide Pane, or by pressing " +#~ "F9." +#~ msgstr "" +#~ "你可以点菜单 编辑首选项插件" +#~ "标记列表 启用此插件,然后点菜单 查看侧边栏,或者按 F9 键。" + +#~ msgid "" +#~ "The side pane initially shows a list of open documents, so to view and " +#~ "use the tag list, you will need to click on the tab showing " +#~ "the \"plus\" icon at the bottom of the side pane. The icon will look " +#~ "similar to this:" +#~ msgstr "" +#~ "侧边栏默认显示的是打开的文档,要查看和使用标记列表,需要在侧边" +#~ "栏底部点击一个“+”图标,大致样式如下图:" + +#~ msgid "Inserting Tags and Special Characters" +#~ msgstr "插入标记或特殊字符" + +#~ msgid "" +#~ "The tag list uses a drop-down menu to let you choose from the " +#~ "different types of tags. For example, one tag option is HTML - Tags." +#~ msgstr "" +#~ "标记列表中,使用下拉列表来选择不同类型的标记符号,例如,里面有" +#~ "一个 HTML-标记。" + +#~ msgid "To start inserting tags, complete the following:" +#~ msgstr "要插入一个标记,请按下面的步骤操作:" + +#~ msgid "" +#~ "Move the cursor to where you will want to insert the tag or special " +#~ "character." +#~ msgstr "把鼠标指针定位想要插入标记符号或特殊字符的位置。" + +#~ msgid "Scroll through the list to find the desired tag or character." +#~ msgstr "向下滚动列表查找所需的标记或字符。" + +#~ msgid "Double-click on the tag in the tag list." +#~ msgstr "双击列表中的标记名称。" + +#~ msgid "" +#~ "The tag or special character you've chosen will then be displayed in your " +#~ "document." +#~ msgstr "您选中的标记或特殊符号将显示在文档中。" + +#~ msgid "Tag List Tips" +#~ msgstr "标记列表小提示" + +#~ msgid "" +#~ "You can also insert a tag by pressing Return or " +#~ "ShiftReturn." +#~ msgstr "" +#~ "您也可以按回车键Shift回车键来插入标记符号。" + +#~ msgid "" +#~ "Pressing the Return key will insert the tag at the cursor " +#~ "position, and then return focus to the document. Pressing " +#~ "ShiftReturn will insert the tag at " +#~ "the cursor position, but will keep the focus on the tag-list." +#~ msgstr "" +#~ "按 回车键 将在光标位置插入标记符号,然后焦点留在文档中,按 " +#~ "Shift回车键 在光标位置插入标记符" +#~ "号,而焦点仍然在 标记列表。" + +#~ msgid "" +#~ "You can see a preview of what text will be inserted for each tag and " +#~ "special character by clicking on the word the Preview at the " +#~ "bottom of the side pane." +#~ msgstr "" +#~ "您可以点击侧栏底部的预览标签,预先查看一下要插入的标记和特殊字" +#~ "符。" + +#, fuzzy +#~ msgid "Add a terminal console to the bottom pane" +#~ msgstr "在底部面板添加终端控制台" + +#~ msgid "" +#~ "gedit makes it possible to include an embedded version of " +#~ "Gnome Terminal, the GNOME command-line application, in the " +#~ "bottom pane of the gedit window. This will let you run " +#~ "scripts, install needed software, or test your program without leaving " +#~ "gedit." +#~ msgstr "" +#~ "gedit 可以在窗口底部面板中,添加一个 GNOME 终端,它" +#~ "是 GNOME 的命令行应用程序。这样您就可以不必离开 gedit 而运行脚" +#~ "本、安装所需软件,或者调试程序。" + +#~ msgid "" +#~ "To enable this plugin, select EditPreferencesPluginsEmbedded Terminal." +#~ msgstr "" +#~ "要启用此插件,点菜单 编辑首选项插件内部终端。" + +#, fuzzy +#~ msgid "" +#~ "Once you have enabled the plugin, add the terminal to the bottom pane by " +#~ "selecting ViewBottom Pane, or just " +#~ "press CtrlF9." +#~ msgstr "" +#~ "一旦启用此插件,可以通过点菜单 查看底部面板,把终端添加进来,或者按组合键 CtrlF9。" + +#, fuzzy +#~ msgid "" +#~ "The text size plugin allows you to temporarily change the text size in " +#~ "gedit without changing the program's default text size. To " +#~ "enable this plugin, select EditPreferencesPlugins Text Size." +#~ msgstr "" +#~ "要在 gedit 中使用拼写检查功能,首先需要您启用拼写插件。要启用此" +#~ "插件,点菜单 编辑首选项插件" +#~ "拼写检查器。" + +#, fuzzy +#~ msgid "" +#~ "To increase the text size, select Ctrl " +#~ "+." +#~ msgstr "" +#~ "要在 gedit 中打开一个文件,点击 打开按钮,或者按组合" +#~ "键 CtrlO。" + +#, fuzzy +#~ msgid "" +#~ "To decrease the text size, select Ctrl -" +#~ "." +#~ msgstr "" +#~ "要在 gedit 中打开一个文件,点击 打开按钮,或者按组合" +#~ "键 CtrlO。" + +#, fuzzy +#~ msgid "" +#~ "To reset the text size to the default size, select " +#~ "Ctrl0." +#~ msgstr "" +#~ "要在 gedit 中打开一个文件,点击 打开按钮,或者按组合" +#~ "键 CtrlO。" + +#, fuzzy +#~ msgid "Word completion" +#~ msgstr "更多选项" + +#, fuzzy +#~ msgid "" +#~ "The Word Completion plugin can speed up your editing by " +#~ "suggesting completions of words as you type. To enable the plugin, select " +#~ "EditPreferencesPluginsWord " +#~ "Completion." +#~ msgstr "" +#~ "文档统计插件可以显示当前文档的多项信息,要启用此插件,点菜单 " +#~ "编辑首选项插件文档统计。" + +#~ msgid "Printing output to a file" +#~ msgstr "打印输出到一个文件" + +#~ msgid "" +#~ "You can also use gedit to print to a file. To do so, select " +#~ "FilePrintPrint to File." +#~ msgstr "" +#~ "您也可以使用 gedit 打印到文件功能,点菜单 文件打印打印到文件。" + +#, fuzzy +#~ msgid "Click File Print..." +#~ msgstr "点菜单 编辑更改大小写" + +#~ msgid "Ctrl + Alt + PageUp" +#~ msgstr "Ctrl + Alt + PageUp" + +#~ msgid "Ctrl + Alt + PageDown" +#~ msgstr "Ctrl + Alt + PageDown" + +#~ msgid "Ctrl + W" +#~ msgstr "Ctrl + W" + +#~ msgid "Ctrl + Shift + L" +#~ msgstr "Ctrl + Shift + L" + +#~ msgid "Ctrl + Shift + W" +#~ msgstr "Ctrl + Shift + W" + +#~ msgid "Alt + n" +#~ msgstr "Alt + n" + +#~ msgid "Ctrl + N" +#~ msgstr "Ctrl + N" + +#~ msgid "Ctrl + O" +#~ msgstr "Ctrl + O" + +#~ msgid "Ctrl + S" +#~ msgstr "Ctrl + S" + +#~ msgid "Ctrl + Shift + S" +#~ msgstr "Ctrl + Shift + S" + +#~ msgid "Ctrl + P" +#~ msgstr "Ctrl + P" + +#~ msgid "Ctrl + Shift + P" +#~ msgstr "Ctrl + Shift + P" + +#~ msgid "Ctrl + Q" +#~ msgstr "Ctrl + Q" + +#~ msgid "Ctrl + Z" +#~ msgstr "Ctrl + Z" + +#~ msgid "Ctrl + Shift + Z" +#~ msgstr "Ctrl + Shift + Z" + +#~ msgid "Ctrl + X" +#~ msgstr "Ctrl + X" + +#~ msgid "Ctrl + C" +#~ msgstr "Ctrl + C" + +#~ msgid "Ctrl + V" +#~ msgstr "Ctrl + V" + +#~ msgid "Ctrl + A" +#~ msgstr "Ctrl + A" + +#~ msgid "Ctrl + D" +#~ msgstr "Ctrl + D" + +#~ msgid "Alt + Up Arrow" +#~ msgstr "Alt + 上方向键" + +#~ msgid "Alt + Down Arrow" +#~ msgstr "Alt + 下方向键" + +#~ msgid "F9" +#~ msgstr "F9" + +#~ msgid "Ctrl + F9" +#~ msgstr "Ctrl + F9" + +#~ msgid "Ctrl + F" +#~ msgstr "Ctrl + F" + +#~ msgid "Ctrl + G" +#~ msgstr "Ctrl + G" + +#~ msgid "Ctrl + Shift + G" +#~ msgstr "Ctrl + Shift + G" + +#~ msgid "Ctrl + H" +#~ msgstr "Ctrl + H" + +#~ msgid "Ctrl + Shift + K" +#~ msgstr "Ctrl + Shift + K" + +#~ msgid "Ctrl + I" +#~ msgstr "Ctrl + I" + +#~ msgid "Shift + F7" +#~ msgstr "Shift + F7" + +#~ msgid "Alt + F12" +#~ msgstr "Alt + F12" + +#~ msgid "F8" +#~ msgstr "F8" + +#~ msgid "Ctrl + Shift + D" +#~ msgstr "Ctrl + Shift + D" + +#~ msgid "F1" +#~ msgstr "F1" + +#, fuzzy +#~ msgid "" +#~ "Using the spell-check feature in gedit requires that you first " +#~ "enable the spell-check plugin. To enable the plugin, select " +#~ "Edit PreferencesPluginsSpell Checker ." +#~ msgstr "" +#~ "要在 gedit 中使用拼写检查功能,首先需要您启用拼写插件。要启用此" +#~ "插件,点菜单 编辑首选项插件" +#~ "拼写检查器。" + +#~ msgid "" +#~ "Select ToolsAutocheck Spelling to " +#~ "make gedit highlight spelling errors while you type." +#~ msgstr "" +#~ "点菜单 工具自动拼写检查," +#~ "gedit 会在您输入时,高亮显示错误的拼写。" + +#~ msgid "Click and hold the mouse button on the tab" +#~ msgstr "在标签上点击并按住鼠标按钮" + +#~ msgid "Release the mouse button" +#~ msgstr "松开鼠标按钮" + +#~ msgid "To drag a tab into a new window:" +#~ msgstr "拖拽标签到一个新窗口:" + +#~ msgid "jwcampbell@gmail.com" +#~ msgstr "jwcampbell@gmail.com" + +#~ msgid "dneelyep@gmail.com" +#~ msgstr "dneelyep@gmail.com" + +#~ msgid "" +#~ "We all make mistakes. Even gedit users make mistakes. " +#~ "Fortunately, gedit can help you recover from mistakes. To undo " +#~ "an action in gedit, press CtrlZ, or click EditUndo." +#~ msgstr "" +#~ "我们都会犯错误,当然 gedit 用户也不例外,幸运的是,gedit 可以帮助您从错误中恢复过来,要撤消上一次操作,按 CtrlZ 组合键,或者点菜单 编辑" +#~ "撤消 命令。" + +#~ msgid "Drag the tab out of the space it occupies" +#~ msgstr "将标签从它所在的位置上移开" + +#~ msgid "" +#~ "It's difficult to drag a tab into a new window when either the old or new " +#~ "window is maximized. For best results, un-maximize the windows before " +#~ "dragging the tab." +#~ msgstr "" +#~ "若是其中有一个窗口最大化时,移动标签会变得十分困难,最好的办法是,在拖动标" +#~ "签之前,先取消窗口的最大化。" + +#~ msgid "To close the search window, press Esc." +#~ msgstr "要关闭 搜索窗口,按一下 Esc 键。" + +#~ msgid "" +#~ "@@image: 'figures/gedit3-screenshot.png'; " +#~ "md5=174aac884967f8e4226ab33d9498c60b" +#~ msgstr "" +#~ "@@image: 'figures/gedit3-screenshot.png'; " +#~ "md5=174aac884967f8e4226ab33d9498c60b" + +#~ msgid "Coming soon!" +#~ msgstr "很快就有!" + +#~ msgid "Install Additional gedit Plugins" +#~ msgstr "安装额外的 gedit 插件" + +#~ msgid "Obtain" +#~ msgstr "获取" + +#~ msgid "" +#~ "The first step to install a plugin in gedit is to obtain the " +#~ "plugin. Third-party plugins will often be obtained by downloading them " +#~ "from the plugin's web site. Refer to the plugin's documentation for " +#~ "further information on obtaining the plugin - instructions will vary " +#~ "depending on the plugin." +#~ msgstr "" +#~ "在 gedit 中安装插件的第一步是获取插件,第三方插件往往可以从插件" +#~ "站点上下载,获取插件可查阅的说明文档很大程度上取决于该插件。" + +#~ msgid "Install" +#~ msgstr "安装" + +#~ msgid "Installing a Plugin" +#~ msgstr "安装插件" + +#~ msgid "Locate the plugin files to be installed." +#~ msgstr "找到要安装的插件文件。" + +#~ msgid "Install the plugin files:" +#~ msgstr "安装插件文件:" + +#~ msgid "Do more with gedit by using gedit plugins." +#~ msgstr "用 gedit 的插件做更多的事。" + +#~ msgid "" +#~ "Permission is granted to copy, distribute and/or modify this document " +#~ "under the terms of the GNU Free Documentation License (GFDL), Version 1.1 " +#~ "or any later version published by the Free Software Foundation with no " +#~ "Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You " +#~ "can find a copy of the GFDL at this link or in the file COPYING-DOCS distributed with this manual." +#~ msgstr "" +#~ "对于本文档的复制、分发和/或修改必须遵循自由软件基金会 (Free Software " +#~ "Foundation) 发布的 GNU 自由文档许可证 (GFDL) 版本 1.1 或更高版本, 该许可" +#~ "证没有固定的部分、没有封面和背页文本。您可以在此链接上或在随本手册一起分发的 COPYING-DOCS 文件中找" +#~ "到 GFDL 的副本。" + +#~ msgid "" +#~ "This manual is part of a collection of GNOME manuals distributed under " +#~ "the GFDL. If you want to distribute this manual separately from the " +#~ "collection, you can do so by adding a copy of the license to the manual, " +#~ "as described in section 6 of the license." +#~ msgstr "" +#~ "本手册是在 GFDL 许可之下分发的 GNOME 手册集合的一部分。如果想要单独分发此" +#~ "手册,可以在手册中添加该许可证的一份副本然后分发,如该许可证的第 6 部分所" +#~ "述。" + +#~ msgid "" +#~ "Many of the names used by companies to distinguish their products and " +#~ "services are claimed as trademarks. Where those names appear in any GNOME " +#~ "documentation, and the members of the GNOME Documentation Project are " +#~ "made aware of those trademarks, then the names are in capital letters or " +#~ "initial capital letters." +#~ msgstr "" +#~ "各个公司使用的许多用于区别它们产品和服务的名称都声明为商标。在所有的 " +#~ "GNOME 文档以及 GNOME Documentation Project 的成员中,这些名称都是以全大写" +#~ "字母或首字母大写显示,从而表明它们是商标。" + +#~ msgid "" +#~ "DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +#~ "EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES " +#~ "THAT THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +#~ "MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +#~ "RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +#~ "MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +#~ "MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +#~ "WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +#~ "SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES " +#~ "AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED " +#~ "VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS " +#~ "DISCLAIMER; AND UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER " +#~ "IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, " +#~ "INITIAL WRITER, ANY CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR " +#~ "MODIFIED VERSION OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, " +#~ "BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR " +#~ "CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, " +#~ "DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR " +#~ "MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES ARISING OUT OF OR " +#~ "RELATING TO USE OF THE DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT, " +#~ "EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH " +#~ "DAMAGES." +#~ msgstr "" +#~ "文档按“原样”提供,不提供任何明示或暗示的保证,包括但不 限于:文档或文档的" +#~ "修改版本没有适销性方面的缺陷、适合特定目的的适用性,以及没有侵权行为。您将" +#~ "自行承担本文档以及文档修改版本的质量、准确性以及性能方面的风险。如果任何文" +#~ "档或文档修改版本存在缺陷,您(而不是最初的编写者、作者或撰写人)将承担所有" +#~ "必需的服务、维修或更正的费用。此免责声明是本许可证的重要组成部分。如果不接" +#~ "受此免责声明, 那么您就没有权利使用任何文档或文档的修改版本;并且无论在任" +#~ "何情况以及在任何法律理论下,本文档或文档修改版本的作者、最初的编写者、任何" +#~ "撰写人或任何分发者,或者任意这些方的任何提供者都不对任何人由于使用本文档或" +#~ "文档修改版本引起或带来的任何直接的、间接的、 特殊的、偶然的或继发的损失承" +#~ "担任何民事(包括疏忽)、合同或其它方面的责任,这些损失包括但不限于信誉损" +#~ "失、工作停止、计算机失败或故障,或任何以及所有其它损失或由此引发的或与之相" +#~ "关的损失,即使这些方已被告知存在出现此类损失的可能性时也是如此。" + +#~ msgid "" +#~ "DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE " +#~ "TERMS OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER " +#~ "UNDERSTANDING THAT: " +#~ msgstr "" +#~ "本文档以及文档的修改版本都是在遵循 GNU 自由文档许可证的条款下提供,这表示" +#~ "具有以下含义: " + +#~ msgid "" +#~ "@@image: 'figures/gedit_recent_files_menu_icon.png'; " +#~ "md5=62b4bede31db64226f7e7f9b18f5eb74" +#~ msgstr "" +#~ "@@image: 'figures/gedit_recent_files_menu_icon.png'; " +#~ "md5=62b4bede31db64226f7e7f9b18f5eb74" + +#~ msgid "Gedit Manual" +#~ msgstr "Gedit 手册" + +#~ msgid "2007" +#~ msgstr "2007" + +#~ msgid "GNOME Documentation Project" +#~ msgstr "GNOME 文档项目" + +#~ msgid "2002" +#~ msgstr "2002" + +#~ msgid "2003" +#~ msgstr "2003" + +#~ msgid "2004" +#~ msgstr "2004" + +#~ msgid "Sun Microsystems" +#~ msgstr "Sun Microsystems" + +#~ msgid "2000" +#~ msgstr "2000" + +#~ msgid "Eric Baudais" +#~ msgstr "Eric Baudais" + +#~ msgid "Joachim" +#~ msgstr "Joachim" + +#~ msgid "Noreiko" +#~ msgstr "Noreiko" + +#~ msgid "GNOME" +#~ msgstr "GNOME" + +#~ msgid "Hal" +#~ msgstr "Hal" + +#~ msgid "Canary" +#~ msgstr "Canary" + +#~ msgid "Added the Shortcut Keys Table" +#~ msgstr "添加快捷键表" + +#~ msgid "Sun Java Desktop System Documentation Team" +#~ msgstr "Sun Java Desktop System Documentation Team" + +#~ msgid "gdocteam@sun.com" +#~ msgstr "gdocteam@sun.com" + +#~ msgid "Eric" +#~ msgstr "Eric" + +#~ msgid "Baudais" +#~ msgstr "Baudais" + +#~ msgid "baudais@okstate.edu" +#~ msgstr "baudais@okstate.edu" + +#~ msgid "Baris" +#~ msgstr "Baris" + +#~ msgid "" +#~ "Cicek provided information from earlier revisions of the gedit " +#~ "application." +#~ msgstr "Cicek 提供了 gedit 应用程序早期修订的信息。" + +#~ msgid "Acknowledgements" +#~ msgstr "致谢" + +#~ msgid "Ajit" +#~ msgstr "Ajit" + +#~ msgid "George provided information about plugins." +#~ msgstr "George 提供了有关插件的信息。" + +#~ msgid "gedit V1.0" +#~ msgstr "gedit V1.0" + +#~ msgid "Eric Baudais baudais@okstate.edu" +#~ msgstr "Eric Baudais baudais@okstate.edu" + +#~ msgid "gedit Manual V2.0" +#~ msgstr "gedit 手册 V2.0" + +#~ msgid "March 2002" +#~ msgstr "2002年3月" + +#~ msgid "Sun GNOME Documentation Team" +#~ msgstr "Sun GNOME Documentation Team" + +#~ msgid "gedit Manual V2.1" +#~ msgstr "gedit 手册 V2.1" + +#~ msgid "June 2002" +#~ msgstr "2002年6月" + +#~ msgid "gedit Manual V2.2" +#~ msgstr "gedit 手册 V2.2" + +#~ msgid "August 2002" +#~ msgstr "2002年8月" + +#~ msgid "gedit Manual V2.3" +#~ msgstr "gedit 手册 V2.3" + +#~ msgid "September 2002" +#~ msgstr "2002年9月" + +#~ msgid "gedit Manual V2.4" +#~ msgstr "gedit 手册 V2.4" + +#~ msgid "January 2003" +#~ msgstr "2003年1月" + +#~ msgid "gedit Manual V2.5" +#~ msgstr "gedit 手册 V2.5" + +#~ msgid "March 2003" +#~ msgstr "2003年3月" + +#~ msgid "gedit Manual V2.6" +#~ msgstr "gedit 手册 V2.6" + +#~ msgid "September 2003" +#~ msgstr "2003年9月" + +#~ msgid "gedit Manual V2.7" +#~ msgstr "gedit 手册 V2.7" + +#~ msgid "March 2004" +#~ msgstr "2003年3月" + +#~ msgid "gedit Manual V2.8" +#~ msgstr "gedit 手册 V2.8" + +#~ msgid "July 2006" +#~ msgstr "2006年7月" + +#~ msgid "gedit Manual V2.9" +#~ msgstr "gedit 手册 V2.9" + +#~ msgid "GNOME Documentation Team" +#~ msgstr "GNOME 文档小组" + +#~ msgid "This manual describes version 2.16 of gedit." +#~ msgstr "本手册介绍 gedit 2.16 版。" + +#~ msgid "Feedback" +#~ msgstr "反馈" + +#~ msgid "" +#~ "To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the " +#~ "GNOME " +#~ "Feedback Page." +#~ msgstr "" +#~ "要报告关于 gedit 应用程序或本手册的错误或提出建" +#~ "议,请参照 GNOME 反馈页" +#~ " 中的指导。" + +#~ msgid "" +#~ "gedit is a text editor for the GNOME Desktop featuring basic yet robust " +#~ "capabilities such as printing, spell checking, find and replace, and " +#~ "syntax highlighting. More advanced features are available as plugins." +#~ msgstr "" +#~ "gedit 是一个 GNOME 桌面环境下的文本编辑器,还可以对文档进行打印、拼写检" +#~ "查、查找替换,以及高亮语法等。更更多的特性可以通过插件来实现。" + +#~ msgid "Introduction" +#~ msgstr "简介" + +#~ msgid "" +#~ "The gedit application enables you to create " +#~ "and edit text files." +#~ msgstr "gedit 允许您创建和编辑文本文件。" + +#~ msgid "" +#~ "The aim of gedit is to be a simple and easy to " +#~ "use text editor. More powerful features can be enabled with different " +#~ "plugins, allowing a variety of tasks related to " +#~ "text-editing." +#~ msgstr "" +#~ "gedit 的目标是,实现一个简单易用的文本编辑器。" +#~ "更强大的功能可以通过不同的 插件,来实现执行各种文字" +#~ "编辑相关的任务。" + +#~ msgid "Getting Started" +#~ msgstr "快速入门" + +#~ msgid "" +#~ "You can start gedit in the following ways:" +#~ msgstr "可以通过以下方式启动 gedit:" + +#~ msgid "Applications menu" +#~ msgstr "应用程序 菜单" + +#~ msgid "" +#~ "Choose AccessoriesText " +#~ "Editor." +#~ msgstr "" +#~ "选择 附件文本编辑器。" + +#~ msgid "Command line" +#~ msgstr "命令行" + +#~ msgid "Execute the following command: gedit" +#~ msgstr "执行以下命令: gedit" + +#~ msgid "" +#~ "By default, when you open a text document in the file manager, gedit will " +#~ "start, and display the document." +#~ msgstr "" +#~ "默认情况下,当您在文件管理器中打开一个文本文件,gedit 会自动运行,显示这个" +#~ "文档。" + +#~ msgid "The gedit Window" +#~ msgstr "gedit 窗口" + +#~ msgid "" +#~ "When you start gedit, the following window is " +#~ "displayed:" +#~ msgstr "在启动 gedit 时,系统会显示下面的窗口。" + +#~ msgid "gedit Window" +#~ msgstr "gedit 窗口" + +#~ msgid "Shows gedit main window." +#~ msgstr "显示 gedit 主窗口。" + +#~ msgid "" +#~ "The gedit window contains the following " +#~ "elements:" +#~ msgstr "该 gedit 窗口包含以下元件:" + +#~ msgid "Menubar" +#~ msgstr "菜单栏" + +#~ msgid "" +#~ "The menus on the menubar contain all of the commands you need to work " +#~ "with files in gedit." +#~ msgstr "" +#~ "菜单栏上的菜单包含您在 gedit 中处理文件所需的所" +#~ "有命令。" + +#~ msgid "Toolbar" +#~ msgstr "工具栏" + +#~ msgid "" +#~ "The toolbar contains a subset of the commands that you can access from " +#~ "the menubar." +#~ msgstr "工具栏包含您可以从菜单栏访问的命令的子集。" + +#~ msgid "Display area" +#~ msgstr "显示区域" + +#~ msgid "The display area contains the text of the file that you are editing." +#~ msgstr "该区域包含您正在编辑的文件的文本。" + +#~ msgid "Statusbar" +#~ msgstr "状态栏" + +#~ msgid "" +#~ "The statusbar displays information about current gedit activity and contextual information about the menu items. " +#~ "The statusbar also displays the following information:" +#~ msgstr "" +#~ "状态栏显示关于当前 gedit 活动的信息和菜单项的相" +#~ "关信息。状态栏也显示下面的信息:" + +#~ msgid "" +#~ "Cursor position: the line number and column number where the cursor is " +#~ "located." +#~ msgstr "光标位置:显示光标所处的行号和列号。" + +#~ msgid "" +#~ "Edit mode: If the editor is in insert mode, the statusbar contains the " +#~ "text INS. If the editor is in overwrite mode, the " +#~ "statusbar contains the text OVR. Press the " +#~ "Insert key to change edit mode." +#~ msgstr "" +#~ "编辑模式:如果编辑器处于插入模式,则该状态栏显示 插入。如果编辑器处于覆盖模式,状态栏显示 覆盖。" +#~ "按 Insert 键切换两种编辑模式。" + +#~ msgid "Side Pane" +#~ msgstr "侧栏" + +#~ msgid "" +#~ "The side pane displays a list of open documents, and other information " +#~ "depending on which plugins are enabled." +#~ msgstr "侧栏中显示打开文档的列表,其他信息取决于您启用了哪些插件。" + +#~ msgid "" +#~ "By default the side pane is not shown. To show it, choose " +#~ "ViewSide Pane." +#~ msgstr "" +#~ "默认侧边栏没有显示,要显示它,点菜单 查看侧边栏。" + +#~ msgid "Bottom Pane" +#~ msgstr "底部面板" + +#~ msgid "" +#~ "The bottom pane is used by programming tools such as the " +#~ "Python Console plugin to display output." +#~ msgstr "" +#~ "底部面板用于一些编程工具,像 Python 控制台 插" +#~ "件,在这儿显示输出。" + +#~ msgid "" +#~ "By default the bottom pane is not shown. To show it, choose " +#~ "ViewBottom Pane." +#~ msgstr "" +#~ "默认底部栏不显示,要显示它,点菜单 查看底部栏。" + +#~ msgid "" +#~ "When you right-click in the gedit window, the " +#~ "application displays a popup menu. The popup menu contains the most " +#~ "common text editing commands." +#~ msgstr "" +#~ "当在 gedit 窗口中右击时,应用程序将会显示一个弹" +#~ "出菜单。该弹出菜单包含最常用的文本编辑命令。" + +#~ msgid "" +#~ "Like other GNOME applications, actions in gedit can be performed in several ways: with the menu, with the " +#~ "toolbar, or with shortcut keys. Shortcuts keys common to all applications " +#~ "are listed in the User Guide." +#~ msgstr "" +#~ "像其它的 GNOME 应用程序一样,运行 gedit 的方法" +#~ "有好几种:可以用菜单,可以用工具栏,或者用快捷键。所有程序通用的快捷键列" +#~ "在 用户指南 中。" + +#~ msgid "Running gedit from a Command Line" +#~ msgstr "从命令行运行 gedit" + +#~ msgid "" +#~ "You can run gedit from a command line and open " +#~ "a single file or multiple files. To open multiple files from a command " +#~ "line, type the following command, then press Return:" +#~ msgstr "" +#~ "您可以从命令行运行 gedit,并且打开一个文件或多" +#~ "个文件。要从命令行打开多个文件,请键入下面的命令,然后按下回车键:" + +#~ msgid "file1.txt file2.txt file3.txt" +#~ msgstr "file1.txt file2.txt file3.txt" + +#~ msgid "gedit " +#~ msgstr "gedit " + +#~ msgid "Alternatively, you can specify a URI instead of a filename." +#~ msgstr "另外,您也可以指定一个 URI 作为文件名。" + +#~ msgid "" +#~ "For more information on how to run gedit from " +#~ "a command line, see the unix manual page for gedit, gedit1." +#~ msgstr "" +#~ "更多运行 gedit 的相关信息,请参阅: gedit1。" + +#~ msgid "Creating a New Document" +#~ msgstr "创建新文档" + +#~ msgid "" +#~ "To create a new document, choose FileNew. The application " +#~ "displays a new blank document in the gedit " +#~ "window." +#~ msgstr "" +#~ "要创建一个新文件,点菜单 文件" +#~ "新建。在 gedit 窗口" +#~ "中,就会显示一个新的空白文档。" + +#~ msgid "Opening a File" +#~ msgstr "打开文件" + +#~ msgid "" +#~ "To open a file, choose FileOpen to display the " +#~ "Open File dialog. Select the file that you want to " +#~ "open, then click Open. The file is displayed in " +#~ "the gedit window." +#~ msgstr "" +#~ "要打开文件,点菜单 文件打开,出来一个 打开文件 对话框。" +#~ "选择要打开的文件,然后点 确定。该文件就会显示在 " +#~ "gedit 窗口中。" + +#~ msgid "Shows Recent Files menu icon." +#~ msgstr "显示最近访问过的文件菜单图标。" + +#~ msgid "" +#~ "The application records the paths and filenames of the five most recent " +#~ "files that you edited and displays the files as menu items on the " +#~ "File menu. You can also click " +#~ "on the icon on the toolbar to display the list of recent " +#~ "files." +#~ msgstr "" +#~ "应用程序会记住您最近编辑的五个文件,并显示在 文件 菜单中。您也可以点击工具栏上的 图标" +#~ "来显示最近访问过的文件的列表。" + +#~ msgid "" +#~ "You can open multiple files in gedit. The " +#~ "application adds a tab for each open file to the window. For more on this " +#~ "see ." +#~ msgstr "" +#~ "您可以在 gedit 中打开多个文件。程序将为每个打开" +#~ "的程序在窗口里增加一个标签。更多相关信息,请参阅:。" + +#~ msgid "You can save files in the following ways:" +#~ msgstr "您可以使用以下几种方法来保存文件:" + +#~ msgid "" +#~ "To save changes to an existing file, choose FileSave." +#~ msgstr "" +#~ "要保存一个已经存在的文件,点菜单 文件保存 命令。" + +#~ msgid "" +#~ "To save a new file or to save an existing file under a new filename, " +#~ "choose FileSave As. Enter a name for the file in the " +#~ "Save As dialog, then click Save." +#~ msgstr "" +#~ "要保存新文件或者用新的文件名保存一个现存的文件,请选择 " +#~ "文件另存为。在 另存为 对话框中输入文件名,然后点击 " +#~ "保存。" + +#~ msgid "" +#~ "To save all of the files that are currently open in gedit, choose DocumentsSave All." +#~ msgstr "" +#~ "如果要保存 gedit 中当前打开的所有文件,请选择 " +#~ "文档全部保存。" + +#~ msgid "" +#~ "To close all of the files that are currently open in gedit, choose DocumentsClose All." +#~ msgstr "" +#~ "如果要关闭 gedit 中打开的所有文件,点菜单 " +#~ "文档全部关闭。" + +#~ msgid "" +#~ "To open a file from a Uniform Resource Identifier (URI), perform the " +#~ "following steps:" +#~ msgstr "要通过统一资源标识符 (URI) 打开文件,请执行以下步骤:" + +#~ msgid "" +#~ "Saving to FTP servers can be enabled with Configuration Editor, setting the key /apps/gedit-2/preferences/editor/save/" +#~ "writable_vfs_schemes, but this may cause errors." +#~ msgstr "" +#~ "保存到远程服务器,可以通过 配置编辑器 来启用,设置 " +#~ "/apps/gedit-2/preferences/editor/save/writable_vfs_schemes,但这可能导致错误发生。" + +#~ msgid "Working With Tabs" +#~ msgstr "标签操作" + +#~ msgid "" +#~ "When more than one file is open, gedit shows a " +#~ "tab for each document above the display area. To " +#~ "switch to another document, click on its tab." +#~ msgstr "" +#~ "当打开多个文件时,gedit 在上边为每个文档显示一" +#~ "个 tab,要切换文档,点击标签即可。" + +#~ msgid "" +#~ "To move a document to another gedit window, " +#~ "drag the tab corresponding to the file to the window you want to move it " +#~ "to." +#~ msgstr "" +#~ "要移动文档到另外的 gedit 窗口,只要把这个文档标" +#~ "签拖过去即可。" + +#~ msgid "" +#~ "To move a document to a new gedit window, " +#~ "either drag its tab to the desktop, or choose " +#~ "DocumentsMove to New Window." +#~ msgstr "" +#~ "要移动一个文档到新的 gedit 窗口,或者拖动标签到" +#~ "桌面上,也可以点菜单 文档移动" +#~ "到新窗口。" + +#~ msgid "Working with Text" +#~ msgstr "文本操作" + +#~ msgid "Editing Text" +#~ msgstr "编辑文本" + +#~ msgid "You can edit the text of a file in the following ways:" +#~ msgstr "您可以通过以下方法来编辑文件中的文本:" + +#~ msgid "" +#~ "Type new text from the keyboard. The blinking insertion " +#~ "cursor marks the point where new text appears. To change " +#~ "this, use the arrow keys on the keyboard or click with the mouse." +#~ msgstr "" +#~ "通过键盘来输入文字。光标插入点 指示新的文本将输入到" +#~ "这里。要插入到别处,可以用方向键或鼠标点击来改变光标插入点位置。" + +#~ msgid "" +#~ "To copy the selected text to the clipboard, choose " +#~ "EditCopy." +#~ msgstr "" +#~ "要将选定的文本复制到剪贴板,点菜单 编辑复制。" + +#~ msgid "" +#~ "To delete the selected text from the file and move the selected text to " +#~ "the clipboard, choose EditCut." +#~ msgstr "" +#~ "要将选定的文本剪切到剪贴板中,点菜单 编辑剪切。" + +#~ msgid "" +#~ "To permanently delete the selected text from the file, choose " +#~ "EditDelete." +#~ msgstr "" +#~ "要从文件中永久删除选定的文本,点菜单 编辑删除。" + +#~ msgid "" +#~ "To insert the contents of the clipboard at the cursor position, choose " +#~ "EditPaste. You must cut or copy text before you can paste text into the " +#~ "file, either from gedit or another application." +#~ msgstr "" +#~ "要在光标位置插入剪贴板中的内容,点菜单 编辑粘贴。您必须要在gedit 或其" +#~ "他程序里,先剪切或者复制文本,然后才能粘贴文本。" + +#~ msgid "" +#~ "To select all of the text in a file, choose EditSelect All." +#~ msgstr "" +#~ "要选择文件中的所有文本,点菜单 编辑全部选定。" + +#~ msgid "Undoing and Redoing Changes" +#~ msgstr "撤销和重做" + +#~ msgid "" +#~ "To undo a change you have made, choose EditUndo. To reverse this " +#~ "action, choose EditRedo." +#~ msgstr "" +#~ "要撤销你做的更改,点菜单 编辑" +#~ "撤销。要恢复一个操作,点菜单 " +#~ "编辑重做。" + +#~ msgid "Finding and Replacing" +#~ msgstr "查找和替换文本" + +#~ msgid "" +#~ "In gedit, there are two ways of searching for " +#~ "text. You can use the Find dialog to search for a " +#~ "specific piece of text, or Incremental Search to " +#~ "highlight matching text as you type it." +#~ msgstr "" +#~ "在 gedit 中,有两种方法搜索文本。您可以使用 " +#~ "查找 对话框来搜索指定的一段文字,也可以使用 " +#~ "增量搜索 高亮匹配您输入的文本。" + +#~ msgid "To search a file for a string of text, perform the following steps:" +#~ msgstr "要在文件中搜索文本字符串,请按以下步骤操作:" + +#~ msgid "" +#~ "Choose SearchFind to display the Find dialog." +#~ msgstr "" +#~ "点菜单 搜索查找,显示 查找 对话框。" + +#~ msgid "" +#~ "Type the string that you want to find in the Search for field. You can include special characters such as a new line or " +#~ "tab: see ." +#~ msgstr "" +#~ "在 搜索框 里输入您要查找的字符串,可以包括换行符和制" +#~ "表符,请参阅:。" + +#~ msgid "" +#~ "Click Find to search the file for the first " +#~ "occurrence of the string after your current cursor position. If " +#~ "gedit finds the string, the application " +#~ "selects first occurrence of the string. Other occurrences of the string " +#~ "are highlighted." +#~ msgstr "" +#~ "点击 查找 就可以从当前位置开始搜索字符串。如果 " +#~ "gedit 找到了该字符串,就会选中第一个匹配项,其" +#~ "他的匹配项则会高亮显示。" + +#~ msgid "" +#~ "To find the next occurrence of the string, click Find or choose SearchFind Next. To find the " +#~ "previous occurrence of the text, choose SearchFind Previous." +#~ msgstr "" +#~ "要查找下一个匹配项,继续点 查找,也可以点菜单 " +#~ "搜索查找下一个。要查找前一个匹配项,点菜单 搜索查找上一个。" + +#~ msgid "" +#~ "After you have closed the Find dialog, you can still " +#~ "move the selection to other occurrences of the text by choosing " +#~ "SearchFind Next and SearchFind Previous." +#~ msgstr "" +#~ "关闭了 查找 对话框后,您还可以通过 " +#~ "搜索查找下一个 命令,或者 搜索查" +#~ "找上一个 ,来搜索另外的匹配项。" + +#~ msgid "" +#~ "To remove the highlighting from the text, choose " +#~ "SearchClear Highlight." +#~ msgstr "" +#~ "要清除所有高亮文本,点菜单 搜索清除高亮显示。" + +#~ msgid "Incremental Search" +#~ msgstr "增量搜索" + +#~ msgid "" +#~ "Incremental search highlights matching text in the document as you type " +#~ "it letter by letter. (This is similar to the search feature in several " +#~ "web browsers.)" +#~ msgstr "" +#~ "增量搜索会高亮匹配文档中,您要查找的文本。(这个特性类似于一些网页浏览器中" +#~ "的搜索功能。)" + +#~ msgid "" +#~ "To start an incremental search, choose SearchIncremental Search. The " +#~ "search box appears at the top of the display area." +#~ msgstr "" +#~ "要开始一个增量搜索,点菜单 搜索增量搜索。在工作区顶部出现" +#~ "一个搜索框。" + +#~ msgid "" +#~ "Begin typing, and text that matches will be highlighted in the document. " +#~ "The first instance after the cursor position is also selected." +#~ msgstr "输入后,文档中匹配的文本都会高亮显示,第一个匹配项也会被选中。" + +#~ msgid "" +#~ "To advance the selection to the next match while keeping the incremental " +#~ "search box open, press CtrlG. Press CtrlShiftG to go back to the previous match." +#~ msgstr "" +#~ "要想跳到第二个匹配项,按组合键 CtrlG。按 CtrlShiftG 回到前一个匹配项。" + +#~ msgid "" +#~ "You can also use the up and down arrow keys or the mouse wheel to move " +#~ "the selection between matches." +#~ msgstr "您也可以使用上下方向键或鼠标滚轮,在各个匹配项之前切换。" + +#~ msgid "" +#~ "To search a file for a string, and replace the string with an alternative " +#~ "string, perform the following steps:" +#~ msgstr "" +#~ "要在文件中搜索一个字符串,并用另一个字符串替换该字符串,请执行以下步骤:" + +#~ msgid "" +#~ "Choose SearchReplace to display the Replace " +#~ "dialog." +#~ msgstr "" +#~ "选择“搜索”“替换”,显示“替换”对话框。" + +#~ msgid "" +#~ "Type the string that you want to find, in the Search for field. You can include special characters such as a new line or " +#~ "tab: see ." +#~ msgstr "" +#~ "在 搜索框 中输入您想查找的字符。还可以输入特殊字符," +#~ "像换行符或制表符,请参阅: 。" + +#~ msgid "" +#~ "Type the string that you want to use to replace the string that you find, " +#~ "in the Replace with field." +#~ msgstr "" +#~ "在 替换为 文本框中输入用来替换查找到的字符串的字符" +#~ "串。" + +#~ msgid "" +#~ "To examine each occurrence of the string before replacing it, click " +#~ "Find. If gedit finds " +#~ "the string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the " +#~ "next occurrence of the string, click Find again." +#~ msgstr "" +#~ "在替换之前如果想检查一下,点击 查找,如果 " +#~ "gedit 找到对应的字符,将会选中它,然后点 " +#~ "替换,就可以替换找到的字符。要查找下一个匹配项,继" +#~ "续点 查找。" + +#~ msgid "Find and Replace Options" +#~ msgstr "查找和替换选项" + +#~ msgid "" +#~ "The Find dialog and the Replace " +#~ "dialog both have the following options:" +#~ msgstr "" +#~ "查找 对话框和 替换 对话框,都有" +#~ "下面的这些选项:" + +#~ msgid "" +#~ "Select the Match case option to only find " +#~ "occurrences of the string that match the case of the text that you type. " +#~ "For example, with Match case selected, \"TEXT\" will " +#~ "not match \"text\"." +#~ msgstr "" +#~ "选中 区分大小写 选项,仅查找完全匹配大小写的字符串。" +#~ "例如,选中 区分大小写, “TEXT”和“text”是不一样的。" + +#~ msgid "" +#~ "Select the Match entire word only option to only " +#~ "find occurrences of the string that match the entire words of the text " +#~ "that you type. For example, with Match entire word only selected, \"text\" will not match \"texture\"." +#~ msgstr "" +#~ "选中 匹配整个单词 选项,只是查找那些与您键入文本的整" +#~ "个单词相同的字符串。例如,选中了 匹配整个单词 选" +#~ "项,“text”和“texture”是不匹配的。" + +#~ msgid "" +#~ "Select the Search backwards option to search " +#~ "backwards towards the beginning of the document." +#~ msgstr "选中 反向搜索,就会向着文件开头的方向搜索。" + +#~ msgid "" +#~ "Select the Wrap around option to search to one end " +#~ "of the document and then continue the search from the other end of the " +#~ "file." +#~ msgstr "" +#~ "选中 回到头部继续搜索 选项,当搜索到文件尾以后,接着" +#~ "从文件开头继续搜索。" + +#~ msgid "" +#~ "You can include the following escape sequences in the text to find or " +#~ "replace to represent special characters:" +#~ msgstr "您可以在查找或替换文本中,包括下列转义字符:" + +#~ msgid "Specifies a new line." +#~ msgstr "插入一个新行。" + +#~ msgid "Specifies a tab character." +#~ msgstr "插入一个 Tab 制表符。" + +#~ msgid "\\\\" +#~ msgstr "\\\\" + +#~ msgid "" +#~ "The backslash character itself must be escaped if it is being searched " +#~ "for. For example, if you are looking for the \"\\n\" " +#~ "literal, you will have to type \"\\\\n\" in the Search for field. Or if you are looking for a sequence of backslashes, you " +#~ "will have to double the number of searched backslashes." +#~ msgstr "" +#~ "反斜杠转义字符在搜索时会被忽略。例如如果您想查找文字 \"\\n\" ,您需要在 搜索框 里输入 \"\\\\n\"。或者如" +#~ "果您要查找连续的反斜杠,您必须输入两个反斜杠来搜索它。" + +#~ msgid "Positioning the Cursor on a Specific Line" +#~ msgstr "将光标定位到指定的行" + +#~ msgid "" +#~ "To position the cursor on a specific line in the current file, choose " +#~ "SearchGo to Line. The line number box appears at the top of the " +#~ "display area." +#~ msgstr "" +#~ "要把定位光标到当前文件指定的行,点菜单 搜索转到行。在工作区顶部出现一" +#~ "个行号文本框。" + +#~ msgid "" +#~ "Begin typing the number of the line that you want to move the cursor to " +#~ "and the document will scroll to the specified line." +#~ msgstr "输入您想转到的行,文档会自动跳转到这一行显示。" + +#~ msgid "" +#~ "To dismiss the box and move the cursor to the specified line, press " +#~ "Return." +#~ msgstr "" +#~ "要去掉这个文本框,并将光标移到指定行,按一下 回车键。" + +#~ msgid "Setting the Page Options" +#~ msgstr "设置页面选项" + +#~ msgid "" +#~ "To set the page options, choose FilePage Setup to display the " +#~ "Page Setup dialog." +#~ msgstr "" +#~ "要设置页面选项,点菜单 文件页" +#~ "面设置,出来一个 页面设置 " +#~ "对话框。" + +#~ msgid "" +#~ "The Page Setup dialog enables you to specify the " +#~ "following print options:" +#~ msgstr "页面设置 对话框允许您设定下面这些打印选项:" + +#~ msgid "" +#~ "Select this option to print syntax highlighting. For more information " +#~ "about syntax highlighting, see ." +#~ msgstr "" +#~ "选中此项,打印高亮语法格式。更多相关信息,请参阅:。" + +#~ msgid "Print page headers" +#~ msgstr "打印页眉" + +#~ msgid "" +#~ "Select this option to include a header on each page that you print. You " +#~ "cannot configure the header." +#~ msgstr "如果选择此选项,系统会在打印时打印每页的页眉。您不能配置页眉。" + +#~ msgid "Line Numbers" +#~ msgstr "行号" + +#~ msgid "" +#~ "Select the Print line numbers option to include line " +#~ "numbers when you print a file." +#~ msgstr "选中 打印行号 选项,打印文件时也包括行号。" + +#~ msgid "" +#~ "Use the Number every ... lines spin box to specify " +#~ "how often to print the line numbers, for example every 5 lines, every 10 " +#~ "lines, and so on." +#~ msgstr "" +#~ "在 每几行打印一次行 微调按钮框中,设定多久打印一次行" +#~ "号,例如每 5 行打印一次,每 10 行 打印一次,等等。" + +#~ msgid "" +#~ "Select the Enable text wrapping option to wrap text " +#~ "onto the next line, at a character level, when you print a file. The " +#~ "application counts wrapped lines as one line for line numbering purposes." +#~ msgstr "" +#~ "选中 允许文本换行,当您打印一个文件时,将自动换行文本" +#~ "字符。程序在统计行数时,将折行还是算作一行。" + +#~ msgid "" +#~ "Select the Do not split words over two lines option " +#~ "to wrap text onto the next line, at a word level, when you print a file." +#~ msgstr "" +#~ "选中 不将一个单词拆在两行 选项,会将整个单词换到下一" +#~ "行,当您打印文件时,将自动换行文本单词。" + +#~ msgid "Fonts" +#~ msgstr "字体" + +#~ msgid "Body" +#~ msgstr "正文" + +#~ msgid "" +#~ "Click on this button to select the font to use to print the body text of " +#~ "a file." +#~ msgstr "单击此按钮可以选择打印文件正文文本所用的字体。" + +#~ msgid "Line numbers" +#~ msgstr "行号" + +#~ msgid "" +#~ "Click on this button to select the font to use to print line numbers." +#~ msgstr "单击此按钮可以选择打印行号所用的字体。" + +#~ msgid "Headers and footers" +#~ msgstr "页眉和页脚" + +#~ msgid "" +#~ "Click on this button to select the font to use to print the headers and " +#~ "footers in a file." +#~ msgstr "单击此按钮可以选择打印文件页眉、页脚所用的字体。" + +#~ msgid "" +#~ "To reset the fonts to the default fonts for printing a file from " +#~ "gedit, click Restore Default Fonts." +#~ msgstr "" +#~ "要在 gedit 中,将打印字体恢复到默认字体,点击 " +#~ "恢复为默认字体。" + +#~ msgid "" +#~ "You can use gedit to perform the following " +#~ "print operations:" +#~ msgstr "您可以使用 gedit 来执行以下打印操作:" + +#~ msgid "Print the output of the print command to a file." +#~ msgstr "将打印命令的输出打印到文件中。" + +#~ msgid "" +#~ "If you print to a file, gedit sends the output " +#~ "of the file to a pre-press format file. The most common pre-press formats " +#~ "are PostScript and Portable Document Format (PDF)." +#~ msgstr "" +#~ "如果是打印到文件中,gedit 会将该文件的输出发送" +#~ "到一个印前格式的文件中。最常用的印前格式是 PostScript 格式和可移植文档格" +#~ "式 (PDF)。" + +#~ msgid "" +#~ "To preview the pages that you want to print, choose " +#~ "FilePrint Preview." +#~ msgstr "" +#~ "要预览要打印的页面,请选择 文件打印预览。" + +#~ msgid "" +#~ "To print the current file to a printer or a file, choose " +#~ "FilePrint to display the Print dialog." +#~ msgstr "" +#~ "要将当前文件打印到打印机或者一个文件中,点菜单 文件打印,显示 打印" +#~ " 对话框。" + +#~ msgid "" +#~ "The Print dialog enables you to specify the " +#~ "following print options:" +#~ msgstr "打印 对话框允许您指定以下打印选项:" + +#~ msgid "Job Tabbed Section" +#~ msgstr "任务区段" + +#~ msgid "Print range" +#~ msgstr "打印范围" + +#~ msgid "" +#~ "Select one of the following options to determine how many pages to print:" +#~ msgstr "选择以下一个选项,以确定要打印的页数:" + +#~ msgid "All" +#~ msgstr "全部" + +#~ msgid "Select this option to print all of the pages in the file." +#~ msgstr "如果选择该选项,将打印文件中的所有页。" + +#~ msgid "" +#~ "Select this option to print the specified lines only. Use the " +#~ "From and To spin boxes to " +#~ "specify the line range." +#~ msgstr "" +#~ "选中此项,仅打印指定行。使用 微调按钮框,指定打印行的范围。" + +#~ msgid "Selection" +#~ msgstr "选定范围" + +#~ msgid "" +#~ "Select this option to print the selected text only. This option is only " +#~ "available if you select text." +#~ msgstr "" +#~ "如果选择该选项,将只打印选定的文本。该选项只有在选定了文本时才可用。" + +#~ msgid "Copies" +#~ msgstr "副本" + +#~ msgid "" +#~ "Use the Number of copies spin box to specify the " +#~ "number of copies of the file that you want to print." +#~ msgstr "点击 副本数 微调按钮框,指定您想打印的份数。" + +#~ msgid "" +#~ "If you print multiple copies of the file, select the Collate option to collate the printed copies." +#~ msgstr "" +#~ "如果您要该文件的多个副本,则可以 顺序 选项中指定副本" +#~ "打印的顺序。" + +#~ msgid "Printer Tabbed Section" +#~ msgstr "打印机标签段" + +#~ msgid "Printer" +#~ msgstr "打印机" + +#~ msgid "" +#~ "Use this drop-down list to select the printer to which you want to print " +#~ "the file." +#~ msgstr "点击下拉列表,选择您想要用来打印文件的打印机。" + +#~ msgid "Settings" +#~ msgstr "设置" + +#~ msgid "Use this drop-down list to select the printer settings." +#~ msgstr "点击下拉列表,设定打印机选项。" + +#~ msgid "" +#~ "To configure the printer, click Configure. For " +#~ "example, you can enable or disable duplex printing, or schedule delayed " +#~ "printing, if this functionality is supported by the printer." +#~ msgstr "" +#~ "要配置打印机,点 配置。例如,你可以启用或禁用双面打" +#~ "印,或放入打印队列中,如果打印机支持此项功能。" + +#~ msgid "Location" +#~ msgstr "位置" + +#~ msgid "" +#~ "Use this drop-down list to select one of the following print destinations:" +#~ msgstr "点击下拉列表,选择下面一个打印目标:" + +#~ msgid "CUPS" +#~ msgstr "CUPS" + +#~ msgid "Print the file to a CUPS printer." +#~ msgstr "将文件打印到 CUPS 打印机。" + +#~ msgid "" +#~ "If the selected printer is a CUPS printer, CUPS is " +#~ "the only entry in this drop-down list." +#~ msgstr "" +#~ "如果选择的打印机是一个 CUPS 打印机,CUPS 是下拉列表中" +#~ "的唯一一项。" + +#~ msgid "lpr" +#~ msgstr "lpr" + +#~ msgid "File" +#~ msgstr "文件" + +#~ msgid "Print the file to a PostScript file." +#~ msgstr "将文件打印输出到一个 PostScript 文件中。" + +#~ msgid "" +#~ "Click Save As to display a dialog where you " +#~ "specify the name and location of the PostScript file." +#~ msgstr "" +#~ "点 另存为 出来一个对话框,您可以指定 PostScript 文" +#~ "件保存的位置和文件名。" + +#~ msgid "Custom" +#~ msgstr "自定义" + +#~ msgid "" +#~ "Type the name of the command in the text box. Include all command-line " +#~ "arguments." +#~ msgstr "在文本框中输入命令的名称,包括所有的命令行参数。" + +#~ msgid "State" +#~ msgstr "状态" + +#~ msgid "This functionality is not supported in this version of gedit." +#~ msgstr "在这个版本的 gedit 中,不支持这个功能。" + +#~ msgid "Type" +#~ msgstr "类型" + +#~ msgid "Paper Tabbed Section" +#~ msgstr "纸张标签段" + +#~ msgid "Paper size" +#~ msgstr "纸张大小" + +#~ msgid "" +#~ "Use this drop-down list to select the size of the paper to which you want " +#~ "to print the file." +#~ msgstr "使用此下拉列表可以选择您用来打印该文件的纸张的大小。" + +#~ msgid "Width" +#~ msgstr "纸张宽度" + +#~ msgid "" +#~ "Use this spin box to specify the width of the paper. Use the adjacent " +#~ "drop-down list to change the measurement unit." +#~ msgstr "点击微调按钮框指定纸张宽度,在旁边的下拉列表中可以更改用度量单位。" + +#~ msgid "Height" +#~ msgstr "纸张高度" + +#~ msgid "Use this spin box to specify the height of the paper." +#~ msgstr "使用此微调按钮框可以指定纸张高度。" + +#~ msgid "Feed orientation" +#~ msgstr "送纸方向" + +#~ msgid "" +#~ "Use this drop-down list to select the orientation of the paper in the " +#~ "printer." +#~ msgstr "使用此下拉列表可以选择打印机中的纸张方向。" + +#~ msgid "Page orientation" +#~ msgstr "纸张方向" + +#~ msgid "Use this drop-down list to select the page orientation." +#~ msgstr "使用此下拉列表可以选择纸张方向。" + +#~ msgid "Layout" +#~ msgstr "布局" + +#~ msgid "" +#~ "Use this drop-down list to select the page layout. A preview of each " +#~ "layout that you select is displayed in the Preview " +#~ "area." +#~ msgstr "" +#~ "使用此下拉列表可以选择纸张布局。您选择的每个布局的预览会显示在 " +#~ "预览区域中。" + +#~ msgid "Paper tray" +#~ msgstr "纸盘" + +#~ msgid "Use this drop-down list to select the paper tray." +#~ msgstr "点下拉列表,选择纸盘。" + +#~ msgid "Programming Features" +#~ msgstr "程序特性" + +#~ msgid "" +#~ "Several of gedit's features for programming " +#~ "are provided with plugins. For example, the Tag List plugin provides a " +#~ "list of commonly-used tags for different markup languages: see ." +#~ msgstr "" +#~ "gedit 的一些特性由插件提供。例如,标记列表插件" +#~ "提供一个不同标记语言的常用标记列表:请参阅 。" + +#~ msgid "" +#~ "Syntax highlighting makes source code easier to read by showing different " +#~ "parts of the text in different colors." +#~ msgstr "高亮语法格式,将不同部分文本显示不同颜色,使得源代码更容易阅读。" + +#~ msgid "" +#~ "gedit chooses an appropriate syntax " +#~ "highlighting mode based on a document's type. To override the syntax " +#~ "highlighting mode, choose ViewHighlight Mode, then " +#~ "choose one of the following menu items:" +#~ msgstr "" +#~ "gedit 针对文本的类型,选择一个合适的高亮语法模" +#~ "式。要替换高亮语法模式,点菜单 查看高亮语法模式,然后选择下面" +#~ "的一种。" + +#~ msgid "Normal" +#~ msgstr "普通" + +#~ msgid "Do not display any syntax highlighting." +#~ msgstr "不显示高亮语法格式" + +#~ msgid "Sources" +#~ msgstr "源代码" + +#~ msgid "" +#~ "Display syntax highlighting to edit source code. Use the " +#~ "Sources submenu to select the source code type." +#~ msgstr "" +#~ "显示编辑源代码的高亮语法格式。在 源代码 子菜单" +#~ "中,再选择源代码类型。" + +#~ msgid "Markup" +#~ msgstr "标记语言" + +#~ msgid "" +#~ "Display syntax highlighting to edit markup code. Use the " +#~ "Markup submenu to select the markup code type." +#~ msgstr "" +#~ "显示标记语言的高亮语法格式。在 guisubmenu>标记语言 子菜单中选" +#~ "择一种标记语言类型。" + +#~ msgid "" +#~ "Display syntax highlighting to edit script code. Use the " +#~ "Scripts submenu to select the script code type." +#~ msgstr "" +#~ "显示编辑脚本语言的高亮语法格式。在 脚本语言 子菜" +#~ "单中,选择一种脚本语言类型。" + +#~ msgid "Others" +#~ msgstr "其他" + +#~ msgid "" +#~ "Display syntax highlighting to edit other types of code. Use the " +#~ "Others submenu to select the code type." +#~ msgstr "" +#~ "显示编辑其他代码的高亮语法格式。在 其他 子菜单中" +#~ "选择一种代码类型。" + +#~ msgid "Piping the Output of a Command to a File" +#~ msgstr "通过管道命令输出到文件" + +#~ msgid "" +#~ "You can use gedit to pipe the output of a " +#~ "command to a text file. For example, to pipe the output of an " +#~ "ls command to a text file, type ls | gedit, then press Return." +#~ msgstr "" +#~ "您可以使用 gedit 将命令的输出输送到文本文件中。" +#~ "例如,要将 ls 命令的输出输送到一个文本文件中,输入 " +#~ "ls | gedit,然后按 回车键。" + +#~ msgid "" +#~ "The output of the ls command is displayed in a new " +#~ "text file in the gedit window." +#~ msgstr "" +#~ "ls 命令的输出就会显示在 gedit 窗口的一个新文件中。" + +#~ msgid "" +#~ "Alternatively, you can use the External tools " +#~ "plugin to pipe command output to the current file." +#~ msgstr "" +#~ "另外,您也可以使用外部工具 插件,把命令输出到当" +#~ "前文件。" + +#~ msgid "Shortcut Keys" +#~ msgstr "快捷键" + +#~ msgid "" +#~ "For more on shortcut keys, see the Desktop User Guide." +#~ msgstr "" +#~ "更多快捷键,请参阅:桌面用户指南。" + +#~ msgid "Shortcuts for tabs:" +#~ msgstr "标签快捷键:" + +#~ msgid "Shortcut Key" +#~ msgstr "快捷键" + +#~ msgid "Alt + n" +#~ msgstr "Alt + n" + +#~ msgid "Files" +#~ msgstr "文件" + +#~ msgid "Ctrl + L" +#~ msgstr "Ctrl + L" + +#~ msgid "Open a location." +#~ msgstr "打开位置。" + +#~ msgid "Edit" +#~ msgstr "编辑" + +#~ msgid "Select all." +#~ msgstr "全选" + +#~ msgid "Panes" +#~ msgstr "面板" + +#~ msgid "Ctrl + K" +#~ msgstr "Ctrl + K" + +#~ msgid "Interactive search." +#~ msgstr "交互式搜索。" + +#~ msgid "Tools" +#~ msgstr "工具" + +#~ msgid "Ctrl + T" +#~ msgstr "Ctrl + T" + +#~ msgid "Indent (with plugin)." +#~ msgstr "缩进(使用插件)。" + +#~ msgid "Ctrl + Shift + T" +#~ msgstr "Ctrl + Shift + T" + +#~ msgid "Remove Indent (with plugin)." +#~ msgstr "清除缩进(使用插件)。" + +#~ msgid "Help" +#~ msgstr "帮助" + +#~ msgid "Open gedit's user manual." +#~ msgstr "打开 gedit 的用户手册。" + +#~ msgid "Preferences" +#~ msgstr "首选项" + +#~ msgid "" +#~ "To configure gedit, choose " +#~ "EditPreferences. The Preferences dialog " +#~ "contains the following categories:" +#~ msgstr "" +#~ "要配置 gedit,点菜单 编辑" +#~ "首选项首选" +#~ "项 对话框包含以下类别:" + +#~ msgid "View Preferences" +#~ msgstr "查看" + +#~ msgid "" +#~ "Select the Enable text wrapping option to have long " +#~ "lines of text flow into paragraphs instead of running off the edge of the " +#~ "text window. This avoids having to scroll horizontally" +#~ msgstr "" +#~ "选中 允许文本换行 选项,长的文本行会折行,而不是跑到" +#~ "文本窗口外边。这就不需要使用水平滚动条。" + +#~ msgid "" +#~ "Select the Do not split words over two lines option " +#~ "to have the text wrapping option preserve whole words when flowing text " +#~ "to the next line. This makes text easier to read." +#~ msgstr "" +#~ "选中 不将一个单词拆在两行 选项,会将整个单词换到下一" +#~ "行,使文本更容易阅读。" + +#~ msgid "" +#~ "Select the Display line numbers option to display " +#~ "line numbers on the left side of the gedit " +#~ "window." +#~ msgstr "" +#~ "选中 显示行号,在 gedit 窗" +#~ "口的左侧显示行号。" + +#~ msgid "Current Line" +#~ msgstr "当前行" + +#~ msgid "" +#~ "Select the Highlight current line option to " +#~ "highlight the line where the cursor is placed." +#~ msgstr "" +#~ "选中 高亮显示当前行 选项,光标所在的行会高亮显示。" + +#~ msgid "Right Margin" +#~ msgstr "右边距" + +#~ msgid "" +#~ "Select the Display right margin option to display a " +#~ "vertical line that indicates the right margin." +#~ msgstr "选中 显示右边距 选项,显示一条竖线指示右边距。" + +#~ msgid "" +#~ "Use the Right margin at column spin box to specify " +#~ "the location of the vertical line." +#~ msgstr "" +#~ "在 右边距位于列 微调按钮框,指定竖线所在的列号位置。" + +#~ msgid "" +#~ "Select the Highlight matching bracket option to " +#~ "highlight the corresponding bracket when the cursor is positioned on a " +#~ "bracket character." +#~ msgstr "" +#~ "选中 高亮显示匹配的括号 选项,当光标位于括号位置时," +#~ "高亮显示匹配的另一个括号。" + +#~ msgid "Editor Preferences" +#~ msgstr "编辑器" + +#~ msgid "" +#~ "Use the Tab width spin box to specify the width of " +#~ "the space that gedit inserts when you press " +#~ "the Tab key." +#~ msgstr "" +#~ "在 Tab 宽度 微调按钮框里,指定当您按下 Tab 键时,gedit 插入的空格宽度。" + +#~ msgid "" +#~ "Select the Insert spaces instead of tabs option to " +#~ "specify that gedit inserts spaces instead of " +#~ "a tab character when you press the Tab key." +#~ msgstr "" +#~ "选中 插入空格替代制表符,指定当您按下 Tab 键时,gedit 插入空格而不是制表符。" + +#~ msgid "Auto Indentation" +#~ msgstr "自动缩进" + +#~ msgid "" +#~ "Select the Enable auto indentation option to specify " +#~ "that the next line starts at the indentation level of the current line." +#~ msgstr "选中 启用自动缩进,指定下一行在缩进后再开始。" + +#~ msgid "File Saving" +#~ msgstr "保存文件" + +#~ msgid "" +#~ "Select the Create a backup copy of files before saving option to create a backup copy of a file each time you save the " +#~ "file. The backup copy of the file contains a ~ at the end of the filename." +#~ msgstr "" +#~ "选中 在保存之前创建一个文件备份,在每次保存文件的时候" +#~ "创建文件的备份副本。备份文件的文件名的末尾包含一个 ~。" + +#~ msgid "" +#~ "Select the Autosave files every ... minutes option " +#~ "to automatically save the current file at regular intervals. Use the spin " +#~ "box to specify how often you want to save the file." +#~ msgstr "" +#~ "选中 自动保存,每隔...分钟,在指定的时间间隔后,会自" +#~ "动保存当前文件。使用微调按钮框可以指定多久保存一次文件。" + +#~ msgid "Font & Colors Preferences" +#~ msgstr "字体和颜色选项" + +#~ msgid "Font" +#~ msgstr "字体" + +#~ msgid "" +#~ "Select the Use default theme font option to use the " +#~ "default system font for the text in the gedit " +#~ "text window." +#~ msgstr "" +#~ "选中 使用默认主题字体, 该选项,将在 " +#~ "gedit 文本窗口中使用默认系统字体来显示文本。" + +#~ msgid "" +#~ "The Editor font field displays the font that " +#~ "gedit uses to display text. Click on the " +#~ "button to specify the font type, style, and size to use for text." +#~ msgstr "" +#~ "编辑器字体 显示 gedit 用来" +#~ "显示文本的字体。 单击该按钮可以指定文本使用的字体、样式和大小。" + +#~ msgid "" +#~ "You can choose a color scheme from the list of color schemes. By default, " +#~ "the following color schemes are installed:" +#~ msgstr "" +#~ "您可以从颜色方案列表中选择一种颜色方案。默认情况下,安装有下面的颜色方案:" + +#~ msgid "Classic" +#~ msgstr "经典" + +#~ msgid "Classic color scheme based on the gvim color scheme." +#~ msgstr "基于 gvim 颜色方案的经典颜色方案。" + +#~ msgid "Cobalt" +#~ msgstr "Cobalt" + +#~ msgid "Kate" +#~ msgstr "Kate" + +#~ msgid "Color scheme used in the Kate text editor." +#~ msgstr "用于 Kate 文本编辑器的颜色方案。" + +#~ msgid "Oblivion" +#~ msgstr "Oblivion" + +#~ msgid "Dark color scheme using the Tango color palette." +#~ msgstr "用于 Tango 调色板的黑色主题方案。" + +#~ msgid "Tango" +#~ msgstr "Tango" + +#~ msgid "Color scheme using the Tango color scheme." +#~ msgstr "用于 Tango 的颜色方案。" + +#~ msgid "" +#~ "You can add a new color scheme by clicking on Add..., and selecting a color scheme file" +#~ msgstr "" +#~ "您可以通过点击 添加...,选择一个颜色方案文件,来添加" +#~ "一个新的颜色方案" + +#~ msgid "" +#~ "You can remove the selected color scheme by clicking on Remove" +#~ msgstr "您可以通过点击 删除,删除选中的颜色方案" + +#~ msgid "Plugins Preferences" +#~ msgstr "插件" + +#~ msgid "" +#~ "Plugins add extra features to gedit. For more " +#~ "information on plugins and how to use the built-in plugins, see ." +#~ msgstr "" +#~ "通过插件给 gedit 添加扩展特性。更多相关信息,请" +#~ "参阅:。" + +#~ msgid "" +#~ "To enable a gedit plugin, perform the " +#~ "following steps:" +#~ msgstr "" +#~ "要启用一个 gedit 插件,请安下面的步骤操作:" + +#~ msgid "" +#~ "Choose EditPreferences." +#~ msgstr "" +#~ "点菜单 编辑首选项。" + +#~ msgid "Select the Plugins tab." +#~ msgstr "点击 插件 标签。" + +#~ msgid "" +#~ "Click Close to close the Preferences dialog." +#~ msgstr "" +#~ "点 关闭 按钮,关闭 首选项 对话" +#~ "框。" + +#~ msgid "Disabling a Plugin" +#~ msgstr "禁用一个插件" + +#~ msgid "" +#~ "A plugin remains enabled when you quit gedit." +#~ msgstr "当您退出了 gedit,但插件仍保持启用状态。" + +#~ msgid "" +#~ "To disable a gedit plugin, perform the " +#~ "following steps:" +#~ msgstr "" +#~ "要禁用一个 gedit 插件,请按下面的步骤操作:" + +#~ msgid "" +#~ "Deselect the check box next to the name of the plugin that you want to " +#~ "disable." +#~ msgstr "不选中插件名称旁边的复选框,就可以禁用它。" + +#~ msgid "Plugins" +#~ msgstr "插件" + +#~ msgid "Working with Plugins" +#~ msgstr "使用插件" + +#~ msgid "" +#~ "You can add extra features to gedit by " +#~ "enabling plugins. A plugin is a supplementary " +#~ "program that enhances the functionality of an application. Plugins add " +#~ "new items to the gedit menus for the new " +#~ "features they provide." +#~ msgstr "" +#~ "您可以通过启用 插件gedit 添加扩展特性。插件是一个额外的小程序,可以增强应用程序的功" +#~ "能。插件会在 gedit 中增加新的菜单项,提供新的特" +#~ "性。" + +#~ msgid "" +#~ "Several plugins come built-in with gedit, and " +#~ "you can install more. The gedit website lists third-party plugins." +#~ msgstr "" +#~ "gedit 内置了一些插件,您也可以安装更多,gedit website 中,列出了第三方开发的插件。" + +#~ msgid "" +#~ "To enable and disable plugins, or see which plugins are currently " +#~ "enabled, use the Plugins " +#~ "Preferences." +#~ msgstr "" +#~ "要启用或禁用一个插件,或者查看当前启用了哪些插件,请使用 插件选项。" + +#~ msgid "" +#~ "Change Case allows you to change the case of the selected text." +#~ msgstr "" +#~ "改变大小写 允许您更改选中文本的大小写。" + +#~ msgid "" +#~ "Document " +#~ "Statistics shows the number of lines, words, and " +#~ "characters in the document." +#~ msgstr "" +#~ "文档统计 显示文档的行数、单词数和字符数。" + +#~ msgid "" +#~ "External " +#~ "Tools allows you to execute external commands from " +#~ "gedit." +#~ msgstr "" +#~ "外部工具 允许您在 gedit 中激活外部的" +#~ "命令。" + +#~ msgid "" +#~ "File Browser allows you to browse your files " +#~ "and folders in the side pane." +#~ msgstr "" +#~ "文件浏览器 允许您在侧边栏浏览文件和文件夹。" + +#~ msgid "" +#~ "Indent Lines adds or removes indentation from the selected lines." +#~ msgstr "" +#~ "行缩进 为选中的行添加或清除缩进。" + +#~ msgid "" +#~ "Insert Date/" +#~ "Time adds the current date and time into a document." +#~ msgstr "" +#~ "插入日期/时间" +#~ " 在文档中插入当前的日期和时间。" + +#~ msgid "" +#~ "Modelines allows you to set editing preferences for individual " +#~ "documents, and supports Emacs, " +#~ "Kate and Vim-style " +#~ "modelines." +#~ msgstr "" +#~ "Modelines 允许您为特殊的文档设置编辑器选项,支持 EmacsKateVim 风格的 modelines。" + +#~ msgid "" +#~ "Python " +#~ "Console allows you to run commands in the python " +#~ "programming language." +#~ msgstr "" +#~ "Python 控制台 运行您在 python 编程语言中运行命令。" + +#~ msgid "" +#~ "Snippets allows you to store frequently-used pieces of text and " +#~ "insert them quickly into a document." +#~ msgstr "" +#~ "片段 允许您存储常用的文本片段,并快速插入到文档中。" + +#~ msgid "" +#~ "Sort arranges selected lines of text into alphabetical order." +#~ msgstr "" +#~ "排序 按字母顺序排列选定的行。" + +#~ msgid "" +#~ "Spell Checker corrects the spelling in the selected text, or marks " +#~ "errors automatically in the document." +#~ msgstr "" +#~ "拼写检查 检查选定文本的拼写正确性,或者标记文档中的错误。" + +#~ msgid "" +#~ "Tag List lets you insert commonly-used tags for HTML and other " +#~ "languages from a list in the side pane." +#~ msgstr "" +#~ "标记列表 允许您从侧栏中插入常用的 HTML 或其他语言标记。" + +#~ msgid "Change Case Plugin" +#~ msgstr "更改大小写插件" + +#~ msgid "" +#~ "The Change Case plugin changes the case of the " +#~ "selected text." +#~ msgstr "" +#~ "更改大小写 插件更改选中文本的大小写状态。" + +#~ msgid "" +#~ "The following items are added to the Edit menu when " +#~ "the Change Case plugin is enabled:" +#~ msgstr "" +#~ "当 改变大小写 插件启用后,下面的项将添加到 " +#~ "编辑 菜单:" + +#~ msgid "Menu Item" +#~ msgstr "菜单项" + +#~ msgid "Example" +#~ msgstr "举例" + +#~ msgid "All Upper Case" +#~ msgstr "全部大写字母" + +#~ msgid "Change each character to uppercase." +#~ msgstr "把字符都改成大写字母。" + +#~ msgid "This text becomes THIS TEXT" +#~ msgstr "This text 将变成 THIS TEXT" + +#~ msgid "All Lower Case" +#~ msgstr "全部小写字母" + +#~ msgid "Change each character to lowercase." +#~ msgstr "把字符都改成小写字母。" + +#~ msgid "This Text becomes this text" +#~ msgstr "This Text 将变成 this text" + +#~ msgid "Invert Case" +#~ msgstr "反转大小写" + +#~ msgid "This Text becomes tHIS tEXT" +#~ msgstr "This Text 将变成 tHIS tEXT" + +#~ msgid "Title Case" +#~ msgstr "字首大写" + +#~ msgid "Change the first character of each word to uppercase." +#~ msgstr "每个单词的第一个字母改成大写。" + +#~ msgid "this text becomes This Text" +#~ msgstr "this text 将变成 This Text" + +#~ msgid "Document Statistics Plugin" +#~ msgstr "文档统计插件" + +#~ msgid "" +#~ "The Document Statistics plugin counts the " +#~ "number of lines, words, characters with spaces, characters without " +#~ "spaces, and bytes in the current file. The plugin displays the results in " +#~ "a Document Statistics dialog. To use the Document " +#~ "Statistics plugin, perform the following steps:" +#~ msgstr "" +#~ "文档统计插件 统计当前文件的行数、单词数、字数" +#~ "(含空格)、字数(不含空格)、字节数。该插件将结果显示在一个文档统计" +#~ "信息 对话框中。 要使用文档统计插件,请按以下步骤操作:" + +#~ msgid "" +#~ "Choose ToolsDocument " +#~ "Statistics to display the Document " +#~ "Statistics dialog. The Document Statistics dialog displays the following information about the file:" +#~ msgstr "" +#~ "点菜单 工具文档统计,出来一个 文档统计信息 对话" +#~ "框。文档统计信息 对话框显示文件的以下信息:" + +#~ msgid "Number of characters, including spaces, in the current document." +#~ msgstr "当前文档中的字符数(包括空格)。" + +#~ msgid "Number of characters, not including spaces, in the current document." +#~ msgstr "当前文档中的字符数(不包括空格)。" + +#~ msgid "Number of bytes in the current document." +#~ msgstr "当前文档中的字节数。" + +#~ msgid "" +#~ "You can continue to update the gedit file " +#~ "while the Document Statistics dialog is open. To " +#~ "refresh the contents of the Document Statistics " +#~ "dialog, click Update." +#~ msgstr "" +#~ "在 文档统计信息 对话框打开时,您可以继续在 " +#~ "gedit 里编辑文件。 要刷新 文档统计信" +#~ "息 对话框的内容,点击 更新 按钮。" + +#~ msgid "" +#~ "The External Tools plugin allows you to " +#~ "execute external commands from gedit. You can " +#~ "pipe some content into a command and exploit its output (for example, " +#~ "sed), or launch a predefined command (for " +#~ "example, make)." +#~ msgstr "" +#~ "The External Tools 允许您在 " +#~ "gedit 中运行外部命令。您可以通过管道命令来编辑" +#~ "它们的输出(例如 sed),或者启动一个预编译命令" +#~ "(如 make)。" + +#~ msgid "" +#~ "Use the External Tools Manager to create and edit " +#~ "commands. To run an external command, choose it from the Tools menu." +#~ msgstr "" +#~ "使用 外部工具管理器 来创建和编辑命令。要运行一个外部" +#~ "命令,点 工具 菜单。" + +#~ msgid "Built-in Commands" +#~ msgstr "内置命令" + +#~ msgid "" +#~ "The following commands are provided with the External Tools plugin:" +#~ msgstr "下面的命令由 外部工具 插件提供:" + +#~ msgid "Build" +#~ msgstr "Build" + +#~ msgid "" +#~ "Runs make in the current document's directory." +#~ msgstr "在当前文档的文件夹下,运行 make 命令。" + +#~ msgid "Directory Listing" +#~ msgstr "列出文件夹" + +#~ msgid "" +#~ "Lists the contents of the current document's directory in a new document." +#~ msgstr "在一个新文档中,列出当前文件夹的内容。" + +#~ msgid "Environment Variables" +#~ msgstr "环境变量" + +#~ msgid "Displays the environment variables list in the bottom pane." +#~ msgstr "在底部面板显示环境变量。" + +#~ msgid "Grep" +#~ msgstr "Grep" + +#~ msgid "" +#~ "Searches for a term in all files in the current document directory, using " +#~ "pattern matching. Results are shown in the bottom pane." +#~ msgstr "" +#~ "使用匹配模式,在当前文件夹中的全部文件中搜索匹配项。结果显示在底部面板。" + +#~ msgid "Removes all spaces from the end of lines in the document." +#~ msgstr "删除文档中每一行的尾部空格。" + +#~ msgid "Defining a Command" +#~ msgstr "定义一个命令" + +#~ msgid "" +#~ "To add an external command, choose ToolsExternal Tools." +#~ msgstr "" +#~ "要添加一个外部命令,点菜单 工具外部工具。" + +#~ msgid "" +#~ "In the External Tools Manager window, click " +#~ "New. You can speficy the following details for the " +#~ "new command:" +#~ msgstr "" +#~ "在 外部工具管理器 窗口中,点 新建。您可以指定命令的下面内容细节:" + +#~ msgid "Description" +#~ msgstr "说明" + +#~ msgid "" +#~ "This description is shown in the statusbar when the menu command is " +#~ "chosen." +#~ msgstr "当选中菜单命令时,这个描述将显示在状态栏。" + +#~ msgid "Accelerator" +#~ msgstr "快捷键" + +#~ msgid "Enter a keyboard shortcut for the command." +#~ msgstr "输入此命令的快捷键。" + +#~ msgid "Commands" +#~ msgstr "命令" + +#~ msgid "" +#~ "The actual commands to be run. Several gedit " +#~ "environment variables can be used to pass content to these commands: see " +#~ "." +#~ msgstr "" +#~ "要运行的命令。一些 gedit 环境变量可以传递给命" +#~ "令,请参阅 。" + +#~ msgid "Input" +#~ msgstr "输入" + +#~ msgid "" +#~ "The content to give to the commands (as stdin): " +#~ "the entire text of the current document, the current selection, line, or " +#~ "word." +#~ msgstr "" +#~ "这个内容将传递给命令(像 stdin):当前文档的全部文" +#~ "本、段、行或词。" + +#~ msgid "Output" +#~ msgstr "输出窗口" + +#~ msgid "" +#~ "What to do with the output of the commands: display in the bottom pane, " +#~ "put in a new document, or place in the current document, at the end, at " +#~ "the cursor position, or replacing the selection or the entire document." +#~ msgstr "" +#~ "输出这个命令做了什么:显示在底部面板、放入一个新文档,或者放到当前文档,放" +#~ "在文档尾部、光标位置,或者替换这一段、替换整个文档。" + +#~ msgid "Applicability" +#~ msgstr "适用性" + +#~ msgid "" +#~ "Determines which sort of documents can be affected by the command, for " +#~ "example whether saved or not, and local or remote." +#~ msgstr "确定哪一类文档会被这个命令影响,例如是否保存,本地还是远程。" + +#~ msgid "Editing and Removing Tools" +#~ msgstr "编辑和删除工具" + +#~ msgid "" +#~ "To edit a tool, select it in the list and make changes to its properties." +#~ msgstr "要编辑一个工具,在列表中选中它,然后更改它的属性。" + +#~ msgid "To rename a tool, click it again in the list." +#~ msgstr "要重命名一个工具,在列表中再点击它一次。" + +#~ msgid "" +#~ "To restore a built-in tool that you have changed, press Revert." +#~ msgstr "要恢复您已经改变了的内置工具,点 还原/guilabel> 按钮。" + +#~ msgid "" +#~ "To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have " +#~ "created yourself." +#~ msgstr "" +#~ "要删除一个工具,在列表中选中它,然后点 删除。您不能" +#~ "删除内置的工具,只能删除您自己创建的工具。" + +#~ msgid "Variables" +#~ msgstr "变量" + +#~ msgid "" +#~ "You can use the following variables in the Commands " +#~ "field of the command definition:" +#~ msgstr "在 命令 文本框中,您可以使用下面的变量:" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_URI" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_URI" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_NAME" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_NAME" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_SCHEME" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_SCHEME" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_PATH" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_PATH" + +#~ msgid "GEDIT_CURRENT_DOCUMENT_DIR" +#~ msgstr "GEDIT_CURRENT_DOCUMENT_DIR" + +#~ msgid "GEDIT_DOCUMENTS_URI" +#~ msgstr "GEDIT_DOCUMENTS_URI" + +#~ msgid "GEDIT_DOCUMENTS_PATH" +#~ msgstr "GEDIT_DOCUMENTS_PATH" + +#~ msgid "" +#~ "The File Browser Plugin shows your files and " +#~ "folders in the side pane, allowing you to quickly open files." +#~ msgstr "" +#~ "文件浏览器 插件,在侧栏中显示您的文件和文件夹," +#~ "允许你快速打开文件。" + +#~ msgid "Browsing your Files" +#~ msgstr "浏览文件" + +#~ msgid "" +#~ "The File Browser tab initially shows your file manager bookmarks. To " +#~ "browse the contents of any item, double-click it." +#~ msgstr "" +#~ "文件浏览器标签开始只显示文件管理器书签。要浏览每一项的内容,在标签上双击。" + +#~ msgid "" +#~ "To show a parent folder, choose from the drop-down list, or press the up " +#~ "arrow on the File Browser's toolbar." +#~ msgstr "" +#~ "要显示上一级父目录,在下拉列表中选择,或者点文件管理器工具栏的向上箭头。" + +#~ msgid "" +#~ "To show the folder that contains the document you are currently working " +#~ "on, right-click in the file list and choose Set root to " +#~ "active document." +#~ msgstr "" +#~ "要显示您当前工作的文件夹中包含的内容,在文件列表中点右键,选 " +#~ "当前文件夹设定为根目录。" + +#~ msgid "" +#~ "To open a file in gedit, double-click it in " +#~ "the file list." +#~ msgstr "" +#~ "要在 gedit 里打开一个文件,在文件列表中双击它。" + +#~ msgid "Creating Files and Folders" +#~ msgstr "创建文件和文件夹" + +#~ msgid "" +#~ "To create a new, empty text file in the current folder shown in the " +#~ "browser, right-click in the file list and choose New File." +#~ msgstr "" +#~ "要在当前文件夹中创建一个新的空文本文件,在文件列表里点右键,选 " +#~ "新建文件。" + +#~ msgid "" +#~ "To create a new folder in the current folder shown in the browser, right-" +#~ "click in the file list and choose New Folder." +#~ msgstr "" +#~ "要在当前文件夹中创建一个新的文件夹,在文件列表里点右键,选 新" +#~ "建文件夹。" + +#~ msgid "Indent Lines Plugin" +#~ msgstr "缩进行插件" + +#~ msgid "" +#~ "The Indent Lines plugin adds or removes space " +#~ "from the beginning of lines of text." +#~ msgstr "" +#~ "缩进行 插件,在行的开头添加或清除空白缩进。" + +#~ msgid "To indent or unindent text, perform the following steps:" +#~ msgstr "要对文本使用缩进或取消缩进,请按下面的步骤操作:" + +#~ msgid "" +#~ "To indent the text, choose EditIndent." +#~ msgstr "" +#~ "要缩进文本,点菜单 编辑缩进。" + +#~ msgid "" +#~ "To remove the indentation, choose EditUnindent." +#~ msgstr "" +#~ "要取消缩进,点菜单 编辑取消缩" +#~ "进。" + +#~ msgid "" +#~ "The amount of space used, and whether tab character or space characters " +#~ "are used, depends on the Tab Stops settings in the " +#~ "Editor Preferences: see ." +#~ msgstr "" +#~ "空白的数量,或者是否使用 Tab 制表符,使用空格字符,取决于编辑器首选项中的 " +#~ "制表符 设置,请参阅:。" + +#~ msgid "Insert Date/Time Plugin" +#~ msgstr "插入日期/时间插件" + +#~ msgid "" +#~ "The Insert Date/Time plugin inserts the " +#~ "current date and time into a document. To use the Insert Date/Time " +#~ "plugin, perform the following steps:" +#~ msgstr "" +#~ "插入日期/时间 插件可以在文档中插入当前的日期和" +#~ "时间。 要使用插入日期/时间插件,请按以下步骤操作:" + +#~ msgid "" +#~ "Choose EditInsert Date and " +#~ "Time." +#~ msgstr "" +#~ "点菜单 编辑插入日期和时间。" + +#~ msgid "" +#~ "If you have not configured the Insert Date/Time plugin to automatically " +#~ "insert the date/time without prompting you for the format, " +#~ "gedit displays the Insert Date and " +#~ "Time dialog. Select the appropriate date/time format from the " +#~ "list. Click Insert to close the Insert " +#~ "Date and Time dialog. gedit inserts " +#~ "the date/time at the cursor position in the current file." +#~ msgstr "" +#~ "如果您还没配置“插入日期/时间”插件配置为不提示格式自动插入方式," +#~ "gedit 将显示< guilabel>插入日期和时间 对话框。在列表中选择合适的日期/时间格式。单击 插入,关闭 插入日期和时间 对话框;" +#~ "gedit 将在光标的位置插入日期/时间。" + +#~ msgid "" +#~ "If you have configured gedit to use one " +#~ "particular date/time format, the Insert Date and Time dialog is not displayed. The date/time is automatically entered " +#~ "at the cursor position in the current file." +#~ msgstr "" +#~ "如果您已经配置了 gedit 使用一种指定的日期/时间" +#~ "格式,就不会显示插入日期和时间 对话框,在当前光标位置" +#~ "处自动插入日期/时间。" + +#~ msgid "Configuring the Insert Date/Time Plugin" +#~ msgstr "配置插入日期/时间插件" + +#~ msgid "" +#~ "To configure the Insert Date/Time plugin, perform the following steps:" +#~ msgstr "要配置插入日期/时间插件,请执行以下步骤:" + +#~ msgid "Select the Insert Date/Time plugin." +#~ msgstr "选择 插入日期/时间插件。" + +#~ msgid "" +#~ "Click Configure Plugin to display the " +#~ "Configure insert date/time plugin dialog." +#~ msgstr "" +#~ "点 配置插件 按钮,出来一个 配置插入日期/" +#~ "时间插件 对话框。" + +#~ msgid "Select one of the options, as follows:" +#~ msgstr "如下所述,选择其中一个选项:" + +#~ msgid "" +#~ "To specify the date/time format each time you insert the date/time, " +#~ "select the Prompt for a format option." +#~ msgstr "" +#~ "要在每次插入日期/时间时,都指定日期/时间的格式,请选择 提示输入" +#~ "格式 选项。" + +#~ msgid "" +#~ "To use the same gedit-provided date/time " +#~ "format each time you insert the date/time, select the Use the " +#~ "selected format option, then select the appropriate format " +#~ "from the list. When you select this option, gedit does not prompt you for the date/time format when you choose " +#~ "EditInsert Date and Time." +#~ msgstr "" +#~ "要在每次插入日期/时间时使用 gedit 提供的同一日" +#~ "期/时间格式,请选择 使用选定的格式 选项,然后从列表中" +#~ "选择合适的格式。选择此选项后,gedit 便不会在您" +#~ "点 编辑插入日期和时间 时提示您输入日期/时间格式。" + +#~ msgid "" +#~ "To use the same customized date/time format each time you insert the date/" +#~ "time, select the Use custom format option, then " +#~ "enter the appropriate format in the text box. For more information about " +#~ "how to specify a custom format, see strftime3. When you select this option, " +#~ "gedit does not prompt you for the date/time " +#~ "format when you choose EditInsert Date and Time." +#~ msgstr "" +#~ "要在每次插入日期/时间时使用同一定制日期/时间格式,请选择 使用定" +#~ "制格式 选项,然后在文本框中输入合适的格式。有关如何指定定制格式" +#~ "的更多信息,请参阅 strftime3。选择此选项后,gedit 便不会在您点 编辑" +#~ "插入日期和时间 时提示您输入日期/时间格式。" + +#~ msgid "" +#~ "Click OK to close the Configure insert " +#~ "date/time plugin dialog." +#~ msgstr "" +#~ "单击 确定,关闭 配置插入日期/时间插件 对话框。" + +#~ msgid "Modelines Plugin" +#~ msgstr "Modelines 插件" + +#~ msgid "" +#~ "The Modelines plugin allows you to set " +#~ "preferences for individual documents. A modeline " +#~ "is a line of text at the start or end of the document with settings that " +#~ "gedit recognises." +#~ msgstr "" +#~ "Modelines 允许您为特殊的文档设置选项。" +#~ "modeline 是在文档开头或结束的一行文本,可以由 " +#~ "gedit 识别。" + +#~ msgid "You can set the following preferences with modelines:" +#~ msgstr "您可以用 modelines 设定下面的选项:" + +#~ msgid "" +#~ "The Modelines plugin supports a subset of the " +#~ "options used by other text editors Emacs, " +#~ "Kate and Vim." +#~ msgstr "" +#~ "Modelines 支持其他文本编辑器的子选项,像 " +#~ "EmacsKate 和 " +#~ "Vim。" + +#~ msgid "" +#~ "The Emacs options for tab-width, indent-" +#~ "offset, indent-tabs-mode and autowrap are supported. For more " +#~ "information, see the GNU Emacs Manual." +#~ msgstr "" +#~ "支持 Emacs 的制表符宽度、缩进量、缩进模式和自动" +#~ "换行。更多相关信息,请参阅:GNU Emacs 手册。" + +#~ msgid "" +#~ "The Kate options for tab-width, indent-width, " +#~ "space-indent, word-wrap and word-wrap-column are supported. For more " +#~ "information, see the Kate website." +#~ msgstr "" +#~ "支持 Emacs 的制表符宽度、缩进量、空格缩进、单词" +#~ "换行和单词列换行。更多相关信息,请参阅: Kate 网站。" + +#~ msgid "" +#~ "The Vim options for et, expandtab, ts, " +#~ "tabstop, sw, shiftwidth, wrap, and textwidth are supported. For more " +#~ "information, see the Vim website." +#~ msgstr "" +#~ "支持 Emacs 的 et、expandtab、ts、tabstop、sw、" +#~ "shiftwidth、wrap 和 textwidth。更多相关信息,请参阅:Vim 网" +#~ "站。" + +#~ msgid "" +#~ "The Python Console Plugin allows you to run " +#~ "commands in the python programming language from gedit. Enabling the plugin adds a tab to the bottom pane. This " +#~ "shows recent output and a command prompt field." +#~ msgstr "" +#~ "Python 控制台 插件允许您在 gedit 中运行 python 编程语言中命令。启用该插件会在底部栏添加一个标" +#~ "签。显示最近输出结果和命令提示符域。" + +#~ msgid "" +#~ "Commands entered into the python console are not checked before they are " +#~ "run. It is therefore possible to hang gedit, " +#~ "for example by entering an infinite loop." +#~ msgstr "" +#~ "命令进入 python 控制台运行前并不检查。因而它可能导致 gedit 挂起,例如输入了一个无限循环。" + +#~ msgid "" +#~ "The Snippets plugin allows you to store " +#~ "frequently-used pieces of text, called snippets, " +#~ "and insert them quickly into a document." +#~ msgstr "" +#~ "片段 插件,允许您存储常用的文本片段,称作" +#~ "片段,可以很方便地插入文档中。" + +#~ msgid "" +#~ "Snippets are specific to the language syntax of the current document. For " +#~ "example, when you are working with an HTML document, you can choose from " +#~ "a list of snippets that are useful for HTML. In addition, some snippets " +#~ "are global, and are available in all documents." +#~ msgstr "" +#~ "片段指定到了当前语言格式。例如,当您在 HTML 下操作,您可以从片段列表中选择" +#~ "有用的 HTML 片段。另外,一些片段是全局的,可用于所有的文档。" + +#~ msgid "" +#~ "A number of built-in snippets are installed with gedit, which can be modified." +#~ msgstr "gedit 提供了许多内置的片段,可以被设置。" + +#~ msgid "" +#~ "To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is " +#~ "usually the first few letters of the snippet, or something else that is " +#~ "short and easy to remember." +#~ msgstr "" +#~ "要在文档中插入一个片段,输入它的 Tab 触发器,然后" +#~ "按 Tab。片段触发器通常是片段的开头几个字符,或者是一些其" +#~ "他短的好记的字符。" + +#~ msgid "" +#~ "Alternatively, press CtrlSpace to see a list of snippets you can insert." +#~ msgstr "" +#~ "另外,按 CtrlSpace " +#~ "键,查看您可以使用的片段列表。" + +#~ msgid "" +#~ "Choose ToolsManage Snippets. The Snippets Manager " +#~ "window opens." +#~ msgstr "" +#~ "点菜单 工具管理片段,出来一个 片段管理器 窗口。" + +#~ msgid "" +#~ "The list of snippets is grouped by language. Select the language you want " +#~ "to add a snippet to, or a snippet in that language group. To add a " +#~ "snippet for all languages, choose Global at the top of the list. The " +#~ "syntax of the document you are currently working with is shown by default." +#~ msgstr "" +#~ "片段列表按语言分组。选择您想添加片段的语言,或者那个语言的片段组。要为所有" +#~ "语言添加片段,点列表顶部的全局。默认显示您当前编辑文档的格式。" + +#~ msgid "Click New. A new snippet appears in the list." +#~ msgstr "点 新建,列表中出来一个新的片段。" + +#~ msgid "Enter the following information for the new snippet:" +#~ msgstr "为新片段输入下面的信息:" + +#~ msgid "Name" +#~ msgstr "名称" + +#~ msgid "" +#~ "Enter a name for the snippet in the text field within the snippet list. " +#~ "The name of a snippet serves only as a reminder of its purpose. You can " +#~ "change name of a snippet you create by clicking on it in the list." +#~ msgstr "" +#~ "在文本框中输入片段的名称。片段名称仅仅是它作用的提示。您可以通过点击它来改" +#~ "变名称。" + +#~ msgid "" +#~ "Enter the text of the snippet in the Edit snippet " +#~ "text box. For special codes you can use, see ." +#~ msgstr "" +#~ "在编辑片段 文本框中,输入片段的内容。您可以使用特殊代" +#~ "码,请参阅:。" + +#~ msgid "" +#~ "You can switch back to the document window to copy text without closing " +#~ "the Snippets Manager window." +#~ msgstr "" +#~ "您可以切换到文档窗口,复制里面的文本,而不需要关闭 片段管理器 窗口。" + +#~ msgid "Tab Trigger" +#~ msgstr "Tab 触发器" + +#~ msgid "" +#~ "Enter the tab trigger for the snippet. This is the text that you type " +#~ "before pressing Tab to insert the snippet." +#~ msgstr "" +#~ "为片段输入标记触发器。这个文本是您输入后按 Tab 键,就会插" +#~ "入片段。" + +#~ msgid "" +#~ "The tag must be either a single word comprising only letters, or any " +#~ "single character. The Tab trigger will highlight in " +#~ "red if an invalid tab trigger is entered." +#~ msgstr "" +#~ "标记必须是单个由字母组成的词,或者是单个字符。Tab 触发器 会用红色高亮显示,表示输入了一个触发器。" + +#~ msgid "Type a shortcut key to use for inserting the snippet." +#~ msgstr "输入用来插入片段的快捷键。" + +#~ msgid "" +#~ "To edit a snippet, select it in the list and make changes to its text and " +#~ "activation properties." +#~ msgstr "要编辑一个片段,在列表中选中它,然后更改它的文本和激活属性。" + +#~ msgid "To rename a snippet, click it again in the list." +#~ msgstr "要重命名一个片段,在列表中再次点击它。" + +#~ msgid "" +#~ "To restore a built-in snippet that you have changed, press " +#~ "Revert." +#~ msgstr "要恢复您更改了的内置片段,点 复原 按钮。" + +#~ msgid "" +#~ "To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have " +#~ "created yourself." +#~ msgstr "" +#~ "要删除一个片段,在列表中选中它,然后点 删除。您不能" +#~ "删除内置的片段,只能删除您自己创建的片段。" + +#~ msgid "Snippet Substitutions" +#~ msgstr "替代片段" + +#~ msgid "" +#~ "In addition to inserting stored text, a snippet can include customizable " +#~ "text, or mark spaces where you can add text once the snippet is inserted " +#~ "in your document." +#~ msgstr "" +#~ "除了插入已经存储的文本,片段可以包括自定义文本,或者标记空格,您可以添加自" +#~ "己文本。" + +#~ msgid "You can use the following placeholder codes in snippet text:" +#~ msgstr "您可以在片段文本中使用下面的占位符代码:" + +#~ msgid "Tab placeholders" +#~ msgstr "Tab 占位符" + +#~ msgid "" +#~ "$n defines a tab " +#~ "placeholder, where n is any number from 1 upwards." +#~ msgstr "" +#~ "$n 定义一个 tab 占位符," +#~ "n 是从 1 开始的数字。" + +#~ msgid "" +#~ "${n:default} defines a tab placeholder with a default value." +#~ msgstr "" +#~ "${n:default} 用默认值定义一个 tab 占位符。" + +#~ msgid "" +#~ "A tab placeholder marks a place in the snippet text where you can add " +#~ "extra text after the snippet is inserted." +#~ msgstr "" +#~ "tab 占位符在片段文本中标记一个区域,您可以在插入片段后添加额外的文本。" + +#~ msgid "" +#~ "To use tab placeholders, insert the snippet as normal. The cursor is " +#~ "placed at the first tab placeholder. Type text, and press Tab to advance to the next tab placeholder. The number in the " +#~ "placeholder code defines the order in which tab advances to each place in " +#~ "the text." +#~ msgstr "" +#~ "要使用 tab 占位符,像平常一样插入片段。光标定位于第一个 tab 占位符。输入文" +#~ "本,然后按 Tab 到下一个 tab 占位符。占位符的序号定义了在" +#~ "文本中各个 tab 的位置。" + +#~ msgid "" +#~ "Press ShiftTab to " +#~ "return to the previous tab placeholder. Pressing Tab " +#~ "when there are no more tab placeholders moves the cursor to the end of " +#~ "the snippet text, or to the end placeholder if it exists." +#~ msgstr "" +#~ "按 ShiftTab 返回到" +#~ "上一个 tab 占位符。当再没有占位符时,按 Tab 键结束片段," +#~ "或者到最后一个占位符,如果它存在的话。" + +#~ msgid "Mirror placeholders" +#~ msgstr "Mirror 占位符" + +#~ msgid "" +#~ "A repeated tab placeholder will mirror the placeholder already defined. " +#~ "This allows you to type in text only once that you want to appear several " +#~ "times in the snippet." +#~ msgstr "" +#~ "重复 tab 占位符,将会映像已经定义的占位符。这就可以让您输入一次而重复多次" +#~ "这个片段。" + +#~ msgid "End placeholder" +#~ msgstr "End 占位符" + +#~ msgid "" +#~ "$0 defines the end placeholder. This allows you to " +#~ "finish working with the snippet with the cursor at a point other than the " +#~ "end of the snippet text." +#~ msgstr "" +#~ "$0 定义最后占位符。这就允许您完成片段操作,而不是光标停" +#~ "在最后一个片段文本。" + +#~ msgid "Environmental variables" +#~ msgstr "环境变量" + +#~ msgid "" +#~ "Environmental variable such as $PATH and " +#~ "$HOME are substituted in snippet text. The following variables " +#~ "specific to gedit can also be used:" +#~ msgstr "" +#~ "环境变量是指像 $PATH$HOME,可以" +#~ "在片段中替代。下面的变量可以在 gedit 中使用:" + +#~ msgid "$GEDIT_SELECTED_TEXT" +#~ msgstr "$GEDIT_SELECTED_TEXT" + +#~ msgid "$GEDIT_FILENAME" +#~ msgstr "$GEDIT_FILENAME" + +#~ msgid "" +#~ "The full filename of the document, or an empty string if the document " +#~ "isn't saved yet." +#~ msgstr "文档的完整名称,对于还没有保存的问道,是一个空字符串。" + +#~ msgid "$GEDIT_BASENAME" +#~ msgstr "$GEDIT_BASENAME" + +#~ msgid "" +#~ "The basename of the filename of the document, or an empty string if the " +#~ "document isn't saved yet." +#~ msgstr "文档文件名的基本名,对于还没保存的文档,是一个空字符串。" + +#~ msgid "$GEDIT_CURRENT_WORD" +#~ msgstr "$GEDIT_CURRENT_WORD" + +#~ msgid "" +#~ "The word at the cursor's location in the document. When this variable is " +#~ "used, the current word will be replaced by the snippet text." +#~ msgstr "文档里光标所在位置的词。当使用这个变量时,当前词将会被片段替代。" + +#~ msgid "Shell placeholders" +#~ msgstr "Shell 占位符" + +#~ msgid "" +#~ "$(cmd) is replaced by the " +#~ "result of executing cmd in a shell." +#~ msgstr "" +#~ "$(cmd) 会被 shell 里运行的 " +#~ "cmd 结果替换。" + +#~ msgid "" +#~ "$(n:cmd) allows you to give this placeholder a reference, where " +#~ "n is any number from 1 upwards. Use " +#~ "$n to use the output from one shell " +#~ "placeholder as input in another." +#~ msgstr "" +#~ "$(n:cmd) 允许您给这个占位符一个索引,这儿的 n " +#~ "是一个从 1 开始的数字。使用 $n,用一个 shell 的输出,作为另一个的输入。" + +#~ msgid "Python placeholders" +#~ msgstr "Python 占位符" + +#~ msgid "" +#~ "$<cmd> is replaced by " +#~ "the result of evaluating cmd in the python " +#~ "interpreter." +#~ msgstr "" +#~ "$<cmd> 在 python 解释" +#~ "器里,用结果值来替换。" + +#~ msgid "" +#~ "$<a:cmd> specifies another python placeholder as a " +#~ "dependency, where a gives its order in the " +#~ "snippet. This allows you to use python functions defined in another " +#~ "snippet. To specify several dependencies, separate the numbers with " +#~ "commas thus: $<a,b:cmd>" +#~ msgstr "" +#~ "$<a:cmd> 指定另一个 python 占位符作为附属," +#~ "a 给出它在片段里的顺序。这就允许您在另一个片段" +#~ "里使用 python 的功能定义。要指定几个附属,用逗号分隔开: $<" +#~ "a,b:" +#~ "cmd>" + +#~ msgid "" +#~ "To use a variable in all other python snippets, declare it as " +#~ "global." +#~ msgstr "" +#~ "要在所有 python 片段里使用变量,用 global 声明它。" + +#~ msgid "" +#~ "Choose EditSort. The Sort dialog opens." +#~ msgstr "" +#~ "点菜单 编辑排序,出来一个 排序 对话框。" + +#~ msgid "" +#~ "To arrange the text in reverse order, select Reverse order." +#~ msgstr "要按反向顺序排列文本,选中 逆序顺序 选项。" + +#~ msgid "" +#~ "To delete duplicate lines, select Remove duplicates." +#~ msgstr "要删除重复的行,选中 删除重复内容 选项。" + +#~ msgid "To ignore case sensitivity, select Ignore case." +#~ msgstr "要忽略大小写,选中 忽略大小写 选项。" + +#~ msgid "Spell Checker Plugin" +#~ msgstr "拼写检查插件" + +#~ msgid "" +#~ "The Spell Checker plugin checks the spelling " +#~ "in the selected text. You can configure gedit " +#~ "to check the spelling automatically, or you can check the spelling " +#~ "manually, in the specified language. The language setting, and the " +#~ "autocheck spelling properties, apply per document. To use the Spell " +#~ "checker plugin, perform the following steps:" +#~ msgstr "" +#~ "拼写检查 检查选中文本的拼写。您可以在指定的语言" +#~ "里,配置 gedit 自动简单拼写,或者您可以手动检查" +#~ "拼写。语言设置、自动拼写检查属性,应用于每个文档。要使用拼写检查插件,请按" +#~ "下面的步骤操作:" + +#~ msgid "" +#~ "Choose ToolsSet Language to display the Set language dialog. Select the appropriate language from the list. Click " +#~ "OK to close the Set language " +#~ "dialog." +#~ msgstr "" +#~ "点菜单 工具设置语言,出来一个 设置语言 对话框。" +#~ "在列表中选择合适的语言,然后点 确定,关闭 " +#~ "设置语言 对话框。" + +#~ msgid "" +#~ "To check the spelling automatically, choose ToolsAutocheck Spelling. To " +#~ "unset the automatic spell check, choose ToolsAutocheck Spelling again. " +#~ "When automatic spell checking is set, an icon is displayed beside the " +#~ "Autocheck Spelling menu item. Automatic spell " +#~ "checking is unset by default, each time gedit " +#~ "starts." +#~ msgstr "" +#~ "要启用自动拼写检查,点菜单 工具自动检查拼写。要取消自动拼" +#~ "写检查,再次点 工具自动检查拼" +#~ "写。当启用自动拼写检查,在 自动检" +#~ "查拼写 菜单项旁边会出现一个图标。默认情况下,每次 " +#~ "gedit 启动时,不启用自动拼写检查。" + +#~ msgid "" +#~ "Unknown spellings are displayed in a different color, and underlined. " +#~ "Right-click on an unknown spelling, then select Spelling " +#~ "Suggestions from the popup menu:" +#~ msgstr "" +#~ "未知拼写的词会显示不同的颜色和带有下划线。在词语上点右键,然后从弹出菜单里" +#~ "选择 拼写建议:" + +#~ msgid "" +#~ "To replace the unknown spelling with another spelling in the list, select " +#~ "the replacement spelling from the Spelling Suggestions " +#~ "popup menu." +#~ msgstr "要替换未知拼写,从 拼写建议 菜单里选择一项。" + +#~ msgid "" +#~ "To add the unknown spelling to your personal dictionary, select " +#~ "Spelling SuggestionsAdd." +#~ msgstr "" +#~ "要添加未知拼写到您的个人字典,选择 拼写建议添加。" + +#~ msgid "" +#~ "To ignore all occurrences of the unknown spelling, so that they are no " +#~ "longer flagged as unknown but are not added to your personal dictionary, " +#~ "select Spelling SuggestionsIgnore All. The unknown " +#~ "word is ignored in the current gedit session " +#~ "only." +#~ msgstr "" +#~ "要忽略所有这个未知的拼写,以便它们不再显示未知拼写,但不添加到您的个人字典" +#~ "中,选择 拼写建议全部忽略。在当前 gedit 中会忽" +#~ "略所有这个未知的词。" + +#~ msgid "" +#~ "To check the spelling manually, choose ToolsCheck Spelling." +#~ msgstr "" +#~ "要手动进行拼写检查,点菜单 工具拼写检查。" + +#~ msgid "" +#~ "If there are no spelling errors, an Information " +#~ "dialog displays a message stating that the document does not contain " +#~ "misspelled words. Click OK to close the " +#~ "Information dialog." +#~ msgstr "" +#~ "如果这儿没有拼写错误,出来一个 信息 对话框,提示没有" +#~ "包含错误拼写。点 确定 关闭这个 信息 对话框。" + +#~ msgid "" +#~ "If there are spelling errors, the Check Spelling " +#~ "dialog is displayed:" +#~ msgstr "如果发现错误拼写,出来一个 检查拼写 对话框:" + +#~ msgid "" +#~ "The Misspelled word is displayed at the top of the " +#~ "dialog." +#~ msgstr "拼错的词 显示在对话框的顶部。" + +#~ msgid "" +#~ "A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by " +#~ "selecting a spelling from the Suggestions list, or " +#~ "you can enter text directly into the Change to text " +#~ "box." +#~ msgstr "" +#~ "一个建议的拼写会显示在 更改为 文本框里。您可以在 " +#~ "建议 里,选择其他词语来替换,或者您可以直接输入到 " +#~ "更改为 文本框里。" + +#~ msgid "" +#~ "To check the spelling of the text in the Change to " +#~ "text box, click Check Word. If this is a known " +#~ "word, the Suggestions list is replaced with the text " +#~ "(correct spelling). If the word is not known, new " +#~ "entries appear in the Suggestions list." +#~ msgstr "" +#~ "要检查 更改为 文本框里的拼写,点 检查单词" +#~ " 按钮。如果这是一个已知的词,建议 列表被" +#~ "这个词替换 (正确拼写)。如果这个词也未知,新的项出现在 " +#~ "建议 列表中。" + +#~ msgid "" +#~ "To ignore the current occurrence of the unknown word, click " +#~ "Ignore. To ignore all occurrences of the unknown " +#~ "word, click Ignore All. The unknown word is " +#~ "ignored in the current gedit session only." +#~ msgstr "" +#~ "要忽略当前的检查,点 忽略。要忽略所有这个未知词的检" +#~ "查,点 全部忽略。在当前 gedit 中不再对这个词检查。" + +#~ msgid "" +#~ "To change the current occurrence of the unknown word to the text in the " +#~ "Change to text box, click Change. To change all occurrences of the unknown word to the text in " +#~ "the Change to text box, click Change All." +#~ msgstr "" +#~ "要用 更改为 文本框里的词,替换当前检查的未知词,点 " +#~ "更改 按钮。要把所有这个未知词替换为 更改" +#~ "为 文本框里的词,点 全部更改。" + +#~ msgid "" +#~ "To add the unknown word to your personal dictionary, click Add " +#~ "word." +#~ msgstr "要添加未知单词到您的个人字典,点 添加单词。" + +#~ msgid "" +#~ "To close the Check Spelling dialog, click " +#~ "Close." +#~ msgstr "" +#~ "要关闭 拼写检查 对话框,点 关闭。" + +#~ msgid "Tag List Plugin" +#~ msgstr "标记列表插件" + +#~ msgid "" +#~ "The Tag List plugin allows you to insert " +#~ "common tags from a list in the side pane." +#~ msgstr "" +#~ "标记列表 插件,允许您从侧栏中插入通用标记。" + +#~ msgid "To use the Tag List plugin, perform the following steps:" +#~ msgstr "要使用标记列表插件,请按以下步骤操作:" + +#~ msgid "" +#~ "Choose ViewSide Pane." +#~ msgstr "" +#~ "点菜单 查看侧边栏。" + +#~ msgid "" +#~ "By default, the side pane shows a tab containing a list of open " +#~ "documents. Click on the tab showing a + icon at the bottom of the side " +#~ "pane to show the tag list tab." +#~ msgstr "" +#~ "默认情况下,侧边栏显示包含打开文档列表的标签。点击侧栏底部一个 + 图标的标" +#~ "签,显示标记列表。" + +#~ msgid "" +#~ "Select the appropriate tag category from the drop-down list. For example, " +#~ "HTML - Tags." +#~ msgstr "" +#~ "在下拉列表中选择合适的标记种类。例如,HTML - 标记。" + +#~ msgid "" +#~ "To insert a tag at the cursor position in the current file, double-click " +#~ "on the tag in the tag list. You can also insert a tag as follows:" +#~ msgstr "" +#~ "要在当前文件的光标位置插入标记,请双击标记列表中的标记。您也可以按照如下步" +#~ "骤插入标记:" + +#~ msgid "" +#~ "To insert a tag in the current file and change the focus from the side " +#~ "pane to the display area, press Return." +#~ msgstr "" +#~ "要在当前文件中插入标记,并将焦点从 标记列表 栏移到工" +#~ "作区,按一下 回车键。" + +#~ msgid "" +#~ "To insert a tag in the current file and maintain the focus on the " +#~ "Tag list plugin window, press " +#~ "ShiftReturn." +#~ msgstr "" +#~ "要在当前文件中插入标记,并将焦点仍保留在 标记列表 " +#~ "栏,按 Shift回车键。" + +#~ msgid "" +#~ "User Name inserts the username of the current user into the document." +#~ msgstr "" +#~ "用户名 在文档中插入当前用户名。" + +#~ msgid "User Name Plugin" +#~ msgstr "用户名插件" + +#~ msgid "" +#~ "The User name plugin inserts the username of " +#~ "the current user into the document." +#~ msgstr "" +#~ "用户名 插件,可以在文档中插入当前的用户名。" + +#~ msgid "" +#~ "To insert your username at the cursor position, choose " +#~ "EditInsert User Name." +#~ msgstr "" +#~ "要在当前光标位置插入您的用户名,点菜单 编辑插入用户名。" + +#~ msgid "gedit Manual V2.5.1" +#~ msgstr "gedit 手册 V2.5.1" + +#~ msgid "" +#~ "The gedit application enables you to create " +#~ "and edit text files. You can use gedit plugins " +#~ "to perform a variety of tasks related to text-editing from within the " +#~ "gedit window." +#~ msgstr "" +#~ "gedit 应用程序使您可以创建和编辑文本文件。您可" +#~ "以使用 gedit 插件在 gedit 窗口中执行有关文本编辑的各种任务。" + +#~ msgid "" +#~ "For information about how to start gedit from " +#~ "a menu, see the latest version of the GNOME Desktop User Guide for your " +#~ "platform." +#~ msgstr "" +#~ "有关如何从菜单启动 gedit 的信息,请参见适用于您" +#~ "的平台的 GNOME Desktop User Guide 的最新版本。" + +#~ msgid "When You Start gedit" +#~ msgstr "在启动 gedit 时" + +#~ msgid "" +#~ "The output window displays the output returned by the Shell command " +#~ "plugin and the Compare Files plugin." +#~ msgstr "输出窗口显示 Shell 命令插件和比较文件插件返回的输出。" + +#~ msgid "" +#~ "You can open multiple files in gedit. The " +#~ "application displays one file at a time in the application window. The " +#~ "application adds a tab for each open file to the window. To display " +#~ "another open file, click on the tab that corresponds to the file. To " +#~ "create a new gedit window for each file that " +#~ "is open, drag the tab corresponding to each file to the desktop " +#~ "background." +#~ msgstr "" +#~ "您可以在 gedit 中打开多个文件。 该应用程序一次" +#~ "只能在应用程序窗口中显示一个文件。该应用程序会在窗口上为每个打开的文件添加" +#~ "一个选项卡。要显示另一个打开的文件,请单击与该文件对应的选项卡。要为每个打" +#~ "开的文件创建一个新的 gedit 窗口,请将与每个文件" +#~ "对应的选项卡拖到桌面背景上。" + +#~ msgid "" +#~ "You can also use the Documents menu to move between " +#~ "the open files. You can choose DocumentsMove to New Window to " +#~ "move a document to a new gedit window." +#~ msgstr "" +#~ "也可以使用“文档”菜单在打开的文件之间移动。您可以选择" +#~ "“文档”“移动到新窗口”将一个文档移动到新 gedit窗口中。" + +#~ msgid "" +#~ "When the application starts, the files that you specify are displayed in " +#~ "the gedit window." +#~ msgstr "" +#~ "当该应用程序启动之后,您指定的文件将会显示在 gedit 窗口中。" + +#~ msgid "Usage" +#~ msgstr "用法" + +#~ msgid "" +#~ "To save changes to an existing file, choose FileSave or click " +#~ "Save on the toolbar." +#~ msgstr "" +#~ "要保存对现存文件的更改,请选择“文件”“保存”,或者单击工具栏上的" +#~ "“保存”按钮。" + +#~ msgid "Type new text from the keyboard." +#~ msgstr "从键盘输入新的文本。" + +#~ msgid "Use the Delete key to delete text." +#~ msgstr "使用 Delete 键删除文本。" + +#~ msgid "" +#~ "Use the Cut, Copy, " +#~ "Paste, and Delete " +#~ "menu items on the Edit menu to edit text." +#~ msgstr "" +#~ "使用“编辑”菜单中的“剪切”、" +#~ "“复制”“粘贴”和" +#~ "“删除”菜单项编辑文本。" + +#~ msgid "To Undo or Redo Edits" +#~ msgstr "取消或重复编辑" + +#~ msgid "" +#~ "To undo an edit, choose EditUndo. To redo an edit, " +#~ "choose EditRedo. The number of previous edits that you can undo " +#~ "is determined by the Set limit on undo actions to " +#~ "setting in the tabbed section of the " +#~ "Preferences dialog." +#~ msgstr "" +#~ "要取消编辑操作,请选择“编辑”“取消”。要重复编辑操作,请" +#~ "选择“编辑”“重复”。可以取消的先前编辑操作的次数由下面的设置来确" +#~ "定:“首选项”对话框中 选项卡式部分的“将取消操作的限制设置为”设置。" + +#~ msgid "Use this escape sequence to specify a new line" +#~ msgstr "使用此转义序列指定一个新行。" + +#~ msgid "Use this escape sequence to specify a tab character" +#~ msgstr "使用此转义序列指定一个制表符。" + +#~ msgid "Use this escape sequence to specify a carriage return" +#~ msgstr "使用此转义序列指定一个回车。" + +#~ msgid "" +#~ "Select the Match case option to only find " +#~ "occurrences of the string that match the case of the text that you enter." +#~ msgstr "" +#~ "选择“大小写匹配”选项就只能查找与您输入的文本大小写完" +#~ "全匹配的字符串。" + +#~ msgid "" +#~ "Click on the Replace button to replace the " +#~ "occurrence of the string with the text in the Replace with field. Click on the Replace All button " +#~ "to replace all occurrences of the string." +#~ msgstr "" +#~ "单击“替换”按钮可以用“替换为”字" +#~ "段中的文本替换出现的字符串。单击“全部替换”按钮可以" +#~ "替换文件中出现的所有该字符串。" + +#~ msgid "" +#~ "Choose FileOpen Location to display the Open Location dialog. Enter the URI of the file that you want to open, then " +#~ "click Open." +#~ msgstr "" +#~ "选择“文件”“打开位置”,显示“打开位置”对话框。输入" +#~ "您要打开的文件的 URI,然后单击“打开”。" + +#~ msgid "The application opens the file located at the URI in read-only mode." +#~ msgstr "该应用程序将以只读模式打开位于该 URI 位置的文件。" + +#~ msgid "" +#~ "Alternatively, you can use the Shell command plugin to pipe command " +#~ "output to the current file. For information about how to use the Shell " +#~ "command plugin, see ." +#~ msgstr "" +#~ "另外,您还可以使用 Shell 命令插件将命令的输出输送到当前文件中。有关如何使" +#~ "用 Shell 命令插件的信息,请参阅 。" + +#~ msgid "" +#~ "To position the cursor on a specific line in the current file, perform " +#~ "the following steps:" +#~ msgstr "要将光标定位在当前文件的指定行上,请执行以下步骤:" + +#~ msgid "" +#~ "Choose SearchGo to Line to display the Go to Line " +#~ "dialog." +#~ msgstr "" +#~ "选择“搜索”“转到行”,显示“转到行”对话框。" + +#~ msgid "" +#~ "Click Go to Line. The application moves the cursor " +#~ "to the line number that you specify." +#~ msgstr "" +#~ "单击“转到行”。 该应用程序会将光标移动到您指定的行号" +#~ "处。" + +#~ msgid "" +#~ "To change the input mode, right-click in the text window, then select " +#~ "Input Methods. The Insert Unicode " +#~ "control character menu item provides character layout " +#~ "options that are useful for working with non-Latin character sets." +#~ msgstr "" +#~ "要更改输入模式,请右击文本窗口,然后选择“Input Methods”“插入 Unicode 控制字符”菜单项提" +#~ "供字符布局选项,这些选项对使用非拉丁字符集很有用。" + +#~ msgid "To Print a File" +#~ msgstr "打印文件" + +#~ msgid "Printer pane" +#~ msgstr "打印机窗格" + +#~ msgid "Number of copies" +#~ msgstr "打印份数" + +#~ msgid "Filename" +#~ msgstr "文件名" + +#~ msgid "" +#~ "To print the file to a print file, type the name of the output file in " +#~ "this text box." +#~ msgstr "要将文件打印到某个打印文件,请在此文本框中键入输出文件的名称。" + +#~ msgid "To Customize the Toolbar and Statusbar" +#~ msgstr "定制工具栏和状态栏" + +#~ msgid "Desktop Default" +#~ msgstr "桌面默认" + +#~ msgid "Display the default toolbar." +#~ msgstr "显示默认工具栏。" + +#~ msgid "Icon" +#~ msgstr "图标" + +#~ msgid "Display icons only." +#~ msgstr "只显示图标。" + +#~ msgid "Icon and Text" +#~ msgstr "图标和文本" + +#~ msgid "Display icons and text." +#~ msgstr "显示图标和文本。" + +#~ msgid "Priority Text beside Icons" +#~ msgstr "图标旁的优先级文字" + +#~ msgid "Display icons, and display text beside some of the icons." +#~ msgstr "显示图标及某些图标旁的文字。" + +#~ msgid "Show Cursor Position" +#~ msgstr "显示光标位置" + +#~ msgid "Show Overwrite Mode" +#~ msgstr "显示覆盖模式:" + +#~ msgid "Editor" +#~ msgstr "编辑器" + +#~ msgid "" +#~ "The Editor category is subdivided into the following " +#~ "subcategories:" +#~ msgstr "“编辑器”类别还可以再细分为以下子类别:" + +#~ msgid "Fonts and Colors" +#~ msgstr "字体和颜色" + +#~ msgid "Use default theme font" +#~ msgstr "使用默认主题字体" + +#~ msgid "Editor font" +#~ msgstr "编辑器字体" + +#~ msgid "Use default theme colors" +#~ msgstr "使用默认主题颜色" + +#~ msgid "" +#~ "Select this option to use the default theme colors in the " +#~ "gedit text window." +#~ msgstr "" +#~ "如果选择该选项,系统将在 gedit 文本窗口中使用默" +#~ "认主题颜色。" + +#~ msgid "Text color" +#~ msgstr "文本颜色" + +#~ msgid "" +#~ "Click on the Text color button to display the " +#~ "color selector dialog. Select a color to use to display text in the " +#~ "gedit text window." +#~ msgstr "" +#~ "单击“文本颜色”按钮可以显示颜色选择器对话框。选择一" +#~ "种用于在 gedit 文本窗口中显示文本的颜色。" + +#~ msgid "Background color" +#~ msgstr "背景颜色" + +#~ msgid "" +#~ "Click on the Background color button to display " +#~ "the color selector dialog. Select a background color for the " +#~ "gedit text window." +#~ msgstr "" +#~ "单击“背景颜色”按钮可以显示颜色选择器对话框。为 " +#~ "gedit 文本窗口选择一种背景色。" + +#~ msgid "Selected text color" +#~ msgstr "选定的文本颜色" + +#~ msgid "" +#~ "Click on the Selected text color button to display " +#~ "the color selector dialog. Select a color to use to display selected text." +#~ msgstr "" +#~ "单击“选定的文本颜色”按钮可以显示颜色选择器对话框。" +#~ "选择一种用于显示选定文本的颜色。" + +#~ msgid "" +#~ "Click on the Selection color button to display the " +#~ "color selector dialog. Select a background color to use to highlight a " +#~ "text selection." +#~ msgstr "" +#~ "单击“选择区颜色”按钮可以显示颜色选择器对话框。选择" +#~ "一种用于突出显示文本选择区的背景色。" + +#~ msgid "Set tabs width equivalent to" +#~ msgstr "将制表符宽度设置为" + +#~ msgid "" +#~ "Select this option to wrap text onto the next line, at a character level, " +#~ "when you reach the text window boundary." +#~ msgstr "选择此选项可以在您到达文本窗口边界时按字符级别将文本换行到下一行。" + +#~ msgid "Do not split words over two lines" +#~ msgstr "不要将单词拆开放在两行上" + +#~ msgid "Enable auto indentation" +#~ msgstr "启用自动缩进" + +#~ msgid "Display line numbers" +#~ msgstr "显示行号" + +#~ msgid "Open" +#~ msgstr "打开" + +#~ msgid "Supported encodings" +#~ msgstr "支持的编码" + +#~ msgid "" +#~ "A character encoding is a method of converting bytes to characters. " +#~ "Different encodings might convert the same byte sequence into different " +#~ "characters, or might produce invalid output. If you open a file using the " +#~ "same encoding as that used to create the file, all characters are " +#~ "displayed as intended. However, if you open a file using a different " +#~ "encoding, some characters might not be displayed correctly, or an error " +#~ "might be returned." +#~ msgstr "" +#~ "字符编码是将字节转换为字符的方法。 不同的编码方法可能会将相同的字节序列转" +#~ "换成不同的字符,或生成无效的输出。 如果使用创建文件的编码方法打开该文件," +#~ "则所有的字符都按预期的结果显示。 但是,如果使用不同的编码方法打开文件,则" +#~ "某些字符可能无法正确显示,或返回错误。" + +#~ msgid "" +#~ "By default, gedit uses UTF-8 encoding to try " +#~ "to open a file. UTF-8 encoding can be used for multilingual texts, as " +#~ "UTF-8 covers almost all known alphabets and character sets. If the file " +#~ "is not a valid UTF-8 file, gedit tries to open " +#~ "the file by using the encoding for the current locale. If this also " +#~ "fails, gedit tries to use an encoding from the " +#~ "Supported encodings list, starting at the top of the list." +#~ msgstr "" +#~ "在默认情况下,gedit 会尝试使用 UTF-8 编码打开文" +#~ "件。 UTF-8 编码可用于多语言文本,这是因为 UTF-8 涵盖了几乎所有已知的字母表" +#~ "和字符集。如果文件不是有效的 UTF-8 文件,gedit " +#~ "会尝试使用当前语言环境的编码打开该文件。如果这个方法也无效," +#~ "gedit 会尝试从“支援的编码”列表顶部开始选用编" +#~ "码。" + +#~ msgid "" +#~ "To modify the contents of the Supported encodings list, use the buttons " +#~ "described in the following table:" +#~ msgstr "要修改“支持的编码”列表中的内容,请使用下表中说明的按钮:" + +#~ msgid "Button" +#~ msgstr "按钮" + +#~ msgid "Add" +#~ msgstr "添加" + +#~ msgid "Adds an encoding to the list." +#~ msgstr "将编码添加到列表。" + +#~ msgid "Remove" +#~ msgstr "删除" + +#~ msgid "Removes an encoding from the list." +#~ msgstr "从列表中删除编码。" + +#~ msgid "Up arrow" +#~ msgstr "上箭头" + +#~ msgid "Moves an encoding to a higher position in the list." +#~ msgstr "将编码移动到列表中较高的位置上。" + +#~ msgid "Down arrow" +#~ msgstr "下箭头" + +#~ msgid "Moves an encoding to a lower position in the list." +#~ msgstr "将编码移动到列表中较低的位置上。" + +#~ msgid "Create a backup copy of files before saving" +#~ msgstr "保存前创建文件的备份副本" + +#~ msgid "Autosave current file every" +#~ msgstr "自动保存当前文件的时间间隔" + +#~ msgid "When saving an existing file" +#~ msgstr "保存现存文件时" + +#~ msgid "Select one of the following save options:" +#~ msgstr "选择以下保存选项之一:" + +#~ msgid "Always use UTF-8 encoding (faster)" +#~ msgstr "总是使用 UTF-8 编码(较快)" + +#~ msgid "Select this option to save files using UTF-8 encoding." +#~ msgstr "如果选择该选项,系统将使用 UTF-8 编码来保存文件。" + +#~ msgid "Use current locale's encoding if possible" +#~ msgstr "如果可能的话,使用当前语言环境的编码" + +#~ msgid "" +#~ "Select this option to save files using the current locale. You can set up " +#~ "locales for different input methods." +#~ msgstr "" +#~ "如果选择此选项,系统将使用当前语言环境来保存文件。 您可以为不同的输入方法" +#~ "设置语言环境。" + +#~ msgid "Use original file encoding if possible" +#~ msgstr "如果可能的话,使用原文件编码" + +#~ msgid "" +#~ "Select this option to save a file using the current locale if the file " +#~ "was already saved in the current locale." +#~ msgstr "" +#~ "如果选择该选项,当该文件已经以当前语言环境保存的情况下,系统才会使用当前语" +#~ "言环境保存该文件。" + +#~ msgid "When saving a new file" +#~ msgstr "保存新文件时" + +#~ msgid "Select this option to save new files using UTF-8 encoding." +#~ msgstr "如果选择该选项,系统将使用 UTF-8 编码来保存新文件。" + +#~ msgid "" +#~ "Select this option to save new files using the current locale. You can " +#~ "set up locales for different input methods." +#~ msgstr "" +#~ "如果选择此选项,系统将使用当前语言环境来保存新文件。 您可以为不同的输入方" +#~ "法设置语言环境。" + +#~ msgid "Undo" +#~ msgstr "取消" + +#~ msgid "" +#~ "Select this option to set a limit on the number of editing actions that " +#~ "you can undo. Use the spin box to specify the maximum number of actions " +#~ "that you can undo." +#~ msgstr "" +#~ "选择此选项可以限制您能取消的编辑操作的次数。使用该旋转框可以指定您最多能取" +#~ "消的操作次数。" + +#~ msgid "" +#~ "The Print category is subdivided into the following " +#~ "subcategories:" +#~ msgstr "“打印”类别还可以再细分为以下子类别:" + +#~ msgid "Print line numbers every" +#~ msgstr "打印行号的间隔" + +#~ msgid "Page headers" +#~ msgstr "页眉" + +#~ msgid "" +#~ "For information about how to use the Plugins " +#~ "category of the Preferences dialog, see ." +#~ msgstr "" +#~ "有关如何使用“首选项”对话框的“插件”类别的信息,请参见。" + +#~ msgid "" +#~ "A plugin is a supplementary program that enhances the functionality of an " +#~ "application. The gedit plugins enable you to " +#~ "perform a variety of functions related to text editing from within the " +#~ " gedit window. The following table lists the " +#~ " gedit plugins." +#~ msgstr "" +#~ "插件就是用来增强应用程序功能的辅助程序。gedit " +#~ "插件使您可以在 gedit 窗口内执行有关文本编辑的各" +#~ "种功能。下表列出了 gedit 插件。" + +#~ msgid "Plugin Name" +#~ msgstr "插件名称" + +#~ msgid "Purpose" +#~ msgstr "目的" + +#~ msgid "ASCII table" +#~ msgstr "ASCII 表" + +#~ msgid "" +#~ "Displays a dialog that contains an ASCII table. You can use the ASCII " +#~ "table to insert characters into a file." +#~ msgstr "" +#~ "显示一个包含 ASCII 表的对话框。您可以使用 ASCII 表将字符插入到文件中。" + +#~ msgid "CVS ChangeLog" +#~ msgstr "CVS 更改日志" + +#~ msgid "Opens the log messages associated with CVS commit commands." +#~ msgstr "打开与 CVS 提交命令关联的日志消息。" + +#~ msgid "" +#~ "Compares two files and displays the differences between the files in the " +#~ "output window. This plugin uses the diff command to " +#~ "compare the files." +#~ msgstr "" +#~ "比较两个文件并在输出窗口中显示它们的差别。 该插件使用 diff 命令来比较文件。" + +#~ msgid "" +#~ "Counts the number of lines, words, characters, and bytes in the current " +#~ "file. The plugin displays the results in a Document Statistics dialog." +#~ msgstr "" +#~ "计算当前文件中的行数、单词数、字符数及字节数。该插件将结果显示在一个" +#~ "“文档统计信息”对话框中。" + +#~ msgid "" +#~ "Indents the selected lines, or removes the indentation from the selected " +#~ "lines." +#~ msgstr "对选定的行进行缩进,或从选定的行删除缩进。" + +#~ msgid "Shell command" +#~ msgstr "Shell 命令" + +#~ msgid "Displays the text output of a shell command in the output window." +#~ msgstr "在输出窗口中显示 shell 命令的文本输出。" + +#~ msgid "" +#~ "Displays a window that contains a list of common tags. You can use the " +#~ "window to insert a tag into a file." +#~ msgstr "" +#~ "显示一个包含常用标记列表的窗口。您可以使用此窗口将标记插入到文件中。" + +#~ msgid "User name" +#~ msgstr "用户名" + +#~ msgid "" +#~ "To load gedit plugins, choose " +#~ "EditPreferences. Within the Plugins " +#~ "category, click on the Manager subcategory. The " +#~ "Manager subcategory displays the following " +#~ "information:" +#~ msgstr "" +#~ "要载入 gedit 插件,请选择" +#~ "“编辑”“首选项”。在“插件”类别中,单击“管理器”子类别。 “管理器”子类别会显示以下信息:" + +#~ msgid "" +#~ "A Configure plugin button. You can use this button " +#~ "to open a configuration dialog for the plugins that you can configure. " +#~ "For example, see and " +#~ "." +#~ msgstr "" +#~ "“配置插件”按钮。您可以使用该按钮打开一个配置对话" +#~ "框,在该对话框中可以对插件进行配置。例如,请参见。" + +#~ msgid "" +#~ "A brief description of each plugin. To display a description, select the " +#~ "plugin from the list of plugins." +#~ msgstr "每个插件的简要说明。要显示一个说明,请从插件列表中选择该插件。" + +#~ msgid "Details about the author of the plugin and the name of the module." +#~ msgstr "有关插件作者和模块名称的细节。" + +#~ msgid "" +#~ "To load a plugin, select the check box next to the name of the plugin. " +#~ "The gedit application adds the plugin to the " +#~ "appropriate gedit menu, as described in the " +#~ "following table." +#~ msgstr "" +#~ "要载入插件,请选择该插件名称旁的复选框。gedit " +#~ "应用程序会将插件添加到适当的 gedit 菜单中,如下" +#~ "表中所述:" + +#~ msgid "Added to Menu" +#~ msgstr "添加到的菜单" + +#~ msgid "View" +#~ msgstr "视图" + +#~ msgid "ASCII Table" +#~ msgstr "ASCII 表" + +#~ msgid "Open CVS ChangeLogs" +#~ msgstr "打开 CVS 更改日志" + +#~ msgid "Insert Date and Time" +#~ msgstr "“插入日期和时间”" + +#~ msgid "Insert User Name" +#~ msgstr "插入用户名" + +#~ msgid "To Remove gedit Plugins" +#~ msgstr "删除 gedit 插件" + +#~ msgid "" +#~ "To remove gedit plugins, choose " +#~ "EditPreferences. Within the Plugins " +#~ "category, click on the Manager subcategory. To " +#~ "remove a plugin, deselect the check box next to the name of the plugin." +#~ msgstr "" +#~ "要删除 gedit 插件,请选择" +#~ "“编辑”“首选项”。在“插件”类别中,单击“管理器”子类别。 要删除插件,请取消选择该插件旁的复选框。" + +#~ msgid "ASCII Table Plugin" +#~ msgstr "ASCII 表插件" + +#~ msgid "" +#~ "The ASCII table plugin displays a dialog that contains an ASCII table. " +#~ "You can use the ASCII table to insert characters into a file. To use the " +#~ "ASCII table plugin, perform the following steps:" +#~ msgstr "" +#~ "ASCII 表插件会显示包含 ASCII 表的对话框。您可以使用 ASCII 表将字符插入到文" +#~ "件中。 要使用 ASCII 表插件,请执行以下步骤:" + +#~ msgid "Load the ASCII table plugin." +#~ msgstr "载入 ASCII 表插件。" + +#~ msgid "" +#~ "Choose ViewASCII Table to display the ASCII Table " +#~ "dialog." +#~ msgstr "" +#~ "选择“视图”“ASCII 表”,显示“ASCII 表”对话框。" + +#~ msgid "" +#~ "Scroll through the list to find the character that you require, then " +#~ "select the character with a single click." +#~ msgstr "滚动列表查找所需的字符,然后单击该字符以选中它。" + +#~ msgid "" +#~ "Click on the Insert char button to insert the " +#~ "character at the cursor position in the current file." +#~ msgstr "" +#~ "单击“插入字符”按钮在当前文件的光标位置处插入该字" +#~ "符。" + +#~ msgid "" +#~ "When you finish entering ASCII characters, click Close to close the ASCII Table dialog." +#~ msgstr "" +#~ "输入 ASCII 字符后,单击“关闭”以关闭" +#~ "“ASCII 表”对话框。" + +#~ msgid "" +#~ "The CVS ChangeLog plugin opens the log messages associated with CVS " +#~ "commit commands. This plugin enables you to easily paste text into the " +#~ "commit message from the ChangeLog file. To use the CVS ChangeLog plugin, " +#~ "perform the following steps:" +#~ msgstr "" +#~ "CVS 更改日志插件可以打开与 CVS 提交命令关联的日志消息。 该插件使您可以轻松" +#~ "地将文本从更改日志文件中粘贴到提交消息中。 要使用 CSV 更改日志插件,请执行" +#~ "以下步骤:" + +#~ msgid "" +#~ "Set the environment variable CVSEDITOR to gedit. For example, if you are using the bash " +#~ "shell, run the following command at the operating system prompt: " +#~ "export CVSEDITOR=gedit " +#~ "" +#~ msgstr "" +#~ "将环境变量 CVSEDITOR 设置为 gedit。 例如,如果" +#~ "您使用 bash shell,则请在操作系统提示符下使用下面的命" +#~ "令: export CVSEDITOR=gedit " + +#~ msgid "" +#~ "Commit a file to CVS in the usual way. A gedit " +#~ "window opens, to enable you to enter the commit message." +#~ msgstr "" +#~ "以通常的方式将文件提交到 CVS。系统会打开 gedit " +#~ "窗口,使您可以输入提交消息。" + +#~ msgid "Load the CVS ChangeLog plugin." +#~ msgstr "载入 CVS 更改日志插件。" + +#~ msgid "" +#~ "Choose FileOpen CVS " +#~ "ChangeLogs to open all of the ChangeLog files " +#~ "referenced in the commit message. gedit opens " +#~ "each ChangeLog file in a new tab." +#~ msgstr "" +#~ "选择“文件”“打开 CVS 更改日" +#~ "志”,打开提交消息中引用的所有更改日志文件。" +#~ "gedit 会在新选项卡中打开每个更改日志文件。" + +#~ msgid "" +#~ "Copy the ChangeLog entries that you want to add to the commit message " +#~ "from the gedit ChangeLog files." +#~ msgstr "" +#~ "从 gedit 更改日志文件复制更改日志项(您要将这些" +#~ "更改日志项添加到提交消息中)。" + +#~ msgid "" +#~ "Insert the copied ChangeLog entries in the gedit commit message tab." +#~ msgstr "" +#~ "在 gedit 提交消息选项卡中插入复制的更改日志项。" + +#~ msgid "Save your changes to the commit message, then close all files." +#~ msgstr "将更改保存到提交消息中,然后关闭所有文件。" + +#~ msgid "" +#~ "The Compare Files plugin compares two files and displays the differences " +#~ "between the files in the output window. This plugin uses the " +#~ "diff command to compare the files. To use the Compare " +#~ "Files plugin, perform the following steps:" +#~ msgstr "" +#~ "比较文件插件会比较两个文件,并在输出窗口中显示两个文件之间的差异。 该插件" +#~ "使用 diff 命令来比较文件。 要使用比较文件插件,请执行以" +#~ "下步骤:" + +#~ msgid "Load the Compare Files plugin." +#~ msgstr "载入比较文件插件。" + +#~ msgid "" +#~ "Choose ToolsCompare Files. When you choose this option for the first " +#~ "time, you are prompted to confirm the location of the diff command. You are not prompted for this location again. See for information about how to " +#~ "change this location later." +#~ msgstr "" +#~ "选择“工具”“比较文件”。 当首次选择此选项时,系统会提示您确认 " +#~ "diff 命令的位置。系统不会再次提示您确认该位置。有关如何" +#~ "在以后更改此位置的信息,请参见。" + +#~ msgid "" +#~ "Click OK to display the Compare Files dialog." +#~ msgstr "" +#~ "单击“确定”显示“比较文件”对话" +#~ "框。" + +#~ msgid "" +#~ "Specify the files that you want to compare. To specify an open file, " +#~ "select the file from the drop-down list. To specify a closed file, enter " +#~ "the location of the file in the text box." +#~ msgstr "" +#~ "指定要比较的文件。要指定打开的文件,请从下拉列表中选择。要指定已关闭的文" +#~ "件,请在文本框中输入文件的位置。" + +#~ msgid "" +#~ "To ignore changes in the amount of white space, select the " +#~ "Ignore blanks option." +#~ msgstr "要忽略空白大小的更改,请选择“忽略空白”选项。" + +#~ msgid "" +#~ "To use the unified output format, showing three lines of context, select " +#~ "the Use the unified output format option." +#~ msgstr "" +#~ "要使用统一的输出格式,显示三行上下文,请选择“使用统一的输出格" +#~ "式”选项。" + +#~ msgid "" +#~ "Click on the Compare button to compare the " +#~ "contents of the specified files. The command output is displayed in the " +#~ "output window." +#~ msgstr "" +#~ "单击“比较”按钮以比较指定文件的内容。该命令输出会显" +#~ "示在输出窗口中。" + +#~ msgid "" +#~ "For more information, see diff1." +#~ msgstr "" +#~ "有关更多信息,请参见 diff1。" + +#~ msgid "" +#~ "To change the location of the command that the Compare Files plugin uses, " +#~ "perform the following steps:" +#~ msgstr "要更改比较文件插件所使用的命令的位置,请执行以下步骤:" + +#~ msgid "" +#~ "Within the Plugins category, click on the " +#~ "Manager subcategory." +#~ msgstr "" +#~ "在“插件”类别中,单击“管理器”子类" +#~ "别。" + +#~ msgid "" +#~ "Click on the Configure plugin button to display " +#~ "the Set program location dialog." +#~ msgstr "" +#~ "单击“配置插件”按钮以显示“设置程序位置”对话框。" + +#~ msgid "" +#~ "Specify the location of the diff command in the " +#~ "Location to search for text box." +#~ msgstr "" +#~ "在“搜索位置”文本框中指定 diff 命令" +#~ "的位置。" + +#~ msgid "Load the Document Statistics plugin." +#~ msgstr "载入文档统计插件。" + +#~ msgid "" +#~ "To close the Document Statistics dialog, click " +#~ "Close." +#~ msgstr "" +#~ "要关闭“文档统计信息”对话框,请单击“关闭”。" + +#~ msgid "" +#~ "The Indent lines plugin indents the selected lines, or removes the " +#~ "indentation from the selected lines. To use the Indent lines plugin, " +#~ "perform the following steps:" +#~ msgstr "" +#~ "缩进行插件对选定的行进行缩进,或从选定的行删除缩进。 要使用缩进行插件,请" +#~ "执行以下步骤:" + +#~ msgid "Load the Insert Date/Time plugin." +#~ msgstr "载入插入日期/时间插件。" + +#~ msgid "" +#~ "See for information about " +#~ "how to configure the Insert Date/Time plugin." +#~ msgstr "" +#~ "有关如何配置插入日期/时间插件的信息,请参见。" + +#~ msgid "" +#~ "The Shell Command plugin enables you to capture the output from a shell " +#~ "command in gedit, by displaying the text " +#~ "output of the shell command in the output window. To use the Shell " +#~ "command plugin, perform the following steps:" +#~ msgstr "" +#~ "Shell 命令插件使您可以抓取 gedit 中shell 命令的" +#~ "输出,其方式是在输出窗口中显示 shell 命令的文本输出。要使用 Shell 命令插" +#~ "件,请执行以下步骤:" + +#~ msgid "Load the Shell command plugin." +#~ msgstr "载入 Shell 命令插件。" + +#~ msgid "" +#~ "Choose ToolsRun Command to display the Run Command " +#~ "dialog." +#~ msgstr "" +#~ "选择“工具”“运行命令” 以显示“运行命令”对话框。" + +#~ msgid "" +#~ "Type the shell command that you want to execute in the Command field." +#~ msgstr "在“命令”字段中键入您要执行的 Shell 命令。" + +#~ msgid "%f" +#~ msgstr "%f" + +#~ msgid "" +#~ "Use these special characters to specify the filename of the current " +#~ "active document, including the path." +#~ msgstr "这些特殊字符可用于指定当前活动文档的文件名,包括路径。" + +#~ msgid "%n" +#~ msgstr "%n" + +#~ msgid "" +#~ "Use these special characters to specify the filename of the current " +#~ "active document, without the path. In this case, gedit looks for the file in the Working directory." +#~ msgstr "" +#~ "这些特殊字符可用于指定当前活动文档的文件名,不包括路径。在这种情况下," +#~ "gedit 会在工作目录中查找该文件。" + +#~ msgid "" +#~ "Edit the Working directory field if necessary. By " +#~ "default, the Shell command plugin executes the command you specify in the " +#~ "current directory." +#~ msgstr "" +#~ "如果需要,编辑“工作目录”字段。默认情况下,Shell 命令" +#~ "插件会在当前目录中执行您指定的命令。" + +#~ msgid "" +#~ "Select the Show results in Output Window option to " +#~ "display the results of the command in the output window. If you do not " +#~ "select this option, gedit discards the results " +#~ "of the command." +#~ msgstr "" +#~ "选择“在输出窗口中显示结果”选项,以便在输出窗口中显示" +#~ "命令的结果。如果不选择此选项,gedit 会丢弃该命" +#~ "令的结果。" + +#~ msgid "" +#~ "Click Run. The Shell command plugin executes the " +#~ "command and inserts the text output into the output window." +#~ msgstr "" +#~ "单击“Run”。该 Shell 命令插件会执行该命令,并将文本" +#~ "输出插入到输出窗口中。" + +#~ msgid "" +#~ "Use the Shift key to select the text in the output " +#~ "window." +#~ msgstr "使用 Shift 键在输出窗口中选择文本。" + +#~ msgid "" +#~ "Click on the Copy selected lines button to copy " +#~ "the selected text into the buffer." +#~ msgstr "" +#~ "单击“复制选定的文本”按钮将选定的文本复制到缓冲区" +#~ "中。" + +#~ msgid "" +#~ "Click on the Close the output window button to " +#~ "close the output window." +#~ msgstr "单击“关闭输出窗口”按钮关闭输出窗口。" + +#~ msgid "The Sort plugin sorts the selected text." +#~ msgstr "排序插件对选定的文本进行排序。" + +#~ msgid "" +#~ "The Tag List plugin displays a window that contains a list of common " +#~ "tags. You can use the window to insert a tag into a file. To use the Tag " +#~ "List plugin, perform the following steps:" +#~ msgstr "" +#~ "标记列表插件会显示包含常用标记列表的窗口。您可以使用该窗口将标记插入到文件" +#~ "中。 要使用标记列表插件,请执行以下步骤:" + +#~ msgid "" +#~ "To close the Tag list plugin window, click on the " +#~ "Close Window button in the window frame. " +#~ "Alternatively, press CtrlW when the focus is on the Tag list plugin " +#~ "window." +#~ msgstr "" +#~ "要关闭“标记列表插件”窗口,请单击窗口框中的" +#~ "“关闭窗口”按钮。或者,当焦点在“标记列表插" +#~ "件”窗口时,按下 CtrlW。" + +#~ msgid "Load the User name plugin." +#~ msgstr "载入用户名插件。" + +#~ msgid "" +#~ "Choose EditInsert User Name to insert your username at the cursor position " +#~ "in the current file." +#~ msgstr "" +#~ "选择“编辑”“插入用户名”以在当前文件的光标位置处插入您的用户名。" + +#~ msgid "" +#~ "Be careful. If you make a mistake outside of gedit (e.g., If " +#~ "you say something mean to your friend) gedit will not be able " +#~ "to help you undo that mistake." +#~ msgstr "" +#~ "请注意,如果您的错误超出了 gedit 的能力(比如,您对朋友说了什" +#~ "么),gedit 将不能帮助您恢复那样的错误。" + +#~ msgid "" +#~ "Use the up or down facing arrows next to the " +#~ "search window (or CtrlG " +#~ "or CtrlShiftG) to " +#~ "scroll up or down through the highlighted text." +#~ msgstr "" +#~ "使用 搜索窗口 旁边的 向上向下down 箭" +#~ "头切换到上一个或下一个匹配项,也可以按组合键 CtrlGCtrlShiftG。" diff --git a/help/zh_HK/zh_HK.po b/help/zh_HK/zh_HK.po new file mode 100644 index 0000000..edde840 --- /dev/null +++ b/help/zh_HK/zh_HK.po @@ -0,0 +1,2717 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2005-10-22 13:29-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../base.xml:24(title) ../base.xml:95(revnumber) +msgid "gedit Manual V2.5.1" +msgstr "gedit 手冊 V2.5.1" + +#: ../base.xml:26(year) +msgid "2003" +msgstr "2003 年" + +#: ../base.xml:27(holder) ../base.xml:30(holder) ../base.xml:52(orgname) +msgid "Sun Microsystems" +msgstr "Sun Microsystems" + +#: ../base.xml:29(year) +msgid "2002" +msgstr "2002 年" + +#: ../base.xml:32(year) ../base.xml:152(date) +msgid "2000" +msgstr "2000 年" + +#: ../base.xml:33(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: ../base.xml:44(publishername) ../base.xml:59(orgname) ../base.xml:99(para) +#: ../base.xml:107(para) ../base.xml:115(para) ../base.xml:123(para) +#: ../base.xml:131(para) ../base.xml:139(para) ../base.xml:147(para) +#: ../base.xml:156(para) +msgid "GNOME Documentation Project" +msgstr "GNOME 文件專案" + +#: ../base.xml:56(firstname) +msgid "Eric" +msgstr "Eric" + +#: ../base.xml:57(surname) +msgid "Baudais" +msgstr "Baudais" + +#: ../base.xml:60(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: ../base.xml:64(firstname) +msgid "Baris" +msgstr "Baris" + +#: ../base.xml:65(surname) +msgid "" +"Cicek provided information from earlier revisions of the gedit application." +msgstr "Cicek 提供 gedit 應用程式較早版本的資訊。" + +#: ../base.xml:66(contrib) +msgid "Acknowledgements" +msgstr "感謝" + +#: ../base.xml:69(firstname) +msgid "Ajit" +msgstr "Ajit" + +#: ../base.xml:70(surname) +msgid "George provided information about plugins." +msgstr "George 提供增效模組的相關資訊。" + +#: ../base.xml:98(para) ../base.xml:106(para) ../base.xml:114(para) +#: ../base.xml:122(para) ../base.xml:130(para) ../base.xml:138(para) +#: ../base.xml:146(para) +msgid "Sun GNOME Documentation Team" +msgstr "Sun GNOME 文件小組" + +#: ../base.xml:103(revnumber) +msgid "gedit Manual V2.5" +msgstr "gedit 手冊 V2.5" + +#: ../base.xml:104(date) +msgid "March 2003" +msgstr "2003 年 3 月" + +#: ../base.xml:111(revnumber) +msgid "gedit Manual V2.4" +msgstr "gedit 手冊 V2.4" + +#: ../base.xml:112(date) +msgid "January 2003" +msgstr "2003 年 1 月" + +#: ../base.xml:119(revnumber) +msgid "gedit Manual V2.3" +msgstr "gedit 手冊 V2.3" + +#: ../base.xml:120(date) +msgid "September 2002" +msgstr "2002 年 9 月" + +#: ../base.xml:127(revnumber) +msgid "gedit Manual V2.2" +msgstr "gedit 手冊 V2.2" + +#: ../base.xml:128(date) +msgid "August 2002" +msgstr "2002 年 8 月" + +#: ../base.xml:135(revnumber) +msgid "gedit Manual V2.1" +msgstr "gedit 手冊 V2.1" + +#: ../base.xml:136(date) +msgid "June 2002" +msgstr "2002 年 6 月" + +#: ../base.xml:143(revnumber) +msgid "gedit Manual V2.0" +msgstr "gedit 手冊 V2.0" + +#: ../base.xml:144(date) +msgid "March 2002" +msgstr "2002 年 3 月" + +#: ../base.xml:151(revnumber) +msgid "gedit V1.0" +msgstr "gedit 手冊 V1.0" + +#: ../base.xml:154(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu" + +#: ../base.xml:160(releaseinfo) +msgid "This manual describes version 2.2.1 of gedit." +msgstr "本手冊的內容是說明 2.2.1 版的 gedit。" + +#: ../base.xml:163(title) +msgid "Feedback" +msgstr "意見回饋" + +#: ../base.xml:164(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" +"關於本 gedit 應用程式或本手冊,如果要報告錯誤 或提" +"出建議,請遵照 GNOME " +"Feedback Page 的指示。" + +#: ../base.xml:171(primary) +msgid "gedit" +msgstr "gedit" + +#: ../base.xml:172(primary) +msgid "text editor" +msgstr "文字編輯器" + +#: ../base.xml:177(title) +msgid "Introduction" +msgstr "介紹" + +#: ../base.xml:178(para) +msgid "" +"The gedit application enables you to create and " +"edit text files. You can use gedit plugins to " +"perform a variety of tasks related to text-editing from within the " +"gedit window." +msgstr "" +"您可以使用 gedit 應用程式建立和編輯文字 檔案。您可" +"以使用 gedit 增效模組在 gedit 視窗中 執行各種和文字編輯相關的工作。" + +#: ../base.xml:185(title) +msgid "Getting Started" +msgstr "入門" + +#: ../base.xml:189(title) +msgid "To Start gedit" +msgstr "啟動 gedit" + +#: ../base.xml:190(para) +msgid "You can start gedit in the following ways:" +msgstr "您可以使用下列方式啟動 gedit:" + +#: ../base.xml:193(guimenu) +msgid "Menu" +msgstr "功能表" + +#: ../base.xml:195(para) +msgid "" +"For information about how to start gedit from a " +"menu, see the latest version of the GNOME Desktop User Guide for your " +"platform." +msgstr "" +"若需如何從功能表啟動 gedit 的詳細資訊,請參閱最新" +"版的平台 GNOME Desktop User Guide。" + +#: ../base.xml:200(term) +msgid "Command line" +msgstr "指令行" + +#: ../base.xml:202(para) +msgid "Execute the following command: gedit" +msgstr "執行以下的指令: gedit" + +#: ../base.xml:210(title) +msgid "When You Start gedit" +msgstr "當您啟動 gedit" + +#: ../base.xml:211(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "當您啟動 gedit 後,會顯示下面的視窗:" + +#: ../base.xml:214(title) +msgid "gedit Window" +msgstr "gedit 視窗" + +#: ../base.xml:220(phrase) +msgid "Shows gedit main window." +msgstr "顯示 gedit 主視窗。" + +#: ../base.xml:226(para) +msgid "" +"The gedit window contains the following elements:" +msgstr "" +"gedit 視窗包含下列的 元素:您可以選擇下列條件中的" +"一項或以上:" + +#: ../base.xml:229(term) +msgid "Menubar" +msgstr "功能表列" + +#: ../base.xml:231(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"在功能表列上的功能表中,有您在 gedit 中與檔案工作" +"所需的所有指令。" + +#: ../base.xml:235(term) +msgid "Toolbar" +msgstr "工具列" + +#: ../base.xml:237(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "工具列包含了您可以由功能表列 存取的指令子集。" + +#: ../base.xml:241(term) +msgid "Display area" +msgstr "顯示區域" + +#: ../base.xml:243(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "顯示區域包含了您正在 編輯之檔案的文字。" + +#: ../base.xml:247(term) +msgid "Output window" +msgstr "輸出視窗" + +#: ../base.xml:249(para) +msgid "" +"The output window displays the output returned by the Shell command plugin " +"and the Compare Files plugin." +msgstr "輸出視窗可以顯示由 Shell 指令增效模組和比對檔案增效模組傳回的輸出。" + +#: ../base.xml:252(term) +msgid "Statusbar" +msgstr "狀態列" + +#: ../base.xml:254(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items." +msgstr "" +"狀態列可以顯示目前 gedit 活動的資訊,以及有關功能" +"表項目 的上下文資訊。" + +#: ../base.xml:260(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"當您在 gedit 視窗中按滑鼠右鍵時,應用程式會顯示即" +"現式功能表。即現式功能表包含了 最常用的文字編輯指令。" + +#: ../base.xml:266(title) +msgid "To Open a File" +msgstr "開啟檔案" + +#: ../base.xml:267(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click OK. The file is displayed in the gedit " +"window." +msgstr "" +"如果要開啟檔案,請選擇 檔案開啟 ,顯示開啟檔案對話方塊。選取要" +"開啟的檔案 ,然後按一下確定。這個檔案便會 顯示在 " +"gedit 視窗中。" + +#: ../base.xml:273(para) +msgid "" +"You can open multiple files in gedit. The " +"application displays one file at a time in the application window. The " +"application adds a tab for each open file to the window. To display another " +"open file, click on the tab that corresponds to the file. To create a new " +" gedit window for each file that is open, drag " +"the tab corresponding to each file to the desktop background." +msgstr "" +"您可以在 gedit 中,開啟多個檔案。 本應用程式在應用" +"程式視窗中,一次只會顯示一個檔案。 應用程式會為每個開啟的檔案,在視窗中增加一" +"個標籤。如果要顯示另外一個 開啟的檔案,請按該檔案的標籤。如果為每一個開啟的檔" +"案,建立一個新的 gedit 視窗,請將檔案的 標籤一個" +"個地拖曳至桌面背景上。" + +#: ../base.xml:279(para) +msgid "" +"You can also use the Documents menu to move between the " +"open files. You can choose DocumentsMove to New Window to move a " +"document to a new gedit window." +msgstr "" +"您也可以使用 文件功能表,在開啟的檔案之間移動。您可以選擇" +"文件移至新視窗,將文件移到新的 gedit 視窗。" + +#: ../base.xml:290(phrase) +msgid "Shows Recent Files menu icon." +msgstr "顯示最近使用的檔案功能表圖示。" + +#: ../base.xml:282(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the " +"icon on the toolbar to display the list of recent files." +msgstr "" +"應用程式會記錄您所編輯的最後 5 個 檔案,並以功能表項目的方式,顯示在 " +"檔案功能表中。您也可以按一下 " +" 工具" +"列上的圖示,顯示最近使用的檔案清單。" + +#: ../base.xml:297(title) +msgid "To Open Multiple Files from a Command Line" +msgstr "從指令行開啟多個檔案" + +#: ../base.xml:298(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" +"您可以從指令行執行 gedit,並開啟一個或多個檔案。如" +"果要從指令行開啟多個檔案,請鍵入下列指令,然後按一下 Return " +"鍵。" + +#: ../base.xml:301(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "file1.txt file2.txt file3.txt" + +#: ../base.xml:301(command) +msgid "gedit " +msgstr "gedit " + +#: ../base.xml:302(para) +msgid "" +"When the application starts, the files that you specify are displayed in the " +"gedit window." +msgstr "" +"當應用程式啟動時,您所指定的檔案便會顯示在 gedit " +"視窗內。" + +#: ../base.xml:304(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see gedit1." +msgstr "" +"若需如何從指令行執行 gedit 的詳細資訊,請參閱 " +"gedit1。" + +#: ../base.xml:309(title) +msgid "Usage" +msgstr "使用" + +#: ../base.xml:313(title) +msgid "To Create a New File" +msgstr "建立新檔案" + +#: ../base.xml:314(para) +msgid "" +"To create a new file, choose FileNew. The application " +"displays a new file in the gedit window." +msgstr "" +"如果要建立新檔案,請選擇 檔案開新" +"檔案。應用程式會在 gedit 視窗內顯示新檔案。" + +#: ../base.xml:321(title) +msgid "To Save a File" +msgstr "儲存檔案" + +#: ../base.xml:322(para) +msgid "You can save files in the following ways:" +msgstr "您可以用下列方式儲存檔案:" + +#: ../base.xml:324(para) +msgid "" +"To save changes to an existing file, choose FileSave or click " +"Save on the toolbar." +msgstr "" +"如果要將變更儲存到目前的檔案,請選擇 檔案儲存 或按一下工具列上的" +"儲存 。" + +#: ../base.xml:329(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save as " +"dialog box, then click OK." +msgstr "" +"如果要儲存新檔案,或以新的檔案名稱儲存目前的檔案,請選擇 " +"檔案另存 新檔。請將檔案名稱輸入另存 新檔對話方塊,然後按一" +"下確定。" + +#: ../base.xml:334(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" +"如果要儲存目前在 gedit 中開啟的所有檔案,請選擇 " +"文件全部 儲存。" + +#: ../base.xml:343(title) +msgid "To Edit Text" +msgstr "編輯文字" + +#: ../base.xml:344(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "您可以使用下列方式編輯檔案文字:" + +#: ../base.xml:346(para) +msgid "Type new text from the keyboard." +msgstr "由鍵盤輸入新的文字。" + +#: ../base.xml:348(para) +msgid "Use the Delete key to delete text." +msgstr "使用刪除鍵刪除文字。" + +#: ../base.xml:351(para) +msgid "" +"Use the Cut, Copy, " +"Paste, and Delete menu " +"items on the Edit menu to edit text." +msgstr "" +"請使用剪下複製、" +"貼上刪除功能表項目 " +"(在編輯功能表上) 來編輯文字。" + +#: ../base.xml:356(para) +msgid "You can perform any of the following actions on the selected text:" +msgstr "您可以在所選取的文字上執行下列任何一個動作:" + +#: ../base.xml:359(para) +msgid "" +"To copy the selected text to a buffer, choose EditCopy." +msgstr "" +"如果要將選取的文字複製到緩衝區中,請選擇 編輯複製。" + +#: ../base.xml:363(para) +msgid "" +"To delete the selected text from the file and move the selected text to a " +"buffer, choose EditCut." +msgstr "" +"如果要從檔案中刪除選取的文字,並將 選取的文字移動至緩衝區,請選擇 " +"編輯剪下。" + +#: ../base.xml:368(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" +"如果要從檔案中永遠刪除選取的文字,請選擇 編輯刪除e。" + +#: ../base.xml:372(para) +msgid "" +"To insert the contents of the buffer at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file." +msgstr "" +"如果要在游標位置上加入緩衝區 的內容,請選擇 編輯貼上。您必須先剪下或複製文字 " +"才能將文字貼進檔案。" + +#: ../base.xml:378(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" +"如果要選取檔案中所有的文字,請選擇 編輯全部 選取。" + +#: ../base.xml:386(title) +msgid "To Undo or Redo Edits" +msgstr "還原或重做編輯" + +#: ../base.xml:387(para) +msgid "" +"To undo an edit, choose EditUndo. To redo an edit, " +"choose EditRedo. The number of previous edits that you can undo is determined by " +"the Set limit on undo actions to setting in the tabbed section of the Preferences dialog." +msgstr "" +"如果要還原或重做編輯,請選擇 編輯" +"還原。如果要重做編輯,請選擇 " +"編輯重做。您所能還原之前編" +"輯的次數,是取決於 限制還原次數為設定 (在 標籤區段中 (在 偏好設定對話方塊" +"中))。" + +#: ../base.xml:399(title) +msgid "To Find Text" +msgstr "尋找文字" + +#: ../base.xml:400(para) +msgid "To search a file for a string, perform the following steps:" +msgstr "如果要搜尋檔案中的字串,請執行下列步驟:" + +#: ../base.xml:402(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" +"請選擇 搜尋尋找 以顯示尋找對話方塊。" + +#: ../base.xml:407(para) ../base.xml:459(para) +msgid "" +"Type the string that you want to find, in the Search for field." +msgstr "將您要尋找的字串,鍵入 搜尋欄位中。" + +#: ../base.xml:409(para) ../base.xml:461(para) +msgid "You can include the following escape sequences:" +msgstr "您可以包括下列的逸出序列:" + +#: ../base.xml:412(literal) ../base.xml:464(literal) +msgid "\\n" +msgstr "\\n" + +#: ../base.xml:413(para) ../base.xml:465(para) +msgid "Use this escape sequence to specify a new line" +msgstr "請使用這個逸出序列,指定新的一行" + +#: ../base.xml:416(literal) ../base.xml:468(literal) +msgid "\\t" +msgstr "\\t" + +#: ../base.xml:417(para) ../base.xml:469(para) +msgid "Use this escape sequence to specify a tab character" +msgstr "請使用這個逸出序列,指定 Tab 字元" + +#: ../base.xml:420(literal) ../base.xml:472(literal) +msgid "\\r" +msgstr "\\r" + +#: ../base.xml:421(para) ../base.xml:473(para) +msgid "Use this escape sequence to specify a carriage return" +msgstr "請使用這個逸出序列,指定換行鍵" + +#: ../base.xml:425(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type." +msgstr "" +"選取符合大小寫選項, 尋找只符合您所鍵入文字狀況 的字串。" + +#: ../base.xml:429(para) ../base.xml:484(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type." +msgstr "" +"選取全字相符選項, 尋找字串中完全符合您所輸入的 文字。" + +#: ../base.xml:433(para) ../base.xml:488(para) +msgid "" +"Select the Wrap around option to search to the end of " +"the file and then continue the search from the beginning of the file." +msgstr "" +"選取全檔搜尋選項,搜尋到檔案結尾後再從檔案開頭繼續搜尋。" + +#: ../base.xml:435(para) ../base.xml:490(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string. If gedit finds the " +"string, the application moves the cursor to the string, and selects the " +"string." +msgstr "" +"按一下尋找,搜尋檔案中 第一個字串事件。如果 " +"gedit 找到字串,應用程式會將游標移動到字串上,並選" +"取 該字串。" + +#: ../base.xml:440(para) ../base.xml:500(para) +msgid "" +"To find the next occurrence of the string, click Find." +msgstr "如果要尋找符合的下一個字串,請按一下 找下一個。" + +#: ../base.xml:443(para) ../base.xml:503(para) +msgid "To finish the search, click Close." +msgstr "如果要結束搜尋,請按一下 關閉。" + +#: ../base.xml:450(title) +msgid "To Find and Replace Text" +msgstr "尋找並取代文字" + +#: ../base.xml:451(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "如果要搜尋檔案中的字串,並以另外一個字串 取代之,請執行下列的步驟:" + +#: ../base.xml:454(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"請選擇 搜尋取代 ,顯示取代對話方塊。" + +#: ../base.xml:477(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "將您要用來取代尋找 字串的字串,鍵入取代為欄位中。" + +#: ../base.xml:480(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you enter." +msgstr "" +"選取符合大小寫選項, 尋找只符合您所鍵入文字狀況 的字串。" + +#: ../base.xml:495(para) +msgid "" +"Click on the Replace button to replace the occurrence " +"of the string with the text in the Replace with field. " +"Click on the Replace All button to replace all " +"occurrences of the string." +msgstr "" +"按一下取代按鈕,以您在 取代為 欄" +"位中鍵入的文字取代該字串。按一下全部取代按鈕,取代 所" +"有符合的字串。" + +#: ../base.xml:510(title) +msgid "To Open a File from a URI" +msgstr "從 URI 開啟檔案" + +#: ../base.xml:511(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform one of the " +"following steps:" +msgstr "" +"如果要從資源識別統一描述器 (Uniform Resource Identifier,URI) 開啟檔案,請執" +"行下列任一項步驟:" + +#: ../base.xml:514(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog. Enter the URI of the file that you want to open, then click " +"Open." +msgstr "" +"請選擇檔案開啟位置 ,顯示開啟位置 對話方塊。輸入" +"您要開啟 檔案的 URI ,然後按一下開啟。" + +#: ../base.xml:522(para) +msgid "" +"Type gedit URI at a command " +"line, where URI is the URI of the file that you " +"want to open, then press Return. Valid types of " +"URI include http:, " +"ftp:, file:, and all of the methods " +"supported by gnome-vfs." +msgstr "" +"在指令行上輸入 gedit URI (此處" +"的 URI 是指您要開啟之檔案的 URI),然後按下 " +"Return 鍵。有效的 URI 類型包括 " +"http:ftp:file:," +"以及 gnome-vfs 支援的所有方法。" + +#: ../base.xml:527(para) +msgid "The application opens the file located at the URI in read-only mode." +msgstr "應用程式會以唯讀模式開啟位於 URI 的檔案。" + +#: ../base.xml:531(title) +msgid "To Pipe the Output of a Command to a File" +msgstr "輸出指令到檔案" + +#: ../base.xml:532(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" +"您可以使用 gedit,將指令的輸出傳送到 文字檔案。例" +"如,如果要將 ls 指令的輸出傳送到文字檔案,請鍵入 " +"ls | gedit,然後按下 Return 鍵。" + +#: ../base.xml:536(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" +"ls 指令的輸出,會 在 gedit 視窗" +"中以一個新的文字檔案顯示。" + +#: ../base.xml:538(para) +msgid "" +"Alternatively, you can use the Shell command plugin to pipe command output " +"to the current file. For information about how to use the Shell command " +"plugin, see ." +msgstr "" +"或者,您可以使用 Shell 指令增效模組,將指令輸出 傳送到目前的檔案中。如需如何" +"使用 Shell 指令增效模組的資訊,請參閱 。" + +#: ../base.xml:543(title) +msgid "To Position the Cursor on a Specific Line" +msgstr "將游標移到特定行" + +#: ../base.xml:544(para) +msgid "" +"To position the cursor on a specific line in the current file, perform the " +"following steps:" +msgstr "如果要將游標移到目前檔案中的特定行,請執行下列的 步驟:" + +#: ../base.xml:547(para) +msgid "" +"Choose SearchGo to Line to display the Go to Line " +"dialog." +msgstr "" +"請選擇 搜尋移至 某行 ,顯示移至某行對話方塊。" + +#: ../base.xml:552(para) +msgid "" +"Type the number of the line that you want to move the cursor to in the " +"Line number field." +msgstr "" +"如果您想把游標移動到某一行,請將 行數鍵入行數欄位中。" + +#: ../base.xml:555(para) +msgid "" +"Click Go to Line. The application moves the cursor to " +"the line number that you specify." +msgstr "" +"按一下移至某行。應用程式 便會將游標移動至您指定的行" +"數。" + +#: ../base.xml:558(para) +msgid "" +"To close the Go to Line dialog, click Close." +msgstr "" +"如果要關閉移至某行對話方塊,請按一下關閉。" + +#: ../base.xml:563(title) +msgid "To Change the Input Mode" +msgstr "變更輸入模式" + +#: ../base.xml:564(para) +msgid "" +"To change the input mode, right-click in the text window, then select " +"Input Methods. The Insert Unicode " +"control character menu item provides character layout options " +"that are useful for working with non-Latin character sets." +msgstr "" +"如果要變更輸入模式,請在文字視窗上按滑鼠右鍵,然後選取 輸入方法" +"插入統一碼控制字元功能表項目會提" +"供字元配置選項,這對使用非拉丁語系的字元集很有幫助。" + +#: ../base.xml:570(title) +msgid "To Print a File" +msgstr "列印檔案" + +#: ../base.xml:571(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "您可以使用gedit,執行 下列列印作業:" + +#: ../base.xml:574(para) +msgid "Print a file to a printer." +msgstr "由印表機列印檔案。" + +#: ../base.xml:576(para) +msgid "Print the output of the print command to a file." +msgstr "將列印指令的輸出列印到檔案。" + +#: ../base.xml:579(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" +"如果您是列印至檔案,gedit 會先將 檔案輸出傳送到某" +"個印前格式檔案。最常見的印前 格式為 PostScript 與 Portable Document Format " +"(PDF)。" + +#: ../base.xml:583(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" +"如果要預覽想列印的頁面,請選擇 檔案預覽列印。" + +#: ../base.xml:587(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" +"如果要將目前的檔案列印至印表機或檔案,請選擇 檔案列印 ,顯示列印對話方塊。" + +#: ../base.xml:592(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "列印對話方塊可以讓您指定下列 列印選項:" + +#: ../base.xml:596(title) +msgid "Printer Tabbed Section" +msgstr "印表機標籤區段" + +#: ../base.xml:598(term) +msgid "Printer pane" +msgstr "印表機窗格" + +#: ../base.xml:600(para) +msgid "Select the printer to which you want to print the file." +msgstr "選取您要列印檔案 的印表機。" + +#: ../base.xml:604(guilabel) +msgid "Print range" +msgstr "列印範圍" + +#: ../base.xml:606(para) +msgid "" +"Select one of the following options to determine how many pages to print:" +msgstr "選取下列任一選項,決定 要列印的頁數:" + +#: ../base.xml:610(guilabel) +msgid "All" +msgstr "全部" + +#: ../base.xml:611(para) +msgid "Select this option to print all of the pages in the file." +msgstr "選取這個選項,會列印檔案中的所有頁面。" + +#: ../base.xml:614(guilabel) +msgid "Selection" +msgstr "選取部分" + +#: ../base.xml:615(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" +"選取這個選項,只會列印所選取的文字。這個選項 只有當您已選取文字後,才能使用。" + +#: ../base.xml:622(guilabel) +msgid "Number of copies" +msgstr "列印份數" + +#: ../base.xml:624(para) +msgid "" +"Use this spin box to specify the number of copies of the file that you want " +"to print." +msgstr "使用這個旋轉方塊以指定您要列印檔案的副本數。" + +#: ../base.xml:628(guilabel) +msgid "Collate" +msgstr "理序" + +#: ../base.xml:630(para) +msgid "" +"If you are printing multiple copies of the file, select this option to " +"collate the printed copies." +msgstr "如果您要將檔案列印多份副本,請選取這個選項,以理序已列印的副本。" + +#: ../base.xml:634(guilabel) +msgid "Filename" +msgstr "檔案名稱" + +#: ../base.xml:636(para) +msgid "" +"To print the file to a print file, type the name of the output file in this " +"text box." +msgstr "如果要列印檔案至列印檔案,請在這個文字方塊中輸入輸出檔案的名稱。" + +#: ../base.xml:643(title) +msgid "Paper Tabbed Section" +msgstr "紙張標籤區段" + +#: ../base.xml:645(guilabel) +msgid "Paper size" +msgstr "紙張大小" + +#: ../base.xml:647(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "請使用這個下拉式清單,選取列印檔案用的紙張大小。" + +#: ../base.xml:651(guilabel) +msgid "Width" +msgstr "寬度" + +#: ../base.xml:653(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit for specifying the paper size." +msgstr "" +"請使用這個旋轉方塊,指定紙張寬度。請使用 旁邊的下拉式清單,變更 指定紙張大小" +"的度量單位。" + +#: ../base.xml:658(guilabel) +msgid "Height" +msgstr "高度" + +#: ../base.xml:660(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "請使用這個選轉方塊,指定紙張高度。" + +#: ../base.xml:663(guilabel) +msgid "Feed orientation" +msgstr "入紙方向" + +#: ../base.xml:665(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "請使用這個下拉式清單來選取印表機 的紙張方向。" + +#: ../base.xml:669(guilabel) +msgid "Page orientation" +msgstr "紙張方向" + +#: ../base.xml:671(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "請使用這個下拉式清單,選取紙張方向。" + +#: ../base.xml:674(guilabel) +msgid "Layout" +msgstr "配置" + +#: ../base.xml:676(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" +"請使用這個下拉式清單,選取頁面的版面配置。您選取的每個版面配置,其預覽會顯示" +"在預覽區域中。" + +#: ../base.xml:687(title) +msgid "To Customize the Toolbar and Statusbar" +msgstr "自訂工具列與狀態列" + +#: ../base.xml:689(para) +msgid "" +"To display or hide the toolbar, choose ViewToolbar. To customize how " +"gedit displays the toolbar, choose " +"ViewCustomize Toolbar, then select one of the following menu items:" +msgstr "" +"如果要顯示或隱藏工具列,請選擇檢視工具列。如果要自訂 " +"gedit 顯示工具列的方式,請選擇" +"檢視自訂工具列,然後選取下列任一項 功能表項目:" + +#: ../base.xml:696(guimenuitem) +msgid "Desktop Default" +msgstr "桌面預設值" + +#: ../base.xml:697(para) +msgid "Display the default toolbar." +msgstr "顯示預設的工具列。" + +#: ../base.xml:700(guimenuitem) +msgid "Icon" +msgstr "圖示" + +#: ../base.xml:701(para) +msgid "Display icons only." +msgstr "僅顯示圖示。" + +#: ../base.xml:704(guimenuitem) +msgid "Icon and Text" +msgstr "圖示與文字" + +#: ../base.xml:705(para) +msgid "Display icons and text." +msgstr "顯示圖示與文字。" + +#: ../base.xml:708(guimenuitem) +msgid "Priority Text beside Icons" +msgstr "在優先項目上顯示圖示及文字" + +#: ../base.xml:709(para) +msgid "Display icons, and display text beside some of the icons." +msgstr "顯示圖示,以及顯示一些圖示旁的文字。" + +#: ../base.xml:712(para) +msgid "" +"To display or hide the statusbar, choose ViewStatusbar. To customize how " +"gedit displays the statusbar, choose " +"ViewCustomize Statusbar, then select one of the following menu items:" +msgstr "" +"如果要顯示或隱藏狀態列,請選擇檢視狀態列。如果要自訂 " +"gedit 顯示狀態列的方式,請選擇" +"檢視自訂狀態列,然後選取下列任一項 功能表項目:" + +#: ../base.xml:719(guimenuitem) +msgid "Show Cursor Position" +msgstr "顯示游標位置" + +#: ../base.xml:720(para) +msgid "Display the line number and column number where the cursor is located." +msgstr "顯示游標所在的行數與欄數。" + +#: ../base.xml:723(guimenuitem) +msgid "Show Overwrite Mode" +msgstr "顯示覆寫模式" + +#: ../base.xml:724(para) +msgid "" +"Display the editing mode. If the editor is in insert mode, the statusbar " +"contains the word INS. If the editor is in overwrite mode, the statusbar " +"contains the word OVR." +msgstr "" +"顯示編輯模式。如果編輯器是處於插入模式,狀態列便會出現 INS 字樣。如果編輯器是" +"處於覆寫模式,狀態列便會出現 OVR 字樣。" + +#: ../base.xml:728(para) +msgid "" +"To display or hide the output window, choose ViewOutput Window." +msgstr "" +"如果要顯示或隱藏輸出視窗,請選擇檢視輸出視窗。" + +#: ../base.xml:735(title) +msgid "Preferences" +msgstr "偏好設定" + +#: ../base.xml:737(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" +"如果要配置 gedit,請選擇 編輯" +"偏好設定偏好設" +"定對話方塊含有下列 種類:" + +#: ../base.xml:754(title) +msgid "Editor" +msgstr "編輯器" + +#: ../base.xml:755(para) +msgid "" +"The Editor category is subdivided into the following " +"subcategories:" +msgstr "編輯器的種類又可分為下列幾種 子類:" + +#: ../base.xml:759(title) +msgid "Fonts and Colors" +msgstr "字型與色彩" + +#: ../base.xml:761(guilabel) +msgid "Use default theme font" +msgstr "使用預設配色字型" + +#: ../base.xml:763(para) +msgid "" +"Select this option to use the default system font for the text in the " +"gedit text window." +msgstr "" +"選取這個選項,在 gedit 文字視窗的文字中,會使用系" +"統預設的字型。" + +#: ../base.xml:766(guilabel) +msgid "Editor font" +msgstr "編輯器字型" + +#: ../base.xml:768(para) +msgid "" +"This field displays the font that gedit uses to " +"display text. Click on the button to specify the font type, style, and size " +"to use for text." +msgstr "" +"這個欄位會顯示 gedit 用來顯示文字的字型。 按一下按" +"鈕,指定文字所使用的字體類型、樣式與大小。" + +#: ../base.xml:772(guilabel) +msgid "Use default theme colors" +msgstr "使用預設的配色色彩" + +#: ../base.xml:774(para) +msgid "" +"Select this option to use the default theme colors in the " +"gedit text window." +msgstr "" +"選取這個選項,會在 gedit 文字視窗中,使用預設的配" +"色色彩。" + +#: ../base.xml:777(guilabel) +msgid "Text color" +msgstr "文字色彩" + +#: ../base.xml:779(para) +msgid "" +"Click on the Text color button to display the color " +"selector dialog. Select a color to use to display text in the " +"gedit text window." +msgstr "" +"按一下文字色彩按鈕, 顯示色彩選擇元件對話方塊。請選取" +"顏色,程式會在 gedit 文字視窗中,以該顏色顯示文" +"字。" + +#: ../base.xml:784(guilabel) +msgid "Background color" +msgstr "背景色彩" + +#: ../base.xml:786(para) +msgid "" +"Click on the Background color button to display the " +"color selector dialog. Select a background color for the gedit text window." +msgstr "" +"按一下背景色彩按鈕, 顯示色彩選擇元件對話方塊。請為 " +"gedit 文字視窗選取背景色彩。" + +#: ../base.xml:791(guilabel) +msgid "Selected text color" +msgstr "選取文字的色彩" + +#: ../base.xml:793(para) +msgid "" +"Click on the Selected text color button to display " +"the color selector dialog. Select a color to use to display selected text." +msgstr "" +"按一下選取文字的色彩按鈕, 顯示色彩選擇元件對話方塊。" +"請選取用來顯示選取文字的色彩。" + +#: ../base.xml:798(guilabel) +msgid "Selection color" +msgstr "選取區域的色彩" + +#: ../base.xml:800(para) +msgid "" +"Click on the Selection color button to display the " +"color selector dialog. Select a background color to use to highlight a text " +"selection." +msgstr "" +"按一下選取區域的色彩按鈕, 顯示色彩選擇元件對話方塊。" +"請選取背景色彩,用來反白顯示選取的文字。" + +#: ../base.xml:809(title) +msgid "Tabs" +msgstr "跳格" + +#: ../base.xml:811(guilabel) +msgid "Set tabs width equivalent to" +msgstr "tab 字元的寬度為" + +#: ../base.xml:813(para) +msgid "" +"Use this spin box to specify the width of the space that " +"gedit inserts when you press the Tab key." +msgstr "" +"請使用這個旋轉方塊,指定 gedit 在您按下 " +"Tab 鍵時會加入的空格寬度。" + +#: ../base.xml:818(guilabel) +msgid "Insert spaces instead of tabs" +msgstr "以插入空格取代跳格" + +#: ../base.xml:820(para) +msgid "" +"Select this option to specify that gedit inserts " +"spaces instead of a tab character when you press the Tab " +"key." +msgstr "" +"選取這個選項可以指定 gedit 在您按下 Tab 鍵時,以插入空格取 代跳格字元。" + +#: ../base.xml:830(title) +msgid "Wrap Mode" +msgstr "換行模式" + +#: ../base.xml:832(guilabel) ../base.xml:1003(guilabel) +msgid "Enable text wrapping" +msgstr "啟用文字換行" + +#: ../base.xml:833(para) +msgid "" +"Select this option to wrap text onto the next line, at a character level, " +"when you reach the text window boundary." +msgstr "選取這個選項可以在到達文字視窗 界限時,以字元為單位將文字換到下一行。" + +#: ../base.xml:837(guilabel) +msgid "Do not split words over two lines" +msgstr "不要將字分成兩行" + +#: ../base.xml:838(para) +msgid "" +"Select this option to wrap text onto the next line, at a word level, when " +"you reach the text window boundary." +msgstr "選取這個選項可以在到達文字視窗 界限時,以字為單位將文字換到下一行。" + +#: ../base.xml:846(title) +msgid "Auto Indent" +msgstr "自動縮排" + +#: ../base.xml:848(guilabel) +msgid "Enable auto indentation" +msgstr "啟用自動縮排" + +#: ../base.xml:849(para) +msgid "" +"Select this option to specify that the next line starts at the indentation " +"level of the current line." +msgstr "選取這個選項可以指定下一行使用目前這一行的縮排設定。" + +#: ../base.xml:857(title) +msgid "Line Numbers" +msgstr "行號" + +#: ../base.xml:859(guilabel) +msgid "Display line numbers" +msgstr "顯示行號" + +#: ../base.xml:861(para) +msgid "" +"Select this option to display line numbers on the left side of the " +"gedit window." +msgstr "選取這個選項,會在 gedit 視窗左側顯示行號。" + +#: ../base.xml:869(title) +msgid "Open" +msgstr "開啟" + +#: ../base.xml:871(guilabel) +msgid "Supported encodings" +msgstr "支援的編碼" + +#: ../base.xml:872(para) +msgid "" +"A character encoding is a method of converting bytes to characters. " +"Different encodings might convert the same byte sequence into different " +"characters, or might produce invalid output. If you open a file using the " +"same encoding as that used to create the file, all characters are displayed " +"as intended. However, if you open a file using a different encoding, some " +"characters might not be displayed correctly, or an error might be returned." +msgstr "" +"字元編碼,是將位元組轉換為字元的方式。 不同的編碼方式會將相同的位元組序列轉換" +"為不同的字元,或產生無效的輸出。 如果您是以建立檔案時所用的編碼,來開啟該檔" +"案,則所有的字元顯示,都會跟原來建立時一模一樣。 然而,如果您開啟檔案時的編碼" +"不是原來的編碼,有些字元的顯示可能會不正常,或者,系統會傳回錯誤訊息。" + +#: ../base.xml:877(para) +msgid "" +"By default, gedit uses UTF-8 encoding to try to " +"open a file. UTF-8 encoding can be used for multilingual texts, as UTF-8 " +"covers almost all known alphabets and character sets. If the file is not a " +"valid UTF-8 file, gedit tries to open the file by " +"using the encoding for the current locale. If this also fails, " +"gedit tries to use an encoding from the Supported " +"encodings list, starting at the top of the list." +msgstr "" +"依預設值,gedit 是使用 UTF-8 編碼來開啟檔案。UTF-" +"8 編碼可用於內含多種語言的文件,因為 UTF-8 涵蓋了大多數已知的字母與字元集。如" +"果檔案並不是有效的 UTF-8 檔,gedit 會試著以目前語" +"系的編碼來開啟檔案。如果這樣依然有問題,gedit 會從" +"支援的編碼清單中第一個編碼方式開始,一個個地來試著開啟檔案。" + +#: ../base.xml:880(para) +msgid "" +"To modify the contents of the Supported encodings list, use the buttons " +"described in the following table:" +msgstr "如果要修改支援的編碼清單內容,請使用下列表格所述的按鈕:" + +#: ../base.xml:889(para) +msgid "Button" +msgstr "按鈕" + +#: ../base.xml:890(para) +msgid "Description" +msgstr "說明" + +#: ../base.xml:895(guilabel) +msgid "Add" +msgstr "新增" + +#: ../base.xml:896(para) +msgid "Adds an encoding to the list." +msgstr "將編碼加入清單。" + +#: ../base.xml:899(guilabel) +msgid "Remove" +msgstr "移除" + +#: ../base.xml:900(para) +msgid "Removes an encoding from the list." +msgstr "將編碼從清單中移除。" + +#: ../base.xml:903(para) +msgid "Up arrow" +msgstr "向上箭頭" + +#: ../base.xml:904(para) +msgid "Moves an encoding to a higher position in the list." +msgstr "將編碼移到清單中較高的位置。" + +#: ../base.xml:907(para) +msgid "Down arrow" +msgstr "向下箭頭" + +#: ../base.xml:908(para) +msgid "Moves an encoding to a lower position in the list." +msgstr "將編碼移到清單中較低的位置。" + +#: ../base.xml:919(title) +msgid "Save" +msgstr "儲存" + +#: ../base.xml:921(guilabel) +msgid "Create a backup copy of files before saving" +msgstr "在儲存前先建立檔案備份副本" + +#: ../base.xml:923(para) +msgid "" +"Select this option to create a backup copy of a file each time you save the " +"file. The backup copy of the file contains a ~ at the end of the filename." +msgstr "" +"選取這個選項,可以在每次儲存檔案時,建立備份副本。檔案的備份 副本在檔名的最末" +"會以波浪號 (˜) 做結尾。" + +#: ../base.xml:927(guilabel) +msgid "Autosave current file every" +msgstr "自動儲存目前檔案的時間間隔" + +#: ../base.xml:929(para) +msgid "" +"Select this option to automatically save the current file at regular " +"intervals. Use the spin box to specify the interval at which you want to " +"save the file." +msgstr "" +"選取這個選項,會自動地在固定的時間間隔,儲存目前的檔案。請使用這個旋轉方塊," +"指定儲存檔案的時間間隔。" + +#: ../base.xml:933(guilabel) +msgid "When saving an existing file" +msgstr "儲存現有的檔案時" + +#: ../base.xml:935(para) +msgid "Select one of the following save options:" +msgstr "請選取下列任一項儲存選項:" + +#: ../base.xml:938(guilabel) ../base.xml:958(guilabel) +msgid "Always use UTF-8 encoding (faster)" +msgstr "總是使用 UTF-8 編碼 (較快)" + +#: ../base.xml:939(para) +msgid "Select this option to save files using UTF-8 encoding." +msgstr "選取這個選項,會使用 UTF-8 編碼儲存檔案。" + +#: ../base.xml:942(guilabel) ../base.xml:962(guilabel) +msgid "Use current locale's encoding if possible" +msgstr "可能的話,儲存時請使用目前語言環境的編碼" + +#: ../base.xml:943(para) +msgid "" +"Select this option to save files using the current locale. You can set up " +"locales for different input methods." +msgstr "" +"選取這個選項,會使用目前的語言儲存檔案。您可以為不同的輸入法設定語言環境。" + +#: ../base.xml:947(guilabel) +msgid "Use original file encoding if possible" +msgstr "可能的話,請使用原始檔案的編碼" + +#: ../base.xml:948(para) +msgid "" +"Select this option to save a file using the current locale if the file was " +"already saved in the current locale." +msgstr "" +"選取這個選項,如果檔案已經是使用目前的區性儲存過,程式會使用目前區性來儲存檔" +"案 。" + +#: ../base.xml:953(guilabel) +msgid "When saving a new file" +msgstr "儲存新檔案時" + +#: ../base.xml:955(para) +msgid "Select one of the following save options for new files:" +msgstr "請為新檔案選取下列任一項儲存選項:" + +#: ../base.xml:959(para) +msgid "Select this option to save new files using UTF-8 encoding." +msgstr "選取這個選項,會使用 UTF-8 編碼儲存新檔案。" + +#: ../base.xml:963(para) +msgid "" +"Select this option to save new files using the current locale. You can set " +"up locales for different input methods." +msgstr "" +"選取這個選項,會使用目前的語言環境儲存新檔案。您可以為不同的輸入法設定語言環" +"境。" + +#: ../base.xml:975(title) +msgid "Undo" +msgstr "復原" + +#: ../base.xml:977(guilabel) +msgid "Set limit on undo actions to" +msgstr "復原的次數限制為" + +#: ../base.xml:979(para) +msgid "" +"Select this option to set a limit on the number of editing actions that you " +"can undo. Use the spin box to specify the maximum number of actions that you " +"can undo." +msgstr "" +"選取這個選項,可以限制編輯動作的 可復原次數。請使用旋轉方塊,指定 可復原動作" +"的最多次數。" + +#: ../base.xml:990(title) +msgid "Print" +msgstr "列印" + +#: ../base.xml:991(para) +msgid "" +"The Print category is subdivided into the following " +"subcategories:" +msgstr "列印種類又可分為下列幾種 子類:" + +#: ../base.xml:995(title) +msgid "Page" +msgstr "頁面" + +#: ../base.xml:997(guilabel) +msgid "Print page headers" +msgstr "列印頁面標頭" + +#: ../base.xml:999(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "選取這個選項,會在列印的每一頁上面 加上標頭。您無法配置標頭。" + +#: ../base.xml:1005(para) +msgid "" +"Select this option to automatically wrap text at a word level when you print " +"a file. The application counts wrapped lines as one line for line numbering " +"purposes." +msgstr "" +"選取這個選項,在列印檔案時,可以自動以字為單位 換行。應用程式每換行一次計為一" +"行。" + +#: ../base.xml:1010(guilabel) +msgid "Print line numbers every" +msgstr "每次印出行號相隔的行數" + +#: ../base.xml:1013(para) +msgid "" +"Select this option to include line numbers when you print a file. Use the " +"spin box to specify how often to print the line numbers, for example every 5 " +"lines, every 10 lines, and so on." +msgstr "" +"選取這個選項,會在列印檔案時 加上行數。請使用旋轉方塊,指定列印行號的間隔。" +"例 如,每 5 行或每 10 行等。" + +#: ../base.xml:1022(title) +msgid "Fonts" +msgstr "字型" + +#: ../base.xml:1024(guilabel) +msgid "Body" +msgstr "內文" + +#: ../base.xml:1026(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "按一下這個按鈕,可以選取列印檔案內容文字時,所要使用的字型。" + +#: ../base.xml:1030(guilabel) +msgid "Page headers" +msgstr "頁面標頭" + +#: ../base.xml:1032(para) +msgid "" +"Click on this button to select the font to use to print the headers in a " +"file." +msgstr "按一下這個按鈕,可以選取列印檔案標頭時,所要使用的字型。" + +#: ../base.xml:1036(guilabel) +msgid "Line numbers" +msgstr "行號" + +#: ../base.xml:1039(para) +msgid "Click on this button to select a font to use to print line numbers." +msgstr "按一下這個按鈕,可以選取列印行號時的字型。" + +#: ../base.xml:1043(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit click on the Restore Default " +"Fonts button." +msgstr "" +"如果要將 gedit 列印檔案時的字型,重設為預設值, 請" +"按一下還原預設字型按鈕。" + +#: ../base.xml:1050(title) +msgid "Plugins" +msgstr "增效模組" + +#: ../base.xml:1051(para) +msgid "" +"For information about how to use the Plugins category " +"of the Preferences dialog, see ." +msgstr "" +"關於如何使用偏好設定對話方塊的增效模組類別,進一步資訊請參閱 。" + +#: ../base.xml:1058(title) +msgid "Working with Plugins" +msgstr "使用增效模組" + +#: ../base.xml:1059(para) +msgid "" +"A plugin is a supplementary program that enhances the functionality of an " +"application. The gedit plugins enable you to " +"perform a variety of functions related to text editing from within the " +" gedit window. The following table lists the " +" gedit plugins." +msgstr "" +"增效模組是一種以可增強應用程式功能的 補強性程式。您可以使用 " +"gedit 增效模組,在 gedit 視窗內,執行多種文字編輯功能。下表所列的,便是 " +"gedit 的增效模組。" + +#: ../base.xml:1070(para) ../base.xml:1150(para) +msgid "Plugin Name" +msgstr "增效模組名稱" + +#: ../base.xml:1071(para) +msgid "Purpose" +msgstr "用途" + +#: ../base.xml:1076(para) ../base.xml:1156(para) +msgid "ASCII table" +msgstr "ASCII 表 (ASCII 表格)" + +#: ../base.xml:1077(para) +msgid "" +"Displays a dialog that contains an ASCII table. You can use the ASCII table " +"to insert characters into a file." +msgstr "顯示包含 ASCII 表的對話方塊。您可以使用 ASCII 表,在檔案中插入字元。" + +#: ../base.xml:1080(para) ../base.xml:1161(para) +msgid "CVS ChangeLog" +msgstr "CVS 變更Log" + +#: ../base.xml:1081(para) +msgid "Opens the log messages associated with CVS commit commands." +msgstr "開啟與 CVS 確定指令相關的日誌記錄訊息。" + +#: ../base.xml:1084(para) ../base.xml:1166(para) ../base.xml:1168(guimenuitem) +msgid "Compare Files" +msgstr "比較檔案" + +#: ../base.xml:1085(para) +msgid "" +"Compares two files and displays the differences between the files in the " +"output window. This plugin uses the diff command to " +"compare the files." +msgstr "" +"比較兩個檔案,並將檔案的不同處,顯示在輸出視窗中。 這個增效模組是使用 " +"diff 指令來比較檔案。" + +#: ../base.xml:1089(para) ../base.xml:1171(para) ../base.xml:1173(guimenuitem) +msgid "Document Statistics" +msgstr "文件統計資料" + +#: ../base.xml:1090(para) +msgid "" +"Counts the number of lines, words, characters, and bytes in the current " +"file. The plugin displays the results in a Document Statistics dialog." +msgstr "" +"計算目前檔案的行數、字數、字元數和位元組數。增效模組 會在文件統計資" +"料對話方塊中顯示結果。" + +#: ../base.xml:1094(para) ../base.xml:1176(para) +msgid "Indent lines" +msgstr "縮排行" + +#: ../base.xml:1095(para) +msgid "" +"Indents the selected lines, or removes the indentation from the selected " +"lines." +msgstr "將選取的行縮排,或移除選取行的縮排設定。" + +#: ../base.xml:1098(para) ../base.xml:1183(para) +msgid "Insert Date/Time" +msgstr "加入日期/時間 (插入 Date/Time)" + +#: ../base.xml:1099(para) +msgid "Inserts the current date and time into a file." +msgstr "在檔案中加入目前的日期及時間。" + +#: ../base.xml:1102(para) ../base.xml:1188(para) +msgid "Shell command" +msgstr "Shell 指令" + +#: ../base.xml:1103(para) +msgid "Displays the text output of a shell command in the output window." +msgstr "將 shell 指令的文字輸出顯示於輸出視窗。" + +#: ../base.xml:1106(para) ../base.xml:1193(para) ../base.xml:1195(guimenuitem) +msgid "Sort" +msgstr "排序" + +#: ../base.xml:1107(para) +msgid "Sorts the selected text." +msgstr "將選取的文字排序。" + +#: ../base.xml:1110(para) ../base.xml:1198(para) +msgid "Tag list" +msgstr "標記清單 (Tag 清單)" + +#: ../base.xml:1111(para) +msgid "" +"Displays a window that contains a list of common tags. You can use the " +"window to insert a tag into a file." +msgstr "顯示包含一般標記清單的視窗。您可以使用本視窗 將標記加入檔案。" + +#: ../base.xml:1115(para) ../base.xml:1203(para) +msgid "User name" +msgstr "使用者名稱 (使用r 名稱)" + +#: ../base.xml:1116(para) +msgid "Inserts the username of the current user into the file." +msgstr "將目前的使用者名稱加入到檔案中。" + +#: ../base.xml:1123(title) +msgid "To Load gedit Plugins" +msgstr "載入 gedit 增效模組" + +#: ../base.xml:1124(para) +msgid "" +"To load gedit plugins, choose " +"EditPreferences. Within the Plugins category, click on the " +"Manager subcategory. The Manager " +"subcategory displays the following information:" +msgstr "" +"如果要載入 gedit增效模組,請選擇" +"編輯偏好設定。在增效模組類別中,按一下管理員子類別。 管理員子類別會顯示下列資訊:" + +#: ../base.xml:1131(para) +msgid "" +"A list of the plugins that you can use with gedit." +msgstr "可以與 gedit 一同使用之增效模組的清單。" + +#: ../base.xml:1133(para) +msgid "" +"A Configure plugin button. You can use this button to " +"open a configuration dialog for the plugins that you can configure. For " +"example, see and ." +msgstr "" +"配置增效模組 按鈕。您可以使用這個按鈕,為您可以配置的" +"增效模組,開啟配置對話方塊。例如,請參閱 以及 。" + +#: ../base.xml:1136(para) +msgid "" +"A brief description of each plugin. To display a description, select the " +"plugin from the list of plugins." +msgstr "" +"每一個增效模組的簡短說明。如果要顯示說明,請從增效模組清單中選取增效模組。" + +#: ../base.xml:1139(para) +msgid "Details about the author of the plugin and the name of the module." +msgstr "增效模組作者及模組名稱之詳細資訊。" + +#: ../base.xml:1142(para) +msgid "" +"To load a plugin, select the check box next to the name of the plugin. The " +"gedit application adds the plugin to the " +"appropriate gedit menu, as described in the " +"following table." +msgstr "" +"如果要載入增效模組,請選取增效模組名稱旁的核取方塊。gedit 應用程式 會如下表所述,將外掛程式加入適當的 gedit 功能表中。" + +#: ../base.xml:1151(para) +msgid "Added to Menu" +msgstr "加入至功能表" + +#: ../base.xml:1157(guimenu) ../base.xml:1199(guimenu) +msgid "View" +msgstr "檢視" + +#: ../base.xml:1158(guimenuitem) +msgid "ASCII Table" +msgstr "ASCII 表" + +#: ../base.xml:1162(guimenu) +msgid "File" +msgstr "檔案" + +#: ../base.xml:1163(guimenuitem) +msgid "Open CVS ChangeLogs" +msgstr "開啟 CVS 變更Logs" + +#: ../base.xml:1167(guimenu) ../base.xml:1172(guimenu) +#: ../base.xml:1189(guimenu) +msgid "Tools" +msgstr "工具" + +#: ../base.xml:1177(guimenu) ../base.xml:1179(guimenu) +#: ../base.xml:1184(guimenu) ../base.xml:1194(guimenu) +#: ../base.xml:1204(guimenu) +msgid "Edit" +msgstr "編輯" + +#: ../base.xml:1178(guimenuitem) +msgid "Indent" +msgstr "縮排" + +#: ../base.xml:1180(guimenuitem) +msgid "Unindent" +msgstr "減少縮排" + +#: ../base.xml:1185(guimenuitem) +msgid "Insert Date and Time" +msgstr "加入日期和時間" + +#: ../base.xml:1190(guimenuitem) +msgid "Run Command" +msgstr "執行指令" + +#: ../base.xml:1200(guimenuitem) +msgid "Tag List" +msgstr "標記清單" + +#: ../base.xml:1205(guimenuitem) +msgid "Insert User Name" +msgstr "加入使用者名稱" + +#: ../base.xml:1210(para) ../base.xml:1224(para) ../base.xml:1341(para) +#: ../base.xml:1454(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" +"如果要關閉偏好設定對話方塊,請按一下關閉。" + +#: ../base.xml:1216(title) +msgid "To Remove gedit Plugins" +msgstr "移除 gedit 增效模組" + +#: ../base.xml:1217(para) +msgid "A plugin remains loaded when you quit gedit." +msgstr "" +"即使您離開了 gedit,增效模組仍然是載入應用程式中。" + +#: ../base.xml:1218(para) +msgid "" +"To remove gedit plugins, choose " +"EditPreferences. Within the Plugins category, click on the " +"Manager subcategory. To remove a plugin, deselect the " +"check box next to the name of the plugin." +msgstr "" +"如果要移除 gedit 增效模組,請選擇" +"編輯偏好設定。在增效模組類別中,按一下管理員子類別。 如果要移除增效模組,請取消選取增效模組名稱旁的核取方塊。" + +#: ../base.xml:1230(title) +msgid "ASCII Table Plugin" +msgstr "ASCII 表增效模組" + +#: ../base.xml:1231(para) +msgid "" +"The ASCII table plugin displays a dialog that contains an ASCII table. You " +"can use the ASCII table to insert characters into a file. To use the ASCII " +"table plugin, perform the following steps:" +msgstr "" +"ASCII 表增效模組會顯示一個對話方塊,其內含有 ASCII 表。您可以使用 ASCII 表," +"在檔案中插入字元。 如果要使用 ASCII 表增效模組,請執行下列的步驟:" + +#: ../base.xml:1234(para) +msgid "Load the ASCII table plugin." +msgstr "載入 ASCII 表增效模組。" + +#: ../base.xml:1236(para) +msgid "" +"Choose ViewASCII Table to display the ASCII Table " +"dialog." +msgstr "" +"請選擇檢視ASCII 表,顯示 ASCII 表對話方塊。" + +#: ../base.xml:1240(para) +msgid "" +"Scroll through the list to find the character that you require, then select " +"the character with a single click." +msgstr "在清單中捲動,找尋您所需的字元,然後在字元上按一下,選取該字元。" + +#: ../base.xml:1243(para) +msgid "" +"Click on the Insert char button to insert the " +"character at the cursor position in the current file." +msgstr "" +"按一下加入字元按鈕,將字元加入目前游標所在的檔案位置" +"上。" + +#: ../base.xml:1246(para) +msgid "" +"When you finish entering ASCII characters, click Close to close the ASCII Table dialog." +msgstr "" +"完成所有 ASCII 字元輸入後,請按一下關閉,關閉 " +"ASCII 表對話方塊。" + +#: ../base.xml:1253(title) +msgid "CVS ChangeLog Plugin" +msgstr "CVS ChangeLog 增效模組" + +#: ../base.xml:1254(para) +msgid "" +"The CVS ChangeLog plugin opens the log messages associated with CVS commit " +"commands. This plugin enables you to easily paste text into the commit " +"message from the ChangeLog file. To use the CVS ChangeLog plugin, perform " +"the following steps:" +msgstr "" +"CVS ChangeLog 增效模組會開啟與 CVS commit 指令相關的記錄訊息。 這個增效模組可" +"以讓您輕易地從 ChangeLog 檔案中,將文字貼入 commit 訊息裡。 如果要使用 CVS 變" +"更Log 增效模組,請執行下列步驟:" + +#: ../base.xml:1258(para) +msgid "" +"Set the environment variable CVSEDITOR to gedit. " +"For example, if you are using the bash shell, run the " +"following command at the operating system prompt: export " +"CVSEDITOR=gedit " +msgstr "" +"將環境變數 CVSEDITOR 設為 gedit。 例如,如果您正在" +"使用 bash shell,請在作業系統 提示的時候,輸入下面的指" +"令: export CVSEDITOR=gedit " + +#: ../base.xml:1264(para) +msgid "" +"Commit a file to CVS in the usual way. A gedit " +"window opens, to enable you to enter the commit message." +msgstr "" +"以平常的方式將檔案確定至 CVS。此時會開啟 gedit 視" +"窗,讓您輸入 commit 訊息。" + +#: ../base.xml:1267(para) +msgid "Load the CVS ChangeLog plugin." +msgstr "載入 CVS ChangeLog 增效模組。" + +#: ../base.xml:1269(para) +msgid "" +"Choose FileOpen CVS ChangeLogs to open all of the ChangeLog files referenced in " +"the commit message. gedit opens each ChangeLog " +"file in a new tab." +msgstr "" +"請選擇 檔案開啟 CVS ChangeLogs,開啟所有 commit 訊息中所出現的 ChangeLog 檔案。" +"gedit 會為每個 變更Log 檔案開啟一個新標籤。" + +#: ../base.xml:1272(para) +msgid "" +"Copy the ChangeLog entries that you want to add to the commit message from " +"the gedit ChangeLog files." +msgstr "" +"gedit ChangeLog 檔案中,複製您想加入 commit 訊息" +"的 ChangeLog 記錄。" + +#: ../base.xml:1275(para) +msgid "" +"Insert the copied ChangeLog entries in the gedit " +"commit message tab." +msgstr "" +"將 ChangeLog 記錄加入 gedit 的 commit 訊息標籤內。" + +#: ../base.xml:1278(para) +msgid "Save your changes to the commit message, then close all files." +msgstr "儲存您對 commit 訊息所做的變更,然後關閉所有的檔案。" + +#: ../base.xml:1281(para) +msgid "Quit gedit." +msgstr "結束 gedit。" + +#: ../base.xml:1288(title) +msgid "Compare Files Plugin" +msgstr "比較檔案增效模組" + +#: ../base.xml:1289(para) +msgid "" +"The Compare Files plugin compares two files and displays the differences " +"between the files in the output window. This plugin uses the diff command to compare the files. To use the Compare Files plugin, " +"perform the following steps:" +msgstr "" +"比較檔案增效模組會比較兩個檔案,並將這兩個檔案不同的地方,顯示在輸出視窗中。 " +"這個增效模組會使用 diff 指令來比較檔案。 如果要使用比較檔" +"案增效模組,請執行下列的步驟:" + +#: ../base.xml:1293(para) +msgid "Load the Compare Files plugin." +msgstr "載入比較檔案增效模組。" + +#: ../base.xml:1295(para) +msgid "" +"Choose ToolsCompare Files. When you choose this option for the first time, " +"you are prompted to confirm the location of the diff " +"command. You are not prompted for this location again. See for information about how to change this " +"location later." +msgstr "" +"請選擇 工具比較檔案。 當您是第一次選擇這個選項,系統會提示您,請您確認 " +"diff 指令的位置。以後則不會再提示您確認位置。若需如何在日" +"後變更這個位置的詳細資訊,請參閱 。" + +#: ../base.xml:1299(para) +msgid "" +"Click OK to display the Compare Files dialog." +msgstr "" +"按一下確定,顯示比較檔案對話方" +"塊。" + +#: ../base.xml:1302(para) +msgid "" +"Specify the files that you want to compare. To specify an open file, select " +"the file from the drop-down list. To specify a closed file, enter the " +"location of the file in the text box." +msgstr "" +"指定您想要比較的檔案。如果要指定已開啟的檔案,請 從下拉式清單中選取。如果要指" +"定關閉的檔案,請在文字方塊中,輸入該檔案的位置。" + +#: ../base.xml:1306(para) +msgid "" +"To ignore changes in the amount of white space, select the Ignore " +"blanks option." +msgstr "如果要忽略空白數量的不同,請選取忽略空白選項。" + +#: ../base.xml:1309(para) +msgid "" +"To use the unified output format, showing three lines of context, select the " +"Use the unified output format option." +msgstr "" +"如果要使用 unified 輸出格式,也就是顯示三行內文的形式,請選取使用 " +"unified 輸出格式選項。" + +#: ../base.xml:1312(para) +msgid "" +"Click on the Compare button to compare the contents " +"of the specified files. The command output is displayed in the output window." +msgstr "" +"按一下比較按鈕,開始比較所指定檔案的內容。指令輸出會顯" +"示在輸出視窗中。" + +#: ../base.xml:1316(para) +msgid "" +"For more information, see diff1." +msgstr "" +"若需詳細的資訊,請參閱 diff1。 您可以選擇下列條件中的一項或以上:" + +#: ../base.xml:1320(title) +msgid "To Configure the Compare Files Plugin" +msgstr "配置比較檔案增效模組" + +#: ../base.xml:1321(para) +msgid "" +"To change the location of the command that the Compare Files plugin uses, " +"perform the following steps:" +msgstr "如果要變更比較檔案增效模組所使用之指令的位置,請執行下列步驟:" + +#: ../base.xml:1323(para) ../base.xml:1425(para) +msgid "" +"Choose EditPreferences." +msgstr "" +"請選擇編輯偏好設定。" + +#: ../base.xml:1326(para) ../base.xml:1428(para) +msgid "" +"Within the Plugins category, click on the " +"Manager subcategory." +msgstr "" +"在增效模組類別中,按一下管理員子類" +"別。" + +#: ../base.xml:1329(para) +msgid "Select the Compare Files plugin." +msgstr "選取比較檔案增效模組。" + +#: ../base.xml:1332(para) +msgid "" +"Click on the Configure plugin button to display the " +"Set program location dialog." +msgstr "" +"按一下配置增效模組按鈕,顯示設定程式位置對話方塊。" + +#: ../base.xml:1335(para) +msgid "" +"Specify the location of the diff command in the " +"Location to search for text box." +msgstr "" +"請指定 diff 指令的位置 (在搜尋的位置" +"文字方塊中)。" + +#: ../base.xml:1338(para) +msgid "" +"Click OK to close the Set program location dialog." +msgstr "" +"按一下確定,關閉設定程式位置對話" +"方塊。" + +#: ../base.xml:1348(title) +msgid "Document Statistics Plugin" +msgstr "文件統計資料增效模組" + +#: ../base.xml:1349(para) +msgid "" +"The Document Statistics plugin counts the number of lines, words, " +"characters, and bytes in the current file. The plugin displays the results " +"in a Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" +"文件統計資料增效模組可以計算目前檔案的行數、字數、字元數和位元組數。增效模組 " +"會在文件統計資料對話方塊中顯示結果。 如果要使用文件統計" +"資料增效模組,請執行下列的步驟:" + +#: ../base.xml:1353(para) +msgid "Load the Document Statistics plugin." +msgstr "載入文件統計資料增效模組。" + +#: ../base.xml:1355(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"display the following information about the file:" +msgstr "" +"請選擇 工具文件統計資料,顯示文件統計資料對話方塊。" +"文件統計資料對話方塊可以顯示下列的檔案資訊:" + +#: ../base.xml:1359(para) +msgid "Number of lines in the current document." +msgstr "目前文件的行數。" + +#: ../base.xml:1362(para) +msgid "Number of words in the current document." +msgstr "目前文件的字數。" + +#: ../base.xml:1365(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "目前文件的字元數,包括空格。" + +#: ../base.xml:1368(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "目前文件的字元數,不包括空格。" + +#: ../base.xml:1371(para) +msgid "Number of bytes in the current document." +msgstr "目前文件的位元組數。" + +#: ../base.xml:1376(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click on " +"the Update button." +msgstr "" +"您可以不斷地更新gedit 檔案,而無須關閉文" +"件統計資料對話方塊。要重新整理文件統計資料對" +"話方塊的內容,請按一下更新按鈕。" + +#: ../base.xml:1379(para) +msgid "" +"To close the Document Statistics dialog, click " +"Close." +msgstr "" +"如果要關閉文件統計資料對話方塊,請按一下關閉" +"。" + +#: ../base.xml:1386(title) +msgid "Indent Lines Plugin" +msgstr "縮排行增效模組" + +#: ../base.xml:1387(para) +msgid "" +"The Indent lines plugin indents the selected lines, or removes the " +"indentation from the selected lines. To use the Indent lines plugin, perform " +"the following steps:" +msgstr "" +"縮排行增效模組會縮排選取的行,或移除選取行的縮排設定。 如果要使用縮排行增效模" +"組,請執行下列的步驟:" + +#: ../base.xml:1390(para) +msgid "Load the Indent lines plugin." +msgstr "載入縮排行增效模組。" + +#: ../base.xml:1392(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" +"選取您要縮排的行。如果要縮排或減少縮排單一行,請將游標置於該行的任一位置上。" + +#: ../base.xml:1395(para) +msgid "" +"Choose EditIndent." +msgstr "" +"請選擇 編輯縮排。" + +#: ../base.xml:1399(para) +msgid "" +"To remove the indentation, select the lines and choose " +"EditUnindent." +msgstr "" +"如果要移除縮排,請選取要移除縮排的行,然後選擇 編輯減少縮排。" + +#: ../base.xml:1407(title) +msgid "Insert Date/Time Plugin" +msgstr "加入日期/時間增效模組" + +#: ../base.xml:1408(para) +msgid "" +"The Insert Date/Time plugin inserts the current date and time into a file. " +"To use the Insert Date/Time plugin, perform the following steps:" +msgstr "" +"加入日期及時間增效模組會將目前的日期及時間,加入檔案中。 如果要使用加入日期/" +"時間增效模組,請執行下列的步驟:" + +#: ../base.xml:1411(para) +msgid "Load the Insert Date/Time plugin." +msgstr "載入加入日期及時間增效模組。" + +#: ../base.xml:1413(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" +"請選擇 編輯加入日期和時間。" + +#: ../base.xml:1415(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click on the Insert button to close the " +"Insert Date and Time dialog; gedit inserts the date/time at the cursor position in the current " +"file." +msgstr "" +"如果您尚未將加入日期/時間增效模組配置成不需提示即自動加入日期/時間," +"gedit 會顯示加入日期和時間對" +"話方塊。從清單中選取適當的日期/時間格式。按一下插入按" +"鈕,關閉加入日期和時間對話方塊;gedit 會在目前檔案的游標位置上插入日期/時間。" + +#: ../base.xml:1416(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed; the date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" +"如果您已經將 gedit 配置成使用特定的日期/時間格式," +"則不會顯示加入日期和時間對話方塊;即會在目前檔案的游標位" +"置上插入日期/時間。" + +#: ../base.xml:1417(para) +msgid "" +"See for information about how " +"to configure the Insert Date/Time plugin." +msgstr "" +"若需如何配置加入日期/時間增效模組的詳細資訊,請參閱 。" + +#: ../base.xml:1422(title) +msgid "To Configure the Insert Date/Time Plugin" +msgstr "配置加入日期/時間增效模組" + +#: ../base.xml:1423(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "如果要配置加入日期及時間增效模組,請執行下列步驟:" + +#: ../base.xml:1432(para) +msgid "Select the Insert Date/Time plugin." +msgstr "選取 加入日期及時間增效模組。" + +#: ../base.xml:1435(para) +msgid "" +"Click on the Configure plugin button to display the " +"Configure insert date/time plugin dialog." +msgstr "" +"按一下配置增效模組按鈕,顯示配置加入日期/時" +"間增效模組對話方塊。" + +#: ../base.xml:1438(para) +msgid "Select one of the options, as follows:" +msgstr "選取下列任一選項:您可以選擇下列條件中的一項或以上:" + +#: ../base.xml:1440(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" +"如果要在每次加入日期/時間時指定日期/時間格式,請選取提示指定格式選項。" + +#: ../base.xml:1443(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" +"如果要在每次加入日期/時間時都使用 gedit 提供的日" +"期/時間格式,請選取使用選取的格式選項,然後從清單中選取" +"適當的格式。當您選取這個選項後,gedit 並不會在您選" +"擇編輯加入日期和時間時,提示您設定日期/時間的格式。" + +#: ../base.xml:1446(para) +msgid "" +"To use the same customized date/time format each time you insert the date/" +"time, select the Use custom format option, then enter " +"the appropriate format in the text box. For more information about how to " +"specify a custom format, see strftime3. When you select this option, " +"gedit does not prompt you for the date/time " +"format when you choose EditInsert Date and Time." +msgstr "" +"如果要在每次加入日期/時間時都使用自訂的日期/時間的格式,請選取使用" +"自訂格式選項,然後在文字方塊中輸入適當的格式。若需如何自訂格式的詳" +"細資訊,請參閱 strftime3。當您選取這個選項後,gedit 並不會在您選擇編輯加" +"入日期和時間時,提示您設定日期/時間的格式。" + +#: ../base.xml:1451(para) +msgid "" +"Click OK to close the Configure insert date/" +"time plugin dialog." +msgstr "" +"按一下確定,關閉配置加入日期/時間增效模組對話方塊。" + +#: ../base.xml:1461(title) +msgid "Shell Command Plugin" +msgstr "Shell 指令增效模組" + +#: ../base.xml:1463(para) +msgid "" +"The Shell Command plugin enables you to capture the output from a shell " +"command in gedit, by displaying the text output " +"of the shell command in the output window. To use the Shell command plugin, " +"perform the following steps:" +msgstr "" +"Shell 指令增效模組可以從 gedit 的 shell 指令擷取輸" +"出,而將 shell 指令的文字輸出 顯示於輸出視窗中。如果要使用 Shell 指令增效模" +"組,請執行 下列的步驟:" + +#: ../base.xml:1467(para) +msgid "Load the Shell command plugin." +msgstr "載入 Shell 指令增效模組。" + +#: ../base.xml:1470(para) +msgid "" +"Choose ToolsRun Command to display the Run Command " +"dialog." +msgstr "" +"請選擇 工具執行指令 ,顯示執行指令對話方塊。" + +#: ../base.xml:1475(para) +msgid "" +"Type the shell command that you want to execute in the Command field." +msgstr "將您想執行的 shell 指令,鍵入 指令欄位中。" + +#: ../base.xml:1477(para) +msgid "You can include the following special characters:" +msgstr "您可以包括下列的特殊字元:" + +#: ../base.xml:1480(literal) +msgid "%f" +msgstr "%f" + +#: ../base.xml:1481(para) +msgid "" +"Use these special characters to specify the filename of the current active " +"document, including the path." +msgstr "使用此類特殊字元,指定目前使用中的檔案名稱,包括路徑。" + +#: ../base.xml:1484(literal) +msgid "%n" +msgstr "%n" + +#: ../base.xml:1485(para) +msgid "" +"Use these special characters to specify the filename of the current active " +"document, without the path. In this case, gedit " +"looks for the file in the Working directory." +msgstr "" +"使用此類特殊字元,指定目前使用中的檔案名稱,不包括路徑。此時," +"gedit 會在工作目錄中找尋檔案。" + +#: ../base.xml:1489(para) +msgid "" +"Edit the Working directory field if necessary. By " +"default, the Shell command plugin executes the command you specify in the " +"current directory." +msgstr "" +"有必要的話,請編輯工作目錄欄位。依預設值,Shell 指令增效" +"模組會執行您在目前目錄中 指定的指令。" + +#: ../base.xml:1493(para) +msgid "" +"Select the Show results in Output Window option to " +"display the results of the command in the output window. If you do not " +"select this option, gedit discards the results of " +"the command." +msgstr "" +"選取在輸出視窗顯示結果選項,在輸出視窗顯示指令的執行結" +"果。如果沒有選取這個選項,gedit 會放棄指令結果。" + +#: ../base.xml:1496(para) +msgid "" +"Click Run. The Shell command plugin executes the " +"command and inserts the text output into the output window." +msgstr "" +"按一下執行。Shell 指令 增效模組會執行該指令,並將文字" +"輸出插入輸出視窗。" + +#: ../base.xml:1500(para) +msgid "" +"Use the Shift key to select the text in the output window." +msgstr "請使用 Shift 鍵在輸出視窗中選取文字。" + +#: ../base.xml:1503(para) +msgid "" +"Click on the Copy selected lines button to copy the " +"selected text into the buffer." +msgstr "" +"按一下複製選取的行按鈕,將選取的文字複製到緩衝區。" + +#: ../base.xml:1506(para) +msgid "" +"Choose EditPaste to paste the selected text into the file." +msgstr "" +"選擇編輯貼上,將選取的文字貼入檔案。" + +#: ../base.xml:1510(para) +msgid "" +"Click on the Close the output window button to close " +"the output window." +msgstr "按一下關閉輸出視窗按鈕,關閉輸出視窗。" + +#: ../base.xml:1517(title) +msgid "Sort Plugin" +msgstr "排序增效模組" + +#: ../base.xml:1518(para) +msgid "The Sort plugin sorts the selected text." +msgstr "排序增效模組可以將選取的文字排序。" + +#: ../base.xml:1519(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" +"您不可以復原排序作業,因此在執行排序前應先儲存檔案。如果要在排序作業後回復成" +"之前儲存的檔案版本,請選擇檔案復" +"原。" + +#: ../base.xml:1522(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "如果要使用排序增效模組,請執行下列的步驟:" + +#: ../base.xml:1524(para) +msgid "Load the Sort plugin." +msgstr "載入增效模組。" + +#: ../base.xml:1526(para) +msgid "" +"Choose EditSort to display the Sort dialog." +msgstr "" +"請選擇 編輯排序,顯示排序對話方塊。" + +#: ../base.xml:1530(para) +msgid "" +"To arrange the text in reverse sort order, select the Reverse " +"order option." +msgstr "如果要反向排序文字,請選取反向排序選項。" + +#: ../base.xml:1533(para) +msgid "" +"To delete duplicate lines, select the Remove duplicates " +"option." +msgstr "如果要刪除重複的行,請選取移除重複的行選項。" + +#: ../base.xml:1536(para) +msgid "" +"To ignore case sensitivity, select the Ignore case " +"option." +msgstr "如果不要區分大小寫,請選取忽略大小寫選項。" + +#: ../base.xml:1539(para) +msgid "" +"To specify the start position of the sort, select the appropriate column " +"from the Start at column spin box." +msgstr "" +"如果要指定排序的啟始位置,請從啟始欄旋轉方塊中選取適當的" +"欄。" + +#: ../base.xml:1542(para) +msgid "" +"To perform the sort operation, click on the Sort " +"button." +msgstr "如果要執行排序作業,請按一下排序按鈕。" + +#: ../base.xml:1549(title) +msgid "Tag List Plugin" +msgstr "速成標記增效模組" + +#: ../base.xml:1550(para) +msgid "" +"The Tag List plugin displays a window that contains a list of common tags. " +"You can use the window to insert a tag into a file. To use the Tag List " +"plugin, perform the following steps:" +msgstr "" +"速成標記增效模組會將常見的標記,顯示在視窗中。您可以使用這個視窗將 標記插入檔" +"案。 如果要使用速成標記增效模組,請執行下列的步驟:" + +#: ../base.xml:1554(para) +msgid "Load the Tag List plugin." +msgstr "載入速成標記增效模組。" + +#: ../base.xml:1556(para) +msgid "" +"Choose ViewTag List to display the Tag list plugin window." +msgstr "" +"選擇檢視標記清單,顯示速成標記增效模組視窗。" + +#: ../base.xml:1560(para) +msgid "" +"Select the appropriate tag category from the drop-down list; for example, " +"HTML - Tags." +msgstr "" +"請從下拉式清單中,選取適當的標記類別。例如,HTML - Tags。" + +#: ../base.xml:1563(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "在標記清單中捲動,尋找所需的標記。" + +#: ../base.xml:1566(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" +"要在目前檔案游標的位置上加入標記,請在標記清單中的標記上連按兩下。您也可以使" +"用下列方式加入標記:" + +#: ../base.xml:1568(para) +msgid "" +"To insert a tag in the current file and change the focus from the " +"Tag list plugin window to the editor window, press " +"Enter." +msgstr "" +"如果要將標記加入目前檔案,並且將焦點由速成標記增效模組視" +"窗,變更到編輯器視窗的話,請按一下 輸入 鍵。" + +#: ../base.xml:1571(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftEnter." +msgstr "" +"如果要將標記加入目前的檔案,但是焦點保持在速成標記增效模組視窗的話,請按 Shift輸入。" + +#: ../base.xml:1576(para) +msgid "" +"To close the Tag list plugin window, click on the " +"Close Window button in the window frame. " +"Alternatively, press CtrlW when the focus is on the Tag list plugin " +"window." +msgstr "" +"如果要關閉速成標記增效模組視窗,請按一下視窗框架上的" +"關閉視窗按鈕。或者,您也可以按 " +"CtrlW,但是焦點必須是" +"在速成標記增效模組視窗上。" + +#: ../base.xml:1583(title) +msgid "User Name Plugin" +msgstr "使用者名稱增效模組" + +#: ../base.xml:1584(para) +msgid "" +"The User name plugin inserts the username of the current user into the file. " +"To use the User name plugin, perform the following steps:" +msgstr "" +"使用者名稱增效模組會將目前使用者的名稱,加入檔案中。 如果要使用使用者名稱增效" +"模組,請執行下列步驟:" + +#: ../base.xml:1587(para) +msgid "Load the User name plugin." +msgstr "載入使用者名稱增效模組。" + +#: ../base.xml:1589(para) +msgid "" +"Choose EditInsert User Name to insert your username at the cursor position in " +"the current file." +msgstr "" +"選擇編輯加入使用者名稱,將您的使用者名稱加入目前檔案游標所在的位置。" + +#: ../lbase.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or " +"in the file COPYING-DOCS distributed with this manual." +msgstr "" +"根據自由軟體基金會 (Free Software Foundation) 所發佈 的 GNU 自由文件授權 " +"(GNU Free Documentation License, GFDL) 1.1 (含) 以後版本, 使用者可以複製、散" +"佈,或修改本文件,但不得增刪章節,不得加上封面文字, 亦不得加上封底文字。 如" +"要取得 GFDL 的副本,請參閱 此連結,或是參閱與本手冊一同隨附的 COPYING-DOCS 檔案。" + +#: ../lbase.xml:5(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" +"本手冊是屬於依 GFDL 授權所發佈之 GNOME 手冊集中的一部份。 如果您只要單獨散佈" +"本手冊,依據授權聲明第六節之敘述, 您必須另外將授權聲明加入本手冊中。" + +#: ../lbase.xml:8(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" +"許多公司為了突顯其產品與服務,會使用特別名稱,並亦已聲明這些 名稱為其商標。當" +"這些名稱出現在 GNOME 文件中,同時 GNOME 文件 專案小組成員亦明白這些名稱為商標" +"時, 這些名稱會以大寫字母或是首字母大寫表示。" + +#: ../lbase.xml:17(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" +"文件提供是以其「原樣」呈現,不管明示或暗示,皆不具任何 保證,包括 (但不限於) " +"文件或修正版毫無錯誤、可販售、 具特殊用途,或不侵權。 關於本文件與修正版文件" +"之品質、正確性及功用, 其風險您必須自行承擔。 若本文件或修正版有任何缺陷,任" +"何必須之保養,修理及更正, 應由您自行承擔,原始作者、作者或任何散佈者無須負" +"責。 本免責聲明是本授權聲明極重要與必要的一部份,因此任何文件或 修正版的授" +"權,皆須在同意本免責聲明的情況下進行;同時在任何情況或法律理論下,亦即不管是" +"在侵權 (包括疏忽)、契約或 其他情形,或是已預先告知會有下列損害之可能時,本文" +"件 或修正版的任何作者、原始作者、投稿人以及散佈者,或是 任何提供單位,對於因" +"使用本文件及修正版,或與本文件及 修正版使用相關所造成的任何直接、間接、特殊、" +"偶然或必 然之損害,包括 (但不限於) 信譽受損、工作停止、電腦當 機或不正常運" +"作,或任何所有其他損害,上述人等皆不需負 任何責任。" + +#: ../lbase.xml:12(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" +"本文件及其修正版本的提供,是基於 GNU 自由文件授權聲明的條款,同時亦有下列共" +"識: " diff --git a/help/zh_TW/zh_TW.po b/help/zh_TW/zh_TW.po new file mode 100644 index 0000000..a293143 --- /dev/null +++ b/help/zh_TW/zh_TW.po @@ -0,0 +1,2686 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2005-10-22 13:45-0400\n" +"PO-Revision-Date: 2007-02-12 08:54+0800\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../base.xml:24(title) ../base.xml:95(revnumber) +msgid "gedit Manual V2.5.1" +msgstr "gedit 手冊 V2.5.1" + +#: ../base.xml:26(year) +msgid "2003" +msgstr "2003 年" + +#: ../base.xml:27(holder) ../base.xml:30(holder) ../base.xml:52(orgname) +msgid "Sun Microsystems" +msgstr "Sun Microsystems" + +#: ../base.xml:29(year) +msgid "2002" +msgstr "2002 年" + +#: ../base.xml:32(year) ../base.xml:152(date) +msgid "2000" +msgstr "2000 年" + +#: ../base.xml:33(holder) +msgid "Eric Baudais" +msgstr "Eric Baudais" + +#: ../base.xml:44(publishername) ../base.xml:59(orgname) ../base.xml:99(para) +#: ../base.xml:107(para) ../base.xml:115(para) ../base.xml:123(para) +#: ../base.xml:131(para) ../base.xml:139(para) ../base.xml:147(para) +#: ../base.xml:156(para) +msgid "GNOME Documentation Project" +msgstr "GNOME 文件專案" + +#: ../base.xml:56(firstname) +msgid "Eric" +msgstr "Eric" + +#: ../base.xml:57(surname) +msgid "Baudais" +msgstr "Baudais" + +#: ../base.xml:60(email) +msgid "baudais@okstate.edu" +msgstr "baudais@okstate.edu" + +#: ../base.xml:64(firstname) +msgid "Baris" +msgstr "Baris" + +#: ../base.xml:65(surname) +msgid "" +"Cicek provided information from earlier revisions of the gedit application." +msgstr "Cicek 提供 gedit 應用程式較早版本的資訊。" + +#: ../base.xml:66(contrib) +msgid "Acknowledgements" +msgstr "感謝" + +#: ../base.xml:69(firstname) +msgid "Ajit" +msgstr "Ajit" + +#: ../base.xml:70(surname) +msgid "George provided information about plugins." +msgstr "George 提供增效模組的相關資訊。" + +#: ../base.xml:98(para) ../base.xml:106(para) ../base.xml:114(para) +#: ../base.xml:122(para) ../base.xml:130(para) ../base.xml:138(para) +#: ../base.xml:146(para) +msgid "Sun GNOME Documentation Team" +msgstr "Sun GNOME 文件小組" + +#: ../base.xml:103(revnumber) +msgid "gedit Manual V2.5" +msgstr "gedit 手冊 V2.5" + +#: ../base.xml:104(date) +msgid "March 2003" +msgstr "2003 年 3 月" + +#: ../base.xml:111(revnumber) +msgid "gedit Manual V2.4" +msgstr "gedit 手冊 V2.4" + +#: ../base.xml:112(date) +msgid "January 2003" +msgstr "2003 年 1 月" + +#: ../base.xml:119(revnumber) +msgid "gedit Manual V2.3" +msgstr "gedit 手冊 V2.3" + +#: ../base.xml:120(date) +msgid "September 2002" +msgstr "2002 年 9 月" + +#: ../base.xml:127(revnumber) +msgid "gedit Manual V2.2" +msgstr "gedit 手冊 V2.2" + +#: ../base.xml:128(date) +msgid "August 2002" +msgstr "2002 年 8 月" + +#: ../base.xml:135(revnumber) +msgid "gedit Manual V2.1" +msgstr "gedit 手冊 V2.1" + +#: ../base.xml:136(date) +msgid "June 2002" +msgstr "2002 年 6 月" + +#: ../base.xml:143(revnumber) +msgid "gedit Manual V2.0" +msgstr "gedit 手冊 V2.0" + +#: ../base.xml:144(date) +msgid "March 2002" +msgstr "2002 年 3 月" + +#: ../base.xml:151(revnumber) +msgid "gedit V1.0" +msgstr "gedit 手冊 V1.0" + +#: ../base.xml:154(para) +msgid "Eric Baudais baudais@okstate.edu" +msgstr "Eric Baudais baudais@okstate.edu" + +#: ../base.xml:160(releaseinfo) +msgid "This manual describes version 2.2.1 of gedit." +msgstr "本手冊的內容是說明 2.2.1 版的 gedit。" + +#: ../base.xml:163(title) +msgid "Feedback" +msgstr "意見回饋" + +#: ../base.xml:164(para) +msgid "" +"To report a bug or make a suggestion regarding the gedit application or this manual, follow the directions in the GNOME Feedback Page." +msgstr "" +"關於本 gedit 應用程式或本手冊,如果要報告錯誤 或提" +"出建議,請遵照 GNOME " +"Feedback Page 的指示。" + +#: ../base.xml:171(primary) +msgid "gedit" +msgstr "gedit" + +#: ../base.xml:172(primary) +msgid "text editor" +msgstr "文字編輯器" + +#: ../base.xml:177(title) +msgid "Introduction" +msgstr "介紹" + +#: ../base.xml:178(para) +msgid "" +"The gedit application enables you to create and " +"edit text files. You can use gedit plugins to " +"perform a variety of tasks related to text-editing from within the " +"gedit window." +msgstr "" +"您可以使用 gedit 應用程式建立和編輯文字 檔案。您可" +"以使用 gedit 增效模組在 gedit 視窗中 執行各種和文字編輯相關的工作。" + +#: ../base.xml:185(title) +msgid "Getting Started" +msgstr "入門" + +#: ../base.xml:189(title) +msgid "To Start gedit" +msgstr "啟動 gedit" + +#: ../base.xml:190(para) +msgid "You can start gedit in the following ways:" +msgstr "您可以使用下列方式啟動 gedit:" + +#: ../base.xml:193(guimenu) +msgid "Menu" +msgstr "功能表" + +#: ../base.xml:195(para) +msgid "" +"For information about how to start gedit from a " +"menu, see the latest version of the GNOME Desktop User Guide for your " +"platform." +msgstr "" +"若需如何從功能表啟動 gedit 的詳細資訊,請參閱最新" +"版的平台 GNOME Desktop User Guide。" + +#: ../base.xml:200(term) +msgid "Command line" +msgstr "指令行" + +#: ../base.xml:202(para) +msgid "Execute the following command: gedit" +msgstr "執行以下的指令: gedit" + +#: ../base.xml:210(title) +msgid "When You Start gedit" +msgstr "當您啟動 gedit" + +#: ../base.xml:211(para) +msgid "" +"When you start gedit, the following window is " +"displayed:" +msgstr "當您啟動 gedit 後,會顯示下面的視窗:" + +#: ../base.xml:214(title) +msgid "gedit Window" +msgstr "gedit 視窗" + +#: ../base.xml:220(phrase) +msgid "Shows gedit main window." +msgstr "顯示 gedit 主視窗。" + +#: ../base.xml:226(para) +msgid "" +"The gedit window contains the following elements:" +msgstr "" +"gedit 視窗包含下列的 元素:您可以選擇下列條件中的" +"一項或以上:" + +#: ../base.xml:229(term) +msgid "Menubar" +msgstr "功能表列" + +#: ../base.xml:231(para) +msgid "" +"The menus on the menubar contain all of the commands you need to work with " +"files in gedit." +msgstr "" +"在功能表列上的功能表中,有您在 gedit 中與檔案工作" +"所需的所有指令。" + +#: ../base.xml:235(term) +msgid "Toolbar" +msgstr "工具列" + +#: ../base.xml:237(para) +msgid "" +"The toolbar contains a subset of the commands that you can access from the " +"menubar." +msgstr "工具列包含了您可以由功能表列 存取的指令子集。" + +#: ../base.xml:241(term) +msgid "Display area" +msgstr "顯示區域" + +#: ../base.xml:243(para) +msgid "The display area contains the text of the file that you are editing." +msgstr "顯示區域包含了您正在 編輯之檔案的文字。" + +#: ../base.xml:247(term) +msgid "Output window" +msgstr "輸出視窗" + +#: ../base.xml:249(para) +msgid "" +"The output window displays the output returned by the Shell command plugin " +"and the Compare Files plugin." +msgstr "輸出視窗可以顯示由 Shell 指令增效模組和比對檔案增效模組傳回的輸出。" + +#: ../base.xml:252(term) +msgid "Statusbar" +msgstr "狀態列" + +#: ../base.xml:254(para) +msgid "" +"The statusbar displays information about current gedit activity and contextual information about the menu items." +msgstr "" +"狀態列可以顯示目前 gedit 活動的資訊,以及有關功能" +"表項目 的上下文資訊。" + +#: ../base.xml:260(para) +msgid "" +"When you right-click in the gedit window, the " +"application displays a popup menu. The popup menu contains the most common " +"text editing commands." +msgstr "" +"當您在 gedit 視窗中按滑鼠右鍵時,應用程式會顯示即" +"現式功能表。即現式功能表包含了 最常用的文字編輯指令。" + +#: ../base.xml:266(title) +msgid "To Open a File" +msgstr "開啟檔案" + +#: ../base.xml:267(para) +msgid "" +"To open a file, choose FileOpen to display the Open File " +"dialog. Select the file that you want to open, then click OK. The file is displayed in the gedit " +"window." +msgstr "" +"如果要開啟檔案,請選擇 檔案開啟 ,顯示開啟檔案對話方塊。選取要" +"開啟的檔案 ,然後按一下確定。這個檔案便會 顯示在 " +"gedit 視窗中。" + +#: ../base.xml:273(para) +msgid "" +"You can open multiple files in gedit. The " +"application displays one file at a time in the application window. The " +"application adds a tab for each open file to the window. To display another " +"open file, click on the tab that corresponds to the file. To create a new " +" gedit window for each file that is open, drag " +"the tab corresponding to each file to the desktop background." +msgstr "" +"您可以在 gedit 中,開啟多個檔案。 本應用程式在應用" +"程式視窗中,一次只會顯示一個檔案。 應用程式會為每個開啟的檔案,在視窗中增加一" +"個標籤。如果要顯示另外一個 開啟的檔案,請按該檔案的標籤。如果為每一個開啟的檔" +"案,建立一個新的 gedit 視窗,請將檔案的 標籤一個" +"個地拖曳至桌面背景上。" + +#: ../base.xml:279(para) +msgid "" +"You can also use the Documents menu to move between the " +"open files. You can choose DocumentsMove to New Window to move a " +"document to a new gedit window." +msgstr "" +"您也可以使用 文件功能表,在開啟的檔案之間移動。您可以選擇" +"文件移至新視窗,將文件移到新的 gedit 視窗。" + +#: ../base.xml:290(phrase) +msgid "Shows Recent Files menu icon." +msgstr "顯示最近使用的檔案功能表圖示。" + +#: ../base.xml:282(para) +msgid "" +"The application records the paths and filenames of the five most recent " +"files that you edited and displays the files as menu items on the " +"File menu. You can also click on " +"the " +"icon on the toolbar to display the list of recent files." +msgstr "" +"應用程式會記錄您所編輯的最後 5 個 檔案,並以功能表項目的方式,顯示在 " +"檔案功能表中。您也可以按一下 " +" 工具" +"列上的圖示,顯示最近使用的檔案清單。" + +#: ../base.xml:297(title) +msgid "To Open Multiple Files from a Command Line" +msgstr "從指令行開啟多個檔案" + +#: ../base.xml:298(para) +msgid "" +"You can run gedit from a command line and open a " +"single file or multiple files. To open multiple files from a command line, " +"type the following command, then press Return:" +msgstr "" +"您可以從指令行執行 gedit,並開啟一個或多個檔案。如" +"果要從指令行開啟多個檔案,請鍵入下列指令,然後按一下 Return " +"鍵。" + +#: ../base.xml:301(replaceable) +msgid "file1.txt file2.txt file3.txt" +msgstr "file1.txt file2.txt file3.txt" + +#: ../base.xml:301(command) +msgid "gedit " +msgstr "gedit " + +#: ../base.xml:302(para) +msgid "" +"When the application starts, the files that you specify are displayed in the " +"gedit window." +msgstr "" +"當應用程式啟動時,您所指定的檔案便會顯示在 gedit " +"視窗內。" + +#: ../base.xml:304(para) +msgid "" +"For more information on how to run gedit from a " +"command line, see gedit1." +msgstr "" +"若需如何從指令行執行 gedit 的詳細資訊,請參閱 " +"gedit1。" + +#: ../base.xml:309(title) +msgid "Usage" +msgstr "使用" + +#: ../base.xml:313(title) +msgid "To Create a New File" +msgstr "建立新檔案" + +#: ../base.xml:314(para) +msgid "" +"To create a new file, choose FileNew. The application " +"displays a new file in the gedit window." +msgstr "" +"如果要建立新檔案,請選擇 檔案開新" +"檔案。應用程式會在 gedit 視窗內顯示新檔案。" + +#: ../base.xml:321(title) +msgid "To Save a File" +msgstr "儲存檔案" + +#: ../base.xml:322(para) +msgid "You can save files in the following ways:" +msgstr "您可以用下列方式儲存檔案:" + +#: ../base.xml:324(para) +msgid "" +"To save changes to an existing file, choose FileSave or click " +"Save on the toolbar." +msgstr "" +"如果要將變更儲存到目前的檔案,請選擇 檔案儲存 或按一下工具列上的" +"儲存 。" + +#: ../base.xml:329(para) +msgid "" +"To save a new file or to save an existing file under a new filename, choose " +"FileSave As. Enter a name for the file in the Save as " +"dialog box, then click OK." +msgstr "" +"如果要儲存新檔案,或以新的檔案名稱儲存目前的檔案,請選擇 " +"檔案另存 新檔。請將檔案名稱輸入另存 新檔對話方塊,然後按一" +"下確定。" + +#: ../base.xml:334(para) +msgid "" +"To save all of the files that are currently open in gedit, choose DocumentsSave All." +msgstr "" +"如果要儲存目前在 gedit 中開啟的所有檔案,請選擇 " +"文件全部 儲存。" + +#: ../base.xml:343(title) +msgid "To Edit Text" +msgstr "編輯文字" + +#: ../base.xml:344(para) +msgid "You can edit the text of a file in the following ways:" +msgstr "您可以使用下列方式編輯檔案文字:" + +#: ../base.xml:346(para) +msgid "Type new text from the keyboard." +msgstr "由鍵盤輸入新的文字。" + +#: ../base.xml:348(para) +msgid "Use the Delete key to delete text." +msgstr "使用刪除鍵刪除文字。" + +#: ../base.xml:351(para) +msgid "" +"Use the Cut, Copy, " +"Paste, and Delete menu " +"items on the Edit menu to edit text." +msgstr "" +"請使用剪下複製、" +"貼上刪除功能表項目 " +"(在編輯功能表上) 來編輯文字。" + +#: ../base.xml:356(para) +msgid "You can perform any of the following actions on the selected text:" +msgstr "您可以在所選取的文字上執行下列任何一個動作:" + +#: ../base.xml:359(para) +msgid "" +"To copy the selected text to a buffer, choose EditCopy." +msgstr "" +"如果要將選取的文字複製到緩衝區中,請選擇 編輯複製。" + +#: ../base.xml:363(para) +msgid "" +"To delete the selected text from the file and move the selected text to a " +"buffer, choose EditCut." +msgstr "" +"如果要從檔案中刪除選取的文字,並將 選取的文字移動至緩衝區,請選擇 " +"編輯剪下。" + +#: ../base.xml:368(para) +msgid "" +"To permanently delete the selected text from the file, choose " +"EditDelete." +msgstr "" +"如果要從檔案中永遠刪除選取的文字,請選擇 編輯刪除e。" + +#: ../base.xml:372(para) +msgid "" +"To insert the contents of the buffer at the cursor position, choose " +"EditPaste. You must cut or copy text before you can paste text into the " +"file." +msgstr "" +"如果要在游標位置上加入緩衝區 的內容,請選擇 編輯貼上。您必須先剪下或複製文字 " +"才能將文字貼進檔案。" + +#: ../base.xml:378(para) +msgid "" +"To select all of the text in a file, choose EditSelect All." +msgstr "" +"如果要選取檔案中所有的文字,請選擇 編輯全部 選取。" + +#: ../base.xml:386(title) +msgid "To Undo or Redo Edits" +msgstr "還原或重做編輯" + +#: ../base.xml:387(para) +msgid "" +"To undo an edit, choose EditUndo. To redo an edit, " +"choose EditRedo. The number of previous edits that you can undo is determined by " +"the Set limit on undo actions to setting in the tabbed section of the Preferences dialog." +msgstr "" +"如果要還原或重做編輯,請選擇 編輯" +"還原。如果要重做編輯,請選擇 " +"編輯重做。您所能還原之前編" +"輯的次數,是取決於 限制還原次數為設定 (在 標籤區段中 (在 偏好設定對話方塊" +"中))。" + +#: ../base.xml:399(title) +msgid "To Find Text" +msgstr "尋找文字" + +#: ../base.xml:400(para) +msgid "To search a file for a string, perform the following steps:" +msgstr "如果要搜尋檔案中的字串,請執行下列步驟:" + +#: ../base.xml:402(para) +msgid "" +"Choose SearchFind to display the Find dialog." +msgstr "" +"請選擇 搜尋尋找 以顯示尋找對話方塊。" + +#: ../base.xml:407(para) ../base.xml:459(para) +msgid "" +"Type the string that you want to find, in the Search for field." +msgstr "將您要尋找的字串,鍵入 搜尋欄位中。" + +#: ../base.xml:409(para) ../base.xml:461(para) +msgid "You can include the following escape sequences:" +msgstr "您可以包括下列的逸出序列:" + +#: ../base.xml:412(literal) ../base.xml:464(literal) +msgid "\\n" +msgstr "\\n" + +#: ../base.xml:413(para) ../base.xml:465(para) +msgid "Use this escape sequence to specify a new line" +msgstr "請使用這個逸出序列,指定新的一行" + +#: ../base.xml:416(literal) ../base.xml:468(literal) +msgid "\\t" +msgstr "\\t" + +#: ../base.xml:417(para) ../base.xml:469(para) +msgid "Use this escape sequence to specify a tab character" +msgstr "請使用這個逸出序列,指定 Tab 字元" + +#: ../base.xml:420(literal) ../base.xml:472(literal) +msgid "\\r" +msgstr "\\r" + +#: ../base.xml:421(para) ../base.xml:473(para) +msgid "Use this escape sequence to specify a carriage return" +msgstr "請使用這個逸出序列,指定換行鍵" + +#: ../base.xml:425(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you type." +msgstr "" +"選取符合大小寫選項, 尋找只符合您所鍵入文字狀況 的字串。" + +#: ../base.xml:429(para) ../base.xml:484(para) +msgid "" +"Select the Match entire word only option to only find " +"occurrences of the string that match the entire words of the text that you " +"type." +msgstr "" +"選取全字相符選項, 尋找字串中完全符合您所輸入的 文字。" + +#: ../base.xml:433(para) ../base.xml:488(para) +msgid "" +"Select the Wrap around option to search to the end of " +"the file and then continue the search from the beginning of the file." +msgstr "" +"選取全檔搜尋選項,搜尋到檔案結尾後再從檔案開頭繼續搜尋。" + +#: ../base.xml:435(para) ../base.xml:490(para) +msgid "" +"Click Find to search the file for the first " +"occurrence of the string. If gedit finds the " +"string, the application moves the cursor to the string, and selects the " +"string." +msgstr "" +"按一下尋找,搜尋檔案中 第一個字串事件。如果 " +"gedit 找到字串,應用程式會將游標移動到字串上,並選" +"取 該字串。" + +#: ../base.xml:440(para) ../base.xml:500(para) +msgid "" +"To find the next occurrence of the string, click Find." +msgstr "如果要尋找符合的下一個字串,請按一下 找下一個。" + +#: ../base.xml:443(para) ../base.xml:503(para) +msgid "To finish the search, click Close." +msgstr "如果要結束搜尋,請按一下 關閉。" + +#: ../base.xml:450(title) +msgid "To Find and Replace Text" +msgstr "尋找並取代文字" + +#: ../base.xml:451(para) +msgid "" +"To search a file for a string, and replace the string with an alternative " +"string, perform the following steps:" +msgstr "如果要搜尋檔案中的字串,並以另外一個字串 取代之,請執行下列的步驟:" + +#: ../base.xml:454(para) +msgid "" +"Choose SearchReplace to display the Replace dialog." +msgstr "" +"請選擇 搜尋取代 ,顯示取代對話方塊。" + +#: ../base.xml:477(para) +msgid "" +"Type the string that you want to use to replace the string that you find, in " +"the Replace with field." +msgstr "將您要用來取代尋找 字串的字串,鍵入取代為欄位中。" + +#: ../base.xml:480(para) +msgid "" +"Select the Match case option to only find occurrences " +"of the string that match the case of the text that you enter." +msgstr "" +"選取符合大小寫選項, 尋找只符合您所鍵入文字狀況 的字串。" + +#: ../base.xml:495(para) +msgid "" +"Click on the Replace button to replace the occurrence " +"of the string with the text in the Replace with field. " +"Click on the Replace All button to replace all " +"occurrences of the string." +msgstr "" +"按一下取代按鈕,以您在 取代為 欄" +"位中鍵入的文字取代該字串。按一下全部取代按鈕,取代 所" +"有符合的字串。" + +#: ../base.xml:510(title) +msgid "To Open a File from a URI" +msgstr "從 URI 開啟檔案" + +#: ../base.xml:511(para) +msgid "" +"To open a file from a Uniform Resource Identifier (URI), perform one of the " +"following steps:" +msgstr "" +"如果要從資源識別統一描述器 (Uniform Resource Identifier,URI) 開啟檔案,請執" +"行下列任一項步驟:" + +#: ../base.xml:514(para) +msgid "" +"Choose FileOpen Location to display the Open Location " +"dialog. Enter the URI of the file that you want to open, then click " +"Open." +msgstr "" +"請選擇檔案開啟位置 ,顯示開啟位置 對話方塊。輸入" +"您要開啟 檔案的 URI ,然後按一下開啟。" + +#: ../base.xml:522(para) +msgid "" +"Type gedit URI at a command " +"line, where URI is the URI of the file that you " +"want to open, then press Return. Valid types of " +"URI include http:, " +"ftp:, file:, and all of the methods " +"supported by gnome-vfs." +msgstr "" +"在指令行上輸入 gedit URI (此處" +"的 URI 是指您要開啟之檔案的 URI),然後按下 " +"Return 鍵。有效的 URI 類型包括 " +"http:ftp:file:," +"以及 gnome-vfs 支援的所有方法。" + +#: ../base.xml:527(para) +msgid "The application opens the file located at the URI in read-only mode." +msgstr "應用程式會以唯讀模式開啟位於 URI 的檔案。" + +#: ../base.xml:531(title) +msgid "To Pipe the Output of a Command to a File" +msgstr "輸出指令到檔案" + +#: ../base.xml:532(para) +msgid "" +"You can use gedit to pipe the output of a command " +"to a text file. For example, to pipe the output of an ls " +"command to a text file, type ls | gedit, then press " +"Return." +msgstr "" +"您可以使用 gedit,將指令的輸出傳送到 文字檔案。例" +"如,如果要將 ls 指令的輸出傳送到文字檔案,請鍵入 " +"ls | gedit,然後按下 Return 鍵。" + +#: ../base.xml:536(para) +msgid "" +"The output of the ls command is displayed in a new text " +"file in the gedit window." +msgstr "" +"ls 指令的輸出,會 在 gedit 視窗" +"中以一個新的文字檔案顯示。" + +#: ../base.xml:538(para) +msgid "" +"Alternatively, you can use the Shell command plugin to pipe command output " +"to the current file. For information about how to use the Shell command " +"plugin, see ." +msgstr "" +"或者,您可以使用 Shell 指令增效模組,將指令輸出 傳送到目前的檔案中。如需如何" +"使用 Shell 指令增效模組的資訊,請參閱 。" + +#: ../base.xml:543(title) +msgid "To Position the Cursor on a Specific Line" +msgstr "將游標移到特定行" + +#: ../base.xml:544(para) +msgid "" +"To position the cursor on a specific line in the current file, perform the " +"following steps:" +msgstr "如果要將游標移到目前檔案中的特定行,請執行下列的 步驟:" + +#: ../base.xml:547(para) +msgid "" +"Choose SearchGo to Line to display the Go to Line " +"dialog." +msgstr "" +"請選擇 搜尋移至 某行 ,顯示移至某行對話方塊。" + +#: ../base.xml:552(para) +msgid "" +"Type the number of the line that you want to move the cursor to in the " +"Line number field." +msgstr "" +"如果您想把游標移動到某一行,請將 行數鍵入行數欄位中。" + +#: ../base.xml:555(para) +msgid "" +"Click Go to Line. The application moves the cursor to " +"the line number that you specify." +msgstr "" +"按一下移至某行。應用程式 便會將游標移動至您指定的行" +"數。" + +#: ../base.xml:558(para) +msgid "" +"To close the Go to Line dialog, click Close." +msgstr "" +"如果要關閉移至某行對話方塊,請按一下關閉。" + +#: ../base.xml:563(title) +msgid "To Change the Input Mode" +msgstr "變更輸入模式" + +#: ../base.xml:564(para) +msgid "" +"To change the input mode, right-click in the text window, then select " +"Input Methods. The Insert Unicode " +"control character menu item provides character layout options " +"that are useful for working with non-Latin character sets." +msgstr "" +"如果要變更輸入模式,請在文字視窗上按滑鼠右鍵,然後選取 輸入方法" +"插入統一碼控制字元功能表項目會提" +"供字元配置選項,這對使用非拉丁語系的字元集很有幫助。" + +#: ../base.xml:570(title) +msgid "To Print a File" +msgstr "列印檔案" + +#: ../base.xml:571(para) +msgid "" +"You can use gedit to perform the following print " +"operations:" +msgstr "您可以使用gedit,執行 下列列印作業:" + +#: ../base.xml:574(para) +msgid "Print a file to a printer." +msgstr "由印表機列印檔案。" + +#: ../base.xml:576(para) +msgid "Print the output of the print command to a file." +msgstr "將列印指令的輸出列印到檔案。" + +#: ../base.xml:579(para) +msgid "" +"If you print to a file, gedit sends the output of " +"the file to a pre-press format file. The most common pre-press formats are " +"PostScript and Portable Document Format (PDF)." +msgstr "" +"如果您是列印至檔案,gedit 會先將 檔案輸出傳送到某" +"個印前格式檔案。最常見的印前 格式為 PostScript 與 Portable Document Format " +"(PDF)。" + +#: ../base.xml:583(para) +msgid "" +"To preview the pages that you want to print, choose " +"FilePrint Preview." +msgstr "" +"如果要預覽想列印的頁面,請選擇 檔案預覽列印。" + +#: ../base.xml:587(para) +msgid "" +"To print the current file to a printer or a file, choose " +"FilePrint to display the Print dialog." +msgstr "" +"如果要將目前的檔案列印至印表機或檔案,請選擇 檔案列印 ,顯示列印對話方塊。" + +#: ../base.xml:592(para) +msgid "" +"The Print dialog enables you to specify the following " +"print options:" +msgstr "列印對話方塊可以讓您指定下列 列印選項:" + +#: ../base.xml:596(title) +msgid "Printer Tabbed Section" +msgstr "印表機標籤區段" + +#: ../base.xml:598(term) +msgid "Printer pane" +msgstr "印表機窗格" + +#: ../base.xml:600(para) +msgid "Select the printer to which you want to print the file." +msgstr "選取您要列印檔案 的印表機。" + +#: ../base.xml:604(guilabel) +msgid "Print range" +msgstr "列印範圍" + +#: ../base.xml:606(para) +msgid "" +"Select one of the following options to determine how many pages to print:" +msgstr "選取下列任一選項,決定 要列印的頁數:" + +#: ../base.xml:610(guilabel) +msgid "All" +msgstr "全部" + +#: ../base.xml:611(para) +msgid "Select this option to print all of the pages in the file." +msgstr "選取這個選項,會列印檔案中的所有頁面。" + +#: ../base.xml:614(guilabel) +msgid "Selection" +msgstr "選取部分" + +#: ../base.xml:615(para) +msgid "" +"Select this option to print the selected text only. This option is only " +"available if you select text." +msgstr "" +"選取這個選項,只會列印所選取的文字。這個選項 只有當您已選取文字後,才能使用。" + +#: ../base.xml:622(guilabel) +msgid "Number of copies" +msgstr "列印份數" + +#: ../base.xml:624(para) +msgid "" +"Use this spin box to specify the number of copies of the file that you want " +"to print." +msgstr "使用這個旋轉方塊以指定您要列印檔案的副本數。" + +#: ../base.xml:628(guilabel) +msgid "Collate" +msgstr "理序" + +#: ../base.xml:630(para) +msgid "" +"If you are printing multiple copies of the file, select this option to " +"collate the printed copies." +msgstr "如果您要將檔案列印多份副本,請選取這個選項,以理序已列印的副本。" + +#: ../base.xml:634(guilabel) +msgid "Filename" +msgstr "檔案名稱" + +#: ../base.xml:636(para) +msgid "" +"To print the file to a print file, type the name of the output file in this " +"text box." +msgstr "如果要列印檔案至列印檔案,請在這個文字方塊中輸入輸出檔案的名稱。" + +#: ../base.xml:643(title) +msgid "Paper Tabbed Section" +msgstr "紙張標籤區段" + +#: ../base.xml:645(guilabel) +msgid "Paper size" +msgstr "紙張大小" + +#: ../base.xml:647(para) +msgid "" +"Use this drop-down list to select the size of the paper to which you want to " +"print the file." +msgstr "請使用這個下拉式清單,選取列印檔案用的紙張大小。" + +#: ../base.xml:651(guilabel) +msgid "Width" +msgstr "寬度" + +#: ../base.xml:653(para) +msgid "" +"Use this spin box to specify the width of the paper. Use the adjacent drop-" +"down list to change the measurement unit for specifying the paper size." +msgstr "" +"請使用這個旋轉方塊,指定紙張寬度。請使用 旁邊的下拉式清單,變更 指定紙張大小" +"的度量單位。" + +#: ../base.xml:658(guilabel) +msgid "Height" +msgstr "高度" + +#: ../base.xml:660(para) +msgid "Use this spin box to specify the height of the paper." +msgstr "請使用這個選轉方塊,指定紙張高度。" + +#: ../base.xml:663(guilabel) +msgid "Feed orientation" +msgstr "入紙方向" + +#: ../base.xml:665(para) +msgid "" +"Use this drop-down list to select the orientation of the paper in the " +"printer." +msgstr "請使用這個下拉式清單來選取印表機 的紙張方向。" + +#: ../base.xml:669(guilabel) +msgid "Page orientation" +msgstr "紙張方向" + +#: ../base.xml:671(para) +msgid "Use this drop-down list to select the page orientation." +msgstr "請使用這個下拉式清單,選取紙張方向。" + +#: ../base.xml:674(guilabel) +msgid "Layout" +msgstr "配置" + +#: ../base.xml:676(para) +msgid "" +"Use this drop-down list to select the page layout. A preview of each layout " +"that you select is displayed in the Preview area." +msgstr "" +"請使用這個下拉式清單,選取頁面的版面配置。您選取的每個版面配置,其預覽會顯示" +"在預覽區域中。" + +#: ../base.xml:687(title) +msgid "To Customize the Toolbar and Statusbar" +msgstr "自訂工具列與狀態列" + +#: ../base.xml:689(para) +msgid "" +"To display or hide the toolbar, choose ViewToolbar. To customize how " +"gedit displays the toolbar, choose " +"ViewCustomize Toolbar, then select one of the following menu items:" +msgstr "" +"如果要顯示或隱藏工具列,請選擇檢視工具列。如果要自訂 " +"gedit 顯示工具列的方式,請選擇" +"檢視自訂工具列,然後選取下列任一項 功能表項目:" + +#: ../base.xml:696(guimenuitem) +msgid "Desktop Default" +msgstr "桌面預設值" + +#: ../base.xml:697(para) +msgid "Display the default toolbar." +msgstr "顯示預設的工具列。" + +#: ../base.xml:700(guimenuitem) +msgid "Icon" +msgstr "圖示" + +#: ../base.xml:701(para) +msgid "Display icons only." +msgstr "僅顯示圖示。" + +#: ../base.xml:704(guimenuitem) +msgid "Icon and Text" +msgstr "圖示與文字" + +#: ../base.xml:705(para) +msgid "Display icons and text." +msgstr "顯示圖示與文字。" + +#: ../base.xml:708(guimenuitem) +msgid "Priority Text beside Icons" +msgstr "在優先項目上顯示圖示及文字" + +#: ../base.xml:709(para) +msgid "Display icons, and display text beside some of the icons." +msgstr "顯示圖示,以及顯示一些圖示旁的文字。" + +#: ../base.xml:712(para) +msgid "" +"To display or hide the statusbar, choose ViewStatusbar. To customize how " +"gedit displays the statusbar, choose " +"ViewCustomize Statusbar, then select one of the following menu items:" +msgstr "" +"如果要顯示或隱藏狀態列,請選擇檢視狀態列。如果要自訂 " +"gedit 顯示狀態列的方式,請選擇" +"檢視自訂狀態列,然後選取下列任一項 功能表項目:" + +#: ../base.xml:719(guimenuitem) +msgid "Show Cursor Position" +msgstr "顯示游標位置" + +#: ../base.xml:720(para) +msgid "Display the line number and column number where the cursor is located." +msgstr "顯示游標所在的行數與欄數。" + +#: ../base.xml:723(guimenuitem) +msgid "Show Overwrite Mode" +msgstr "顯示覆寫模式" + +#: ../base.xml:724(para) +msgid "" +"Display the editing mode. If the editor is in insert mode, the statusbar " +"contains the word INS. If the editor is in overwrite mode, the statusbar " +"contains the word OVR." +msgstr "" +"顯示編輯模式。如果編輯器是處於插入模式,狀態列便會出現 INS 字樣。如果編輯器是" +"處於覆寫模式,狀態列便會出現 OVR 字樣。" + +#: ../base.xml:728(para) +msgid "" +"To display or hide the output window, choose ViewOutput Window." +msgstr "" +"如果要顯示或隱藏輸出視窗,請選擇檢視輸出視窗。" + +#: ../base.xml:735(title) +msgid "Preferences" +msgstr "偏好設定" + +#: ../base.xml:737(para) +msgid "" +"To configure gedit, choose " +"EditPreferences. The Preferences dialog contains the " +"following categories:" +msgstr "" +"如果要配置 gedit,請選擇 編輯" +"偏好設定偏好設" +"定對話方塊含有下列 種類:" + +#: ../base.xml:754(title) +msgid "Editor" +msgstr "編輯器" + +#: ../base.xml:755(para) +msgid "" +"The Editor category is subdivided into the following " +"subcategories:" +msgstr "編輯器的種類又可分為下列幾種 子類:" + +#: ../base.xml:759(title) +msgid "Fonts and Colors" +msgstr "字型與色彩" + +#: ../base.xml:761(guilabel) +msgid "Use default theme font" +msgstr "使用預設配色字型" + +#: ../base.xml:763(para) +msgid "" +"Select this option to use the default system font for the text in the " +"gedit text window." +msgstr "" +"選取這個選項,在 gedit 文字視窗的文字中,會使用系" +"統預設的字型。" + +#: ../base.xml:766(guilabel) +msgid "Editor font" +msgstr "編輯器字型" + +#: ../base.xml:768(para) +msgid "" +"This field displays the font that gedit uses to " +"display text. Click on the button to specify the font type, style, and size " +"to use for text." +msgstr "" +"這個欄位會顯示 gedit 用來顯示文字的字型。 按一下按" +"鈕,指定文字所使用的字體類型、樣式與大小。" + +#: ../base.xml:772(guilabel) +msgid "Use default theme colors" +msgstr "使用預設的配色色彩" + +#: ../base.xml:774(para) +msgid "" +"Select this option to use the default theme colors in the " +"gedit text window." +msgstr "" +"選取這個選項,會在 gedit 文字視窗中,使用預設的配" +"色色彩。" + +#: ../base.xml:777(guilabel) +msgid "Text color" +msgstr "文字色彩" + +#: ../base.xml:779(para) +msgid "" +"Click on the Text color button to display the color " +"selector dialog. Select a color to use to display text in the " +"gedit text window." +msgstr "" +"按一下文字色彩按鈕, 顯示色彩選擇元件對話方塊。請選取" +"顏色,程式會在 gedit 文字視窗中,以該顏色顯示文" +"字。" + +#: ../base.xml:784(guilabel) +msgid "Background color" +msgstr "背景色彩" + +#: ../base.xml:786(para) +msgid "" +"Click on the Background color button to display the " +"color selector dialog. Select a background color for the gedit text window." +msgstr "" +"按一下背景色彩按鈕, 顯示色彩選擇元件對話方塊。請為 " +"gedit 文字視窗選取背景色彩。" + +#: ../base.xml:791(guilabel) +msgid "Selected text color" +msgstr "選取文字的色彩" + +#: ../base.xml:793(para) +msgid "" +"Click on the Selected text color button to display " +"the color selector dialog. Select a color to use to display selected text." +msgstr "" +"按一下選取文字的色彩按鈕, 顯示色彩選擇元件對話方塊。" +"請選取用來顯示選取文字的色彩。" + +#: ../base.xml:798(guilabel) +msgid "Selection color" +msgstr "選取區域的色彩" + +#: ../base.xml:800(para) +msgid "" +"Click on the Selection color button to display the " +"color selector dialog. Select a background color to use to highlight a text " +"selection." +msgstr "" +"按一下選取區域的色彩按鈕, 顯示色彩選擇元件對話方塊。" +"請選取背景色彩,用來反白顯示選取的文字。" + +#: ../base.xml:809(title) +msgid "Tabs" +msgstr "跳格" + +#: ../base.xml:811(guilabel) +msgid "Set tabs width equivalent to" +msgstr "tab 字元的寬度為" + +#: ../base.xml:813(para) +msgid "" +"Use this spin box to specify the width of the space that " +"gedit inserts when you press the Tab key." +msgstr "" +"請使用這個旋轉方塊,指定 gedit 在您按下 " +"Tab 鍵時會加入的空格寬度。" + +#: ../base.xml:818(guilabel) +msgid "Insert spaces instead of tabs" +msgstr "以插入空格取代跳格" + +#: ../base.xml:820(para) +msgid "" +"Select this option to specify that gedit inserts " +"spaces instead of a tab character when you press the Tab " +"key." +msgstr "" +"選取這個選項可以指定 gedit 在您按下 Tab 鍵時,以插入空格取 代跳格字元。" + +#: ../base.xml:830(title) +msgid "Wrap Mode" +msgstr "換行模式" + +#: ../base.xml:832(guilabel) ../base.xml:1003(guilabel) +msgid "Enable text wrapping" +msgstr "啟用文字換行" + +#: ../base.xml:833(para) +msgid "" +"Select this option to wrap text onto the next line, at a character level, " +"when you reach the text window boundary." +msgstr "選取這個選項可以在到達文字視窗 界限時,以字元為單位將文字換到下一行。" + +#: ../base.xml:837(guilabel) +msgid "Do not split words over two lines" +msgstr "不要將字分成兩行" + +#: ../base.xml:838(para) +msgid "" +"Select this option to wrap text onto the next line, at a word level, when " +"you reach the text window boundary." +msgstr "選取這個選項可以在到達文字視窗 界限時,以字為單位將文字換到下一行。" + +#: ../base.xml:846(title) +msgid "Auto Indent" +msgstr "自動縮排" + +#: ../base.xml:848(guilabel) +msgid "Enable auto indentation" +msgstr "啟用自動縮排" + +#: ../base.xml:849(para) +msgid "" +"Select this option to specify that the next line starts at the indentation " +"level of the current line." +msgstr "選取這個選項可以指定下一行使用目前這一行的縮排設定。" + +#: ../base.xml:857(title) +msgid "Line Numbers" +msgstr "行號" + +#: ../base.xml:859(guilabel) +msgid "Display line numbers" +msgstr "顯示行號" + +#: ../base.xml:861(para) +msgid "" +"Select this option to display line numbers on the left side of the " +"gedit window." +msgstr "選取這個選項,會在 gedit 視窗左側顯示行號。" + +#: ../base.xml:869(title) +msgid "Open" +msgstr "開啟" + +#: ../base.xml:871(guilabel) +msgid "Supported encodings" +msgstr "支援的編碼" + +#: ../base.xml:872(para) +msgid "" +"A character encoding is a method of converting bytes to characters. " +"Different encodings might convert the same byte sequence into different " +"characters, or might produce invalid output. If you open a file using the " +"same encoding as that used to create the file, all characters are displayed " +"as intended. However, if you open a file using a different encoding, some " +"characters might not be displayed correctly, or an error might be returned." +msgstr "" +"字元編碼,是將位元組轉換為字元的方式。 不同的編碼方式會將相同的位元組序列轉換" +"為不同的字元,或產生無效的輸出。 如果您是以建立檔案時所用的編碼,來開啟該檔" +"案,則所有的字元顯示,都會跟原來建立時一模一樣。 然而,如果您開啟檔案時的編碼" +"不是原來的編碼,有些字元的顯示可能會不正常,或者,系統會傳回錯誤訊息。" + +#: ../base.xml:877(para) +msgid "" +"By default, gedit uses UTF-8 encoding to try to " +"open a file. UTF-8 encoding can be used for multilingual texts, as UTF-8 " +"covers almost all known alphabets and character sets. If the file is not a " +"valid UTF-8 file, gedit tries to open the file by " +"using the encoding for the current locale. If this also fails, " +"gedit tries to use an encoding from the Supported " +"encodings list, starting at the top of the list." +msgstr "" +"依預設值,gedit 是使用 UTF-8 編碼來開啟檔案。UTF-" +"8 編碼可用於內含多種語言的文件,因為 UTF-8 涵蓋了大多數已知的字母與字元集。如" +"果檔案並不是有效的 UTF-8 檔,gedit 會試著以目前語" +"系的編碼來開啟檔案。如果這樣依然有問題,gedit 會從" +"支援的編碼清單中第一個編碼方式開始,一個個地來試著開啟檔案。" + +#: ../base.xml:880(para) +msgid "" +"To modify the contents of the Supported encodings list, use the buttons " +"described in the following table:" +msgstr "如果要修改支援的編碼清單內容,請使用下列表格所述的按鈕:" + +#: ../base.xml:889(para) +msgid "Button" +msgstr "按鈕" + +#: ../base.xml:890(para) +msgid "Description" +msgstr "說明" + +#: ../base.xml:895(guilabel) +msgid "Add" +msgstr "新增" + +#: ../base.xml:896(para) +msgid "Adds an encoding to the list." +msgstr "將編碼加入清單。" + +#: ../base.xml:899(guilabel) +msgid "Remove" +msgstr "移除" + +#: ../base.xml:900(para) +msgid "Removes an encoding from the list." +msgstr "將編碼從清單中移除。" + +#: ../base.xml:903(para) +msgid "Up arrow" +msgstr "向上箭頭" + +#: ../base.xml:904(para) +msgid "Moves an encoding to a higher position in the list." +msgstr "將編碼移到清單中較高的位置。" + +#: ../base.xml:907(para) +msgid "Down arrow" +msgstr "向下箭頭" + +#: ../base.xml:908(para) +msgid "Moves an encoding to a lower position in the list." +msgstr "將編碼移到清單中較低的位置。" + +#: ../base.xml:919(title) +msgid "Save" +msgstr "儲存" + +#: ../base.xml:921(guilabel) +msgid "Create a backup copy of files before saving" +msgstr "在儲存前先建立檔案備份副本" + +#: ../base.xml:923(para) +msgid "" +"Select this option to create a backup copy of a file each time you save the " +"file. The backup copy of the file contains a ~ at the end of the filename." +msgstr "" +"選取這個選項,可以在每次儲存檔案時,建立備份副本。檔案的備份 副本在檔名的最末" +"會以波浪號 (˜) 做結尾。" + +#: ../base.xml:927(guilabel) +msgid "Autosave current file every" +msgstr "自動儲存目前檔案的時間間隔" + +#: ../base.xml:929(para) +msgid "" +"Select this option to automatically save the current file at regular " +"intervals. Use the spin box to specify the interval at which you want to " +"save the file." +msgstr "" +"選取這個選項,會自動地在固定的時間間隔,儲存目前的檔案。請使用這個旋轉方塊," +"指定儲存檔案的時間間隔。" + +#: ../base.xml:933(guilabel) +msgid "When saving an existing file" +msgstr "儲存現有的檔案時" + +#: ../base.xml:935(para) +msgid "Select one of the following save options:" +msgstr "請選取下列任一項儲存選項:" + +#: ../base.xml:938(guilabel) ../base.xml:958(guilabel) +msgid "Always use UTF-8 encoding (faster)" +msgstr "總是使用 UTF-8 編碼 (較快)" + +#: ../base.xml:939(para) +msgid "Select this option to save files using UTF-8 encoding." +msgstr "選取這個選項,會使用 UTF-8 編碼儲存檔案。" + +#: ../base.xml:942(guilabel) ../base.xml:962(guilabel) +msgid "Use current locale's encoding if possible" +msgstr "可能的話,儲存時請使用目前語言環境的編碼" + +#: ../base.xml:943(para) +msgid "" +"Select this option to save files using the current locale. You can set up " +"locales for different input methods." +msgstr "" +"選取這個選項,會使用目前的語言儲存檔案。您可以為不同的輸入法設定語言環境。" + +#: ../base.xml:947(guilabel) +msgid "Use original file encoding if possible" +msgstr "可能的話,請使用原始檔案的編碼" + +#: ../base.xml:948(para) +msgid "" +"Select this option to save a file using the current locale if the file was " +"already saved in the current locale." +msgstr "" +"選取這個選項,如果檔案已經是使用目前的區性儲存過,程式會使用目前區性來儲存檔" +"案 。" + +#: ../base.xml:953(guilabel) +msgid "When saving a new file" +msgstr "儲存新檔案時" + +#: ../base.xml:955(para) +msgid "Select one of the following save options for new files:" +msgstr "請為新檔案選取下列任一項儲存選項:" + +#: ../base.xml:959(para) +msgid "Select this option to save new files using UTF-8 encoding." +msgstr "選取這個選項,會使用 UTF-8 編碼儲存新檔案。" + +#: ../base.xml:963(para) +msgid "" +"Select this option to save new files using the current locale. You can set " +"up locales for different input methods." +msgstr "" +"選取這個選項,會使用目前的語言環境儲存新檔案。您可以為不同的輸入法設定語言環" +"境。" + +#: ../base.xml:975(title) +msgid "Undo" +msgstr "復原" + +#: ../base.xml:977(guilabel) +msgid "Set limit on undo actions to" +msgstr "復原的次數限制為" + +#: ../base.xml:979(para) +msgid "" +"Select this option to set a limit on the number of editing actions that you " +"can undo. Use the spin box to specify the maximum number of actions that you " +"can undo." +msgstr "" +"選取這個選項,可以限制編輯動作的 可復原次數。請使用旋轉方塊,指定 可復原動作" +"的最多次數。" + +#: ../base.xml:990(title) +msgid "Print" +msgstr "列印" + +#: ../base.xml:991(para) +msgid "" +"The Print category is subdivided into the following " +"subcategories:" +msgstr "列印種類又可分為下列幾種 子類:" + +#: ../base.xml:995(title) +msgid "Page" +msgstr "頁面" + +#: ../base.xml:997(guilabel) +msgid "Print page headers" +msgstr "列印頁面標頭" + +#: ../base.xml:999(para) +msgid "" +"Select this option to include a header on each page that you print. You " +"cannot configure the header." +msgstr "選取這個選項,會在列印的每一頁上面 加上標頭。您無法配置標頭。" + +#: ../base.xml:1005(para) +msgid "" +"Select this option to automatically wrap text at a word level when you print " +"a file. The application counts wrapped lines as one line for line numbering " +"purposes." +msgstr "" +"選取這個選項,在列印檔案時,可以自動以字為單位 換行。應用程式每換行一次計為一" +"行。" + +#: ../base.xml:1010(guilabel) +msgid "Print line numbers every" +msgstr "每次印出行號相隔的行數" + +#: ../base.xml:1013(para) +msgid "" +"Select this option to include line numbers when you print a file. Use the " +"spin box to specify how often to print the line numbers, for example every 5 " +"lines, every 10 lines, and so on." +msgstr "" +"選取這個選項,會在列印檔案時 加上行數。請使用旋轉方塊,指定列印行號的間隔。" +"例 如,每 5 行或每 10 行等。" + +#: ../base.xml:1022(title) +msgid "Fonts" +msgstr "字型" + +#: ../base.xml:1024(guilabel) +msgid "Body" +msgstr "內文" + +#: ../base.xml:1026(para) +msgid "" +"Click on this button to select the font to use to print the body text of a " +"file." +msgstr "按一下這個按鈕,可以選取列印檔案內容文字時,所要使用的字型。" + +#: ../base.xml:1030(guilabel) +msgid "Page headers" +msgstr "頁面標頭" + +#: ../base.xml:1032(para) +msgid "" +"Click on this button to select the font to use to print the headers in a " +"file." +msgstr "按一下這個按鈕,可以選取列印檔案標頭時,所要使用的字型。" + +#: ../base.xml:1036(guilabel) +msgid "Line numbers" +msgstr "行號" + +#: ../base.xml:1039(para) +msgid "Click on this button to select a font to use to print line numbers." +msgstr "按一下這個按鈕,可以選取列印行號時的字型。" + +#: ../base.xml:1043(para) +msgid "" +"To reset the fonts to the default fonts for printing a file from " +"gedit click on the Restore Default " +"Fonts button." +msgstr "" +"如果要將 gedit 列印檔案時的字型,重設為預設值, 請" +"按一下還原預設字型按鈕。" + +#: ../base.xml:1050(title) +msgid "Plugins" +msgstr "增效模組" + +#: ../base.xml:1051(para) +msgid "" +"For information about how to use the Plugins category " +"of the Preferences dialog, see ." +msgstr "" +"關於如何使用偏好設定對話方塊的增效模組類別,進一步資訊請參閱 。" + +#: ../base.xml:1058(title) +msgid "Working with Plugins" +msgstr "使用增效模組" + +#: ../base.xml:1059(para) +msgid "" +"A plugin is a supplementary program that enhances the functionality of an " +"application. The gedit plugins enable you to " +"perform a variety of functions related to text editing from within the " +" gedit window. The following table lists the " +" gedit plugins." +msgstr "" +"增效模組是一種以可增強應用程式功能的 補強性程式。您可以使用 " +"gedit 增效模組,在 gedit 視窗內,執行多種文字編輯功能。下表所列的,便是 " +"gedit 的增效模組。" + +#: ../base.xml:1070(para) ../base.xml:1150(para) +msgid "Plugin Name" +msgstr "增效模組名稱" + +#: ../base.xml:1071(para) +msgid "Purpose" +msgstr "用途" + +#: ../base.xml:1076(para) ../base.xml:1156(para) +msgid "ASCII table" +msgstr "ASCII 表 (ASCII 表格)" + +#: ../base.xml:1077(para) +msgid "" +"Displays a dialog that contains an ASCII table. You can use the ASCII table " +"to insert characters into a file." +msgstr "顯示包含 ASCII 表的對話方塊。您可以使用 ASCII 表,在檔案中插入字元。" + +#: ../base.xml:1080(para) ../base.xml:1161(para) +msgid "CVS ChangeLog" +msgstr "CVS 變更Log" + +#: ../base.xml:1081(para) +msgid "Opens the log messages associated with CVS commit commands." +msgstr "開啟與 CVS 確定指令相關的日誌記錄訊息。" + +#: ../base.xml:1084(para) ../base.xml:1166(para) ../base.xml:1168(guimenuitem) +msgid "Compare Files" +msgstr "比較檔案" + +#: ../base.xml:1085(para) +msgid "" +"Compares two files and displays the differences between the files in the " +"output window. This plugin uses the diff command to " +"compare the files." +msgstr "" +"比較兩個檔案,並將檔案的不同處,顯示在輸出視窗中。 這個增效模組是使用 " +"diff 指令來比較檔案。" + +#: ../base.xml:1089(para) ../base.xml:1171(para) ../base.xml:1173(guimenuitem) +msgid "Document Statistics" +msgstr "文件統計資料" + +#: ../base.xml:1090(para) +msgid "" +"Counts the number of lines, words, characters, and bytes in the current " +"file. The plugin displays the results in a Document Statistics dialog." +msgstr "" +"計算目前檔案的行數、字數、字元數和位元組數。增效模組 會在文件統計資" +"料對話方塊中顯示結果。" + +#: ../base.xml:1094(para) ../base.xml:1176(para) +msgid "Indent lines" +msgstr "縮排行" + +#: ../base.xml:1095(para) +msgid "" +"Indents the selected lines, or removes the indentation from the selected " +"lines." +msgstr "將選取的行縮排,或移除選取行的縮排設定。" + +#: ../base.xml:1098(para) ../base.xml:1183(para) +msgid "Insert Date/Time" +msgstr "加入日期/時間 (插入 Date/Time)" + +#: ../base.xml:1099(para) +msgid "Inserts the current date and time into a file." +msgstr "在檔案中加入目前的日期及時間。" + +#: ../base.xml:1102(para) ../base.xml:1188(para) +msgid "Shell command" +msgstr "Shell 指令" + +#: ../base.xml:1103(para) +msgid "Displays the text output of a shell command in the output window." +msgstr "將 shell 指令的文字輸出顯示於輸出視窗。" + +#: ../base.xml:1106(para) ../base.xml:1193(para) ../base.xml:1195(guimenuitem) +msgid "Sort" +msgstr "排序" + +#: ../base.xml:1107(para) +msgid "Sorts the selected text." +msgstr "將選取的文字排序。" + +#: ../base.xml:1110(para) ../base.xml:1198(para) +msgid "Tag list" +msgstr "標記清單 (Tag 清單)" + +#: ../base.xml:1111(para) +msgid "" +"Displays a window that contains a list of common tags. You can use the " +"window to insert a tag into a file." +msgstr "顯示包含一般標記清單的視窗。您可以使用本視窗 將標記加入檔案。" + +#: ../base.xml:1115(para) ../base.xml:1203(para) +msgid "User name" +msgstr "使用者名稱 (使用r 名稱)" + +#: ../base.xml:1116(para) +msgid "Inserts the username of the current user into the file." +msgstr "將目前的使用者名稱加入到檔案中。" + +#: ../base.xml:1123(title) +msgid "To Load gedit Plugins" +msgstr "載入 gedit 增效模組" + +#: ../base.xml:1124(para) +msgid "" +"To load gedit plugins, choose " +"EditPreferences. Within the Plugins category, click on the " +"Manager subcategory. The Manager " +"subcategory displays the following information:" +msgstr "" +"如果要載入 gedit增效模組,請選擇" +"編輯偏好設定。在增效模組類別中,按一下管理員子類別。 管理員子類別會顯示下列資訊:" + +#: ../base.xml:1131(para) +msgid "" +"A list of the plugins that you can use with gedit." +msgstr "可以與 gedit 一同使用之增效模組的清單。" + +#: ../base.xml:1133(para) +msgid "" +"A Configure plugin button. You can use this button to " +"open a configuration dialog for the plugins that you can configure. For " +"example, see and ." +msgstr "" +"配置增效模組 按鈕。您可以使用這個按鈕,為您可以配置的" +"增效模組,開啟配置對話方塊。例如,請參閱 以及 。" + +#: ../base.xml:1136(para) +msgid "" +"A brief description of each plugin. To display a description, select the " +"plugin from the list of plugins." +msgstr "" +"每一個增效模組的簡短說明。如果要顯示說明,請從增效模組清單中選取增效模組。" + +#: ../base.xml:1139(para) +msgid "Details about the author of the plugin and the name of the module." +msgstr "增效模組作者及模組名稱之詳細資訊。" + +#: ../base.xml:1142(para) +msgid "" +"To load a plugin, select the check box next to the name of the plugin. The " +"gedit application adds the plugin to the " +"appropriate gedit menu, as described in the " +"following table." +msgstr "" +"如果要載入增效模組,請選取增效模組名稱旁的核取方塊。gedit 應用程式 會如下表所述,將外掛程式加入適當的 gedit 功能表中。" + +#: ../base.xml:1151(para) +msgid "Added to Menu" +msgstr "加入至功能表" + +#: ../base.xml:1157(guimenu) ../base.xml:1199(guimenu) +msgid "View" +msgstr "檢視" + +#: ../base.xml:1158(guimenuitem) +msgid "ASCII Table" +msgstr "ASCII 表" + +#: ../base.xml:1162(guimenu) +msgid "File" +msgstr "檔案" + +#: ../base.xml:1163(guimenuitem) +msgid "Open CVS ChangeLogs" +msgstr "開啟 CVS 變更Logs" + +#: ../base.xml:1167(guimenu) ../base.xml:1172(guimenu) +#: ../base.xml:1189(guimenu) +msgid "Tools" +msgstr "工具" + +#: ../base.xml:1177(guimenu) ../base.xml:1179(guimenu) +#: ../base.xml:1184(guimenu) ../base.xml:1194(guimenu) +#: ../base.xml:1204(guimenu) +msgid "Edit" +msgstr "編輯" + +#: ../base.xml:1178(guimenuitem) +msgid "Indent" +msgstr "縮排" + +#: ../base.xml:1180(guimenuitem) +msgid "Unindent" +msgstr "減少縮排" + +#: ../base.xml:1185(guimenuitem) +msgid "Insert Date and Time" +msgstr "加入日期和時間" + +#: ../base.xml:1190(guimenuitem) +msgid "Run Command" +msgstr "執行指令" + +#: ../base.xml:1200(guimenuitem) +msgid "Tag List" +msgstr "標記清單" + +#: ../base.xml:1205(guimenuitem) +msgid "Insert User Name" +msgstr "加入使用者名稱" + +#: ../base.xml:1210(para) ../base.xml:1224(para) ../base.xml:1341(para) +#: ../base.xml:1454(para) +msgid "" +"To close the Preferences dialog, click " +"Close." +msgstr "" +"如果要關閉偏好設定對話方塊,請按一下關閉。" + +#: ../base.xml:1216(title) +msgid "To Remove gedit Plugins" +msgstr "移除 gedit 增效模組" + +#: ../base.xml:1217(para) +msgid "A plugin remains loaded when you quit gedit." +msgstr "" +"即使您離開了 gedit,增效模組仍然是載入應用程式中。" + +#: ../base.xml:1218(para) +msgid "" +"To remove gedit plugins, choose " +"EditPreferences. Within the Plugins category, click on the " +"Manager subcategory. To remove a plugin, deselect the " +"check box next to the name of the plugin." +msgstr "" +"如果要移除 gedit 增效模組,請選擇" +"編輯偏好設定。在增效模組類別中,按一下管理員子類別。 如果要移除增效模組,請取消選取增效模組名稱旁的核取方塊。" + +#: ../base.xml:1230(title) +msgid "ASCII Table Plugin" +msgstr "ASCII 表增效模組" + +#: ../base.xml:1231(para) +msgid "" +"The ASCII table plugin displays a dialog that contains an ASCII table. You " +"can use the ASCII table to insert characters into a file. To use the ASCII " +"table plugin, perform the following steps:" +msgstr "" +"ASCII 表增效模組會顯示一個對話方塊,其內含有 ASCII 表。您可以使用 ASCII 表," +"在檔案中插入字元。 如果要使用 ASCII 表增效模組,請執行下列的步驟:" + +#: ../base.xml:1234(para) +msgid "Load the ASCII table plugin." +msgstr "載入 ASCII 表增效模組。" + +#: ../base.xml:1236(para) +msgid "" +"Choose ViewASCII Table to display the ASCII Table " +"dialog." +msgstr "" +"請選擇檢視ASCII 表,顯示 ASCII 表對話方塊。" + +#: ../base.xml:1240(para) +msgid "" +"Scroll through the list to find the character that you require, then select " +"the character with a single click." +msgstr "在清單中捲動,找尋您所需的字元,然後在字元上按一下,選取該字元。" + +#: ../base.xml:1243(para) +msgid "" +"Click on the Insert char button to insert the " +"character at the cursor position in the current file." +msgstr "" +"按一下加入字元按鈕,將字元加入目前游標所在的檔案位置" +"上。" + +#: ../base.xml:1246(para) +msgid "" +"When you finish entering ASCII characters, click Close to close the ASCII Table dialog." +msgstr "" +"完成所有 ASCII 字元輸入後,請按一下關閉,關閉 " +"ASCII 表對話方塊。" + +#: ../base.xml:1253(title) +msgid "CVS ChangeLog Plugin" +msgstr "CVS ChangeLog 增效模組" + +#: ../base.xml:1254(para) +msgid "" +"The CVS ChangeLog plugin opens the log messages associated with CVS commit " +"commands. This plugin enables you to easily paste text into the commit " +"message from the ChangeLog file. To use the CVS ChangeLog plugin, perform " +"the following steps:" +msgstr "" +"CVS ChangeLog 增效模組會開啟與 CVS commit 指令相關的記錄訊息。 這個增效模組可" +"以讓您輕易地從 ChangeLog 檔案中,將文字貼入 commit 訊息裡。 如果要使用 CVS 變" +"更Log 增效模組,請執行下列步驟:" + +#: ../base.xml:1258(para) +msgid "" +"Set the environment variable CVSEDITOR to gedit. " +"For example, if you are using the bash shell, run the " +"following command at the operating system prompt: export " +"CVSEDITOR=gedit " +msgstr "" +"將環境變數 CVSEDITOR 設為 gedit。 例如,如果您正在" +"使用 bash shell,請在作業系統 提示的時候,輸入下面的指" +"令: export CVSEDITOR=gedit " + +#: ../base.xml:1264(para) +msgid "" +"Commit a file to CVS in the usual way. A gedit " +"window opens, to enable you to enter the commit message." +msgstr "" +"以平常的方式將檔案確定至 CVS。此時會開啟 gedit 視" +"窗,讓您輸入 commit 訊息。" + +#: ../base.xml:1267(para) +msgid "Load the CVS ChangeLog plugin." +msgstr "載入 CVS ChangeLog 增效模組。" + +#: ../base.xml:1269(para) +msgid "" +"Choose FileOpen CVS ChangeLogs to open all of the ChangeLog files referenced in " +"the commit message. gedit opens each ChangeLog " +"file in a new tab." +msgstr "" +"請選擇 檔案開啟 CVS ChangeLogs,開啟所有 commit 訊息中所出現的 ChangeLog 檔案。" +"gedit 會為每個 變更Log 檔案開啟一個新標籤。" + +#: ../base.xml:1272(para) +msgid "" +"Copy the ChangeLog entries that you want to add to the commit message from " +"the gedit ChangeLog files." +msgstr "" +"gedit ChangeLog 檔案中,複製您想加入 commit 訊息" +"的 ChangeLog 記錄。" + +#: ../base.xml:1275(para) +msgid "" +"Insert the copied ChangeLog entries in the gedit " +"commit message tab." +msgstr "" +"將 ChangeLog 記錄加入 gedit 的 commit 訊息標籤內。" + +#: ../base.xml:1278(para) +msgid "Save your changes to the commit message, then close all files." +msgstr "儲存您對 commit 訊息所做的變更,然後關閉所有的檔案。" + +#: ../base.xml:1281(para) +msgid "Quit gedit." +msgstr "結束 gedit。" + +#: ../base.xml:1288(title) +msgid "Compare Files Plugin" +msgstr "比較檔案增效模組" + +#: ../base.xml:1289(para) +msgid "" +"The Compare Files plugin compares two files and displays the differences " +"between the files in the output window. This plugin uses the diff command to compare the files. To use the Compare Files plugin, " +"perform the following steps:" +msgstr "" +"比較檔案增效模組會比較兩個檔案,並將這兩個檔案不同的地方,顯示在輸出視窗中。 " +"這個增效模組會使用 diff 指令來比較檔案。 如果要使用比較檔" +"案增效模組,請執行下列的步驟:" + +#: ../base.xml:1293(para) +msgid "Load the Compare Files plugin." +msgstr "載入比較檔案增效模組。" + +#: ../base.xml:1295(para) +msgid "" +"Choose ToolsCompare Files. When you choose this option for the first time, " +"you are prompted to confirm the location of the diff " +"command. You are not prompted for this location again. See for information about how to change this " +"location later." +msgstr "" +"請選擇 工具比較檔案。 當您是第一次選擇這個選項,系統會提示您,請您確認 " +"diff 指令的位置。以後則不會再提示您確認位置。若需如何在日" +"後變更這個位置的詳細資訊,請參閱 。" + +#: ../base.xml:1299(para) +msgid "" +"Click OK to display the Compare Files dialog." +msgstr "" +"按一下確定,顯示比較檔案對話方" +"塊。" + +#: ../base.xml:1302(para) +msgid "" +"Specify the files that you want to compare. To specify an open file, select " +"the file from the drop-down list. To specify a closed file, enter the " +"location of the file in the text box." +msgstr "" +"指定您想要比較的檔案。如果要指定已開啟的檔案,請 從下拉式清單中選取。如果要指" +"定關閉的檔案,請在文字方塊中,輸入該檔案的位置。" + +#: ../base.xml:1306(para) +msgid "" +"To ignore changes in the amount of white space, select the Ignore " +"blanks option." +msgstr "如果要忽略空白數量的不同,請選取忽略空白選項。" + +#: ../base.xml:1309(para) +msgid "" +"To use the unified output format, showing three lines of context, select the " +"Use the unified output format option." +msgstr "" +"如果要使用 unified 輸出格式,也就是顯示三行內文的形式,請選取使用 " +"unified 輸出格式選項。" + +#: ../base.xml:1312(para) +msgid "" +"Click on the Compare button to compare the contents " +"of the specified files. The command output is displayed in the output window." +msgstr "" +"按一下比較按鈕,開始比較所指定檔案的內容。指令輸出會顯" +"示在輸出視窗中。" + +#: ../base.xml:1316(para) +msgid "" +"For more information, see diff1." +msgstr "" +"若需詳細的資訊,請參閱 diff1。 您可以選擇下列條件中的一項或以上:" + +#: ../base.xml:1320(title) +msgid "To Configure the Compare Files Plugin" +msgstr "配置比較檔案增效模組" + +#: ../base.xml:1321(para) +msgid "" +"To change the location of the command that the Compare Files plugin uses, " +"perform the following steps:" +msgstr "如果要變更比較檔案增效模組所使用之指令的位置,請執行下列步驟:" + +#: ../base.xml:1323(para) ../base.xml:1425(para) +msgid "" +"Choose EditPreferences." +msgstr "" +"請選擇編輯偏好設定。" + +#: ../base.xml:1326(para) ../base.xml:1428(para) +msgid "" +"Within the Plugins category, click on the " +"Manager subcategory." +msgstr "" +"在增效模組類別中,按一下管理員子類" +"別。" + +#: ../base.xml:1329(para) +msgid "Select the Compare Files plugin." +msgstr "選取比較檔案增效模組。" + +#: ../base.xml:1332(para) +msgid "" +"Click on the Configure plugin button to display the " +"Set program location dialog." +msgstr "" +"按一下配置增效模組按鈕,顯示設定程式位置對話方塊。" + +#: ../base.xml:1335(para) +msgid "" +"Specify the location of the diff command in the " +"Location to search for text box." +msgstr "" +"請指定 diff 指令的位置 (在搜尋的位置" +"文字方塊中)。" + +#: ../base.xml:1338(para) +msgid "" +"Click OK to close the Set program location dialog." +msgstr "" +"按一下確定,關閉設定程式位置對話" +"方塊。" + +#: ../base.xml:1348(title) +msgid "Document Statistics Plugin" +msgstr "文件統計資料增效模組" + +#: ../base.xml:1349(para) +msgid "" +"The Document Statistics plugin counts the number of lines, words, " +"characters, and bytes in the current file. The plugin displays the results " +"in a Document Statistics dialog. To use the Document " +"Statistics plugin, perform the following steps:" +msgstr "" +"文件統計資料增效模組可以計算目前檔案的行數、字數、字元數和位元組數。增效模組 " +"會在文件統計資料對話方塊中顯示結果。 如果要使用文件統計" +"資料增效模組,請執行下列的步驟:" + +#: ../base.xml:1353(para) +msgid "Load the Document Statistics plugin." +msgstr "載入文件統計資料增效模組。" + +#: ../base.xml:1355(para) +msgid "" +"Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog " +"display the following information about the file:" +msgstr "" +"請選擇 工具文件統計資料,顯示文件統計資料對話方塊。" +"文件統計資料對話方塊可以顯示下列的檔案資訊:" + +#: ../base.xml:1362(para) +msgid "Number of words in the current document." +msgstr "目前文件的字數。" + +#: ../base.xml:1365(para) +msgid "Number of characters, including spaces, in the current document." +msgstr "目前文件的字元數,包括空格。" + +#: ../base.xml:1368(para) +msgid "Number of characters, not including spaces, in the current document." +msgstr "目前文件的字元數,不包括空格。" + +#: ../base.xml:1371(para) +msgid "Number of bytes in the current document." +msgstr "目前文件的位元組數。" + +#: ../base.xml:1376(para) +msgid "" +"You can continue to update the gedit file while " +"the Document Statistics dialog is open. To refresh the " +"contents of the Document Statistics dialog, click on " +"the Update button." +msgstr "" +"您可以不斷地更新gedit 檔案,而無須關閉文" +"件統計資料對話方塊。要重新整理文件統計資料對" +"話方塊的內容,請按一下更新按鈕。" + +#: ../base.xml:1379(para) +msgid "" +"To close the Document Statistics dialog, click " +"Close." +msgstr "" +"如果要關閉文件統計資料對話方塊,請按一下關閉" +"。" + +#: ../base.xml:1386(title) +msgid "Indent Lines Plugin" +msgstr "縮排行增效模組" + +#: ../base.xml:1387(para) +msgid "" +"The Indent lines plugin indents the selected lines, or removes the " +"indentation from the selected lines. To use the Indent lines plugin, perform " +"the following steps:" +msgstr "" +"縮排行增效模組會縮排選取的行,或移除選取行的縮排設定。 如果要使用縮排行增效模" +"組,請執行下列的步驟:" + +#: ../base.xml:1390(para) +msgid "Load the Indent lines plugin." +msgstr "載入縮排行增效模組。" + +#: ../base.xml:1392(para) +msgid "" +"Select the lines that you want to indent. To indent or unindent a single " +"line, place the cursor anywhere on that line." +msgstr "" +"選取您要縮排的行。如果要縮排或減少縮排單一行,請將游標置於該行的任一位置上。" + +#: ../base.xml:1395(para) +msgid "" +"Choose EditIndent." +msgstr "" +"請選擇 編輯縮排。" + +#: ../base.xml:1399(para) +msgid "" +"To remove the indentation, select the lines and choose " +"EditUnindent." +msgstr "" +"如果要移除縮排,請選取要移除縮排的行,然後選擇 編輯減少縮排。" + +#: ../base.xml:1407(title) +msgid "Insert Date/Time Plugin" +msgstr "加入日期/時間增效模組" + +#: ../base.xml:1408(para) +msgid "" +"The Insert Date/Time plugin inserts the current date and time into a file. " +"To use the Insert Date/Time plugin, perform the following steps:" +msgstr "" +"加入日期及時間增效模組會將目前的日期及時間,加入檔案中。 如果要使用加入日期/" +"時間增效模組,請執行下列的步驟:" + +#: ../base.xml:1411(para) +msgid "Load the Insert Date/Time plugin." +msgstr "載入加入日期及時間增效模組。" + +#: ../base.xml:1413(para) +msgid "" +"Choose EditInsert Date and Time." +msgstr "" +"請選擇 編輯加入日期和時間。" + +#: ../base.xml:1415(para) +msgid "" +"If you have not configured the Insert Date/Time plugin to automatically " +"insert the date/time without prompting you for the format, " +"gedit displays the Insert Date and " +"Time dialog. Select the appropriate date/time format from the " +"list. Click on the Insert button to close the " +"Insert Date and Time dialog; gedit inserts the date/time at the cursor position in the current " +"file." +msgstr "" +"如果您尚未將加入日期/時間增效模組配置成不需提示即自動加入日期/時間," +"gedit 會顯示加入日期和時間對" +"話方塊。從清單中選取適當的日期/時間格式。按一下插入按" +"鈕,關閉加入日期和時間對話方塊;gedit 會在目前檔案的游標位置上插入日期/時間。" + +#: ../base.xml:1416(para) +msgid "" +"If you have configured gedit to use one " +"particular date/time format, the Insert Date and Time " +"dialog is not displayed; the date/time is automatically entered at the " +"cursor position in the current file." +msgstr "" +"如果您已經將 gedit 配置成使用特定的日期/時間格式," +"則不會顯示加入日期和時間對話方塊;即會在目前檔案的游標位" +"置上插入日期/時間。" + +#: ../base.xml:1417(para) +msgid "" +"See for information about how " +"to configure the Insert Date/Time plugin." +msgstr "" +"若需如何配置加入日期/時間增效模組的詳細資訊,請參閱 。" + +#: ../base.xml:1422(title) +msgid "To Configure the Insert Date/Time Plugin" +msgstr "配置加入日期/時間增效模組" + +#: ../base.xml:1423(para) +msgid "To configure the Insert Date/Time plugin, perform the following steps:" +msgstr "如果要配置加入日期及時間增效模組,請執行下列步驟:" + +#: ../base.xml:1432(para) +msgid "Select the Insert Date/Time plugin." +msgstr "選取 加入日期及時間增效模組。" + +#: ../base.xml:1435(para) +msgid "" +"Click on the Configure plugin button to display the " +"Configure insert date/time plugin dialog." +msgstr "" +"按一下配置增效模組按鈕,顯示配置加入日期/時" +"間增效模組對話方塊。" + +#: ../base.xml:1438(para) +msgid "Select one of the options, as follows:" +msgstr "選取下列任一選項:您可以選擇下列條件中的一項或以上:" + +#: ../base.xml:1440(para) +msgid "" +"To specify the date/time format each time you insert the date/time, select " +"the Prompt for a format option." +msgstr "" +"如果要在每次加入日期/時間時指定日期/時間格式,請選取提示指定格式選項。" + +#: ../base.xml:1443(para) +msgid "" +"To use the same gedit-provided date/time format " +"each time you insert the date/time, select the Use the selected " +"format option, then select the appropriate format from the list. " +"When you select this option, gedit does not " +"prompt you for the date/time format when you choose " +"EditInsert Date and Time." +msgstr "" +"如果要在每次加入日期/時間時都使用 gedit 提供的日" +"期/時間格式,請選取使用選取的格式選項,然後從清單中選取" +"適當的格式。當您選取這個選項後,gedit 並不會在您選" +"擇編輯加入日期和時間時,提示您設定日期/時間的格式。" + +#: ../base.xml:1461(title) +msgid "Shell Command Plugin" +msgstr "Shell 指令增效模組" + +#: ../base.xml:1463(para) +msgid "" +"The Shell Command plugin enables you to capture the output from a shell " +"command in gedit, by displaying the text output " +"of the shell command in the output window. To use the Shell command plugin, " +"perform the following steps:" +msgstr "" +"Shell 指令增效模組可以從 gedit 的 shell 指令擷取輸" +"出,而將 shell 指令的文字輸出 顯示於輸出視窗中。如果要使用 Shell 指令增效模" +"組,請執行 下列的步驟:" + +#: ../base.xml:1467(para) +msgid "Load the Shell command plugin." +msgstr "載入 Shell 指令增效模組。" + +#: ../base.xml:1470(para) +msgid "" +"Choose ToolsRun Command to display the Run Command " +"dialog." +msgstr "" +"請選擇 工具執行指令 ,顯示執行指令對話方塊。" + +#: ../base.xml:1475(para) +msgid "" +"Type the shell command that you want to execute in the Command field." +msgstr "將您想執行的 shell 指令,鍵入 指令欄位中。" + +#: ../base.xml:1477(para) +msgid "You can include the following special characters:" +msgstr "您可以包括下列的特殊字元:" + +#: ../base.xml:1480(literal) +msgid "%f" +msgstr "%f" + +#: ../base.xml:1481(para) +msgid "" +"Use these special characters to specify the filename of the current active " +"document, including the path." +msgstr "使用此類特殊字元,指定目前使用中的檔案名稱,包括路徑。" + +#: ../base.xml:1484(literal) +msgid "%n" +msgstr "%n" + +#: ../base.xml:1485(para) +msgid "" +"Use these special characters to specify the filename of the current active " +"document, without the path. In this case, gedit " +"looks for the file in the Working directory." +msgstr "" +"使用此類特殊字元,指定目前使用中的檔案名稱,不包括路徑。此時," +"gedit 會在工作目錄中找尋檔案。" + +#: ../base.xml:1489(para) +msgid "" +"Edit the Working directory field if necessary. By " +"default, the Shell command plugin executes the command you specify in the " +"current directory." +msgstr "" +"有必要的話,請編輯工作目錄欄位。依預設值,Shell 指令增效" +"模組會執行您在目前目錄中 指定的指令。" + +#: ../base.xml:1493(para) +msgid "" +"Select the Show results in Output Window option to " +"display the results of the command in the output window. If you do not " +"select this option, gedit discards the results of " +"the command." +msgstr "" +"選取在輸出視窗顯示結果選項,在輸出視窗顯示指令的執行結" +"果。如果沒有選取這個選項,gedit 會放棄指令結果。" + +#: ../base.xml:1496(para) +msgid "" +"Click Run. The Shell command plugin executes the " +"command and inserts the text output into the output window." +msgstr "" +"按一下執行。Shell 指令 增效模組會執行該指令,並將文字" +"輸出插入輸出視窗。" + +#: ../base.xml:1500(para) +msgid "" +"Use the Shift key to select the text in the output window." +msgstr "請使用 Shift 鍵在輸出視窗中選取文字。" + +#: ../base.xml:1503(para) +msgid "" +"Click on the Copy selected lines button to copy the " +"selected text into the buffer." +msgstr "" +"按一下複製選取的行按鈕,將選取的文字複製到緩衝區。" + +#: ../base.xml:1506(para) +msgid "" +"Choose EditPaste to paste the selected text into the file." +msgstr "" +"選擇編輯貼上,將選取的文字貼入檔案。" + +#: ../base.xml:1510(para) +msgid "" +"Click on the Close the output window button to close " +"the output window." +msgstr "按一下關閉輸出視窗按鈕,關閉輸出視窗。" + +#: ../base.xml:1517(title) +msgid "Sort Plugin" +msgstr "排序增效模組" + +#: ../base.xml:1518(para) +msgid "The Sort plugin sorts the selected text." +msgstr "排序增效模組可以將選取的文字排序。" + +#: ../base.xml:1519(para) +msgid "" +"You cannot undo the Sort operation, so you should save the file before " +"performing the sort. To revert to the saved version of the file after the " +"sort operation, choose FileRevert." +msgstr "" +"您不可以復原排序作業,因此在執行排序前應先儲存檔案。如果要在排序作業後回復成" +"之前儲存的檔案版本,請選擇檔案復" +"原。" + +#: ../base.xml:1522(para) +msgid "To use the Sort plugin, perform the following steps:" +msgstr "如果要使用排序增效模組,請執行下列的步驟:" + +#: ../base.xml:1524(para) +msgid "Load the Sort plugin." +msgstr "載入增效模組。" + +#: ../base.xml:1526(para) +msgid "" +"Choose EditSort to display the Sort dialog." +msgstr "" +"請選擇 編輯排序,顯示排序對話方塊。" + +#: ../base.xml:1530(para) +msgid "" +"To arrange the text in reverse sort order, select the Reverse " +"order option." +msgstr "如果要反向排序文字,請選取反向排序選項。" + +#: ../base.xml:1533(para) +msgid "" +"To delete duplicate lines, select the Remove duplicates " +"option." +msgstr "如果要刪除重複的行,請選取移除重複的行選項。" + +#: ../base.xml:1536(para) +msgid "" +"To ignore case sensitivity, select the Ignore case " +"option." +msgstr "如果不要區分大小寫,請選取忽略大小寫選項。" + +#: ../base.xml:1539(para) +msgid "" +"To specify the start position of the sort, select the appropriate column " +"from the Start at column spin box." +msgstr "" +"如果要指定排序的啟始位置,請從啟始欄旋轉方塊中選取適當的" +"欄。" + +#: ../base.xml:1542(para) +msgid "" +"To perform the sort operation, click on the Sort " +"button." +msgstr "如果要執行排序作業,請按一下排序按鈕。" + +#: ../base.xml:1549(title) +msgid "Tag List Plugin" +msgstr "速成標記增效模組" + +#: ../base.xml:1550(para) +msgid "" +"The Tag List plugin displays a window that contains a list of common tags. " +"You can use the window to insert a tag into a file. To use the Tag List " +"plugin, perform the following steps:" +msgstr "" +"速成標記增效模組會將常見的標記,顯示在視窗中。您可以使用這個視窗將 標記插入檔" +"案。 如果要使用速成標記增效模組,請執行下列的步驟:" + +#: ../base.xml:1554(para) +msgid "Load the Tag List plugin." +msgstr "載入速成標記增效模組。" + +#: ../base.xml:1556(para) +msgid "" +"Choose ViewTag List to display the Tag list plugin window." +msgstr "" +"選擇檢視標記清單,顯示速成標記增效模組視窗。" + +#: ../base.xml:1560(para) +msgid "" +"Select the appropriate tag category from the drop-down list; for example, " +"HTML - Tags." +msgstr "" +"請從下拉式清單中,選取適當的標記類別。例如,HTML - Tags。" + +#: ../base.xml:1563(para) +msgid "Scroll through the tag list to find the required tag." +msgstr "在標記清單中捲動,尋找所需的標記。" + +#: ../base.xml:1566(para) +msgid "" +"To insert a tag at the cursor position in the current file, double-click on " +"the tag in the tag list. You can also insert a tag as follows:" +msgstr "" +"要在目前檔案游標的位置上加入標記,請在標記清單中的標記上連按兩下。您也可以使" +"用下列方式加入標記:" + +#: ../base.xml:1568(para) +msgid "" +"To insert a tag in the current file and change the focus from the " +"Tag list plugin window to the editor window, press " +"Enter." +msgstr "" +"如果要將標記加入目前檔案,並且將焦點由速成標記增效模組視" +"窗,變更到編輯器視窗的話,請按一下 輸入 鍵。" + +#: ../base.xml:1571(para) +msgid "" +"To insert a tag in the current file and maintain the focus on the " +"Tag list plugin window, press ShiftEnter." +msgstr "" +"如果要將標記加入目前的檔案,但是焦點保持在速成標記增效模組視窗的話,請按 Shift輸入。" + +#: ../base.xml:1576(para) +msgid "" +"To close the Tag list plugin window, click on the " +"Close Window button in the window frame. " +"Alternatively, press CtrlW when the focus is on the Tag list plugin " +"window." +msgstr "" +"如果要關閉速成標記增效模組視窗,請按一下視窗框架上的" +"關閉視窗按鈕。或者,您也可以按 " +"CtrlW,但是焦點必須是" +"在速成標記增效模組視窗上。" + +#: ../base.xml:1583(title) +msgid "User Name Plugin" +msgstr "使用者名稱增效模組" + +#: ../base.xml:1584(para) +msgid "" +"The User name plugin inserts the username of the current user into the file. " +"To use the User name plugin, perform the following steps:" +msgstr "" +"使用者名稱增效模組會將目前使用者的名稱,加入檔案中。 如果要使用使用者名稱增效" +"模組,請執行下列步驟:" + +#: ../base.xml:1587(para) +msgid "Load the User name plugin." +msgstr "載入使用者名稱增效模組。" + +#: ../base.xml:1589(para) +msgid "" +"Choose EditInsert User Name to insert your username at the cursor position in " +"the current file." +msgstr "" +"選擇編輯加入使用者名稱,將您的使用者名稱加入目前檔案游標所在的位置。" + +#: ../lbase.xml:2(para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any " +"later version published by the Free Software Foundation with no Invariant " +"Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy " +"of the GFDL at this link or " +"in the file COPYING-DOCS distributed with this manual." +msgstr "" +"根據自由軟體基金會 (Free Software Foundation) 所發佈 的 GNU 自由文件授權 " +"(GNU Free Documentation License, GFDL) 1.1 (含) 以後版本, 使用者可以複製、散" +"佈,或修改本文件,但不得增刪章節,不得加上封面文字, 亦不得加上封底文字。 如" +"要取得 GFDL 的副本,請參閱 此連結,或是參閱與本手冊一同隨附的 COPYING-DOCS 檔案。" + +#: ../lbase.xml:5(para) +msgid "" +"This manual is part of a collection of GNOME manuals distributed under the " +"GFDL. If you want to distribute this manual separately from the collection, " +"you can do so by adding a copy of the license to the manual, as described in " +"section 6 of the license." +msgstr "" +"本手冊是屬於依 GFDL 授權所發佈之 GNOME 手冊集中的一部份。 如果您只要單獨散佈" +"本手冊,依據授權聲明第六節之敘述, 您必須另外將授權聲明加入本手冊中。" + +#: ../lbase.xml:8(para) +msgid "" +"Many of the names used by companies to distinguish their products and " +"services are claimed as trademarks. Where those names appear in any GNOME " +"documentation, and the members of the GNOME Documentation Project are made " +"aware of those trademarks, then the names are in capital letters or initial " +"capital letters." +msgstr "" +"許多公司為了突顯其產品與服務,會使用特別名稱,並亦已聲明這些 名稱為其商標。當" +"這些名稱出現在 GNOME 文件中,同時 GNOME 文件 專案小組成員亦明白這些名稱為商標" +"時, 這些名稱會以大寫字母或是首字母大寫表示。" + +#: ../lbase.xml:17(para) +msgid "" +"DOCUMENT IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTY OF ANY KIND, " +"EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT " +"THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS " +"MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE " +"RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR " +"MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR " +"MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL " +"WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY " +"SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN " +"ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION " +"OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND " +"UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING " +"NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY " +"CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE " +"DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON " +"FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF " +"ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, " +"WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES " +"OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED " +"VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE " +"POSSIBILITY OF SUCH DAMAGES." +msgstr "" +"文件提供是以其「原樣」呈現,不管明示或暗示,皆不具任何 保證,包括 (但不限於) " +"文件或修正版毫無錯誤、可販售、 具特殊用途,或不侵權。 關於本文件與修正版文件" +"之品質、正確性及功用, 其風險您必須自行承擔。 若本文件或修正版有任何缺陷,任" +"何必須之保養,修理及更正, 應由您自行承擔,原始作者、作者或任何散佈者無須負" +"責。 本免責聲明是本授權聲明極重要與必要的一部份,因此任何文件或 修正版的授" +"權,皆須在同意本免責聲明的情況下進行;同時" +"在任何情況或法律理論下,亦即不管是在侵權 (包括疏忽)、契約或 其他情形,或是已" +"預先告知會有下列損害之可能時,本文件 或修正版的任何作者、原始作者、投稿人以及" +"散佈者,或是 任何提供單位,對於因使用本文件及修正版,或與本文件及 修正版使用" +"相關所造成的任何直接、間接、特殊、偶然或必 然之損害,包括 (但不限於) 信譽受" +"損、工作停止、電腦當 機或不正常運作,或任何所有其他損害,上述人等皆不需負 任" +"何責任。" + +#: ../lbase.xml:12(para) +msgid "" +"DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS " +"OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: " +"" +msgstr "" +"本文件及其修正版本的提供,是基於 GNU 自由文件授權聲明的條款,同時亦有下列共" +"識: " diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..d3fea1d Binary files /dev/null and b/logo.png differ diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..edf9ed1 --- /dev/null +++ b/meson.build @@ -0,0 +1,96 @@ +project( + 'gedit', 'c', + version: '3.38.1', + meson_version: '>= 0.53' +) + +if host_machine.system() == 'darwin' + add_languages('objc') +endif + +gnome = import('gnome') +i18n = import('i18n') +pkg_config = import('pkgconfig') +python = import('python') + +api_version = '3.38' + +# Paths +root_include_dir = include_directories('.') + +srcdir = meson.current_source_dir() + +pkglibdir = get_option('prefix') / get_option('libdir') / 'gedit' +pkgdatadir = get_option('prefix') / get_option('datadir') / 'gedit' +glibdir = get_option('prefix') / get_option('datadir') / 'glib-2.0' + +# Subprojects +if not get_option('buildtype').contains('plain') + run_command('git', '-C', meson.source_root(), 'submodule', 'update', '--init', '--recursive') +endif + +libgd_subproject = subproject( + 'libgd', + default_options: [ + 'with-tagged-entry=true', + 'static=true', + ] +) + +libgd_dep = libgd_subproject.get_variable('libgd_dep') + +# Dependencies +gio_dep = dependency('gio-2.0', version: '>= 2.64') + +libgedit_public_deps = [ + gio_dep, + dependency('gtk+-3.0', version: '>= 3.22'), + dependency('tepl-5', version: '>= 5.0'), + dependency('libpeas-gtk-1.0'), +] + +deps_basic_list = [ + libgedit_public_deps, + dependency('gobject-introspection-1.0'), +] + +gspell_dep = dependency('gspell-1', version: '>= 1.0') +python3 = python.find_installation('python3') + +# Configurations +config_h = configuration_data() +config_h.set_quoted('PACKAGE_STRING', 'gedit-@0@'.format(api_version)) +config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name()) +config_h.set_quoted('LIBDIR', join_paths(get_option('prefix'), get_option('libdir'))) +config_h.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir'))) +config_h.set_quoted('VERSION', meson.project_version()) + +configure_file( + output: 'config.h', + configuration: config_h +) + +subdir('data') +subdir('po') +subdir('gedit') +subdir('plugins') + +if get_option('gtk_doc') + subdir('docs/reference') +endif + +if get_option('user_documentation') + subdir('help') +endif + +meson.add_install_script( + 'build-aux/meson/post_install.py', + get_option('prefix') / get_option('libdir'), + get_option('prefix') / get_option('datadir') +) + +summary('API version', api_version) +summary('Prefix', get_option('prefix')) +summary('API documentation', get_option('gtk_doc')) +summary('User documentation', get_option('user_documentation')) +summary('Require all tests', get_option('require_all_tests')) diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..4e842d1 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,24 @@ +option( + 'gtk_doc', + type: 'boolean', value: false, + description: 'Build API reference for plugins (requires gtk-doc)' +) + +# If this option is kept to false, then it's an automatic behavior: if the +# third party program is found, then the test is defined. +# Setting this option to true will stop the configure phase with a hard error +# if a third party program is not found and is required to define a test. +option( + 'require_all_tests', + type: 'boolean', value: false, + description: 'Require that all tests can be run, even those that depend on third party programs' +) + +# This option exists for the developers, to speed up the install. +option( + 'user_documentation', + type: 'boolean', value: true, + description: 'Build user documentation' +) + +option('plugin_externaltools', type: 'boolean', value: true) diff --git a/plugins/docinfo/docinfo.plugin.desktop.in b/plugins/docinfo/docinfo.plugin.desktop.in new file mode 100644 index 0000000..b493bb4 --- /dev/null +++ b/plugins/docinfo/docinfo.plugin.desktop.in @@ -0,0 +1,8 @@ +[Plugin] +Module=docinfo +IAge=3 +Name=Document Statistics +Description=Report the number of words, lines and characters in a document. +Authors=Paolo Maggi ;Jorge Alberto Torres +Copyright=Copyright © 2002-2005 Paolo Maggi +Website=http://www.gedit.org diff --git a/plugins/docinfo/gedit-docinfo-plugin.c b/plugins/docinfo/gedit-docinfo-plugin.c new file mode 100644 index 0000000..5073254 --- /dev/null +++ b/plugins/docinfo/gedit-docinfo-plugin.c @@ -0,0 +1,638 @@ +/* + * gedit-docinfo-plugin.c + * + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + * + */ + +#include "config.h" + +#include "gedit-docinfo-plugin.h" + +#include /* For strlen (...) */ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +struct _GeditDocinfoPluginPrivate +{ + GeditWindow *window; + + GSimpleAction *action; + + GtkWidget *dialog; + GtkWidget *header_bar; + GtkWidget *lines_label; + GtkWidget *words_label; + GtkWidget *chars_label; + GtkWidget *chars_ns_label; + GtkWidget *bytes_label; + GtkWidget *document_label; + GtkWidget *document_lines_label; + GtkWidget *document_words_label; + GtkWidget *document_chars_label; + GtkWidget *document_chars_ns_label; + GtkWidget *document_bytes_label; + GtkWidget *selection_label; + GtkWidget *selected_lines_label; + GtkWidget *selected_words_label; + GtkWidget *selected_chars_label; + GtkWidget *selected_chars_ns_label; + GtkWidget *selected_bytes_label; + + GeditApp *app; + GeditMenuExtension *menu_ext; +}; + +enum +{ + PROP_0, + PROP_WINDOW, + PROP_APP +}; + +static void gedit_app_activatable_iface_init (GeditAppActivatableInterface *iface); +static void gedit_window_activatable_iface_init (GeditWindowActivatableInterface *iface); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditDocinfoPlugin, + gedit_docinfo_plugin, + PEAS_TYPE_EXTENSION_BASE, + 0, + G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_APP_ACTIVATABLE, + gedit_app_activatable_iface_init) + G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_WINDOW_ACTIVATABLE, + gedit_window_activatable_iface_init) + G_ADD_PRIVATE_DYNAMIC (GeditDocinfoPlugin)) + +static void +calculate_info (GeditDocument *doc, + GtkTextIter *start, + GtkTextIter *end, + gint *chars, + gint *words, + gint *white_chars, + gint *bytes) +{ + gchar *text; + + gedit_debug (DEBUG_PLUGINS); + + text = gtk_text_buffer_get_slice (GTK_TEXT_BUFFER (doc), + start, + end, + TRUE); + + *chars = g_utf8_strlen (text, -1); + *bytes = strlen (text); + + if (*chars > 0) + { + PangoLogAttr *attrs; + gint i; + + attrs = g_new0 (PangoLogAttr, *chars + 1); + + pango_get_log_attrs (text, + -1, + 0, + pango_language_from_string ("C"), + attrs, + *chars + 1); + + for (i = 0; i < (*chars); i++) + { + if (attrs[i].is_white) + ++(*white_chars); + + if (attrs[i].is_word_start) + ++(*words); + } + + g_free (attrs); + } + else + { + *white_chars = 0; + *words = 0; + } + + g_free (text); +} + +static void +update_document_info (GeditDocinfoPlugin *plugin, + GeditDocument *doc) +{ + GeditDocinfoPluginPrivate *priv; + GtkTextIter start, end; + gint words = 0; + gint chars = 0; + gint white_chars = 0; + gint lines = 0; + gint bytes = 0; + gchar *doc_name; + gchar *tmp_str; + + gedit_debug (DEBUG_PLUGINS); + + priv = plugin->priv; + + gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (doc), + &start, + &end); + + lines = gtk_text_buffer_get_line_count (GTK_TEXT_BUFFER (doc)); + + calculate_info (doc, + &start, &end, + &chars, &words, &white_chars, &bytes); + + if (chars == 0) + { + lines = 0; + } + + gedit_debug_message (DEBUG_PLUGINS, "Chars: %d", chars); + gedit_debug_message (DEBUG_PLUGINS, "Lines: %d", lines); + gedit_debug_message (DEBUG_PLUGINS, "Words: %d", words); + gedit_debug_message (DEBUG_PLUGINS, "Chars non-space: %d", chars - white_chars); + gedit_debug_message (DEBUG_PLUGINS, "Bytes: %d", bytes); + + doc_name = gedit_document_get_short_name_for_display (doc); + gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->header_bar), doc_name); + g_free (doc_name); + + tmp_str = g_strdup_printf("%d", lines); + gtk_label_set_text (GTK_LABEL (priv->document_lines_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", words); + gtk_label_set_text (GTK_LABEL (priv->document_words_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", chars); + gtk_label_set_text (GTK_LABEL (priv->document_chars_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", chars - white_chars); + gtk_label_set_text (GTK_LABEL (priv->document_chars_ns_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", bytes); + gtk_label_set_text (GTK_LABEL (priv->document_bytes_label), tmp_str); + g_free (tmp_str); +} + +static void +update_selection_info (GeditDocinfoPlugin *plugin, + GeditDocument *doc) +{ + GeditDocinfoPluginPrivate *priv; + gboolean sel; + GtkTextIter start, end; + gint words = 0; + gint chars = 0; + gint white_chars = 0; + gint lines = 0; + gint bytes = 0; + gchar *tmp_str; + + gedit_debug (DEBUG_PLUGINS); + + priv = plugin->priv; + + sel = gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), + &start, + &end); + + if (sel) + { + lines = gtk_text_iter_get_line (&end) - gtk_text_iter_get_line (&start) + 1; + + calculate_info (doc, + &start, &end, + &chars, &words, &white_chars, &bytes); + + gedit_debug_message (DEBUG_PLUGINS, "Selected chars: %d", chars); + gedit_debug_message (DEBUG_PLUGINS, "Selected lines: %d", lines); + gedit_debug_message (DEBUG_PLUGINS, "Selected words: %d", words); + gedit_debug_message (DEBUG_PLUGINS, "Selected chars non-space: %d", chars - white_chars); + gedit_debug_message (DEBUG_PLUGINS, "Selected bytes: %d", bytes); + + gtk_widget_set_sensitive (priv->selection_label, TRUE); + gtk_widget_set_sensitive (priv->selected_words_label, TRUE); + gtk_widget_set_sensitive (priv->selected_bytes_label, TRUE); + gtk_widget_set_sensitive (priv->selected_lines_label, TRUE); + gtk_widget_set_sensitive (priv->selected_chars_label, TRUE); + gtk_widget_set_sensitive (priv->selected_chars_ns_label, TRUE); + } + else + { + gedit_debug_message (DEBUG_PLUGINS, "Selection empty"); + + gtk_widget_set_sensitive (priv->selection_label, FALSE); + gtk_widget_set_sensitive (priv->selected_words_label, FALSE); + gtk_widget_set_sensitive (priv->selected_bytes_label, FALSE); + gtk_widget_set_sensitive (priv->selected_lines_label, FALSE); + gtk_widget_set_sensitive (priv->selected_chars_label, FALSE); + gtk_widget_set_sensitive (priv->selected_chars_ns_label, FALSE); + } + + if (chars == 0) + lines = 0; + + tmp_str = g_strdup_printf("%d", lines); + gtk_label_set_text (GTK_LABEL (priv->selected_lines_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", words); + gtk_label_set_text (GTK_LABEL (priv->selected_words_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", chars); + gtk_label_set_text (GTK_LABEL (priv->selected_chars_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", chars - white_chars); + gtk_label_set_text (GTK_LABEL (priv->selected_chars_ns_label), tmp_str); + g_free (tmp_str); + + tmp_str = g_strdup_printf("%d", bytes); + gtk_label_set_text (GTK_LABEL (priv->selected_bytes_label), tmp_str); + g_free (tmp_str); +} + +static void +docinfo_dialog_response_cb (GtkDialog *widget, + gint res_id, + GeditDocinfoPlugin *plugin) +{ + GeditDocinfoPluginPrivate *priv; + + gedit_debug (DEBUG_PLUGINS); + + priv = plugin->priv; + + switch (res_id) + { + case GTK_RESPONSE_CLOSE: + { + gedit_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_CLOSE"); + + gtk_widget_destroy (priv->dialog); + + break; + } + + case GTK_RESPONSE_OK: + { + GeditDocument *doc; + + gedit_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_OK"); + + doc = gedit_window_get_active_document (priv->window); + + update_document_info (plugin, doc); + update_selection_info (plugin, doc); + + break; + } + } +} + +static void +create_docinfo_dialog (GeditDocinfoPlugin *plugin) +{ + GeditDocinfoPluginPrivate *priv; + GtkBuilder *builder; + + gedit_debug (DEBUG_PLUGINS); + + priv = plugin->priv; + + builder = gtk_builder_new (); + gtk_builder_add_from_resource (builder, "/org/gnome/gedit/plugins/docinfo/ui/gedit-docinfo-plugin.ui", NULL); + priv->dialog = GTK_WIDGET (gtk_builder_get_object (builder, "dialog")); + priv->header_bar = GTK_WIDGET (gtk_builder_get_object (builder, "header_bar")); + priv->words_label = GTK_WIDGET (gtk_builder_get_object (builder, "words_label")); + priv->bytes_label = GTK_WIDGET (gtk_builder_get_object (builder, "bytes_label")); + priv->lines_label = GTK_WIDGET (gtk_builder_get_object (builder, "lines_label")); + priv->chars_label = GTK_WIDGET (gtk_builder_get_object (builder, "chars_label")); + priv->chars_ns_label = GTK_WIDGET (gtk_builder_get_object (builder, "chars_ns_label")); + priv->document_label = GTK_WIDGET (gtk_builder_get_object (builder, "document_label")); + priv->document_words_label = GTK_WIDGET (gtk_builder_get_object (builder, "document_words_label")); + priv->document_bytes_label = GTK_WIDGET (gtk_builder_get_object (builder, "document_bytes_label")); + priv->document_lines_label = GTK_WIDGET (gtk_builder_get_object (builder, "document_lines_label")); + priv->document_chars_label = GTK_WIDGET (gtk_builder_get_object (builder, "document_chars_label")); + priv->document_chars_ns_label = GTK_WIDGET (gtk_builder_get_object (builder, "document_chars_ns_label")); + priv->selection_label = GTK_WIDGET (gtk_builder_get_object (builder, "selection_label")); + priv->selected_words_label = GTK_WIDGET (gtk_builder_get_object (builder, "selected_words_label")); + priv->selected_bytes_label = GTK_WIDGET (gtk_builder_get_object (builder, "selected_bytes_label")); + priv->selected_lines_label = GTK_WIDGET (gtk_builder_get_object (builder, "selected_lines_label")); + priv->selected_chars_label = GTK_WIDGET (gtk_builder_get_object (builder, "selected_chars_label")); + priv->selected_chars_ns_label = GTK_WIDGET (gtk_builder_get_object (builder, "selected_chars_ns_label")); + g_object_unref (builder); + + gtk_dialog_set_default_response (GTK_DIALOG (priv->dialog), + GTK_RESPONSE_OK); + gtk_window_set_transient_for (GTK_WINDOW (priv->dialog), + GTK_WINDOW (priv->window)); + + g_signal_connect (priv->dialog, + "destroy", + G_CALLBACK (gtk_widget_destroyed), + &priv->dialog); + g_signal_connect (priv->dialog, + "response", + G_CALLBACK (docinfo_dialog_response_cb), + plugin); + + /* We set this explictely with code since glade does not + * save the can_focus property when set to false :( + * Making sure the labels are not focusable is needed to + * prevent loosing the selection in the document when + * creating the dialog. + */ + gtk_widget_set_can_focus (priv->words_label, FALSE); + gtk_widget_set_can_focus (priv->bytes_label, FALSE); + gtk_widget_set_can_focus (priv->lines_label, FALSE); + gtk_widget_set_can_focus (priv->chars_label, FALSE); + gtk_widget_set_can_focus (priv->chars_ns_label, FALSE); + gtk_widget_set_can_focus (priv->document_label, FALSE); + gtk_widget_set_can_focus (priv->document_words_label, FALSE); + gtk_widget_set_can_focus (priv->document_bytes_label, FALSE); + gtk_widget_set_can_focus (priv->document_lines_label, FALSE); + gtk_widget_set_can_focus (priv->document_chars_label, FALSE); + gtk_widget_set_can_focus (priv->document_chars_ns_label, FALSE); + gtk_widget_set_can_focus (priv->selection_label, FALSE); + gtk_widget_set_can_focus (priv->selected_words_label, FALSE); + gtk_widget_set_can_focus (priv->selected_bytes_label, FALSE); + gtk_widget_set_can_focus (priv->selected_lines_label, FALSE); + gtk_widget_set_can_focus (priv->selected_chars_label, FALSE); + gtk_widget_set_can_focus (priv->selected_chars_ns_label, FALSE); +} + +static void +docinfo_cb (GAction *action, + GVariant *parameter, + GeditDocinfoPlugin *plugin) +{ + GeditDocinfoPluginPrivate *priv; + GeditDocument *doc; + + gedit_debug (DEBUG_PLUGINS); + + priv = plugin->priv; + + doc = gedit_window_get_active_document (priv->window); + + if (priv->dialog != NULL) + { + gtk_window_present (GTK_WINDOW (priv->dialog)); + gtk_widget_grab_focus (GTK_WIDGET (priv->dialog)); + } + else + { + create_docinfo_dialog (plugin); + gtk_widget_show (GTK_WIDGET (priv->dialog)); + } + + update_document_info (plugin, doc); + update_selection_info (plugin, doc); +} + +static void +gedit_docinfo_plugin_init (GeditDocinfoPlugin *plugin) +{ + gedit_debug_message (DEBUG_PLUGINS, "GeditDocinfoPlugin initializing"); + + plugin->priv = gedit_docinfo_plugin_get_instance_private (plugin); +} + +static void +gedit_docinfo_plugin_dispose (GObject *object) +{ + GeditDocinfoPlugin *plugin = GEDIT_DOCINFO_PLUGIN (object); + + gedit_debug_message (DEBUG_PLUGINS, "GeditDocinfoPlugin dispose"); + + g_clear_object (&plugin->priv->action); + g_clear_object (&plugin->priv->window); + g_clear_object (&plugin->priv->menu_ext); + g_clear_object (&plugin->priv->app); + + G_OBJECT_CLASS (gedit_docinfo_plugin_parent_class)->dispose (object); +} + + +static void +gedit_docinfo_plugin_finalize (GObject *object) +{ + gedit_debug_message (DEBUG_PLUGINS, "GeditDocinfoPlugin finalizing"); + + G_OBJECT_CLASS (gedit_docinfo_plugin_parent_class)->finalize (object); +} + +static void +gedit_docinfo_plugin_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditDocinfoPlugin *plugin = GEDIT_DOCINFO_PLUGIN (object); + + switch (prop_id) + { + case PROP_WINDOW: + plugin->priv->window = GEDIT_WINDOW (g_value_dup_object (value)); + break; + case PROP_APP: + plugin->priv->app = GEDIT_APP (g_value_dup_object (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_docinfo_plugin_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditDocinfoPlugin *plugin = GEDIT_DOCINFO_PLUGIN (object); + + switch (prop_id) + { + case PROP_WINDOW: + g_value_set_object (value, plugin->priv->window); + break; + case PROP_APP: + g_value_set_object (value, plugin->priv->app); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +update_ui (GeditDocinfoPlugin *plugin) +{ + GeditDocinfoPluginPrivate *priv; + GeditView *view; + + gedit_debug (DEBUG_PLUGINS); + + priv = plugin->priv; + + view = gedit_window_get_active_view (priv->window); + + g_simple_action_set_enabled (G_SIMPLE_ACTION (priv->action), view != NULL); + + if (priv->dialog != NULL) + { + gtk_dialog_set_response_sensitive (GTK_DIALOG (priv->dialog), + GTK_RESPONSE_OK, + (view != NULL)); + } +} + +static void +gedit_docinfo_plugin_app_activate (GeditAppActivatable *activatable) +{ + GeditDocinfoPluginPrivate *priv; + GMenuItem *item; + + gedit_debug (DEBUG_PLUGINS); + + priv = GEDIT_DOCINFO_PLUGIN (activatable)->priv; + + priv->menu_ext = gedit_app_activatable_extend_menu (activatable, "tools-section"); + item = g_menu_item_new (_("_Document Statistics"), "win.docinfo"); + gedit_menu_extension_append_menu_item (priv->menu_ext, item); + g_object_unref (item); +} + +static void +gedit_docinfo_plugin_app_deactivate (GeditAppActivatable *activatable) +{ + GeditDocinfoPluginPrivate *priv; + + gedit_debug (DEBUG_PLUGINS); + + priv = GEDIT_DOCINFO_PLUGIN (activatable)->priv; + + g_clear_object (&priv->menu_ext); +} + +static void +gedit_docinfo_plugin_window_activate (GeditWindowActivatable *activatable) +{ + GeditDocinfoPluginPrivate *priv; + + gedit_debug (DEBUG_PLUGINS); + + priv = GEDIT_DOCINFO_PLUGIN (activatable)->priv; + + priv->action = g_simple_action_new ("docinfo", NULL); + g_signal_connect (priv->action, "activate", + G_CALLBACK (docinfo_cb), activatable); + g_action_map_add_action (G_ACTION_MAP (priv->window), + G_ACTION (priv->action)); + + update_ui (GEDIT_DOCINFO_PLUGIN (activatable)); +} + +static void +gedit_docinfo_plugin_window_deactivate (GeditWindowActivatable *activatable) +{ + GeditDocinfoPluginPrivate *priv; + + gedit_debug (DEBUG_PLUGINS); + + priv = GEDIT_DOCINFO_PLUGIN (activatable)->priv; + + g_action_map_remove_action (G_ACTION_MAP (priv->window), "docinfo"); +} + +static void +gedit_docinfo_plugin_window_update_state (GeditWindowActivatable *activatable) +{ + gedit_debug (DEBUG_PLUGINS); + + update_ui (GEDIT_DOCINFO_PLUGIN (activatable)); +} + +static void +gedit_docinfo_plugin_class_init (GeditDocinfoPluginClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_docinfo_plugin_dispose; + object_class->finalize = gedit_docinfo_plugin_finalize; + object_class->set_property = gedit_docinfo_plugin_set_property; + object_class->get_property = gedit_docinfo_plugin_get_property; + + g_object_class_override_property (object_class, PROP_WINDOW, "window"); + g_object_class_override_property (object_class, PROP_APP, "app"); +} + +static void +gedit_app_activatable_iface_init (GeditAppActivatableInterface *iface) +{ + iface->activate = gedit_docinfo_plugin_app_activate; + iface->deactivate = gedit_docinfo_plugin_app_deactivate; +} + +static void +gedit_window_activatable_iface_init (GeditWindowActivatableInterface *iface) +{ + iface->activate = gedit_docinfo_plugin_window_activate; + iface->deactivate = gedit_docinfo_plugin_window_deactivate; + iface->update_state = gedit_docinfo_plugin_window_update_state; +} + +static void +gedit_docinfo_plugin_class_finalize (GeditDocinfoPluginClass *klass) +{ +} + + +G_MODULE_EXPORT void +peas_register_types (PeasObjectModule *module) +{ + gedit_docinfo_plugin_register_type (G_TYPE_MODULE (module)); + + peas_object_module_register_extension_type (module, + GEDIT_TYPE_APP_ACTIVATABLE, + GEDIT_TYPE_DOCINFO_PLUGIN); + peas_object_module_register_extension_type (module, + GEDIT_TYPE_WINDOW_ACTIVATABLE, + GEDIT_TYPE_DOCINFO_PLUGIN); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/docinfo/gedit-docinfo-plugin.h b/plugins/docinfo/gedit-docinfo-plugin.h new file mode 100644 index 0000000..e657c9f --- /dev/null +++ b/plugins/docinfo/gedit-docinfo-plugin.h @@ -0,0 +1,63 @@ +/* + * gedit-docinfo-plugin.h + * + * Copyright (C) 2002-2005 Paolo Maggi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + * + */ + +#ifndef GEDIT_DOCINFO_PLUGIN_H +#define GEDIT_DOCINFO_PLUGIN_H + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_DOCINFO_PLUGIN (gedit_docinfo_plugin_get_type ()) +#define GEDIT_DOCINFO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_DOCINFO_PLUGIN, GeditDocinfoPlugin)) +#define GEDIT_DOCINFO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_DOCINFO_PLUGIN, GeditDocinfoPluginClass)) +#define GEDIT_IS_DOCINFO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_DOCINFO_PLUGIN)) +#define GEDIT_IS_DOCINFO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_DOCINFO_PLUGIN)) +#define GEDIT_DOCINFO_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_DOCINFO_PLUGIN, GeditDocinfoPluginClass)) + +typedef struct _GeditDocinfoPlugin GeditDocinfoPlugin; +typedef struct _GeditDocinfoPluginPrivate GeditDocinfoPluginPrivate; +typedef struct _GeditDocinfoPluginClass GeditDocinfoPluginClass; + +struct _GeditDocinfoPlugin +{ + PeasExtensionBase parent; + + /*< private >*/ + GeditDocinfoPluginPrivate *priv; +}; + +struct _GeditDocinfoPluginClass +{ + PeasExtensionBaseClass parent_class; +}; + +GType gedit_docinfo_plugin_get_type (void) G_GNUC_CONST; + +G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); + +G_END_DECLS + +#endif /* GEDIT_DOCINFO_PLUGIN_H */ + +/* ex:set ts=8 noet: */ diff --git a/plugins/docinfo/meson.build b/plugins/docinfo/meson.build new file mode 100644 index 0000000..200ace5 --- /dev/null +++ b/plugins/docinfo/meson.build @@ -0,0 +1,34 @@ +libdocinfo_sources = files( + 'gedit-docinfo-plugin.c', +) + +libdocinfo_deps = [ + libgedit_dep, +] + +subdir('resources') + +libdocinfo_sha = shared_module( + 'docinfo', + sources: libdocinfo_sources, + include_directories: root_include_dir, + dependencies: libdocinfo_deps, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ), + name_suffix: module_suffix, +) + +custom_target( + 'docinfo.plugin', + input: 'docinfo.plugin.desktop.in', + output: 'docinfo.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) diff --git a/plugins/docinfo/resources/gedit-docinfo.gresource.xml b/plugins/docinfo/resources/gedit-docinfo.gresource.xml new file mode 100644 index 0000000..9d61659 --- /dev/null +++ b/plugins/docinfo/resources/gedit-docinfo.gresource.xml @@ -0,0 +1,6 @@ + + + + ui/gedit-docinfo-plugin.ui + + diff --git a/plugins/docinfo/resources/meson.build b/plugins/docinfo/resources/meson.build new file mode 100644 index 0000000..b1f4d4d --- /dev/null +++ b/plugins/docinfo/resources/meson.build @@ -0,0 +1,8 @@ +libdocinfo_res = gnome.compile_resources( + 'gedit-docinfo-resources', + 'gedit-docinfo.gresource.xml', +) + +libdocinfo_sources += [ + libdocinfo_res.get(0), +] diff --git a/plugins/docinfo/resources/ui/gedit-docinfo-plugin.ui b/plugins/docinfo/resources/ui/gedit-docinfo-plugin.ui new file mode 100644 index 0000000..84cf918 --- /dev/null +++ b/plugins/docinfo/resources/ui/gedit-docinfo-plugin.ui @@ -0,0 +1,337 @@ + + + + + False + 5 + Document Statistics + False + True + dialog + + + Document Statistics + True + False + True + + + True + center + True + True + + + + True + 1 + view-refresh-symbolic + + + + + start + + + + + + + True + False + vertical + 8 + + + True + False + 5 + vertical + 6 + + + True + False + 6 + 18 + + + True + False + 0 + Document + True + True + center + True + + + 1 + 0 + 1 + 1 + + + + + True + False + 0 + Selection + True + + + 2 + 0 + 1 + 1 + + + + + True + False + 0 + Lines + True + + + 0 + 1 + 1 + 1 + + + + + True + False + 0 + Words + True + + + 0 + 2 + 1 + 1 + + + + + True + False + 0 + Characters (with spaces) + True + + + 0 + 3 + 1 + 1 + + + + + True + False + 0 + Characters (no spaces) + True + + + 0 + 4 + 1 + 1 + + + + + True + False + 0 + Bytes + True + + + 0 + 5 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 1 + 1 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 1 + 2 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 1 + 3 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 1 + 4 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 1 + 5 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 2 + 1 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 2 + 2 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 2 + 3 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 2 + 4 + 1 + 1 + + + + + True + False + 1 + 0 + True + + + 2 + 5 + 1 + 1 + + + + + False + True + 1 + + + + + False + True + 1 + + + + + + update_button + + + diff --git a/plugins/externaltools/data/build.desktop.in b/plugins/externaltools/data/build.desktop.in new file mode 100644 index 0000000..14dfebd --- /dev/null +++ b/plugins/externaltools/data/build.desktop.in @@ -0,0 +1,9 @@ +[Gedit Tool] +Name=Build +Comment=Run “make” in the document directory +Input=nothing +Output=output-panel +Shortcut=F8 +Applicability=local +Save-files=all +Languages= diff --git a/plugins/externaltools/data/build.tool.in b/plugins/externaltools/data/build.tool.in new file mode 100755 index 0000000..0b81d5b --- /dev/null +++ b/plugins/externaltools/data/build.tool.in @@ -0,0 +1,15 @@ +#!/bin/sh + +EHOME=`echo $HOME | sed "s/#/\#/"` +DIR=$GEDIT_CURRENT_DOCUMENT_DIR +while test "$DIR" != "/"; do + for m in GNUmakefile makefile Makefile; do + if [ -f "${DIR}/${m}" ]; then + echo "Using ${m} from ${DIR}" | sed "s#$EHOME#~#" > /dev/stderr + make -C "${DIR}" + exit + fi + done + DIR=`dirname "${DIR}"` +done +echo "No Makefile found!" > /dev/stderr diff --git a/plugins/externaltools/data/meson.build b/plugins/externaltools/data/meson.build new file mode 100644 index 0000000..02d5d6c --- /dev/null +++ b/plugins/externaltools/data/meson.build @@ -0,0 +1,46 @@ +externaltools_tools = [ + 'build', + 'remove-trailing-spaces', + 'send-to-fpaste', +] + +if host_machine.system() == 'darwin' + externaltools_tools += [ + 'open-terminal-here-osx', + ] +elif host_machine.system() != 'windows' + externaltools_tools += [ + 'open-terminal-here', + 'run-command', + ] +endif + +foreach tool_name: externaltools_tools + dektop_file = custom_target( + '@0@.desktop'.format(tool_name), + input: '@0@.desktop.in'.format(tool_name), + output: '@0@.desktop'.format(tool_name), + command: msgfmt_externaltools_cmd, + install: false, + ) + + custom_target( + '@0@.tool'.format(tool_name), + input: '@0@.tool.in'.format(tool_name), + output: '@0@'.format(tool_name), + depends: dektop_file, + command: [ + merge_tool_prg, + '@INPUT@', + dektop_file.full_path(), + ], + capture: true, + install: true, + install_dir: join_paths( + pkgdatadir, + 'plugins', + 'externaltools', + 'tools', + ) + ) +endforeach diff --git a/plugins/externaltools/data/open-terminal-here-osx.desktop.in b/plugins/externaltools/data/open-terminal-here-osx.desktop.in new file mode 100644 index 0000000..846ff9a --- /dev/null +++ b/plugins/externaltools/data/open-terminal-here-osx.desktop.in @@ -0,0 +1,9 @@ +[Gedit Tool] +Name=Open terminal here +Comment=Open a terminal in the document location +Input=nothing +Output=output-panel +Applicability=local +Save-files=nothing +Languages= +Shortcut=t diff --git a/plugins/externaltools/data/open-terminal-here-osx.tool.in b/plugins/externaltools/data/open-terminal-here-osx.tool.in new file mode 100755 index 0000000..c336006 --- /dev/null +++ b/plugins/externaltools/data/open-terminal-here-osx.tool.in @@ -0,0 +1,16 @@ +#!/usr/bin/osascript + +set the_path to system attribute "GEDIT_CURRENT_DOCUMENT_DIR" +set cmd to "cd " & quoted form of the_path + +tell application "System Events" to set terminalIsRunning to exists application process "Terminal" + +tell application "Terminal" + activate + + if terminalIsRunning is true then + do script with command cmd + else + do script with command cmd in window 1 + end if +end tell diff --git a/plugins/externaltools/data/open-terminal-here.desktop.in b/plugins/externaltools/data/open-terminal-here.desktop.in new file mode 100644 index 0000000..846ff9a --- /dev/null +++ b/plugins/externaltools/data/open-terminal-here.desktop.in @@ -0,0 +1,9 @@ +[Gedit Tool] +Name=Open terminal here +Comment=Open a terminal in the document location +Input=nothing +Output=output-panel +Applicability=local +Save-files=nothing +Languages= +Shortcut=t diff --git a/plugins/externaltools/data/open-terminal-here.tool.in b/plugins/externaltools/data/open-terminal-here.tool.in new file mode 100755 index 0000000..9365648 --- /dev/null +++ b/plugins/externaltools/data/open-terminal-here.tool.in @@ -0,0 +1,4 @@ +#!/bin/sh + +#TODO: use "gconftool-2 -g /desktop/gnome/applications/terminal/exec" +gnome-terminal --working-directory="$GEDIT_CURRENT_DOCUMENT_DIR" & diff --git a/plugins/externaltools/data/remove-trailing-spaces.desktop.in b/plugins/externaltools/data/remove-trailing-spaces.desktop.in new file mode 100644 index 0000000..9a34de7 --- /dev/null +++ b/plugins/externaltools/data/remove-trailing-spaces.desktop.in @@ -0,0 +1,9 @@ +[Gedit Tool] +Name=Remove trailing spaces +Comment=Remove useless trailing spaces in your file +Input=document +Output=replace-document +Shortcut=F12 +Applicability=all +Save-files=nothing +Languages= diff --git a/plugins/externaltools/data/remove-trailing-spaces.tool.in b/plugins/externaltools/data/remove-trailing-spaces.tool.in new file mode 100755 index 0000000..83e4c19 --- /dev/null +++ b/plugins/externaltools/data/remove-trailing-spaces.tool.in @@ -0,0 +1,3 @@ +#!/bin/sh + +sed 's/[[:blank:]]*$//' diff --git a/plugins/externaltools/data/run-command.desktop.in b/plugins/externaltools/data/run-command.desktop.in new file mode 100644 index 0000000..ca7b7da --- /dev/null +++ b/plugins/externaltools/data/run-command.desktop.in @@ -0,0 +1,8 @@ +[Gedit Tool] +Name=Run command +Comment=Execute a custom command and put its output in a new document +Input=nothing +Output=new-document +Applicability=all +Save-files=nothing +Languages= diff --git a/plugins/externaltools/data/run-command.tool.in b/plugins/externaltools/data/run-command.tool.in new file mode 100755 index 0000000..77ad4e6 --- /dev/null +++ b/plugins/externaltools/data/run-command.tool.in @@ -0,0 +1,4 @@ +#!/bin/sh + +#TODO: use "gconftool-2 -g /desktop/gnome/applications/terminal/exec" +eval $(zenity --entry --title="Run Command - gedit" --text="Command to run:") diff --git a/plugins/externaltools/data/send-to-fpaste.desktop.in b/plugins/externaltools/data/send-to-fpaste.desktop.in new file mode 100644 index 0000000..40282c8 --- /dev/null +++ b/plugins/externaltools/data/send-to-fpaste.desktop.in @@ -0,0 +1,11 @@ +[Gedit Tool] +Name=Send to fpaste +Comment=Paste selected text or current document to fpaste +Input=selection-document +Output=output-panel +Shortcut=p +Applicability=always +Save-files=nothing +Languages= + + diff --git a/plugins/externaltools/data/send-to-fpaste.tool.in b/plugins/externaltools/data/send-to-fpaste.tool.in new file mode 100755 index 0000000..d392173 --- /dev/null +++ b/plugins/externaltools/data/send-to-fpaste.tool.in @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 + +import os, urllib, json, sys, urllib.request +from gi.repository import Gtk, Gdk + +text = sys.stdin.read() + +lang = os.getenv('GEDIT_CURRENT_DOCUMENT_LANGUAGE') +if lang is None: + lang = "text" + +url_params = urllib.parse.urlencode({'paste_data': text, 'paste_lang': lang, 'mode':'json', 'api_submit':'true'}) +openfpaste = urllib.request.urlopen("http://fpaste.org", bytes(url_params, 'utf-8')).read().decode("utf-8") +if openfpaste is None: + print("Failed to send fpaste request.") + +final_data = json.loads(openfpaste) + +paste_url = "http://fpaste.org/" + final_data['result']['id'] + +disp = Gdk.Display.get_default() +clipboard = Gtk.Clipboard.get_for_display(disp, Gdk.SELECTION_CLIPBOARD) +clipboard.set_text(paste_url, len(paste_url)) +clipboard.store() + +print(paste_url + " has been copied to the clipboard.") diff --git a/plugins/externaltools/externaltools.plugin.desktop.in b/plugins/externaltools/externaltools.plugin.desktop.in new file mode 100644 index 0000000..f575818 --- /dev/null +++ b/plugins/externaltools/externaltools.plugin.desktop.in @@ -0,0 +1,9 @@ +[Plugin] +Loader=python3 +Module=externaltools +IAge=3 +Name=External Tools +Description=Execute external commands and shell scripts. +Authors=Steve Frécinaux +Copyright=Copyright © 2005 Steve Frécinaux +Website=http://www.gedit.org diff --git a/plugins/externaltools/meson.build b/plugins/externaltools/meson.build new file mode 100644 index 0000000..d46d0dd --- /dev/null +++ b/plugins/externaltools/meson.build @@ -0,0 +1,35 @@ +subdir('scripts') +subdir('tools') +subdir('data') + +externaltools_gschema_file = files('org.gnome.gedit.plugins.externaltools.gschema.xml') +install_data( + externaltools_gschema_file, + install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas') +) + +if xmllint.found() + test( + 'validate-externaltools-gschema', + xmllint, + args: [ + '--noout', + '--dtdvalid', gschema_dtd, + externaltools_gschema_file, + ] + ) +endif + +custom_target( + 'externaltools.plugin', + input: 'externaltools.plugin.desktop.in', + output: 'externaltools.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) + +subdir('tests') diff --git a/plugins/externaltools/org.gnome.gedit.plugins.externaltools.gschema.xml b/plugins/externaltools/org.gnome.gedit.plugins.externaltools.gschema.xml new file mode 100644 index 0000000..d760de2 --- /dev/null +++ b/plugins/externaltools/org.gnome.gedit.plugins.externaltools.gschema.xml @@ -0,0 +1,20 @@ + + + + true + Whether to use the system font + + If true, the external tools will use the desktop-global standard + font if it’s monospace (and the most similar font it can + come up with otherwise). + + + + 'Monospace 10' + Font + + A Pango font name. Examples are “Sans 12” or “Monospace Bold 14”. + + + + diff --git a/plugins/externaltools/scripts/gedit-tool-merge.pl b/plugins/externaltools/scripts/gedit-tool-merge.pl new file mode 100755 index 0000000..b7cbd77 --- /dev/null +++ b/plugins/externaltools/scripts/gedit-tool-merge.pl @@ -0,0 +1,78 @@ +#!/usr/bin/env perl + +# gedit-tool-merge.pl +# This file is part of gedit +# +# Copyright (C) 2006 - Steve Frécinaux +# +# gedit is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# gedit is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with gedit; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, +# Boston, MA 02110-1301 USA + +# This script merges a script file with a desktop file containing +# metadata about the external tool. This is required in order to +# have translatable tools (bug #342042) since intltool can't extract +# string directly from tool files (a tool file being the combination +# of a script file and a metadata section). +# +# The desktop file is embedded in a comment of the script file, under +# the assumption that any scripting language supports # as a comment +# mark (this is likely to be true since the shebang uses #!). The +# section is placed at the top of the tool file, after the shebang and +# modelines if present. + +use strict; +use warnings; +use Getopt::Long; + +sub usage { + print < \$help, "output|o=s" => \$output) or &usage; +usage if $help or @ARGV lt 2; + +open INFILE, "<", $ARGV[0]; +open DFILE, "<", $ARGV[1]; +open STDOUT, ">", $output if $output; + +# Put shebang and various modelines at the top of the generated file. +$_ = ; +print and $_ = if /^#!/; +print and $_ = if /-\*-/; +print and $_ = if /(ex|vi|vim):/; + +# Put a blank line before the info block if there is one in INFILE. +print and $_ = if /^\s*$/; +seek INFILE, -length, 1; + +# Embed the desktop file... +print "# $_" while ; +print "\n"; + +# ...and write the remaining part of the script. +print while ; + +close INFILE; +close DFILE; +close STDOUT; diff --git a/plugins/externaltools/scripts/meson.build b/plugins/externaltools/scripts/meson.build new file mode 100644 index 0000000..c5f50e9 --- /dev/null +++ b/plugins/externaltools/scripts/meson.build @@ -0,0 +1,13 @@ +msgfmt_externaltools_cmd = [ + find_program('msgfmt'), + '--desktop', + '--keyword=Name', + '--keyword=Comment', + '--template=@INPUT@', + '-d', join_paths(srcdir, 'po'), + '--output=@OUTPUT@' +] + +merge_tool_prg = find_program( + files('gedit-tool-merge.pl'), +) diff --git a/plugins/externaltools/tests/meson.build b/plugins/externaltools/tests/meson.build new file mode 100644 index 0000000..6cee9fe --- /dev/null +++ b/plugins/externaltools/tests/meson.build @@ -0,0 +1,21 @@ +externaltools_tests = { + 'LinkParser': files('testlinkparsing.py'), +} + +externaltools_srcdir = join_paths( + srcdir, + 'plugins', + 'externaltools', + 'tools', +) + +foreach test_name, test_script : externaltools_tests + test( + 'test-externaltools-@0@'.format(test_name), + python3, + args: [test_script], + env: [ + 'PYTHONPATH=@0@'.format(externaltools_srcdir), + ] + ) +endforeach diff --git a/plugins/externaltools/tests/testlinkparsing.py b/plugins/externaltools/tests/testlinkparsing.py new file mode 100644 index 0000000..3b8a78e --- /dev/null +++ b/plugins/externaltools/tests/testlinkparsing.py @@ -0,0 +1,203 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2009-2010 Per Arneng +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import unittest +from linkparsing import LinkParser + + +class TestLinkParser(unittest.TestCase): + + def setUp(self): + self.p = LinkParser() + + def assert_link_count(self, links, expected_count): + self.assertEqual(len(links), expected_count, 'incorrect nr of links') + + def assert_link(self, actual, path, line_nr, col_nr=0): + self.assertEqual(actual.path, path, "incorrect path") + self.assertEqual(actual.line_nr, line_nr, "incorrect line nr") + self.assertEqual(actual.col_nr, col_nr, "incorrect col nr") + + def assert_link_text(self, text, link, link_text): + self.assertEqual(text[link.start:link.end], link_text, + "the expected link text does not match the text within the string") + + def test_parse_gcc_simple_test_with_real_output(self): + gcc_output = """ +test.c: In function 'f': +test.c:5:6: warning: passing argument 1 of 'f' makes integer from pointer without a cast +test.c:3:7: note: expected 'int' but argument is of type 'char *' +test.c: In function 'main': +test.c:11:10: warning: initialization makes pointer from integer without a cast +test.c:12:11: warning: initialization makes integer from pointer without a cast +test.c:13:12: error: too few arguments to function 'f' +test.c:14:13: error: expected ';' before 'return' +""" + links = self.p.parse(gcc_output) + self.assert_link_count(links, 6) + lnk = links[2] + self.assert_link(lnk, "test.c", 11, 10) + self.assert_link_text(gcc_output, lnk, "test.c:11:10") + + def test_parse_gcc_one_line(self): + line = "/tmp/myfile.c:1212:12: error: ..." + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "/tmp/myfile.c", 1212, 12) + self.assert_link_text(line, lnk, "/tmp/myfile.c:1212:12") + + def test_parse_gcc_empty_string(self): + links = self.p.parse("") + self.assert_link_count(links, 0) + + def test_parse_gcc_no_files_in_text(self): + links = self.p.parse("no file links in this string") + self.assert_link_count(links, 0) + + def test_parse_gcc_none_as_argument(self): + self.assertRaises(ValueError, self.p.parse, None) + + def test_parse_grep_one_line(self): + line = "libnautilus-private/nautilus-canvas-container.h:45:#define NAUTILUS_CANVAS_ICON_DATA(pointer)" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "libnautilus-private/nautilus-canvas-container.h", 45) + self.assert_link_text(line, lnk, "libnautilus-private/nautilus-canvas-container.h:45") + + def test_parse_python_simple_test_with_real_output(self): + output = """ +Traceback (most recent call last): + File "test.py", line 10, in + err() + File "test.py", line 7, in err + real_err() + File "test.py", line 4, in real_err + int('xxx') +ValueError: invalid literal for int() with base 10: 'xxx' +""" + links = self.p.parse(output) + self.assert_link_count(links, 3) + lnk = links[2] + self.assert_link(lnk, "test.py", 4) + self.assert_link_text(output, lnk, '"test.py", line 4') + + def test_parse_python_one_line(self): + line = " File \"test.py\", line 1\n def a()" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "test.py", 1) + self.assert_link_text(line, lnk, '"test.py", line 1') + + def test_parse_bash_one_line(self): + line = "test.sh: line 5: gerp: command not found" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "test.sh", 5) + self.assert_link_text(line, lnk, 'test.sh: line 5') + + def test_parse_javac_one_line(self): + line = "/tmp/Test.java:10: incompatible types" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "/tmp/Test.java", 10) + self.assert_link_text(line, lnk, '/tmp/Test.java:10') + + def test_parse_valac_simple_test_with_real_output(self): + output = """ +Test.vala:14.13-14.21: error: Assignment: Cannot convert from `string' to `int' + int a = "xxx"; + ^^^^^^^^^ +""" + links = self.p.parse(output) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "Test.vala", 14) + self.assert_link_text(output, lnk, 'Test.vala:14.13-14.21') + + def test_parse_ruby_simple_test_with_real_output(self): + output = """ +test.rb:5: undefined method `fake_method' for main:Object (NoMethodError) + from test.rb:3:in `each' + from test.rb:3 +""" + links = self.p.parse(output) + self.assert_link_count(links, 3) + lnk = links[0] + self.assert_link(lnk, "test.rb", 5) + self.assert_link_text(output, lnk, 'test.rb:5') + lnk = links[1] + self.assert_link(lnk, "test.rb", 3) + self.assert_link_text(output, lnk, 'test.rb:3') + + def test_parse_scalac_one_line(self): + line = "Test.scala:7: error: not found: value fakeMethod" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "Test.scala", 7) + self.assert_link_text(line, lnk, 'Test.scala:7') + + def test_parse_sbt_one_line(self): + line = "[error] /home/hank/foo/Test.scala:7: not found: value fakeMethod" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "/home/hank/foo/Test.scala", 7) + self.assert_link_text(line, lnk, '/home/hank/foo/Test.scala:7') + + def test_parse_go_6g_one_line(self): + line = "test.go:9: undefined: FakeMethod" + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "test.go", 9) + self.assert_link_text(line, lnk, 'test.go:9') + + def test_parse_perl_one_line(self): + line = 'syntax error at test.pl line 889, near "$fake_var' + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "test.pl", 889) + self.assert_link_text(line, lnk, 'test.pl line 889') + + def test_parse_mcs_one_line(self): + line = 'Test.cs(12,7): error CS0103: The name `fakeMethod' + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "Test.cs", 12) + self.assert_link_text(line, lnk, 'Test.cs(12,7)') + + def test_parse_pas_one_line(self): + line = 'hello.pas(11,1) Fatal: Syntax error, ":" expected but "BEGIN"' + links = self.p.parse(line) + self.assert_link_count(links, 1) + lnk = links[0] + self.assert_link(lnk, "hello.pas", 11) + self.assert_link_text(line, lnk, 'hello.pas(11,1)') + +if __name__ == '__main__': + unittest.main() + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/__init__.py b/plugins/externaltools/tools/__init__.py new file mode 100644 index 0000000..0cc0b4f --- /dev/null +++ b/plugins/externaltools/tools/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: UTF-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2010 Ignacio Casal Quinteiro +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import gi +gi.require_version('Gedit', '3.0') +gi.require_version('Gtk', '3.0') + +from .appactivatable import AppActivatable +from .windowactivatable import WindowActivatable + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/appactivatable.py b/plugins/externaltools/tools/appactivatable.py new file mode 100644 index 0000000..87e1226 --- /dev/null +++ b/plugins/externaltools/tools/appactivatable.py @@ -0,0 +1,178 @@ +# -*- coding: UTF-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2005-2006 Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +from gi.repository import GLib, Gio, GObject, Gtk, Gdk, Gedit +from .library import ToolLibrary +from .manager import Manager +import os + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class ToolMenu(object): + def __init__(self, library, menu): + super(ToolMenu, self).__init__() + self._library = library + self._menu = menu + self._action_tools = {} + + self.update() + + def deactivate(self): + self.remove() + + def remove(self): + self._menu.remove_all() + + for name, tool in self._action_tools.items(): + if tool.shortcut: + app = Gio.Application.get_default() + app.remove_accelerator(tool.shortcut) + + def _insert_directory(self, directory, menu): + for d in sorted(directory.subdirs, key=lambda x: x.name.lower()): + submenu = Gio.Menu() + menu.append_submenu(d.name.replace('_', '__'), submenu) + section = Gio.Menu() + submenu.append_section(None, section) + + self._insert_directory(d, section) + + for tool in sorted(directory.tools, key=lambda x: x.name.lower()): + # FIXME: find a better way to share the action name + action_name = 'external-tool-%X-%X' % (id(tool), id(tool.name)) + item = Gio.MenuItem.new(tool.name.replace('_', '__'), "win.%s" % action_name) + item.set_attribute_value("hidden-when", GLib.Variant.new_string("action-disabled")) + menu.append_item(item) + + if tool.shortcut: + app = Gio.Application.get_default() + app.add_accelerator(tool.shortcut, "win.%s" % action_name, None) + + def update(self): + self.remove() + self._insert_directory(self._library.tree, self._menu) + + +# FIXME: restore the launch of the manager on configure using PeasGtk.Configurable +class AppActivatable(GObject.Object, Gedit.AppActivatable): + __gtype_name__ = "ExternalToolsAppActivatable" + + app = GObject.Property(type=Gedit.App) + + def __init__(self): + GObject.Object.__init__(self) + self.menu = None + self._manager = None + self._manager_default_size = None + + def do_activate(self): + self._library = ToolLibrary() + self._library.set_locations(os.path.join(self.plugin_info.get_data_dir(), 'tools')) + + action = Gio.SimpleAction(name="manage-tools") + action.connect("activate", lambda action, parameter: self._open_dialog()) + self.app.add_action(action) + + self.css = Gtk.CssProvider() + self.css.load_from_data(""" +.gedit-tool-manager-paned { + border-style: solid; + border-color: @borders; +} + +.gedit-tool-manager-paned:dir(ltr) { + border-width: 0 1px 0 0; +} + +.gedit-tool-manager-paned:dir(rtl) { + border-width: 0 0 0 1px; +} + +.gedit-tool-manager-view { + border-width: 0 0 1px 0; +} + +.gedit-tool-manager-treeview { + border-top-width: 0; +} + +.gedit-tool-manager-treeview:dir(ltr) { + border-left-width: 0; +} + +.gedit-tool-manager-treeview:dir(rtl) { + border-right-width: 0; +} +""".encode('utf-8')) + + Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), + self.css, 600) + + self.menu_ext = self.extend_menu("preferences-section") + item = Gio.MenuItem.new(_("Manage _External Tools…"), "app.manage-tools") + self.menu_ext.append_menu_item(item) + + self.submenu_ext = self.extend_menu("tools-section-1") + external_tools_submenu = Gio.Menu() + item = Gio.MenuItem.new_submenu(_("External _Tools"), external_tools_submenu) + self.submenu_ext.append_menu_item(item) + external_tools_submenu_section = Gio.Menu() + external_tools_submenu.append_section(None, external_tools_submenu_section) + + self.menu = ToolMenu(self._library, external_tools_submenu_section) + + def do_deactivate(self): + self.menu.deactivate() + self.menu_ext = None + self.submenu_ext = None + + self.app.remove_action("manage-tools") + + Gtk.StyleContext.remove_provider_for_screen(Gdk.Screen.get_default(), + self.css) + + def _open_dialog(self): + if not self._manager: + self._manager = Manager(self.plugin_info.get_data_dir()) + + if self._manager_default_size: + self._manager.dialog.set_default_size(*self._manager_default_size) + + self._manager.dialog.connect('destroy', self._on_manager_destroy) + self._manager.connect('tools-updated', self._on_manager_tools_updated) + + self._manager.run(self.app.get_active_window()) + + return self._manager.dialog + + def _on_manager_destroy(self, dialog): + self._manager_default_size = self._manager.get_final_size() + self._manager = None + + def _on_manager_tools_updated(self, manager): + for window in self.app.get_main_windows(): + window.external_tools_window_activatable.update_actions() + self.menu.update() + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/capture.py b/plugins/externaltools/tools/capture.py new file mode 100644 index 0000000..d7560c5 --- /dev/null +++ b/plugins/externaltools/tools/capture.py @@ -0,0 +1,268 @@ +# -*- coding: utf-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2005-2006 Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +__all__ = ('Capture', ) + +import os +import sys +import signal +import locale +import subprocess +import fcntl +from gi.repository import GLib, GObject + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class Capture(GObject.Object): + CAPTURE_STDOUT = 0x01 + CAPTURE_STDERR = 0x02 + CAPTURE_BOTH = 0x03 + CAPTURE_NEEDS_SHELL = 0x04 + + WRITE_BUFFER_SIZE = 0x4000 + + __gsignals__ = { + 'stdout-line': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)), + 'stderr-line': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)), + 'begin-execute': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, tuple()), + 'end-execute': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_INT,)) + } + + def __init__(self, command, cwd=None, env={}): + GObject.GObject.__init__(self) + self.pipe = None + self.env = env + self.cwd = cwd + self.flags = self.CAPTURE_BOTH | self.CAPTURE_NEEDS_SHELL + self.command = command + self.input_text = None + + def set_env(self, **values): + self.env.update(**values) + + def set_command(self, command): + self.command = command + + def set_flags(self, flags): + self.flags = flags + + def set_input(self, text): + self.input_text = text.encode("UTF-8") if text else None + + def set_cwd(self, cwd): + self.cwd = cwd + + def execute(self): + if self.command is None: + return + + # Initialize pipe + popen_args = { + 'cwd': self.cwd, + 'shell': self.flags & self.CAPTURE_NEEDS_SHELL, + 'env': self.env + } + + if self.input_text is not None: + popen_args['stdin'] = subprocess.PIPE + if self.flags & self.CAPTURE_STDOUT: + popen_args['stdout'] = subprocess.PIPE + if self.flags & self.CAPTURE_STDERR: + popen_args['stderr'] = subprocess.PIPE + + self.tried_killing = False + self.in_channel = None + self.out_channel = None + self.err_channel = None + self.in_channel_id = 0 + self.out_channel_id = 0 + self.err_channel_id = 0 + + try: + self.pipe = subprocess.Popen(self.command, **popen_args) + except OSError as e: + self.pipe = None + self.emit('stderr-line', _('Could not execute command: %s') % (e, )) + return + + self.emit('begin-execute') + + if self.input_text is not None: + self.in_channel, self.in_channel_id = self.add_in_watch(self.pipe.stdin.fileno(), + self.on_in_writable) + + if self.flags & self.CAPTURE_STDOUT: + self.out_channel, self.out_channel_id = self.add_out_watch(self.pipe.stdout.fileno(), + self.on_output) + + if self.flags & self.CAPTURE_STDERR: + self.err_channel, self.err_channel_id = self.add_out_watch(self.pipe.stderr.fileno(), + self.on_err_output) + + # Wait for the process to complete + GLib.child_watch_add(GLib.PRIORITY_DEFAULT, + self.pipe.pid, + self.on_child_end) + + def add_in_watch(self, fd, io_func): + channel = GLib.IOChannel.unix_new(fd) + channel.set_flags(channel.get_flags() | GLib.IOFlags.NONBLOCK) + channel.set_encoding(None) + channel_id = GLib.io_add_watch(channel, + GLib.PRIORITY_DEFAULT, + GLib.IOCondition.OUT | GLib.IOCondition.HUP | GLib.IOCondition.ERR, + io_func) + return (channel, channel_id) + + def add_out_watch(self, fd, io_func): + channel = GLib.IOChannel.unix_new(fd) + channel.set_flags(channel.get_flags() | GLib.IOFlags.NONBLOCK) + channel_id = GLib.io_add_watch(channel, + GLib.PRIORITY_DEFAULT, + GLib.IOCondition.IN | GLib.IOCondition.HUP | GLib.IOCondition.ERR, + io_func) + return (channel, channel_id) + + def write_chunk(self, dest, condition): + if condition & (GObject.IO_OUT): + status = GLib.IOStatus.NORMAL + l = len(self.input_text) + while status == GLib.IOStatus.NORMAL: + if l == 0: + return False + m = min(l, self.WRITE_BUFFER_SIZE) + try: + (status, length) = dest.write_chars(self.input_text, m) + self.input_text = self.input_text[length:] + l -= length + except Exception as e: + return False + if status != GLib.IOStatus.AGAIN: + return False + + if condition & ~(GObject.IO_OUT): + return False + + return True + + def on_in_writable(self, dest, condition): + ret = self.write_chunk(dest, condition) + if ret is False: + self.input_text = None + try: + self.in_channel.shutdown(True) + except: + pass + self.in_channel = None + self.in_channel_id = 0 + self.cleanup_pipe() + + return ret + + def handle_source(self, source, condition, signalname): + if condition & (GObject.IO_IN | GObject.IO_PRI): + status = GLib.IOStatus.NORMAL + while status == GLib.IOStatus.NORMAL: + try: + (status, buf, length, terminator_pos) = source.read_line() + except Exception as e: + return False + if buf: + self.emit(signalname, buf) + if status != GLib.IOStatus.AGAIN: + return False + + if condition & ~(GObject.IO_IN | GObject.IO_PRI): + return False + + return True + + def on_output(self, source, condition): + ret = self.handle_source(source, condition, 'stdout-line') + if ret is False and self.out_channel: + try: + self.out_channel.shutdown(True) + except: + pass + self.out_channel = None + self.out_channel_id = 0 + self.cleanup_pipe() + + return ret + + def on_err_output(self, source, condition): + ret = self.handle_source(source, condition, 'stderr-line') + if ret is False and self.err_channel: + try: + self.err_channel.shutdown(True) + except: + pass + self.err_channel = None + self.err_channel_id = 0 + self.cleanup_pipe() + + return ret + + def cleanup_pipe(self): + if self.in_channel is None and self.out_channel is None and self.err_channel is None: + self.pipe = None + + def stop(self, error_code=-1): + if self.in_channel_id: + GLib.source_remove(self.in_channel_id) + self.in_channel.shutdown(True) + self.in_channel = None + self.in_channel_id = 0 + + if self.out_channel_id: + GLib.source_remove(self.out_channel_id) + self.out_channel.shutdown(True) + self.out_channel = None + self.out_channel_id = 0 + + if self.err_channel_id: + GLib.source_remove(self.err_channel_id) + self.err_channel.shutdown(True) + self.err_channel = None + self.err_channel = 0 + + if self.pipe is not None: + if not self.tried_killing: + os.kill(self.pipe.pid, signal.SIGTERM) + self.tried_killing = True + else: + os.kill(self.pipe.pid, signal.SIGKILL) + + self.pipe = None + + def emit_end_execute(self, error_code): + self.emit('end-execute', error_code) + return False + + def on_child_end(self, pid, error_code): + # In an idle, so it is emitted after all the std*-line signals + # have been intercepted + GLib.idle_add(self.emit_end_execute, error_code) + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/filelookup.py b/plugins/externaltools/tools/filelookup.py new file mode 100644 index 0000000..f256eea --- /dev/null +++ b/plugins/externaltools/tools/filelookup.py @@ -0,0 +1,165 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2009-2010 Per Arneng +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import os +from gi.repository import Gio, Gedit +from .functions import * + + +class FileLookup: + """ + This class is responsible for looking up files given a part or the whole + path of a real file. The lookup is delegated to providers wich use + different methods of trying to find the real file. + """ + + def __init__(self, window): + self.providers = [] + self.providers.append(AbsoluteFileLookupProvider()) + self.providers.append(BrowserRootFileLookupProvider(window)) + self.providers.append(CwdFileLookupProvider()) + self.providers.append(OpenDocumentRelPathFileLookupProvider()) + self.providers.append(OpenDocumentFileLookupProvider()) + + def lookup(self, path): + """ + Tries to find a file specified by the path parameter. It delegates to + different lookup providers and the first match is returned. If no file + was found then None is returned. + + path -- the path to find + """ + found_file = None + for provider in self.providers: + found_file = provider.lookup(path) + if found_file is not None: + break + + return found_file + + +class FileLookupProvider: + """ + The base class of all file lookup providers. + """ + + def lookup(self, path): + """ + This method must be implemented by subclasses. Implementors will be + given a path and will try to find a matching file. If no file is found + then None is returned. + """ + raise NotImplementedError("need to implement a lookup method") + + +class AbsoluteFileLookupProvider(FileLookupProvider): + """ + This file tries to see if the path given is an absolute path and that the + path references a file. + """ + + def lookup(self, path): + if os.path.isabs(path) and os.path.isfile(path): + return Gio.file_new_for_path(path) + else: + return None + + +class BrowserRootFileLookupProvider(FileLookupProvider): + """ + This lookup provider tries to find a file specified by the path relative to + the file browser root. + """ + def __init__(self, window): + self.window = window + + def lookup(self, path): + root = file_browser_root(self.window) + if root: + real_path = os.path.join(root, path) + if os.path.isfile(real_path): + return Gio.file_new_for_path(real_path) + + return None + + +class CwdFileLookupProvider(FileLookupProvider): + """ + This lookup provider tries to find a file specified by the path relative to + the current working directory. + """ + + def lookup(self, path): + try: + cwd = os.getcwd() + except OSError: + cwd = os.getenv('HOME') + + real_path = os.path.join(cwd, path) + + if os.path.isfile(real_path): + return Gio.file_new_for_path(real_path) + else: + return None + + +class OpenDocumentRelPathFileLookupProvider(FileLookupProvider): + """ + Tries to see if the path is relative to any directories where the + currently open documents reside in. Example: If you have a document opened + '/tmp/Makefile' and a lookup is made for 'src/test2.c' then this class + will try to find '/tmp/src/test2.c'. + """ + + def lookup(self, path): + if path.startswith('/'): + return None + + for doc in Gio.Application.get_default().get_documents(): + if doc.get_file().is_local(): + location = doc.get_file().get_location() + if location: + rel_path = location.get_parent().get_path() + joined_path = os.path.join(rel_path, path) + if os.path.isfile(joined_path): + return Gio.file_new_for_path(joined_path) + + return None + + +class OpenDocumentFileLookupProvider(FileLookupProvider): + """ + Makes a guess that the if the path that was looked for matches the end + of the path of a currently open document then that document is the one + that is looked for. Example: If a document is opened called '/tmp/t.c' + and a lookup is made for 't.c' or 'tmp/t.c' then both will match since + the open document ends with the path that is searched for. + """ + + def lookup(self, path): + if path.startswith('/'): + return None + + for doc in Gio.Application.get_default().get_documents(): + if doc.get_file().is_local(): + location = doc.get_file().get_location() + if location and location.get_uri().endswith(path): + return location + return None + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/functions.py b/plugins/externaltools/tools/functions.py new file mode 100644 index 0000000..bc755be --- /dev/null +++ b/plugins/externaltools/tools/functions.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2005-2006 Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import os +from gi.repository import Gio, Gtk, Gdk, GtkSource, Gedit +from .capture import * + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +def default(val, d): + if val is not None: + return val + else: + return d + + +def current_word(document): + piter = document.get_iter_at_mark(document.get_insert()) + start = piter.copy() + + if not piter.starts_word() and (piter.inside_word() or piter.ends_word()): + start.backward_word_start() + + if not piter.ends_word() and piter.inside_word(): + piter.forward_word_end() + + return (start, piter) + + +def file_browser_root(window): + bus = window.get_message_bus() + + if bus.is_registered('/plugins/filebrowser', 'get_root'): + msg = bus.send_sync('/plugins/filebrowser', 'get_root') + + if msg: + browser_root = msg.props.location + + if browser_root and browser_root.is_native(): + return browser_root.get_path() + + return None + + +# ==== Capture related functions ==== +def run_external_tool(window, panel, node): + # Configure capture environment + try: + cwd = os.getcwd() + except OSError: + cwd = os.getenv('HOME') + + capture = Capture(node.command, cwd) + capture.env = os.environ.copy() + capture.set_env(GEDIT_CWD=cwd) + + view = window.get_active_view() + document = None + + if view is not None: + # Environment vars relative to current document + document = view.get_buffer() + location = document.get_file().get_location() + + # Current line number + piter = document.get_iter_at_mark(document.get_insert()) + capture.set_env(GEDIT_CURRENT_LINE_NUMBER=str(piter.get_line() + 1)) + + # Current line text + piter.set_line_offset(0) + end = piter.copy() + + if not end.ends_line(): + end.forward_to_line_end() + + capture.set_env(GEDIT_CURRENT_LINE=piter.get_text(end)) + + if document.get_language() is not None: + capture.set_env(GEDIT_CURRENT_DOCUMENT_LANGUAGE=document.get_language().get_id()) + + # Selected text (only if input is not selection) + if node.input != 'selection' and node.input != 'selection-document': + bounds = document.get_selection_bounds() + + if bounds: + capture.set_env(GEDIT_SELECTED_TEXT=bounds[0].get_text(bounds[1])) + + bounds = current_word(document) + capture.set_env(GEDIT_CURRENT_WORD=bounds[0].get_text(bounds[1])) + + capture.set_env(GEDIT_CURRENT_DOCUMENT_TYPE=document.get_mime_type()) + + if location is not None: + scheme = location.get_uri_scheme() + name = location.get_basename() + capture.set_env(GEDIT_CURRENT_DOCUMENT_URI=location.get_uri(), + GEDIT_CURRENT_DOCUMENT_NAME=name, + GEDIT_CURRENT_DOCUMENT_SCHEME=scheme) + if location.has_uri_scheme('file'): + path = location.get_path() + cwd = os.path.dirname(path) + capture.set_cwd(cwd) + capture.set_env(GEDIT_CURRENT_DOCUMENT_PATH=path, + GEDIT_CURRENT_DOCUMENT_DIR=cwd) + + documents_location = [doc.get_file().get_location() + for doc in window.get_documents() + if doc.get_file().get_location() is not None] + documents_uri = [location.get_uri() + for location in documents_location + if location.get_uri() is not None] + documents_path = [location.get_path() + for location in documents_location + if location.has_uri_scheme('file')] + capture.set_env(GEDIT_DOCUMENTS_URI=' '.join(documents_uri), + GEDIT_DOCUMENTS_PATH=' '.join(documents_path)) + + # set file browser root env var if possible + browser_root = file_browser_root(window) + if browser_root: + capture.set_env(GEDIT_FILE_BROWSER_ROOT=browser_root) + + flags = capture.CAPTURE_BOTH + + if not node.has_hash_bang(): + flags |= capture.CAPTURE_NEEDS_SHELL + + capture.set_flags(flags) + + # Get input text + input_type = node.input + output_type = node.output + + # Clear the panel + panel.clear() + + if output_type == 'output-panel': + panel.show() + + # Assign the error output to the output panel + panel.set_process(capture) + + if input_type != 'nothing' and view is not None: + if input_type == 'document': + start, end = document.get_bounds() + elif input_type == 'selection' or input_type == 'selection-document': + try: + start, end = document.get_selection_bounds() + except ValueError: + if input_type == 'selection-document': + start, end = document.get_bounds() + + if output_type == 'replace-selection': + document.select_range(start, end) + else: + start = document.get_iter_at_mark(document.get_insert()) + end = start.copy() + + elif input_type == 'line': + start = document.get_iter_at_mark(document.get_insert()) + end = start.copy() + if not start.starts_line(): + start.set_line_offset(0) + if not end.ends_line(): + end.forward_to_line_end() + elif input_type == 'word': + start = document.get_iter_at_mark(document.get_insert()) + end = start.copy() + if not start.inside_word(): + panel.write(_('You must be inside a word to run this command'), + panel.error_tag) + return + if not start.starts_word(): + start.backward_word_start() + if not end.ends_word(): + end.forward_word_end() + + input_text = document.get_text(start, end, False) + capture.set_input(input_text) + + # Assign the standard output to the chosen "file" + if output_type == 'new-document': + tab = window.create_tab(True) + view = tab.get_view() + document = tab.get_document() + pos = document.get_start_iter() + capture.connect('stdout-line', capture_stdout_line_document, document, pos) + document.begin_user_action() + view.set_editable(False) + view.set_cursor_visible(False) + elif output_type != 'output-panel' and output_type != 'nothing' and view is not None: + document.begin_user_action() + view.set_editable(False) + view.set_cursor_visible(False) + + if output_type.startswith('replace-'): + if output_type == 'replace-selection': + try: + start_iter, end_iter = document.get_selection_bounds() + except ValueError: + start_iter = document.get_iter_at_mark(document.get_insert()) + end_iter = start_iter.copy() + elif output_type == 'replace-document': + start_iter, end_iter = document.get_bounds() + capture.connect('stdout-line', capture_delayed_replace, + document, start_iter, end_iter) + else: + if output_type == 'insert': + pos = document.get_iter_at_mark(document.get_insert()) + else: + pos = document.get_end_iter() + capture.connect('stdout-line', capture_stdout_line_document, document, pos) + elif output_type != 'nothing': + capture.connect('stdout-line', capture_stdout_line_panel, panel) + + if not document is None: + document.begin_user_action() + + capture.connect('stderr-line', capture_stderr_line_panel, panel) + capture.connect('begin-execute', capture_begin_execute_panel, panel, view, node.name) + capture.connect('end-execute', capture_end_execute_panel, panel, view, output_type) + + # Run the command + capture.execute() + + if output_type != 'nothing': + if not document is None: + document.end_user_action() + +class MultipleDocumentsSaver: + def __init__(self, window, panel, all_docs, node): + self._window = window + self._panel = panel + self._node = node + + if all_docs: + docs = window.get_documents() + else: + docs = [window.get_active_document()] + + self._docs_to_save = [doc for doc in docs if doc.get_modified()] + self.save_next_document() + + def save_next_document(self): + if len(self._docs_to_save) == 0: + # The documents are saved, we can run the tool. + run_external_tool(self._window, self._panel, self._node) + else: + next_doc = self._docs_to_save[0] + self._docs_to_save.remove(next_doc) + + Gedit.commands_save_document_async(next_doc, + self._window, + None, + self.on_document_saved, + None) + + def on_document_saved(self, doc, result, user_data): + saved = Gedit.commands_save_document_finish(doc, result) + if saved: + self.save_next_document() + + +def capture_menu_action(action, parameter, window, panel, node): + if node.save_files == 'document' and window.get_active_document(): + MultipleDocumentsSaver(window, panel, False, node) + return + elif node.save_files == 'all': + MultipleDocumentsSaver(window, panel, True, node) + return + + run_external_tool(window, panel, node) + + +def capture_stderr_line_panel(capture, line, panel): + if not panel.visible(): + panel.show() + + panel.write(line, panel.error_tag) + + +def capture_begin_execute_panel(capture, panel, view, label): + if view: + view.get_window(Gtk.TextWindowType.TEXT).set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH)) + + panel['stop'].set_sensitive(True) + panel.clear() + panel.write(_("Running tool:"), panel.italic_tag) + panel.write(" %s\n\n" % label, panel.bold_tag) + + +def capture_end_execute_panel(capture, exit_code, panel, view, output_type): + panel['stop'].set_sensitive(False) + + if view: + if output_type in ('new-document', 'replace-document'): + doc = view.get_buffer() + start = doc.get_start_iter() + end = start.copy() + end.forward_chars(300) + uri = '' + + mtype, uncertain = Gio.content_type_guess(None, doc.get_text(start, end, False).encode('utf-8')) + lmanager = GtkSource.LanguageManager.get_default() + + location = doc.get_file().get_location() + if location: + uri = location.get_uri() + language = lmanager.guess_language(uri, mtype) + + if language is not None: + doc.set_language(language) + + view.get_window(Gtk.TextWindowType.TEXT).set_cursor(Gdk.Cursor.new(Gdk.CursorType.XTERM)) + view.set_cursor_visible(True) + view.set_editable(True) + + if exit_code == 0: + panel.write("\n" + _("Done.") + "\n", panel.italic_tag) + else: + panel.write("\n" + _("Exited") + ":", panel.italic_tag) + panel.write(" %d\n" % exit_code, panel.bold_tag) + + +def capture_stdout_line_panel(capture, line, panel): + panel.write(line) + + +def capture_stdout_line_document(capture, line, document, pos): + document.insert(pos, line) + + +def capture_delayed_replace(capture, line, document, start_iter, end_iter): + document.delete(start_iter, end_iter) + + # Must be done after deleting the text + pos = document.get_iter_at_mark(document.get_insert()) + + capture_stdout_line_document(capture, line, document, pos) + + capture.disconnect_by_func(capture_delayed_replace) + capture.connect('stdout-line', capture_stdout_line_document, document, pos) + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/library.py b/plugins/externaltools/tools/library.py new file mode 100644 index 0000000..adfd943 --- /dev/null +++ b/plugins/externaltools/tools/library.py @@ -0,0 +1,520 @@ +# -*- coding: utf-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2006 Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import os +import re +import locale +import platform +from gi.repository import GLib + + +class Singleton(object): + _instance = None + + def __new__(cls, *args, **kwargs): + if not cls._instance: + cls._instance = super(Singleton, cls).__new__(cls, *args, **kwargs) + cls._instance.__init_once__() + + return cls._instance + + +class ToolLibrary(Singleton): + def __init_once__(self): + self.locations = [] + + def set_locations(self, datadir): + self.locations = [] + + if platform.platform() != 'Windows': + for d in self.get_xdg_data_dirs(): + self.locations.append(os.path.join(d, 'gedit', 'plugins', 'externaltools', 'tools')) + + self.locations.append(datadir) + + # self.locations[0] is where we save the custom scripts + if platform.platform() == 'Windows': + toolsdir = os.path.expanduser('~/gedit/tools') + else: + userdir = os.getenv('GNOME22_USER_DIR') + if userdir: + toolsdir = os.path.join(userdir, 'gedit/tools') + else: + toolsdir = os.path.join(GLib.get_user_config_dir(), 'gedit/tools') + + self.locations.insert(0, toolsdir) + + if not os.path.isdir(self.locations[0]): + os.makedirs(self.locations[0]) + self.tree = ToolDirectory(self, '') + self.import_old_xml_store() + else: + self.tree = ToolDirectory(self, '') + + # cf. http://standards.freedesktop.org/basedir-spec/latest/ + def get_xdg_data_dirs(self): + dirs = os.getenv('XDG_DATA_DIRS') + if dirs: + dirs = dirs.split(os.pathsep) + else: + dirs = ('/usr/local/share', '/usr/share') + return dirs + + # This function is meant to be ran only once, when the tools directory is + # created. It imports eventual tools that have been saved in the old XML + # storage file. + def import_old_xml_store(self): + import xml.etree.ElementTree as et + userdir = os.getenv('GNOME22_USER_DIR') + if userdir: + filename = os.path.join(userdir, 'gedit/gedit-tools.xml') + else: + filename = os.path.join(GLib.get_user_config_dir(), 'gedit/gedit-tools.xml') + + if not os.path.isfile(filename): + return + + print("External tools: importing old tools into the new store...") + + xtree = et.parse(filename) + xroot = xtree.getroot() + + for xtool in xroot: + for i in self.tree.tools: + if i.name == xtool.get('label'): + tool = i + break + else: + tool = Tool(self.tree) + tool.name = xtool.get('label') + tool.autoset_filename() + self.tree.tools.append(tool) + tool.comment = xtool.get('description') + tool.shortcut = xtool.get('accelerator') + tool.applicability = xtool.get('applicability') + tool.output = xtool.get('output') + tool.input = xtool.get('input') + + tool.save_with_script(xtool.text) + + def get_full_path(self, path, mode='r', system=True, local=True): + assert (system or local) + if path is None: + return None + if mode == 'r': + if system and local: + locations = self.locations + elif local and not system: + locations = [self.locations[0]] + elif system and not local: + locations = self.locations[1:] + else: + raise ValueError("system and local can't be both set to False") + + for i in locations: + p = os.path.join(i, path) + if os.path.lexists(p): + return p + return None + else: + path = os.path.join(self.locations[0], path) + dirname = os.path.dirname(path) + if not os.path.isdir(dirname): + os.mkdir(dirname) + return path + + +class ToolDirectory(object): + def __init__(self, parent, dirname): + super(ToolDirectory, self).__init__() + self.subdirs = list() + self.tools = list() + if isinstance(parent, ToolDirectory): + self.parent = parent + self.library = parent.library + else: + self.parent = None + self.library = parent + self.dirname = dirname + self._load() + + def listdir(self): + elements = dict() + for l in self.library.locations: + d = os.path.join(l, self.dirname) + if not os.path.isdir(d): + continue + for i in os.listdir(d): + elements[i] = None + keys = sorted(elements.keys()) + return keys + + def _load(self): + for p in self.listdir(): + path = os.path.join(self.dirname, p) + full_path = self.library.get_full_path(path) + if os.path.isdir(full_path): + self.subdirs.append(ToolDirectory(self, p)) + elif os.path.isfile(full_path) and os.access(full_path, os.X_OK): + self.tools.append(Tool(self, p)) + + def get_path(self): + if self.parent is None: + return self.dirname + else: + return os.path.join(self.parent.get_path(), self.dirname) + path = property(get_path) + + def get_name(self): + return os.path.basename(self.dirname) + name = property(get_name) + + def delete_tool(self, tool): + # Only remove it if it lays in $HOME + if tool in self.tools: + path = tool.get_path() + if path is not None: + filename = os.path.join(self.library.locations[0], path) + if os.path.isfile(filename): + os.unlink(filename) + self.tools.remove(tool) + return True + else: + return False + + def revert_tool(self, tool): + # Only remove it if it lays in $HOME + filename = os.path.join(self.library.locations[0], tool.get_path()) + if tool in self.tools and os.path.isfile(filename): + os.unlink(filename) + tool._load() + return True + else: + return False + + +class Tool(object): + RE_KEY = re.compile('^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') + + def __init__(self, parent, filename=None): + super(Tool, self).__init__() + self.parent = parent + self.library = parent.library + self.filename = filename + self.changed = False + self._properties = dict() + self._transform = { + 'Languages': [self._to_list, self._from_list] + } + self._load() + + def _to_list(self, value): + if value.strip() == '': + return [] + else: + return [x.strip() for x in value.split(',')] + + def _from_list(self, value): + return ','.join(value) + + def _parse_value(self, key, value): + if key in self._transform: + return self._transform[key][0](value) + else: + return value + + def _load(self): + if self.filename is None: + return + + filename = self.library.get_full_path(self.get_path()) + if filename is None: + return + + fp = open(filename, 'r', 1, encoding='utf-8') + in_block = False + lang = locale.getlocale(locale.LC_MESSAGES)[0] + + for line in fp: + if not in_block: + in_block = line.startswith('# [Gedit Tool]') + continue + if line.startswith('##') or line.startswith('# #'): + continue + if not line.startswith('# '): + break + + try: + (key, value) = [i.strip() for i in line[2:].split('=', 1)] + m = self.RE_KEY.match(key) + if m.group(3) is None: + self._properties[m.group(1)] = self._parse_value(m.group(1), value) + elif lang is not None and lang.startswith(m.group(3)): + self._properties[m.group(1)] = self._parse_value(m.group(1), value) + except ValueError: + break + fp.close() + self.changed = False + + def _set_property_if_changed(self, key, value): + if value != self._properties.get(key): + self._properties[key] = value + + self.changed = True + + def is_global(self): + return self.library.get_full_path(self.get_path(), local=False) is not None + + def is_local(self): + return self.library.get_full_path(self.get_path(), system=False) is not None + + def is_global(self): + return self.library.get_full_path(self.get_path(), local=False) is not None + + def get_path(self): + if self.filename is not None: + return os.path.join(self.parent.get_path(), self.filename) + else: + return None + path = property(get_path) + + # This command is the one that is meant to be ran + # (later, could have an Exec key or something) + def get_command(self): + return self.library.get_full_path(self.get_path()) + command = property(get_command) + + def get_applicability(self): + applicability = self._properties.get('Applicability') + if applicability: + return applicability + return 'all' + + def set_applicability(self, value): + self._set_property_if_changed('Applicability', value) + + applicability = property(get_applicability, set_applicability) + + def get_name(self): + name = self._properties.get('Name') + if name: + return name + return os.path.basename(self.filename) + + def set_name(self, value): + self._set_property_if_changed('Name', value) + + name = property(get_name, set_name) + + def get_shortcut(self): + shortcut = self._properties.get('Shortcut') + if shortcut: + return shortcut + return None + + def set_shortcut(self, value): + self._set_property_if_changed('Shortcut', value) + + shortcut = property(get_shortcut, set_shortcut) + + def get_comment(self): + comment = self._properties.get('Comment') + if comment: + return comment + return self.filename + + def set_comment(self, value): + self._set_property_if_changed('Comment', value) + + comment = property(get_comment, set_comment) + + def get_input(self): + input = self._properties.get('Input') + if input: + return input + return 'nothing' + + def set_input(self, value): + self._set_property_if_changed('Input', value) + + input = property(get_input, set_input) + + def get_output(self): + output = self._properties.get('Output') + if output: + return output + return 'output-panel' + + def set_output(self, value): + self._set_property_if_changed('Output', value) + + output = property(get_output, set_output) + + def get_save_files(self): + save_files = self._properties.get('Save-files') + if save_files: + return save_files + return 'nothing' + + def set_save_files(self, value): + self._set_property_if_changed('Save-files', value) + + save_files = property(get_save_files, set_save_files) + + def get_languages(self): + languages = self._properties.get('Languages') + if languages: + return languages + return [] + + def set_languages(self, value): + self._set_property_if_changed('Languages', value) + + languages = property(get_languages, set_languages) + + def has_hash_bang(self): + if self.filename is None: + return True + + filename = self.library.get_full_path(self.get_path()) + if filename is None: + return True + + fp = open(filename, 'r', 1, encoding='utf-8') + for line in fp: + if line.strip() == '': + continue + return line.startswith('#!') + + # There is no property for this one because this function is quite + # expensive to perform + def get_script(self): + if self.filename is None: + return ["#!/bin/sh\n"] + + filename = self.library.get_full_path(self.get_path()) + if filename is None: + return ["#!/bin/sh\n"] + + fp = open(filename, 'r', 1, encoding='utf-8') + lines = list() + + # before entering the data block + for line in fp: + if line.startswith('# [Gedit Tool]'): + break + lines.append(line) + # in the block: + for line in fp: + if line.startswith('##'): + continue + if not (line.startswith('# ') and '=' in line): + # after the block: strip one emtpy line (if present) + if line.strip() != '': + lines.append(line) + break + # after the block + for line in fp: + lines.append(line) + fp.close() + return lines + + def _dump_properties(self): + lines = ['# [Gedit Tool]'] + for item in self._properties.items(): + if item[0] in self._transform: + lines.append('# %s=%s' % (item[0], self._transform[item[0]][1](item[1]))) + elif item[1] is not None: + lines.append('# %s=%s' % item) + return '\n'.join(lines) + '\n' + + def save_with_script(self, script): + filename = self.library.get_full_path(self.filename, 'w') + fp = open(filename, 'w', 1, encoding='utf-8') + + # Make sure to first print header (shebang, modeline), then + # properties, and then actual content + header = [] + content = [] + inheader = True + + # Parse + for line in script: + line = line.rstrip("\n") + if not inheader: + content.append(line) + elif line.startswith('#!'): + # Shebang (should be always present) + header.append(line) + elif line.strip().startswith('#') and ('-*-' in line or 'ex:' in line or 'vi:' in line or 'vim:' in line): + header.append(line) + else: + content.append(line) + inheader = False + + # Write out header + for line in header: + fp.write(line + "\n") + + fp.write(self._dump_properties()) + fp.write("\n") + + for line in content: + fp.write(line + "\n") + + fp.close() + os.chmod(filename, 0o750) + self.changed = False + + def save(self): + if self.changed: + self.save_with_script(self.get_script()) + + def autoset_filename(self): + if self.filename is not None: + return + dirname = self.parent.path + if dirname != '': + dirname += os.path.sep + + basename = self.name.lower().replace(' ', '-').replace('/', '-') + + if self.library.get_full_path(dirname + basename): + i = 2 + while self.library.get_full_path(dirname + "%s-%d" % (basename, i)): + i += 1 + basename = "%s-%d" % (basename, i) + self.filename = basename + +if __name__ == '__main__': + library = ToolLibrary() + library.set_locations(os.path.expanduser("~/.config/gedit/tools")) + + def print_tool(t, indent): + print(indent * " " + "%s: %s" % (t.filename, t.name)) + + def print_dir(d, indent): + print(indent * " " + d.dirname + '/') + for i in d.subdirs: + print_dir(i, indent + 1) + for i in d.tools: + print_tool(i, indent + 1) + + print_dir(library.tree, 0) + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/linkparsing.py b/plugins/externaltools/tools/linkparsing.py new file mode 100644 index 0000000..d9c09a5 --- /dev/null +++ b/plugins/externaltools/tools/linkparsing.py @@ -0,0 +1,252 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2009-2010 Per Arneng +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import re + + +class Link: + """ + This class represents a file link from within a string given by the + output of some software tool. A link contains a reference to a file, the + line number within the file and the boundaries within the given output + string that should be marked as a link. + """ + + def __init__(self, path, line_nr, col_nr, start, end): + """ + path -- the path of the file (that could be extracted) + line_nr -- the line nr of the specified file + col_nr -- the col nr of the specific file + start -- the index within the string that the link starts at + end -- the index within the string where the link ends at + """ + self.path = path + self.line_nr = int(line_nr) + self.col_nr = int(col_nr) + self.start = start + self.end = end + + def __repr__(self): + return "%s[%s][%s](%s:%s)" % (self.path, self.line_nr, self.col_nr, + self.start, self.end) + + +class LinkParser: + """ + Parses a text using different parsing providers with the goal of finding one + or more file links within the text. A typical example could be the output + from a compiler that specifies an error in a specific file. The path of the + file, the line nr and some more info is then returned so that it can be used + to be able to navigate from the error output in to the specific file. + + The actual work of parsing the text is done by instances of classes that + inherits from AbstractLinkParser or by regular expressions. To add a new + parser just create a class that inherits from AbstractLinkParser and then + register in this class cunstructor using the method add_parser. If you want + to add a regular expression then just call add_regexp in this class + constructor and provide your regexp string as argument. + """ + + def __init__(self): + self._providers = [] + self.add_regexp(REGEXP_STANDARD) + self.add_regexp(REGEXP_PYTHON) + self.add_regexp(REGEXP_VALAC) + self.add_regexp(REGEXP_BASH) + self.add_regexp(REGEXP_RUBY) + self.add_regexp(REGEXP_PERL) + self.add_regexp(REGEXP_MCS) + + def add_parser(self, parser): + self._providers.append(parser) + + def add_regexp(self, regexp): + """ + Adds a regular expression string that should match a link using + re.MULTILINE and re.VERBOSE regexp. The area marked as a link should + be captured by a group named lnk. The path of the link should be + captured by a group named pth. The line number should be captured by + a group named ln. To read more about this look at the documentation + for the RegexpLinkParser constructor. + """ + self.add_parser(RegexpLinkParser(regexp)) + + def parse(self, text): + """ + Parses the given text and returns a list of links that are parsed from + the text. This method delegates to parser providers that can parse + output from different kinds of formats. If no links are found then an + empty list is returned. + + text -- the text to scan for file links. 'text' can not be None. + """ + if text is None: + raise ValueError("text can not be None") + + links = [] + + for provider in self._providers: + links.extend(provider.parse(text)) + + return links + + +class AbstractLinkParser(object): + """The "abstract" base class for link parses""" + + def parse(self, text): + """ + This method should be implemented by subclasses. It takes a text as + argument (never None) and then returns a list of Link objects. If no + links are found then an empty list is expected. The Link class is + defined in this module. If you do not override this method then a + NotImplementedError will be thrown. + + text -- the text to parse. This argument is never None. + """ + raise NotImplementedError("need to implement a parse method") + + +class RegexpLinkParser(AbstractLinkParser): + """ + A class that represents parsers that only use one single regular expression. + It can be used by subclasses or by itself. See the constructor documentation + for details about the rules surrouning the regexp. + """ + + def __init__(self, regex): + """ + Creates a new RegexpLinkParser based on the given regular expression. + The regular expression is multiline and verbose (se python docs on + compilation flags). The regular expression should contain three named + capturing groups 'lnk', 'pth' and 'ln'. 'lnk' represents the area wich + should be marked as a link in the text. 'pth' is the path that should + be looked for and 'ln' is the line number in that file. + """ + self.re = re.compile(regex, re.MULTILINE | re.VERBOSE) + + def parse(self, text): + links = [] + for m in re.finditer(self.re, text): + groups = m.groups() + + path = m.group("pth") + line_nr = m.group("ln") + start = m.start("lnk") + end = m.end("lnk") + + # some regexes may have a col group + if len(groups) > 3 and groups[3] != None: + col_nr = m.group("col") + else: + col_nr = 0 + + link = Link(path, line_nr, col_nr, start, end) + links.append(link) + + return links + +# gcc 'test.c:13: warning: ...' +# grep 'test.c:5:int main(...' +# javac 'Test.java:13: ...' +# ruby 'test.rb:5: ...' +# scalac 'Test.scala:5: ...' +# sbt (scala) '[error] test.scala:4: ...' +# 6g (go) 'test.go:9: ...' +REGEXP_STANDARD = r""" +^ +(?:\[(?:error|warn)\]\ )? +(?P + (?P [^ \:\n]* ) + \: + (?P \d+) + \:? + (?P \d+)? +) +\:""" + +# python ' File "test.py", line 13' +REGEXP_PYTHON = r""" +^\s\sFile\s +(?P + \" + (?P [^\"]+ ) + \",\sline\s + (?P \d+ ) +)""" + +# python 'test.sh: line 5:' +REGEXP_BASH = r""" +^(?P + (?P .* ) + \:\sline\s + (?P \d+ ) +)\:""" + +# valac 'Test.vala:13.1-13.3: ...' +REGEXP_VALAC = r""" +^(?P + (?P + .*vala + ) + \: + (?P + \d+ + ) + \.\d+-\d+\.\d+ + )\: """ + +#ruby +#test.rb:5: ... +# from test.rb:3:in `each' +# fist line parsed by REGEXP_STANDARD +REGEXP_RUBY = r""" +^\s+from\s +(?P + (?P + .* + ) + \: + (?P + \d+ + ) + )""" + +# perl 'syntax error at test.pl line 88, near "$fake_var' +REGEXP_PERL = r""" +\sat\s +(?P + (?P .* ) + \sline\s + (?P \d+ ) +)""" + +# mcs (C#) 'Test.cs(12,7): error CS0103: The name `fakeMethod' +# fpc (Pascal) 'hello.pas(11,1) Fatal: Syntax error, ":" expected but "BEGIN"' +REGEXP_MCS = r""" +^ +(?P + (?P \S+ ) + \( + (?P \d+ ) + ,\d+\) +) +\:?\s +""" + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/manager.py b/plugins/externaltools/tools/manager.py new file mode 100644 index 0000000..072286b --- /dev/null +++ b/plugins/externaltools/tools/manager.py @@ -0,0 +1,878 @@ +# -*- coding: utf-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2005-2006 Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +__all__ = ('Manager', ) + +import os.path +from .library import * +from .functions import * +import hashlib +from xml.sax import saxutils +from gi.repository import Gio, GObject, Gtk, GtkSource, Gedit + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class LanguagesPopup(Gtk.Popover): + __gtype_name__ = "LanguagePopup" + + COLUMN_NAME = 0 + COLUMN_ID = 1 + COLUMN_ENABLED = 2 + + def __init__(self, widget, languages): + Gtk.Popover.__init__(self, relative_to=widget) + + self.props.can_focus = True + + self.build() + self.init_languages(languages) + + self.view.get_selection().select_path((0,)) + + def build(self): + self.model = Gtk.ListStore(str, str, bool) + + self.sw = Gtk.ScrolledWindow() + self.sw.set_size_request(-1, 200) + self.sw.show() + + self.sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) + self.sw.set_shadow_type(Gtk.ShadowType.ETCHED_IN) + + self.view = Gtk.TreeView(model=self.model) + self.view.show() + + self.view.set_headers_visible(False) + + column = Gtk.TreeViewColumn() + + renderer = Gtk.CellRendererToggle() + column.pack_start(renderer, False) + column.add_attribute(renderer, 'active', self.COLUMN_ENABLED) + + renderer.connect('toggled', self.on_language_toggled) + + renderer = Gtk.CellRendererText() + column.pack_start(renderer, True) + column.add_attribute(renderer, 'text', self.COLUMN_NAME) + + self.view.append_column(column) + self.view.set_row_separator_func(self.on_separator, None) + + self.sw.add(self.view) + + self.add(self.sw) + + def enabled_languages(self, model, path, piter, ret): + enabled = model.get_value(piter, self.COLUMN_ENABLED) + + if path.get_indices()[0] == 0 and enabled: + return True + + if enabled: + ret.append(model.get_value(piter, self.COLUMN_ID)) + + return False + + def languages(self): + ret = [] + + self.model.foreach(self.enabled_languages, ret) + return ret + + def on_separator(self, model, piter, user_data=None): + val = model.get_value(piter, self.COLUMN_NAME) + return val == '-' + + def init_languages(self, languages): + manager = GtkSource.LanguageManager() + langs = [manager.get_language(x) for x in manager.get_language_ids()] + langs.sort(key=lambda x: x.get_name()) + + self.model.append([_('All languages'), None, not languages]) + self.model.append(['-', None, False]) + self.model.append([_('Plain Text'), 'plain', 'plain' in languages]) + self.model.append(['-', None, False]) + + for lang in langs: + self.model.append([lang.get_name(), lang.get_id(), lang.get_id() in languages]) + + def correct_all(self, model, path, piter, enabled): + if path.get_indices()[0] == 0: + return False + + model.set_value(piter, self.COLUMN_ENABLED, enabled) + + def on_language_toggled(self, renderer, path): + piter = self.model.get_iter(path) + + enabled = self.model.get_value(piter, self.COLUMN_ENABLED) + self.model.set_value(piter, self.COLUMN_ENABLED, not enabled) + + if path == '0': + self.model.foreach(self.correct_all, False) + else: + self.model.set_value(self.model.get_iter_first(), self.COLUMN_ENABLED, False) + + +class Manager(GObject.Object): + TOOL_COLUMN = 0 # For Tree + NAME_COLUMN = 1 # For Combo + + __gsignals__ = { + 'tools-updated': (GObject.SignalFlags.RUN_LAST, None, ()) + } + + def __init__(self, datadir): + GObject.Object.__init__(self) + self.datadir = datadir + self.dialog = None + self._size = (0, 0) + self._languages = {} + self._tool_rows = {} + + self.build() + + def get_final_size(self): + return self._size + + def build(self): + callbacks = { + 'on_add_tool_button_clicked': self.on_add_tool_button_clicked, + 'on_remove_tool_button_clicked': self.on_remove_tool_button_clicked, + 'on_tool_manager_dialog_delete_event': self.on_tool_manager_dialog_delete_event, + 'on_tool_manager_dialog_focus_out': self.on_tool_manager_dialog_focus_out, + 'on_tool_manager_dialog_configure_event': self.on_tool_manager_dialog_configure_event, + 'on_accelerator_key_press': self.on_accelerator_key_press, + 'on_accelerator_focus_in': self.on_accelerator_focus_in, + 'on_accelerator_focus_out': self.on_accelerator_focus_out, + 'on_accelerator_backspace': self.on_accelerator_backspace, + 'on_applicability_changed': self.on_applicability_changed, + 'on_languages_button_clicked': self.on_languages_button_clicked + } + + # Load the "main-window" widget from the ui file. + self.ui = Gtk.Builder() + self.ui.add_from_file(os.path.join(self.datadir, 'ui', 'tools.ui')) + self.ui.connect_signals(callbacks) + self.dialog = self.ui.get_object('tool-manager-dialog') + + self.view = self['view'] + + self.__init_tools_model() + self.__init_tools_view() + + # join treeview and toolbar + context = self['scrolled_window1'].get_style_context() + context.set_junction_sides(Gtk.JunctionSides.BOTTOM) + context = self['toolbar1'].get_style_context() + context.set_junction_sides(Gtk.JunctionSides.TOP) + context.set_junction_sides(Gtk.JunctionSides.BOTTOM) + + for name in ['input', 'output', 'applicability', 'save-files']: + self.__init_combobox(name) + + self.do_update() + + def expand_from_doc(self, doc): + row = None + + if doc: + if doc.get_language(): + lid = doc.get_language().get_id() + + if lid in self._languages: + row = self._languages[lid] + elif 'plain' in self._languages: + row = self._languages['plain'] + + if not row and None in self._languages: + row = self._languages[None] + + if not row: + return + + self.view.expand_row(row.get_path(), False) + self.view.get_selection().select_path(row.get_path()) + + def run(self, window): + if self.dialog is None: + self.build() + + # Open up language + self.expand_from_doc(window.get_active_document()) + + self.dialog.set_transient_for(window) + window.get_group().add_window(self.dialog) + self.dialog.present() + + def add_accelerator(self, item): + if not item.shortcut: + return + + if item.shortcut in self.accelerators: + if not item in self.accelerators[item.shortcut]: + self.accelerators[item.shortcut].append(item) + else: + self.accelerators[item.shortcut] = [item] + + def remove_accelerator(self, item, shortcut=None): + if not shortcut: + shortcut = item.shortcut + + if not shortcut in self.accelerators: + return + + self.accelerators[shortcut].remove(item) + + if not self.accelerators[shortcut]: + del self.accelerators[shortcut] + + def add_tool_to_language(self, tool, language): + if isinstance(language, GtkSource.Language): + lid = language.get_id() + else: + lid = language + + if not lid in self._languages: + piter = self.model.append(None, [language]) + + parent = Gtk.TreeRowReference.new(self.model, self.model.get_path(piter)) + self._languages[lid] = parent + else: + parent = self._languages[lid] + + piter = self.model.get_iter(parent.get_path()) + child = self.model.append(piter, [tool]) + + if not tool in self._tool_rows: + self._tool_rows[tool] = [] + + self._tool_rows[tool].append(Gtk.TreeRowReference.new(self.model, self.model.get_path(child))) + return child + + def add_tool(self, tool): + manager = GtkSource.LanguageManager() + ret = None + + for lang in tool.languages: + l = manager.get_language(lang) + + if l: + ret = self.add_tool_to_language(tool, l) + elif lang == 'plain': + ret = self.add_tool_to_language(tool, 'plain') + + if not ret: + ret = self.add_tool_to_language(tool, None) + + self.add_accelerator(tool) + return ret + + def __init_tools_model(self): + self.tools = ToolLibrary() + self.current_node = None + self.script_hash = None + self.accelerators = dict() + + self.model = Gtk.TreeStore(object) + self.view.set_model(self.model) + + for tool in self.tools.tree.tools: + self.add_tool(tool) + + self.model.set_default_sort_func(self.sort_tools) + self.model.set_sort_column_id(-1, Gtk.SortType.ASCENDING) + + def sort_tools(self, model, iter1, iter2, user_data=None): + # For languages, sort All before everything else, otherwise alphabetical + t1 = model.get_value(iter1, self.TOOL_COLUMN) + t2 = model.get_value(iter2, self.TOOL_COLUMN) + + if model.iter_parent(iter1) is None: + if t1 is None: + return -1 + + if t2 is None: + return 1 + + def lang_name(lang): + if isinstance(lang, GtkSource.Language): + return lang.get_name() + else: + return _('Plain Text') + + n1 = lang_name(t1) + n2 = lang_name(t2) + else: + n1 = t1.name + n2 = t2.name + + if n1.lower() < n2.lower(): + return -1 + elif n1.lower() > n2.lower(): + return 1 + else: + return 0 + + def __init_tools_view(self): + # Tools column + column = Gtk.TreeViewColumn('Tools') + renderer = Gtk.CellRendererText() + column.pack_start(renderer, False) + renderer.set_property('editable', True) + self.view.append_column(column) + + column.set_cell_data_func(renderer, self.get_cell_data_cb, None) + + renderer.connect('edited', self.on_view_label_cell_edited) + renderer.connect('editing-started', self.on_view_label_cell_editing_started) + + self.selection_changed_id = self.view.get_selection().connect('changed', self.on_view_selection_changed, None) + + def __init_combobox(self, name): + combo = self[name] + combo.set_active(0) + + # Convenience function to get an object from its name + def __getitem__(self, key): + return self.ui.get_object(key) + + def set_active_by_name(self, combo_name, option_name): + combo = self[combo_name] + model = combo.get_model() + piter = model.get_iter_first() + while piter is not None: + if model.get_value(piter, self.NAME_COLUMN) == option_name: + combo.set_active_iter(piter) + return True + piter = model.iter_next(piter) + return False + + def get_selected_tool(self): + model, piter = self.view.get_selection().get_selected() + + if piter is not None: + tool = model.get_value(piter, self.TOOL_COLUMN) + + if not isinstance(tool, Tool): + tool = None + + return piter, tool + else: + return None, None + + def compute_hash(self, string): + return hashlib.md5(string.encode('utf-8')).hexdigest() + + def save_current_tool(self): + if self.current_node is None: + return + + if self.current_node.filename is None: + self.current_node.autoset_filename() + + def combo_value(o, name): + combo = o[name] + return combo.get_model().get_value(combo.get_active_iter(), self.NAME_COLUMN) + + self.current_node.input = combo_value(self, 'input') + self.current_node.output = combo_value(self, 'output') + self.current_node.applicability = combo_value(self, 'applicability') + self.current_node.save_files = combo_value(self, 'save-files') + + buf = self['commands'].get_buffer() + (start, end) = buf.get_bounds() + script = buf.get_text(start, end, False) + h = self.compute_hash(script) + if h != self.script_hash: + # script has changed -> save it + self.current_node.save_with_script([line + "\n" for line in script.splitlines()]) + self.script_hash = h + else: + self.current_node.save() + + self.update_remove_revert() + + def clear_fields(self): + self['accelerator'].set_text('') + + buf = self['commands'].get_buffer() + buf.begin_not_undoable_action() + buf.set_text('') + buf.end_not_undoable_action() + + for nm in ('input', 'output', 'applicability', 'save-files'): + self[nm].set_active(0) + + self['languages_label'].set_text(_('All Languages')) + + def fill_languages_button(self): + if not self.current_node or not self.current_node.languages: + self['languages_label'].set_text(_('All Languages')) + else: + manager = GtkSource.LanguageManager() + langs = [] + + for lang in self.current_node.languages: + if lang == 'plain': + langs.append(_('Plain Text')) + else: + l = manager.get_language(lang) + + if l: + langs.append(l.get_name()) + + self['languages_label'].set_text(', '.join(langs)) + + def fill_fields(self): + self.update_accelerator_label() + + buf = self['commands'].get_buffer() + script = default(''.join(self.current_node.get_script()), '') + + buf.begin_not_undoable_action() + buf.set_text(script) + buf.end_not_undoable_action() + + self.script_hash = self.compute_hash(script) + + contenttype, uncertain = Gio.content_type_guess(None, script.encode('utf-8')) + lmanager = GtkSource.LanguageManager.get_default() + language = lmanager.guess_language(None, contenttype) + + if language is not None: + buf.set_language(language) + buf.set_highlight_syntax(True) + else: + buf.set_highlight_syntax(False) + + for nm in ('input', 'output', 'applicability', 'save-files'): + model = self[nm].get_model() + piter = model.get_iter_first() + self.set_active_by_name(nm, + default(self.current_node.__getattribute__(nm.replace('-', '_')), + model.get_value(piter, self.NAME_COLUMN))) + + self.fill_languages_button() + + def update_accelerator_label(self): + if self.current_node.shortcut: + key, mods = Gtk.accelerator_parse(self.current_node.shortcut) + label = Gtk.accelerator_get_label(key, mods) + self['accelerator'].set_text(label) + else: + self['accelerator'].set_text('') + + def update_remove_revert(self): + piter, node = self.get_selected_tool() + + removable = node is not None and node.is_local() + + self['remove-tool-button'].set_sensitive(removable) + self['revert-tool-button'].set_sensitive(removable) + + if node is not None and node.is_global(): + self['remove-tool-button'].hide() + self['revert-tool-button'].show() + else: + self['remove-tool-button'].show() + self['revert-tool-button'].hide() + + def do_update(self): + self.update_remove_revert() + + piter, node = self.get_selected_tool() + self.current_node = node + + if node is not None: + self.fill_fields() + self['tool-grid'].set_sensitive(True) + else: + self.clear_fields() + self['tool-grid'].set_sensitive(False) + + def language_id_from_iter(self, piter): + if not piter: + return None + + tool = self.model.get_value(piter, self.TOOL_COLUMN) + + if isinstance(tool, Tool): + piter = self.model.iter_parent(piter) + tool = self.model.get_value(piter, self.TOOL_COLUMN) + + if isinstance(tool, GtkSource.Language): + return tool.get_id() + elif tool: + return 'plain' + + return None + + def selected_language_id(self): + # Find current language if there is any + model, piter = self.view.get_selection().get_selected() + + return self.language_id_from_iter(piter) + + def on_add_tool_button_clicked(self, button): + self.save_current_tool() + + # block handlers while inserting a new item + self.view.get_selection().handler_block(self.selection_changed_id) + + self.current_node = Tool(self.tools.tree); + self.current_node.name = _('New tool') + self.tools.tree.tools.append(self.current_node) + + lang = self.selected_language_id() + + if lang: + self.current_node.languages = [lang] + + piter = self.add_tool(self.current_node) + + self.view.set_cursor(self.model.get_path(piter), + self.view.get_column(self.TOOL_COLUMN), + True) + self.fill_fields() + + self['tool-grid'].set_sensitive(True) + self.view.get_selection().handler_unblock(self.selection_changed_id) + + def tool_changed(self, tool, refresh=False): + for row in self._tool_rows[tool]: + self.model.set_value(self.model.get_iter(row.get_path()), + self.TOOL_COLUMN, + tool) + + if refresh and tool == self.current_node: + self.fill_fields() + + self.update_remove_revert() + + def on_remove_tool_button_clicked(self, button): + piter, node = self.get_selected_tool() + + if not node: + return + + if node.is_global(): + shortcut = node.shortcut + + if node.parent.revert_tool(node): + self.remove_accelerator(node, shortcut) + self.add_accelerator(node) + + self['revert-tool-button'].set_sensitive(False) + self.fill_fields() + + self.tool_changed(node) + else: + parent = self.model.iter_parent(piter) + language = self.language_id_from_iter(parent) + + self.model.remove(piter) + + if language in node.languages: + node.languages.remove(language) + + self._tool_rows[node] = [x for x in self._tool_rows[node] if x.valid()] + + if not self._tool_rows[node]: + del self._tool_rows[node] + + if node.parent.delete_tool(node): + self.remove_accelerator(node) + self.current_node = None + self.script_hash = None + + if self.model.iter_is_valid(piter): + self.view.set_cursor(self.model.get_path(piter), + self.view.get_column(self.TOOL_COLUMN), + False) + + self.view.grab_focus() + + path = self._languages[language].get_path() + parent = self.model.get_iter(path) + + if not self.model.iter_has_child(parent): + self.model.remove(parent) + del self._languages[language] + + def on_view_label_cell_edited(self, cell, path, new_text): + if new_text != '': + piter = self.model.get_iter(path) + tool = self.model.get_value(piter, self.TOOL_COLUMN) + + tool.name = new_text + + self.save_current_tool() + self.tool_changed(tool) + + def on_view_label_cell_editing_started(self, renderer, editable, path): + piter = self.model.get_iter(path) + tool = self.model.get_value(piter, self.TOOL_COLUMN) + + if isinstance(editable, Gtk.Entry): + editable.set_text(tool.name) + editable.grab_focus() + + def on_view_selection_changed(self, selection, userdata): + self.save_current_tool() + self.do_update() + + def accelerator_collision(self, name, node): + if not name in self.accelerators: + return [] + + ret = [] + + for other in self.accelerators[name]: + if not other.languages or not node.languages: + ret.append(other) + continue + + for lang in other.languages: + if lang in node.languages: + ret.append(other) + continue + + return ret + + def set_accelerator(self, keyval, mod): + # Check whether accelerator already exists + self.remove_accelerator(self.current_node) + + name = Gtk.accelerator_name(keyval, mod) + + if name == '': + self.current_node.shorcut = None + self.save_current_tool() + return True + + col = self.accelerator_collision(name, self.current_node) + + if col: + dialog = Gtk.MessageDialog(self.dialog, + Gtk.DialogFlags.MODAL, + Gtk.MessageType.ERROR, + Gtk.ButtonsType.CLOSE, + _('This accelerator is already bound to %s') % (', '.join(map(lambda x: x.name, col)),)) + + dialog.run() + dialog.destroy() + + self.add_accelerator(self.current_node) + return False + + self.current_node.shortcut = name + self.add_accelerator(self.current_node) + self.save_current_tool() + + return True + + def on_accelerator_key_press(self, entry, event): + mask = event.state & Gtk.accelerator_get_default_mod_mask() + + if event.keyval == Gdk.KEY_Escape: + self.update_accelerator_label() + self['commands'].grab_focus() + return True + elif event.keyval == Gdk.KEY_BackSpace: + return False + elif event.keyval in range(Gdk.KEY_F1, Gdk.KEY_F12 + 1): + # New accelerator + if self.set_accelerator(event.keyval, mask): + self.update_accelerator_label() + self['commands'].grab_focus() + + # Capture all `normal characters` + return True + elif Gdk.keyval_to_unicode(event.keyval): + if mask: + # New accelerator + if self.set_accelerator(event.keyval, mask): + self.update_accelerator_label() + self['commands'].grab_focus() + # Capture all `normal characters` + return True + else: + return False + + def on_accelerator_focus_in(self, entry, event): + if self.current_node is None: + return + if self.current_node.shortcut: + entry.set_text(_('Type a new accelerator, or press Backspace to clear')) + else: + entry.set_text(_('Type a new accelerator')) + + def on_accelerator_focus_out(self, entry, event): + if self.current_node is not None: + self.update_accelerator_label() + self.tool_changed(self.current_node) + + def on_accelerator_backspace(self, entry): + entry.set_text('') + self.remove_accelerator(self.current_node) + self.current_node.shortcut = None + self['commands'].grab_focus() + + def on_tool_manager_dialog_delete_event(self, dialog, event): + self.save_current_tool() + return False + + def on_tool_manager_dialog_focus_out(self, dialog, event): + self.save_current_tool() + self.emit('tools-updated') + + def on_tool_manager_dialog_configure_event(self, dialog, event): + if dialog.get_realized(): + alloc = dialog.get_allocation() + self._size = (alloc.width, alloc.height) + + def on_applicability_changed(self, combo): + applicability = combo.get_model().get_value(combo.get_active_iter(), + self.NAME_COLUMN) + + if applicability == 'always': + if self.current_node is not None: + self.current_node.languages = [] + + self.fill_languages_button() + + self['languages_button'].set_sensitive(applicability != 'always') + + def get_cell_data_cb(self, column, cell, model, piter, user_data=None): + tool = model.get_value(piter, self.TOOL_COLUMN) + + if tool is None or not isinstance(tool, Tool): + if tool is None: + label = _('All Languages') + elif not isinstance(tool, GtkSource.Language): + label = _('Plain Text') + else: + label = tool.get_name() + + markup = saxutils.escape(label) + editable = False + else: + escaped = saxutils.escape(tool.name) + + if tool.shortcut: + key, mods = Gtk.accelerator_parse(tool.shortcut) + label = Gtk.accelerator_get_label(key, mods) + markup = '%s (%s)' % (escaped, label) + else: + markup = escaped + + editable = True + + cell.set_properties(markup=markup, editable=editable) + + def tool_in_language(self, tool, lang): + if not lang in self._languages: + return False + + ref = self._languages[lang] + parent = ref.get_path() + + for row in self._tool_rows[tool]: + path = row.get_path() + + if path.get_indices()[0] == parent.get_indices()[0]: + return True + + return False + + def update_languages(self, popup): + self.current_node.languages = popup.languages() + self.fill_languages_button() + + piter, node = self.get_selected_tool() + ret = None + + if node: + ref = Gtk.TreeRowReference.new(self.model, self.model.get_path(piter)) + + # Update languages, make sure to inhibit selection change stuff + self.view.get_selection().handler_block(self.selection_changed_id) + + # Remove all rows that are no longer + for row in list(self._tool_rows[self.current_node]): + piter = self.model.get_iter(row.get_path()) + language = self.language_id_from_iter(piter) + + if (not language and not self.current_node.languages) or \ + (language in self.current_node.languages): + continue + + # Remove from language + self.model.remove(piter) + self._tool_rows[self.current_node].remove(row) + + # If language is empty, remove it + parent = self.model.get_iter(self._languages[language].get_path()) + + if not self.model.iter_has_child(parent): + self.model.remove(parent) + del self._languages[language] + + # Now, add for any that are new + manager = GtkSource.LanguageManager() + + for lang in self.current_node.languages: + if not self.tool_in_language(self.current_node, lang): + l = manager.get_language(lang) + + if not l: + l = 'plain' + + self.add_tool_to_language(self.current_node, l) + + if not self.current_node.languages and not self.tool_in_language(self.current_node, None): + self.add_tool_to_language(self.current_node, None) + + # Check if we can still keep the current + if not ref or not ref.valid(): + # Change selection to first language + path = self._tool_rows[self.current_node][0].get_path() + piter = self.model.get_iter(path) + parent = self.model.iter_parent(piter) + + # Expand parent, select child and scroll to it + self.view.expand_row(self.model.get_path(parent), False) + self.view.get_selection().select_path(path) + self.view.set_cursor(path, self.view.get_column(self.TOOL_COLUMN), False) + + self.view.get_selection().handler_unblock(self.selection_changed_id) + + def on_languages_button_clicked(self, button): + popup = LanguagesPopup(button, self.current_node.languages) + popup.show() + popup.connect('closed', self.update_languages) + +# ex:et:ts=4: diff --git a/plugins/externaltools/tools/meson.build b/plugins/externaltools/tools/meson.build new file mode 100644 index 0000000..bd623cf --- /dev/null +++ b/plugins/externaltools/tools/meson.build @@ -0,0 +1,36 @@ +externaltools_sources = files( + '__init__.py', + 'appactivatable.py', + 'capture.py', + 'filelookup.py', + 'functions.py', + 'library.py', + 'linkparsing.py', + 'manager.py', + 'outputpanel.py', + 'windowactivatable.py', +) + +install_data( + externaltools_sources, + install_dir: join_paths( + pkglibdir, + 'plugins', + 'externaltools', + ) +) + +externaltools_data = files( + 'outputpanel.ui', + 'tools.ui', +) + +install_data( + externaltools_data, + install_dir: join_paths( + pkgdatadir, + 'plugins', + 'externaltools', + 'ui', + ) +) diff --git a/plugins/externaltools/tools/outputpanel.py b/plugins/externaltools/tools/outputpanel.py new file mode 100644 index 0000000..e9fc241 --- /dev/null +++ b/plugins/externaltools/tools/outputpanel.py @@ -0,0 +1,247 @@ +# -*- coding: utf-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2005-2006 Steve Frécinaux +# Copyright (C) 2010 Per Arneng +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +__all__ = ('OutputPanel', 'UniqueById') + +import os +from weakref import WeakKeyDictionary +from .capture import * +import re +from . import linkparsing +from . import filelookup +from gi.repository import GLib, Gio, Gdk, Gtk, Pango, Gedit + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class UniqueById: + __shared_state = WeakKeyDictionary() + + def __init__(self, i): + if i in self.__class__.__shared_state: + self.__dict__ = self.__class__.__shared_state[i] + return True + else: + self.__class__.__shared_state[i] = self.__dict__ + return False + + def states(self): + return self.__class__.__shared_state + + +class OutputPanel(UniqueById): + def __init__(self, datadir, window): + if UniqueById.__init__(self, window): + return + + callbacks = { + 'on_stop_clicked': self.on_stop_clicked, + 'on_view_visibility_notify_event': self.on_view_visibility_notify_event, + 'on_view_motion_notify_event': self.on_view_motion_notify_event + } + + self.profile_settings = self.get_profile_settings() + self.profile_settings.connect("changed", self.font_changed) + self.system_settings = Gio.Settings.new("org.gnome.desktop.interface") + self.system_settings.connect("changed::monospace-font-name", self.font_changed) + + self.window = window + self.ui = Gtk.Builder() + self.ui.add_from_file(os.path.join(datadir, 'ui', 'outputpanel.ui')) + self.ui.connect_signals(callbacks) + self['view'].connect('button-press-event', self.on_view_button_press_event) + + self.panel = self["output-panel"] + self.font_changed() + + buffer = self['view'].get_buffer() + + self.normal_tag = buffer.create_tag('normal') + + self.error_tag = buffer.create_tag('error') + self.error_tag.set_property('foreground', 'red') + + self.italic_tag = buffer.create_tag('italic') + self.italic_tag.set_property('style', Pango.Style.OBLIQUE) + + self.bold_tag = buffer.create_tag('bold') + self.bold_tag.set_property('weight', Pango.Weight.BOLD) + + self.invalid_link_tag = buffer.create_tag('invalid_link') + + self.link_tag = buffer.create_tag('link') + self.link_tag.set_property('underline', Pango.Underline.SINGLE) + + self.link_cursor = Gdk.Cursor.new(Gdk.CursorType.HAND2) + self.normal_cursor = Gdk.Cursor.new(Gdk.CursorType.XTERM) + + self.process = None + + self.links = [] + + self.link_parser = linkparsing.LinkParser() + self.file_lookup = filelookup.FileLookup(window) + + def get_profile_settings(self): + #FIXME return either the gnome-terminal settings or the gedit one + return Gio.Settings.new("org.gnome.gedit.plugins.externaltools") + + def font_changed(self, settings=None, key=None): + if self.profile_settings.get_boolean("use-system-font"): + font = self.system_settings.get_string("monospace-font-name") + else: + font = self.profile_settings.get_string("font") + + font_desc = Pango.font_description_from_string(font) + + self["view"].override_font(font_desc) + + def set_process(self, process): + self.process = process + + def __getitem__(self, key): + # Convenience function to get an object from its name + return self.ui.get_object(key) + + def on_stop_clicked(self, widget, *args): + if self.process is not None: + self.write("\n" + _('Stopped.') + "\n", + self.italic_tag) + self.process.stop(-1) + + def scroll_to_end(self): + iter = self['view'].get_buffer().get_end_iter() + self['view'].scroll_to_iter(iter, 0.0, False, 0.5, 0.5) + return False # don't requeue this handler + + def clear(self): + self['view'].get_buffer().set_text("") + self.links = [] + + def visible(self): + panel = self.window.get_bottom_panel() + return panel.props.visible and panel.props.visible_child == self.panel + + def write(self, text, tag=None): + buffer = self['view'].get_buffer() + + end_iter = buffer.get_end_iter() + insert = buffer.create_mark(None, end_iter, True) + + if tag is None: + buffer.insert(end_iter, text) + else: + buffer.insert_with_tags(end_iter, text, tag) + + # find all links and apply the appropriate tag for them + links = self.link_parser.parse(text) + for lnk in links: + insert_iter = buffer.get_iter_at_mark(insert) + lnk.start = insert_iter.get_offset() + lnk.start + lnk.end = insert_iter.get_offset() + lnk.end + + start_iter = buffer.get_iter_at_offset(lnk.start) + end_iter = buffer.get_iter_at_offset(lnk.end) + + tag = None + + # if the link points to an existing file then it is a valid link + if self.file_lookup.lookup(lnk.path) is not None: + self.links.append(lnk) + tag = self.link_tag + else: + tag = self.invalid_link_tag + + buffer.apply_tag(tag, start_iter, end_iter) + + buffer.delete_mark(insert) + GLib.idle_add(self.scroll_to_end) + + def show(self): + panel = self.window.get_bottom_panel() + panel.props.visible_child = self.panel + panel.show() + + def update_cursor_style(self, view, x, y): + if self.get_link_at_location(view, x, y) is not None: + cursor = self.link_cursor + else: + cursor = self.normal_cursor + + view.get_window(Gtk.TextWindowType.TEXT).set_cursor(cursor) + + def on_view_motion_notify_event(self, view, event): + if event.window == view.get_window(Gtk.TextWindowType.TEXT): + self.update_cursor_style(view, int(event.x), int(event.y)) + + return False + + def on_view_visibility_notify_event(self, view, event): + if event.window == view.get_window(Gtk.TextWindowType.TEXT): + win, x, y, flags = event.window.get_pointer() + self.update_cursor_style(view, x, y) + + return False + + def idle_grab_focus(self): + self.window.get_active_view().grab_focus() + return False + + def get_link_at_location(self, view, x, y): + """ + Get the link under a specified x,y coordinate. If no link exists then + None is returned. + """ + + # get the offset within the buffer from the x,y coordinates + buff_x, buff_y = view.window_to_buffer_coords(Gtk.TextWindowType.TEXT, x, y) + (over_text, iter_at_xy) = view.get_iter_at_location(buff_x, buff_y) + if not over_text: + return None + offset = iter_at_xy.get_offset() + + # find the first link that contains the offset + for lnk in self.links: + if offset >= lnk.start and offset <= lnk.end: + return lnk + + # no link was found at x,y + return None + + def on_view_button_press_event(self, view, event): + if event.button != 1 or event.type != Gdk.EventType.BUTTON_PRESS or \ + event.window != view.get_window(Gtk.TextWindowType.TEXT): + return False + + link = self.get_link_at_location(view, int(event.x), int(event.y)) + if link is None: + return False + + gfile = self.file_lookup.lookup(link.path) + + if gfile: + Gedit.commands_load_location(self.window, gfile, None, link.line_nr, link.col_nr) + GLib.idle_add(self.idle_grab_focus) + +# ex:ts=4:et: diff --git a/plugins/externaltools/tools/outputpanel.ui b/plugins/externaltools/tools/outputpanel.ui new file mode 100644 index 0000000..4c163c2 --- /dev/null +++ b/plugins/externaltools/tools/outputpanel.ui @@ -0,0 +1,49 @@ + + + + + True + False + + + True + True + True + True + + + True + True + False + word + False + False + + + + + + + + + True + False + True + True + end + end + 2 + 2 + Stop Tool + + + + True + False + process-stop-symbolic + + + + + + diff --git a/plugins/externaltools/tools/tools.ui b/plugins/externaltools/tools/tools.ui new file mode 100644 index 0000000..a3f0ab1 --- /dev/null +++ b/plugins/externaltools/tools/tools.ui @@ -0,0 +1,548 @@ + + + + + + + + + + + + + + + Always available + always + + + All documents + all + + + All documents except untitled ones + titled + + + Local files only + local + + + Remote files only + remote + + + Untitled documents only + untitled + + + + + + + + + + + + + Nothing + nothing + + + Current document + document + + + Current selection + selection + + + Current selection (default to document) + selection-document + + + Current line + line + + + Current word + word + + + + + + + + + + + + + Nothing + nothing + + + Display in bottom pane + output-panel + + + Create new document + new-document + + + Append to current document + append-document + + + Replace current document + replace-document + + + Replace current selection + replace-selection + + + Insert at cursor position + insert + + + + + + + + + + + + + Nothing + nothing + + + Current document + document + + + All documents + all + + + + + False + Manage External Tools + 800 + 600 + dialog + + + + + + True + Manage External Tools + True + + + + + True + True + True + 275 + True + + + + True + False + vertical + + + True + True + in + + + + True + True + False + True + + + + + + + + True + True + 0 + + + + + True + False + icons + + 1 + + + True + False + Add a new tool + Add Tool + True + list-add-symbolic + + + + False + True + + + + + True + False + Remove selected tool + Remove Tool + True + list-remove-symbolic + + + + False + True + + + + + True + False + Revert tool + Revert Tool + True + edit-undo-symbolic + + + + False + True + + + + + False + True + 1 + + + + + False + False + + + + + True + False + vertical + 6 + + + True + False + + + True + False + + + True + False + 6 + 6 + 6 + 6 + 6 + 6 + + + True + False + 0 + Shortcut _key: + True + accelerator + True + + + 0 + 0 + 1 + 1 + + + + + True + True + True + + + + + + + 1 + 0 + 1 + 1 + + + + + True + False + 0 + _Save: + True + save-files + + + 0 + 1 + 1 + 1 + + + + + True + False + model_save_files + + + + 0 + + + + + 1 + 1 + 1 + 1 + + + + + True + False + 0 + _Input: + True + input + + + 0 + 2 + 1 + 1 + + + + + True + False + model_input + + + + 0 + + + + + 1 + 2 + 1 + 1 + + + + + True + False + 0 + _Output: + True + output + + + 0 + 3 + 1 + 1 + + + + + True + False + model_output + + + + 0 + + + + + 1 + 3 + 1 + 1 + + + + + True + False + 0 + _Applicability: + True + applicability + + + 0 + 4 + 1 + 1 + + + + + True + False + 6 + + + True + False + model_applicability + + + + + 0 + + + + + False + True + 0 + + + + + False + True + True + False + + + + True + False + 0 + All Languages + end + 13 + + + + + True + True + 1 + + + + + 1 + 4 + 1 + 1 + + + + + 0 + 1 + 1 + 1 + + + + + True + True + True + True + in + + + + commands_buffer + True + + + + + 0 + 0 + 1 + 1 + + + + + False + True + 0 + + + + + True + True + 1 + + + + + True + False + + + + + + diff --git a/plugins/externaltools/tools/windowactivatable.py b/plugins/externaltools/tools/windowactivatable.py new file mode 100644 index 0000000..5949598 --- /dev/null +++ b/plugins/externaltools/tools/windowactivatable.py @@ -0,0 +1,141 @@ +# -*- coding: UTF-8 -*- +# Gedit External Tools plugin +# Copyright (C) 2005-2006 Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +__all__ = ('ExternalToolsPlugin', 'OutputPanel', 'Capture', 'UniqueById') + +from gi.repository import GLib, Gio, GObject, Gtk, Gedit +from .library import ToolLibrary +from .outputpanel import OutputPanel +from .capture import Capture +from .functions import * + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class ToolActions(object): + def __init__(self, library, window, panel): + super(ToolActions, self).__init__() + self._library = library + self._window = window + self._panel = panel + self._action_tools = {} + + self.update() + + def deactivate(self): + self.remove() + + def remove(self): + for name, tool in self._action_tools.items(): + self._window.remove_action(name) + self._action_tools = {} + + def _insert_directory(self, directory): + for tool in sorted(directory.tools, key=lambda x: x.name.lower()): + # FIXME: find a better way to share the action name + action_name = 'external-tool-%X-%X' % (id(tool), id(tool.name)) + self._action_tools[action_name] = tool + + action = Gio.SimpleAction(name=action_name) + action.connect('activate', capture_menu_action, self._window, self._panel, tool) + self._window.add_action(action) + + def update(self): + self.remove() + self._insert_directory(self._library.tree) + self.filter(self._window.get_active_document()) + + def filter_language(self, language, item): + if not item.languages: + return True + + if not language and 'plain' in item.languages: + return True + + if language and (language.get_id() in item.languages): + return True + else: + return False + + def filter(self, document): + if document is None: + titled = False + remote = False + language = None + else: + titled = document.get_file().get_location() is not None + remote = not document.get_file().is_local() + language = document.get_language() + + states = { + 'always': True, + 'all': document is not None, + 'local': titled and not remote, + 'remote': titled and remote, + 'titled': titled, + 'untitled': not titled, + } + + for name, tool in self._action_tools.items(): + action = self._window.lookup_action(name) + if action: + action.set_enabled(states[tool.applicability] and + self.filter_language(language, tool)) + + +class WindowActivatable(GObject.Object, Gedit.WindowActivatable): + __gtype_name__ = "ExternalToolsWindowActivatable" + + window = GObject.Property(type=Gedit.Window) + + def __init__(self): + GObject.Object.__init__(self) + self.actions = None + + def do_activate(self): + self.window.external_tools_window_activatable = self + + self._library = ToolLibrary() + + # Create output console + self._output_buffer = OutputPanel(self.plugin_info.get_data_dir(), self.window) + + self.actions = ToolActions(self._library, self.window, self._output_buffer) + + bottom = self.window.get_bottom_panel() + bottom.add_titled(self._output_buffer.panel, "GeditExternalToolsShellOutput", _("Tool Output")) + + def do_update_state(self): + if self.actions is not None: + self.actions.filter(self.window.get_active_document()) + + def do_deactivate(self): + self.actions.deactivate() + bottom = self.window.get_bottom_panel() + bottom.remove(self._output_buffer.panel) + self.window.external_tools_window_activatable = None + + def update_actions(self): + self.actions.update() + +# ex:ts=4:et: diff --git a/plugins/filebrowser/filebrowser.plugin.desktop.in b/plugins/filebrowser/filebrowser.plugin.desktop.in new file mode 100644 index 0000000..706168d --- /dev/null +++ b/plugins/filebrowser/filebrowser.plugin.desktop.in @@ -0,0 +1,12 @@ +[Plugin] +Loader=C +Module=filebrowser +IAge=3 +Name=File Browser Panel +Description=Easy file access from the side panel. +# TRANSLATORS: Do NOT translate or transliterate this text! +# This is an icon file name. +Icon=system-file-manager +Authors=Jesse van den Kieboom +Copyright=Copyright © 2006 Jesse van den Kieboom +Website=http://www.gedit.org diff --git a/plugins/filebrowser/gedit-file-bookmarks-store.c b/plugins/filebrowser/gedit-file-bookmarks-store.c new file mode 100644 index 0000000..df0968d --- /dev/null +++ b/plugins/filebrowser/gedit-file-bookmarks-store.c @@ -0,0 +1,920 @@ +/* + * gedit-file-bookmarks-store.c - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include +#include +#include +#include + +#include "gedit-file-bookmarks-store.h" +#include "gedit-file-browser-utils.h" + +struct _GeditFileBookmarksStorePrivate +{ + GVolumeMonitor *volume_monitor; + GFileMonitor *bookmarks_monitor; +}; + +static void remove_node (GtkTreeModel *model, + GtkTreeIter *iter); + +static void on_fs_changed (GVolumeMonitor *monitor, + GObject *object, + GeditFileBookmarksStore *model); + +static void on_bookmarks_file_changed (GFileMonitor *monitor, + GFile *file, + GFile *other_file, + GFileMonitorEvent event_type, + GeditFileBookmarksStore *model); +static gboolean find_with_flags (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer obj, + guint flags, + guint notflags); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditFileBookmarksStore, + gedit_file_bookmarks_store, + GTK_TYPE_TREE_STORE, + 0, + G_ADD_PRIVATE_DYNAMIC (GeditFileBookmarksStore)) + +static void +gedit_file_bookmarks_store_dispose (GObject *object) +{ + GeditFileBookmarksStore *obj = GEDIT_FILE_BOOKMARKS_STORE (object); + + if (obj->priv->volume_monitor != NULL) + { + g_signal_handlers_disconnect_by_func (obj->priv->volume_monitor, + on_fs_changed, + obj); + + g_object_unref (obj->priv->volume_monitor); + obj->priv->volume_monitor = NULL; + } + + g_clear_object (&obj->priv->bookmarks_monitor); + + G_OBJECT_CLASS (gedit_file_bookmarks_store_parent_class)->dispose (object); +} + +static void +gedit_file_bookmarks_store_class_init (GeditFileBookmarksStoreClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_file_bookmarks_store_dispose; +} + +static void +gedit_file_bookmarks_store_class_finalize (GeditFileBookmarksStoreClass *klass) +{ +} + +static void +gedit_file_bookmarks_store_init (GeditFileBookmarksStore *obj) +{ + obj->priv = gedit_file_bookmarks_store_get_instance_private (obj); +} + +/* Private */ +static void +add_node (GeditFileBookmarksStore *model, + GdkPixbuf *pixbuf, + const gchar *icon_name, + const gchar *name, + GObject *obj, + guint flags, + GtkTreeIter *iter) +{ + GtkTreeIter newiter; + + gtk_tree_store_append (GTK_TREE_STORE (model), &newiter, NULL); + + gtk_tree_store_set (GTK_TREE_STORE (model), &newiter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON, pixbuf, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON_NAME, icon_name, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_NAME, name, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_OBJECT, obj, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, flags, + -1); + + if (iter != NULL) + *iter = newiter; +} + +static gboolean +add_file (GeditFileBookmarksStore *model, + GFile *file, + const gchar *name, + guint flags, + GtkTreeIter *iter) +{ + gboolean native = g_file_is_native (file); + gchar *icon_name = NULL; + gchar *newname; + + if (native && !g_file_query_exists (file, NULL)) + return FALSE; + + if (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_HOME) + icon_name = g_strdup ("user-home-symbolic"); + else if (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_DESKTOP) + icon_name = g_strdup ("user-desktop-symbolic"); + else if (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_ROOT) + icon_name = g_strdup ("drive-harddisk-symbolic"); + else + { + /* getting the icon is a sync get_info call, so we just do it for local files */ + if (native) + icon_name = gedit_file_browser_utils_symbolic_icon_name_from_file (file); + else + icon_name = g_strdup ("folder-symbolic"); + } + + if (name == NULL) + newname = gedit_file_browser_utils_file_basename (file); + else + newname = g_strdup (name); + + add_node (model, NULL, icon_name, newname, G_OBJECT (file), flags, iter); + + g_free (icon_name); + g_free (newname); + + return TRUE; +} + +static void +check_mount_separator (GeditFileBookmarksStore *model, + guint flags, + gboolean added) +{ + GtkTreeIter iter; + gboolean found = find_with_flags (GTK_TREE_MODEL (model), &iter, NULL, + flags | GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR, + 0); + + if (added && !found) + { + /* Add the separator */ + add_node (model, NULL, NULL, NULL, NULL, + flags | GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR, + NULL); + } + else if (!added && found) + { + remove_node (GTK_TREE_MODEL (model), &iter); + } +} + +static void +init_special_directories (GeditFileBookmarksStore *model) +{ + gchar const *path = g_get_home_dir (); + GFile *file; + + if (path != NULL) + { + file = g_file_new_for_path (path); + add_file (model, + file, + _("Home"), + GEDIT_FILE_BOOKMARKS_STORE_IS_HOME | GEDIT_FILE_BOOKMARKS_STORE_IS_SPECIAL_DIR, + NULL); + g_object_unref (file); + } + +#if defined(G_OS_WIN32) || defined(OS_OSX) + path = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP); + if (path != NULL) + { + file = g_file_new_for_path (path); + add_file (model, + file, + NULL, + GEDIT_FILE_BOOKMARKS_STORE_IS_DESKTOP | GEDIT_FILE_BOOKMARKS_STORE_IS_SPECIAL_DIR, + NULL); + g_object_unref (file); + } + + path = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS); + if (path != NULL) + { + file = g_file_new_for_path (path); + add_file (model, + file, + NULL, + GEDIT_FILE_BOOKMARKS_STORE_IS_DOCUMENTS | GEDIT_FILE_BOOKMARKS_STORE_IS_SPECIAL_DIR, + NULL); + g_object_unref (file); + } +#endif + + file = g_file_new_for_uri ("file:///"); + add_file (model, file, _("File System"), GEDIT_FILE_BOOKMARKS_STORE_IS_ROOT, NULL); + g_object_unref (file); + + check_mount_separator (model, GEDIT_FILE_BOOKMARKS_STORE_IS_ROOT, TRUE); +} + +static void +get_fs_properties (gpointer fs, + gchar **name, + gchar **icon_name, + guint *flags) +{ + GIcon *icon = NULL; + + *flags = GEDIT_FILE_BOOKMARKS_STORE_IS_FS; + *name = NULL; + *icon_name = NULL; + + if (G_IS_DRIVE (fs)) + { + icon = g_drive_get_symbolic_icon (G_DRIVE (fs)); + *name = g_drive_get_name (G_DRIVE (fs)); + *icon_name = gedit_file_browser_utils_name_from_themed_icon (icon); + + *flags |= GEDIT_FILE_BOOKMARKS_STORE_IS_DRIVE; + } + else if (G_IS_VOLUME (fs)) + { + icon = g_volume_get_symbolic_icon (G_VOLUME (fs)); + *name = g_volume_get_name (G_VOLUME (fs)); + *icon_name = gedit_file_browser_utils_name_from_themed_icon (icon); + + *flags |= GEDIT_FILE_BOOKMARKS_STORE_IS_VOLUME; + } + else if (G_IS_MOUNT (fs)) + { + icon = g_mount_get_symbolic_icon (G_MOUNT (fs)); + *name = g_mount_get_name (G_MOUNT (fs)); + *icon_name = gedit_file_browser_utils_name_from_themed_icon (icon); + + *flags |= GEDIT_FILE_BOOKMARKS_STORE_IS_MOUNT; + } + + if (icon) + g_object_unref (icon); +} + +static void +add_fs (GeditFileBookmarksStore *model, + gpointer fs, + guint flags, + GtkTreeIter *iter) +{ + gchar *icon_name = NULL; + gchar *name = NULL; + guint fsflags; + + get_fs_properties (fs, &name, &icon_name, &fsflags); + add_node (model, NULL, icon_name, name, fs, flags | fsflags, iter); + + g_free (name); + g_free (icon_name); + check_mount_separator (model, GEDIT_FILE_BOOKMARKS_STORE_IS_FS, TRUE); +} + +static void +process_volume_cb (GVolume *volume, + GeditFileBookmarksStore *model) +{ + GMount *mount = g_volume_get_mount (volume); + guint flags = GEDIT_FILE_BOOKMARKS_STORE_NONE; + + /* CHECK: should we use the LOCAL/REMOTE thing still? */ + if (mount) + { + /* Show mounted volume */ + add_fs (model, mount, flags, NULL); + g_object_unref (mount); + } + else if (g_volume_can_mount (volume)) + { + /* We also show the unmounted volume here so users can + mount it if they want to access it */ + add_fs (model, volume, flags, NULL); + } +} + +static void +process_drive_novolumes (GeditFileBookmarksStore *model, + GDrive *drive) +{ + if (g_drive_is_media_removable (drive) && + !g_drive_is_media_check_automatic (drive) && + g_drive_can_poll_for_media (drive)) + { + /* This can be the case for floppy drives or other + drives where media detection fails. We show the + drive and poll for media when the user activates + it */ + add_fs (model, drive, GEDIT_FILE_BOOKMARKS_STORE_NONE, NULL); + } +} + +static void +process_drive_cb (GDrive *drive, + GeditFileBookmarksStore *model) +{ + GList *volumes = g_drive_get_volumes (drive); + + if (volumes) + { + /* Add all volumes for the drive */ + g_list_foreach (volumes, (GFunc)process_volume_cb, model); + g_list_free (volumes); + } + else + { + process_drive_novolumes (model, drive); + } +} + +static void +init_drives (GeditFileBookmarksStore *model) +{ + GList *drives = g_volume_monitor_get_connected_drives (model->priv->volume_monitor); + + g_list_foreach (drives, (GFunc)process_drive_cb, model); + g_list_free_full (drives, g_object_unref); +} + +static void +process_volume_nodrive_cb (GVolume *volume, + GeditFileBookmarksStore *model) +{ + GDrive *drive = g_volume_get_drive (volume); + + if (drive) + { + g_object_unref (drive); + return; + } + + process_volume_cb (volume, model); +} + +static void +init_volumes (GeditFileBookmarksStore *model) +{ + GList *volumes = g_volume_monitor_get_volumes (model->priv->volume_monitor); + + g_list_foreach (volumes, (GFunc)process_volume_nodrive_cb, model); + g_list_free_full (volumes, g_object_unref); +} + +static void +process_mount_novolume_cb (GMount *mount, + GeditFileBookmarksStore *model) +{ + GVolume *volume = g_mount_get_volume (mount); + + if (volume) + { + g_object_unref (volume); + } + else if (!g_mount_is_shadowed (mount)) + { + /* Add the mount */ + add_fs (model, mount, GEDIT_FILE_BOOKMARKS_STORE_NONE, NULL); + } +} + +static void +init_mounts (GeditFileBookmarksStore *model) +{ + GList *mounts = g_volume_monitor_get_mounts (model->priv->volume_monitor); + + g_list_foreach (mounts, (GFunc)process_mount_novolume_cb, model); + g_list_free_full (mounts, g_object_unref); +} + +static void +init_fs (GeditFileBookmarksStore *model) +{ + if (model->priv->volume_monitor == NULL) + { + const gchar **ptr; + const gchar *signals[] = { + "drive-connected", "drive-changed", "drive-disconnected", + "volume-added", "volume-removed", "volume-changed", + "mount-added", "mount-removed", "mount-changed", + NULL + }; + + model->priv->volume_monitor = g_volume_monitor_get (); + + /* Connect signals */ + for (ptr = signals; *ptr != NULL; ++ptr) + { + g_signal_connect (model->priv->volume_monitor, + *ptr, + G_CALLBACK (on_fs_changed), model); + } + } + + /* First go through all the connected drives */ + init_drives (model); + + /* Then add all volumes, not associated with a drive */ + init_volumes (model); + + /* Then finally add all mounts that have no volume */ + init_mounts (model); +} + +static gboolean +add_bookmark (GeditFileBookmarksStore *model, + gchar const *name, + gchar const *uri) +{ + GFile *file = g_file_new_for_uri (uri); + guint flags = GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK; + GtkTreeIter iter; + gboolean ret; + + if (g_file_is_native (file)) + flags |= GEDIT_FILE_BOOKMARKS_STORE_IS_LOCAL_BOOKMARK; + else + flags |= GEDIT_FILE_BOOKMARKS_STORE_IS_REMOTE_BOOKMARK; + + ret = add_file (model, file, name, flags, &iter); + + g_object_unref (file); + return ret; +} + +static gchar * +get_bookmarks_file (void) +{ + return g_build_filename (g_get_user_config_dir (), "gtk-3.0", "bookmarks", NULL); +} + +static gchar * +get_legacy_bookmarks_file (void) +{ + return g_build_filename (g_get_home_dir (), ".gtk-bookmarks", NULL); +} + +static gboolean +parse_bookmarks_file (GeditFileBookmarksStore *model, + const gchar *bookmarks, + gboolean *added) +{ + GError *error = NULL; + gchar *contents; + gchar **lines; + gchar **line; + + if (!g_file_get_contents (bookmarks, &contents, NULL, &error)) + { + /* The bookmarks file doesn't exist (which is perfectly fine) */ + g_error_free (error); + + return FALSE; + } + + lines = g_strsplit (contents, "\n", 0); + + for (line = lines; *line; ++line) + { + if (**line) + { + GFile *location; + + gchar *pos; + gchar *name; + + /* CHECK: is this really utf8? */ + pos = g_utf8_strchr (*line, -1, ' '); + + if (pos != NULL) + { + *pos = '\0'; + name = pos + 1; + } + else + { + name = NULL; + } + + /* the bookmarks file should contain valid + * URIs, but paranoia is good */ + location = g_file_new_for_uri (*line); + if (gedit_utils_is_valid_location (location)) + { + *added |= add_bookmark (model, name, *line); + } + g_object_unref (location); + } + } + + g_strfreev (lines); + g_free (contents); + + /* Add a watch */ + if (model->priv->bookmarks_monitor == NULL) + { + GFile *file = g_file_new_for_path (bookmarks); + + model->priv->bookmarks_monitor = g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, NULL); + g_object_unref (file); + + g_signal_connect (model->priv->bookmarks_monitor, + "changed", + G_CALLBACK (on_bookmarks_file_changed), + model); + } + + return TRUE; +} + +static void +init_bookmarks (GeditFileBookmarksStore *model) +{ + gchar *bookmarks = get_bookmarks_file (); + gboolean added = FALSE; + + if (!parse_bookmarks_file (model, bookmarks, &added)) + { + g_free (bookmarks); + + /* try the old location (gtk <= 3.4) */ + bookmarks = get_legacy_bookmarks_file (); + parse_bookmarks_file (model, bookmarks, &added); + } + + if (added) + { + /* Bookmarks separator */ + add_node (model, NULL, NULL, NULL, NULL, + GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK | GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR, + NULL); + } + + g_free (bookmarks); +} + +static gint flags_order[] = { + GEDIT_FILE_BOOKMARKS_STORE_IS_HOME, + GEDIT_FILE_BOOKMARKS_STORE_IS_DESKTOP, + GEDIT_FILE_BOOKMARKS_STORE_IS_SPECIAL_DIR, + GEDIT_FILE_BOOKMARKS_STORE_IS_ROOT, + GEDIT_FILE_BOOKMARKS_STORE_IS_FS, + GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK, + -1 +}; + +static gint +utf8_casecmp (gchar const *s1, const gchar *s2) +{ + gchar *n1; + gchar *n2; + gint result; + + n1 = g_utf8_casefold (s1, -1); + n2 = g_utf8_casefold (s2, -1); + + result = g_utf8_collate (n1, n2); + + g_free (n1); + g_free (n2); + + return result; +} + +static gint +bookmarks_compare_names (GtkTreeModel *model, + GtkTreeIter *a, + GtkTreeIter *b) +{ + gchar *n1; + gchar *n2; + gint result; + guint f1; + guint f2; + + gtk_tree_model_get (model, a, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_NAME, &n1, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &f1, + -1); + gtk_tree_model_get (model, b, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_NAME, &n2, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &f2, + -1); + + /* do not sort actual bookmarks to keep same order as in nautilus */ + if ((f1 & GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK) && + (f2 & GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK)) + { + result = 0; + } + else if (n1 == NULL && n2 == NULL) + { + result = 0; + } + else if (n1 == NULL) + { + result = -1; + } + else if (n2 == NULL) + { + result = 1; + } + else + { + result = utf8_casecmp (n1, n2); + } + + g_free (n1); + g_free (n2); + + return result; +} + +static gint +bookmarks_compare_flags (GtkTreeModel *model, + GtkTreeIter *a, + GtkTreeIter *b) +{ + guint sep = GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR; + guint f1; + guint f2; + gint *flags; + + gtk_tree_model_get (model, a, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &f1, + -1); + gtk_tree_model_get (model, b, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &f2, + -1); + + for (flags = flags_order; *flags != -1; ++flags) + { + if ((f1 & *flags) != (f2 & *flags)) + { + if (f1 & *flags) + return -1; + else + return 1; + } + else if ((f1 & *flags) && (f1 & sep) != (f2 & sep)) + { + if (f1 & sep) + return -1; + else + return 1; + } + } + + return 0; +} + +static gint +bookmarks_compare_func (GtkTreeModel *model, + GtkTreeIter *a, + GtkTreeIter *b, + gpointer user_data) +{ + gint result = bookmarks_compare_flags (model, a, b); + + if (result == 0) + result = bookmarks_compare_names (model, a, b); + + return result; +} + +static gboolean +find_with_flags (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer obj, + guint flags, + guint notflags) +{ + GtkTreeIter child; + guint childflags = 0; + GObject *childobj; + gboolean fequal; + + if (!gtk_tree_model_get_iter_first (model, &child)) + return FALSE; + + do + { + gtk_tree_model_get (model, + &child, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_OBJECT, &childobj, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &childflags, + -1); + + fequal = (obj == childobj); + + if (childobj) + g_object_unref (childobj); + + if ((obj == NULL || fequal) && + (childflags & flags) == flags && + !(childflags & notflags)) + { + *iter = child; + return TRUE; + } + } + while (gtk_tree_model_iter_next (model, &child)); + + return FALSE; +} + +static void +remove_node (GtkTreeModel *model, + GtkTreeIter *iter) +{ + guint flags; + + gtk_tree_model_get (model, + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!(flags & GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR) && + flags & GEDIT_FILE_BOOKMARKS_STORE_IS_FS) + { + check_mount_separator (GEDIT_FILE_BOOKMARKS_STORE (model), + flags & GEDIT_FILE_BOOKMARKS_STORE_IS_FS, + FALSE); + } + + gtk_tree_store_remove (GTK_TREE_STORE (model), iter); +} + +static void +remove_bookmarks (GeditFileBookmarksStore *model) +{ + GtkTreeIter iter; + + while (find_with_flags (GTK_TREE_MODEL (model), &iter, NULL, + GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK, + 0)) + { + remove_node (GTK_TREE_MODEL (model), &iter); + } +} + +static void +initialize_fill (GeditFileBookmarksStore *model) +{ + init_special_directories (model); + init_fs (model); + init_bookmarks (model); +} + +/* Public */ +GeditFileBookmarksStore * +gedit_file_bookmarks_store_new (void) +{ + GeditFileBookmarksStore *model; + GType column_types[] = { + GDK_TYPE_PIXBUF, + G_TYPE_STRING, + G_TYPE_STRING, + G_TYPE_OBJECT, + G_TYPE_UINT + }; + + model = g_object_new (GEDIT_TYPE_FILE_BOOKMARKS_STORE, NULL); + gtk_tree_store_set_column_types (GTK_TREE_STORE (model), + GEDIT_FILE_BOOKMARKS_STORE_N_COLUMNS, + column_types); + + gtk_tree_sortable_set_default_sort_func (GTK_TREE_SORTABLE (model), + bookmarks_compare_func, + NULL, NULL); + gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model), + GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, + GTK_SORT_ASCENDING); + + initialize_fill (model); + + return model; +} + +GFile * +gedit_file_bookmarks_store_get_location (GeditFileBookmarksStore *model, + GtkTreeIter *iter) +{ + GObject *obj; + GFile *file = NULL; + guint flags; + GFile * ret = NULL; + gboolean isfs; + + g_return_val_if_fail (GEDIT_IS_FILE_BOOKMARKS_STORE (model), NULL); + g_return_val_if_fail (iter != NULL, NULL); + + gtk_tree_model_get (GTK_TREE_MODEL (model), + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &flags, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_OBJECT, &obj, + -1); + + if (obj == NULL) + return NULL; + + isfs = (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_FS); + + if (isfs && (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_MOUNT)) + file = g_mount_get_root (G_MOUNT (obj)); + else if (!isfs) + file = (GFile *)g_object_ref (obj); + + g_object_unref (obj); + + if (file) + { + ret = g_file_dup (file); + g_object_unref (file); + } + + return ret; +} + +void +gedit_file_bookmarks_store_refresh (GeditFileBookmarksStore *model) +{ + gtk_tree_store_clear (GTK_TREE_STORE (model)); + initialize_fill (model); +} + +static void +on_fs_changed (GVolumeMonitor *monitor, + GObject *object, + GeditFileBookmarksStore *model) +{ + GtkTreeModel *tree_model = GTK_TREE_MODEL (model); + guint flags = GEDIT_FILE_BOOKMARKS_STORE_IS_FS; + guint noflags = GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR; + GtkTreeIter iter; + + /* clear all fs items */ + while (find_with_flags (tree_model, &iter, NULL, flags, noflags)) + remove_node (tree_model, &iter); + + /* then reinitialize */ + init_fs (model); +} + +static void +on_bookmarks_file_changed (GFileMonitor *monitor, + GFile *file, + GFile *other_file, + GFileMonitorEvent event_type, + GeditFileBookmarksStore *model) +{ + switch (event_type) + { + case G_FILE_MONITOR_EVENT_CHANGED: + case G_FILE_MONITOR_EVENT_CREATED: + /* Re-initialize bookmarks */ + remove_bookmarks (model); + init_bookmarks (model); + break; + /* FIXME: shouldn't we also monitor the directory? */ + case G_FILE_MONITOR_EVENT_DELETED: + /* Remove bookmarks */ + remove_bookmarks (model); + g_object_unref (monitor); + model->priv->bookmarks_monitor = NULL; + break; + default: + break; + } +} + +void +_gedit_file_bookmarks_store_register_type (GTypeModule *type_module) +{ + gedit_file_bookmarks_store_register_type (type_module); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-bookmarks-store.h b/plugins/filebrowser/gedit-file-bookmarks-store.h new file mode 100644 index 0000000..19de53b --- /dev/null +++ b/plugins/filebrowser/gedit-file-bookmarks-store.h @@ -0,0 +1,91 @@ +/* + * gedit-file-bookmarks-store.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BOOKMARKS_STORE_H +#define GEDIT_FILE_BOOKMARKS_STORE_H + +#include + +G_BEGIN_DECLS +#define GEDIT_TYPE_FILE_BOOKMARKS_STORE (gedit_file_bookmarks_store_get_type ()) +#define GEDIT_FILE_BOOKMARKS_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BOOKMARKS_STORE, GeditFileBookmarksStore)) +#define GEDIT_FILE_BOOKMARKS_STORE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BOOKMARKS_STORE, GeditFileBookmarksStore const)) +#define GEDIT_FILE_BOOKMARKS_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_BOOKMARKS_STORE, GeditFileBookmarksStoreClass)) +#define GEDIT_IS_FILE_BOOKMARKS_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_BOOKMARKS_STORE)) +#define GEDIT_IS_FILE_BOOKMARKS_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_BOOKMARKS_STORE)) +#define GEDIT_FILE_BOOKMARKS_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_BOOKMARKS_STORE, GeditFileBookmarksStoreClass)) + +typedef struct _GeditFileBookmarksStore GeditFileBookmarksStore; +typedef struct _GeditFileBookmarksStoreClass GeditFileBookmarksStoreClass; +typedef struct _GeditFileBookmarksStorePrivate GeditFileBookmarksStorePrivate; + +enum +{ + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON = 0, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON_NAME, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_NAME, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_OBJECT, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, + GEDIT_FILE_BOOKMARKS_STORE_N_COLUMNS +}; + +enum +{ + GEDIT_FILE_BOOKMARKS_STORE_NONE = 0, + GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR = 1 << 0, /* Separator item */ + GEDIT_FILE_BOOKMARKS_STORE_IS_SPECIAL_DIR = 1 << 1, /* Special user dir */ + GEDIT_FILE_BOOKMARKS_STORE_IS_HOME = 1 << 2, /* The special Home user directory */ + GEDIT_FILE_BOOKMARKS_STORE_IS_DESKTOP = 1 << 3, /* The special Desktop user directory */ + GEDIT_FILE_BOOKMARKS_STORE_IS_DOCUMENTS = 1 << 4, /* The special Documents user directory */ + GEDIT_FILE_BOOKMARKS_STORE_IS_FS = 1 << 5, /* A mount object */ + GEDIT_FILE_BOOKMARKS_STORE_IS_MOUNT = 1 << 6, /* A mount object */ + GEDIT_FILE_BOOKMARKS_STORE_IS_VOLUME = 1 << 7, /* A volume object */ + GEDIT_FILE_BOOKMARKS_STORE_IS_DRIVE = 1 << 8, /* A drive object */ + GEDIT_FILE_BOOKMARKS_STORE_IS_ROOT = 1 << 9, /* The root file system (file:///) */ + GEDIT_FILE_BOOKMARKS_STORE_IS_BOOKMARK = 1 << 10, /* A gtk bookmark */ + GEDIT_FILE_BOOKMARKS_STORE_IS_REMOTE_BOOKMARK = 1 << 11, /* A remote gtk bookmark */ + GEDIT_FILE_BOOKMARKS_STORE_IS_LOCAL_BOOKMARK = 1 << 12 /* A local gtk bookmark */ +}; + +struct _GeditFileBookmarksStore +{ + GtkTreeStore parent; + + GeditFileBookmarksStorePrivate *priv; +}; + +struct _GeditFileBookmarksStoreClass +{ + GtkTreeStoreClass parent_class; +}; + +GType gedit_file_bookmarks_store_get_type (void) G_GNUC_CONST; + +GeditFileBookmarksStore *gedit_file_bookmarks_store_new (void); +GFile *gedit_file_bookmarks_store_get_location (GeditFileBookmarksStore *model, + GtkTreeIter *iter); +void gedit_file_bookmarks_store_refresh (GeditFileBookmarksStore *model); + +void _gedit_file_bookmarks_store_register_type (GTypeModule *type_module); + +G_END_DECLS + +#endif /* GEDIT_FILE_BOOKMARKS_STORE_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-enum-register.c.template b/plugins/filebrowser/gedit-file-browser-enum-register.c.template new file mode 100644 index 0000000..c97ffff --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-enum-register.c.template @@ -0,0 +1,20 @@ +/*** BEGIN file-header ***/ +void +gedit_file_browser_enum_and_flag_register_type (GTypeModule * module) +{ +/*** END file-header ***/ + +/*** BEGIN file-production ***/ + /* Enumerations from "@basename@" */ + +/*** END file-production ***/ + +/*** BEGIN enumeration-production ***/ + register_@enum_name@ (module); + +/*** END enumeration-production ***/ + +/*** BEGIN file-tail ***/ +} + +/*** END file-tail ***/ diff --git a/plugins/filebrowser/gedit-file-browser-enum-types-stage1.c.template b/plugins/filebrowser/gedit-file-browser-enum-types-stage1.c.template new file mode 100644 index 0000000..fd58866 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-enum-types-stage1.c.template @@ -0,0 +1,45 @@ +/*** BEGIN file-header ***/ +#include "gedit-file-browser-enum-types.h" + +/*** END file-header ***/ + +/*** BEGIN file-production ***/ +/* enumerations from "@filename@" */ +#include "@basename@" + +/*** END file-production ***/ + +/*** BEGIN value-header ***/ +static GType @enum_name@_type = 0; + +static GType +register_@enum_name@ (GTypeModule *module) +{ + static const G@Type@Value values[] = { +/*** END value-header ***/ + +/*** BEGIN value-production ***/ + { @VALUENAME@, + "@VALUENAME@", + "@valuenick@" }, +/*** END value-production ***/ + +/*** BEGIN value-tail ***/ + { 0, NULL, NULL } + }; + + @enum_name@_type = + g_type_module_register_@type@ (module, + "@EnumName@", + values); + + return @enum_name@_type; +} + +GType +@enum_name@_get_type (void) +{ + return @enum_name@_type; +} + +/*** END value-tail ***/ diff --git a/plugins/filebrowser/gedit-file-browser-enum-types.h.template b/plugins/filebrowser/gedit-file-browser-enum-types.h.template new file mode 100644 index 0000000..c13167a --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-enum-types.h.template @@ -0,0 +1,28 @@ +/*** BEGIN file-header ***/ +#ifndef __GEDIT_FILE_BROWSER_ENUM_TYPES_H__ +#define __GEDIT_FILE_BROWSER_ENUM_TYPES_H__ + +#include + +G_BEGIN_DECLS + +/*** END file-header ***/ + +/*** BEGIN file-production ***/ +/* Enumerations from "@basename@" */ + +/*** END file-production ***/ + +/*** BEGIN enumeration-production ***/ +#define GEDIT_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) +GType @enum_name@_get_type (void) G_GNUC_CONST; + +/*** END enumeration-production ***/ + +/*** BEGIN file-tail ***/ +void gedit_file_browser_enum_and_flag_register_type (GTypeModule * module); + +G_END_DECLS + +#endif /* __GEDIT_FILE_BROWSER_ENUM_TYPES_H__ */ +/*** END file-tail ***/ diff --git a/plugins/filebrowser/gedit-file-browser-error.h b/plugins/filebrowser/gedit-file-browser-error.h new file mode 100644 index 0000000..89e6ae3 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-error.h @@ -0,0 +1,41 @@ +/* + * gedit-file-browser-error.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_ERROR_H +#define GEDIT_FILE_BROWSER_ERROR_H + +G_BEGIN_DECLS + +typedef enum { + GEDIT_FILE_BROWSER_ERROR_NONE, + GEDIT_FILE_BROWSER_ERROR_RENAME, + GEDIT_FILE_BROWSER_ERROR_DELETE, + GEDIT_FILE_BROWSER_ERROR_NEW_FILE, + GEDIT_FILE_BROWSER_ERROR_NEW_DIRECTORY, + GEDIT_FILE_BROWSER_ERROR_OPEN_DIRECTORY, + GEDIT_FILE_BROWSER_ERROR_SET_ROOT, + GEDIT_FILE_BROWSER_ERROR_LOAD_DIRECTORY, + GEDIT_FILE_BROWSER_ERROR_NUM +} GeditFileBrowserError; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_ERROR_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-messages.c b/plugins/filebrowser/gedit-file-browser-messages.c new file mode 100644 index 0000000..7f25424 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-messages.c @@ -0,0 +1,1074 @@ +/* + * gedit-file-browser-messages.c + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "gedit-file-browser-messages.h" +#include "gedit-file-browser-store.h" +#include "messages/messages.h" + +#include + +#define MESSAGE_OBJECT_PATH "/plugins/filebrowser" +#define WINDOW_DATA_KEY "GeditFileBrowserMessagesWindowData" + +#define BUS_CONNECT(bus, name, data) gedit_message_bus_connect(bus, MESSAGE_OBJECT_PATH, #name, (GeditMessageCallback) message_##name##_cb, data, NULL) +#define BUS_DISCONNECT(bus, name, data) gedit_message_bus_disconnect_by_func(bus, MESSAGE_OBJECT_PATH, #name, (GeditMessageCallback) message_##name##_cb, data) + +typedef struct +{ + GeditWindow *window; + GeditMessage *message; +} MessageCacheData; + +typedef struct +{ + guint row_inserted_id; + guint before_row_deleted_id; + guint root_changed_id; + guint begin_loading_id; + guint end_loading_id; + + GeditMessageBus *bus; + GeditFileBrowserWidget *widget; + GHashTable *row_tracking; + + GHashTable *filters; +} WindowData; + +typedef struct +{ + gulong id; + + GeditWindow *window; + GeditMessage *message; +} FilterData; + +static WindowData * +window_data_new (GeditWindow *window, + GeditFileBrowserWidget *widget) +{ + WindowData *data = g_slice_new (WindowData); + + data->bus = gedit_window_get_message_bus (window); + data->widget = widget; + data->row_tracking = g_hash_table_new_full (g_str_hash, + g_str_equal, + (GDestroyNotify)g_free, + (GDestroyNotify)gtk_tree_row_reference_free); + + data->filters = g_hash_table_new_full (g_str_hash, + g_str_equal, + (GDestroyNotify)g_free, + NULL); + + g_object_set_data (G_OBJECT (window), WINDOW_DATA_KEY, data); + + return data; +} + +static WindowData * +get_window_data (GeditWindow *window) +{ + return (WindowData *) (g_object_get_data (G_OBJECT (window), WINDOW_DATA_KEY)); +} + +static void +window_data_free (GeditWindow *window) +{ + WindowData *data = get_window_data (window); + + g_hash_table_destroy (data->row_tracking); + g_hash_table_destroy (data->filters); + + g_slice_free (WindowData, data); + + g_object_set_data (G_OBJECT (window), WINDOW_DATA_KEY, NULL); +} + +static FilterData * +filter_data_new (GeditWindow *window, + GeditMessage *message) +{ + FilterData *data = g_slice_new (FilterData); + WindowData *wdata; + + data->window = window; + data->id = 0; + data->message = message; + + wdata = get_window_data (window); + + g_hash_table_insert (wdata->filters, + gedit_message_type_identifier (gedit_message_get_object_path (message), + gedit_message_get_method (message)), + data); + + return data; +} + +static void +filter_data_free (FilterData *data) +{ + WindowData *wdata = get_window_data (data->window); + gchar *identifier; + + identifier = gedit_message_type_identifier (gedit_message_get_object_path (data->message), + gedit_message_get_method (data->message)); + + g_hash_table_remove (wdata->filters, identifier); + g_free (identifier); + + g_object_unref (data->message); + g_slice_free (FilterData, data); +} + +static GtkTreePath * +track_row_lookup (WindowData *data, + const gchar *id) +{ + GtkTreeRowReference *ref; + + ref = (GtkTreeRowReference *)g_hash_table_lookup (data->row_tracking, id); + + if (!ref) + return NULL; + + return gtk_tree_row_reference_get_path (ref); +} + +static void +message_cache_data_free (MessageCacheData *data) +{ + g_object_unref (data->message); + g_slice_free (MessageCacheData, data); +} + +static MessageCacheData * +message_cache_data_new (GeditWindow *window, + GeditMessage *message) +{ + MessageCacheData *data = g_slice_new (MessageCacheData); + + data->window = window; + data->message = message; + + return data; +} + +static void +message_get_root_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + GeditFileBrowserStore *store; + GFile *location; + + store = gedit_file_browser_widget_get_browser_store (data->widget); + location = gedit_file_browser_store_get_virtual_root (store); + + if (location) + { + g_object_set (message, "location", location, NULL); + g_object_unref (location); + } +} + +static void +message_set_root_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + GFile *root; + GFile *virtual = NULL; + + g_object_get (message, "location", &root, NULL); + + if (!root) + { + return; + } + + g_object_get (message, "virtual", &virtual, NULL); + + if (virtual) + { + gedit_file_browser_widget_set_root_and_virtual_root (data->widget, root, virtual); + } + else + { + gedit_file_browser_widget_set_root (data->widget, root, TRUE); + } +} + +static void +message_set_emblem_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gchar *id = NULL; + gchar *emblem = NULL; + GtkTreePath *path; + GeditFileBrowserStore *store; + + g_object_get (message, "id", &id, "emblem", &emblem, NULL); + + if (!id) + { + g_free (id); + g_free (emblem); + + return; + } + + path = track_row_lookup (data, id); + + if (path != NULL) + { + GtkTreeIter iter; + GValue value = G_VALUE_INIT; + GdkPixbuf *pixbuf = NULL; + + if (emblem != NULL) + { + pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), + emblem, + 10, + GTK_ICON_LOOKUP_FORCE_SIZE, + NULL); + } + + store = gedit_file_browser_widget_get_browser_store (data->widget); + + if (gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path)) + { + g_value_init (&value, GDK_TYPE_PIXBUF); + g_value_set_object (&value, pixbuf); + + gedit_file_browser_store_set_value (store, + &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_EMBLEM, + &value); + + g_value_unset (&value); + } + + if (pixbuf) + { + g_object_unref (pixbuf); + } + } + + g_free (id); + g_free (emblem); +} + +static void +message_set_markup_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gchar *id = NULL; + gchar *markup = NULL; + GtkTreePath *path; + GeditFileBrowserStore *store; + + g_object_get (message, "id", &id, "markup", &markup, NULL); + + if (!id) + { + g_free (id); + g_free (markup); + + return; + } + + path = track_row_lookup (data, id); + + if (path != NULL) + { + GtkTreeIter iter; + GValue value = G_VALUE_INIT; + + store = gedit_file_browser_widget_get_browser_store (data->widget); + + if (gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path)) + { + if (markup == NULL) + { + gchar *name; + + gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_NAME, &name, + -1); + markup = g_markup_escape_text (name, -1); + + g_free (name); + } + + g_value_init (&value, G_TYPE_STRING); + g_value_set_string (&value, markup); + + gedit_file_browser_store_set_value (store, + &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP, + &value); + + g_value_unset (&value); + } + + gtk_tree_path_free (path); + } + + g_free (id); + g_free (markup); +} + +static gchar * +item_id (const gchar *path, + GFile *location) +{ + gchar *uri; + gchar *id; + + uri = g_file_get_uri (location); + id = g_strconcat (path, "::", uri, NULL); + g_free (uri); + + return id; +} + +static gchar * +track_row (WindowData *data, + GeditFileBrowserStore *store, + GtkTreePath *path, + GFile *location) +{ + GtkTreeRowReference *ref; + gchar *id; + gchar *pathstr; + + pathstr = gtk_tree_path_to_string (path); + id = item_id (pathstr, location); + + ref = gtk_tree_row_reference_new (GTK_TREE_MODEL (store), path); + g_hash_table_insert (data->row_tracking, g_strdup (id), ref); + + g_free (pathstr); + + return id; +} + +static void +set_item_message (WindowData *data, + GtkTreeIter *iter, + GtkTreePath *path, + GeditMessage *message) +{ + GeditFileBrowserStore *store; + gchar *name; + GFile *location; + guint flags = 0; + + store = gedit_file_browser_widget_get_browser_store (data->widget); + gtk_tree_model_get (GTK_TREE_MODEL (store), iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_NAME, &name, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (location) + { + gchar *track_id; + + if (path && gtk_tree_path_get_depth (path) != 0) + { + track_id = track_row (data, store, path, location); + } + else + { + track_id = NULL; + } + + g_object_set (message, + "id", track_id, + "location", location, + NULL); + + if (gedit_message_has (message, "name")) + { + g_object_set (message, + "name", name, + NULL); + } + + if (gedit_message_has (message, "is_directory")) + { + g_object_set (message, + "is_directory", + FILE_IS_DIR (flags), + NULL); + } + + g_free (track_id); + g_object_unref (location); + } + + g_free (name); +} + +static gboolean +custom_message_filter_func (GeditFileBrowserWidget *widget, + GeditFileBrowserStore *store, + GtkTreeIter *iter, + FilterData *data) +{ + WindowData *wdata = get_window_data (data->window); + GFile *location; + guint flags = 0; + gboolean filter = FALSE; + GtkTreePath *path; + + gtk_tree_model_get (GTK_TREE_MODEL (store), iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!location || FILE_IS_DUMMY (flags)) + return FALSE; + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), iter); + set_item_message (wdata, iter, path, data->message); + gtk_tree_path_free (path); + + g_object_set (data->message, "filter", filter, NULL); + + gedit_message_bus_send_message_sync (wdata->bus, data->message); + g_object_get (data->message, "filter", &filter, NULL); + + g_object_unref (location); + + return !filter; +} + +static void +message_add_filter_cb (GeditMessageBus *bus, + GeditMessage *message, + GeditWindow *window) +{ + const gchar *object_path = NULL; + const gchar *method = NULL; + gulong id; + GeditMessage *cbmessage; + FilterData *filter_data; + WindowData *data; + GType message_type; + + data = get_window_data (window); + + object_path = gedit_message_get_object_path (message); + method = gedit_message_get_method (message); + + message_type = gedit_message_bus_lookup (bus, object_path, method); + + if (message_type == G_TYPE_INVALID) + { + return; + } + + /* Check if the message type has the correct arguments */ + if (!gedit_message_type_check (message_type, "id", G_TYPE_STRING) || + !gedit_message_type_check (message_type, "location", G_TYPE_FILE) || + !gedit_message_type_check (message_type, "is-directory", G_TYPE_BOOLEAN) || + !gedit_message_type_check (message_type, "filter", G_TYPE_BOOLEAN)) + { + return; + } + + cbmessage = g_object_new (message_type, + "object-path", object_path, + "method", method, + "id", NULL, + "location", NULL, + "is-directory", FALSE, + "filter", FALSE, + NULL); + + /* Register the custom filter on the widget */ + filter_data = filter_data_new (window, cbmessage); + + id = gedit_file_browser_widget_add_filter (data->widget, + (GeditFileBrowserWidgetFilterFunc)custom_message_filter_func, + filter_data, + (GDestroyNotify)filter_data_free); + + filter_data->id = id; +} + +static void +message_remove_filter_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gulong id = 0; + + g_object_get (message, "id", &id, NULL); + + if (!id) + return; + + gedit_file_browser_widget_remove_filter (data->widget, id); +} + +static void +message_extend_context_menu_cb (GeditMessageBus *bus, + GeditMessage *message, + GeditWindow *window) +{ + WindowData *data; + GeditMenuExtension *ext; + + data = get_window_data (window); + + ext = gedit_file_browser_widget_extend_context_menu (data->widget); + + g_object_set (message, "extension", ext, NULL); + g_object_unref (ext); +} + +static void +message_up_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + GeditFileBrowserStore *store = gedit_file_browser_widget_get_browser_store (data->widget); + + gedit_file_browser_store_set_virtual_root_up (store); +} + +static void +message_history_back_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gedit_file_browser_widget_history_back (data->widget); +} + +static void +message_history_forward_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gedit_file_browser_widget_history_forward (data->widget); +} + +static void +message_refresh_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gedit_file_browser_widget_refresh (data->widget); +} + +static void +message_set_show_hidden_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gboolean active = FALSE; + GeditFileBrowserStore *store; + GeditFileBrowserStoreFilterMode mode; + + g_object_get (message, "active", &active, NULL); + + store = gedit_file_browser_widget_get_browser_store (data->widget); + mode = gedit_file_browser_store_get_filter_mode (store); + + if (active) + mode &= ~GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN; + else + mode |= GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN; + + gedit_file_browser_store_set_filter_mode (store, mode); +} + +static void +message_set_show_binary_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gboolean active = FALSE; + GeditFileBrowserStore *store; + GeditFileBrowserStoreFilterMode mode; + + g_object_get (message, "active", &active, NULL); + + store = gedit_file_browser_widget_get_browser_store (data->widget); + mode = gedit_file_browser_store_get_filter_mode (store); + + if (active) + mode &= ~GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY; + else + mode |= GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY; + + gedit_file_browser_store_set_filter_mode (store, mode); +} + +static void +message_show_bookmarks_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gedit_file_browser_widget_show_bookmarks (data->widget); +} + +static void +message_show_files_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + gedit_file_browser_widget_show_files (data->widget); +} + +static void +message_get_view_cb (GeditMessageBus *bus, + GeditMessage *message, + WindowData *data) +{ + GeditFileBrowserView *view; + view = gedit_file_browser_widget_get_browser_view (data->widget); + + g_object_set (message, "view", view, NULL); +} + +static void +register_methods (GeditWindow *window, + GeditFileBrowserWidget *widget) +{ + GeditMessageBus *bus = gedit_window_get_message_bus (window); + WindowData *data = get_window_data (window); + + /* Register method calls */ + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT, + MESSAGE_OBJECT_PATH, + "get_root"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT, + MESSAGE_OBJECT_PATH, + "set_root"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM, + MESSAGE_OBJECT_PATH, + "set_emblem"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP, + MESSAGE_OBJECT_PATH, + "set_markup"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER, + MESSAGE_OBJECT_PATH, + "add_filter"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID, + MESSAGE_OBJECT_PATH, + "remove_filter"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU, + MESSAGE_OBJECT_PATH, + "extend_context_menu"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_MESSAGE, + MESSAGE_OBJECT_PATH, + "up"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_MESSAGE, + MESSAGE_OBJECT_PATH, + "history_back"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_MESSAGE, + MESSAGE_OBJECT_PATH, + "history_forward"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_MESSAGE, + MESSAGE_OBJECT_PATH, + "refresh"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION, + MESSAGE_OBJECT_PATH, + "set_show_hidden"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION, + MESSAGE_OBJECT_PATH, + "set_show_binary"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_MESSAGE, + MESSAGE_OBJECT_PATH, + "show_bookmarks"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_MESSAGE, + MESSAGE_OBJECT_PATH, + "show_files"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW, + MESSAGE_OBJECT_PATH, + "get_view"); + + BUS_CONNECT (bus, get_root, data); + BUS_CONNECT (bus, set_root, data); + BUS_CONNECT (bus, set_emblem, data); + BUS_CONNECT (bus, set_markup, data); + BUS_CONNECT (bus, add_filter, window); + BUS_CONNECT (bus, remove_filter, data); + BUS_CONNECT (bus, extend_context_menu, window); + + BUS_CONNECT (bus, up, data); + BUS_CONNECT (bus, history_back, data); + BUS_CONNECT (bus, history_forward, data); + + BUS_CONNECT (bus, refresh, data); + + BUS_CONNECT (bus, set_show_hidden, data); + BUS_CONNECT (bus, set_show_binary, data); + + BUS_CONNECT (bus, show_bookmarks, data); + BUS_CONNECT (bus, show_files, data); + + BUS_CONNECT (bus, get_view, data); +} + +static void +store_row_inserted (GeditFileBrowserStore *store, + GtkTreePath *path, + GtkTreeIter *iter, + MessageCacheData *data) +{ + guint flags = 0; + + gtk_tree_model_get (GTK_TREE_MODEL (store), iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!FILE_IS_DUMMY (flags) && !FILE_IS_FILTERED (flags)) + { + WindowData *wdata = get_window_data (data->window); + + set_item_message (wdata, iter, path, data->message); + gedit_message_bus_send_message_sync (wdata->bus, data->message); + } +} + +static void +store_before_row_deleted (GeditFileBrowserStore *store, + GtkTreePath *path, + MessageCacheData *data) +{ + GtkTreeIter iter; + guint flags = 0; + + if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path)) + return; + + gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!FILE_IS_DUMMY (flags) && !FILE_IS_FILTERED (flags)) + { + WindowData *wdata = get_window_data (data->window); + gchar *id; + + set_item_message (wdata, &iter, path, data->message); + + /* Must get the ID before the plugin can modify it */ + g_object_get (data->message, "id", &id, NULL); + + gedit_message_bus_send_message_sync (wdata->bus, data->message); + + g_hash_table_remove (wdata->row_tracking, id); + g_free (id); + } +} + +static void +store_virtual_root_changed (GeditFileBrowserStore *store, + GParamSpec *spec, + MessageCacheData *data) +{ + WindowData *wdata = get_window_data (data->window); + GFile *vroot; + + vroot = gedit_file_browser_store_get_virtual_root (store); + + if (!vroot) + { + return; + } + + g_object_set (data->message, + "location", vroot, + NULL); + + gedit_message_bus_send_message_sync (wdata->bus, data->message); + + g_object_unref (vroot); +} + +static void +store_begin_loading (GeditFileBrowserStore *store, + GtkTreeIter *iter, + MessageCacheData *data) +{ + GtkTreePath *path; + WindowData *wdata = get_window_data (data->window); + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), iter); + + set_item_message (wdata, iter, path, data->message); + + gedit_message_bus_send_message_sync (wdata->bus, data->message); + gtk_tree_path_free (path); +} + +static void +store_end_loading (GeditFileBrowserStore *store, + GtkTreeIter *iter, + MessageCacheData *data) +{ + GtkTreePath *path; + WindowData *wdata = get_window_data (data->window); + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), iter); + + set_item_message (wdata, iter, path, data->message); + + gedit_message_bus_send_message_sync (wdata->bus, data->message); + gtk_tree_path_free (path); +} + +static void +register_signals (GeditWindow *window, + GeditFileBrowserWidget *widget) +{ + GeditMessageBus *bus = gedit_window_get_message_bus (window); + GeditFileBrowserStore *store; + + GeditMessage *message; + WindowData *data; + + /* Register signals */ + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + MESSAGE_OBJECT_PATH, + "root_changed"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + MESSAGE_OBJECT_PATH, + "begin_loading"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + MESSAGE_OBJECT_PATH, + "end_loading"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + MESSAGE_OBJECT_PATH, + "inserted"); + + gedit_message_bus_register (bus, + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + MESSAGE_OBJECT_PATH, + "deleted"); + + store = gedit_file_browser_widget_get_browser_store (widget); + + message = g_object_new (GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + "object-path", MESSAGE_OBJECT_PATH, + "method", "inserted", + NULL); + + data = get_window_data (window); + + data->row_inserted_id = + g_signal_connect_data (store, + "row-inserted", + G_CALLBACK (store_row_inserted), + message_cache_data_new (window, message), + (GClosureNotify)message_cache_data_free, + 0); + + message = g_object_new (GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + "object-path", MESSAGE_OBJECT_PATH, + "method", "deleted", + NULL); + + data->before_row_deleted_id = + g_signal_connect_data (store, + "before-row-deleted", + G_CALLBACK (store_before_row_deleted), + message_cache_data_new (window, message), + (GClosureNotify)message_cache_data_free, + 0); + + message = g_object_new (GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + "object-path", MESSAGE_OBJECT_PATH, + "method", "root_changed", + NULL); + + data->root_changed_id = + g_signal_connect_data (store, + "notify::virtual-root", + G_CALLBACK (store_virtual_root_changed), + message_cache_data_new (window, message), + (GClosureNotify)message_cache_data_free, + 0); + + message = g_object_new (GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + "object-path", MESSAGE_OBJECT_PATH, + "method", "begin_loading", + NULL); + + data->begin_loading_id = + g_signal_connect_data (store, + "begin_loading", + G_CALLBACK (store_begin_loading), + message_cache_data_new (window, message), + (GClosureNotify)message_cache_data_free, + 0); + + message = g_object_new (GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION, + "object-path", MESSAGE_OBJECT_PATH, + "method", "end_loading", + NULL); + + data->end_loading_id = + g_signal_connect_data (store, + "end_loading", + G_CALLBACK (store_end_loading), + message_cache_data_new (window, message), + (GClosureNotify)message_cache_data_free, + 0); +} + +static void +message_unregistered (GeditMessageBus *bus, + const gchar *object_path, + const gchar *method, + GeditWindow *window) +{ + gchar *identifier; + FilterData *data; + WindowData *wdata; + + wdata = get_window_data (window); + + identifier = gedit_message_type_identifier (object_path, method); + + data = g_hash_table_lookup (wdata->filters, identifier); + + if (data) + { + gedit_file_browser_widget_remove_filter (wdata->widget, + data->id); + } + + g_free (identifier); +} + +void +gedit_file_browser_messages_register (GeditWindow *window, + GeditFileBrowserWidget *widget) +{ + window_data_new (window, widget); + + register_methods (window, widget); + register_signals (window, widget); + + g_signal_connect (gedit_window_get_message_bus (window), + "unregistered", + G_CALLBACK (message_unregistered), + window); +} + +static void +cleanup_signals (GeditWindow *window) +{ + WindowData *data = get_window_data (window); + GeditFileBrowserStore *store; + + store = gedit_file_browser_widget_get_browser_store (data->widget); + + g_signal_handler_disconnect (store, data->row_inserted_id); + g_signal_handler_disconnect (store, data->before_row_deleted_id); + g_signal_handler_disconnect (store, data->root_changed_id); + g_signal_handler_disconnect (store, data->begin_loading_id); + g_signal_handler_disconnect (store, data->end_loading_id); + + g_signal_handlers_disconnect_by_func (data->bus, message_unregistered, window); +} + +void +gedit_file_browser_messages_unregister (GeditWindow *window) +{ + GeditMessageBus *bus = gedit_window_get_message_bus (window); + WindowData *data = get_window_data (window); + + cleanup_signals (window); + + BUS_DISCONNECT (bus, get_root, data); + BUS_DISCONNECT (bus, set_root, data); + BUS_DISCONNECT (bus, set_emblem, data); + BUS_DISCONNECT (bus, set_markup, data); + BUS_DISCONNECT (bus, add_filter, window); + BUS_DISCONNECT (bus, remove_filter, data); + + BUS_DISCONNECT (bus, up, data); + BUS_DISCONNECT (bus, history_back, data); + BUS_DISCONNECT (bus, history_forward, data); + + BUS_DISCONNECT (bus, refresh, data); + + BUS_DISCONNECT (bus, set_show_hidden, data); + BUS_DISCONNECT (bus, set_show_binary, data); + + BUS_DISCONNECT (bus, show_bookmarks, data); + BUS_DISCONNECT (bus, show_files, data); + + BUS_DISCONNECT (bus, get_view, data); + + gedit_message_bus_unregister_all (bus, MESSAGE_OBJECT_PATH); + + window_data_free (window); +} +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-messages.h b/plugins/filebrowser/gedit-file-browser-messages.h new file mode 100644 index 0000000..9fcb316 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-messages.h @@ -0,0 +1,33 @@ +/* + * gedit-file-browser-messages.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2008 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGES_H +#define GEDIT_FILE_BROWSER_MESSAGES_H + +#include +#include +#include "gedit-file-browser-widget.h" + +void gedit_file_browser_messages_register (GeditWindow *window, + GeditFileBrowserWidget *widget); +void gedit_file_browser_messages_unregister (GeditWindow *window); + +#endif /* GEDIT_FILE_BROWSER_MESSAGES_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-plugin.c b/plugins/filebrowser/gedit-file-browser-plugin.c new file mode 100644 index 0000000..2e8e13e --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-plugin.c @@ -0,0 +1,972 @@ +/* + * gedit-file-browser-plugin.c - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "gedit-file-browser-enum-types.h" +#include "gedit-file-browser-plugin.h" +#include "gedit-file-browser-utils.h" +#include "gedit-file-browser-error.h" +#include "gedit-file-browser-widget.h" +#include "gedit-file-browser-messages.h" + +#define FILEBROWSER_BASE_SETTINGS "org.gnome.gedit.plugins.filebrowser" +#define FILEBROWSER_TREE_VIEW "tree-view" +#define FILEBROWSER_ROOT "root" +#define FILEBROWSER_VIRTUAL_ROOT "virtual-root" +#define FILEBROWSER_ENABLE_REMOTE "enable-remote" +#define FILEBROWSER_OPEN_AT_FIRST_DOC "open-at-first-doc" +#define FILEBROWSER_FILTER_MODE "filter-mode" +#define FILEBROWSER_FILTER_PATTERN "filter-pattern" +#define FILEBROWSER_BINARY_PATTERNS "binary-patterns" + +#define NAUTILUS_BASE_SETTINGS "org.gnome.nautilus.preferences" +#define NAUTILUS_FALLBACK_SETTINGS "org.gnome.gedit.plugins.filebrowser.nautilus" +#define NAUTILUS_CLICK_POLICY_KEY "click-policy" +#define NAUTILUS_CONFIRM_TRASH_KEY "confirm-trash" + +#define TERMINAL_BASE_SETTINGS "org.gnome.desktop.default-applications.terminal" +#define TERMINAL_EXEC_KEY "exec" + +struct _GeditFileBrowserPluginPrivate +{ + GSettings *settings; + GSettings *nautilus_settings; + GSettings *terminal_settings; + + GeditWindow *window; + + GeditFileBrowserWidget *tree_widget; + gboolean auto_root; + gulong end_loading_handle; + gboolean confirm_trash; + + guint click_policy_handle; + guint confirm_trash_handle; +}; + +enum +{ + PROP_0, + PROP_WINDOW +}; + +static void gedit_window_activatable_iface_init (GeditWindowActivatableInterface *iface); + +static void on_location_activated_cb (GeditFileBrowserWidget *widget, + GFile *location, + GeditWindow *window); +static void on_error_cb (GeditFileBrowserWidget *widget, + guint code, + gchar const *message, + GeditFileBrowserPlugin *plugin); +static void on_model_set_cb (GeditFileBrowserView *widget, + GParamSpec *param, + GeditFileBrowserPlugin *plugin); +static void on_virtual_root_changed_cb (GeditFileBrowserStore *model, + GParamSpec *param, + GeditFileBrowserPlugin *plugin); +static void on_rename_cb (GeditFileBrowserStore *model, + GFile *oldfile, + GFile *newfile, + GeditWindow *window); +static void on_tab_added_cb (GeditWindow *window, + GeditTab *tab, + GeditFileBrowserPlugin *plugin); +static gboolean on_confirm_delete_cb (GeditFileBrowserWidget *widget, + GeditFileBrowserStore *store, + GList *rows, + GeditFileBrowserPlugin *plugin); +static gboolean on_confirm_no_trash_cb (GeditFileBrowserWidget *widget, + GList *files, + GeditWindow *window); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditFileBrowserPlugin, + gedit_file_browser_plugin, + G_TYPE_OBJECT, + 0, + G_ADD_PRIVATE_DYNAMIC (GeditFileBrowserPlugin) + G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_WINDOW_ACTIVATABLE, + gedit_window_activatable_iface_init) \ + \ + gedit_file_browser_enum_and_flag_register_type (type_module); \ + _gedit_file_bookmarks_store_register_type (type_module); \ + _gedit_file_browser_store_register_type (type_module); \ + _gedit_file_browser_view_register_type (type_module); \ + _gedit_file_browser_widget_register_type (type_module); \ +) + +static GSettings * +settings_try_new (const gchar *schema_id) +{ + GSettings *settings = NULL; + GSettingsSchemaSource *source; + GSettingsSchema *schema; + + source = g_settings_schema_source_get_default (); + + schema = g_settings_schema_source_lookup (source, schema_id, TRUE); + + if (schema != NULL) + { + settings = g_settings_new_full (schema, NULL, NULL); + g_settings_schema_unref (schema); + } + + return settings; +} + +static void +gedit_file_browser_plugin_init (GeditFileBrowserPlugin *plugin) +{ + plugin->priv = gedit_file_browser_plugin_get_instance_private (plugin); + + plugin->priv->settings = g_settings_new (FILEBROWSER_BASE_SETTINGS); + plugin->priv->terminal_settings = g_settings_new (TERMINAL_BASE_SETTINGS); + plugin->priv->nautilus_settings = settings_try_new (NAUTILUS_BASE_SETTINGS); + + if (plugin->priv->nautilus_settings == NULL) + { + plugin->priv->nautilus_settings = g_settings_new (NAUTILUS_FALLBACK_SETTINGS); + } +} + +static void +gedit_file_browser_plugin_dispose (GObject *object) +{ + GeditFileBrowserPlugin *plugin = GEDIT_FILE_BROWSER_PLUGIN (object); + + g_clear_object (&plugin->priv->settings); + g_clear_object (&plugin->priv->nautilus_settings); + g_clear_object (&plugin->priv->terminal_settings); + g_clear_object (&plugin->priv->window); + + G_OBJECT_CLASS (gedit_file_browser_plugin_parent_class)->dispose (object); +} + +static void +gedit_file_browser_plugin_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserPlugin *plugin = GEDIT_FILE_BROWSER_PLUGIN (object); + + switch (prop_id) + { + case PROP_WINDOW: + plugin->priv->window = GEDIT_WINDOW (g_value_dup_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_file_browser_plugin_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserPlugin *plugin = GEDIT_FILE_BROWSER_PLUGIN (object); + + switch (prop_id) + { + case PROP_WINDOW: + g_value_set_object (value, plugin->priv->window); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +on_end_loading_cb (GeditFileBrowserStore *store, + GtkTreeIter *iter, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + + /* Disconnect the signal */ + g_signal_handler_disconnect (store, priv->end_loading_handle); + priv->end_loading_handle = 0; + priv->auto_root = FALSE; +} + +static void +prepare_auto_root (GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + GeditFileBrowserStore *store; + + priv->auto_root = TRUE; + + store = gedit_file_browser_widget_get_browser_store (priv->tree_widget); + + if (priv->end_loading_handle != 0) + { + g_signal_handler_disconnect (store, priv->end_loading_handle); + priv->end_loading_handle = 0; + } + + priv->end_loading_handle = g_signal_connect (store, + "end-loading", + G_CALLBACK (on_end_loading_cb), + plugin); +} + +static void +restore_default_location (GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + gchar *root; + gchar *virtual_root; + gboolean bookmarks; + gboolean remote; + + bookmarks = !g_settings_get_boolean (priv->settings, + FILEBROWSER_TREE_VIEW); + + if (bookmarks) + { + gedit_file_browser_widget_show_bookmarks (priv->tree_widget); + return; + } + + root = g_settings_get_string (priv->settings, + FILEBROWSER_ROOT); + virtual_root = g_settings_get_string (priv->settings, + FILEBROWSER_VIRTUAL_ROOT); + + remote = g_settings_get_boolean (priv->settings, + FILEBROWSER_ENABLE_REMOTE); + + if (root != NULL && *root != '\0') + { + GFile *rootfile; + GFile *vrootfile; + + rootfile = g_file_new_for_uri (root); + vrootfile = g_file_new_for_uri (virtual_root); + + if (remote || g_file_is_native (rootfile)) + { + if (virtual_root != NULL && *virtual_root != '\0') + { + prepare_auto_root (plugin); + gedit_file_browser_widget_set_root_and_virtual_root (priv->tree_widget, + rootfile, + vrootfile); + } + else + { + prepare_auto_root (plugin); + gedit_file_browser_widget_set_root (priv->tree_widget, + rootfile, + TRUE); + } + } + + g_object_unref (rootfile); + g_object_unref (vrootfile); + } + + g_free (root); + g_free (virtual_root); +} + +static void +on_click_policy_changed (GSettings *settings, + const gchar *key, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + GeditFileBrowserViewClickPolicy policy; + GeditFileBrowserView *view; + + policy = g_settings_get_enum (settings, key); + + view = gedit_file_browser_widget_get_browser_view (priv->tree_widget); + gedit_file_browser_view_set_click_policy (view, policy); +} + +static void +on_confirm_trash_changed (GSettings *settings, + const gchar *key, + GeditFileBrowserPlugin *plugin) +{ + plugin->priv->confirm_trash = g_settings_get_boolean (settings, key); +} + +static void +install_nautilus_prefs (GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + gboolean prefb; + GeditFileBrowserViewClickPolicy policy; + GeditFileBrowserView *view; + + /* Get click_policy */ + policy = g_settings_get_enum (priv->nautilus_settings, + NAUTILUS_CLICK_POLICY_KEY); + + view = gedit_file_browser_widget_get_browser_view (priv->tree_widget); + gedit_file_browser_view_set_click_policy (view, policy); + + priv->click_policy_handle = + g_signal_connect (priv->nautilus_settings, + "changed::" NAUTILUS_CLICK_POLICY_KEY, + G_CALLBACK (on_click_policy_changed), + plugin); + + /* Get confirm_trash */ + prefb = g_settings_get_boolean (priv->nautilus_settings, + NAUTILUS_CONFIRM_TRASH_KEY); + + priv->confirm_trash = prefb; + + priv->confirm_trash_handle = + g_signal_connect (priv->nautilus_settings, + "changed::" NAUTILUS_CONFIRM_TRASH_KEY, + G_CALLBACK (on_confirm_trash_changed), + plugin); +} + +static void +set_root_from_doc (GeditFileBrowserPlugin *plugin, + GeditDocument *doc) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + GtkSourceFile *file; + GFile *location; + GFile *parent; + + if (doc == NULL) + { + return; + } + + file = gedit_document_get_file (doc); + location = gtk_source_file_get_location (file); + if (location == NULL) + { + return; + } + + parent = g_file_get_parent (location); + + if (parent != NULL) + { + gedit_file_browser_widget_set_root (priv->tree_widget, + parent, + TRUE); + + g_object_unref (parent); + } +} + +static void +set_active_root (GeditFileBrowserWidget *widget, + GeditFileBrowserPlugin *plugin) +{ + set_root_from_doc (plugin, + gedit_window_get_active_document (plugin->priv->window)); +} + +static gchar * +get_terminal (GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + gchar *terminal; + + terminal = g_settings_get_string (priv->terminal_settings, + TERMINAL_EXEC_KEY); + + if (terminal == NULL) + { + const gchar *term = g_getenv ("TERM"); + + if (term != NULL) + terminal = g_strdup (term); + else + terminal = g_strdup ("xterm"); + } + + return terminal; +} + +static void +open_in_terminal (GeditFileBrowserWidget *widget, + GFile *location, + GeditFileBrowserPlugin *plugin) +{ + if (location) + { + gchar *terminal; + gchar *local; + gchar *argv[2]; + + terminal = get_terminal (plugin); + local = g_file_get_path (location); + + argv[0] = terminal; + argv[1] = NULL; + + g_spawn_async (local, + argv, + NULL, + G_SPAWN_SEARCH_PATH, + NULL, + NULL, + NULL, + NULL); + + g_free (terminal); + g_free (local); + } +} + +static void +gedit_file_browser_plugin_update_state (GeditWindowActivatable *activatable) +{ + GeditFileBrowserPluginPrivate *priv = GEDIT_FILE_BROWSER_PLUGIN (activatable)->priv; + GeditDocument *doc; + + doc = gedit_window_get_active_document (priv->window); + gedit_file_browser_widget_set_active_root_enabled (priv->tree_widget, + doc != NULL && !gedit_document_is_untitled (doc)); +} + +static void +gedit_file_browser_plugin_activate (GeditWindowActivatable *activatable) +{ + GeditFileBrowserPlugin *plugin = GEDIT_FILE_BROWSER_PLUGIN (activatable); + GeditFileBrowserPluginPrivate *priv; + GtkWidget *panel; + GeditFileBrowserStore *store; + + priv = plugin->priv; + + priv->tree_widget = GEDIT_FILE_BROWSER_WIDGET (gedit_file_browser_widget_new ()); + + g_signal_connect (priv->tree_widget, + "location-activated", + G_CALLBACK (on_location_activated_cb), priv->window); + + g_signal_connect (priv->tree_widget, + "error", G_CALLBACK (on_error_cb), plugin); + + g_signal_connect (priv->tree_widget, + "confirm-delete", + G_CALLBACK (on_confirm_delete_cb), + plugin); + + g_signal_connect (priv->tree_widget, + "confirm-no-trash", + G_CALLBACK (on_confirm_no_trash_cb), + priv->window); + + g_signal_connect (priv->tree_widget, + "open-in-terminal", + G_CALLBACK (open_in_terminal), + plugin); + + g_signal_connect (priv->tree_widget, + "set-active-root", + G_CALLBACK (set_active_root), + plugin); + + g_settings_bind (priv->settings, + FILEBROWSER_FILTER_PATTERN, + priv->tree_widget, + FILEBROWSER_FILTER_PATTERN, + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + + panel = gedit_window_get_side_panel (priv->window); + + gtk_stack_add_titled (GTK_STACK (panel), + GTK_WIDGET (priv->tree_widget), + "GeditFileBrowserPanel", + _("File Browser")); + + gtk_widget_show (GTK_WIDGET (priv->tree_widget)); + + /* Install nautilus preferences */ + install_nautilus_prefs (plugin); + + /* Connect signals to store the last visited location */ + g_signal_connect (gedit_file_browser_widget_get_browser_view (priv->tree_widget), + "notify::model", + G_CALLBACK (on_model_set_cb), + plugin); + + store = gedit_file_browser_widget_get_browser_store (priv->tree_widget); + + g_settings_bind (priv->settings, + FILEBROWSER_FILTER_MODE, + store, + FILEBROWSER_FILTER_MODE, + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + + g_settings_bind (priv->settings, + FILEBROWSER_BINARY_PATTERNS, + store, + FILEBROWSER_BINARY_PATTERNS, + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + + g_signal_connect (store, + "notify::virtual-root", + G_CALLBACK (on_virtual_root_changed_cb), + plugin); + + g_signal_connect (store, + "rename", + G_CALLBACK (on_rename_cb), + priv->window); + + g_signal_connect (priv->window, + "tab-added", + G_CALLBACK (on_tab_added_cb), + plugin); + + /* Register messages on the bus */ + gedit_file_browser_messages_register (priv->window, priv->tree_widget); + + gedit_file_browser_plugin_update_state (activatable); +} + +static void +gedit_file_browser_plugin_deactivate (GeditWindowActivatable *activatable) +{ + GeditFileBrowserPlugin *plugin = GEDIT_FILE_BROWSER_PLUGIN (activatable); + GeditFileBrowserPluginPrivate *priv = plugin->priv; + GtkWidget *panel; + + + /* Unregister messages from the bus */ + gedit_file_browser_messages_unregister (priv->window); + + /* Disconnect signals */ + g_signal_handlers_disconnect_by_func (priv->window, + G_CALLBACK (on_tab_added_cb), + plugin); + + if (priv->click_policy_handle) + { + g_signal_handler_disconnect (priv->nautilus_settings, + priv->click_policy_handle); + } + + if (priv->confirm_trash_handle) + { + g_signal_handler_disconnect (priv->nautilus_settings, + priv->confirm_trash_handle); + } + + panel = gedit_window_get_side_panel (priv->window); + gtk_container_remove (GTK_CONTAINER (panel), GTK_WIDGET (priv->tree_widget)); +} + +static void +gedit_file_browser_plugin_class_init (GeditFileBrowserPluginClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_file_browser_plugin_dispose; + object_class->set_property = gedit_file_browser_plugin_set_property; + object_class->get_property = gedit_file_browser_plugin_get_property; + + g_object_class_override_property (object_class, PROP_WINDOW, "window"); +} + +static void +gedit_window_activatable_iface_init (GeditWindowActivatableInterface *iface) +{ + iface->activate = gedit_file_browser_plugin_activate; + iface->deactivate = gedit_file_browser_plugin_deactivate; + iface->update_state = gedit_file_browser_plugin_update_state; +} + +static void +gedit_file_browser_plugin_class_finalize (GeditFileBrowserPluginClass *klass) +{ +} + +/* Callbacks */ +static void +on_location_activated_cb (GeditFileBrowserWidget *tree_widget, + GFile *location, + GeditWindow *window) +{ + gedit_commands_load_location (window, location, NULL, 0, 0); +} + +static void +on_error_cb (GeditFileBrowserWidget *tree_widget, + guint code, + gchar const *message, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + gchar *title; + GtkWidget *dlg; + + /* Do not show the error when the root has been set automatically */ + if (priv->auto_root && (code == GEDIT_FILE_BROWSER_ERROR_SET_ROOT || + code == GEDIT_FILE_BROWSER_ERROR_LOAD_DIRECTORY)) + { + /* Show bookmarks */ + gedit_file_browser_widget_show_bookmarks (priv->tree_widget); + return; + } + + switch (code) + { + case GEDIT_FILE_BROWSER_ERROR_NEW_DIRECTORY: + title = _("An error occurred while creating a new directory"); + break; + case GEDIT_FILE_BROWSER_ERROR_NEW_FILE: + title = _("An error occurred while creating a new file"); + break; + case GEDIT_FILE_BROWSER_ERROR_RENAME: + title = _("An error occurred while renaming a file or directory"); + break; + case GEDIT_FILE_BROWSER_ERROR_DELETE: + title = _("An error occurred while deleting a file or directory"); + break; + case GEDIT_FILE_BROWSER_ERROR_OPEN_DIRECTORY: + title = _("An error occurred while opening a directory in the file manager"); + break; + case GEDIT_FILE_BROWSER_ERROR_SET_ROOT: + title = _("An error occurred while setting a root directory"); + break; + case GEDIT_FILE_BROWSER_ERROR_LOAD_DIRECTORY: + title = _("An error occurred while loading a directory"); + break; + default: + title = _("An error occurred"); + break; + } + + dlg = gtk_message_dialog_new (GTK_WINDOW (priv->window), + GTK_DIALOG_MODAL | + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, + "%s", title); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dlg), + "%s", message); + + gtk_dialog_run (GTK_DIALOG (dlg)); + gtk_widget_destroy (dlg); +} + +static void +on_model_set_cb (GeditFileBrowserView *widget, + GParamSpec *param, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + GtkTreeModel *model; + + model = gtk_tree_view_get_model (GTK_TREE_VIEW (gedit_file_browser_widget_get_browser_view (priv->tree_widget))); + + if (model == NULL) + return; + + g_settings_set_boolean (priv->settings, + FILEBROWSER_TREE_VIEW, + GEDIT_IS_FILE_BROWSER_STORE (model)); +} + +static void +on_rename_cb (GeditFileBrowserStore *store, + GFile *oldfile, + GFile *newfile, + GeditWindow *window) +{ + GList *documents; + GList *item; + + /* Find all documents and set its uri to newuri where it matches olduri */ + documents = gedit_app_get_documents (GEDIT_APP (g_application_get_default ())); + + for (item = documents; item; item = item->next) + { + GeditDocument *doc; + GtkSourceFile *source_file; + GFile *docfile; + + doc = GEDIT_DOCUMENT (item->data); + source_file = gedit_document_get_file (doc); + docfile = gtk_source_file_get_location (source_file); + + if (docfile == NULL) + { + continue; + } + + if (g_file_equal (docfile, oldfile)) + { + gtk_source_file_set_location (source_file, newfile); + } + else + { + gchar *relative; + + relative = g_file_get_relative_path (oldfile, docfile); + + if (relative != NULL) + { + /* Relative now contains the part in docfile without + the prefix oldfile */ + + docfile = g_file_get_child (newfile, relative); + + gtk_source_file_set_location (source_file, docfile); + + g_object_unref (docfile); + } + + g_free (relative); + } + } + + g_list_free (documents); +} + +static void +on_virtual_root_changed_cb (GeditFileBrowserStore *store, + GParamSpec *param, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + GFile *root; + GFile *virtual_root; + gchar *uri_root = NULL; + + root = gedit_file_browser_store_get_root (store); + + if (!root) + { + return; + } + else + { + uri_root = g_file_get_uri (root); + g_object_unref (root); + } + + g_settings_set_string (priv->settings, + FILEBROWSER_ROOT, + uri_root); + + virtual_root = gedit_file_browser_store_get_virtual_root (store); + + if (!virtual_root) + { + /* Set virtual to same as root then */ + g_settings_set_string (priv->settings, + FILEBROWSER_VIRTUAL_ROOT, + uri_root); + } + else + { + gchar *uri_vroot; + + uri_vroot = g_file_get_uri (virtual_root); + + g_settings_set_string (priv->settings, + FILEBROWSER_VIRTUAL_ROOT, + uri_vroot); + g_free (uri_vroot); + g_object_unref (virtual_root); + } + + g_signal_handlers_disconnect_by_func (priv->window, + G_CALLBACK (on_tab_added_cb), + plugin); + g_free (uri_root); +} + +static void +on_tab_added_cb (GeditWindow *window, + GeditTab *tab, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + gboolean open; + gboolean load_default = TRUE; + + open = g_settings_get_boolean (priv->settings, + FILEBROWSER_OPEN_AT_FIRST_DOC); + + if (open) + { + GeditDocument *doc; + GtkSourceFile *file; + GFile *location; + + doc = gedit_tab_get_document (tab); + file = gedit_document_get_file (doc); + location = gtk_source_file_get_location (file); + + if (location != NULL) + { + if (g_file_has_uri_scheme (location, "file")) + { + prepare_auto_root (plugin); + set_root_from_doc (plugin, doc); + load_default = FALSE; + } + } + } + + if (load_default) + restore_default_location (plugin); + + /* Disconnect this signal, it's only called once */ + g_signal_handlers_disconnect_by_func (window, + G_CALLBACK (on_tab_added_cb), + plugin); +} + +static gchar * +get_filename_from_path (GtkTreeModel *model, + GtkTreePath *path) +{ + GtkTreeIter iter; + GFile *location; + gchar *ret = NULL; + + if (!gtk_tree_model_get_iter (model, &iter, path)) + { + return NULL; + } + + gtk_tree_model_get (model, &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + if (location) + { + ret = gedit_file_browser_utils_file_basename (location); + g_object_unref (location); + } + + return ret; +} + +static gboolean +on_confirm_no_trash_cb (GeditFileBrowserWidget *widget, + GList *files, + GeditWindow *window) +{ + gchar *normal; + gchar *message; + gchar *secondary; + gboolean result; + + message = _("Cannot move file to trash, do you\nwant to delete permanently?"); + + if (files->next == NULL) + { + normal = gedit_file_browser_utils_file_basename (G_FILE (files->data)); + secondary = g_strdup_printf (_("The file “%s” cannot be moved to the trash."), normal); + g_free (normal); + } + else + { + secondary = g_strdup (_("The selected files cannot be moved to the trash.")); + } + + result = gedit_file_browser_utils_confirmation_dialog (window, + GTK_MESSAGE_QUESTION, + message, + secondary, + _("_Delete")); + g_free (secondary); + + return result; +} + +static gboolean +on_confirm_delete_cb (GeditFileBrowserWidget *widget, + GeditFileBrowserStore *store, + GList *paths, + GeditFileBrowserPlugin *plugin) +{ + GeditFileBrowserPluginPrivate *priv = plugin->priv; + gchar *normal; + gchar *message; + gchar *secondary; + gboolean result; + + if (!priv->confirm_trash) + return TRUE; + + if (paths->next == NULL) + { + normal = get_filename_from_path (GTK_TREE_MODEL (store), (GtkTreePath *)(paths->data)); + message = g_strdup_printf (_("Are you sure you want to permanently delete “%s”?"), normal); + g_free (normal); + } + else + { + message = g_strdup (_("Are you sure you want to permanently delete the selected files?")); + } + + secondary = _("If you delete an item, it is permanently lost."); + + result = gedit_file_browser_utils_confirmation_dialog (priv->window, + GTK_MESSAGE_QUESTION, + message, + secondary, + _("_Delete")); + + g_free (message); + + return result; +} + +G_MODULE_EXPORT void +peas_register_types (PeasObjectModule *module) +{ + gedit_file_browser_plugin_register_type (G_TYPE_MODULE (module)); + + peas_object_module_register_extension_type (module, + GEDIT_TYPE_WINDOW_ACTIVATABLE, + GEDIT_TYPE_FILE_BROWSER_PLUGIN); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-plugin.h b/plugins/filebrowser/gedit-file-browser-plugin.h new file mode 100644 index 0000000..27fe706 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-plugin.h @@ -0,0 +1,70 @@ +/* + * gedit-file-browser-plugin.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_PLUGIN_H +#define GEDIT_FILE_BROWSER_PLUGIN_H + +#include +#include +#include +#include + +G_BEGIN_DECLS +/* + * Type checking and casting macros + */ +#define GEDIT_TYPE_FILE_BROWSER_PLUGIN (gedit_file_browser_plugin_get_type ()) +#define GEDIT_FILE_BROWSER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_FILE_BROWSER_PLUGIN, GeditFileBrowserPlugin)) +#define GEDIT_FILE_BROWSER_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_FILE_BROWSER_PLUGIN, GeditFileBrowserPluginClass)) +#define GEDIT_IS_FILE_BROWSER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_FILE_BROWSER_PLUGIN)) +#define GEDIT_IS_FILE_BROWSER_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_FILE_BROWSER_PLUGIN)) +#define GEDIT_FILE_BROWSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_FILE_BROWSER_PLUGIN, GeditFileBrowserPluginClass)) + +/* Private structure type */ +typedef struct _GeditFileBrowserPluginPrivate GeditFileBrowserPluginPrivate; +typedef struct _GeditFileBrowserPlugin GeditFileBrowserPlugin; +typedef struct _GeditFileBrowserPluginClass GeditFileBrowserPluginClass; + +struct _GeditFileBrowserPlugin +{ + GObject parent_instance; + + /* < private > */ + GeditFileBrowserPluginPrivate *priv; +}; + +struct _GeditFileBrowserPluginClass +{ + GObjectClass parent_class; +}; + +/* + * Public methods + */ +GType gedit_file_browser_plugin_get_type (void) G_GNUC_CONST; + +/* All the plugins must implement this function */ +G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_PLUGIN_H */ + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-store.c b/plugins/filebrowser/gedit-file-browser-store.c new file mode 100644 index 0000000..6a5ccaf --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-store.c @@ -0,0 +1,3672 @@ +/* + * gedit-file-browser-store.c - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include +#include +#include +#include + +#include "gedit-file-browser-store.h" +#include "gedit-file-browser-enum-types.h" +#include "gedit-file-browser-error.h" +#include "gedit-file-browser-utils.h" + +#define NODE_IS_DIR(node) (FILE_IS_DIR((node)->flags)) +#define NODE_IS_HIDDEN(node) (FILE_IS_HIDDEN((node)->flags)) +#define NODE_IS_TEXT(node) (FILE_IS_TEXT((node)->flags)) +#define NODE_LOADED(node) (FILE_LOADED((node)->flags)) +#define NODE_IS_FILTERED(node) (FILE_IS_FILTERED((node)->flags)) +#define NODE_IS_DUMMY(node) (FILE_IS_DUMMY((node)->flags)) + +#define FILE_BROWSER_NODE_DIR(node) ((FileBrowserNodeDir *)(node)) + +#define DIRECTORY_LOAD_ITEMS_PER_CALLBACK 100 +#define STANDARD_ATTRIBUTE_TYPES G_FILE_ATTRIBUTE_STANDARD_TYPE "," \ + G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "," \ + G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "," \ + G_FILE_ATTRIBUTE_STANDARD_NAME "," \ + G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," \ + G_FILE_ATTRIBUTE_STANDARD_ICON + +typedef struct _FileBrowserNode FileBrowserNode; +typedef struct _FileBrowserNodeDir FileBrowserNodeDir; +typedef struct _AsyncData AsyncData; +typedef struct _AsyncNode AsyncNode; + +typedef gint (*SortFunc) (FileBrowserNode *node1, + FileBrowserNode *node2); + +struct _AsyncData +{ + GeditFileBrowserStore *model; + GCancellable *cancellable; + gboolean trash; + GList *files; + GList *iter; + gboolean removed; +}; + +struct _AsyncNode +{ + FileBrowserNodeDir *dir; + GCancellable *cancellable; + GSList *original_children; +}; + +typedef struct { + GeditFileBrowserStore *model; + GFile *virtual_root; + GMountOperation *operation; + GCancellable *cancellable; +} MountInfo; + +struct _FileBrowserNode +{ + GFile *file; + guint flags; + gchar *icon_name; + gchar *name; + gchar *markup; + + GdkPixbuf *icon; + GdkPixbuf *emblem; + + FileBrowserNode *parent; + gint pos; + gboolean inserted; +}; + +struct _FileBrowserNodeDir +{ + FileBrowserNode node; + GSList *children; + + GCancellable *cancellable; + GFileMonitor *monitor; + GeditFileBrowserStore *model; +}; + +struct _GeditFileBrowserStorePrivate +{ + FileBrowserNode *root; + FileBrowserNode *virtual_root; + GType column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_NUM]; + + GeditFileBrowserStoreFilterMode filter_mode; + GeditFileBrowserStoreFilterFunc filter_func; + gpointer filter_user_data; + + gchar **binary_patterns; + GPtrArray *binary_pattern_specs; + + SortFunc sort_func; + + GSList *async_handles; + MountInfo *mount_info; +}; + +static FileBrowserNode *model_find_node (GeditFileBrowserStore *model, + FileBrowserNode *node, + GFile *uri); +static void model_remove_node (GeditFileBrowserStore *model, + FileBrowserNode *node, + GtkTreePath *path, + gboolean free_nodes); + +static void set_virtual_root_from_node (GeditFileBrowserStore *model, + FileBrowserNode *node); + +static void gedit_file_browser_store_iface_init (GtkTreeModelIface *iface); +static GtkTreeModelFlags gedit_file_browser_store_get_flags (GtkTreeModel *tree_model); +static gint gedit_file_browser_store_get_n_columns (GtkTreeModel *tree_model); +static GType gedit_file_browser_store_get_column_type (GtkTreeModel *tree_model, + gint index); +static gboolean gedit_file_browser_store_get_iter (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreePath *path); +static GtkTreePath *gedit_file_browser_store_get_path (GtkTreeModel *tree_model, + GtkTreeIter *iter); +static void gedit_file_browser_store_get_value (GtkTreeModel *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value); +static gboolean gedit_file_browser_store_iter_next (GtkTreeModel *tree_model, + GtkTreeIter *iter); +static gboolean gedit_file_browser_store_iter_children (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent); +static gboolean gedit_file_browser_store_iter_has_child (GtkTreeModel *tree_model, + GtkTreeIter *iter); +static gint gedit_file_browser_store_iter_n_children (GtkTreeModel *tree_model, + GtkTreeIter *iter); +static gboolean gedit_file_browser_store_iter_nth_child (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint n); +static gboolean gedit_file_browser_store_iter_parent (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *child); +static void gedit_file_browser_store_row_inserted (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + +static void gedit_file_browser_store_drag_source_init (GtkTreeDragSourceIface *iface); +static gboolean gedit_file_browser_store_row_draggable (GtkTreeDragSource *drag_source, + GtkTreePath *path); +static gboolean gedit_file_browser_store_drag_data_delete (GtkTreeDragSource *drag_source, + GtkTreePath *path); +static gboolean gedit_file_browser_store_drag_data_get (GtkTreeDragSource *drag_source, + GtkTreePath *path, + GtkSelectionData *selection_data); + +static void file_browser_node_free (GeditFileBrowserStore *model, + FileBrowserNode *node); +static void model_add_node (GeditFileBrowserStore *model, + FileBrowserNode *child, + FileBrowserNode *parent); +static void model_clear (GeditFileBrowserStore *model, + gboolean free_nodes); +static gint model_sort_default (FileBrowserNode *node1, + FileBrowserNode *node2); +static void model_check_dummy (GeditFileBrowserStore *model, + FileBrowserNode *node); +static void next_files_async (GFileEnumerator *enumerator, + AsyncNode *async); + +static void delete_files (AsyncData *data); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditFileBrowserStore, gedit_file_browser_store, + G_TYPE_OBJECT, + 0, + G_ADD_PRIVATE_DYNAMIC (GeditFileBrowserStore) + G_IMPLEMENT_INTERFACE_DYNAMIC (GTK_TYPE_TREE_MODEL, + gedit_file_browser_store_iface_init) + G_IMPLEMENT_INTERFACE_DYNAMIC (GTK_TYPE_TREE_DRAG_SOURCE, + gedit_file_browser_store_drag_source_init)) + +/* Properties */ +enum { + PROP_0, + + PROP_ROOT, + PROP_VIRTUAL_ROOT, + PROP_FILTER_MODE, + PROP_BINARY_PATTERNS +}; + +/* Signals */ +enum +{ + BEGIN_LOADING, + END_LOADING, + ERROR, + NO_TRASH, + RENAME, + BEGIN_REFRESH, + END_REFRESH, + UNLOAD, + BEFORE_ROW_DELETED, + NUM_SIGNALS +}; + +static guint model_signals[NUM_SIGNALS] = { 0 }; + +static void +cancel_mount_operation (GeditFileBrowserStore *obj) +{ + if (obj->priv->mount_info != NULL) + { + obj->priv->mount_info->model = NULL; + g_cancellable_cancel (obj->priv->mount_info->cancellable); + obj->priv->mount_info = NULL; + } +} + +static void +gedit_file_browser_store_finalize (GObject *object) +{ + GeditFileBrowserStore *obj = GEDIT_FILE_BROWSER_STORE (object); + + /* Free all the nodes */ + file_browser_node_free (obj, obj->priv->root); + + if (obj->priv->binary_patterns != NULL) + { + g_strfreev (obj->priv->binary_patterns); + g_ptr_array_unref (obj->priv->binary_pattern_specs); + } + + /* Cancel any asynchronous operations */ + for (GSList *item = obj->priv->async_handles; item; item = item->next) + { + AsyncData *data = (AsyncData *)(item->data); + g_cancellable_cancel (data->cancellable); + + data->removed = TRUE; + } + + cancel_mount_operation (obj); + + g_slist_free (obj->priv->async_handles); + G_OBJECT_CLASS (gedit_file_browser_store_parent_class)->finalize (object); +} + +static void +set_gvalue_from_node (GValue *value, + FileBrowserNode *node) +{ + if (node == NULL) + g_value_set_object (value, NULL); + else + g_value_set_object (value, node->file); +} + +static void +gedit_file_browser_store_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserStore *obj = GEDIT_FILE_BROWSER_STORE (object); + + switch (prop_id) + { + case PROP_ROOT: + set_gvalue_from_node (value, obj->priv->root); + break; + case PROP_VIRTUAL_ROOT: + set_gvalue_from_node (value, obj->priv->virtual_root); + break; + case PROP_FILTER_MODE: + g_value_set_flags (value, obj->priv->filter_mode); + break; + case PROP_BINARY_PATTERNS: + g_value_set_boxed (value, obj->priv->binary_patterns); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_file_browser_store_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserStore *obj = GEDIT_FILE_BROWSER_STORE (object); + + switch (prop_id) + { + case PROP_ROOT: + gedit_file_browser_store_set_root (obj, G_FILE (g_value_get_object (value))); + break; + case PROP_FILTER_MODE: + gedit_file_browser_store_set_filter_mode (obj, g_value_get_flags (value)); + break; + case PROP_BINARY_PATTERNS: + gedit_file_browser_store_set_binary_patterns (obj, g_value_get_boxed (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_file_browser_store_class_init (GeditFileBrowserStoreClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->finalize = gedit_file_browser_store_finalize; + object_class->get_property = gedit_file_browser_store_get_property; + object_class->set_property = gedit_file_browser_store_set_property; + + g_object_class_install_property (object_class, PROP_ROOT, + g_param_spec_object ("root", + "Root", + "The root location", + G_TYPE_FILE, + G_PARAM_CONSTRUCT | G_PARAM_READWRITE)); + + g_object_class_install_property (object_class, PROP_VIRTUAL_ROOT, + g_param_spec_object ("virtual-root", + "Virtual Root", + "The virtual root location", + G_TYPE_FILE, + G_PARAM_READABLE)); + + g_object_class_install_property (object_class, PROP_FILTER_MODE, + g_param_spec_flags ("filter-mode", + "Filter Mode", + "The filter mode", + GEDIT_TYPE_FILE_BROWSER_STORE_FILTER_MODE, + gedit_file_browser_store_filter_mode_get_default (), + G_PARAM_READWRITE)); + + g_object_class_install_property (object_class, PROP_BINARY_PATTERNS, + g_param_spec_boxed ("binary-patterns", + "Binary Patterns", + "The binary patterns", + G_TYPE_STRV, + G_PARAM_READWRITE)); + + model_signals[BEGIN_LOADING] = + g_signal_new ("begin-loading", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, begin_loading), + NULL, NULL, NULL, + G_TYPE_NONE, 1, GTK_TYPE_TREE_ITER); + model_signals[END_LOADING] = + g_signal_new ("end-loading", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, end_loading), + NULL, NULL, NULL, + G_TYPE_NONE, 1, GTK_TYPE_TREE_ITER); + model_signals[ERROR] = + g_signal_new ("error", G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, error), + NULL, NULL, NULL, + G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_STRING); + model_signals[NO_TRASH] = + g_signal_new ("no-trash", G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, no_trash), + g_signal_accumulator_true_handled, NULL, NULL, + G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); + model_signals[RENAME] = + g_signal_new ("rename", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, rename), + NULL, NULL, NULL, + G_TYPE_NONE, 2, G_TYPE_FILE, G_TYPE_FILE); + model_signals[BEGIN_REFRESH] = + g_signal_new ("begin-refresh", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, begin_refresh), + NULL, NULL, NULL, + G_TYPE_NONE, 0); + model_signals[END_REFRESH] = + g_signal_new ("end-refresh", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, end_refresh), + NULL, NULL, NULL, + G_TYPE_NONE, 0); + model_signals[UNLOAD] = + g_signal_new ("unload", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, unload), + NULL, NULL, NULL, + G_TYPE_NONE, 1, G_TYPE_FILE); + model_signals[BEFORE_ROW_DELETED] = + g_signal_new ("before-row-deleted", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserStoreClass, before_row_deleted), + NULL, NULL, NULL, + G_TYPE_NONE, 1, + GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE); +} + +static void +gedit_file_browser_store_class_finalize (GeditFileBrowserStoreClass *klass) +{ +} + +static void +gedit_file_browser_store_iface_init (GtkTreeModelIface *iface) +{ + iface->get_flags = gedit_file_browser_store_get_flags; + iface->get_n_columns = gedit_file_browser_store_get_n_columns; + iface->get_column_type = gedit_file_browser_store_get_column_type; + iface->get_iter = gedit_file_browser_store_get_iter; + iface->get_path = gedit_file_browser_store_get_path; + iface->get_value = gedit_file_browser_store_get_value; + iface->iter_next = gedit_file_browser_store_iter_next; + iface->iter_children = gedit_file_browser_store_iter_children; + iface->iter_has_child = gedit_file_browser_store_iter_has_child; + iface->iter_n_children = gedit_file_browser_store_iter_n_children; + iface->iter_nth_child = gedit_file_browser_store_iter_nth_child; + iface->iter_parent = gedit_file_browser_store_iter_parent; + iface->row_inserted = gedit_file_browser_store_row_inserted; +} + +static void +gedit_file_browser_store_drag_source_init (GtkTreeDragSourceIface *iface) +{ + iface->row_draggable = gedit_file_browser_store_row_draggable; + iface->drag_data_delete = gedit_file_browser_store_drag_data_delete; + iface->drag_data_get = gedit_file_browser_store_drag_data_get; +} + +static void +gedit_file_browser_store_init (GeditFileBrowserStore *obj) +{ + obj->priv = gedit_file_browser_store_get_instance_private (obj); + + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION] = G_TYPE_FILE; + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP] = G_TYPE_STRING; + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS] = G_TYPE_UINT; + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_ICON] = GDK_TYPE_PIXBUF; + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_ICON_NAME] = G_TYPE_STRING; + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_NAME] = G_TYPE_STRING; + obj->priv->column_types[GEDIT_FILE_BROWSER_STORE_COLUMN_EMBLEM] = GDK_TYPE_PIXBUF; + + /* Default filter mode is hiding the hidden files */ + obj->priv->filter_mode = gedit_file_browser_store_filter_mode_get_default (); + obj->priv->sort_func = model_sort_default; +} + +static gboolean +node_has_parent (FileBrowserNode *node, + FileBrowserNode *parent) +{ + if (node->parent == NULL) + return FALSE; + + if (node->parent == parent) + return TRUE; + + return node_has_parent (node->parent, parent); +} + +static gboolean +node_in_tree (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + return node_has_parent (node, model->priv->virtual_root); +} + +static gboolean +model_node_visibility (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + if (node == NULL) + return FALSE; + + if (NODE_IS_DUMMY (node)) + return !NODE_IS_HIDDEN (node); + + if (node == model->priv->virtual_root) + return TRUE; + + if (!node_has_parent (node, model->priv->virtual_root)) + return FALSE; + + return !NODE_IS_FILTERED (node); +} + +static gboolean +model_node_inserted (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + return node == model->priv->virtual_root || + (model_node_visibility (model, node) && node->inserted); +} + +/* Interface implementation */ + +static GtkTreeModelFlags +gedit_file_browser_store_get_flags (GtkTreeModel *tree_model) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), (GtkTreeModelFlags) 0); + + return GTK_TREE_MODEL_ITERS_PERSIST; +} + +static gint +gedit_file_browser_store_get_n_columns (GtkTreeModel *tree_model) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), 0); + + return GEDIT_FILE_BROWSER_STORE_COLUMN_NUM; +} + +static GType +gedit_file_browser_store_get_column_type (GtkTreeModel *tree_model, + gint idx) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), G_TYPE_INVALID); + g_return_val_if_fail (idx < GEDIT_FILE_BROWSER_STORE_COLUMN_NUM && idx >= 0, G_TYPE_INVALID); + + return GEDIT_FILE_BROWSER_STORE (tree_model)->priv->column_types[idx]; +} + +static gboolean +gedit_file_browser_store_get_iter (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreePath *path) +{ + GeditFileBrowserStore *model; + FileBrowserNode *node; + gint *indices, depth; + + g_assert (GEDIT_IS_FILE_BROWSER_STORE (tree_model)); + g_assert (path != NULL); + + model = GEDIT_FILE_BROWSER_STORE (tree_model); + indices = gtk_tree_path_get_indices (path); + depth = gtk_tree_path_get_depth (path); + node = model->priv->virtual_root; + + for (guint i = 0; i < depth; ++i) + { + GSList *item; + gint num = 0; + + if (node == NULL) + return FALSE; + + if (!NODE_IS_DIR (node)) + return FALSE; + + for (item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + FileBrowserNode *child = (FileBrowserNode *)(item->data); + + if (model_node_inserted (model, child)) + { + if (num == indices[i]) + break; + + num++; + } + } + + if (item == NULL) + return FALSE; + + node = (FileBrowserNode *)(item->data); + } + + iter->user_data = node; + iter->user_data2 = NULL; + iter->user_data3 = NULL; + + return node != NULL; +} + +static GtkTreePath * +gedit_file_browser_store_get_path_real (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + GtkTreePath *path = gtk_tree_path_new (); + gint num = 0; + + while (node != model->priv->virtual_root) + { + if (node->parent == NULL) + { + gtk_tree_path_free (path); + return NULL; + } + + num = 0; + + for (GSList *item = FILE_BROWSER_NODE_DIR (node->parent)->children; item; item = item->next) + { + FileBrowserNode *check = (FileBrowserNode *)(item->data); + + if (model_node_visibility (model, check) && (check == node || check->inserted)) + { + if (check == node) + { + gtk_tree_path_prepend_index (path, num); + break; + } + + ++num; + } + else if (check == node) + { + if (NODE_IS_DUMMY (node)) + g_warning ("Dummy not visible???"); + + gtk_tree_path_free (path); + return NULL; + } + } + + node = node->parent; + } + + return path; +} + +static GtkTreePath * +gedit_file_browser_store_get_path (GtkTreeModel *tree_model, + GtkTreeIter *iter) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), NULL); + g_return_val_if_fail (iter != NULL, NULL); + g_return_val_if_fail (iter->user_data != NULL, NULL); + + return gedit_file_browser_store_get_path_real (GEDIT_FILE_BROWSER_STORE (tree_model), + (FileBrowserNode *)(iter->user_data)); +} + +static void +gedit_file_browser_store_get_value (GtkTreeModel *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value) +{ + FileBrowserNode *node; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model)); + g_return_if_fail (iter != NULL); + g_return_if_fail (iter->user_data != NULL); + + node = (FileBrowserNode *)(iter->user_data); + + g_value_init (value, GEDIT_FILE_BROWSER_STORE (tree_model)->priv->column_types[column]); + + switch (column) + { + case GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION: + set_gvalue_from_node (value, node); + break; + case GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP: + g_value_set_string (value, node->markup); + break; + case GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS: + g_value_set_uint (value, node->flags); + break; + case GEDIT_FILE_BROWSER_STORE_COLUMN_ICON: + g_value_set_object (value, node->icon); + break; + case GEDIT_FILE_BROWSER_STORE_COLUMN_ICON_NAME: + g_value_set_string (value, node->icon_name); + break; + case GEDIT_FILE_BROWSER_STORE_COLUMN_NAME: + g_value_set_string (value, node->name); + break; + case GEDIT_FILE_BROWSER_STORE_COLUMN_EMBLEM: + g_value_set_object (value, node->emblem); + break; + default: + g_return_if_reached (); + } +} + +static gboolean +gedit_file_browser_store_iter_next (GtkTreeModel *tree_model, + GtkTreeIter *iter) +{ + GeditFileBrowserStore *model; + FileBrowserNode *node; + GSList *first; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), FALSE); + g_return_val_if_fail (iter != NULL, FALSE); + g_return_val_if_fail (iter->user_data != NULL, FALSE); + + model = GEDIT_FILE_BROWSER_STORE (tree_model); + node = (FileBrowserNode *)(iter->user_data); + + if (node->parent == NULL) + return FALSE; + + first = g_slist_next (g_slist_find (FILE_BROWSER_NODE_DIR (node->parent)->children, node)); + + for (GSList *item = first; item; item = item->next) + { + if (model_node_inserted (model, (FileBrowserNode *)(item->data))) + { + iter->user_data = item->data; + return TRUE; + } + } + + return FALSE; +} + +static gboolean +gedit_file_browser_store_iter_children (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent) +{ + FileBrowserNode *node; + GeditFileBrowserStore *model; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), FALSE); + g_return_val_if_fail (parent == NULL || parent->user_data != NULL, FALSE); + + model = GEDIT_FILE_BROWSER_STORE (tree_model); + + if (parent == NULL) + node = model->priv->virtual_root; + else + node = (FileBrowserNode *)(parent->user_data); + + if (node == NULL) + return FALSE; + + if (!NODE_IS_DIR (node)) + return FALSE; + + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + if (model_node_inserted (model, (FileBrowserNode *)(item->data))) + { + iter->user_data = item->data; + return TRUE; + } + } + + return FALSE; +} + +static gboolean +filter_tree_model_iter_has_child_real (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + if (!NODE_IS_DIR (node)) + return FALSE; + + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + if (model_node_inserted (model, (FileBrowserNode *)(item->data))) + return TRUE; + } + + return FALSE; +} + +static gboolean +gedit_file_browser_store_iter_has_child (GtkTreeModel *tree_model, + GtkTreeIter *iter) +{ + FileBrowserNode *node; + GeditFileBrowserStore *model; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), FALSE); + g_return_val_if_fail (iter == NULL || iter->user_data != NULL, FALSE); + + model = GEDIT_FILE_BROWSER_STORE (tree_model); + + if (iter == NULL) + node = model->priv->virtual_root; + else + node = (FileBrowserNode *)(iter->user_data); + + return filter_tree_model_iter_has_child_real (model, node); +} + +static gint +gedit_file_browser_store_iter_n_children (GtkTreeModel *tree_model, + GtkTreeIter *iter) +{ + FileBrowserNode *node; + GeditFileBrowserStore *model; + gint num = 0; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), FALSE); + g_return_val_if_fail (iter == NULL || iter->user_data != NULL, FALSE); + + model = GEDIT_FILE_BROWSER_STORE (tree_model); + + if (iter == NULL) + node = model->priv->virtual_root; + else + node = (FileBrowserNode *)(iter->user_data); + + if (!NODE_IS_DIR (node)) + return 0; + + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + if (model_node_inserted (model, (FileBrowserNode *)(item->data))) + ++num; + } + + return num; +} + +static gboolean +gedit_file_browser_store_iter_nth_child (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint n) +{ + FileBrowserNode *node; + GeditFileBrowserStore *model; + gint num = 0; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), FALSE); + g_return_val_if_fail (parent == NULL || parent->user_data != NULL, FALSE); + + model = GEDIT_FILE_BROWSER_STORE (tree_model); + + if (parent == NULL) + node = model->priv->virtual_root; + else + node = (FileBrowserNode *)(parent->user_data); + + if (!NODE_IS_DIR (node)) + return FALSE; + + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + if (model_node_inserted (model, (FileBrowserNode *)(item->data))) + { + if (num == n) + { + iter->user_data = item->data; + return TRUE; + } + + ++num; + } + } + + return FALSE; +} + +static gboolean +gedit_file_browser_store_iter_parent (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *child) +{ + FileBrowserNode *node; + GeditFileBrowserStore *model; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model), FALSE); + g_return_val_if_fail (child != NULL, FALSE); + g_return_val_if_fail (child->user_data != NULL, FALSE); + + node = (FileBrowserNode *)(child->user_data); + model = GEDIT_FILE_BROWSER_STORE (tree_model); + + if (!node_in_tree (model, node)) + return FALSE; + + if (node->parent == NULL) + return FALSE; + + iter->user_data = node->parent; + return TRUE; +} + +static void +gedit_file_browser_store_row_inserted (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter) +{ + FileBrowserNode *node = (FileBrowserNode *)(iter->user_data); + + node->inserted = TRUE; +} + +static gboolean +gedit_file_browser_store_row_draggable (GtkTreeDragSource *drag_source, + GtkTreePath *path) +{ + GtkTreeIter iter; + GeditFileBrowserStoreFlag flags; + + if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (drag_source), &iter, path)) + return FALSE; + + gtk_tree_model_get (GTK_TREE_MODEL (drag_source), &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + return !FILE_IS_DUMMY (flags); +} + +static gboolean +gedit_file_browser_store_drag_data_delete (GtkTreeDragSource *drag_source, + GtkTreePath *path) +{ + return FALSE; +} + +static gboolean +gedit_file_browser_store_drag_data_get (GtkTreeDragSource *drag_source, + GtkTreePath *path, + GtkSelectionData *selection_data) +{ + GtkTreeIter iter; + GFile *location; + gchar *uris[2] = {0, }; + gboolean ret; + + if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (drag_source), &iter, path)) + return FALSE; + + gtk_tree_model_get (GTK_TREE_MODEL (drag_source), &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + g_assert (location); + + uris[0] = g_file_get_uri (location); + ret = gtk_selection_data_set_uris (selection_data, uris); + + g_free (uris[0]); + g_object_unref (location); + + return ret; +} + +#define FILTER_HIDDEN(mode) (mode & GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN) +#define FILTER_BINARY(mode) (mode & GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY) + +/* Private */ +static void +model_begin_loading (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + GtkTreeIter iter; + + iter.user_data = node; + g_signal_emit (model, model_signals[BEGIN_LOADING], 0, &iter); +} + +static void +model_end_loading (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + GtkTreeIter iter; + + iter.user_data = node; + g_signal_emit (model, model_signals[END_LOADING], 0, &iter); +} + +static void +model_node_update_visibility (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + GtkTreeIter iter; + + node->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED; + + if (FILTER_HIDDEN (model->priv->filter_mode) && + NODE_IS_HIDDEN (node)) + { + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED; + return; + } + + if (FILTER_BINARY (model->priv->filter_mode) && !NODE_IS_DIR (node)) + { + if (!NODE_IS_TEXT (node)) + { + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED; + return; + } + else if (model->priv->binary_patterns != NULL) + { + gssize name_length = strlen (node->name); + gchar *name_reversed = g_utf8_strreverse (node->name, name_length); + + for (guint i = 0; i < model->priv->binary_pattern_specs->len; ++i) + { + GPatternSpec *spec = g_ptr_array_index (model->priv->binary_pattern_specs, i); + + if (g_pattern_match (spec, name_length, node->name, name_reversed)) + { + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED; + g_free (name_reversed); + return; + } + } + + g_free (name_reversed); + } + } + + if (model->priv->filter_func) + { + iter.user_data = node; + + if (!model->priv->filter_func (model, &iter, model->priv->filter_user_data)) + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED; + } +} + +static gint +collate_nodes (FileBrowserNode *node1, + FileBrowserNode *node2) +{ + if (node1->name == NULL) + { + return -1; + } + else if (node2->name == NULL) + { + return 1; + } + else + { + gchar *k1 = g_utf8_collate_key_for_filename (node1->name, -1); + gchar *k2 = g_utf8_collate_key_for_filename (node2->name, -1); + gint result = strcmp (k1, k2); + + g_free (k1); + g_free (k2); + + return result; + } +} + +static gint +model_sort_default (FileBrowserNode *node1, + FileBrowserNode *node2) +{ + gint f1 = NODE_IS_DUMMY (node1); + gint f2 = NODE_IS_DUMMY (node2); + + if (f1 && f2) + return 0; + else if (f1 || f2) + return f1 ? -1 : 1; + + f1 = NODE_IS_DIR (node1); + f2 = NODE_IS_DIR (node2); + + if (f1 != f2) + return f1 ? -1 : 1; + + return collate_nodes (node1, node2); +} + +static void +model_resort_node (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (node->parent); + + if (!model_node_visibility (model, node->parent)) + { + /* Just sort the children of the parent */ + dir->children = g_slist_sort (dir->children, (GCompareFunc)(model->priv->sort_func)); + } + else + { + GtkTreeIter iter; + GtkTreePath *path; + gint *neworder; + gint pos = 0; + + /* Store current positions */ + for (GSList *item = dir->children; item; item = item->next) + { + FileBrowserNode *child = (FileBrowserNode *)(item->data); + + if (model_node_visibility (model, child)) + child->pos = pos++; + } + + dir->children = g_slist_sort (dir->children, (GCompareFunc)(model->priv->sort_func)); + neworder = g_new (gint, pos); + pos = 0; + + /* Store the new positions */ + for (GSList *item = dir->children; item; item = item->next) + { + FileBrowserNode *child = (FileBrowserNode *)(item->data); + + if (model_node_visibility (model, child)) + neworder[pos++] = child->pos; + } + + iter.user_data = node->parent; + path = gedit_file_browser_store_get_path_real (model, node->parent); + + gtk_tree_model_rows_reordered (GTK_TREE_MODEL (model), path, &iter, neworder); + + g_free (neworder); + gtk_tree_path_free (path); + } +} + +static void +row_changed (GeditFileBrowserStore *model, + GtkTreePath **path, + GtkTreeIter *iter) +{ + GtkTreeRowReference *ref = gtk_tree_row_reference_new (GTK_TREE_MODEL (model), *path); + + /* Insert a copy of the actual path here because the row-inserted + signal may alter the path */ + gtk_tree_model_row_changed (GTK_TREE_MODEL (model), *path, iter); + gtk_tree_path_free (*path); + + *path = gtk_tree_row_reference_get_path (ref); + gtk_tree_row_reference_free (ref); +} + +static void +row_inserted (GeditFileBrowserStore *model, + GtkTreePath **path, + GtkTreeIter *iter) +{ + /* This function creates a row reference for the path because it's + uncertain what might change the actual model/view when we insert + a node, maybe another directory load is triggered for example. + Because functions that use this function rely on the notion that + the path remains pointed towards the inserted node, we use the + reference to keep track. */ + GtkTreeRowReference *ref = gtk_tree_row_reference_new (GTK_TREE_MODEL (model), *path); + GtkTreePath *copy = gtk_tree_path_copy (*path); + + gtk_tree_model_row_inserted (GTK_TREE_MODEL (model), copy, iter); + gtk_tree_path_free (copy); + + if (ref) + { + gtk_tree_path_free (*path); + + /* To restore the path, we get the path from the reference. But, since + we inserted a row, the path will be one index further than the + actual path of our node. We therefore call gtk_tree_path_prev */ + *path = gtk_tree_row_reference_get_path (ref); + gtk_tree_path_prev (*path); + } + + gtk_tree_row_reference_free (ref); +} + +static void +row_deleted (GeditFileBrowserStore *model, + FileBrowserNode *node, + const GtkTreePath *path) +{ + gboolean hidden; + GtkTreePath *copy; + + /* We should always be called when the row is still inserted */ + g_return_if_fail (node->inserted == TRUE || NODE_IS_DUMMY (node)); + + hidden = FILE_IS_HIDDEN (node->flags); + node->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + /* Create temporary copies of the path as the signals may alter it */ + + copy = gtk_tree_path_copy (path); + g_signal_emit (model, model_signals[BEFORE_ROW_DELETED], 0, copy); + gtk_tree_path_free (copy); + + node->inserted = FALSE; + + if (hidden) + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + copy = gtk_tree_path_copy (path); + gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), copy); + gtk_tree_path_free (copy); +} + +static void +model_refilter_node (GeditFileBrowserStore *model, + FileBrowserNode *node, + GtkTreePath **path) +{ + gboolean old_visible; + gboolean new_visible; + FileBrowserNodeDir *dir; + GSList *item; + GtkTreeIter iter; + GtkTreePath *tmppath = NULL; + gboolean in_tree; + + if (node == NULL) + return; + + old_visible = model_node_visibility (model, node); + model_node_update_visibility (model, node); + + in_tree = node_in_tree (model, node); + + if (path == NULL) + { + if (in_tree) + tmppath = gedit_file_browser_store_get_path_real (model, node); + else + tmppath = gtk_tree_path_new_first (); + + path = &tmppath; + } + + if (NODE_IS_DIR (node)) + { + if (in_tree) + gtk_tree_path_down (*path); + + dir = FILE_BROWSER_NODE_DIR (node); + + for (item = dir->children; item; item = item->next) + model_refilter_node (model, (FileBrowserNode *)(item->data), path); + + if (in_tree) + gtk_tree_path_up (*path); + } + + if (in_tree) + { + new_visible = model_node_visibility (model, node); + + if (old_visible != new_visible) + { + if (old_visible) + { + row_deleted (model, node, *path); + } + else + { + iter.user_data = node; + row_inserted (model, path, &iter); + gtk_tree_path_next (*path); + } + } + else if (old_visible) + { + gtk_tree_path_next (*path); + } + } + + model_check_dummy (model, node); + + if (tmppath) + gtk_tree_path_free (tmppath); +} + +static void +model_refilter (GeditFileBrowserStore *model) +{ + model_refilter_node (model, model->priv->root, NULL); +} + +static void +file_browser_node_set_name (FileBrowserNode *node) +{ + g_free (node->name); + g_free (node->markup); + + if (node->file) + node->name = gedit_file_browser_utils_file_basename (node->file); + else + node->name = NULL; + + if (node->name) + node->markup = g_markup_escape_text (node->name, -1); + else + node->markup = NULL; +} + +static void +file_browser_node_init (FileBrowserNode *node, + GFile *file, + FileBrowserNode *parent) +{ + if (file != NULL) + { + node->file = g_object_ref (file); + file_browser_node_set_name (node); + } + + node->parent = parent; +} + +static FileBrowserNode * +file_browser_node_new (GFile *file, + FileBrowserNode *parent) +{ + FileBrowserNode *node = g_slice_new0 (FileBrowserNode); + + file_browser_node_init (node, file, parent); + return node; +} + +static FileBrowserNode * +file_browser_node_dir_new (GeditFileBrowserStore *model, + GFile *file, + FileBrowserNode *parent) +{ + FileBrowserNode *node = (FileBrowserNode *)g_slice_new0 (FileBrowserNodeDir); + + file_browser_node_init (node, file, parent); + + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_DIRECTORY; + + FILE_BROWSER_NODE_DIR (node)->model = model; + + return node; +} + +static void +file_browser_node_free_children (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + if (node == NULL || !NODE_IS_DIR (node)) + return; + + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + file_browser_node_free (model, (FileBrowserNode *)(item->data)); + + g_slist_free (FILE_BROWSER_NODE_DIR (node)->children); + FILE_BROWSER_NODE_DIR (node)->children = NULL; + + /* This node is no longer loaded */ + node->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_LOADED; +} + +static void +file_browser_node_free (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + if (node == NULL) + return; + + if (NODE_IS_DIR (node)) + { + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (node); + + if (dir->cancellable) + { + g_cancellable_cancel (dir->cancellable); + g_object_unref (dir->cancellable); + + model_end_loading (model, node); + } + + file_browser_node_free_children (model, node); + + if (dir->monitor) + { + g_file_monitor_cancel (dir->monitor); + g_object_unref (dir->monitor); + } + } + + if (node->file) + { + g_signal_emit (model, model_signals[UNLOAD], 0, node->file); + g_object_unref (node->file); + } + + if (node->icon) + g_object_unref (node->icon); + + if (node->emblem) + g_object_unref (node->emblem); + + g_free (node->icon_name); + g_free (node->name); + g_free (node->markup); + + if (NODE_IS_DIR (node)) + g_slice_free (FileBrowserNodeDir, (FileBrowserNodeDir *)node); + else + g_slice_free (FileBrowserNode, (FileBrowserNode *)node); +} + +/** + * model_remove_node_children: + * @model: the #GeditFileBrowserStore + * @node: the FileBrowserNode to remove + * @path: the path of the node, or NULL to let the path be calculated + * @free_nodes: whether to also remove the nodes from memory + * + * Removes all the children of node from the model. This function is used + * to remove the child nodes from the _model_. Don't use it to just free + * a node. + */ +static void +model_remove_node_children (GeditFileBrowserStore *model, + FileBrowserNode *node, + GtkTreePath *path, + gboolean free_nodes) +{ + FileBrowserNodeDir *dir; + GtkTreePath *path_child; + GSList *list; + + if (node == NULL || !NODE_IS_DIR (node)) + return; + + dir = FILE_BROWSER_NODE_DIR (node); + + if (dir->children == NULL) + return; + + if (!model_node_visibility (model, node)) + { + /* Node is invisible and therefore the children can just be freed */ + if (free_nodes) + file_browser_node_free_children (model, node); + + return; + } + + if (path == NULL) + path_child = gedit_file_browser_store_get_path_real (model, node); + else + path_child = gtk_tree_path_copy (path); + + gtk_tree_path_down (path_child); + + list = g_slist_copy (dir->children); + + for (GSList *item = list; item; item = item->next) + model_remove_node (model, (FileBrowserNode *)(item->data), path_child, free_nodes); + + g_slist_free (list); + gtk_tree_path_free (path_child); +} + +/** + * model_remove_node: + * @model: the #GeditFileBrowserStore + * @node: the FileBrowserNode to remove + * @path: the path to use to remove this node, or NULL to use the path + * calculated from the node itself + * @free_nodes: whether to also remove the nodes from memory + * + * Removes this node and all its children from the model. This function is used + * to remove the node from the _model_. Don't use it to just free + * a node. + */ +static void +model_remove_node (GeditFileBrowserStore *model, + FileBrowserNode *node, + GtkTreePath *path, + gboolean free_nodes) +{ + gboolean free_path = FALSE; + FileBrowserNode *parent; + + if (path == NULL) + { + path = gedit_file_browser_store_get_path_real (model, node); + free_path = TRUE; + } + + model_remove_node_children (model, node, path, free_nodes); + + /* Only delete if the node is visible in the tree (but only when it's not the virtual root) */ + if (model_node_visibility (model, node) && node != model->priv->virtual_root) + row_deleted (model, node, path); + + if (free_path) + gtk_tree_path_free (path); + + parent = node->parent; + + /* Remove the node from the parents children list */ + if (free_nodes && parent) + FILE_BROWSER_NODE_DIR (node->parent)->children = + g_slist_remove (FILE_BROWSER_NODE_DIR (node->parent)->children, node); + + /* If this is the virtual root, than set the parent as the virtual root */ + if (node == model->priv->virtual_root) + set_virtual_root_from_node (model, parent); + else if (parent && model_node_visibility (model, parent) && !(free_nodes && NODE_IS_DUMMY(node))) + model_check_dummy (model, parent); + + /* Now free the node if necessary */ + if (free_nodes) + file_browser_node_free (model, node); +} + +/** + * model_clear: + * @model: the #GeditFileBrowserStore + * @free_nodes: whether to also remove the nodes from memory + * + * Removes all nodes from the model. This function is used + * to remove all the nodes from the _model_. Don't use it to just free the + * nodes in the model. + */ +static void +model_clear (GeditFileBrowserStore *model, + gboolean free_nodes) +{ + GtkTreePath *path = gtk_tree_path_new (); + + model_remove_node_children (model, model->priv->virtual_root, path, free_nodes); + gtk_tree_path_free (path); + + /* Remove the dummy if there is one */ + if (model->priv->virtual_root) + { + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (model->priv->virtual_root); + + if (dir->children != NULL) + { + FileBrowserNode *dummy = (FileBrowserNode *)(dir->children->data); + + if (NODE_IS_DUMMY (dummy) && model_node_visibility (model, dummy)) + { + path = gtk_tree_path_new_first (); + row_deleted (model, dummy, path); + gtk_tree_path_free (path); + } + } + } +} + +static void +file_browser_node_unload (GeditFileBrowserStore *model, + FileBrowserNode *node, + gboolean remove_children) +{ + FileBrowserNodeDir *dir; + + if (node == NULL) + return; + + if (!NODE_IS_DIR (node) || !NODE_LOADED (node)) + return; + + dir = FILE_BROWSER_NODE_DIR (node); + + if (remove_children) + model_remove_node_children (model, node, NULL, TRUE); + + if (dir->cancellable) + { + g_cancellable_cancel (dir->cancellable); + g_object_unref (dir->cancellable); + + model_end_loading (model, node); + dir->cancellable = NULL; + } + + if (dir->monitor) + { + g_file_monitor_cancel (dir->monitor); + g_object_unref (dir->monitor); + + dir->monitor = NULL; + } + + node->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_LOADED; +} + +static void +model_recomposite_icon_real (GeditFileBrowserStore *tree_model, + FileBrowserNode *node, + GFileInfo *info) +{ + GdkPixbuf *icon; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model)); + g_return_if_fail (node != NULL); + + if (node->file == NULL) + return; + + if (info) + { + GIcon *gicon = g_file_info_get_icon (info); + + if (gicon != NULL) + icon = gedit_file_browser_utils_pixbuf_from_icon (gicon, GTK_ICON_SIZE_MENU); + else + icon = NULL; + } + else + { + icon = gedit_file_browser_utils_pixbuf_from_file (node->file, GTK_ICON_SIZE_MENU, FALSE); + } + + /* Fallback to the same icon as the file browser */ + if (!icon) + icon = gedit_file_browser_utils_pixbuf_from_theme ("text-x-generic", GTK_ICON_SIZE_MENU); + + if (node->icon) + g_object_unref (node->icon); + + if (node->emblem) + { + gint icon_size; + + gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &icon_size); + + if (icon == NULL) + { + node->icon = gdk_pixbuf_new (gdk_pixbuf_get_colorspace (node->emblem), + gdk_pixbuf_get_has_alpha (node->emblem), + gdk_pixbuf_get_bits_per_sample (node->emblem), + icon_size, + icon_size); + } + else + { + node->icon = gdk_pixbuf_copy (icon); + g_object_unref (icon); + } + + gdk_pixbuf_composite (node->emblem, node->icon, + icon_size - 10, icon_size - 10, 10, + 10, icon_size - 10, icon_size - 10, + 1, 1, GDK_INTERP_NEAREST, 255); + } + else + { + node->icon = icon; + } +} + +static void +model_recomposite_icon (GeditFileBrowserStore *tree_model, + GtkTreeIter *iter) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model)); + g_return_if_fail (iter != NULL); + g_return_if_fail (iter->user_data != NULL); + + model_recomposite_icon_real (tree_model, + (FileBrowserNode *)(iter->user_data), + NULL); +} + +static FileBrowserNode * +model_create_dummy_node (GeditFileBrowserStore *model, + FileBrowserNode *parent) +{ + FileBrowserNode *dummy; + + dummy = file_browser_node_new (NULL, parent); + dummy->name = g_strdup (_("(Empty)")); + dummy->markup = g_markup_escape_text (dummy->name, -1); + + dummy->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_DUMMY; + dummy->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + return dummy; +} + +static FileBrowserNode * +model_add_dummy_node (GeditFileBrowserStore *model, + FileBrowserNode *parent) +{ + FileBrowserNode *dummy; + + dummy = model_create_dummy_node (model, parent); + + if (model_node_visibility (model, parent)) + dummy->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + model_add_node (model, dummy, parent); + + return dummy; +} + +static void +model_check_dummy (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + /* Hide the dummy child if needed */ + if (NODE_IS_DIR (node)) + { + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (node); + FileBrowserNode *dummy; + GtkTreeIter iter; + GtkTreePath *path; + guint flags; + + if (dir->children == NULL) + { + model_add_dummy_node (model, node); + return; + } + + dummy = (FileBrowserNode *)(dir->children->data); + + if (!NODE_IS_DUMMY (dummy)) + { + dummy = model_create_dummy_node (model, node); + dir->children = g_slist_prepend (dir->children, dummy); + } + + if (!model_node_visibility (model, node)) + { + dummy->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + return; + } + + /* Temporarily set the node to invisible to check + for real children */ + flags = dummy->flags; + dummy->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + if (!filter_tree_model_iter_has_child_real (model, node)) + { + dummy->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + if (FILE_IS_HIDDEN (flags)) + { + /* Was hidden, needs to be inserted */ + iter.user_data = dummy; + path = gedit_file_browser_store_get_path_real (model, dummy); + + row_inserted (model, &path, &iter); + gtk_tree_path_free (path); + } + } + else if (!FILE_IS_HIDDEN (flags)) + { + /* Was shown, needs to be removed */ + + /* To get the path we need to set it to visible temporarily */ + dummy->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + path = gedit_file_browser_store_get_path_real (model, dummy); + dummy->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + row_deleted (model, dummy, path); + gtk_tree_path_free (path); + } + } +} + +static void +insert_node_sorted (GeditFileBrowserStore *model, + FileBrowserNode *child, + FileBrowserNode *parent) +{ + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (parent); + + if (model->priv->sort_func == NULL) + dir->children = g_slist_append (dir->children, child); + else + dir->children = g_slist_insert_sorted (dir->children, child, (GCompareFunc)(model->priv->sort_func)); +} + +static void +model_add_node (GeditFileBrowserStore *model, + FileBrowserNode *child, + FileBrowserNode *parent) +{ + /* Add child to parents children */ + insert_node_sorted (model, child, parent); + + if (model_node_visibility (model, parent) && + model_node_visibility (model, child)) + { + GtkTreePath *path = gedit_file_browser_store_get_path_real (model, child); + GtkTreeIter iter; + + iter.user_data = child; + + /* Emit row inserted */ + row_inserted (model, &path, &iter); + gtk_tree_path_free (path); + } + + model_check_dummy (model, parent); + model_check_dummy (model, child); +} + +static void +model_add_nodes_batch (GeditFileBrowserStore *model, + GSList *children, + FileBrowserNode *parent) +{ + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (parent); + GSList *sorted_children = g_slist_sort (children, (GCompareFunc)model->priv->sort_func); + GSList *child = sorted_children; + GSList *prev = NULL; + GSList *l = dir->children; + + model_check_dummy (model, parent); + + while (child) + { + FileBrowserNode *node = child->data; + GtkTreeIter iter; + GtkTreePath *path; + + /* Reached the end of the first list, just append the second */ + if (l == NULL) + { + dir->children = g_slist_concat (dir->children, child); + + for (l = child; l; l = l->next) + { + if (model_node_visibility (model, parent) && + model_node_visibility (model, l->data)) + { + iter.user_data = l->data; + path = gedit_file_browser_store_get_path_real (model, l->data); + + /* Emit row inserted */ + row_inserted (model, &path, &iter); + gtk_tree_path_free (path); + } + + model_check_dummy (model, l->data); + } + + break; + } + + if (model->priv->sort_func (l->data, node) > 0) + { + GSList *next_child; + + if (prev == NULL) + { + /* Prepend to the list */ + dir->children = g_slist_prepend (dir->children, child); + } + else + { + prev->next = child; + } + + next_child = child->next; + prev = child; + child->next = l; + child = next_child; + + if (model_node_visibility (model, parent) && + model_node_visibility (model, node)) + { + iter.user_data = node; + path = gedit_file_browser_store_get_path_real (model, node); + + /* Emit row inserted */ + row_inserted (model, &path, &iter); + gtk_tree_path_free (path); + } + + model_check_dummy (model, node); + + /* Try again at the same l position with the next child */ + } + else + { + /* Move to the next item in the list */ + prev = l; + l = l->next; + } + } +} + +static gchar const * +backup_content_type (GFileInfo *info) +{ + gchar const *content; + + if (!g_file_info_get_is_backup (info)) + return NULL; + + content = g_file_info_get_content_type (info); + + if (!content || g_content_type_equals (content, "application/x-trash")) + return "text/plain"; + + return content; +} + +static gboolean +content_type_is_text (gchar const *content_type) +{ +#ifdef G_OS_WIN32 + gchar *mime; + gboolean ret; +#endif + + if (!content_type || g_content_type_is_unknown (content_type)) + return TRUE; + +#ifndef G_OS_WIN32 + return g_content_type_is_a (content_type, "text/plain"); +#else + if (g_content_type_is_a (content_type, "text")) + return TRUE; + + /* This covers a rare case in which on Windows the PerceivedType is + not set to "text" but the Content Type is set to text/plain */ + mime = g_content_type_get_mime_type (content_type); + ret = g_strcmp0 (mime, "text/plain"); + + g_free (mime); + + return ret; +#endif +} + +static void +file_browser_node_set_from_info (GeditFileBrowserStore *model, + FileBrowserNode *node, + GFileInfo *info, + gboolean isadded) +{ + gchar const *content; + gboolean free_info = FALSE; + GtkTreePath *path; + gchar *uri; + GError *error = NULL; + + if (info == NULL) + { + info = g_file_query_info (node->file, + STANDARD_ATTRIBUTE_TYPES, + G_FILE_QUERY_INFO_NONE, + NULL, + &error); + + if (!info) + { + if (!(error->domain == G_IO_ERROR && error->code == G_IO_ERROR_NOT_FOUND)) + { + uri = g_file_get_uri (node->file); + g_warning ("Could not get info for %s: %s", uri, error->message); + g_free (uri); + } + + g_error_free (error); + return; + } + + free_info = TRUE; + } + + if (g_file_info_get_is_hidden (info) || g_file_info_get_is_backup (info)) + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + + if (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY) + { + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_DIRECTORY; + } + else + { + if (!(content = backup_content_type (info))) + content = g_file_info_get_content_type (info); + + if (content_type_is_text (content)) + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_TEXT; + } + + model_recomposite_icon_real (model, node, info); + + if (free_info) + g_object_unref (info); + + if (isadded) + { + path = gedit_file_browser_store_get_path_real (model, node); + model_refilter_node (model, node, &path); + gtk_tree_path_free (path); + + model_check_dummy (model, node->parent); + } + else + { + model_node_update_visibility (model, node); + } +} + +static FileBrowserNode * +node_list_contains_file (GSList *children, + GFile *file) +{ + for (GSList *item = children; item; item = item->next) + { + FileBrowserNode *node = (FileBrowserNode *)(item->data); + + if (node->file != NULL && g_file_equal (node->file, file)) + return node; + } + + return NULL; +} + +static FileBrowserNode * +model_add_node_from_file (GeditFileBrowserStore *model, + FileBrowserNode *parent, + GFile *file, + GFileInfo *info) +{ + FileBrowserNode *node; + gboolean free_info = FALSE; + GError *error = NULL; + + if ((node = node_list_contains_file (FILE_BROWSER_NODE_DIR (parent)->children, file)) == NULL) + { + if (info == NULL) + { + info = g_file_query_info (file, + STANDARD_ATTRIBUTE_TYPES, + G_FILE_QUERY_INFO_NONE, + NULL, + &error); + free_info = TRUE; + } + + if (!info) + { + g_warning ("Error querying file info: %s", error->message); + g_error_free (error); + + /* FIXME: What to do now then... */ + node = file_browser_node_new (file, parent); + } + else if (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY) + { + node = file_browser_node_dir_new (model, file, parent); + } + else + { + node = file_browser_node_new (file, parent); + } + + file_browser_node_set_from_info (model, node, info, FALSE); + model_add_node (model, node, parent); + + if (info && free_info) + g_object_unref (info); + } + + return node; +} + +/* We pass in a copy of the list of parent->children so that we do + * not have to check if a file already exists among the ones we just + * added */ +static void +model_add_nodes_from_files (GeditFileBrowserStore *model, + FileBrowserNode *parent, + GSList *original_children, + GList *files) +{ + GSList *nodes = NULL; + + for (GList *item = files; item; item = item->next) + { + GFileInfo *info = G_FILE_INFO (item->data); + GFileType type = g_file_info_get_file_type (info); + gchar const *name; + GFile *file; + FileBrowserNode *node; + + /* Skip all non regular, non directory files */ + if (type != G_FILE_TYPE_REGULAR && + type != G_FILE_TYPE_DIRECTORY && + type != G_FILE_TYPE_SYMBOLIC_LINK) + { + g_object_unref (info); + continue; + } + + name = g_file_info_get_name (info); + + /* Skip '.' and '..' directories */ + if (type == G_FILE_TYPE_DIRECTORY && + (strcmp (name, ".") == 0 || + strcmp (name, "..") == 0)) + { + g_object_unref (info); + continue; + } + + file = g_file_get_child (parent->file, name); + if (!(node = node_list_contains_file (original_children, file))) + { + if (type == G_FILE_TYPE_DIRECTORY) + node = file_browser_node_dir_new (model, file, parent); + else + node = file_browser_node_new (file, parent); + + file_browser_node_set_from_info (model, node, info, FALSE); + + nodes = g_slist_prepend (nodes, node); + } + + g_object_unref (file); + g_object_unref (info); + } + + if (nodes) + model_add_nodes_batch (model, nodes, parent); +} + +static FileBrowserNode * +model_add_node_from_dir (GeditFileBrowserStore *model, + FileBrowserNode *parent, + GFile *file) +{ + FileBrowserNode *node; + + /* Check if it already exists */ + if ((node = node_list_contains_file (FILE_BROWSER_NODE_DIR (parent)->children, file)) == NULL) + { + node = file_browser_node_dir_new (model, file, parent); + file_browser_node_set_from_info (model, node, NULL, FALSE); + + if (node->name == NULL) + file_browser_node_set_name (node); + + node->icon_name = g_strdup ("folder-symbolic"); + + model_add_node (model, node, parent); + } + + return node; +} + +static void +on_directory_monitor_event (GFileMonitor *monitor, + GFile *file, + GFile *other_file, + GFileMonitorEvent event_type, + FileBrowserNode *parent) +{ + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (parent); + FileBrowserNode *node; + + switch (event_type) + { + case G_FILE_MONITOR_EVENT_DELETED: + node = node_list_contains_file (dir->children, file); + + if (node != NULL) + model_remove_node (dir->model, node, NULL, TRUE); + break; + case G_FILE_MONITOR_EVENT_CREATED: + if (g_file_query_exists (file, NULL)) + model_add_node_from_file (dir->model, parent, file, NULL); + + break; + default: + break; + } +} + +static void +async_node_free (AsyncNode *async) +{ + g_object_unref (async->cancellable); + g_slist_free (async->original_children); + g_slice_free (AsyncNode, async); +} + +static void +model_iterate_next_files_cb (GFileEnumerator *enumerator, + GAsyncResult *result, + AsyncNode *async) +{ + GError *error = NULL; + GList *files = g_file_enumerator_next_files_finish (enumerator, result, &error); + FileBrowserNodeDir *dir = async->dir; + FileBrowserNode *parent = (FileBrowserNode *)dir; + + if (files == NULL) + { + g_file_enumerator_close (enumerator, NULL, NULL); + g_object_unref (enumerator); + async_node_free (async); + + if (!error) + { + /* We're done loading */ + g_object_unref (dir->cancellable); + dir->cancellable = NULL; + +/* + * FIXME: This is temporarly, it is a bug in gio: + * http://bugzilla.gnome.org/show_bug.cgi?id=565924 + */ +#ifndef G_OS_WIN32 + if (g_file_is_native (parent->file) && dir->monitor == NULL) + { + dir->monitor = g_file_monitor_directory (parent->file, + G_FILE_MONITOR_NONE, + NULL, + NULL); + if (dir->monitor != NULL) + { + g_signal_connect (dir->monitor, + "changed", + G_CALLBACK (on_directory_monitor_event), + parent); + } + } +#endif + + model_check_dummy (dir->model, parent); + model_end_loading (dir->model, parent); + } + else + { + /* Simply return if we were cancelled */ + if (error->domain == G_IO_ERROR && error->code == G_IO_ERROR_CANCELLED) + return; + + /* Otherwise handle the error appropriately */ + g_signal_emit (dir->model, + model_signals[ERROR], + 0, + GEDIT_FILE_BROWSER_ERROR_LOAD_DIRECTORY, + error->message); + + file_browser_node_unload (dir->model, (FileBrowserNode *)parent, TRUE); + g_error_free (error); + } + } + else if (g_cancellable_is_cancelled (async->cancellable)) + { + /* Check cancel state manually */ + g_file_enumerator_close (enumerator, NULL, NULL); + g_object_unref (enumerator); + async_node_free (async); + } + else + { + model_add_nodes_from_files (dir->model, parent, async->original_children, files); + + g_list_free (files); + next_files_async (enumerator, async); + } +} + +static void +next_files_async (GFileEnumerator *enumerator, + AsyncNode *async) +{ + g_file_enumerator_next_files_async (enumerator, + DIRECTORY_LOAD_ITEMS_PER_CALLBACK, + G_PRIORITY_DEFAULT, + async->cancellable, + (GAsyncReadyCallback)model_iterate_next_files_cb, + async); +} + +static void +model_iterate_children_cb (GFile *file, + GAsyncResult *result, + AsyncNode *async) +{ + GError *error = NULL; + GFileEnumerator *enumerator; + + if (g_cancellable_is_cancelled (async->cancellable)) + { + async_node_free (async); + return; + } + + if (!(enumerator = g_file_enumerate_children_finish (file, result, &error))) + { + /* Simply return if we were cancelled or if the dir is not there */ + FileBrowserNodeDir *dir = async->dir; + + /* Otherwise handle the error appropriately */ + g_signal_emit (dir->model, + model_signals[ERROR], + 0, + GEDIT_FILE_BROWSER_ERROR_LOAD_DIRECTORY, + error->message); + + file_browser_node_unload (dir->model, (FileBrowserNode *)dir, TRUE); + g_error_free (error); + async_node_free (async); + } + else + { + next_files_async (enumerator, async); + } +} + +static void +model_load_directory (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + FileBrowserNodeDir *dir; + AsyncNode *async; + + g_return_if_fail (NODE_IS_DIR (node)); + + dir = FILE_BROWSER_NODE_DIR (node); + + /* Cancel a previous load */ + if (dir->cancellable != NULL) + file_browser_node_unload (dir->model, node, TRUE); + + node->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_LOADED; + model_begin_loading (model, node); + + dir->cancellable = g_cancellable_new (); + + async = g_slice_new (AsyncNode); + async->dir = dir; + async->cancellable = g_object_ref (dir->cancellable); + async->original_children = g_slist_copy (dir->children); + + /* Start loading async */ + g_file_enumerate_children_async (node->file, + STANDARD_ATTRIBUTE_TYPES, + G_FILE_QUERY_INFO_NONE, + G_PRIORITY_DEFAULT, + async->cancellable, + (GAsyncReadyCallback)model_iterate_children_cb, + async); +} + +static GList * +get_parent_files (GeditFileBrowserStore *model, + GFile *file) +{ + GList *result = NULL; + + result = g_list_prepend (result, g_object_ref (file)); + + while ((file = g_file_get_parent (file))) + { + if (g_file_equal (file, model->priv->root->file)) + { + g_object_unref (file); + break; + } + + result = g_list_prepend (result, file); + } + + return result; +} + +static void +model_fill (GeditFileBrowserStore *model, + FileBrowserNode *node, + GtkTreePath **path) +{ + gboolean free_path = FALSE; + GtkTreeIter iter = {0,}; + GSList *item; + FileBrowserNode *child; + + if (node == NULL) + { + node = model->priv->virtual_root; + *path = gtk_tree_path_new (); + free_path = TRUE; + } + + if (*path == NULL) + { + *path = gedit_file_browser_store_get_path_real (model, node); + free_path = TRUE; + } + + if (!model_node_visibility (model, node)) + { + if (free_path) + gtk_tree_path_free (*path); + + return; + } + + if (node != model->priv->virtual_root) + { + /* Insert node */ + iter.user_data = node; + row_inserted(model, path, &iter); + } + + if (NODE_IS_DIR (node)) + { + /* Go to the first child */ + gtk_tree_path_down (*path); + + for (item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + child = (FileBrowserNode *) (item->data); + + if (model_node_visibility (model, child)) + { + model_fill (model, child, path); + + /* Increase path for next child */ + gtk_tree_path_next (*path); + } + } + + /* Move back up to node path */ + gtk_tree_path_up (*path); + } + + model_check_dummy (model, node); + + if (free_path) + gtk_tree_path_free (*path); +} + +static void +set_virtual_root_from_node (GeditFileBrowserStore *model, + FileBrowserNode *node) +{ + FileBrowserNode *prev = node; + FileBrowserNode *next = prev->parent; + FileBrowserNode *check; + FileBrowserNodeDir *dir; + GSList *copy; + GtkTreePath *empty = NULL; + + /* Free all the nodes below that we don't need in cache */ + while (prev != model->priv->root) + { + dir = FILE_BROWSER_NODE_DIR (next); + copy = g_slist_copy (dir->children); + + for (GSList *item = copy; item; item = item->next) + { + check = (FileBrowserNode *)(item->data); + + if (prev == node) + { + /* Only free the children, keeping this depth in cache */ + if (check != node) + { + file_browser_node_free_children (model, check); + file_browser_node_unload (model, check, FALSE); + } + } + else if (check != prev) + { + /* Only free when the node is not in the chain */ + dir->children = g_slist_remove (dir->children, check); + file_browser_node_free (model, check); + } + } + + if (prev != node) + file_browser_node_unload (model, next, FALSE); + + g_slist_free (copy); + prev = next; + next = prev->parent; + } + + /* Free all the nodes up that we don't need in cache */ + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + check = (FileBrowserNode *)(item->data); + + if (NODE_IS_DIR (check)) + { + for (copy = FILE_BROWSER_NODE_DIR (check)->children; copy; copy = copy->next) + { + file_browser_node_free_children (model, (FileBrowserNode*) (copy->data)); + file_browser_node_unload (model, (FileBrowserNode*) (copy->data), FALSE); + } + } + else if (NODE_IS_DUMMY (check)) + { + check->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN; + } + } + + /* Now finally, set the virtual root, and load it up! */ + model->priv->virtual_root = node; + + /* Notify that the virtual-root has changed before loading up new nodes so that the + "root_changed" signal can be emitted before any "inserted" signals */ + g_object_notify (G_OBJECT (model), "virtual-root"); + + model_fill (model, NULL, &empty); + + if (!NODE_LOADED (node)) + model_load_directory (model, node); +} + +static void +set_virtual_root_from_file (GeditFileBrowserStore *model, + GFile *file) +{ + GList *files; + FileBrowserNode *parent; + GFile *check; + + /* Always clear the model before altering the nodes */ + model_clear (model, FALSE); + + /* Create the node path, get all the uri's */ + files = get_parent_files (model, file); + parent = model->priv->root; + + for (GList *item = files; item; item = item->next) + { + check = G_FILE (item->data); + + parent = model_add_node_from_dir (model, parent, check); + g_object_unref (check); + } + + g_list_free (files); + set_virtual_root_from_node (model, parent); +} + +static FileBrowserNode * +model_find_node_children (GeditFileBrowserStore *model, + FileBrowserNode *parent, + GFile *file) +{ + FileBrowserNodeDir *dir; + FileBrowserNode *child; + FileBrowserNode *result; + + if (!NODE_IS_DIR (parent)) + return NULL; + + dir = FILE_BROWSER_NODE_DIR (parent); + + for (GSList *children = dir->children; children; children = children->next) + { + child = (FileBrowserNode *)(children->data); + + result = model_find_node (model, child, file); + + if (result) + return result; + } + + return NULL; +} + +static FileBrowserNode * +model_find_node (GeditFileBrowserStore *model, + FileBrowserNode *node, + GFile *file) +{ + if (node == NULL) + node = model->priv->root; + + if (node->file && g_file_equal (node->file, file)) + return node; + + if (NODE_IS_DIR (node) && g_file_has_prefix (file, node->file)) + return model_find_node_children (model, node, file); + + return NULL; +} + +static GQuark +gedit_file_browser_store_error_quark (void) +{ + static GQuark quark = 0; + + if (G_UNLIKELY (quark == 0)) + quark = g_quark_from_string ("gedit_file_browser_store_error"); + + return quark; +} + +static GFile * +unique_new_name (GFile *directory, + gchar const *name) +{ + GFile *newuri = NULL; + guint num = 0; + gchar *newname; + + while (newuri == NULL || g_file_query_exists (newuri, NULL)) + { + if (newuri != NULL) + g_object_unref (newuri); + + if (num == 0) + newname = g_strdup (name); + else + newname = g_strdup_printf ("%s(%d)", name, num); + + newuri = g_file_get_child (directory, newname); + g_free (newname); + + ++num; + } + + return newuri; +} + +static GeditFileBrowserStoreResult +model_root_mounted (GeditFileBrowserStore *model, + GFile *virtual_root) +{ + model_check_dummy (model, model->priv->root); + g_object_notify (G_OBJECT (model), "root"); + + if (virtual_root != NULL) + { + return gedit_file_browser_store_set_virtual_root_from_location + (model, virtual_root); + } + else + { + set_virtual_root_from_node (model, model->priv->root); + } + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +static void +handle_root_error (GeditFileBrowserStore *model, + GError *error) +{ + FileBrowserNode *root; + + g_signal_emit (model, + model_signals[ERROR], + 0, + GEDIT_FILE_BROWSER_ERROR_SET_ROOT, + error->message); + + /* Set the virtual root to the root */ + root = model->priv->root; + model->priv->virtual_root = root; + + /* Set the root to be loaded */ + root->flags |= GEDIT_FILE_BROWSER_STORE_FLAG_LOADED; + + /* Check the dummy */ + model_check_dummy (model, root); + + g_object_notify (G_OBJECT (model), "root"); + g_object_notify (G_OBJECT (model), "virtual-root"); +} + +static void +mount_cb (GFile *file, + GAsyncResult *res, + MountInfo *mount_info) +{ + gboolean mounted; + GError *error = NULL; + GeditFileBrowserStore *model = mount_info->model; + + mounted = g_file_mount_enclosing_volume_finish (file, res, &error); + + if (mount_info->model) + { + model->priv->mount_info = NULL; + model_end_loading (model, model->priv->root); + } + + if (!mount_info->model || g_cancellable_is_cancelled (mount_info->cancellable)) + { + /* Reset because it might be reused? */ + g_cancellable_reset (mount_info->cancellable); + } + else if (mounted) + { + model_root_mounted (model, mount_info->virtual_root); + } + else if (error->code != G_IO_ERROR_CANCELLED) + { + handle_root_error (model, error); + } + + if (error) + g_error_free (error); + + g_object_unref (mount_info->operation); + g_object_unref (mount_info->cancellable); + + if (mount_info->virtual_root) + g_object_unref (mount_info->virtual_root); + + g_slice_free (MountInfo, mount_info); +} + +static GeditFileBrowserStoreResult +model_mount_root (GeditFileBrowserStore *model, + GFile *virtual_root) +{ + GFileInfo *info; + GError *error = NULL; + MountInfo *mount_info; + + info = g_file_query_info (model->priv->root->file, + G_FILE_ATTRIBUTE_STANDARD_TYPE, + G_FILE_QUERY_INFO_NONE, + NULL, + &error); + + if (!info) + { + if (error->code == G_IO_ERROR_NOT_MOUNTED) + { + /* Try to mount it */ + FILE_BROWSER_NODE_DIR (model->priv->root)->cancellable = g_cancellable_new (); + + mount_info = g_slice_new (MountInfo); + mount_info->model = model; + mount_info->virtual_root = g_file_dup (virtual_root); + + /* FIXME: we should be setting the correct window */ + mount_info->operation = gtk_mount_operation_new (NULL); + mount_info->cancellable = g_object_ref (FILE_BROWSER_NODE_DIR (model->priv->root)->cancellable); + + model_begin_loading (model, model->priv->root); + g_file_mount_enclosing_volume (model->priv->root->file, + G_MOUNT_MOUNT_NONE, + mount_info->operation, + mount_info->cancellable, + (GAsyncReadyCallback)mount_cb, + mount_info); + + model->priv->mount_info = mount_info; + return GEDIT_FILE_BROWSER_STORE_RESULT_MOUNTING; + } + else + { + handle_root_error (model, error); + } + + g_error_free (error); + } + else + { + g_object_unref (info); + + return model_root_mounted (model, virtual_root); + } + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +/* Public */ +GeditFileBrowserStore * +gedit_file_browser_store_new (GFile *root) +{ + return GEDIT_FILE_BROWSER_STORE (g_object_new (GEDIT_TYPE_FILE_BROWSER_STORE, + "root", root, + NULL)); +} + +void +gedit_file_browser_store_set_value (GeditFileBrowserStore *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value) +{ + gpointer data; + FileBrowserNode *node; + GtkTreePath *path; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_model)); + g_return_if_fail (iter != NULL); + g_return_if_fail (iter->user_data != NULL); + + node = (FileBrowserNode *)(iter->user_data); + + if (column == GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP) + { + g_return_if_fail (G_VALUE_HOLDS_STRING (value)); + + data = g_value_dup_string (value); + + if (!data) + data = g_strdup (node->name); + + g_free (node->markup); + node->markup = data; + } + else if (column == GEDIT_FILE_BROWSER_STORE_COLUMN_EMBLEM) + { + g_return_if_fail (G_VALUE_HOLDS_OBJECT (value)); + + data = g_value_get_object (value); + + g_return_if_fail (GDK_IS_PIXBUF (data) || data == NULL); + + if (node->emblem) + g_object_unref (node->emblem); + + if (data) + node->emblem = g_object_ref (GDK_PIXBUF (data)); + else + node->emblem = NULL; + + model_recomposite_icon (tree_model, iter); + } + else + { + g_return_if_fail (column == GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP || + column == GEDIT_FILE_BROWSER_STORE_COLUMN_EMBLEM); + } + + if (model_node_visibility (tree_model, node)) + { + path = gedit_file_browser_store_get_path (GTK_TREE_MODEL (tree_model), iter); + row_changed (tree_model, &path, iter); + gtk_tree_path_free (path); + } +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_set_virtual_root (GeditFileBrowserStore *model, + GtkTreeIter *iter) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + g_return_val_if_fail (iter != NULL, GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + g_return_val_if_fail (iter->user_data != NULL, GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + model_clear (model, FALSE); + set_virtual_root_from_node (model, (FileBrowserNode *)(iter->user_data)); + + return TRUE; +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_set_virtual_root_from_location (GeditFileBrowserStore *model, + GFile *root) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + if (root == NULL) + { + gchar *uri = g_file_get_uri (root); + + g_warning ("Invalid uri (%s)", uri); + g_free (uri); + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + } + + /* Check if uri is already the virtual root */ + if (model->priv->virtual_root && g_file_equal (model->priv->virtual_root->file, root)) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + + /* Check if uri is the root itself */ + if (g_file_equal (model->priv->root->file, root)) + { + /* Always clear the model before altering the nodes */ + model_clear (model, FALSE); + set_virtual_root_from_node (model, model->priv->root); + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; + } + + if (!g_file_has_prefix (root, model->priv->root->file)) + { + gchar *str = g_file_get_parse_name (model->priv->root->file); + gchar *str1 = g_file_get_parse_name (root); + + g_warning ("Virtual root (%s) is not below actual root (%s)", str1, str); + + g_free (str); + g_free (str1); + + return GEDIT_FILE_BROWSER_STORE_RESULT_ERROR; + } + + set_virtual_root_from_file (model, root); + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_set_virtual_root_top (GeditFileBrowserStore *model) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + if (model->priv->virtual_root == model->priv->root) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + + model_clear (model, FALSE); + set_virtual_root_from_node (model, model->priv->root); + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_set_virtual_root_up (GeditFileBrowserStore *model) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + if (model->priv->virtual_root == model->priv->root) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + + model_clear (model, FALSE); + set_virtual_root_from_node (model, model->priv->virtual_root->parent); + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +gboolean +gedit_file_browser_store_get_iter_virtual_root (GeditFileBrowserStore *model, + GtkTreeIter *iter) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), FALSE); + g_return_val_if_fail (iter != NULL, FALSE); + + if (model->priv->virtual_root == NULL) + return FALSE; + + iter->user_data = model->priv->virtual_root; + return TRUE; +} + +gboolean +gedit_file_browser_store_get_iter_root (GeditFileBrowserStore *model, + GtkTreeIter *iter) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), FALSE); + g_return_val_if_fail (iter != NULL, FALSE); + + if (model->priv->root == NULL) + return FALSE; + + iter->user_data = model->priv->root; + return TRUE; +} + +gboolean +gedit_file_browser_store_iter_equal (GeditFileBrowserStore *model, + GtkTreeIter *iter1, + GtkTreeIter *iter2) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), FALSE); + g_return_val_if_fail (iter1 != NULL, FALSE); + g_return_val_if_fail (iter2 != NULL, FALSE); + g_return_val_if_fail (iter1->user_data != NULL, FALSE); + g_return_val_if_fail (iter2->user_data != NULL, FALSE); + + return (iter1->user_data == iter2->user_data); +} + +void +gedit_file_browser_store_cancel_mount_operation (GeditFileBrowserStore *store) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (store)); + + cancel_mount_operation (store); +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_set_root_and_virtual_root (GeditFileBrowserStore *model, + GFile *root, + GFile *virtual_root) +{ + FileBrowserNode *node; + gboolean equal = FALSE; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + if (root == NULL && model->priv->root == NULL) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + + if (root != NULL && model->priv->root != NULL) + { + equal = g_file_equal (root, model->priv->root->file); + + if (equal && virtual_root == NULL) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + } + + if (virtual_root) + { + if (equal && g_file_equal (virtual_root, model->priv->virtual_root->file)) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + } + + /* Make sure to cancel any previous mount operations */ + cancel_mount_operation (model); + + /* Always clear the model before altering the nodes */ + model_clear (model, TRUE); + file_browser_node_free (model, model->priv->root); + + model->priv->root = NULL; + model->priv->virtual_root = NULL; + + if (root != NULL) + { + /* Create the root node */ + node = file_browser_node_dir_new (model, root, NULL); + + model->priv->root = node; + return model_mount_root (model, virtual_root); + } + else + { + g_object_notify (G_OBJECT (model), "root"); + g_object_notify (G_OBJECT (model), "virtual-root"); + } + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_set_root (GeditFileBrowserStore *model, + GFile *root) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + return gedit_file_browser_store_set_root_and_virtual_root (model, root, NULL); +} + +GFile * +gedit_file_browser_store_get_root (GeditFileBrowserStore *model) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), NULL); + + if (model->priv->root == NULL || model->priv->root->file == NULL) + return NULL; + else + return g_file_dup (model->priv->root->file); +} + +GFile * +gedit_file_browser_store_get_virtual_root (GeditFileBrowserStore *model) +{ + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), NULL); + + if (model->priv->virtual_root == NULL || model->priv->virtual_root->file == NULL) + return NULL; + else + return g_file_dup (model->priv->virtual_root->file); +} + +void +_gedit_file_browser_store_iter_expanded (GeditFileBrowserStore *model, + GtkTreeIter *iter) +{ + FileBrowserNode *node; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model)); + g_return_if_fail (iter != NULL); + g_return_if_fail (iter->user_data != NULL); + + node = (FileBrowserNode *)(iter->user_data); + + if (NODE_IS_DIR (node) && !NODE_LOADED (node)) + { + /* Load it now */ + model_load_directory (model, node); + } +} + +void +_gedit_file_browser_store_iter_collapsed (GeditFileBrowserStore *model, + GtkTreeIter *iter) +{ + FileBrowserNode *node; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model)); + g_return_if_fail (iter != NULL); + g_return_if_fail (iter->user_data != NULL); + + node = (FileBrowserNode *)(iter->user_data); + + if (NODE_IS_DIR (node) && NODE_LOADED (node)) + { + /* Unload children of the children, keeping 1 depth in cache */ + + for (GSList *item = FILE_BROWSER_NODE_DIR (node)->children; item; item = item->next) + { + node = (FileBrowserNode *)(item->data); + + if (NODE_IS_DIR (node) && NODE_LOADED (node)) + { + file_browser_node_unload (model, node, TRUE); + model_check_dummy (model, node); + } + } + } +} + +GeditFileBrowserStoreFilterMode +gedit_file_browser_store_get_filter_mode (GeditFileBrowserStore *model) +{ + return model->priv->filter_mode; +} + +void +gedit_file_browser_store_set_filter_mode (GeditFileBrowserStore *model, + GeditFileBrowserStoreFilterMode mode) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model)); + + if (model->priv->filter_mode == mode) + return; + + model->priv->filter_mode = mode; + model_refilter (model); + + g_object_notify (G_OBJECT (model), "filter-mode"); +} + +void +gedit_file_browser_store_set_filter_func (GeditFileBrowserStore *model, + GeditFileBrowserStoreFilterFunc func, + gpointer user_data) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model)); + + model->priv->filter_func = func; + model->priv->filter_user_data = user_data; + model_refilter (model); +} + +const gchar * const * +gedit_file_browser_store_get_binary_patterns (GeditFileBrowserStore *model) +{ + return (const gchar * const *)model->priv->binary_patterns; +} + +void +gedit_file_browser_store_set_binary_patterns (GeditFileBrowserStore *model, + const gchar **binary_patterns) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model)); + + if (model->priv->binary_patterns != NULL) + { + g_strfreev (model->priv->binary_patterns); + g_ptr_array_unref (model->priv->binary_pattern_specs); + } + + model->priv->binary_patterns = g_strdupv ((gchar **)binary_patterns); + + if (binary_patterns == NULL) + { + model->priv->binary_pattern_specs = NULL; + } + else + { + gssize n_patterns = g_strv_length ((gchar **) binary_patterns); + + model->priv->binary_pattern_specs = g_ptr_array_sized_new (n_patterns); + g_ptr_array_set_free_func (model->priv->binary_pattern_specs, (GDestroyNotify) g_pattern_spec_free); + + for (guint i = 0; binary_patterns[i] != NULL; ++i) + g_ptr_array_add (model->priv->binary_pattern_specs, g_pattern_spec_new (binary_patterns[i])); + } + + model_refilter (model); + + g_object_notify (G_OBJECT (model), "binary-patterns"); +} + +void +gedit_file_browser_store_refilter (GeditFileBrowserStore *model) +{ + model_refilter (model); +} + +GeditFileBrowserStoreFilterMode +gedit_file_browser_store_filter_mode_get_default (void) +{ + return GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN; +} + +void +gedit_file_browser_store_refresh (GeditFileBrowserStore *model) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model)); + + if (model->priv->root == NULL || model->priv->virtual_root == NULL) + return; + + /* Clear the model */ + g_signal_emit (model, model_signals[BEGIN_REFRESH], 0); + file_browser_node_unload (model, model->priv->virtual_root, TRUE); + model_load_directory (model, model->priv->virtual_root); + g_signal_emit (model, model_signals[END_REFRESH], 0); +} + +static void +reparent_node (FileBrowserNode *node, + gboolean reparent) +{ + if (!node->file) + return; + + if (reparent) + { + GFile *parent = node->parent->file; + gchar *base = g_file_get_basename (node->file); + + g_object_unref (node->file); + + node->file = g_file_get_child (parent, base); + g_free (base); + } + + if (NODE_IS_DIR (node)) + { + FileBrowserNodeDir *dir = FILE_BROWSER_NODE_DIR (node); + + for (GSList *child = dir->children; child; child = child->next) + reparent_node ((FileBrowserNode *)child->data, TRUE); + } +} + +gboolean +gedit_file_browser_store_rename (GeditFileBrowserStore *model, + GtkTreeIter *iter, + const gchar *new_name, + GError **error) +{ + FileBrowserNode *node; + GFile *file; + GFile *parent; + GFile *previous; + GError *err = NULL; + GtkTreePath *path; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), FALSE); + g_return_val_if_fail (iter != NULL, FALSE); + g_return_val_if_fail (iter->user_data != NULL, FALSE); + + node = (FileBrowserNode *)(iter->user_data); + + parent = g_file_get_parent (node->file); + g_return_val_if_fail (parent != NULL, FALSE); + + file = g_file_get_child (parent, new_name); + g_object_unref (parent); + + if (g_file_equal (node->file, file)) + { + g_object_unref (file); + return TRUE; + } + + if (g_file_move (node->file, file, G_FILE_COPY_NONE, NULL, NULL, NULL, &err)) + { + previous = node->file; + node->file = file; + + /* This makes sure the actual info for the node is requeried */ + file_browser_node_set_name (node); + file_browser_node_set_from_info (model, node, NULL, TRUE); + + reparent_node (node, FALSE); + + if (model_node_visibility (model, node)) + { + path = gedit_file_browser_store_get_path_real (model, node); + row_changed (model, &path, iter); + gtk_tree_path_free (path); + + /* Reorder this item */ + model_resort_node (model, node); + } + else + { + g_object_unref (previous); + + if (error != NULL) + { + *error = g_error_new_literal (gedit_file_browser_store_error_quark (), + GEDIT_FILE_BROWSER_ERROR_RENAME, + _("The renamed file is currently filtered out. " + "You need to adjust your filter settings to " + "make the file visible")); + } + + return FALSE; + } + + g_signal_emit (model, model_signals[RENAME], 0, previous, node->file); + + g_object_unref (previous); + + return TRUE; + } + else + { + g_object_unref (file); + + if (err) + { + if (error != NULL) + { + *error = g_error_new_literal (gedit_file_browser_store_error_quark (), + GEDIT_FILE_BROWSER_ERROR_RENAME, + err->message); + } + + g_error_free (err); + } + + return FALSE; + } +} + +static void +async_data_free (AsyncData *data) +{ + g_object_unref (data->cancellable); + g_list_free_full (data->files, g_object_unref); + + if (!data->removed) + data->model->priv->async_handles = g_slist_remove (data->model->priv->async_handles, data); + + g_slice_free (AsyncData, data); +} + +static gboolean +emit_no_trash (AsyncData *data) +{ + /* Emit the no trash error */ + gboolean ret; + + g_signal_emit (data->model, model_signals[NO_TRASH], 0, data->files, &ret); + + return ret; +} + +static void +delete_file_finished (GFile *file, + GAsyncResult *res, + AsyncData *data) +{ + GError *error = NULL; + gboolean ok; + + if (data->trash) + ok = g_file_trash_finish (file, res, &error); + else + ok = g_file_delete_finish (file, res, &error); + + if (ok) + { + /* Remove the file from the model */ + FileBrowserNode *node = model_find_node (data->model, NULL, file); + + if (node != NULL) + model_remove_node (data->model, node, NULL, TRUE); + + /* Process the next file */ + data->iter = data->iter->next; + } + else if (!ok && error != NULL) + { + gint code = error->code; + g_error_free (error); + + if (data->trash && code == G_IO_ERROR_NOT_SUPPORTED) + { + /* Trash is not supported on this system. Ask the user + * if he wants to delete completely the files instead. + */ + if (emit_no_trash (data)) + { + /* Changes this into a delete job */ + data->trash = FALSE; + data->iter = data->files; + } + else + { + /* End the job */ + async_data_free (data); + return; + } + } + else if (code == G_IO_ERROR_CANCELLED) + { + /* Job has been cancelled, end the job */ + async_data_free (data); + return; + } + } + + /* Continue the job */ + delete_files (data); +} + +static void +delete_files (AsyncData *data) +{ + GFile *file; + + /* Check if our job is done */ + if (data->iter == NULL) + { + async_data_free (data); + return; + } + + file = G_FILE (data->iter->data); + + if (data->trash) + { + g_file_trash_async (file, + G_PRIORITY_DEFAULT, + data->cancellable, + (GAsyncReadyCallback)delete_file_finished, + data); + } + else + { + g_file_delete_async (file, + G_PRIORITY_DEFAULT, + data->cancellable, + (GAsyncReadyCallback)delete_file_finished, + data); + } +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_delete_all (GeditFileBrowserStore *model, + GList *rows, + gboolean trash) +{ + FileBrowserNode *node; + AsyncData *data; + GList *files = NULL; + GList *row; + GtkTreeIter iter; + GtkTreePath *prev = NULL; + GtkTreePath *path; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + if (rows == NULL) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + + /* First we sort the paths so that we can later on remove any + files/directories that are actually subfiles/directories of + a directory that's also deleted */ + rows = g_list_sort (g_list_copy (rows), (GCompareFunc)gtk_tree_path_compare); + + for (row = rows; row; row = row->next) + { + path = (GtkTreePath *)(row->data); + + if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (model), &iter, path)) + continue; + + /* Skip if the current path is actually a descendant of the + previous path */ + if (prev != NULL && gtk_tree_path_is_descendant (path, prev)) + continue; + + prev = path; + node = (FileBrowserNode *)(iter.user_data); + files = g_list_prepend (files, g_object_ref (node->file)); + } + + data = g_slice_new (AsyncData); + + data->model = model; + data->cancellable = g_cancellable_new (); + data->files = files; + data->trash = trash; + data->iter = files; + data->removed = FALSE; + + model->priv->async_handles = g_slist_prepend (model->priv->async_handles, data); + + delete_files (data); + g_list_free (rows); + + return GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +GeditFileBrowserStoreResult +gedit_file_browser_store_delete (GeditFileBrowserStore *model, + GtkTreeIter *iter, + gboolean trash) +{ + FileBrowserNode *node; + GList *rows = NULL; + GeditFileBrowserStoreResult result; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + g_return_val_if_fail (iter != NULL, GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + g_return_val_if_fail (iter->user_data != NULL, GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE); + + node = (FileBrowserNode *)(iter->user_data); + + if (NODE_IS_DUMMY (node)) + return GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE; + + rows = g_list_append(NULL, gedit_file_browser_store_get_path_real (model, node)); + result = gedit_file_browser_store_delete_all (model, rows, trash); + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); + + return result; +} + +gboolean +gedit_file_browser_store_new_file (GeditFileBrowserStore *model, + GtkTreeIter *parent, + GtkTreeIter *iter) +{ + GFile *file; + GFileOutputStream *stream; + FileBrowserNodeDir *parent_node; + gboolean result = FALSE; + FileBrowserNode *node; + GError *error = NULL; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), FALSE); + g_return_val_if_fail (parent != NULL, FALSE); + g_return_val_if_fail (parent->user_data != NULL, FALSE); + g_return_val_if_fail (NODE_IS_DIR ((FileBrowserNode *) (parent->user_data)), FALSE); + g_return_val_if_fail (iter != NULL, FALSE); + + parent_node = FILE_BROWSER_NODE_DIR (parent->user_data); + /* Translators: This is the default name of new files created by the file browser pane. */ + file = unique_new_name (((FileBrowserNode *) parent_node)->file, _("Untitled File")); + + stream = g_file_create (file, G_FILE_CREATE_NONE, NULL, &error); + + if (!stream) + { + g_signal_emit (model, model_signals[ERROR], 0, + GEDIT_FILE_BROWSER_ERROR_NEW_FILE, + error->message); + g_error_free (error); + } + else + { + g_object_unref (stream); + node = model_add_node_from_file (model, + (FileBrowserNode *)parent_node, + file, + NULL); + + if (model_node_visibility (model, node)) + { + iter->user_data = node; + result = TRUE; + } + else + { + g_signal_emit (model, model_signals[ERROR], 0, + GEDIT_FILE_BROWSER_ERROR_NEW_FILE, + _("The new file is currently filtered out. " + "You need to adjust your filter " + "settings to make the file visible")); + } + } + + g_object_unref (file); + return result; +} + +gboolean +gedit_file_browser_store_new_directory (GeditFileBrowserStore *model, + GtkTreeIter *parent, + GtkTreeIter *iter) +{ + GFile *file; + FileBrowserNodeDir *parent_node; + GError *error = NULL; + FileBrowserNode *node; + gboolean result = FALSE; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model), FALSE); + g_return_val_if_fail (parent != NULL, FALSE); + g_return_val_if_fail (parent->user_data != NULL, FALSE); + g_return_val_if_fail (NODE_IS_DIR ((FileBrowserNode *)(parent->user_data)), FALSE); + g_return_val_if_fail (iter != NULL, FALSE); + + parent_node = FILE_BROWSER_NODE_DIR (parent->user_data); + /* Translators: This is the default name of new directories created by the file browser pane. */ + file = unique_new_name (((FileBrowserNode *) parent_node)->file, _("Untitled Folder")); + + if (!g_file_make_directory (file, NULL, &error)) + { + g_signal_emit (model, model_signals[ERROR], 0, GEDIT_FILE_BROWSER_ERROR_NEW_DIRECTORY, error->message); + g_error_free (error); + } + else + { + node = model_add_node_from_file (model, + (FileBrowserNode *)parent_node, + file, + NULL); + + if (model_node_visibility (model, node)) + { + iter->user_data = node; + result = TRUE; + } + else + { + g_signal_emit (model, model_signals[ERROR], 0, + GEDIT_FILE_BROWSER_ERROR_NEW_FILE, + _("The new directory is currently filtered " + "out. You need to adjust your filter " + "settings to make the directory visible")); + } + } + + g_object_unref (file); + return result; +} + +void +_gedit_file_browser_store_register_type (GTypeModule *type_module) +{ + gedit_file_browser_store_register_type (type_module); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-store.h b/plugins/filebrowser/gedit-file-browser-store.h new file mode 100644 index 0000000..02df0cb --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-store.h @@ -0,0 +1,188 @@ +/* + * gedit-file-browser-store.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_STORE_H +#define GEDIT_FILE_BROWSER_STORE_H + +#include + +G_BEGIN_DECLS +#define GEDIT_TYPE_FILE_BROWSER_STORE (gedit_file_browser_store_get_type ()) +#define GEDIT_FILE_BROWSER_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_STORE, GeditFileBrowserStore)) +#define GEDIT_FILE_BROWSER_STORE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_STORE, GeditFileBrowserStore const)) +#define GEDIT_FILE_BROWSER_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_BROWSER_STORE, GeditFileBrowserStoreClass)) +#define GEDIT_IS_FILE_BROWSER_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_BROWSER_STORE)) +#define GEDIT_IS_FILE_BROWSER_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_BROWSER_STORE)) +#define GEDIT_FILE_BROWSER_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_BROWSER_STORE, GeditFileBrowserStoreClass)) + +typedef enum +{ + GEDIT_FILE_BROWSER_STORE_COLUMN_ICON = 0, + GEDIT_FILE_BROWSER_STORE_COLUMN_ICON_NAME, + GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, + + /* Columns not in common with GeditFileBookmarksStore */ + GEDIT_FILE_BROWSER_STORE_COLUMN_NAME, + GEDIT_FILE_BROWSER_STORE_COLUMN_EMBLEM, + GEDIT_FILE_BROWSER_STORE_COLUMN_NUM +} GeditFileBrowserStoreColumn; + +typedef enum +{ + GEDIT_FILE_BROWSER_STORE_FLAG_IS_DIRECTORY = 1 << 0, + GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN = 1 << 1, + GEDIT_FILE_BROWSER_STORE_FLAG_IS_TEXT = 1 << 2, + GEDIT_FILE_BROWSER_STORE_FLAG_LOADED = 1 << 3, + GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED = 1 << 4, + GEDIT_FILE_BROWSER_STORE_FLAG_IS_DUMMY = 1 << 5 +} GeditFileBrowserStoreFlag; + +typedef enum +{ + GEDIT_FILE_BROWSER_STORE_RESULT_OK, + GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE, + GEDIT_FILE_BROWSER_STORE_RESULT_ERROR, + GEDIT_FILE_BROWSER_STORE_RESULT_NO_TRASH, + GEDIT_FILE_BROWSER_STORE_RESULT_MOUNTING, + GEDIT_FILE_BROWSER_STORE_RESULT_NUM +} GeditFileBrowserStoreResult; + +typedef enum +{ + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_NONE = 0, + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN = 1 << 0, + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY = 1 << 1 +} GeditFileBrowserStoreFilterMode; + +#define FILE_IS_DIR(flags) (flags & GEDIT_FILE_BROWSER_STORE_FLAG_IS_DIRECTORY) +#define FILE_IS_HIDDEN(flags) (flags & GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN) +#define FILE_IS_TEXT(flags) (flags & GEDIT_FILE_BROWSER_STORE_FLAG_IS_TEXT) +#define FILE_LOADED(flags) (flags & GEDIT_FILE_BROWSER_STORE_FLAG_LOADED) +#define FILE_IS_FILTERED(flags) (flags & GEDIT_FILE_BROWSER_STORE_FLAG_IS_FILTERED) +#define FILE_IS_DUMMY(flags) (flags & GEDIT_FILE_BROWSER_STORE_FLAG_IS_DUMMY) + +typedef struct _GeditFileBrowserStore GeditFileBrowserStore; +typedef struct _GeditFileBrowserStoreClass GeditFileBrowserStoreClass; +typedef struct _GeditFileBrowserStorePrivate GeditFileBrowserStorePrivate; + +typedef gboolean (*GeditFileBrowserStoreFilterFunc) (GeditFileBrowserStore *model, + GtkTreeIter *iter, + gpointer user_data); + +struct _GeditFileBrowserStore +{ + GObject parent; + + GeditFileBrowserStorePrivate *priv; +}; + +struct _GeditFileBrowserStoreClass { + GObjectClass parent_class; + + /* Signals */ + void (* begin_loading) (GeditFileBrowserStore *model, + GtkTreeIter *iter); + void (* end_loading) (GeditFileBrowserStore *model, + GtkTreeIter *iter); + void (* error) (GeditFileBrowserStore *model, + guint code, + gchar *message); + gboolean (* no_trash) (GeditFileBrowserStore *model, + GList *files); + void (* rename) (GeditFileBrowserStore *model, + GFile *oldfile, + GFile *newfile); + void (* begin_refresh) (GeditFileBrowserStore *model); + void (* end_refresh) (GeditFileBrowserStore *model); + void (* unload) (GeditFileBrowserStore *model, + GFile *location); + void (* before_row_deleted) (GeditFileBrowserStore *model, + GtkTreePath *path); +}; + +GType gedit_file_browser_store_get_type (void) G_GNUC_CONST; + +GeditFileBrowserStore *gedit_file_browser_store_new (GFile *root); +GeditFileBrowserStoreResult gedit_file_browser_store_set_root_and_virtual_root (GeditFileBrowserStore *model, + GFile *root, + GFile *virtual_root); +GeditFileBrowserStoreResult gedit_file_browser_store_set_root (GeditFileBrowserStore *model, + GFile *root); +GeditFileBrowserStoreResult gedit_file_browser_store_set_virtual_root (GeditFileBrowserStore *model, + GtkTreeIter *iter); +GeditFileBrowserStoreResult gedit_file_browser_store_set_virtual_root_from_location (GeditFileBrowserStore *model, + GFile *root); +GeditFileBrowserStoreResult gedit_file_browser_store_set_virtual_root_up (GeditFileBrowserStore *model); +GeditFileBrowserStoreResult gedit_file_browser_store_set_virtual_root_top (GeditFileBrowserStore *model); +gboolean gedit_file_browser_store_get_iter_virtual_root (GeditFileBrowserStore *model, + GtkTreeIter *iter); +gboolean gedit_file_browser_store_get_iter_root (GeditFileBrowserStore *model, + GtkTreeIter *iter); +GFile *gedit_file_browser_store_get_root (GeditFileBrowserStore *model); +GFile *gedit_file_browser_store_get_virtual_root (GeditFileBrowserStore *model); +gboolean gedit_file_browser_store_iter_equal (GeditFileBrowserStore *model, + GtkTreeIter *iter1, + GtkTreeIter *iter2); +void gedit_file_browser_store_set_value (GeditFileBrowserStore *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value); +void _gedit_file_browser_store_iter_expanded (GeditFileBrowserStore *model, + GtkTreeIter *iter); +void _gedit_file_browser_store_iter_collapsed (GeditFileBrowserStore *model, + GtkTreeIter *iter); +GeditFileBrowserStoreFilterMode gedit_file_browser_store_get_filter_mode (GeditFileBrowserStore *model); +void gedit_file_browser_store_set_filter_mode (GeditFileBrowserStore *model, + GeditFileBrowserStoreFilterMode mode); +void gedit_file_browser_store_set_filter_func (GeditFileBrowserStore *model, + GeditFileBrowserStoreFilterFunc func, + gpointer user_data); +const gchar * const *gedit_file_browser_store_get_binary_patterns (GeditFileBrowserStore *model); +void gedit_file_browser_store_set_binary_patterns (GeditFileBrowserStore *model, + const gchar **binary_patterns); +void gedit_file_browser_store_refilter (GeditFileBrowserStore *model); +GeditFileBrowserStoreFilterMode gedit_file_browser_store_filter_mode_get_default (void); +void gedit_file_browser_store_refresh (GeditFileBrowserStore *model); +gboolean gedit_file_browser_store_rename (GeditFileBrowserStore *model, + GtkTreeIter *iter, + gchar const *new_name, + GError **error); +GeditFileBrowserStoreResult gedit_file_browser_store_delete (GeditFileBrowserStore *model, + GtkTreeIter *iter, + gboolean trash); +GeditFileBrowserStoreResult gedit_file_browser_store_delete_all (GeditFileBrowserStore *model, + GList *rows, + gboolean trash); +gboolean gedit_file_browser_store_new_file (GeditFileBrowserStore *model, + GtkTreeIter *parent, + GtkTreeIter *iter); +gboolean gedit_file_browser_store_new_directory (GeditFileBrowserStore *model, + GtkTreeIter *parent, + GtkTreeIter *iter); +void gedit_file_browser_store_cancel_mount_operation (GeditFileBrowserStore *store); + +void _gedit_file_browser_store_register_type (GTypeModule *type_module); + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_STORE_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-utils.c b/plugins/filebrowser/gedit-file-browser-utils.c new file mode 100644 index 0000000..dbca26a --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-utils.c @@ -0,0 +1,223 @@ +/* + * gedit-file-bookmarks-utils.c - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include +#include + +#include "gedit-file-browser-utils.h" + +static GdkPixbuf * +process_icon_pixbuf (GdkPixbuf *pixbuf, + gchar const *name, + gint size, + GError *error) +{ + GdkPixbuf *scale; + + if (error != NULL) + { + g_warning ("Could not load theme icon %s: %s", + name, + error->message); + g_error_free (error); + } + + if (pixbuf && gdk_pixbuf_get_width (pixbuf) > size) + { + scale = gdk_pixbuf_scale_simple (pixbuf, + size, + size, + GDK_INTERP_BILINEAR); + g_object_unref (pixbuf); + pixbuf = scale; + } + + return pixbuf; +} + +GdkPixbuf * +gedit_file_browser_utils_pixbuf_from_theme (gchar const *name, + GtkIconSize size) +{ + gint width; + GError *error = NULL; + GdkPixbuf *pixbuf; + + gtk_icon_size_lookup (size, &width, NULL); + + pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), + name, + width, + 0, + &error); + + pixbuf = process_icon_pixbuf (pixbuf, name, width, error); + + return pixbuf; +} + +GdkPixbuf * +gedit_file_browser_utils_pixbuf_from_icon (GIcon *icon, + GtkIconSize size) +{ + GdkPixbuf *ret = NULL; + GtkIconTheme *theme; + GtkIconInfo *info; + gint width; + + if (!icon) + return NULL; + + theme = gtk_icon_theme_get_default (); + gtk_icon_size_lookup (size, &width, NULL); + + info = gtk_icon_theme_lookup_by_gicon (theme, + icon, + width, + GTK_ICON_LOOKUP_USE_BUILTIN); + + if (!info) + return NULL; + + ret = gtk_icon_info_load_icon (info, NULL); + g_object_unref (info); + + return ret; +} + +GdkPixbuf * +gedit_file_browser_utils_pixbuf_from_file (GFile *file, + GtkIconSize size, + gboolean use_symbolic) +{ + GIcon *icon; + GFileInfo *info; + GdkPixbuf *ret = NULL; + const char *attribute; + + attribute = use_symbolic ? G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON : + G_FILE_ATTRIBUTE_STANDARD_ICON; + + info = g_file_query_info (file, + attribute, + G_FILE_QUERY_INFO_NONE, + NULL, + NULL); + + if (!info) + return NULL; + + icon = use_symbolic ? g_file_info_get_symbolic_icon (info) : + g_file_info_get_icon (info); + if (icon != NULL) + ret = gedit_file_browser_utils_pixbuf_from_icon (icon, size); + + g_object_unref (info); + + return ret; +} + +gchar * +gedit_file_browser_utils_symbolic_icon_name_from_file (GFile *file) +{ + GFileInfo *info; + GIcon *icon; + + info = g_file_query_info (file, + G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON, + G_FILE_QUERY_INFO_NONE, + NULL, + NULL); + + if (!info) + return NULL; + + if ((icon = g_file_info_get_symbolic_icon (info)) && G_IS_THEMED_ICON (icon)) + { + const gchar * const *names = g_themed_icon_get_names (G_THEMED_ICON (icon)); + return g_strdup (names[0]); + } + + g_object_unref (info); + return NULL; +} + +gchar * +gedit_file_browser_utils_name_from_themed_icon (GIcon *icon) +{ + GtkIconTheme *theme; + const gchar * const *names; + + if (!G_IS_THEMED_ICON (icon)) + return NULL; + + theme = gtk_icon_theme_get_default (); + names = g_themed_icon_get_names (G_THEMED_ICON (icon)); + + if (gtk_icon_theme_has_icon (theme, names[0])) + return g_strdup (names[0]); + + return NULL; +} + +gchar * +gedit_file_browser_utils_file_basename (GFile *file) +{ + return gedit_utils_basename_for_display (file); +} + +gboolean +gedit_file_browser_utils_confirmation_dialog (GeditWindow *window, + GtkMessageType type, + gchar const *message, + gchar const *secondary, + gchar const *button_label) +{ + GtkWidget *dlg; + gint ret; + + dlg = gtk_message_dialog_new (GTK_WINDOW (window), + GTK_DIALOG_MODAL | + GTK_DIALOG_DESTROY_WITH_PARENT, + type, + GTK_BUTTONS_NONE, "%s", message); + + if (secondary) + { + gtk_message_dialog_format_secondary_text + (GTK_MESSAGE_DIALOG (dlg), "%s", secondary); + } + + gtk_dialog_add_buttons (GTK_DIALOG (dlg), + _("_Cancel"), GTK_RESPONSE_CANCEL, + button_label, GTK_RESPONSE_OK, + NULL); + + gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_CANCEL); + + ret = gtk_dialog_run (GTK_DIALOG (dlg)); + gtk_widget_destroy (dlg); + + return (ret == GTK_RESPONSE_OK); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-utils.h b/plugins/filebrowser/gedit-file-browser-utils.h new file mode 100644 index 0000000..165f513 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-utils.h @@ -0,0 +1,46 @@ +/* + * gedit-file-browser-utils.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_UTILS_H +#define GEDIT_FILE_BROWSER_UTILS_H + +#include +#include + +gchar *gedit_file_browser_utils_name_from_themed_icon (GIcon *icon); +GdkPixbuf *gedit_file_browser_utils_pixbuf_from_theme (gchar const *name, + GtkIconSize size); + +GdkPixbuf *gedit_file_browser_utils_pixbuf_from_icon (GIcon *icon, + GtkIconSize size); +GdkPixbuf *gedit_file_browser_utils_pixbuf_from_file (GFile *file, + GtkIconSize size, + gboolean use_symbolic); +gchar *gedit_file_browser_utils_symbolic_icon_name_from_file (GFile *file); +gchar *gedit_file_browser_utils_file_basename (GFile *file); + +gboolean gedit_file_browser_utils_confirmation_dialog (GeditWindow *window, + GtkMessageType type, + gchar const *message, + gchar const *secondary, + gchar const *button_label); + +#endif /* GEDIT_FILE_BROWSER_UTILS_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-view.c b/plugins/filebrowser/gedit-file-browser-view.c new file mode 100644 index 0000000..37a0a23 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-view.c @@ -0,0 +1,1323 @@ +/* + * gedit-file-browser-view.c - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include + +#include +#include +#include + +#include "gedit-file-browser-store.h" +#include "gedit-file-bookmarks-store.h" +#include "gedit-file-browser-view.h" +#include "gedit-file-browser-enum-types.h" + +struct _GeditFileBrowserViewPrivate +{ + GtkTreeViewColumn *column; + GtkCellRenderer *pixbuf_renderer; + GtkCellRenderer *text_renderer; + + GtkTreeModel *model; + + /* Used when renaming */ + gchar *orig_markup; + GtkTreeRowReference *editable; + + /* Click policy */ + GeditFileBrowserViewClickPolicy click_policy; + /* Both clicks in a double click need to be on the same row */ + GtkTreePath *double_click_path[2]; + GtkTreePath *hover_path; + GdkCursor *hand_cursor; + gboolean ignore_release; + gboolean selected_on_button_down; + gint drag_button; + gboolean drag_started; + + gboolean restore_expand_state; + gboolean is_refresh; + GHashTable *expand_state; +}; + +/* Properties */ +enum +{ + PROP_0, + + PROP_CLICK_POLICY, + PROP_RESTORE_EXPAND_STATE +}; + +/* Signals */ +enum +{ + ERROR, + FILE_ACTIVATED, + DIRECTORY_ACTIVATED, + BOOKMARK_ACTIVATED, + NUM_SIGNALS +}; + +static guint signals[NUM_SIGNALS] = { 0 }; + +static const GtkTargetEntry drag_source_targets[] = { + { "text/uri-list", 0, 0 } +}; + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditFileBrowserView, + gedit_file_browser_view, + GTK_TYPE_TREE_VIEW, + 0, + G_ADD_PRIVATE_DYNAMIC (GeditFileBrowserView)) + +static void on_cell_edited (GtkCellRendererText *cell, + gchar *path, + gchar *new_text, + GeditFileBrowserView *tree_view); + +static void on_begin_refresh (GeditFileBrowserStore *model, + GeditFileBrowserView *view); +static void on_end_refresh (GeditFileBrowserStore *model, + GeditFileBrowserView *view); + +static void on_unload (GeditFileBrowserStore *model, + GFile *location, + GeditFileBrowserView *view); + +static void on_row_inserted (GeditFileBrowserStore *model, + GtkTreePath *path, + GtkTreeIter *iter, + GeditFileBrowserView *view); + +static void +gedit_file_browser_view_finalize (GObject *object) +{ + GeditFileBrowserView *obj = GEDIT_FILE_BROWSER_VIEW (object); + + if (obj->priv->hand_cursor) + g_object_unref (obj->priv->hand_cursor); + + if (obj->priv->hover_path) + gtk_tree_path_free (obj->priv->hover_path); + + if (obj->priv->expand_state) + { + g_hash_table_destroy (obj->priv->expand_state); + obj->priv->expand_state = NULL; + } + + G_OBJECT_CLASS (gedit_file_browser_view_parent_class)->finalize (object); +} + +static void +add_expand_state (GeditFileBrowserView *view, + GFile *location) +{ + if (!location) + return; + + if (view->priv->expand_state) + g_hash_table_insert (view->priv->expand_state, location, g_object_ref (location)); +} + +static void +remove_expand_state (GeditFileBrowserView *view, + GFile *location) +{ + if (!location) + return; + + if (view->priv->expand_state) + g_hash_table_remove (view->priv->expand_state, location); +} + +static void +row_expanded (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (tree_view); + + if (GTK_TREE_VIEW_CLASS (gedit_file_browser_view_parent_class)->row_expanded) + GTK_TREE_VIEW_CLASS (gedit_file_browser_view_parent_class)->row_expanded (tree_view, iter, path); + + if (!GEDIT_IS_FILE_BROWSER_STORE (view->priv->model)) + return; + + if (view->priv->restore_expand_state) + { + GFile *location; + + gtk_tree_model_get (view->priv->model, + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + add_expand_state (view, location); + + if (location) + g_object_unref (location); + } + + _gedit_file_browser_store_iter_expanded (GEDIT_FILE_BROWSER_STORE (view->priv->model), + iter); +} + +static void +row_collapsed (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (tree_view); + + if (GTK_TREE_VIEW_CLASS (gedit_file_browser_view_parent_class)->row_collapsed) + GTK_TREE_VIEW_CLASS (gedit_file_browser_view_parent_class)->row_collapsed (tree_view, iter, path); + + if (!GEDIT_IS_FILE_BROWSER_STORE (view->priv->model)) + return; + + if (view->priv->restore_expand_state) + { + GFile *location; + + gtk_tree_model_get (view->priv->model, + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + remove_expand_state (view, location); + + if (location) + g_object_unref (location); + } + + _gedit_file_browser_store_iter_collapsed (GEDIT_FILE_BROWSER_STORE (view->priv->model), + iter); +} + +static gboolean +leave_notify_event (GtkWidget *widget, + GdkEventCrossing *event) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + + if (view->priv->click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE && + view->priv->hover_path != NULL) + { + gtk_tree_path_free (view->priv->hover_path); + view->priv->hover_path = NULL; + } + + /* Chainup */ + return GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class)->leave_notify_event (widget, event); +} + +static gboolean +enter_notify_event (GtkWidget *widget, + GdkEventCrossing *event) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + + if (view->priv->click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE) + { + if (view->priv->hover_path != NULL) + gtk_tree_path_free (view->priv->hover_path); + + gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget), + event->x, event->y, + &view->priv->hover_path, + NULL, NULL, NULL); + + if (view->priv->hover_path != NULL) + { + gdk_window_set_cursor (gtk_widget_get_window (widget), + view->priv->hand_cursor); + } + } + + /* Chainup */ + return GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class)->enter_notify_event (widget, event); +} + +static gboolean +motion_notify_event (GtkWidget *widget, + GdkEventMotion *event) +{ + GtkTreePath *old_hover_path; + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + + if (view->priv->click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE) + { + old_hover_path = view->priv->hover_path; + gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget), + event->x, event->y, + &view->priv->hover_path, + NULL, NULL, NULL); + + if ((old_hover_path != NULL) != (view->priv->hover_path != NULL)) + { + if (view->priv->hover_path != NULL) + { + gdk_window_set_cursor (gtk_widget_get_window (widget), + view->priv->hand_cursor); + } + else + { + gdk_window_set_cursor (gtk_widget_get_window (widget), + NULL); + } + } + + if (old_hover_path != NULL) + gtk_tree_path_free (old_hover_path); + } + + /* Chainup */ + return GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class)->motion_notify_event (widget, event); +} + +static void +set_click_policy_property (GeditFileBrowserView *obj, + GeditFileBrowserViewClickPolicy click_policy) +{ + GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (obj)); + + obj->priv->click_policy = click_policy; + + if (click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE) + { + if (obj->priv->hand_cursor == NULL) + obj->priv->hand_cursor = gdk_cursor_new_from_name (display, "pointer"); + } + else if (click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_DOUBLE) + { + if (obj->priv->hover_path != NULL) + { + GtkTreeIter iter; + + if (gtk_tree_model_get_iter (GTK_TREE_MODEL (obj->priv->model), + &iter, obj->priv->hover_path)) + { + gtk_tree_model_row_changed (GTK_TREE_MODEL (obj->priv->model), + obj->priv->hover_path, &iter); + } + + gtk_tree_path_free (obj->priv->hover_path); + obj->priv->hover_path = NULL; + } + + if (gtk_widget_get_realized (GTK_WIDGET (obj))) + { + GdkWindow *win = gtk_widget_get_window (GTK_WIDGET (obj)); + + gdk_window_set_cursor (win, NULL); + + if (display != NULL) + gdk_display_flush (display); + } + + if (obj->priv->hand_cursor) + { + g_object_unref (obj->priv->hand_cursor); + obj->priv->hand_cursor = NULL; + } + } +} + +static void +directory_activated (GeditFileBrowserView *view, + GtkTreeIter *iter) +{ + gedit_file_browser_store_set_virtual_root (GEDIT_FILE_BROWSER_STORE (view->priv->model), iter); +} + +static void +activate_selected_files (GeditFileBrowserView *view) +{ + GtkTreeView *tree_view = GTK_TREE_VIEW (view); + GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view); + GList *rows = gtk_tree_selection_get_selected_rows (selection, &view->priv->model); + GList *row; + GtkTreePath *directory = NULL; + GtkTreePath *path; + GtkTreeIter iter; + GeditFileBrowserStoreFlag flags; + + for (row = rows; row; row = row->next) + { + path = (GtkTreePath *)(row->data); + + /* Get iter from path */ + if (!gtk_tree_model_get_iter (view->priv->model, &iter, path)) + continue; + + gtk_tree_model_get (view->priv->model, &iter, GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, -1); + + if (FILE_IS_DIR (flags) && directory == NULL) + directory = path; + else if (!FILE_IS_DUMMY (flags)) + g_signal_emit (view, signals[FILE_ACTIVATED], 0, &iter); + } + + if (directory != NULL && + gtk_tree_model_get_iter (view->priv->model, &iter, directory)) + { + g_signal_emit (view, signals[DIRECTORY_ACTIVATED], 0, &iter); + } + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); +} + +static void +activate_selected_bookmark (GeditFileBrowserView *view) +{ + GtkTreeView *tree_view = GTK_TREE_VIEW (view); + GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view); + GtkTreeIter iter; + + if (gtk_tree_selection_get_selected (selection, &view->priv->model, &iter)) + g_signal_emit (view, signals[BOOKMARK_ACTIVATED], 0, &iter); +} + +static void +activate_selected_items (GeditFileBrowserView *view) +{ + if (GEDIT_IS_FILE_BROWSER_STORE (view->priv->model)) + activate_selected_files (view); + else if (GEDIT_IS_FILE_BOOKMARKS_STORE (view->priv->model)) + activate_selected_bookmark (view); +} + +static void +row_activated (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column) +{ + GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view); + + /* Make sure the activated row is the only one selected */ + gtk_tree_selection_unselect_all (selection); + gtk_tree_selection_select_path (selection, path); + + activate_selected_items (GEDIT_FILE_BROWSER_VIEW (tree_view)); +} + +static void +toggle_hidden_filter (GeditFileBrowserView *view) +{ + GeditFileBrowserStoreFilterMode mode; + + if (GEDIT_IS_FILE_BROWSER_STORE (view->priv->model)) + { + mode = gedit_file_browser_store_get_filter_mode (GEDIT_FILE_BROWSER_STORE (view->priv->model)); + mode ^= GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN; + gedit_file_browser_store_set_filter_mode (GEDIT_FILE_BROWSER_STORE (view->priv->model), mode); + } +} + +static gboolean +button_event_modifies_selection (GdkEventButton *event) +{ + return (event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) != 0; +} + +static void +drag_begin (GtkWidget *widget, + GdkDragContext *context) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + + view->priv->drag_button = 0; + view->priv->drag_started = TRUE; + + /* Chain up */ + GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class)->drag_begin (widget, context); +} + +static void +did_not_drag (GeditFileBrowserView *view, + GdkEventButton *event) +{ + GtkTreeView *tree_view = GTK_TREE_VIEW (view); + GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view); + GtkTreePath *path; + + if (gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path, NULL, NULL, NULL)) + { + if ((view->priv->click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE) && + !button_event_modifies_selection (event) && + (event->button == 1 || event->button == 2)) + { + /* Activate all selected items, and leave them selected */ + activate_selected_items (view); + } + else if ((event->button == 1 || event->button == 2) && + ((event->state & GDK_CONTROL_MASK) != 0 || (event->state & GDK_SHIFT_MASK) == 0) && + view->priv->selected_on_button_down) + { + if (!button_event_modifies_selection (event)) + { + gtk_tree_selection_unselect_all (selection); + gtk_tree_selection_select_path (selection, path); + } + else + { + gtk_tree_selection_unselect_path (selection, path); + } + } + + gtk_tree_path_free (path); + } +} + +static gboolean +button_release_event (GtkWidget *widget, + GdkEventButton *event) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + + if (event->button == view->priv->drag_button) + { + view->priv->drag_button = 0; + + if (!view->priv->drag_started && !view->priv->ignore_release) + did_not_drag (view, event); + } + + /* Chain up */ + return GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class)->button_release_event (widget, event); +} + +static gboolean +button_press_event (GtkWidget *widget, + GdkEventButton *event) +{ + GtkWidgetClass *widget_parent = GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class); + GtkTreeView *tree_view = GTK_TREE_VIEW (widget); + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view); + int double_click_time; + static int click_count = 0; + static guint32 last_click_time = 0; + GtkTreePath *path; + int expander_size; + int horizontal_separator; + gboolean on_expander; + gboolean call_parent; + gboolean selected; + + /* Get double click time */ + g_object_get (G_OBJECT (gtk_widget_get_settings (widget)), + "gtk-double-click-time", &double_click_time, + NULL); + + /* Determine click count */ + if (event->time - last_click_time < double_click_time) + click_count++; + else + click_count = 0; + + last_click_time = event->time; + + /* Ignore double click if we are in single click mode */ + if (view->priv->click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE && + click_count >= 2) + { + return TRUE; + } + + view->priv->ignore_release = FALSE; + call_parent = TRUE; + + if (gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path, NULL, NULL, NULL)) + { + /* Keep track of path of last click so double clicks only happen + * on the same item */ + if ((event->button == 1 || event->button == 2) && + event->type == GDK_BUTTON_PRESS) + { + if (view->priv->double_click_path[1]) + gtk_tree_path_free (view->priv->double_click_path[1]); + + view->priv->double_click_path[1] = view->priv->double_click_path[0]; + view->priv->double_click_path[0] = gtk_tree_path_copy (path); + } + + if (event->type == GDK_2BUTTON_PRESS) + { + /* Do not chain up. The row-activated signal is normally + * already sent, which will activate the selected item + * and open the file. + */ + } + else + { + /* We're going to filter out some situations where + * we can't let the default code run because all + * but one row would be deselected. We don't + * want that; we want the right click menu or single + * click to apply to everything that's currently selected. */ + selected = gtk_tree_selection_path_is_selected (selection, path); + + if (event->button == GDK_BUTTON_SECONDARY && selected) + call_parent = FALSE; + + if ((event->button == 1 || event->button == 2) && + ((event->state & GDK_CONTROL_MASK) != 0 || + (event->state & GDK_SHIFT_MASK) == 0)) + { + gtk_widget_style_get (widget, + "expander-size", &expander_size, + "horizontal-separator", &horizontal_separator, + NULL); + on_expander = (event->x <= horizontal_separator / 2 + + gtk_tree_path_get_depth (path) * expander_size); + + view->priv->selected_on_button_down = selected; + + if (selected) + { + call_parent = on_expander || gtk_tree_selection_count_selected_rows (selection) == 1; + view->priv->ignore_release = call_parent && view->priv->click_policy != GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE; + } + else if ((event->state & GDK_CONTROL_MASK) != 0) + { + call_parent = FALSE; + gtk_tree_selection_select_path (selection, path); + } + else + { + view->priv->ignore_release = on_expander; + } + } + + if (call_parent) + { + /* Chain up */ + widget_parent->button_press_event (widget, event); + } + else if (selected) + { + gtk_widget_grab_focus (widget); + } + + if ((event->button == 1 || event->button == 2) && + event->type == GDK_BUTTON_PRESS) + { + view->priv->drag_started = FALSE; + view->priv->drag_button = event->button; + } + } + + gtk_tree_path_free (path); + } + else + { + if ((event->button == 1 || event->button == 2) && + event->type == GDK_BUTTON_PRESS) + { + if (view->priv->double_click_path[1]) + gtk_tree_path_free (view->priv->double_click_path[1]); + + view->priv->double_click_path[1] = view->priv->double_click_path[0]; + view->priv->double_click_path[0] = NULL; + } + + gtk_tree_selection_unselect_all (selection); + /* Chain up */ + widget_parent->button_press_event (widget, event); + } + + /* We already chained up if nescessary, so just return TRUE */ + return TRUE; +} + +static gboolean +key_press_event (GtkWidget *widget, + GdkEventKey *event) +{ + GeditFileBrowserView *view = GEDIT_FILE_BROWSER_VIEW (widget); + guint modifiers = gtk_accelerator_get_default_mod_mask (); + gboolean handled = FALSE; + + switch (event->keyval) + { + case GDK_KEY_space: + if (event->state & GDK_CONTROL_MASK) + { + handled = FALSE; + break; + } + if (!gtk_widget_has_focus (widget)) + { + handled = FALSE; + break; + } + + activate_selected_items (view); + handled = TRUE; + break; + + case GDK_KEY_Return: + case GDK_KEY_KP_Enter: + activate_selected_items (view); + handled = TRUE; + break; + + case GDK_KEY_h: + if ((event->state & modifiers) == GDK_CONTROL_MASK) + { + toggle_hidden_filter (view); + handled = TRUE; + break; + } + + default: + handled = FALSE; + break; + } + + /* Chain up */ + if (!handled) + return GTK_WIDGET_CLASS (gedit_file_browser_view_parent_class)->key_press_event (widget, event); + + return TRUE; +} + +static void +fill_expand_state (GeditFileBrowserView *view, + GtkTreeIter *iter) +{ + GtkTreePath *path; + GtkTreeIter child; + + if (!gtk_tree_model_iter_has_child (view->priv->model, iter)) + return; + + path = gtk_tree_model_get_path (view->priv->model, iter); + + if (gtk_tree_view_row_expanded (GTK_TREE_VIEW (view), path)) + { + GFile *location; + + gtk_tree_model_get (view->priv->model, + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + add_expand_state (view, location); + + if (location) + g_object_unref (location); + } + + if (gtk_tree_model_iter_children (view->priv->model, &child, iter)) + { + do + { + fill_expand_state (view, &child); + } + while (gtk_tree_model_iter_next (view->priv->model, &child)); + } + + gtk_tree_path_free (path); +} + +static void +uninstall_restore_signals (GeditFileBrowserView *tree_view, + GtkTreeModel *model) +{ + g_signal_handlers_disconnect_by_func (model, on_begin_refresh, tree_view); + g_signal_handlers_disconnect_by_func (model, on_end_refresh, tree_view); + g_signal_handlers_disconnect_by_func (model, on_unload, tree_view); + g_signal_handlers_disconnect_by_func (model, on_row_inserted, tree_view); +} + +static void +install_restore_signals (GeditFileBrowserView *tree_view, + GtkTreeModel *model) +{ + g_signal_connect (model, "begin-refresh", G_CALLBACK (on_begin_refresh), tree_view); + g_signal_connect (model, "end-refresh", G_CALLBACK (on_end_refresh), tree_view); + g_signal_connect (model, "unload", G_CALLBACK (on_unload), tree_view); + g_signal_connect_after (model, "row-inserted", G_CALLBACK (on_row_inserted), tree_view); +} + +static void +set_restore_expand_state (GeditFileBrowserView *view, + gboolean state) +{ + if (state == view->priv->restore_expand_state) + return; + + if (view->priv->expand_state) + { + g_hash_table_destroy (view->priv->expand_state); + view->priv->expand_state = NULL; + } + + if (state) + { + view->priv->expand_state = g_hash_table_new_full (g_file_hash, + (GEqualFunc)g_file_equal, + g_object_unref, + NULL); + + if (view->priv->model && GEDIT_IS_FILE_BROWSER_STORE (view->priv->model)) + { + fill_expand_state (view, NULL); + install_restore_signals (view, view->priv->model); + } + } + else if (view->priv->model && GEDIT_IS_FILE_BROWSER_STORE (view->priv->model)) + { + uninstall_restore_signals (view, view->priv->model); + } + + view->priv->restore_expand_state = state; +} + +static void +get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserView *obj = GEDIT_FILE_BROWSER_VIEW (object); + + switch (prop_id) + { + case PROP_CLICK_POLICY: + g_value_set_enum (value, obj->priv->click_policy); + break; + case PROP_RESTORE_EXPAND_STATE: + g_value_set_boolean (value, obj->priv->restore_expand_state); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserView *obj = GEDIT_FILE_BROWSER_VIEW (object); + + switch (prop_id) + { + case PROP_CLICK_POLICY: + set_click_policy_property (obj, g_value_get_enum (value)); + break; + case PROP_RESTORE_EXPAND_STATE: + set_restore_expand_state (obj, g_value_get_boolean (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_file_browser_view_class_init (GeditFileBrowserViewClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkTreeViewClass *tree_view_class = GTK_TREE_VIEW_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->finalize = gedit_file_browser_view_finalize; + object_class->get_property = get_property; + object_class->set_property = set_property; + + /* Event handlers */ + widget_class->motion_notify_event = motion_notify_event; + widget_class->enter_notify_event = enter_notify_event; + widget_class->leave_notify_event = leave_notify_event; + widget_class->button_press_event = button_press_event; + widget_class->button_release_event = button_release_event; + widget_class->drag_begin = drag_begin; + widget_class->key_press_event = key_press_event; + + /* Tree view handlers */ + tree_view_class->row_activated = row_activated; + tree_view_class->row_expanded = row_expanded; + tree_view_class->row_collapsed = row_collapsed; + + /* Default handlers */ + klass->directory_activated = directory_activated; + + g_object_class_install_property (object_class, PROP_CLICK_POLICY, + g_param_spec_enum ("click-policy", + "Click Policy", + "The click policy", + GEDIT_TYPE_FILE_BROWSER_VIEW_CLICK_POLICY, + GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_DOUBLE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + + g_object_class_install_property (object_class, PROP_RESTORE_EXPAND_STATE, + g_param_spec_boolean ("restore-expand-state", + "Restore Expand State", + "Restore expanded state of loaded directories", + FALSE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + + signals[ERROR] = + g_signal_new ("error", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserViewClass, error), + NULL, NULL, NULL, + G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_STRING); + signals[FILE_ACTIVATED] = + g_signal_new ("file-activated", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserViewClass, file_activated), + NULL, NULL, NULL, + G_TYPE_NONE, 1, GTK_TYPE_TREE_ITER); + signals[DIRECTORY_ACTIVATED] = + g_signal_new ("directory-activated", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserViewClass, directory_activated), + NULL, NULL, NULL, + G_TYPE_NONE, 1, GTK_TYPE_TREE_ITER); + signals[BOOKMARK_ACTIVATED] = + g_signal_new ("bookmark-activated", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserViewClass, bookmark_activated), + NULL, NULL, NULL, + G_TYPE_NONE, 1, GTK_TYPE_TREE_ITER); +} + +static void +gedit_file_browser_view_class_finalize (GeditFileBrowserViewClass *klass) +{ +} + +static void +cell_data_cb (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + GeditFileBrowserView *obj) +{ + GtkTreePath *path = gtk_tree_model_get_path (tree_model, iter); + PangoUnderline underline = PANGO_UNDERLINE_NONE; + gboolean editable = FALSE; + + if (obj->priv->click_policy == GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE && + obj->priv->hover_path != NULL && + gtk_tree_path_compare (path, obj->priv->hover_path) == 0) + { + underline = PANGO_UNDERLINE_SINGLE; + } + + if (GEDIT_IS_FILE_BROWSER_STORE (tree_model) && + obj->priv->editable != NULL && + gtk_tree_row_reference_valid (obj->priv->editable)) + { + GtkTreePath *edpath = gtk_tree_row_reference_get_path (obj->priv->editable); + + editable = edpath && gtk_tree_path_compare (path, edpath) == 0; + + gtk_tree_path_free (edpath); + } + + gtk_tree_path_free (path); + g_object_set (cell, "editable", editable, "underline", underline, NULL); +} + +static void +icon_renderer_cb (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + GeditFileBrowserView *obj) +{ + GdkPixbuf *pixbuf; + gchar *icon_name; + gboolean set_pixbuf = FALSE; + + gtk_tree_model_get (tree_model, + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_ICON_NAME, &icon_name, + GEDIT_FILE_BROWSER_STORE_COLUMN_ICON, &pixbuf, + -1); + + if (pixbuf != NULL && (GEDIT_IS_FILE_BROWSER_STORE (tree_model) || icon_name == NULL)) + set_pixbuf = TRUE; + + if (set_pixbuf) + g_object_set (cell, "pixbuf", pixbuf, NULL); + else + g_object_set (cell, "icon-name", icon_name, NULL); + + g_clear_object (&pixbuf); + g_free (icon_name); +} + +static void +gedit_file_browser_view_init (GeditFileBrowserView *obj) +{ + obj->priv = gedit_file_browser_view_get_instance_private (obj); + + obj->priv->column = gtk_tree_view_column_new (); + + obj->priv->pixbuf_renderer = gtk_cell_renderer_pixbuf_new (); + gtk_tree_view_column_pack_start (obj->priv->column, + obj->priv->pixbuf_renderer, + FALSE); + + gtk_tree_view_column_set_cell_data_func (obj->priv->column, + obj->priv->pixbuf_renderer, + (GtkTreeCellDataFunc)icon_renderer_cb, + obj, + NULL); + + obj->priv->text_renderer = gtk_cell_renderer_text_new (); + gtk_tree_view_column_pack_start (obj->priv->column, + obj->priv->text_renderer, TRUE); + gtk_tree_view_column_add_attribute (obj->priv->column, + obj->priv->text_renderer, + "markup", + GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP); + + g_signal_connect (obj->priv->text_renderer, "edited", + G_CALLBACK (on_cell_edited), obj); + + gtk_tree_view_append_column (GTK_TREE_VIEW (obj), + obj->priv->column); + gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (obj), FALSE); + + gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (obj), + GDK_BUTTON1_MASK, + drag_source_targets, + G_N_ELEMENTS (drag_source_targets), + GDK_ACTION_COPY); +} + +static gboolean +bookmarks_separator_func (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer user_data) +{ + guint flags; + + gtk_tree_model_get (model, + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &flags, + -1); + + return (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_SEPARATOR); +} + +/* Public */ +GtkWidget * +gedit_file_browser_view_new (void) +{ + GeditFileBrowserView *obj = GEDIT_FILE_BROWSER_VIEW (g_object_new (GEDIT_TYPE_FILE_BROWSER_VIEW, NULL)); + + return GTK_WIDGET (obj); +} + +void +gedit_file_browser_view_set_model (GeditFileBrowserView *tree_view, + GtkTreeModel *model) +{ + GtkTreeSelection *selection; + gint search_column; + + if (tree_view->priv->model == model) + return; + + selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)); + + if (GEDIT_IS_FILE_BOOKMARKS_STORE (model)) + { + gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE); + gtk_tree_view_set_row_separator_func (GTK_TREE_VIEW (tree_view), bookmarks_separator_func, NULL, NULL); + gtk_tree_view_column_set_cell_data_func (tree_view->priv->column, + tree_view->priv->text_renderer, + (GtkTreeCellDataFunc)cell_data_cb, + tree_view, NULL); + search_column = GEDIT_FILE_BOOKMARKS_STORE_COLUMN_NAME; + } + else + { + gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE); + gtk_tree_view_set_row_separator_func (GTK_TREE_VIEW (tree_view), NULL, NULL, NULL); + gtk_tree_view_column_set_cell_data_func (tree_view->priv->column, + tree_view->priv->text_renderer, + (GtkTreeCellDataFunc)cell_data_cb, + tree_view, NULL); + search_column = GEDIT_FILE_BROWSER_STORE_COLUMN_NAME; + + if (tree_view->priv->restore_expand_state) + install_restore_signals (tree_view, model); + + } + + if (tree_view->priv->hover_path != NULL) + { + gtk_tree_path_free (tree_view->priv->hover_path); + tree_view->priv->hover_path = NULL; + } + + if (GEDIT_IS_FILE_BROWSER_STORE (tree_view->priv->model) && + tree_view->priv->restore_expand_state) + { + uninstall_restore_signals (tree_view, tree_view->priv->model); + } + + tree_view->priv->model = model; + gtk_tree_view_set_model (GTK_TREE_VIEW (tree_view), model); + gtk_tree_view_set_search_column (GTK_TREE_VIEW (tree_view), search_column); +} + +void +gedit_file_browser_view_start_rename (GeditFileBrowserView *tree_view, + GtkTreeIter *iter) +{ + gchar *name; + gchar *markup; + guint flags; + GValue name_escaped = G_VALUE_INIT; + GtkTreeRowReference *rowref; + GtkTreePath *path; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_VIEW (tree_view)); + g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (tree_view->priv->model)); + g_return_if_fail (iter != NULL); + + gtk_tree_model_get (tree_view->priv->model, + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_NAME, &name, + GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP, &markup, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!(FILE_IS_DIR (flags) || !FILE_IS_DUMMY (flags))) + { + g_free (name); + g_free (markup); + return; + } + + /* Restore the markup to the original + * name, a plugin might have changed the markup. + */ + g_value_init (&name_escaped, G_TYPE_STRING); + g_value_take_string (&name_escaped, g_markup_escape_text (name, -1)); + gedit_file_browser_store_set_value (GEDIT_FILE_BROWSER_STORE (tree_view->priv->model), + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP, &name_escaped); + + path = gtk_tree_model_get_path (tree_view->priv->model, iter); + rowref = gtk_tree_row_reference_new (tree_view->priv->model, path); + + /* Start editing */ + gtk_widget_grab_focus (GTK_WIDGET (tree_view)); + + if (gtk_tree_path_up (path)) + gtk_tree_view_expand_to_path (GTK_TREE_VIEW (tree_view), path); + + gtk_tree_path_free (path); + + tree_view->priv->orig_markup = markup; + tree_view->priv->editable = rowref; + + /* grab focus on the text cell which is editable */ + gtk_tree_view_column_focus_cell (tree_view->priv->column, tree_view->priv->text_renderer); + + path = gtk_tree_row_reference_get_path (tree_view->priv->editable), + gtk_tree_view_set_cursor (GTK_TREE_VIEW (tree_view), path, tree_view->priv->column, TRUE); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tree_view), + path, tree_view->priv->column, + FALSE, 0.0, 0.0); + + gtk_tree_path_free (path); + g_value_unset (&name_escaped); + g_free (name); +} + +void +gedit_file_browser_view_set_click_policy (GeditFileBrowserView *tree_view, + GeditFileBrowserViewClickPolicy policy) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_VIEW (tree_view)); + + set_click_policy_property (tree_view, policy); + + g_object_notify (G_OBJECT (tree_view), "click-policy"); +} + +void +gedit_file_browser_view_set_restore_expand_state (GeditFileBrowserView *tree_view, + gboolean restore_expand_state) +{ + g_return_if_fail (GEDIT_IS_FILE_BROWSER_VIEW (tree_view)); + + set_restore_expand_state (tree_view, restore_expand_state); + g_object_notify (G_OBJECT (tree_view), "restore-expand-state"); +} + +/* Signal handlers */ +static void +on_cell_edited (GtkCellRendererText *cell, + gchar *path, + gchar *new_text, + GeditFileBrowserView *tree_view) +{ + GtkTreePath *treepath = gtk_tree_path_new_from_string (path); + GtkTreeIter iter; + gboolean ret; + GValue orig_markup = G_VALUE_INIT; + GError *error = NULL; + + ret = gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_view->priv->model), &iter, treepath); + gtk_tree_path_free (treepath); + + if (ret) + { + /* Restore the original markup */ + g_value_init (&orig_markup, G_TYPE_STRING); + g_value_set_string (&orig_markup, tree_view->priv->orig_markup); + gedit_file_browser_store_set_value (GEDIT_FILE_BROWSER_STORE (tree_view->priv->model), &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_MARKUP, &orig_markup); + + if (new_text != NULL && *new_text != '\0' && + gedit_file_browser_store_rename (GEDIT_FILE_BROWSER_STORE (tree_view->priv->model), + &iter, + new_text, + &error)) + { + treepath = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_view->priv->model), &iter); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tree_view), + treepath, NULL, + FALSE, 0.0, 0.0); + gtk_tree_path_free (treepath); + } + else if (error) + { + g_signal_emit (tree_view, signals[ERROR], 0, error->code, error->message); + g_error_free (error); + } + + g_value_unset (&orig_markup); + } + + g_free (tree_view->priv->orig_markup); + tree_view->priv->orig_markup = NULL; + + gtk_tree_row_reference_free (tree_view->priv->editable); + tree_view->priv->editable = NULL; +} + +static void +on_begin_refresh (GeditFileBrowserStore *model, + GeditFileBrowserView *view) +{ + /* Store the refresh state, so we can handle unloading of nodes while + refreshing properly */ + view->priv->is_refresh = TRUE; +} + +static void +on_end_refresh (GeditFileBrowserStore *model, + GeditFileBrowserView *view) +{ + /* Store the refresh state, so we can handle unloading of nodes while + refreshing properly */ + view->priv->is_refresh = FALSE; +} + +static void +on_unload (GeditFileBrowserStore *model, + GFile *location, + GeditFileBrowserView *view) +{ + /* Don't remove the expand state if we are refreshing */ + if (!view->priv->restore_expand_state || view->priv->is_refresh) + return; + + remove_expand_state (view, location); +} + +static void +restore_expand_state (GeditFileBrowserView *view, + GeditFileBrowserStore *model, + GtkTreeIter *iter) +{ + GFile *location; + + gtk_tree_model_get (GTK_TREE_MODEL (model), + iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + if (location) + { + GtkTreePath *path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), iter); + + if (g_hash_table_lookup (view->priv->expand_state, location)) + gtk_tree_view_expand_row (GTK_TREE_VIEW (view), path, FALSE); + + gtk_tree_path_free (path); + g_object_unref (location); + } +} + +static void +on_row_inserted (GeditFileBrowserStore *model, + GtkTreePath *path, + GtkTreeIter *iter, + GeditFileBrowserView *view) +{ + GtkTreeIter parent; + GtkTreePath *copy; + + if (gtk_tree_model_iter_has_child (GTK_TREE_MODEL (model), iter)) + restore_expand_state (view, model, iter); + + copy = gtk_tree_path_copy (path); + + if (gtk_tree_path_up (copy) && + (gtk_tree_path_get_depth (copy) != 0) && + gtk_tree_model_get_iter (GTK_TREE_MODEL (model), &parent, copy)) + { + restore_expand_state (view, model, &parent); + } + + gtk_tree_path_free (copy); +} + +void +_gedit_file_browser_view_register_type (GTypeModule *type_module) +{ + gedit_file_browser_view_register_type (type_module); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-view.h b/plugins/filebrowser/gedit-file-browser-view.h new file mode 100644 index 0000000..8c2efc8 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-view.h @@ -0,0 +1,84 @@ +/* + * gedit-file-browser-view.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_VIEW_H +#define GEDIT_FILE_BROWSER_VIEW_H + +#include + +G_BEGIN_DECLS +#define GEDIT_TYPE_FILE_BROWSER_VIEW (gedit_file_browser_view_get_type ()) +#define GEDIT_FILE_BROWSER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_VIEW, GeditFileBrowserView)) +#define GEDIT_FILE_BROWSER_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_VIEW, GeditFileBrowserView const)) +#define GEDIT_FILE_BROWSER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_BROWSER_VIEW, GeditFileBrowserViewClass)) +#define GEDIT_IS_FILE_BROWSER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_BROWSER_VIEW)) +#define GEDIT_IS_FILE_BROWSER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_BROWSER_VIEW)) +#define GEDIT_FILE_BROWSER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_BROWSER_VIEW, GeditFileBrowserViewClass)) + +typedef struct _GeditFileBrowserView GeditFileBrowserView; +typedef struct _GeditFileBrowserViewClass GeditFileBrowserViewClass; +typedef struct _GeditFileBrowserViewPrivate GeditFileBrowserViewPrivate; + +typedef enum { + GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE, + GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_DOUBLE +} GeditFileBrowserViewClickPolicy; + +struct _GeditFileBrowserView +{ + GtkTreeView parent; + + GeditFileBrowserViewPrivate *priv; +}; + +struct _GeditFileBrowserViewClass +{ + GtkTreeViewClass parent_class; + + /* Signals */ + void (* error) (GeditFileBrowserView *filetree, + guint code, + gchar const *message); + void (* file_activated) (GeditFileBrowserView *filetree, + GtkTreeIter *iter); + void (* directory_activated) (GeditFileBrowserView *filetree, + GtkTreeIter *iter); + void (* bookmark_activated) (GeditFileBrowserView *filetree, + GtkTreeIter *iter); +}; + +GType gedit_file_browser_view_get_type (void) G_GNUC_CONST; + +GtkWidget *gedit_file_browser_view_new (void); +void gedit_file_browser_view_set_model (GeditFileBrowserView *tree_view, + GtkTreeModel *model); +void gedit_file_browser_view_start_rename (GeditFileBrowserView *tree_view, + GtkTreeIter *iter); +void gedit_file_browser_view_set_click_policy (GeditFileBrowserView *tree_view, + GeditFileBrowserViewClickPolicy policy); +void gedit_file_browser_view_set_restore_expand_state (GeditFileBrowserView *tree_view, + gboolean restore_expand_state); + +void _gedit_file_browser_view_register_type (GTypeModule *type_module); + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_VIEW_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-widget.c b/plugins/filebrowser/gedit-file-browser-widget.c new file mode 100644 index 0000000..eab78ed --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-widget.c @@ -0,0 +1,3150 @@ +/* + * gedit-file-browser-widget.c - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include + +#include "gedit-file-browser-utils.h" +#include "gedit-file-browser-error.h" +#include "gedit-file-browser-widget.h" +#include "gedit-file-browser-view.h" +#include "gedit-file-browser-store.h" +#include "gedit-file-bookmarks-store.h" +#include "gedit-file-browser-enum-types.h" + +#define LOCATION_DATA_KEY "gedit-file-browser-widget-location" + +enum +{ + BOOKMARKS_ID, + SEPARATOR_CUSTOM_ID, + SEPARATOR_ID, + PATH_ID, + NUM_DEFAULT_IDS +}; + +enum +{ + COLUMN_ICON, + COLUMN_ICON_NAME, + COLUMN_NAME, + COLUMN_FILE, + COLUMN_ID, + N_COLUMNS +}; + +/* Properties */ +enum +{ + PROP_0, + + PROP_FILTER_PATTERN, +}; + +/* Signals */ +enum +{ + LOCATION_ACTIVATED, + ERROR, + CONFIRM_DELETE, + CONFIRM_NO_TRASH, + OPEN_IN_TERMINAL, + SET_ACTIVE_ROOT, + NUM_SIGNALS +}; + +static guint signals[NUM_SIGNALS] = { 0 }; + +typedef struct _SignalNode +{ + GObject *object; + gulong id; +} SignalNode; + +typedef struct +{ + gulong id; + GeditFileBrowserWidgetFilterFunc func; + gpointer user_data; + GDestroyNotify destroy_notify; +} FilterFunc; + +typedef struct +{ + GFile *root; + GFile *virtual_root; +} Location; + +typedef struct +{ + gchar *name; + gchar *icon_name; + GdkPixbuf *icon; +} NameIcon; + +struct _GeditFileBrowserWidgetPrivate +{ + GeditFileBrowserView *treeview; + GeditFileBrowserStore *file_store; + GeditFileBookmarksStore *bookmarks_store; + + GHashTable *bookmarks_hash; + + GMenuModel *dir_menu; + GMenuModel *bookmarks_menu; + + GtkWidget *previous_button; + GtkWidget *next_button; + + GtkWidget *locations_button; + GtkWidget *locations_popover; + GtkWidget *locations_treeview; + GtkTreeViewColumn *treeview_icon_column; + GtkCellRenderer *treeview_icon_renderer; + GtkTreeSelection *locations_treeview_selection; + GtkWidget *locations_button_arrow; + GtkWidget *locations_cellview; + GtkListStore *locations_model; + + GtkWidget *location_entry; + + GtkWidget *filter_entry_revealer; + GtkWidget *filter_entry; + + GSimpleActionGroup *action_group; + + GSList *signal_pool; + + GSList *filter_funcs; + gulong filter_id; + gulong glob_filter_id; + GPatternSpec *filter_pattern; + gchar *filter_pattern_str; + + GList *locations; + GList *current_location; + gboolean changing_location; + GtkWidget *location_previous_menu; + GtkWidget *location_next_menu; + GtkWidget *current_location_menu_item; + + GCancellable *cancellable; + + GdkCursor *busy_cursor; +}; + +static void on_model_set (GObject *gobject, + GParamSpec *arg1, + GeditFileBrowserWidget *obj); +static void on_treeview_error (GeditFileBrowserView *tree_view, + guint code, + gchar *message, + GeditFileBrowserWidget *obj); +static void on_file_store_error (GeditFileBrowserStore *store, + guint code, + gchar *message, + GeditFileBrowserWidget *obj); +static gboolean on_file_store_no_trash (GeditFileBrowserStore *store, + GList *files, + GeditFileBrowserWidget *obj); +static gboolean on_location_button_press_event (GtkWidget *button, + GdkEventButton *event, + GeditFileBrowserWidget *obj); +static void on_location_entry_activate (GtkEntry *entry, + GeditFileBrowserWidget *obj); +static gboolean + on_location_entry_focus_out_event (GtkWidget *entry, + GdkEvent *event, + GeditFileBrowserWidget *obj); +static gboolean + on_location_entry_key_press_event (GtkWidget *entry, + GdkEventKey *event, + GeditFileBrowserWidget *obj); +static gboolean on_treeview_popup_menu (GeditFileBrowserView *treeview, + GeditFileBrowserWidget *obj); +static gboolean on_treeview_button_press_event (GeditFileBrowserView *treeview, + GdkEventButton *event, + GeditFileBrowserWidget *obj); +static gboolean on_treeview_key_press_event (GeditFileBrowserView *treeview, + GdkEventKey *event, + GeditFileBrowserWidget *obj); +static void on_selection_changed (GtkTreeSelection *selection, + GeditFileBrowserWidget *obj); + +static void on_virtual_root_changed (GeditFileBrowserStore *model, + GParamSpec *param, + GeditFileBrowserWidget *obj); + +static gboolean on_entry_filter_activate (GeditFileBrowserWidget *obj); +static void on_location_jump_activate (GtkMenuItem *item, + GeditFileBrowserWidget *obj); +static void on_bookmarks_row_changed (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj); +static void on_bookmarks_row_deleted (GtkTreeModel *model, + GtkTreePath *path, + GeditFileBrowserWidget *obj); +static void on_filter_mode_changed (GeditFileBrowserStore *model, + GParamSpec *param, + GeditFileBrowserWidget *obj); +static void previous_location_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void next_location_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void up_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void home_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void new_folder_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void open_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void new_file_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void rename_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void delete_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void move_to_trash_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void refresh_view_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void view_folder_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void change_show_hidden_state (GSimpleAction *action, + GVariant *state, + gpointer user_data); +static void change_show_binary_state (GSimpleAction *action, + GVariant *state, + gpointer user_data); +static void change_show_match_filename (GSimpleAction *action, + GVariant *state, + gpointer user_data); +static void open_in_terminal_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void set_active_root_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void on_locations_treeview_selection_changed (GtkTreeSelection *treeselection, + GeditFileBrowserWidget *obj); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditFileBrowserWidget, + gedit_file_browser_widget, + GTK_TYPE_GRID, + 0, + G_ADD_PRIVATE_DYNAMIC (GeditFileBrowserWidget)) + +static void +free_name_icon (gpointer data) +{ + NameIcon *item = (NameIcon *)(data); + + if (item == NULL) + return; + + g_free (item->icon_name); + g_free (item->name); + + if (item->icon) + g_object_unref (item->icon); + + g_slice_free (NameIcon, item); +} + +static FilterFunc * +filter_func_new (GeditFileBrowserWidget *obj, + GeditFileBrowserWidgetFilterFunc func, + gpointer user_data, + GDestroyNotify notify) +{ + FilterFunc *result = g_slice_new (FilterFunc); + + result->id = ++obj->priv->filter_id; + result->func = func; + result->user_data = user_data; + result->destroy_notify = notify; + return result; +} + +static void +location_free (Location *loc) +{ + if (loc->root) + g_object_unref (loc->root); + + if (loc->virtual_root) + g_object_unref (loc->virtual_root); + + g_slice_free (Location, loc); +} + +static gboolean +locations_find_by_id (GeditFileBrowserWidget *obj, + guint id, + GtkTreeIter *iter) +{ + GtkTreeModel *model = GTK_TREE_MODEL (obj->priv->locations_model); + guint checkid; + + if (iter == NULL) + return FALSE; + + if (gtk_tree_model_get_iter_first (model, iter)) + { + do + { + gtk_tree_model_get (model, + iter, + COLUMN_ID, &checkid, + -1); + + if (checkid == id) + return TRUE; + } + while (gtk_tree_model_iter_next (model, iter)); + } + + return FALSE; +} + +static void +cancel_async_operation (GeditFileBrowserWidget *widget) +{ + if (!widget->priv->cancellable) + return; + + g_cancellable_cancel (widget->priv->cancellable); + g_object_unref (widget->priv->cancellable); + + widget->priv->cancellable = NULL; +} + +static void +filter_func_free (FilterFunc *func) +{ + g_slice_free (FilterFunc, func); +} + +static void +gedit_file_browser_widget_finalize (GObject *object) +{ + GeditFileBrowserWidgetPrivate *priv = GEDIT_FILE_BROWSER_WIDGET (object)->priv; + + g_free (priv->filter_pattern_str); + + G_OBJECT_CLASS (gedit_file_browser_widget_parent_class)->finalize (object); +} + +static void +clear_signals (GeditFileBrowserWidget *obj) +{ + GSList *item = obj->priv->signal_pool; + SignalNode *node; + + while (item != NULL) + { + node = (SignalNode *) (item->data); + item = g_slist_delete_link (item, item); + + g_signal_handler_disconnect (node->object, node->id); + g_slice_free (SignalNode, node); + } + + obj->priv->signal_pool = NULL; +} + +static void +gedit_file_browser_widget_dispose (GObject *object) +{ + GeditFileBrowserWidget *obj = GEDIT_FILE_BROWSER_WIDGET (object); + GeditFileBrowserWidgetPrivate *priv = obj->priv; + + clear_signals (obj); + g_clear_object (&priv->file_store); + g_clear_object (&priv->bookmarks_store); + + g_slist_free_full (priv->filter_funcs, (GDestroyNotify)filter_func_free); + g_list_free_full (priv->locations, (GDestroyNotify)location_free); + + if (priv->bookmarks_hash != NULL) + { + g_hash_table_unref (priv->bookmarks_hash); + priv->bookmarks_hash = NULL; + } + + cancel_async_operation (obj); + + g_clear_object (&obj->priv->current_location_menu_item); + g_clear_object (&priv->busy_cursor); + g_clear_object (&priv->dir_menu); + g_clear_object (&priv->bookmarks_menu); + + G_OBJECT_CLASS (gedit_file_browser_widget_parent_class)->dispose (object); +} + +static void +gedit_file_browser_widget_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserWidget *obj = GEDIT_FILE_BROWSER_WIDGET (object); + + switch (prop_id) + { + case PROP_FILTER_PATTERN: + g_value_set_string (value, obj->priv->filter_pattern_str); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_file_browser_widget_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserWidget *obj = GEDIT_FILE_BROWSER_WIDGET (object); + + switch (prop_id) + { + case PROP_FILTER_PATTERN: + gedit_file_browser_widget_set_filter_pattern (obj, + g_value_get_string (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_file_browser_widget_class_init (GeditFileBrowserWidgetClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + + object_class->finalize = gedit_file_browser_widget_finalize; + object_class->dispose = gedit_file_browser_widget_dispose; + + object_class->get_property = gedit_file_browser_widget_get_property; + object_class->set_property = gedit_file_browser_widget_set_property; + + g_object_class_install_property (object_class, PROP_FILTER_PATTERN, + g_param_spec_string ("filter-pattern", + "Filter Pattern", + "The filter pattern", + "", + G_PARAM_READWRITE)); + + signals[LOCATION_ACTIVATED] = + g_signal_new ("location-activated", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserWidgetClass, location_activated), + NULL, NULL, NULL, + G_TYPE_NONE, 1, G_TYPE_FILE); + + signals[ERROR] = + g_signal_new ("error", G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserWidgetClass, error), + NULL, NULL, NULL, + G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_STRING); + + signals[CONFIRM_DELETE] = + g_signal_new ("confirm-delete", G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserWidgetClass, confirm_delete), + g_signal_accumulator_true_handled, NULL, NULL, + G_TYPE_BOOLEAN, 2, G_TYPE_OBJECT, G_TYPE_POINTER); + + signals[CONFIRM_NO_TRASH] = + g_signal_new ("confirm-no-trash", G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserWidgetClass, confirm_no_trash), + g_signal_accumulator_true_handled, NULL, NULL, + G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); + + signals[OPEN_IN_TERMINAL] = + g_signal_new ("open-in-terminal", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserWidgetClass, open_in_terminal), + NULL, NULL, NULL, + G_TYPE_NONE, 1, G_TYPE_FILE); + + signals[SET_ACTIVE_ROOT] = + g_signal_new ("set-active-root", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GeditFileBrowserWidgetClass, set_active_root), + NULL, NULL, NULL, + G_TYPE_NONE, 0); + + /* Bind class to template */ + gtk_widget_class_set_template_from_resource (widget_class, + "/org/gnome/gedit/plugins/file-browser/ui/gedit-file-browser-widget.ui"); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, previous_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, next_button); + + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_button); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_popover); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_treeview); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_treeview_selection); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, treeview_icon_column); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, treeview_icon_renderer); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_cellview); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_button_arrow); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, locations_model); + + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, location_entry); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, treeview); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, filter_entry_revealer); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, filter_entry); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, location_previous_menu); + gtk_widget_class_bind_template_child_private (widget_class, GeditFileBrowserWidget, location_next_menu); +} + +static void +gedit_file_browser_widget_class_finalize (GeditFileBrowserWidgetClass *klass) +{ +} + +static void +add_signal (GeditFileBrowserWidget *obj, + gpointer object, + gulong id) +{ + SignalNode *node = g_slice_new (SignalNode); + + node->object = G_OBJECT (object); + node->id = id; + + obj->priv->signal_pool = g_slist_prepend (obj->priv->signal_pool, node); +} + +static gboolean +separator_func (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data) +{ + guint id; + + gtk_tree_model_get (model, iter, COLUMN_ID, &id, -1); + + return (id == SEPARATOR_ID); +} + +static gboolean +get_from_bookmark_file (GeditFileBrowserWidget *obj, + GFile *file, + gchar **name, + gchar **icon_name, + GdkPixbuf **icon) +{ + NameIcon *item = (NameIcon *)g_hash_table_lookup (obj->priv->bookmarks_hash, file); + + if (item == NULL) + return FALSE; + + *name = g_strdup (item->name); + *icon_name = g_strdup (item->icon_name); + + if (icon != NULL && item->icon != NULL) + { + *icon = g_object_ref (item->icon); + } + + return TRUE; +} + +static void +insert_path_item (GeditFileBrowserWidget *obj, + GFile *file, + GtkTreeIter *after, + GtkTreeIter *iter) +{ + gchar *unescape = NULL; + gchar *icon_name = NULL; + GdkPixbuf *icon = NULL; + + /* Try to get the icon and name from the bookmarks hash */ + if (!get_from_bookmark_file (obj, file, &unescape, &icon_name, &icon)) + { + /* It's not a bookmark, fetch the name and the icon ourselves */ + unescape = gedit_file_browser_utils_file_basename (file); + + /* Get the icon */ + icon_name = gedit_file_browser_utils_symbolic_icon_name_from_file (file); + } + + gtk_list_store_insert_after (obj->priv->locations_model, iter, after); + + gtk_list_store_set (obj->priv->locations_model, + iter, + COLUMN_ICON, icon, + COLUMN_ICON_NAME, icon_name, + COLUMN_NAME, unescape, + COLUMN_FILE, file, + COLUMN_ID, PATH_ID, + -1); + + if (icon) + g_object_unref (icon); + + g_free (icon_name); + g_free (unescape); +} + +static void +insert_separator_item (GeditFileBrowserWidget *obj) +{ + GtkTreeIter iter; + + gtk_list_store_insert (obj->priv->locations_model, &iter, 1); + gtk_list_store_set (obj->priv->locations_model, &iter, + COLUMN_ICON, NULL, + COLUMN_ICON_NAME, NULL, + COLUMN_NAME, NULL, + COLUMN_ID, SEPARATOR_ID, -1); +} + +static void +insert_location_path (GeditFileBrowserWidget *obj) +{ + GeditFileBrowserWidgetPrivate *priv = obj->priv; + Location *loc; + GFile *current = NULL; + GFile *tmp; + GtkTreeIter separator; + GtkTreeIter iter; + + if (!priv->current_location) + { + g_message ("insert_location_path: no current location"); + return; + } + + loc = (Location *)(priv->current_location->data); + + current = loc->virtual_root; + locations_find_by_id (obj, SEPARATOR_ID, &separator); + + while (current != NULL) + { + insert_path_item (obj, current, &separator, &iter); + + if (current == loc->virtual_root) + { + + g_signal_handlers_block_by_func (priv->locations_treeview, + on_locations_treeview_selection_changed, + obj); + + gtk_tree_selection_select_iter (priv->locations_treeview_selection, &iter); + + g_signal_handlers_unblock_by_func (priv->locations_treeview, + on_locations_treeview_selection_changed, + obj); + } + + if (g_file_equal (current, loc->root) || + !g_file_has_parent (current, NULL)) + { + if (current != loc->virtual_root) + g_object_unref (current); + break; + } + + tmp = g_file_get_parent (current); + + if (current != loc->virtual_root) + g_object_unref (current); + + current = tmp; + } +} + +static void +remove_path_items (GeditFileBrowserWidget *obj) +{ + GtkTreeIter iter; + + while (locations_find_by_id (obj, PATH_ID, &iter)) + { + gtk_list_store_remove (obj->priv->locations_model, &iter); + } +} + +static void +check_current_item (GeditFileBrowserWidget *obj, + gboolean show_path) +{ + GtkTreeIter separator; + gboolean has_sep; + + remove_path_items (obj); + has_sep = locations_find_by_id (obj, SEPARATOR_ID, &separator); + + if (show_path) + { + if (!has_sep) + insert_separator_item (obj); + + insert_location_path (obj); + } + else if (has_sep) + { + gtk_list_store_remove (obj->priv->locations_model, &separator); + } +} + +static void +fill_locations_model (GeditFileBrowserWidget *obj) +{ + GeditFileBrowserWidgetPrivate *priv = obj->priv; + GtkTreeIter iter; + + gtk_list_store_append (priv->locations_model, &iter); + gtk_list_store_set (priv->locations_model, + &iter, + COLUMN_ICON, NULL, + COLUMN_ICON_NAME, "user-bookmarks-symbolic", + COLUMN_NAME, _("Bookmarks"), + COLUMN_ID, BOOKMARKS_ID, -1); + + gtk_tree_view_set_row_separator_func (GTK_TREE_VIEW (priv->locations_treeview), + separator_func, + obj, + NULL); + + gtk_tree_selection_select_iter (priv->locations_treeview_selection, &iter); + + on_locations_treeview_selection_changed (priv->locations_treeview_selection, obj); + gedit_file_browser_widget_show_bookmarks (obj); +} + +static gboolean +filter_real (GeditFileBrowserStore *model, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + GSList *item; + + for (item = obj->priv->filter_funcs; item; item = item->next) + { + FilterFunc *func = (FilterFunc *)(item->data); + + if (!func->func (obj, model, iter, func->user_data)) + return FALSE; + } + + return TRUE; +} + +static void +add_bookmark_hash (GeditFileBrowserWidget *obj, + GtkTreeIter *iter) +{ + GtkTreeModel *model = GTK_TREE_MODEL (obj->priv->bookmarks_store); + GdkPixbuf *pixbuf; + gchar *name; + gchar *icon_name; + GFile *location; + NameIcon *item; + + if (!(location = gedit_file_bookmarks_store_get_location (obj->priv->bookmarks_store, iter))) + return; + + gtk_tree_model_get (model, + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON, &pixbuf, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON_NAME, &icon_name, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_NAME, &name, + -1); + + item = g_slice_new (NameIcon); + item->name = name; + item->icon_name = icon_name; + item->icon = pixbuf; + + g_hash_table_insert (obj->priv->bookmarks_hash, + location, + item); +} + +static void +init_bookmarks_hash (GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = GTK_TREE_MODEL (obj->priv->bookmarks_store); + GtkTreeIter iter; + + if (!gtk_tree_model_get_iter_first (model, &iter)) + return; + + do + { + add_bookmark_hash (obj, &iter); + } + while (gtk_tree_model_iter_next (model, &iter)); + + g_signal_connect (obj->priv->bookmarks_store, + "row-changed", + G_CALLBACK (on_bookmarks_row_changed), + obj); + + g_signal_connect (obj->priv->bookmarks_store, + "row-deleted", + G_CALLBACK (on_bookmarks_row_deleted), + obj); +} + +static void +on_begin_loading (GeditFileBrowserStore *model, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + if (!GDK_IS_WINDOW (gtk_widget_get_window (GTK_WIDGET (obj->priv->treeview)))) + return; + + gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (obj)), + obj->priv->busy_cursor); +} + +static void +on_end_loading (GeditFileBrowserStore *model, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + if (!GDK_IS_WINDOW (gtk_widget_get_window (GTK_WIDGET (obj->priv->treeview)))) + return; + + gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (obj)), NULL); +} + +static void +on_locations_treeview_row_activated (GtkTreeView *locations_treeview, + GtkTreePath *path, + GtkTreeViewColumn *column, + GeditFileBrowserWidget *obj) +{ + GeditFileBrowserWidgetPrivate *priv = obj->priv; + GtkTreeIter iter; + guint id = G_MAXUINT; + GFile *file; + + if (gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->locations_model), &iter, path)) + { + gtk_tree_model_get (GTK_TREE_MODEL (priv->locations_model), &iter, COLUMN_ID, &id, -1); + } + + if (id == BOOKMARKS_ID) + { + gedit_file_browser_widget_show_bookmarks (obj); + } + else if (id == PATH_ID) + { + gtk_tree_model_get (GTK_TREE_MODEL (priv->locations_model), + &iter, + COLUMN_FILE, &file, + -1); + + gedit_file_browser_store_set_virtual_root_from_location (priv->file_store, file); + + g_object_unref (file); + gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (priv->locations_cellview), path); + } + + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->locations_button), FALSE); +} + +static GActionEntry browser_entries[] = { + { "open", open_activated }, + { "set_active_root", set_active_root_activated }, + { "new_folder", new_folder_activated }, + { "new_file", new_file_activated }, + { "rename", rename_activated }, + { "move_to_trash", move_to_trash_activated }, + { "delete", delete_activated }, + { "refresh_view", refresh_view_activated }, + { "view_folder", view_folder_activated }, + { "open_in_terminal", open_in_terminal_activated }, + { "show_hidden", NULL, NULL, "false", change_show_hidden_state }, + { "show_binary", NULL, NULL, "false", change_show_binary_state }, + { "show_match_filename", NULL, NULL, "false", change_show_match_filename }, + { "previous_location", previous_location_activated }, + { "next_location", next_location_activated }, + { "up", up_activated }, + { "home", home_activated } +}; + +static void +locations_icon_renderer_cb (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + GdkPixbuf *pixbuf; + gchar *icon_name; + + gtk_tree_model_get (tree_model, + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON_NAME, &icon_name, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_ICON, &pixbuf, + -1); + + if (icon_name != NULL) + g_object_set (cell, "icon-name", icon_name, NULL); + else + g_object_set (cell, "pixbuf", pixbuf, NULL); + + g_clear_object (&pixbuf); + g_free (icon_name); +} + +static void +gedit_file_browser_widget_init (GeditFileBrowserWidget *obj) +{ + GtkBuilder *builder; + GdkDisplay *display; + GAction *action; + GError *error = NULL; + + obj->priv = gedit_file_browser_widget_get_instance_private (obj); + + obj->priv->filter_pattern_str = g_strdup (""); + obj->priv->bookmarks_hash = g_hash_table_new_full (g_file_hash, + (GEqualFunc)g_file_equal, + g_object_unref, + free_name_icon); + + display = gtk_widget_get_display (GTK_WIDGET (obj)); + obj->priv->busy_cursor = gdk_cursor_new_from_name (display, "progress"); + + builder = gtk_builder_new (); + if (!gtk_builder_add_from_resource (builder, + "/org/gnome/gedit/plugins/file-browser/ui/gedit-file-browser-menus.ui", + &error)) + { + g_warning ("loading menu builder file: %s", error->message); + g_error_free (error); + } + else + { + obj->priv->dir_menu = G_MENU_MODEL (g_object_ref (gtk_builder_get_object (builder, "dir-menu"))); + obj->priv->bookmarks_menu = G_MENU_MODEL (g_object_ref (gtk_builder_get_object (builder, "bookmarks-menu"))); + } + + g_object_unref (builder); + + obj->priv->action_group = g_simple_action_group_new (); + g_action_map_add_action_entries (G_ACTION_MAP (obj->priv->action_group), + browser_entries, + G_N_ELEMENTS (browser_entries), + obj); + + /* set initial sensitivity */ + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "previous_location"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "next_location"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + + gtk_widget_insert_action_group (GTK_WIDGET (obj), + "browser", + G_ACTION_GROUP (obj->priv->action_group)); + + gtk_widget_init_template (GTK_WIDGET (obj)); + + g_signal_connect (obj->priv->previous_button, "button-press-event", + G_CALLBACK (on_location_button_press_event), obj); + g_signal_connect (obj->priv->next_button, "button-press-event", + G_CALLBACK (on_location_button_press_event), obj); + + /* locations popover */ + gtk_tree_selection_set_mode (obj->priv->locations_treeview_selection, GTK_SELECTION_SINGLE); + gtk_tree_view_column_set_cell_data_func (obj->priv->treeview_icon_column, + obj->priv->treeview_icon_renderer, + (GtkTreeCellDataFunc)locations_icon_renderer_cb, + obj, + NULL); + fill_locations_model (obj); + + g_signal_connect (obj->priv->locations_treeview_selection, "changed", + G_CALLBACK (on_locations_treeview_selection_changed), obj); + g_signal_connect (obj->priv->locations_treeview, "row-activated", + G_CALLBACK (on_locations_treeview_row_activated), obj); + + g_signal_connect (obj->priv->location_entry, "activate", + G_CALLBACK (on_location_entry_activate), obj); + g_signal_connect (obj->priv->location_entry, "focus-out-event", + G_CALLBACK (on_location_entry_focus_out_event), obj); + g_signal_connect (obj->priv->location_entry, "key-press-event", + G_CALLBACK (on_location_entry_key_press_event), obj); + + /* tree view */ + obj->priv->file_store = gedit_file_browser_store_new (NULL); + obj->priv->bookmarks_store = gedit_file_bookmarks_store_new (); + + gedit_file_browser_view_set_restore_expand_state (obj->priv->treeview, TRUE); + + gedit_file_browser_store_set_filter_mode (obj->priv->file_store, + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN | + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY); + gedit_file_browser_store_set_filter_func (obj->priv->file_store, + (GeditFileBrowserStoreFilterFunc) filter_real, + obj); + + g_signal_connect (obj->priv->treeview, "notify::model", + G_CALLBACK (on_model_set), obj); + g_signal_connect (obj->priv->treeview, "error", + G_CALLBACK (on_treeview_error), obj); + g_signal_connect (obj->priv->treeview, "popup-menu", + G_CALLBACK (on_treeview_popup_menu), obj); + g_signal_connect (obj->priv->treeview, "button-press-event", + G_CALLBACK (on_treeview_button_press_event), + obj); + g_signal_connect (obj->priv->treeview, "key-press-event", + G_CALLBACK (on_treeview_key_press_event), obj); + + g_signal_connect (gtk_tree_view_get_selection + (GTK_TREE_VIEW (obj->priv->treeview)), "changed", + G_CALLBACK (on_selection_changed), obj); + g_signal_connect (obj->priv->file_store, "notify::filter-mode", + G_CALLBACK (on_filter_mode_changed), obj); + + g_signal_connect (obj->priv->file_store, "notify::virtual-root", + G_CALLBACK (on_virtual_root_changed), obj); + + g_signal_connect (obj->priv->file_store, "begin-loading", + G_CALLBACK (on_begin_loading), obj); + + g_signal_connect (obj->priv->file_store, "end-loading", + G_CALLBACK (on_end_loading), obj); + + g_signal_connect (obj->priv->file_store, "error", + G_CALLBACK (on_file_store_error), obj); + + init_bookmarks_hash (obj); + + /* filter */ + g_signal_connect_swapped (obj->priv->filter_entry, "activate", + G_CALLBACK (on_entry_filter_activate), + obj); + g_signal_connect_swapped (obj->priv->filter_entry, "focus_out_event", + G_CALLBACK (on_entry_filter_activate), + obj); +} + +/* Private */ + +static void +update_sensitivity (GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + GAction *action; + gint mode; + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + { + mode = gedit_file_browser_store_get_filter_mode (GEDIT_FILE_BROWSER_STORE (model)); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_hidden"); + + g_action_change_state (action, + g_variant_new_boolean (!(mode & + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN))); + + /* sensitivity */ + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "up"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "home"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_hidden"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_binary"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_match_filename"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + } + else if (GEDIT_IS_FILE_BOOKMARKS_STORE (model)) + { + /* Set the filter toggle to normal up state, just for visual pleasure */ + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_hidden"); + + g_action_change_state (action, g_variant_new_boolean (FALSE)); + + /* sensitivity */ + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "up"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "home"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_hidden"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_binary"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), + "show_match_filename"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + } + + on_selection_changed (gtk_tree_view_get_selection + GTK_TREE_VIEW (obj->priv->treeview), + obj); +} + +static gboolean +gedit_file_browser_widget_get_first_selected (GeditFileBrowserWidget *obj, + GtkTreeIter *iter) +{ + GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (obj->priv->treeview)); + GtkTreeModel *model; + GList *rows = gtk_tree_selection_get_selected_rows (selection, &model); + gboolean result; + + if (!rows) + return FALSE; + + result = gtk_tree_model_get_iter (model, iter, (GtkTreePath *)(rows->data)); + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); + + return result; +} + +static gboolean +popup_menu (GeditFileBrowserWidget *obj, + GtkTreeView *treeview, + GdkEventButton *event, + GtkTreeModel *model) +{ + GtkWidget *menu; + GMenuModel *menu_model; + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + menu_model = obj->priv->dir_menu; + else if (GEDIT_IS_FILE_BOOKMARKS_STORE (model)) + menu_model = obj->priv->bookmarks_menu; + else + return FALSE; + + menu = gtk_menu_new_from_model (menu_model); + gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (obj), NULL); + + if (event != NULL) + { + GtkTreeSelection *selection; + selection = gtk_tree_view_get_selection (treeview); + + if (gtk_tree_selection_count_selected_rows (selection) <= 1) + { + GtkTreePath *path; + + if (gtk_tree_view_get_path_at_pos (treeview, + (gint)event->x, (gint)event->y, + &path, NULL, NULL, NULL)) + { + gtk_tree_selection_unselect_all (selection); + gtk_tree_selection_select_path (selection, path); + gtk_tree_path_free (path); + } + } + + gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event); + } + else + { + GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (treeview)); + GdkGravity rect_gravity = GDK_GRAVITY_EAST; + GdkGravity menu_gravity = GDK_GRAVITY_NORTH_WEST; + GdkRectangle rect; + + if (gedit_utils_menu_position_under_tree_view (treeview, &rect)) + { + if (gtk_widget_get_direction (GTK_WIDGET (treeview)) == GTK_TEXT_DIR_RTL) + { + rect_gravity = GDK_GRAVITY_WEST; + menu_gravity = GDK_GRAVITY_NORTH_EAST; + } + + gtk_menu_popup_at_rect (GTK_MENU (menu), window, &rect, rect_gravity, menu_gravity, NULL); + gtk_menu_shell_select_first (GTK_MENU_SHELL (menu), FALSE); + } + } + + return TRUE; +} + +static gboolean +filter_glob (GeditFileBrowserWidget *obj, + GeditFileBrowserStore *store, + GtkTreeIter *iter, + gpointer user_data) +{ + gchar *name; + gboolean result; + guint flags; + + if (obj->priv->filter_pattern == NULL) + return TRUE; + + gtk_tree_model_get (GTK_TREE_MODEL (store), iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_NAME, &name, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (FILE_IS_DIR (flags) || FILE_IS_DUMMY (flags)) + result = TRUE; + else + result = g_pattern_match_string (obj->priv->filter_pattern, name); + + g_free (name); + return result; +} + +static void +rename_selected_file (GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + GtkTreeIter iter; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + if (gedit_file_browser_widget_get_first_selected (obj, &iter)) + gedit_file_browser_view_start_rename (obj->priv->treeview, &iter); +} + +static GList * +get_deletable_files (GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (obj->priv->treeview)); + GList *rows = gtk_tree_selection_get_selected_rows (selection, &model); + GList *row; + GList *paths = NULL; + + for (row = rows; row; row = row->next) + { + GtkTreePath *path = (GtkTreePath *)(row->data); + GtkTreeIter iter; + guint flags; + + if (!gtk_tree_model_get_iter (model, &iter, path)) + continue; + + gtk_tree_model_get (model, + &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (FILE_IS_DUMMY (flags)) + continue; + + paths = g_list_append (paths, gtk_tree_path_copy (path)); + } + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); + + return paths; +} + +static gboolean +delete_selected_files (GeditFileBrowserWidget *obj, + gboolean trash) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + gboolean confirm; + GeditFileBrowserStoreResult result; + GList *rows; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return FALSE; + + if (!(rows = get_deletable_files (obj))) + return FALSE; + + if (!trash) + { + g_signal_emit (obj, signals[CONFIRM_DELETE], 0, model, rows, &confirm); + + if (!confirm) + return FALSE; + } + + result = gedit_file_browser_store_delete_all (GEDIT_FILE_BROWSER_STORE (model), + rows, + trash); + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); + + return result == GEDIT_FILE_BROWSER_STORE_RESULT_OK; +} + +static void +show_location_entry (GeditFileBrowserWidget *obj, + const gchar *location) +{ + g_warn_if_fail (location != NULL); + + gtk_entry_set_text (GTK_ENTRY (obj->priv->location_entry), location); + + gtk_widget_show (obj->priv->location_entry); + gtk_widget_grab_focus (obj->priv->location_entry); + + /* grab_focus() causes the entry's text to become + * selected so, unselect it and move the cursor to the end. + */ + gtk_editable_set_position (GTK_EDITABLE (obj->priv->location_entry), -1); +} + +static gboolean +on_file_store_no_trash (GeditFileBrowserStore *store, + GList *files, + GeditFileBrowserWidget *obj) +{ + gboolean confirm = FALSE; + + g_signal_emit (obj, signals[CONFIRM_NO_TRASH], 0, files, &confirm); + + return confirm; +} + +static GFile * +get_topmost_file (GFile *file) +{ + GFile *current = g_object_ref (file); + GFile *tmp; + + while ((tmp = g_file_get_parent (current)) != NULL) + { + g_object_unref (current); + current = tmp; + } + + return current; +} + +static GtkWidget * +create_goto_menu_item (GeditFileBrowserWidget *obj, + GList *item) +{ + Location *loc = (Location *) (item->data); + GtkWidget *result; + gchar *icon_name = NULL; + gchar *unescape = NULL; + + if (!get_from_bookmark_file (obj, loc->virtual_root, &unescape, &icon_name, NULL)) + unescape = gedit_file_browser_utils_file_basename (loc->virtual_root); + + result = gtk_menu_item_new_with_label (unescape); + + g_object_set_data (G_OBJECT (result), LOCATION_DATA_KEY, item); + g_signal_connect (result, "activate", + G_CALLBACK (on_location_jump_activate), obj); + + gtk_widget_show (result); + + g_free (icon_name); + g_free (unescape); + + return result; +} + +static GList * +list_next_iterator (GList *list) +{ + if (!list) + return NULL; + + return list->next; +} + +static GList * +list_prev_iterator (GList *list) +{ + if (!list) + return NULL; + + return list->prev; +} + +static void +jump_to_location (GeditFileBrowserWidget *obj, + GList *item, + gboolean previous) +{ + Location *loc; + GtkWidget *widget; + GList *children; + GList *child; + GList *(*iter_func) (GList *); + GtkWidget *menu_from; + GtkWidget *menu_to; + + if (!obj->priv->locations) + return; + + if (previous) + { + iter_func = list_next_iterator; + menu_from = obj->priv->location_previous_menu; + menu_to = obj->priv->location_next_menu; + } + else + { + iter_func = list_prev_iterator; + menu_from = obj->priv->location_next_menu; + menu_to = obj->priv->location_previous_menu; + } + + children = gtk_container_get_children (GTK_CONTAINER (menu_from)); + child = children; + + /* This is the menuitem for the current location, which is the first + to be added to the menu */ + widget = obj->priv->current_location_menu_item; + + while (obj->priv->current_location != item) + { + if (widget) + { + /* Prepend the menu item to the menu */ + gtk_menu_shell_prepend (GTK_MENU_SHELL (menu_to), widget); + g_object_unref (widget); + } + + widget = GTK_WIDGET (child->data); + + /* Make sure the widget isn't destroyed when removed */ + g_object_ref (widget); + gtk_container_remove (GTK_CONTAINER (menu_from), widget); + + obj->priv->current_location_menu_item = widget; + + if (obj->priv->current_location == NULL) + { + obj->priv->current_location = obj->priv->locations; + + if (obj->priv->current_location == item) + break; + } + else + { + obj->priv->current_location = iter_func (obj->priv->current_location); + } + + child = child->next; + } + + g_list_free (children); + + obj->priv->changing_location = TRUE; + + loc = (Location *) (obj->priv->current_location->data); + + /* Set the new root + virtual root */ + gedit_file_browser_widget_set_root_and_virtual_root (obj, + loc->root, + loc->virtual_root); + + obj->priv->changing_location = FALSE; +} + +static void +clear_next_locations (GeditFileBrowserWidget *obj) +{ + GAction *action; + GList *children; + GList *item; + + if (obj->priv->current_location == NULL) + return; + + while (obj->priv->current_location->prev) + { + location_free ((Location *) (obj->priv->current_location->prev->data)); + obj->priv->locations = g_list_remove_link (obj->priv->locations, + obj->priv->current_location->prev); + } + + children = gtk_container_get_children (GTK_CONTAINER (obj->priv->location_next_menu)); + + for (item = children; item; item = item->next) + { + gtk_container_remove (GTK_CONTAINER + (obj->priv->location_next_menu), + GTK_WIDGET (item->data)); + } + + g_list_free (children); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "next_location"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); +} + +static void +update_filter_mode (GeditFileBrowserWidget *obj, + GSimpleAction *action, + GVariant *state, + GeditFileBrowserStoreFilterMode mode) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + { + gint now = gedit_file_browser_store_get_filter_mode (GEDIT_FILE_BROWSER_STORE (model)); + + if (g_variant_get_boolean(state)) + now &= ~mode; + else + now |= mode; + + gedit_file_browser_store_set_filter_mode (GEDIT_FILE_BROWSER_STORE (model), now); + + } + + g_simple_action_set_state (action, state); +} + +static void +set_filter_pattern_real (GeditFileBrowserWidget *obj, + gchar const *pattern, + gboolean update_entry) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + + if (pattern != NULL && *pattern == '\0') + pattern = NULL; + + if (pattern == NULL && *obj->priv->filter_pattern_str == '\0') + return; + + if (pattern != NULL && strcmp (pattern, obj->priv->filter_pattern_str) == 0) + return; + + /* Free the old pattern */ + g_free (obj->priv->filter_pattern_str); + + if (pattern == NULL) + obj->priv->filter_pattern_str = g_strdup (""); + else + obj->priv->filter_pattern_str = g_strdup (pattern); + + if (obj->priv->filter_pattern) + { + g_pattern_spec_free (obj->priv->filter_pattern); + obj->priv->filter_pattern = NULL; + } + + if (pattern == NULL) + { + if (obj->priv->glob_filter_id != 0) + { + gedit_file_browser_widget_remove_filter (obj, obj->priv->glob_filter_id); + obj->priv->glob_filter_id = 0; + } + } + else + { + obj->priv->filter_pattern = g_pattern_spec_new (pattern); + + if (obj->priv->glob_filter_id == 0) + obj->priv->glob_filter_id = gedit_file_browser_widget_add_filter (obj, + filter_glob, + NULL, + NULL); + } + + if (update_entry) + gtk_entry_set_text (GTK_ENTRY (obj->priv->filter_entry), obj->priv->filter_pattern_str); + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + gedit_file_browser_store_refilter (GEDIT_FILE_BROWSER_STORE (model)); + + g_object_notify (G_OBJECT (obj), "filter-pattern"); +} + + +/* Public */ + +GtkWidget * +gedit_file_browser_widget_new (void) +{ + GeditFileBrowserWidget *obj = g_object_new (GEDIT_TYPE_FILE_BROWSER_WIDGET, NULL); + + gedit_file_browser_widget_show_bookmarks (obj); + + return GTK_WIDGET (obj); +} + +void +gedit_file_browser_widget_show_bookmarks (GeditFileBrowserWidget *obj) +{ + GtkTreePath *path; + GtkTreeIter iter; + + gtk_widget_set_sensitive (obj->priv->locations_button, FALSE); + gtk_widget_hide (obj->priv->locations_button_arrow); + locations_find_by_id (obj, BOOKMARKS_ID, &iter); + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (obj->priv->locations_model), &iter); + gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (obj->priv->locations_cellview), path); + gtk_tree_path_free (path); + + gedit_file_browser_view_set_model (obj->priv->treeview, + GTK_TREE_MODEL (obj->priv->bookmarks_store)); +} + +static void +show_files_real (GeditFileBrowserWidget *obj, + gboolean do_root_changed) +{ + gtk_widget_set_sensitive (obj->priv->locations_button, TRUE); + gtk_widget_show (obj->priv->locations_button_arrow); + + gedit_file_browser_view_set_model (obj->priv->treeview, + GTK_TREE_MODEL (obj->priv->file_store)); + + if (do_root_changed) + on_virtual_root_changed (obj->priv->file_store, NULL, obj); +} + +void +gedit_file_browser_widget_show_files (GeditFileBrowserWidget *obj) +{ + show_files_real (obj, TRUE); +} + +void +gedit_file_browser_widget_set_root_and_virtual_root (GeditFileBrowserWidget *obj, + GFile *root, + GFile *virtual_root) +{ + GeditFileBrowserStoreResult result; + + if (!virtual_root) + result = gedit_file_browser_store_set_root_and_virtual_root (obj->priv->file_store, + root, + root); + else + result = gedit_file_browser_store_set_root_and_virtual_root (obj->priv->file_store, + root, + virtual_root); + + if (result == GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE) + show_files_real (obj, TRUE); +} + +void +gedit_file_browser_widget_set_root (GeditFileBrowserWidget *obj, + GFile *root, + gboolean virtual_root) +{ + GFile *parent; + + if (!virtual_root) + { + gedit_file_browser_widget_set_root_and_virtual_root (obj, + root, + NULL); + return; + } + + if (!root) + return; + + parent = get_topmost_file (root); + gedit_file_browser_widget_set_root_and_virtual_root (obj, parent, root); + g_object_unref (parent); +} + +GeditFileBrowserStore * +gedit_file_browser_widget_get_browser_store (GeditFileBrowserWidget *obj) +{ + return obj->priv->file_store; +} + +GeditFileBookmarksStore * +gedit_file_browser_widget_get_bookmarks_store (GeditFileBrowserWidget *obj) +{ + return obj->priv->bookmarks_store; +} + +GeditFileBrowserView * +gedit_file_browser_widget_get_browser_view (GeditFileBrowserWidget *obj) +{ + return obj->priv->treeview; +} + +GtkWidget * +gedit_file_browser_widget_get_filter_entry (GeditFileBrowserWidget *obj) +{ + return obj->priv->filter_entry; +} + +gulong +gedit_file_browser_widget_add_filter (GeditFileBrowserWidget *obj, + GeditFileBrowserWidgetFilterFunc func, + gpointer user_data, + GDestroyNotify notify) +{ + FilterFunc *f = filter_func_new (obj, func, user_data, notify);; + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + + obj->priv->filter_funcs = g_slist_append (obj->priv->filter_funcs, f); + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + gedit_file_browser_store_refilter (GEDIT_FILE_BROWSER_STORE (model)); + + return f->id; +} + +void +gedit_file_browser_widget_remove_filter (GeditFileBrowserWidget *obj, + gulong id) +{ + GSList *item; + + for (item = obj->priv->filter_funcs; item; item = item->next) + { + FilterFunc *func = (FilterFunc *) (item->data); + + if (func->id == id) + { + if (func->destroy_notify) + func->destroy_notify (func->user_data); + + obj->priv->filter_funcs = g_slist_remove_link (obj->priv->filter_funcs, item); + + filter_func_free (func); + break; + } + } +} + +void +gedit_file_browser_widget_set_filter_pattern (GeditFileBrowserWidget *obj, + gchar const *pattern) +{ + gboolean show; + GAction *action; + + /* if pattern is not null, reveal the entry */ + show = pattern != NULL && *pattern != '\0'; + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "show_match_filename"); + g_action_change_state (action, g_variant_new_boolean (show)); + + set_filter_pattern_real (obj, pattern, TRUE); +} + +gboolean +gedit_file_browser_widget_get_selected_directory (GeditFileBrowserWidget *obj, + GtkTreeIter *iter) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + GtkTreeIter parent; + guint flags; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return FALSE; + + if (!gedit_file_browser_widget_get_first_selected (obj, iter) && + !gedit_file_browser_store_get_iter_virtual_root + (GEDIT_FILE_BROWSER_STORE (model), iter)) + { + return FALSE; + } + + gtk_tree_model_get (model, iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!FILE_IS_DIR (flags)) + { + /* Get the parent, because the selection is a file */ + gtk_tree_model_iter_parent (model, &parent, iter); + *iter = parent; + } + + return TRUE; +} + +void +gedit_file_browser_widget_set_active_root_enabled (GeditFileBrowserWidget *widget, + gboolean enabled) +{ + GAction *action; + + g_return_if_fail (GEDIT_IS_FILE_BROWSER_WIDGET (widget)); + + action = g_action_map_lookup_action (G_ACTION_MAP (widget->priv->action_group), "set_active_root"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enabled); +} + +static guint +gedit_file_browser_widget_get_num_selected_files_or_directories (GeditFileBrowserWidget *obj, + guint *files, + guint *dirs) +{ + GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (obj->priv->treeview)); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + GList *rows, *row; + guint result = 0; + + if (GEDIT_IS_FILE_BOOKMARKS_STORE (model)) + return 0; + + rows = gtk_tree_selection_get_selected_rows (selection, &model); + + for (row = rows; row; row = row->next) + { + GtkTreePath *path = (GtkTreePath *)(row->data); + GeditFileBrowserStoreFlag flags; + GtkTreeIter iter; + + /* Get iter from path */ + if (!gtk_tree_model_get_iter (model, &iter, path)) + continue; + + gtk_tree_model_get (model, &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + -1); + + if (!FILE_IS_DUMMY (flags)) + { + if (!FILE_IS_DIR (flags)) + ++(*files); + else + ++(*dirs); + + ++result; + } + } + + g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free); + + return result; +} + +typedef struct +{ + GeditFileBrowserWidget *widget; + GCancellable *cancellable; +} AsyncData; + +static AsyncData * +async_data_new (GeditFileBrowserWidget *widget) +{ + AsyncData *ret = g_slice_new (AsyncData); + + ret->widget = widget; + + cancel_async_operation (widget); + widget->priv->cancellable = g_cancellable_new (); + + ret->cancellable = g_object_ref (widget->priv->cancellable); + + return ret; +} + +static void +async_free (AsyncData *async) +{ + g_object_unref (async->cancellable); + g_slice_free (AsyncData, async); +} + +static void +set_busy (GeditFileBrowserWidget *obj, + gboolean busy) +{ + GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (obj->priv->treeview)); + + if (!GDK_IS_WINDOW (window)) + return; + + if (busy) + { + GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (obj)); + GdkCursor *cursor= gdk_cursor_new_from_name (display, "progress"); + + gdk_window_set_cursor (window, cursor); + g_clear_object (&cursor); + } + else + { + gdk_window_set_cursor (window, NULL); + } +} + +static void try_mount_volume (GeditFileBrowserWidget *widget, GVolume *volume); + +static void +activate_mount (GeditFileBrowserWidget *widget, + GVolume *volume, + GMount *mount) +{ + GFile *root; + + if (!mount) + { + gchar *name = g_volume_get_name (volume); + gchar *message = g_strdup_printf (_("No mount object for mounted volume: %s"), name); + + g_signal_emit (widget, + signals[ERROR], + 0, + GEDIT_FILE_BROWSER_ERROR_SET_ROOT, + message); + + g_free (name); + g_free (message); + return; + } + + root = g_mount_get_root (mount); + + gedit_file_browser_widget_set_root (widget, root, FALSE); + + g_object_unref (root); +} + +static void +try_activate_drive (GeditFileBrowserWidget *widget, + GDrive *drive) +{ + GList *volumes = g_drive_get_volumes (drive); + GVolume *volume = G_VOLUME (volumes->data); + GMount *mount = g_volume_get_mount (volume); + + if (mount) + { + /* try set the root of the mount */ + activate_mount (widget, volume, mount); + g_object_unref (mount); + } + else + { + /* try to mount it then? */ + try_mount_volume (widget, volume); + } + + g_list_free_full (volumes, g_object_unref); +} + +static void +poll_for_media_cb (GDrive *drive, + GAsyncResult *res, + AsyncData *async) +{ + GError *error = NULL; + + /* check for cancelled state */ + if (g_cancellable_is_cancelled (async->cancellable)) + { + async_free (async); + return; + } + + /* finish poll operation */ + set_busy (async->widget, FALSE); + + if (g_drive_poll_for_media_finish (drive, res, &error) && + g_drive_has_media (drive) && + g_drive_has_volumes (drive)) + { + try_activate_drive (async->widget, drive); + } + else + { + gchar *name = g_drive_get_name (drive); + gchar *message = g_strdup_printf (_("Could not open media: %s"), name); + + g_signal_emit (async->widget, + signals[ERROR], + 0, + GEDIT_FILE_BROWSER_ERROR_SET_ROOT, + message); + + g_free (name); + g_free (message); + + g_error_free (error); + } + + async_free (async); +} + +static void +mount_volume_cb (GVolume *volume, + GAsyncResult *res, + AsyncData *async) +{ + GError *error = NULL; + + /* check for cancelled state */ + if (g_cancellable_is_cancelled (async->cancellable)) + { + async_free (async); + return; + } + + if (g_volume_mount_finish (volume, res, &error)) + { + GMount *mount = g_volume_get_mount (volume); + + activate_mount (async->widget, volume, mount); + + if (mount) + g_object_unref (mount); + } + else + { + gchar *name = g_volume_get_name (volume); + gchar *message = g_strdup_printf (_("Could not mount volume: %s"), name); + + g_signal_emit (async->widget, + signals[ERROR], + 0, + GEDIT_FILE_BROWSER_ERROR_SET_ROOT, + message); + + g_free (name); + g_free (message); + + g_error_free (error); + } + + set_busy (async->widget, FALSE); + async_free (async); +} + +static void +activate_drive (GeditFileBrowserWidget *obj, + GtkTreeIter *iter) +{ + GDrive *drive; + AsyncData *async; + + gtk_tree_model_get (GTK_TREE_MODEL (obj->priv->bookmarks_store), + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_OBJECT, &drive, + -1); + + /* most common use case is a floppy drive, we'll poll for media and + go from there */ + async = async_data_new (obj); + g_drive_poll_for_media (drive, + async->cancellable, + (GAsyncReadyCallback)poll_for_media_cb, + async); + + g_object_unref (drive); + set_busy (obj, TRUE); +} + +static void +try_mount_volume (GeditFileBrowserWidget *widget, + GVolume *volume) +{ + GMountOperation *operation = gtk_mount_operation_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (widget)))); + AsyncData *async = async_data_new (widget); + + g_volume_mount (volume, + G_MOUNT_MOUNT_NONE, + operation, + async->cancellable, + (GAsyncReadyCallback)mount_volume_cb, + async); + + g_object_unref (operation); + set_busy (widget, TRUE); +} + +static void +activate_volume (GeditFileBrowserWidget *obj, + GtkTreeIter *iter) +{ + GVolume *volume; + + gtk_tree_model_get (GTK_TREE_MODEL (obj->priv->bookmarks_store), + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_OBJECT, &volume, + -1); + + /* see if we can mount the volume */ + try_mount_volume (obj, volume); + g_object_unref (volume); +} + +void +gedit_file_browser_widget_refresh (GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + { + gedit_file_browser_store_refresh (GEDIT_FILE_BROWSER_STORE (model)); + } + else if (GEDIT_IS_FILE_BOOKMARKS_STORE (model)) + { + g_hash_table_ref (obj->priv->bookmarks_hash); + g_hash_table_destroy (obj->priv->bookmarks_hash); + + gedit_file_bookmarks_store_refresh (GEDIT_FILE_BOOKMARKS_STORE (model)); + } +} + +GeditMenuExtension * +gedit_file_browser_widget_extend_context_menu (GeditFileBrowserWidget *obj) +{ + guint i, n_items; + GMenuModel *section = NULL; + + g_return_val_if_fail (GEDIT_IS_FILE_BROWSER_WIDGET (obj), NULL); + + n_items = g_menu_model_get_n_items (obj->priv->dir_menu); + + for (i = 0; i < n_items && !section; i++) + { + gchar *id = NULL; + + if (g_menu_model_get_item_attribute (obj->priv->dir_menu, i, "id", "s", &id) && + strcmp (id, "extension-section") == 0) + { + section = g_menu_model_get_item_link (obj->priv->dir_menu, i, G_MENU_LINK_SECTION); + } + + g_free (id); + } + + return section != NULL ? gedit_menu_extension_new (G_MENU (section)) : NULL; +} + +void +gedit_file_browser_widget_history_back (GeditFileBrowserWidget *obj) +{ + if (obj->priv->locations) + { + if (obj->priv->current_location) + jump_to_location (obj, obj->priv->current_location->next, TRUE); + else + jump_to_location (obj, obj->priv->locations, TRUE); + } +} + +void +gedit_file_browser_widget_history_forward (GeditFileBrowserWidget *obj) +{ + if (obj->priv->locations) + jump_to_location (obj, obj->priv->current_location->prev, FALSE); +} + +static void +bookmark_open (GeditFileBrowserWidget *obj, + GtkTreeModel *model, + GtkTreeIter *iter) +{ + GFile *location; + gint flags; + + gtk_tree_model_get (model, + iter, + GEDIT_FILE_BOOKMARKS_STORE_COLUMN_FLAGS, &flags, + -1); + + if (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_DRIVE) + { + /* handle a drive node */ + gedit_file_browser_store_cancel_mount_operation (obj->priv->file_store); + activate_drive (obj, iter); + return; + } + else if (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_VOLUME) + { + /* handle a volume node */ + gedit_file_browser_store_cancel_mount_operation (obj->priv->file_store); + activate_volume (obj, iter); + return; + } + + if ((location = gedit_file_bookmarks_store_get_location (GEDIT_FILE_BOOKMARKS_STORE (model), iter))) + { + /* here we check if the bookmark is a mount point, or if it + is a remote bookmark. If that's the case, we will set the + root to the uri of the bookmark and not try to set the + topmost parent as root (since that may as well not be the + mount point anymore) */ + if ((flags & GEDIT_FILE_BOOKMARKS_STORE_IS_MOUNT) || + (flags & GEDIT_FILE_BOOKMARKS_STORE_IS_REMOTE_BOOKMARK)) + { + gedit_file_browser_widget_set_root (obj, location, FALSE); + } + else + { + gedit_file_browser_widget_set_root (obj, location, TRUE); + } + + g_object_unref (location); + } + else + { + g_warning ("No uri!"); + } +} + +static void +file_open (GeditFileBrowserWidget *obj, + GtkTreeModel *model, + GtkTreeIter *iter) +{ + GFile *location; + gint flags; + + gtk_tree_model_get (model, iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + if (!FILE_IS_DIR (flags) && !FILE_IS_DUMMY (flags)) + g_signal_emit (obj, signals[LOCATION_ACTIVATED], 0, location); + + if (location) + g_object_unref (location); +} + +static gboolean +directory_open (GeditFileBrowserWidget *obj, + GtkTreeModel *model, + GtkTreeIter *iter) +{ + gboolean result = FALSE; + GError *error = NULL; + GFile *location; + GeditFileBrowserStoreFlag flags; + + gtk_tree_model_get (model, iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_FLAGS, &flags, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + if (FILE_IS_DIR (flags) && location) + { + gchar *uri = g_file_get_uri (location); + result = TRUE; + + if (!gtk_show_uri_on_window (GTK_WINDOW (obj), uri, GDK_CURRENT_TIME, &error)) + { + g_signal_emit (obj, signals[ERROR], 0, + GEDIT_FILE_BROWSER_ERROR_OPEN_DIRECTORY, + error->message); + + g_error_free (error); + error = NULL; + } + + g_free (uri); + g_object_unref (location); + } + + return result; +} + +static void +on_bookmark_activated (GeditFileBrowserView *tree_view, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (tree_view)); + + bookmark_open (obj, model, iter); +} + +static void +on_file_activated (GeditFileBrowserView *tree_view, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (tree_view)); + + file_open (obj, model, iter); +} + +static gboolean +virtual_root_is_root (GeditFileBrowserWidget *obj, + GeditFileBrowserStore *model) +{ + GtkTreeIter root; + GtkTreeIter virtual_root; + + if (!gedit_file_browser_store_get_iter_root (model, &root)) + return TRUE; + + if (!gedit_file_browser_store_get_iter_virtual_root (model, &virtual_root)) + return TRUE; + + return gedit_file_browser_store_iter_equal (model, &root, &virtual_root); +} + +static void +on_virtual_root_changed (GeditFileBrowserStore *model, + GParamSpec *param, + GeditFileBrowserWidget *obj) +{ + GtkTreeIter iter; + + if (gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)) != + GTK_TREE_MODEL (obj->priv->file_store)) + { + show_files_real (obj, FALSE); + } + + if (gedit_file_browser_store_get_iter_virtual_root (model, &iter)) + { + GFile *location; + GtkTreeIter root; + + gtk_tree_model_get (GTK_TREE_MODEL (model), + &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &location, + -1); + + if (gedit_file_browser_store_get_iter_root (model, &root)) + { + GAction *action; + + if (!obj->priv->changing_location) + { + Location *loc; + + /* Remove all items from obj->priv->current_location on */ + if (obj->priv->current_location) + clear_next_locations (obj); + + loc = g_slice_new (Location); + loc->root = gedit_file_browser_store_get_root (model); + loc->virtual_root = g_object_ref (location); + + if (obj->priv->current_location) + { + /* Add current location to the menu so we can go back + to it later */ + gtk_menu_shell_prepend (GTK_MENU_SHELL (obj->priv->location_previous_menu), + obj->priv->current_location_menu_item); + } + + obj->priv->locations = g_list_prepend (obj->priv->locations, loc); + + obj->priv->current_location = obj->priv->locations; + obj->priv->current_location_menu_item = create_goto_menu_item (obj, + obj->priv->current_location); + + g_object_ref_sink (obj->priv->current_location_menu_item); + } + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "up"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !virtual_root_is_root (obj, model)); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "previous_location"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + obj->priv->current_location != NULL && + obj->priv->current_location->next != NULL); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "next_location"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + obj->priv->current_location != NULL && + obj->priv->current_location->prev != NULL); + } + + check_current_item (obj, TRUE); + + if (location) + g_object_unref (location); + } + else + { + g_message ("NO!"); + } +} + +static void +on_model_set (GObject *gobject, + GParamSpec *arg1, + GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model; + + model = gtk_tree_view_get_model (GTK_TREE_VIEW (gobject)); + + clear_signals (obj); + + if (GEDIT_IS_FILE_BOOKMARKS_STORE (model)) + { + clear_next_locations (obj); + + /* Add the current location to the back menu */ + if (obj->priv->current_location) + { + GAction *action; + + gtk_menu_shell_prepend (GTK_MENU_SHELL (obj->priv->location_previous_menu), + obj->priv->current_location_menu_item); + + g_object_unref (obj->priv->current_location_menu_item); + obj->priv->current_location = NULL; + obj->priv->current_location_menu_item = NULL; + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "previous_location"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); + } + + gtk_widget_hide (obj->priv->filter_entry_revealer); + + add_signal (obj, + gobject, + g_signal_connect (gobject, "bookmark-activated", + G_CALLBACK (on_bookmark_activated), + obj)); + } + else if (GEDIT_IS_FILE_BROWSER_STORE (model)) + { + /* make sure any async operation is cancelled */ + cancel_async_operation (obj); + + add_signal (obj, + gobject, + g_signal_connect (gobject, "file-activated", + G_CALLBACK (on_file_activated), + obj)); + + add_signal (obj, + model, + g_signal_connect (model, "no-trash", + G_CALLBACK (on_file_store_no_trash), + obj)); + + gtk_widget_show (obj->priv->filter_entry_revealer); + } + + update_sensitivity (obj); +} + +static void +on_file_store_error (GeditFileBrowserStore *store, + guint code, + gchar *message, + GeditFileBrowserWidget *obj) +{ + g_signal_emit (obj, signals[ERROR], 0, code, message); +} + +static void +on_treeview_error (GeditFileBrowserView *tree_view, + guint code, + gchar *message, + GeditFileBrowserWidget *obj) +{ + g_signal_emit (obj, signals[ERROR], 0, code, message); +} + +static gboolean +on_location_button_press_event (GtkWidget *button, + GdkEventButton *event, + GeditFileBrowserWidget *obj) +{ + GtkWidget *menu; + + if (event->button != GDK_BUTTON_SECONDARY) + return FALSE; + + if (button == obj->priv->previous_button) + menu = obj->priv->location_previous_menu; + else + menu = obj->priv->location_next_menu; + + gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event); + + return TRUE; +} + +static void +on_locations_treeview_selection_changed (GtkTreeSelection *treeview_selection, + GeditFileBrowserWidget *obj) +{ + GeditFileBrowserWidgetPrivate *priv = obj->priv; + GtkTreeModel *model = GTK_TREE_MODEL (priv->locations_model); + GtkTreePath *path; + GtkTreeIter iter; + + if (!gtk_tree_selection_get_selected (treeview_selection, &model, &iter)) + return; + + path = gtk_tree_model_get_path (GTK_TREE_MODEL (obj->priv->locations_model), &iter); + gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (obj->priv->locations_cellview), path); + gtk_tree_path_free (path); +} + +static void +on_location_entry_activate (GtkEntry *entry, + GeditFileBrowserWidget *obj) +{ + gchar *location = g_strdup (gtk_entry_get_text (entry)); + GFile *root; + gchar *cwd; + GFile *new_root; + + if (g_str_has_prefix (location, "~/")) + { + gchar *tmp = location; + + location = g_strdup_printf ("%s/%s", g_get_home_dir (), tmp + strlen ("~/")); + + g_free (tmp); + } + + root = gedit_file_browser_store_get_virtual_root (obj->priv->file_store); + cwd = g_file_get_path (root); + + if (cwd == NULL) + cwd = g_file_get_uri (root); + + new_root = g_file_new_for_commandline_arg_and_cwd (location, cwd); + + if (g_file_query_file_type (new_root, G_FILE_QUERY_INFO_NONE, NULL) != G_FILE_TYPE_DIRECTORY) + { + gchar *display_name = g_file_get_parse_name (new_root); + gchar *msg = g_strdup_printf (_("Error when loading “%s”: No such directory"), display_name); + + g_signal_emit (obj, signals[ERROR], 0, GEDIT_FILE_BROWSER_ERROR_LOAD_DIRECTORY, msg); + + g_free (msg); + g_free (display_name); + } + else + { + gtk_widget_grab_focus (GTK_WIDGET (obj->priv->treeview)); + gtk_widget_hide (obj->priv->location_entry); + + gedit_file_browser_widget_set_root (obj, new_root, TRUE); + } + + g_object_unref (new_root); + g_free (cwd); + g_object_unref (root); + g_free (location); +} + +static gboolean +on_location_entry_focus_out_event (GtkWidget *entry, + GdkEvent *event, + GeditFileBrowserWidget *obj) +{ + gtk_widget_hide (entry); + return FALSE; +} + +static gboolean +on_location_entry_key_press_event (GtkWidget *entry, + GdkEventKey *event, + GeditFileBrowserWidget *obj) +{ + guint modifiers = gtk_accelerator_get_default_mod_mask (); + + if (event->keyval == GDK_KEY_Escape && + (event->state & modifiers) == 0) + { + gtk_widget_grab_focus (GTK_WIDGET (obj->priv->treeview)); + gtk_widget_hide (entry); + return TRUE; + } + + return FALSE; +} + +static gboolean +on_treeview_popup_menu (GeditFileBrowserView *treeview, + GeditFileBrowserWidget *obj) +{ + return popup_menu (obj, GTK_TREE_VIEW (treeview), NULL, gtk_tree_view_get_model (GTK_TREE_VIEW (treeview))); +} + +static gboolean +on_treeview_button_press_event (GeditFileBrowserView *treeview, + GdkEventButton *event, + GeditFileBrowserWidget *obj) +{ + if (event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_SECONDARY) + return popup_menu (obj, + GTK_TREE_VIEW (treeview), + event, + gtk_tree_view_get_model (GTK_TREE_VIEW (treeview))); + + return FALSE; +} + +static gboolean +do_change_directory (GeditFileBrowserWidget *obj, + GdkEventKey *event) +{ + GAction *action = NULL; + + if ((event->state & + (~GDK_CONTROL_MASK & ~GDK_SHIFT_MASK & ~GDK_MOD1_MASK)) == + event->state && event->keyval == GDK_KEY_BackSpace) + { + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "previous_location"); + } + else if (!((event->state & GDK_MOD1_MASK) && + (event->state & (~GDK_CONTROL_MASK & ~GDK_SHIFT_MASK)) == event->state)) + { + return FALSE; + } + + switch (event->keyval) + { + case GDK_KEY_Home: + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "home"); + break; + case GDK_KEY_Left: + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "previous_location"); + break; + case GDK_KEY_Right: + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "next_location"); + break; + case GDK_KEY_Up: + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "up"); + break; + default: + break; + } + + if (action != NULL) + { + g_action_activate (action, NULL); + return TRUE; + } + + return FALSE; +} + +static gboolean +on_treeview_key_press_event (GeditFileBrowserView *treeview, + GdkEventKey *event, + GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model; + guint modifiers; + + if (do_change_directory (obj, event)) + return TRUE; + + model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview)); + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return FALSE; + + modifiers = gtk_accelerator_get_default_mod_mask (); + + if (event->keyval == GDK_KEY_Delete || + event->keyval == GDK_KEY_KP_Delete) + { + + if ((event->state & modifiers) == GDK_SHIFT_MASK) + { + delete_selected_files (obj, FALSE); + return TRUE; + } + else if ((event->state & modifiers) == 0) + { + delete_selected_files (obj, TRUE); + return TRUE; + } + } + + if ((event->keyval == GDK_KEY_F2) && (event->state & modifiers) == 0) + { + rename_selected_file (obj); + return TRUE; + } + + if (event->keyval == GDK_KEY_l && + (event->state & modifiers) == GDK_CONTROL_MASK) + { + show_location_entry (obj, ""); + return TRUE; + } + + if (event->keyval == GDK_KEY_slash || + event->keyval == GDK_KEY_KP_Divide || +#ifdef G_OS_WIN32 + event->keyval == GDK_KEY_backslash || +#endif + event->keyval == GDK_KEY_asciitilde) + { + gchar location[2] = {'\0', '\0'}; + + location[0] = gdk_keyval_to_unicode (event->keyval); + + show_location_entry (obj, location); + return TRUE; + } + + return FALSE; +} + +static void +on_selection_changed (GtkTreeSelection *selection, + GeditFileBrowserWidget *obj) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (obj->priv->treeview)); + GAction *action; + guint selected = 0; + guint files = 0; + guint dirs = 0; + + if (GEDIT_IS_FILE_BROWSER_STORE (model)) + selected = gedit_file_browser_widget_get_num_selected_files_or_directories (obj, &files, &dirs); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "move_to_trash"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), selected > 0); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "delete"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), selected > 0); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "open"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), (selected > 0) && (selected == files)); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "rename"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), selected == 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "open_in_terminal"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), selected == 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "new_folder"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), selected <= 1); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "new_file"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), selected <= 1); +} + +static gboolean +on_entry_filter_activate (GeditFileBrowserWidget *obj) +{ + gchar const *text = gtk_entry_get_text (GTK_ENTRY (obj->priv->filter_entry)); + set_filter_pattern_real (obj, text, FALSE); + + return FALSE; +} + +static void +on_location_jump_activate (GtkMenuItem *item, + GeditFileBrowserWidget *obj) +{ + GList *location = g_object_get_data (G_OBJECT (item), LOCATION_DATA_KEY); + + if (obj->priv->current_location) + { + jump_to_location (obj, location, + g_list_position (obj->priv->locations, location) > + g_list_position (obj->priv->locations, obj->priv->current_location)); + } + else + { + jump_to_location (obj, location, TRUE); + } +} + +static void +on_bookmarks_row_changed (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + GeditFileBrowserWidget *obj) +{ + add_bookmark_hash (obj, iter); +} + +static void +on_bookmarks_row_deleted (GtkTreeModel *model, + GtkTreePath *path, + GeditFileBrowserWidget *obj) +{ + GtkTreeIter iter; + GFile *location; + + if (!gtk_tree_model_get_iter (model, &iter, path)) + return; + + if (!(location = gedit_file_bookmarks_store_get_location (obj->priv->bookmarks_store, &iter))) + return; + + g_hash_table_remove (obj->priv->bookmarks_hash, location); + + g_object_unref (location); +} + +static void +on_filter_mode_changed (GeditFileBrowserStore *model, + GParamSpec *param, + GeditFileBrowserWidget *obj) +{ + gint mode = gedit_file_browser_store_get_filter_mode (model); + GAction *action; + GVariant *variant; + gboolean active; + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "show_hidden"); + active = !(mode & GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN); + variant = g_action_get_state (action); + + if (active != g_variant_get_boolean (variant)) + g_action_change_state (action, g_variant_new_boolean (active)); + + g_variant_unref (variant); + + action = g_action_map_lookup_action (G_ACTION_MAP (obj->priv->action_group), "show_binary"); + active = !(mode & GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY); + variant = g_action_get_state (action); + + if (active != g_variant_get_boolean (variant)) + g_action_change_state (action, g_variant_new_boolean (active)); + + g_variant_unref (variant); +} + +static void +next_location_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gedit_file_browser_widget_history_forward (GEDIT_FILE_BROWSER_WIDGET (user_data)); +} + +static void +previous_location_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gedit_file_browser_widget_history_back (GEDIT_FILE_BROWSER_WIDGET (user_data)); +} + +static void +up_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview)); + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + gedit_file_browser_store_set_virtual_root_up (GEDIT_FILE_BROWSER_STORE (model)); +} + +static void +home_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview)); + GFile *home_location; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + home_location = g_file_new_for_path (g_get_home_dir ()); + gedit_file_browser_widget_set_root (widget, home_location, TRUE); + + g_object_unref (home_location); +} + +static void +new_folder_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview)); + GtkTreeIter parent; + GtkTreeIter iter; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + if (!gedit_file_browser_widget_get_selected_directory (widget, &parent)) + return; + + if (gedit_file_browser_store_new_directory (GEDIT_FILE_BROWSER_STORE (model), &parent, &iter)) + gedit_file_browser_view_start_rename (widget->priv->treeview, &iter); +} + +static void +open_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview)); + GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget->priv->treeview)); + GList *rows; + GList *row; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + rows = gtk_tree_selection_get_selected_rows (selection, &model); + for (row = rows; row; row = row->next) + { + GtkTreePath *path = (GtkTreePath *)(row->data); + GtkTreeIter iter; + + if (gtk_tree_model_get_iter (model, &iter, path)) + file_open (widget, model, &iter); + + gtk_tree_path_free (path); + } + + g_list_free (rows); +} + +static void +new_file_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview)); + GtkTreeIter parent; + GtkTreeIter iter; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + if (!gedit_file_browser_widget_get_selected_directory (widget, &parent)) + return; + + if (gedit_file_browser_store_new_file (GEDIT_FILE_BROWSER_STORE (model), &parent, &iter)) + gedit_file_browser_view_start_rename (widget->priv->treeview, &iter); +} + +static void +rename_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + rename_selected_file (widget); +} + +static void +delete_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + delete_selected_files (widget, FALSE); +} + +static void +move_to_trash_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + delete_selected_files (widget, TRUE); +} + +static void +refresh_view_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + gedit_file_browser_widget_refresh (widget); +} + +static void +view_folder_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview)); + GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget->priv->treeview)); + GtkTreeIter iter; + GList *rows; + GList *row; + gboolean directory_opened = FALSE; + + if (!GEDIT_IS_FILE_BROWSER_STORE (model)) + return; + + rows = gtk_tree_selection_get_selected_rows (selection, &model); + for (row = rows; row; row = row->next) + { + GtkTreePath *path = (GtkTreePath *)(row->data); + + if (gtk_tree_model_get_iter (model, &iter, path)) + directory_opened |= directory_open (widget, model, &iter); + + gtk_tree_path_free (path); + } + + if (!directory_opened && gedit_file_browser_widget_get_selected_directory (widget, &iter)) + directory_open (widget, model, &iter); + + g_list_free (rows); +} + +static void +change_show_hidden_state (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + update_filter_mode (widget, + action, + state, + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_HIDDEN); +} + +static void +change_show_binary_state (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + update_filter_mode (widget, + action, + state, + GEDIT_FILE_BROWSER_STORE_FILTER_MODE_HIDE_BINARY); +} + +static void +change_show_match_filename (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + gboolean visible = g_variant_get_boolean (state); + + gtk_revealer_set_reveal_child (GTK_REVEALER (widget->priv->filter_entry_revealer), visible); + + if (visible) + gtk_widget_grab_focus (widget->priv->filter_entry); + else + /* clear the filter */ + set_filter_pattern_real (widget, NULL, TRUE); + + g_simple_action_set_state (action, state); +} + +static void +open_in_terminal_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + GtkTreeIter iter; + GFile *file; + + /* Get the current directory */ + if (!gedit_file_browser_widget_get_selected_directory (widget, &iter)) + return; + + gtk_tree_model_get (GTK_TREE_MODEL (widget->priv->file_store), + &iter, + GEDIT_FILE_BROWSER_STORE_COLUMN_LOCATION, &file, + -1); + + g_signal_emit (widget, signals[OPEN_IN_TERMINAL], 0, file); + + g_object_unref (file); +} + +static void +set_active_root_activated (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data); + + g_signal_emit (widget, signals[SET_ACTIVE_ROOT], 0); +} + +void +_gedit_file_browser_widget_register_type (GTypeModule *type_module) +{ + gedit_file_browser_widget_register_type (type_module); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/gedit-file-browser-widget.h b/plugins/filebrowser/gedit-file-browser-widget.h new file mode 100644 index 0000000..8da8312 --- /dev/null +++ b/plugins/filebrowser/gedit-file-browser-widget.h @@ -0,0 +1,126 @@ +/* + * gedit-file-browser-widget.h - Gedit plugin providing easy file access + * from the sidepanel + * + * Copyright (C) 2006 - Jesse van den Kieboom + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_FILE_BROWSER_WIDGET_H +#define GEDIT_FILE_BROWSER_WIDGET_H + +#include +#include +#include "gedit-file-browser-store.h" +#include "gedit-file-bookmarks-store.h" +#include "gedit-file-browser-view.h" + +G_BEGIN_DECLS +#define GEDIT_TYPE_FILE_BROWSER_WIDGET (gedit_file_browser_widget_get_type ()) +#define GEDIT_FILE_BROWSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidget)) +#define GEDIT_FILE_BROWSER_WIDGET_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidget const)) +#define GEDIT_FILE_BROWSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidgetClass)) +#define GEDIT_IS_FILE_BROWSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET)) +#define GEDIT_IS_FILE_BROWSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_FILE_BROWSER_WIDGET)) +#define GEDIT_FILE_BROWSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_FILE_BROWSER_WIDGET, GeditFileBrowserWidgetClass)) + +typedef struct _GeditFileBrowserWidget GeditFileBrowserWidget; +typedef struct _GeditFileBrowserWidgetClass GeditFileBrowserWidgetClass; +typedef struct _GeditFileBrowserWidgetPrivate GeditFileBrowserWidgetPrivate; + +typedef +gboolean (*GeditFileBrowserWidgetFilterFunc) (GeditFileBrowserWidget *obj, + GeditFileBrowserStore *model, + GtkTreeIter *iter, + gpointer user_data); + +struct _GeditFileBrowserWidget +{ + GtkBox parent; + + GeditFileBrowserWidgetPrivate *priv; +}; + +struct _GeditFileBrowserWidgetClass +{ + GtkBoxClass parent_class; + + /* Signals */ + void (* location_activated) (GeditFileBrowserWidget *widget, + GFile *location); + void (* error) (GeditFileBrowserWidget *widget, + guint code, + gchar const *message); + gboolean (* confirm_delete) (GeditFileBrowserWidget *widget, + GeditFileBrowserStore *model, + GList *list); + gboolean (* confirm_no_trash) (GeditFileBrowserWidget *widget, + GList *list); + void (* open_in_terminal) (GeditFileBrowserWidget *widget, + GFile *location); + void (* set_active_root) (GeditFileBrowserWidget *widget); +}; + +GType gedit_file_browser_widget_get_type (void) G_GNUC_CONST; + +GtkWidget *gedit_file_browser_widget_new (void); + +void gedit_file_browser_widget_show_bookmarks (GeditFileBrowserWidget *obj); +void gedit_file_browser_widget_show_files (GeditFileBrowserWidget *obj); + +void gedit_file_browser_widget_set_root (GeditFileBrowserWidget *obj, + GFile *root, + gboolean virtual_root); +void gedit_file_browser_widget_set_root_and_virtual_root + (GeditFileBrowserWidget *obj, + GFile *root, + GFile *virtual_root); + +gboolean gedit_file_browser_widget_get_selected_directory + (GeditFileBrowserWidget *obj, + GtkTreeIter *iter); + +void gedit_file_browser_widget_set_active_root_enabled (GeditFileBrowserWidget *widget, + gboolean enabled); + +GeditFileBrowserStore * +gedit_file_browser_widget_get_browser_store (GeditFileBrowserWidget *obj); +GeditFileBookmarksStore * +gedit_file_browser_widget_get_bookmarks_store (GeditFileBrowserWidget *obj); +GeditFileBrowserView * +gedit_file_browser_widget_get_browser_view (GeditFileBrowserWidget *obj); +GtkWidget * +gedit_file_browser_widget_get_filter_entry (GeditFileBrowserWidget *obj); + +gulong gedit_file_browser_widget_add_filter (GeditFileBrowserWidget *obj, + GeditFileBrowserWidgetFilterFunc func, + gpointer user_data, + GDestroyNotify notify); +void gedit_file_browser_widget_remove_filter (GeditFileBrowserWidget *obj, + gulong id); +void gedit_file_browser_widget_set_filter_pattern (GeditFileBrowserWidget *obj, + gchar const *pattern); +GeditMenuExtension * + gedit_file_browser_widget_extend_context_menu (GeditFileBrowserWidget *obj); +void gedit_file_browser_widget_refresh (GeditFileBrowserWidget *obj); +void gedit_file_browser_widget_history_back (GeditFileBrowserWidget *obj); +void gedit_file_browser_widget_history_forward (GeditFileBrowserWidget *obj); + +void _gedit_file_browser_widget_register_type (GTypeModule *type_module); + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_WIDGET_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/filebrowser/meson.build b/plugins/filebrowser/meson.build new file mode 100644 index 0000000..ba66652 --- /dev/null +++ b/plugins/filebrowser/meson.build @@ -0,0 +1,127 @@ +libfilebrowser_public_h = files( + 'gedit-file-bookmarks-store.h', + 'gedit-file-browser-error.h', + 'gedit-file-browser-store.h', + 'gedit-file-browser-view.h', + 'gedit-file-browser-widget.h', + 'gedit-file-browser-utils.h', + 'gedit-file-browser-plugin.h', + 'gedit-file-browser-messages.h', +) + +libfilebrowser_sources = files( + 'gedit-file-bookmarks-store.c', + 'gedit-file-browser-messages.c', + 'gedit-file-browser-plugin.c', + 'gedit-file-browser-store.c', + 'gedit-file-browser-utils.c', + 'gedit-file-browser-view.c', + 'gedit-file-browser-widget.c', +) + +libfilebrowser_deps = [ + libgedit_dep, +] + +subdir('messages') + +libfilebrowser_register_enums = gnome.mkenums( + 'gedit-file-browser-enum-register', + sources: libfilebrowser_public_h, + c_template: 'gedit-file-browser-enum-register.c.template', +) + +libfilebrowser_type_enums = gnome.mkenums( + 'gedit-file-browser-enum-types', + depends : [libfilebrowser_register_enums], + sources: libfilebrowser_public_h, + h_template: 'gedit-file-browser-enum-types.h.template', + c_template: 'gedit-file-browser-enum-types-stage1.c.template', +) + +# cat won't work on Windows so this +# will need to be reimplemented as a script +cat = find_program('cat') + +# Combine the 2 C mkenums templates together before compiling +libfilebrowser_enums_c = custom_target('libfilebrowser_enums_c', + input: [libfilebrowser_type_enums.get(0), + libfilebrowser_register_enums], + output: 'gedit-file-browser-enum-types.c', + command: [cat, '@INPUT0@', '@INPUT1@'], + # redirects the command output since we can't use >> here + capture: true, +) + +libfilebrowser_sources += [ + libfilebrowser_enums_c, + libfilebrowser_type_enums.get(1), +] + +subdir('resources') + +libfilebrowser_sha = shared_module( + 'filebrowser', + sources: libfilebrowser_sources, + include_directories: root_include_dir, + dependencies: libfilebrowser_deps, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ), + name_suffix: module_suffix, +) + +# FIXME: https://github.com/mesonbuild/meson/issues/1687 +custom_target( + 'org.gnome.gedit.plugins.filebrowser.enums.xml', + input : libfilebrowser_sources + libfilebrowser_public_h, + output: 'org.gnome.gedit.plugins.filebrowser.enums.xml', + capture: true, + command: [ + 'glib-mkenums', + '--comments', '', + '--fhead', '', + '--vhead', ' <@type@ id="org.gnome.gedit.plugins.filebrowser.@EnumName@">', + '--vprod', ' ', + '--vtail', ' ', + '--ftail', '', + '@INPUT@' + ], + install: true, + install_dir: join_paths( + glibdir, + 'schemas', + ) +) + +filebrowser_gschema_file = files('org.gnome.gedit.plugins.filebrowser.gschema.xml') +install_data( + filebrowser_gschema_file, + install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas') +) + +if xmllint.found() + test( + 'validate-filebrowser-gschema', + xmllint, + args: [ + '--noout', + '--dtdvalid', gschema_dtd, + filebrowser_gschema_file, + ] + ) +endif + +custom_target( + 'filebrowser.plugin', + input: 'filebrowser.plugin.desktop.in', + output: 'filebrowser.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) diff --git a/plugins/filebrowser/messages.xml b/plugins/filebrowser/messages.xml new file mode 100644 index 0000000..e2b7137 --- /dev/null +++ b/plugins/filebrowser/messages.xml @@ -0,0 +1,47 @@ + + + + gio/gio.h + + + + gio/gio.h + + + + + + + + + + + + + + + + + + + + + gedit/gedit-menu-extension.h + + + + + + + plugins/filebrowser/gedit-file-browser-view.h + + + + gio/gio.h + + + + + + + diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-activation.c b/plugins/filebrowser/messages/gedit-file-browser-message-activation.c new file mode 100644 index 0000000..0138e0d --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-activation.c @@ -0,0 +1,105 @@ + +/* + * gedit-file-browser-message-activation.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-activation.h" + +enum +{ + PROP_0, + + PROP_ACTIVE, +}; + +struct _GeditFileBrowserMessageActivationPrivate +{ + gboolean active; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageActivation, + gedit_file_browser_message_activation, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageActivation)) + +static void +gedit_file_browser_message_activation_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageActivation *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION (obj); + + switch (prop_id) + { + case PROP_ACTIVE: + g_value_set_boolean (value, msg->priv->active); + break; + } +} + +static void +gedit_file_browser_message_activation_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageActivation *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION (obj); + + switch (prop_id) + { + case PROP_ACTIVE: + msg->priv->active = g_value_get_boolean (value); + break; + } +} + +static void +gedit_file_browser_message_activation_class_init (GeditFileBrowserMessageActivationClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->get_property = gedit_file_browser_message_activation_get_property; + object_class->set_property = gedit_file_browser_message_activation_set_property; + + g_object_class_install_property (object_class, + PROP_ACTIVE, + g_param_spec_boolean ("active", + "Active", + "Active", + FALSE, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_activation_init (GeditFileBrowserMessageActivation *message) +{ + message->priv = gedit_file_browser_message_activation_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-activation.h b/plugins/filebrowser/messages/gedit-file-browser-message-activation.h new file mode 100644 index 0000000..bd3b1ed --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-activation.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-activation.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION_H +#define GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION (gedit_file_browser_message_activation_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION,\ + GeditFileBrowserMessageActivation)) +#define GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION,\ + GeditFileBrowserMessageActivation const)) +#define GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION,\ + GeditFileBrowserMessageActivationClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ACTIVATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ACTIVATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION)) +#define GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ACTIVATION,\ + GeditFileBrowserMessageActivationClass)) + +typedef struct _GeditFileBrowserMessageActivation GeditFileBrowserMessageActivation; +typedef struct _GeditFileBrowserMessageActivationClass GeditFileBrowserMessageActivationClass; +typedef struct _GeditFileBrowserMessageActivationPrivate GeditFileBrowserMessageActivationPrivate; + +struct _GeditFileBrowserMessageActivation +{ + GeditMessage parent; + + GeditFileBrowserMessageActivationPrivate *priv; +}; + +struct _GeditFileBrowserMessageActivationClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_activation_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_ACTIVATION_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-add-filter.c b/plugins/filebrowser/messages/gedit-file-browser-message-add-filter.c new file mode 100644 index 0000000..f66a32d --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-add-filter.c @@ -0,0 +1,162 @@ + +/* + * gedit-file-browser-message-add-filter.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-add-filter.h" + +enum +{ + PROP_0, + + PROP_OBJECT_PATH, + PROP_METHOD, + PROP_ID, +}; + +struct _GeditFileBrowserMessageAddFilterPrivate +{ + gchar *object_path; + gchar *method; + guint id; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageAddFilter, + gedit_file_browser_message_add_filter, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageAddFilter)) + +static void +gedit_file_browser_message_add_filter_finalize (GObject *obj) +{ + GeditFileBrowserMessageAddFilter *msg = GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER (obj); + + g_free (msg->priv->object_path); + g_free (msg->priv->method); + + G_OBJECT_CLASS (gedit_file_browser_message_add_filter_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_add_filter_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageAddFilter *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER (obj); + + switch (prop_id) + { + case PROP_OBJECT_PATH: + g_value_set_string (value, msg->priv->object_path); + break; + case PROP_METHOD: + g_value_set_string (value, msg->priv->method); + break; + case PROP_ID: + g_value_set_uint (value, msg->priv->id); + break; + } +} + +static void +gedit_file_browser_message_add_filter_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageAddFilter *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER (obj); + + switch (prop_id) + { + case PROP_OBJECT_PATH: + { + g_free (msg->priv->object_path); + msg->priv->object_path = g_value_dup_string (value); + break; + } + case PROP_METHOD: + { + g_free (msg->priv->method); + msg->priv->method = g_value_dup_string (value); + break; + } + case PROP_ID: + msg->priv->id = g_value_get_uint (value); + break; + } +} + +static void +gedit_file_browser_message_add_filter_class_init (GeditFileBrowserMessageAddFilterClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_add_filter_finalize; + + object_class->get_property = gedit_file_browser_message_add_filter_get_property; + object_class->set_property = gedit_file_browser_message_add_filter_set_property; + + g_object_class_install_property (object_class, + PROP_OBJECT_PATH, + g_param_spec_string ("object-path", + "Object Path", + "Object Path", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_METHOD, + g_param_spec_string ("method", + "Method", + "Method", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_ID, + g_param_spec_uint ("id", + "Id", + "Id", + 0, + G_MAXUINT, + 0, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_add_filter_init (GeditFileBrowserMessageAddFilter *message) +{ + message->priv = gedit_file_browser_message_add_filter_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-add-filter.h b/plugins/filebrowser/messages/gedit-file-browser-message-add-filter.h new file mode 100644 index 0000000..4a5b35c --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-add-filter.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-add-filter.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER_H +#define GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER (gedit_file_browser_message_add_filter_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER,\ + GeditFileBrowserMessageAddFilter)) +#define GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER,\ + GeditFileBrowserMessageAddFilter const)) +#define GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER,\ + GeditFileBrowserMessageAddFilterClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ADD_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ADD_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER)) +#define GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ADD_FILTER,\ + GeditFileBrowserMessageAddFilterClass)) + +typedef struct _GeditFileBrowserMessageAddFilter GeditFileBrowserMessageAddFilter; +typedef struct _GeditFileBrowserMessageAddFilterClass GeditFileBrowserMessageAddFilterClass; +typedef struct _GeditFileBrowserMessageAddFilterPrivate GeditFileBrowserMessageAddFilterPrivate; + +struct _GeditFileBrowserMessageAddFilter +{ + GeditMessage parent; + + GeditFileBrowserMessageAddFilterPrivate *priv; +}; + +struct _GeditFileBrowserMessageAddFilterClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_add_filter_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_ADD_FILTER_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.c b/plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.c new file mode 100644 index 0000000..4bb8682 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.c @@ -0,0 +1,128 @@ + +/* + * gedit-file-browser-message-extend-context-menu.c + * This file is part of gedit + * + * Copyright (C) 2014 - Paolo Borelli + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-extend-context-menu.h" +#include + +enum +{ + PROP_0, + + PROP_EXTENSION, +}; + +struct _GeditFileBrowserMessageExtendContextMenuPrivate +{ + GeditMenuExtension *extension; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageExtendContextMenu, + gedit_file_browser_message_extend_context_menu, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageExtendContextMenu)) + +static void +gedit_file_browser_message_extend_context_menu_finalize (GObject *obj) +{ + GeditFileBrowserMessageExtendContextMenu *msg = GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU (obj); + + if (msg->priv->extension) + { + g_object_unref (msg->priv->extension); + } + + G_OBJECT_CLASS (gedit_file_browser_message_extend_context_menu_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_extend_context_menu_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageExtendContextMenu *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU (obj); + + switch (prop_id) + { + case PROP_EXTENSION: + g_value_set_object (value, msg->priv->extension); + break; + } +} + +static void +gedit_file_browser_message_extend_context_menu_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageExtendContextMenu *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU (obj); + + switch (prop_id) + { + case PROP_EXTENSION: + { + if (msg->priv->extension) + { + g_object_unref (msg->priv->extension); + } + msg->priv->extension = g_value_dup_object (value); + break; + } + } +} + +static void +gedit_file_browser_message_extend_context_menu_class_init (GeditFileBrowserMessageExtendContextMenuClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_extend_context_menu_finalize; + + object_class->get_property = gedit_file_browser_message_extend_context_menu_get_property; + object_class->set_property = gedit_file_browser_message_extend_context_menu_set_property; + + g_object_class_install_property (object_class, + PROP_EXTENSION, + g_param_spec_object ("extension", + "Extension", + "Extension", + GEDIT_TYPE_MENU_EXTENSION, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_extend_context_menu_init (GeditFileBrowserMessageExtendContextMenu *message) +{ + message->priv = gedit_file_browser_message_extend_context_menu_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.h b/plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.h new file mode 100644 index 0000000..643485d --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-extend-context-menu.h @@ -0,0 +1,70 @@ + +/* + * gedit-file-browser-message-extend-context-menu.h + * This file is part of gedit + * + * Copyright (C) 2014 - Paolo Borelli + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_H +#define GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU (gedit_file_browser_message_extend_context_menu_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU,\ + GeditFileBrowserMessageExtendContextMenu)) +#define GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU,\ + GeditFileBrowserMessageExtendContextMenu const)) +#define GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU,\ + GeditFileBrowserMessageExtendContextMenuClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU)) +#define GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU,\ + GeditFileBrowserMessageExtendContextMenuClass)) + +typedef struct _GeditFileBrowserMessageExtendContextMenu GeditFileBrowserMessageExtendContextMenu; +typedef struct _GeditFileBrowserMessageExtendContextMenuClass GeditFileBrowserMessageExtendContextMenuClass; +typedef struct _GeditFileBrowserMessageExtendContextMenuPrivate GeditFileBrowserMessageExtendContextMenuPrivate; + +struct _GeditFileBrowserMessageExtendContextMenu +{ + GeditMessage parent; + + GeditFileBrowserMessageExtendContextMenuPrivate *priv; +}; + +struct _GeditFileBrowserMessageExtendContextMenuClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_extend_context_menu_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_EXTEND_CONTEXT_MENU_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-get-root.c b/plugins/filebrowser/messages/gedit-file-browser-message-get-root.c new file mode 100644 index 0000000..b766ac1 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-get-root.c @@ -0,0 +1,127 @@ + +/* + * gedit-file-browser-message-get-root.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-get-root.h" +#include "gio/gio.h" + +enum +{ + PROP_0, + + PROP_LOCATION, +}; + +struct _GeditFileBrowserMessageGetRootPrivate +{ + GFile *location; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageGetRoot, + gedit_file_browser_message_get_root, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageGetRoot)) + +static void +gedit_file_browser_message_get_root_finalize (GObject *obj) +{ + GeditFileBrowserMessageGetRoot *msg = GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT (obj); + + if (msg->priv->location) + { + g_object_unref (msg->priv->location); + } + + G_OBJECT_CLASS (gedit_file_browser_message_get_root_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_get_root_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageGetRoot *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT (obj); + + switch (prop_id) + { + case PROP_LOCATION: + g_value_set_object (value, msg->priv->location); + break; + } +} + +static void +gedit_file_browser_message_get_root_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageGetRoot *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT (obj); + + switch (prop_id) + { + case PROP_LOCATION: + { + if (msg->priv->location) + { + g_object_unref (msg->priv->location); + } + msg->priv->location = g_value_dup_object (value); + break; + } + } +} + +static void +gedit_file_browser_message_get_root_class_init (GeditFileBrowserMessageGetRootClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_get_root_finalize; + + object_class->get_property = gedit_file_browser_message_get_root_get_property; + object_class->set_property = gedit_file_browser_message_get_root_set_property; + + g_object_class_install_property (object_class, + PROP_LOCATION, + g_param_spec_object ("location", + "Location", + "Location", + G_TYPE_FILE, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_get_root_init (GeditFileBrowserMessageGetRoot *message) +{ + message->priv = gedit_file_browser_message_get_root_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-get-root.h b/plugins/filebrowser/messages/gedit-file-browser-message-get-root.h new file mode 100644 index 0000000..8cc114d --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-get-root.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-get-root.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT_H +#define GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT (gedit_file_browser_message_get_root_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT,\ + GeditFileBrowserMessageGetRoot)) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT,\ + GeditFileBrowserMessageGetRoot const)) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT,\ + GeditFileBrowserMessageGetRootClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_GET_ROOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_GET_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT)) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_ROOT,\ + GeditFileBrowserMessageGetRootClass)) + +typedef struct _GeditFileBrowserMessageGetRoot GeditFileBrowserMessageGetRoot; +typedef struct _GeditFileBrowserMessageGetRootClass GeditFileBrowserMessageGetRootClass; +typedef struct _GeditFileBrowserMessageGetRootPrivate GeditFileBrowserMessageGetRootPrivate; + +struct _GeditFileBrowserMessageGetRoot +{ + GeditMessage parent; + + GeditFileBrowserMessageGetRootPrivate *priv; +}; + +struct _GeditFileBrowserMessageGetRootClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_get_root_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_GET_ROOT_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-get-view.c b/plugins/filebrowser/messages/gedit-file-browser-message-get-view.c new file mode 100644 index 0000000..17fe757 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-get-view.c @@ -0,0 +1,127 @@ + +/* + * gedit-file-browser-message-get-view.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-get-view.h" +#include "plugins/filebrowser/gedit-file-browser-view.h" + +enum +{ + PROP_0, + + PROP_VIEW, +}; + +struct _GeditFileBrowserMessageGetViewPrivate +{ + GeditFileBrowserView *view; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageGetView, + gedit_file_browser_message_get_view, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageGetView)) + +static void +gedit_file_browser_message_get_view_finalize (GObject *obj) +{ + GeditFileBrowserMessageGetView *msg = GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW (obj); + + if (msg->priv->view) + { + g_object_unref (msg->priv->view); + } + + G_OBJECT_CLASS (gedit_file_browser_message_get_view_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_get_view_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageGetView *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW (obj); + + switch (prop_id) + { + case PROP_VIEW: + g_value_set_object (value, msg->priv->view); + break; + } +} + +static void +gedit_file_browser_message_get_view_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageGetView *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW (obj); + + switch (prop_id) + { + case PROP_VIEW: + { + if (msg->priv->view) + { + g_object_unref (msg->priv->view); + } + msg->priv->view = g_value_dup_object (value); + break; + } + } +} + +static void +gedit_file_browser_message_get_view_class_init (GeditFileBrowserMessageGetViewClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_get_view_finalize; + + object_class->get_property = gedit_file_browser_message_get_view_get_property; + object_class->set_property = gedit_file_browser_message_get_view_set_property; + + g_object_class_install_property (object_class, + PROP_VIEW, + g_param_spec_object ("view", + "View", + "View", + GEDIT_TYPE_FILE_BROWSER_VIEW, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_get_view_init (GeditFileBrowserMessageGetView *message) +{ + message->priv = gedit_file_browser_message_get_view_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-get-view.h b/plugins/filebrowser/messages/gedit-file-browser-message-get-view.h new file mode 100644 index 0000000..452abbc --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-get-view.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-get-view.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW_H +#define GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW (gedit_file_browser_message_get_view_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW,\ + GeditFileBrowserMessageGetView)) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW,\ + GeditFileBrowserMessageGetView const)) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW,\ + GeditFileBrowserMessageGetViewClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_GET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_GET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW)) +#define GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_GET_VIEW,\ + GeditFileBrowserMessageGetViewClass)) + +typedef struct _GeditFileBrowserMessageGetView GeditFileBrowserMessageGetView; +typedef struct _GeditFileBrowserMessageGetViewClass GeditFileBrowserMessageGetViewClass; +typedef struct _GeditFileBrowserMessageGetViewPrivate GeditFileBrowserMessageGetViewPrivate; + +struct _GeditFileBrowserMessageGetView +{ + GeditMessage parent; + + GeditFileBrowserMessageGetViewPrivate *priv; +}; + +struct _GeditFileBrowserMessageGetViewClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_get_view_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_GET_VIEW_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-id-location.c b/plugins/filebrowser/messages/gedit-file-browser-message-id-location.c new file mode 100644 index 0000000..36c33c5 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-id-location.c @@ -0,0 +1,190 @@ + +/* + * gedit-file-browser-message-id-location.c + * This file is part of gedit + * + * Copyright (C) 2013 - Garrett Regier + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-id-location.h" +#include "gio/gio.h" + +enum +{ + PROP_0, + + PROP_ID, + PROP_NAME, + PROP_LOCATION, + PROP_IS_DIRECTORY, +}; + +struct _GeditFileBrowserMessageIdLocationPrivate +{ + gchar *id; + gchar *name; + GFile *location; + gboolean is_directory; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageIdLocation, + gedit_file_browser_message_id_location, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageIdLocation)) + +static void +gedit_file_browser_message_id_location_finalize (GObject *obj) +{ + GeditFileBrowserMessageIdLocation *msg = GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION (obj); + + g_free (msg->priv->id); + g_free (msg->priv->name); + if (msg->priv->location) + { + g_object_unref (msg->priv->location); + } + + G_OBJECT_CLASS (gedit_file_browser_message_id_location_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_id_location_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageIdLocation *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION (obj); + + switch (prop_id) + { + case PROP_ID: + g_value_set_string (value, msg->priv->id); + break; + case PROP_NAME: + g_value_set_string (value, msg->priv->name); + break; + case PROP_LOCATION: + g_value_set_object (value, msg->priv->location); + break; + case PROP_IS_DIRECTORY: + g_value_set_boolean (value, msg->priv->is_directory); + break; + } +} + +static void +gedit_file_browser_message_id_location_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageIdLocation *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION (obj); + + switch (prop_id) + { + case PROP_ID: + { + g_free (msg->priv->id); + msg->priv->id = g_value_dup_string (value); + break; + } + case PROP_NAME: + { + g_free (msg->priv->name); + msg->priv->name = g_value_dup_string (value); + break; + } + case PROP_LOCATION: + { + if (msg->priv->location) + { + g_object_unref (msg->priv->location); + } + msg->priv->location = g_value_dup_object (value); + break; + } + case PROP_IS_DIRECTORY: + msg->priv->is_directory = g_value_get_boolean (value); + break; + } +} + +static void +gedit_file_browser_message_id_location_class_init (GeditFileBrowserMessageIdLocationClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_id_location_finalize; + + object_class->get_property = gedit_file_browser_message_id_location_get_property; + object_class->set_property = gedit_file_browser_message_id_location_set_property; + + g_object_class_install_property (object_class, + PROP_ID, + g_param_spec_string ("id", + "Id", + "Id", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_NAME, + g_param_spec_string ("name", + "Name", + "Name", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_LOCATION, + g_param_spec_object ("location", + "Location", + "Location", + G_TYPE_FILE, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_IS_DIRECTORY, + g_param_spec_boolean ("is-directory", + "Is Directory", + "Is Directory", + FALSE, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_id_location_init (GeditFileBrowserMessageIdLocation *message) +{ + message->priv = gedit_file_browser_message_id_location_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-id-location.h b/plugins/filebrowser/messages/gedit-file-browser-message-id-location.h new file mode 100644 index 0000000..0af4c77 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-id-location.h @@ -0,0 +1,70 @@ + +/* + * gedit-file-browser-message-id-location.h + * This file is part of gedit + * + * Copyright (C) 2013 - Garrett Regier + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION_H +#define GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION (gedit_file_browser_message_id_location_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION,\ + GeditFileBrowserMessageIdLocation)) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION,\ + GeditFileBrowserMessageIdLocation const)) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION,\ + GeditFileBrowserMessageIdLocationClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ID_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ID_LOCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION)) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID_LOCATION,\ + GeditFileBrowserMessageIdLocationClass)) + +typedef struct _GeditFileBrowserMessageIdLocation GeditFileBrowserMessageIdLocation; +typedef struct _GeditFileBrowserMessageIdLocationClass GeditFileBrowserMessageIdLocationClass; +typedef struct _GeditFileBrowserMessageIdLocationPrivate GeditFileBrowserMessageIdLocationPrivate; + +struct _GeditFileBrowserMessageIdLocation +{ + GeditMessage parent; + + GeditFileBrowserMessageIdLocationPrivate *priv; +}; + +struct _GeditFileBrowserMessageIdLocationClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_id_location_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_ID_LOCATION_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-id.c b/plugins/filebrowser/messages/gedit-file-browser-message-id.c new file mode 100644 index 0000000..fec490f --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-id.c @@ -0,0 +1,107 @@ + +/* + * gedit-file-browser-message-id.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-id.h" + +enum +{ + PROP_0, + + PROP_ID, +}; + +struct _GeditFileBrowserMessageIdPrivate +{ + guint id; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageId, + gedit_file_browser_message_id, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageId)) + +static void +gedit_file_browser_message_id_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageId *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ID (obj); + + switch (prop_id) + { + case PROP_ID: + g_value_set_uint (value, msg->priv->id); + break; + } +} + +static void +gedit_file_browser_message_id_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageId *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_ID (obj); + + switch (prop_id) + { + case PROP_ID: + msg->priv->id = g_value_get_uint (value); + break; + } +} + +static void +gedit_file_browser_message_id_class_init (GeditFileBrowserMessageIdClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->get_property = gedit_file_browser_message_id_get_property; + object_class->set_property = gedit_file_browser_message_id_set_property; + + g_object_class_install_property (object_class, + PROP_ID, + g_param_spec_uint ("id", + "Id", + "Id", + 0, + G_MAXUINT, + 0, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_id_init (GeditFileBrowserMessageId *message) +{ + message->priv = gedit_file_browser_message_id_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-id.h b/plugins/filebrowser/messages/gedit-file-browser-message-id.h new file mode 100644 index 0000000..8351c3b --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-id.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-id.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_ID_H +#define GEDIT_FILE_BROWSER_MESSAGE_ID_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID (gedit_file_browser_message_id_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_ID(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID,\ + GeditFileBrowserMessageId)) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID,\ + GeditFileBrowserMessageId const)) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID,\ + GeditFileBrowserMessageIdClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_ID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID)) +#define GEDIT_FILE_BROWSER_MESSAGE_ID_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_ID,\ + GeditFileBrowserMessageIdClass)) + +typedef struct _GeditFileBrowserMessageId GeditFileBrowserMessageId; +typedef struct _GeditFileBrowserMessageIdClass GeditFileBrowserMessageIdClass; +typedef struct _GeditFileBrowserMessageIdPrivate GeditFileBrowserMessageIdPrivate; + +struct _GeditFileBrowserMessageId +{ + GeditMessage parent; + + GeditFileBrowserMessageIdPrivate *priv; +}; + +struct _GeditFileBrowserMessageIdClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_id_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_ID_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.c b/plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.c new file mode 100644 index 0000000..8e63042 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.c @@ -0,0 +1,142 @@ + +/* + * gedit-file-browser-message-set-emblem.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-set-emblem.h" + +enum +{ + PROP_0, + + PROP_ID, + PROP_EMBLEM, +}; + +struct _GeditFileBrowserMessageSetEmblemPrivate +{ + gchar *id; + gchar *emblem; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageSetEmblem, + gedit_file_browser_message_set_emblem, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageSetEmblem)) + +static void +gedit_file_browser_message_set_emblem_finalize (GObject *obj) +{ + GeditFileBrowserMessageSetEmblem *msg = GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM (obj); + + g_free (msg->priv->id); + g_free (msg->priv->emblem); + + G_OBJECT_CLASS (gedit_file_browser_message_set_emblem_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_set_emblem_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageSetEmblem *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM (obj); + + switch (prop_id) + { + case PROP_ID: + g_value_set_string (value, msg->priv->id); + break; + case PROP_EMBLEM: + g_value_set_string (value, msg->priv->emblem); + break; + } +} + +static void +gedit_file_browser_message_set_emblem_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageSetEmblem *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM (obj); + + switch (prop_id) + { + case PROP_ID: + { + g_free (msg->priv->id); + msg->priv->id = g_value_dup_string (value); + break; + } + case PROP_EMBLEM: + { + g_free (msg->priv->emblem); + msg->priv->emblem = g_value_dup_string (value); + break; + } + } +} + +static void +gedit_file_browser_message_set_emblem_class_init (GeditFileBrowserMessageSetEmblemClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_set_emblem_finalize; + + object_class->get_property = gedit_file_browser_message_set_emblem_get_property; + object_class->set_property = gedit_file_browser_message_set_emblem_set_property; + + g_object_class_install_property (object_class, + PROP_ID, + g_param_spec_string ("id", + "Id", + "Id", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_EMBLEM, + g_param_spec_string ("emblem", + "Emblem", + "Emblem", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_set_emblem_init (GeditFileBrowserMessageSetEmblem *message) +{ + message->priv = gedit_file_browser_message_set_emblem_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.h b/plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.h new file mode 100644 index 0000000..6daa795 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-set-emblem.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-set-emblem.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM_H +#define GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM (gedit_file_browser_message_set_emblem_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM,\ + GeditFileBrowserMessageSetEmblem)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM,\ + GeditFileBrowserMessageSetEmblem const)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM,\ + GeditFileBrowserMessageSetEmblemClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_SET_EMBLEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_SET_EMBLEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_EMBLEM,\ + GeditFileBrowserMessageSetEmblemClass)) + +typedef struct _GeditFileBrowserMessageSetEmblem GeditFileBrowserMessageSetEmblem; +typedef struct _GeditFileBrowserMessageSetEmblemClass GeditFileBrowserMessageSetEmblemClass; +typedef struct _GeditFileBrowserMessageSetEmblemPrivate GeditFileBrowserMessageSetEmblemPrivate; + +struct _GeditFileBrowserMessageSetEmblem +{ + GeditMessage parent; + + GeditFileBrowserMessageSetEmblemPrivate *priv; +}; + +struct _GeditFileBrowserMessageSetEmblemClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_set_emblem_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_SET_EMBLEM_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-set-markup.c b/plugins/filebrowser/messages/gedit-file-browser-message-set-markup.c new file mode 100644 index 0000000..3b14d16 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-set-markup.c @@ -0,0 +1,143 @@ + +/* + * gedit-file-browser-message-set-markup.c + * This file is part of gedit + * + * Copyright (C) 2013 - Garrett Regier + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-set-markup.h" + +enum +{ + PROP_0, + + PROP_ID, + PROP_MARKUP, +}; + +struct _GeditFileBrowserMessageSetMarkupPrivate +{ + gchar *id; + gchar *markup; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageSetMarkup, + gedit_file_browser_message_set_markup, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageSetMarkup)) + +static void +gedit_file_browser_message_set_markup_finalize (GObject *obj) +{ + GeditFileBrowserMessageSetMarkup *msg = GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP (obj); + + g_free (msg->priv->id); + g_free (msg->priv->markup); + + G_OBJECT_CLASS (gedit_file_browser_message_set_markup_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_set_markup_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageSetMarkup *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP (obj); + + switch (prop_id) + { + case PROP_ID: + g_value_set_string (value, msg->priv->id); + break; + case PROP_MARKUP: + g_value_set_string (value, msg->priv->markup); + break; + } +} + +static void +gedit_file_browser_message_set_markup_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageSetMarkup *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP (obj); + + switch (prop_id) + { + case PROP_ID: + { + g_free (msg->priv->id); + msg->priv->id = g_value_dup_string (value); + break; + } + case PROP_MARKUP: + { + g_free (msg->priv->markup); + msg->priv->markup = g_value_dup_string (value); + break; + } + } +} + +static void +gedit_file_browser_message_set_markup_class_init (GeditFileBrowserMessageSetMarkupClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_set_markup_finalize; + + object_class->get_property = gedit_file_browser_message_set_markup_get_property; + object_class->set_property = gedit_file_browser_message_set_markup_set_property; + + g_object_class_install_property (object_class, + PROP_ID, + g_param_spec_string ("id", + "Id", + "Id", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_MARKUP, + g_param_spec_string ("markup", + "Markup", + "Markup", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_set_markup_init (GeditFileBrowserMessageSetMarkup *message) +{ + message->priv = gedit_file_browser_message_set_markup_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-set-markup.h b/plugins/filebrowser/messages/gedit-file-browser-message-set-markup.h new file mode 100644 index 0000000..ab9a1dc --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-set-markup.h @@ -0,0 +1,70 @@ + +/* + * gedit-file-browser-message-set-markup.h + * This file is part of gedit + * + * Copyright (C) 2013 - Garrett Regier + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP_H +#define GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP (gedit_file_browser_message_set_markup_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP,\ + GeditFileBrowserMessageSetMarkup)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP,\ + GeditFileBrowserMessageSetMarkup const)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP,\ + GeditFileBrowserMessageSetMarkupClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_SET_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_SET_MARKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_MARKUP,\ + GeditFileBrowserMessageSetMarkupClass)) + +typedef struct _GeditFileBrowserMessageSetMarkup GeditFileBrowserMessageSetMarkup; +typedef struct _GeditFileBrowserMessageSetMarkupClass GeditFileBrowserMessageSetMarkupClass; +typedef struct _GeditFileBrowserMessageSetMarkupPrivate GeditFileBrowserMessageSetMarkupPrivate; + +struct _GeditFileBrowserMessageSetMarkup +{ + GeditMessage parent; + + GeditFileBrowserMessageSetMarkupPrivate *priv; +}; + +struct _GeditFileBrowserMessageSetMarkupClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_set_markup_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_SET_MARKUP_H */ diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-set-root.c b/plugins/filebrowser/messages/gedit-file-browser-message-set-root.c new file mode 100644 index 0000000..cb3891b --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-set-root.c @@ -0,0 +1,149 @@ + +/* + * gedit-file-browser-message-set-root.c + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "gedit-file-browser-message-set-root.h" +#include "gio/gio.h" + +enum +{ + PROP_0, + + PROP_LOCATION, + PROP_VIRTUAL, +}; + +struct _GeditFileBrowserMessageSetRootPrivate +{ + GFile *location; + gchar *virtual; +}; + +G_DEFINE_TYPE_EXTENDED (GeditFileBrowserMessageSetRoot, + gedit_file_browser_message_set_root, + GEDIT_TYPE_MESSAGE, + 0, + G_ADD_PRIVATE (GeditFileBrowserMessageSetRoot)) + +static void +gedit_file_browser_message_set_root_finalize (GObject *obj) +{ + GeditFileBrowserMessageSetRoot *msg = GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT (obj); + + if (msg->priv->location) + { + g_object_unref (msg->priv->location); + } + g_free (msg->priv->virtual); + + G_OBJECT_CLASS (gedit_file_browser_message_set_root_parent_class)->finalize (obj); +} + +static void +gedit_file_browser_message_set_root_get_property (GObject *obj, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageSetRoot *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT (obj); + + switch (prop_id) + { + case PROP_LOCATION: + g_value_set_object (value, msg->priv->location); + break; + case PROP_VIRTUAL: + g_value_set_string (value, msg->priv->virtual); + break; + } +} + +static void +gedit_file_browser_message_set_root_set_property (GObject *obj, + guint prop_id, + GValue const *value, + GParamSpec *pspec) +{ + GeditFileBrowserMessageSetRoot *msg; + + msg = GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT (obj); + + switch (prop_id) + { + case PROP_LOCATION: + { + if (msg->priv->location) + { + g_object_unref (msg->priv->location); + } + msg->priv->location = g_value_dup_object (value); + break; + } + case PROP_VIRTUAL: + { + g_free (msg->priv->virtual); + msg->priv->virtual = g_value_dup_string (value); + break; + } + } +} + +static void +gedit_file_browser_message_set_root_class_init (GeditFileBrowserMessageSetRootClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->finalize = gedit_file_browser_message_set_root_finalize; + + object_class->get_property = gedit_file_browser_message_set_root_get_property; + object_class->set_property = gedit_file_browser_message_set_root_set_property; + + g_object_class_install_property (object_class, + PROP_LOCATION, + g_param_spec_object ("location", + "Location", + "Location", + G_TYPE_FILE, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (object_class, + PROP_VIRTUAL, + g_param_spec_string ("virtual", + "Virtual", + "Virtual", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +gedit_file_browser_message_set_root_init (GeditFileBrowserMessageSetRoot *message) +{ + message->priv = gedit_file_browser_message_set_root_get_instance_private (message); +} diff --git a/plugins/filebrowser/messages/gedit-file-browser-message-set-root.h b/plugins/filebrowser/messages/gedit-file-browser-message-set-root.h new file mode 100644 index 0000000..8b61c50 --- /dev/null +++ b/plugins/filebrowser/messages/gedit-file-browser-message-set-root.h @@ -0,0 +1,69 @@ + +/* + * gedit-file-browser-message-set-root.h + * This file is part of gedit + * + * Copyright (C) 2014 - Jesse van den Kieboom + * + * gedit is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * gedit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gedit; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT_H +#define GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT_H + +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT (gedit_file_browser_message_set_root_get_type ()) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT,\ + GeditFileBrowserMessageSetRoot)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT,\ + GeditFileBrowserMessageSetRoot const)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT,\ + GeditFileBrowserMessageSetRootClass)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_SET_ROOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT)) +#define GEDIT_IS_FILE_BROWSER_MESSAGE_SET_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT)) +#define GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ + GEDIT_TYPE_FILE_BROWSER_MESSAGE_SET_ROOT,\ + GeditFileBrowserMessageSetRootClass)) + +typedef struct _GeditFileBrowserMessageSetRoot GeditFileBrowserMessageSetRoot; +typedef struct _GeditFileBrowserMessageSetRootClass GeditFileBrowserMessageSetRootClass; +typedef struct _GeditFileBrowserMessageSetRootPrivate GeditFileBrowserMessageSetRootPrivate; + +struct _GeditFileBrowserMessageSetRoot +{ + GeditMessage parent; + + GeditFileBrowserMessageSetRootPrivate *priv; +}; + +struct _GeditFileBrowserMessageSetRootClass +{ + GeditMessageClass parent_class; +}; + +GType gedit_file_browser_message_set_root_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* GEDIT_FILE_BROWSER_MESSAGE_SET_ROOT_H */ diff --git a/plugins/filebrowser/messages/meson.build b/plugins/filebrowser/messages/meson.build new file mode 100644 index 0000000..ec4fb84 --- /dev/null +++ b/plugins/filebrowser/messages/meson.build @@ -0,0 +1,25 @@ +libfilebrowser_public_h += files( + 'gedit-file-browser-message-activation.h', + 'gedit-file-browser-message-add-filter.h', + 'gedit-file-browser-message-extend-context-menu.h', + 'gedit-file-browser-message-get-root.h', + 'gedit-file-browser-message-get-view.h', + 'gedit-file-browser-message-id.h', + 'gedit-file-browser-message-id-location.h', + 'gedit-file-browser-message-set-emblem.h', + 'gedit-file-browser-message-set-markup.h', + 'gedit-file-browser-message-set-root.h', +) + +libfilebrowser_sources += files( + 'gedit-file-browser-message-activation.c', + 'gedit-file-browser-message-add-filter.c', + 'gedit-file-browser-message-extend-context-menu.c', + 'gedit-file-browser-message-get-root.c', + 'gedit-file-browser-message-get-view.c', + 'gedit-file-browser-message-id.c', + 'gedit-file-browser-message-id-location.c', + 'gedit-file-browser-message-set-emblem.c', + 'gedit-file-browser-message-set-markup.c', + 'gedit-file-browser-message-set-root.c', +) diff --git a/plugins/filebrowser/messages/messages.h b/plugins/filebrowser/messages/messages.h new file mode 100644 index 0000000..4dc0f51 --- /dev/null +++ b/plugins/filebrowser/messages/messages.h @@ -0,0 +1,16 @@ +#ifndef GEDIT_FILE_BROWER_MESSAGES_MESSAGES_H +#define GEDIT_FILE_BROWER_MESSAGES_MESSAGES_H + +#include "gedit-file-browser-message-activation.h" +#include "gedit-file-browser-message-add-filter.h" +#include "gedit-file-browser-message-extend-context-menu.h" +#include "gedit-file-browser-message-get-root.h" +#include "gedit-file-browser-message-get-view.h" +#include "gedit-file-browser-message-id.h" +#include "gedit-file-browser-message-id-location.h" +#include "gedit-file-browser-message-set-emblem.h" +#include "gedit-file-browser-message-set-markup.h" +#include "gedit-file-browser-message-set-root.h" + +#endif /* GEDIT_FILE_BROWER_MESSAGES_MESSAGES_H */ + diff --git a/plugins/filebrowser/org.gnome.gedit.plugins.filebrowser.gschema.xml b/plugins/filebrowser/org.gnome.gedit.plugins.filebrowser.gschema.xml new file mode 100644 index 0000000..9e9d856 --- /dev/null +++ b/plugins/filebrowser/org.gnome.gedit.plugins.filebrowser.gschema.xml @@ -0,0 +1,58 @@ + + + + true + Open With Tree View + Open the tree view when the file browser plugin gets loaded instead of the bookmarks view + + + '' + File Browser Root Directory + The file browser root directory to use when loading the file browser plugin and onload/tree_view is TRUE. + + + '' + File Browser Virtual Root Directory + The file browser virtual root directory to use when loading the file browser plugin when onload/tree_view is TRUE. The virtual root must always be below the actual root. + + + false + Enable Restore of Remote Locations + Sets whether to enable restoring of remote locations. + + + true + Set Location to First Document + If TRUE the file browser plugin will view the directory of the first opened document given that the file browser hasn’t been used yet. (Thus this generally applies to opening a document from the command line or opening it with Nautilus, etc.) + + + ['hide-hidden', 'hide-binary'] + File Browser Filter Mode + This value determines what files get filtered from the file browser. Valid values are: none (filter nothing), hide-hidden (filter hidden files) and hide-binary (filter binary files). + + + '' + File Browser Filter Pattern + The filter pattern to filter the file browser with. This filter works on top of the filter_mode. + + + ['*.la', '*.lo'] + File Browser Binary Patterns + The supplemental patterns to use when filtering binary files. + + + + + + + + + + + 'double' + + + true + + + diff --git a/plugins/filebrowser/resources/gedit-file-browser.gresource.xml b/plugins/filebrowser/resources/gedit-file-browser.gresource.xml new file mode 100644 index 0000000..273bd26 --- /dev/null +++ b/plugins/filebrowser/resources/gedit-file-browser.gresource.xml @@ -0,0 +1,7 @@ + + + + ui/gedit-file-browser-menus.ui + ui/gedit-file-browser-widget.ui + + diff --git a/plugins/filebrowser/resources/meson.build b/plugins/filebrowser/resources/meson.build new file mode 100644 index 0000000..da2b577 --- /dev/null +++ b/plugins/filebrowser/resources/meson.build @@ -0,0 +1,8 @@ +libfilebrowser_res = gnome.compile_resources( + 'gedit-file-browser-resources', + 'gedit-file-browser.gresource.xml', +) + +libfilebrowser_sources += [ + libfilebrowser_res.get(0), +] diff --git a/plugins/filebrowser/resources/ui/gedit-file-browser-menus.ui b/plugins/filebrowser/resources/ui/gedit-file-browser-menus.ui new file mode 100644 index 0000000..9134268 --- /dev/null +++ b/plugins/filebrowser/resources/ui/gedit-file-browser-menus.ui @@ -0,0 +1,84 @@ + + + + +
+ + _Open + browser.open + +
+
+ + _Set Root to Active Document + browser.set_active_root + +
+
+ + _New Folder + browser.new_folder + + + New F_ile + browser.new_file + +
+
+ + _Rename… + browser.rename + + + _Move to Trash + browser.move_to_trash + + + _Delete + browser.delete + +
+
+ + Re_fresh View + browser.refresh_view + + + _View Folder + browser.view_folder + + + _Open in Terminal + browser.open_in_terminal + +
+ + _Filter +
+ + Show _Hidden + browser.show_hidden + + + Show _Binary + browser.show_binary + + + Match Filename + browser.show_match_filename + +
+
+
+ extension-section +
+
+ +
+ + _Set Root to Active Document + browser.set_active_root + +
+
+
diff --git a/plugins/filebrowser/resources/ui/gedit-file-browser-widget.ui b/plugins/filebrowser/resources/ui/gedit-file-browser-widget.ui new file mode 100644 index 0000000..e4fb300 --- /dev/null +++ b/plugins/filebrowser/resources/ui/gedit-file-browser-widget.ui @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + True + True + 300 + 300 + + + True + True + in + 6 + never + True + True + + + True + False + True + locations_model + True + + + + + + + + + + + + end + + + 2 + + + + + + + + + + + + + + True + False + + + True + False + + + + True + go-previous-symbolic + 2 + + + True + go-next-symbolic + 2 + + + True + go-up-symbolic + 2 + + diff --git a/plugins/generate-list.sh b/plugins/generate-list.sh new file mode 100755 index 0000000..c77cab0 --- /dev/null +++ b/plugins/generate-list.sh @@ -0,0 +1,44 @@ +#!/bin/sh +# SPDX-FileCopyrightText: 2020 Sébastien Wilmet +# SPDX-License-Identifier: GPL-3.0-or-later + +# This script generates a Markdown file with the names and descriptions of all +# official gedit plugins. + +write_list_for_plugins_dir() { + plugins_dir=$1 + + for plugin_desktop_file in `find "$plugins_dir" -name '*.plugin.desktop*'` + do + name=`grep -P '^Name=' "$plugin_desktop_file" | cut -d'=' -f2` + echo -n "- **$name** - " + + desc=`grep -P '^Description=' "$plugin_desktop_file" | cut -d'=' -f2` + echo "*$desc*" + done | sort +} + +write_content() { + echo 'gedit plugins' + echo '=============' + echo + echo 'Core plugins' + echo '------------' + echo + echo 'Plugins that are distributed with gedit itself.' + echo + + write_list_for_plugins_dir '.' + + echo + echo 'gedit-plugins package' + echo '---------------------' + echo + echo 'The gedit-plugins package contains useful plugins that are (most' + echo 'of the time) too specific to be distributed with gedit itself.' + echo + + write_list_for_plugins_dir '../../gedit-plugins/plugins' +} + +write_content > list-of-gedit-plugins.md diff --git a/plugins/list-of-gedit-plugins.md b/plugins/list-of-gedit-plugins.md new file mode 100644 index 0000000..3afea6c --- /dev/null +++ b/plugins/list-of-gedit-plugins.md @@ -0,0 +1,45 @@ +gedit plugins +============= + +Core plugins +------------ + +Plugins that are distributed with gedit itself. + +- **Document Statistics** - *Report the number of words, lines and characters in a document.* +- **External Tools** - *Execute external commands and shell scripts.* +- **File Browser Panel** - *Easy file access from the side panel.* +- **Insert Date/Time** - *Inserts current date and time at the cursor position.* +- **Modelines** - *Emacs, Kate and Vim-style modelines support for gedit.* +- **Python Console** - *Interactive Python console standing in the bottom panel.* +- **Quick Highlight** - *Highlights every occurrences of selected text.* +- **Quick Open** - *Quickly open files.* +- **Snippets** - *Insert often-used pieces of text in a fast way.* +- **Sort** - *Sorts a document or selected text.* +- **Spell Checker** - *Checks the spelling of the current document.* + +gedit-plugins package +--------------------- + +The gedit-plugins package contains useful plugins that are (most +of the time) too specific to be distributed with gedit itself. + +- **Bookmarks** - *Easy document navigation with bookmarks* +- **Bracket Completion** - *Automatically adds closing brackets.* +- **Character Map** - *Insert special characters just by clicking on them.* +- **Code Comment** - *Comment out or uncomment a selected block of code.* +- **Color Picker** - *Pick a color from a dialog and insert its hexadecimal representation.* +- **Color Scheme Editor** - *Source code color scheme editor* +- **Commander** - *Command line interface for advanced editing* +- **Draw Spaces** - *Draw spaces and tabs* +- **Embedded Terminal** - *Embed a terminal in the bottom pane.* +- **Find in Files** - *Find text in all files of a folder.* +- **Git** - *Highlight lines that have been changed since the last commit* +- **Join/Split Lines** - *Join several lines or split long ones* +- **Multi Edit** - *Edit document in multiple places at once* +- **Session Saver** - *Save and restore your working sessions* +- **Smart Spaces** - *Forget you’re not using tabulations.* +- **SyncTeX** - *Synchronize between LaTeX and PDF with gedit and evince.* +- **Text Size** - *Easily increase and decrease the text size* +- **Translate** - *Translates text into different languages* +- **Word Completion** - *Word completion using the completion framework* diff --git a/plugins/meson.build b/plugins/meson.build new file mode 100644 index 0000000..50bc5d3 --- /dev/null +++ b/plugins/meson.build @@ -0,0 +1,31 @@ +# Keep the autotools convention for shared module suffix because GModule +# depends on it: https://gitlab.gnome.org/GNOME/glib/issues/520 +module_suffix = [] +if host_machine.system() == 'darwin' + module_suffix = 'so' +endif + +msgfmt_plugin_cmd = [ + find_program('msgfmt'), + '--desktop', + '--keyword=Name', + '--keyword=Description', + '--template=@INPUT@', + '-d', join_paths(srcdir, 'po'), + '--output=@OUTPUT@' +] + +subdir('docinfo') +subdir('filebrowser') +subdir('modelines') +subdir('pythonconsole') +subdir('quickhighlight') +subdir('quickopen') +subdir('snippets') +subdir('sort') +subdir('spell') +subdir('time') + +if get_option('plugin_externaltools') + subdir('externaltools') +endif diff --git a/plugins/modelines/gedit-modeline-plugin.c b/plugins/modelines/gedit-modeline-plugin.c new file mode 100644 index 0000000..376d996 --- /dev/null +++ b/plugins/modelines/gedit-modeline-plugin.c @@ -0,0 +1,225 @@ +/* + * gedit-modeline-plugin.c + * Emacs, Kate and Vim-style modelines support for gedit. + * + * Copyright (C) 2005-2010 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "config.h" + +#include +#include +#include "gedit-modeline-plugin.h" +#include "modeline-parser.h" + +#include +#include +#include + +struct _GeditModelinePluginPrivate +{ + GeditView *view; + + gulong document_loaded_handler_id; + gulong document_saved_handler_id; +}; + +enum +{ + PROP_0, + PROP_VIEW +}; + +static void gedit_view_activatable_iface_init (GeditViewActivatableInterface *iface); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditModelinePlugin, + gedit_modeline_plugin, + PEAS_TYPE_EXTENSION_BASE, + 0, + G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_VIEW_ACTIVATABLE, + gedit_view_activatable_iface_init) + G_ADD_PRIVATE_DYNAMIC (GeditModelinePlugin)) + +static void +gedit_modeline_plugin_constructed (GObject *object) +{ + gchar *data_dir; + + data_dir = peas_extension_base_get_data_dir (PEAS_EXTENSION_BASE (object)); + + modeline_parser_init (data_dir); + + g_free (data_dir); + + G_OBJECT_CLASS (gedit_modeline_plugin_parent_class)->constructed (object); +} + +static void +gedit_modeline_plugin_init (GeditModelinePlugin *plugin) +{ + gedit_debug_message (DEBUG_PLUGINS, "GeditModelinePlugin initializing"); + + plugin->priv = gedit_modeline_plugin_get_instance_private (plugin); + +} + +static void +gedit_modeline_plugin_dispose (GObject *object) +{ + GeditModelinePlugin *plugin = GEDIT_MODELINE_PLUGIN (object); + + gedit_debug_message (DEBUG_PLUGINS, "GeditModelinePlugin disposing"); + + g_clear_object (&plugin->priv->view); + + G_OBJECT_CLASS (gedit_modeline_plugin_parent_class)->dispose (object); +} + +static void +gedit_modeline_plugin_finalize (GObject *object) +{ + gedit_debug_message (DEBUG_PLUGINS, "GeditModelinePlugin finalizing"); + + modeline_parser_shutdown (); + + G_OBJECT_CLASS (gedit_modeline_plugin_parent_class)->finalize (object); +} + +static void +gedit_modeline_plugin_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditModelinePlugin *plugin = GEDIT_MODELINE_PLUGIN (object); + + switch (prop_id) + { + case PROP_VIEW: + plugin->priv->view = GEDIT_VIEW (g_value_dup_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_modeline_plugin_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditModelinePlugin *plugin = GEDIT_MODELINE_PLUGIN (object); + + switch (prop_id) + { + case PROP_VIEW: + g_value_set_object (value, plugin->priv->view); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +on_document_loaded_or_saved (GeditDocument *document, + GtkSourceView *view) +{ + modeline_parser_apply_modeline (view); +} + +static void +gedit_modeline_plugin_activate (GeditViewActivatable *activatable) +{ + GeditModelinePlugin *plugin; + GtkTextBuffer *doc; + + gedit_debug (DEBUG_PLUGINS); + + plugin = GEDIT_MODELINE_PLUGIN (activatable); + + modeline_parser_apply_modeline (GTK_SOURCE_VIEW (plugin->priv->view)); + + doc = gtk_text_view_get_buffer (GTK_TEXT_VIEW (plugin->priv->view)); + + plugin->priv->document_loaded_handler_id = + g_signal_connect (doc, "loaded", + G_CALLBACK (on_document_loaded_or_saved), + plugin->priv->view); + plugin->priv->document_saved_handler_id = + g_signal_connect (doc, "saved", + G_CALLBACK (on_document_loaded_or_saved), + plugin->priv->view); +} + +static void +gedit_modeline_plugin_deactivate (GeditViewActivatable *activatable) +{ + GeditModelinePlugin *plugin; + GtkTextBuffer *doc; + + gedit_debug (DEBUG_PLUGINS); + + plugin = GEDIT_MODELINE_PLUGIN (activatable); + + doc = gtk_text_view_get_buffer (GTK_TEXT_VIEW (plugin->priv->view)); + + g_signal_handler_disconnect (doc, plugin->priv->document_loaded_handler_id); + g_signal_handler_disconnect (doc, plugin->priv->document_saved_handler_id); +} + +static void +gedit_modeline_plugin_class_init (GeditModelinePluginClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->constructed = gedit_modeline_plugin_constructed; + object_class->dispose = gedit_modeline_plugin_dispose; + object_class->finalize = gedit_modeline_plugin_finalize; + object_class->set_property = gedit_modeline_plugin_set_property; + object_class->get_property = gedit_modeline_plugin_get_property; + + g_object_class_override_property (object_class, PROP_VIEW, "view"); +} + +static void +gedit_view_activatable_iface_init (GeditViewActivatableInterface *iface) +{ + iface->activate = gedit_modeline_plugin_activate; + iface->deactivate = gedit_modeline_plugin_deactivate; +} + +static void +gedit_modeline_plugin_class_finalize (GeditModelinePluginClass *klass) +{ +} + + +G_MODULE_EXPORT void +peas_register_types (PeasObjectModule *module) +{ + gedit_modeline_plugin_register_type (G_TYPE_MODULE (module)); + + peas_object_module_register_extension_type (module, + GEDIT_TYPE_VIEW_ACTIVATABLE, + GEDIT_TYPE_MODELINE_PLUGIN); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/modelines/gedit-modeline-plugin.h b/plugins/modelines/gedit-modeline-plugin.h new file mode 100644 index 0000000..d3557e4 --- /dev/null +++ b/plugins/modelines/gedit-modeline-plugin.h @@ -0,0 +1,60 @@ +/* + * gedit-modeline-plugin.h + * Emacs, Kate and Vim-style modelines support for gedit. + * + * Copyright (C) 2005-2007 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef GEDIT_MODELINE_PLUGIN_H +#define GEDIT_MODELINE_PLUGIN_H + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_MODELINE_PLUGIN (gedit_modeline_plugin_get_type ()) +#define GEDIT_MODELINE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_MODELINE_PLUGIN, GeditModelinePlugin)) +#define GEDIT_MODELINE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_MODELINE_PLUGIN, GeditModelinePluginClass)) +#define GEDIT_IS_MODELINE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_MODELINE_PLUGIN)) +#define GEDIT_IS_MODELINE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_MODELINE_PLUGIN)) +#define GEDIT_MODELINE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_MODELINE_PLUGIN, GeditModelinePluginClass)) + +typedef struct _GeditModelinePlugin GeditModelinePlugin; +typedef struct _GeditModelinePluginPrivate GeditModelinePluginPrivate; +typedef struct _GeditModelinePluginClass GeditModelinePluginClass; + +struct _GeditModelinePlugin { + PeasExtensionBase parent; + + /*< private >*/ + GeditModelinePluginPrivate *priv; +}; + +struct _GeditModelinePluginClass { + PeasExtensionBaseClass parent_class; +}; + +GType gedit_modeline_plugin_get_type (void) G_GNUC_CONST; + +G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); + +G_END_DECLS + +#endif /* GEDIT_MODELINE_PLUGIN_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/modelines/language-mappings b/plugins/modelines/language-mappings new file mode 100644 index 0000000..47d0029 --- /dev/null +++ b/plugins/modelines/language-mappings @@ -0,0 +1,14 @@ +[vim] +cs=c-sharp +docbk=docbook +javascript=js +lhaskell=haskell-literate +spec=rpmspec +tex=latex +xhtml=html + +[emacs] +c++=cpp + +[kate] + diff --git a/plugins/modelines/meson.build b/plugins/modelines/meson.build new file mode 100644 index 0000000..3ff0e84 --- /dev/null +++ b/plugins/modelines/meson.build @@ -0,0 +1,42 @@ +libmodelines_sources = files( + 'gedit-modeline-plugin.c', + 'modeline-parser.c', +) + +libmodelines_deps = [ + libgedit_dep, +] + +libmodelines_sha = shared_module( + 'modelines', + sources: libmodelines_sources, + include_directories: root_include_dir, + dependencies: libmodelines_deps, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ), + name_suffix: module_suffix, +) + +custom_target( + 'modelines.plugin', + input: 'modelines.plugin.desktop.in', + output: 'modelines.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) + +install_data( + 'language-mappings', + install_dir: join_paths( + pkgdatadir, + 'plugins', + 'modelines', + ) +) diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c new file mode 100644 index 0000000..989e111 --- /dev/null +++ b/plugins/modelines/modeline-parser.c @@ -0,0 +1,899 @@ +/* + * modeline-parser.c + * Emacs, Kate and Vim-style modelines support for gedit. + * + * Copyright (C) 2005-2007 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include "modeline-parser.h" + +#define MODELINES_LANGUAGE_MAPPINGS_FILE "language-mappings" + +/* base dir to lookup configuration files */ +static gchar *modelines_data_dir; + +/* Mappings: language name -> Gedit language ID */ +static GHashTable *vim_languages = NULL; +static GHashTable *emacs_languages = NULL; +static GHashTable *kate_languages = NULL; + +typedef enum +{ + MODELINE_SET_NONE = 0, + MODELINE_SET_TAB_WIDTH = 1 << 0, + MODELINE_SET_INDENT_WIDTH = 1 << 1, + MODELINE_SET_WRAP_MODE = 1 << 2, + MODELINE_SET_SHOW_RIGHT_MARGIN = 1 << 3, + MODELINE_SET_RIGHT_MARGIN_POSITION = 1 << 4, + MODELINE_SET_LANGUAGE = 1 << 5, + MODELINE_SET_INSERT_SPACES = 1 << 6 +} ModelineSet; + +typedef struct _ModelineOptions +{ + gchar *language_id; + + /* these options are similar to the GtkSourceView properties of the + * same names. + */ + gboolean insert_spaces; + guint tab_width; + guint indent_width; + GtkWrapMode wrap_mode; + gboolean display_right_margin; + guint right_margin_position; + + ModelineSet set; +} ModelineOptions; + +#define MODELINE_OPTIONS_DATA_KEY "ModelineOptionsDataKey" + +static gboolean +has_option (ModelineOptions *options, + ModelineSet set) +{ + return options->set & set; +} + +void +modeline_parser_init (const gchar *data_dir) +{ + if (modelines_data_dir == NULL) + { + modelines_data_dir = g_strdup (data_dir); + } +} + +void +modeline_parser_shutdown () +{ + if (vim_languages != NULL) + g_hash_table_unref (vim_languages); + + if (emacs_languages != NULL) + g_hash_table_unref (emacs_languages); + + if (kate_languages != NULL) + g_hash_table_unref (kate_languages); + + vim_languages = NULL; + emacs_languages = NULL; + kate_languages = NULL; + + g_free (modelines_data_dir); + modelines_data_dir = NULL; +} + +static GHashTable * +load_language_mappings_group (GKeyFile *key_file, const gchar *group) +{ + GHashTable *table; + gchar **keys; + gsize length = 0; + int i; + + table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); + + keys = g_key_file_get_keys (key_file, group, &length, NULL); + + gedit_debug_message (DEBUG_PLUGINS, + "%" G_GSIZE_FORMAT " mappings in group %s", + length, group); + + for (i = 0; i < length; i++) + { + /* steal the name string */ + gchar *name = keys[i]; + gchar *id = g_key_file_get_string (key_file, group, name, NULL); + g_hash_table_insert (table, name, id); + } + g_free (keys); + + return table; +} + +/* lazy loading of language mappings */ +static void +load_language_mappings (void) +{ + gchar *fname; + GKeyFile *mappings; + GError *error = NULL; + + fname = g_build_filename (modelines_data_dir, + MODELINES_LANGUAGE_MAPPINGS_FILE, + NULL); + + mappings = g_key_file_new (); + + if (g_key_file_load_from_file (mappings, fname, 0, &error)) + { + gedit_debug_message (DEBUG_PLUGINS, + "Loaded language mappings from %s", + fname); + + vim_languages = load_language_mappings_group (mappings, "vim"); + emacs_languages = load_language_mappings_group (mappings, "emacs"); + kate_languages = load_language_mappings_group (mappings, "kate"); + } + else + { + gedit_debug_message (DEBUG_PLUGINS, + "Failed to loaded language mappings from %s: %s", + fname, error->message); + + g_error_free (error); + } + + g_key_file_free (mappings); + g_free (fname); +} + +static gchar * +get_language_id (const gchar *language_name, GHashTable *mapping) +{ + gchar *name; + gchar *language_id = NULL; + + name = g_ascii_strdown (language_name, -1); + + if (mapping != NULL) + { + language_id = g_hash_table_lookup (mapping, name); + + if (language_id != NULL) + { + g_free (name); + return g_strdup (language_id); + } + } + + /* by default assume that the gtksourcevuew id is the same */ + return name; +} + +static gchar * +get_language_id_vim (const gchar *language_name) +{ + if (vim_languages == NULL) + load_language_mappings (); + + return get_language_id (language_name, vim_languages); +} + +static gchar * +get_language_id_emacs (const gchar *language_name) +{ + if (emacs_languages == NULL) + load_language_mappings (); + + return get_language_id (language_name, emacs_languages); +} + +static gchar * +get_language_id_kate (const gchar *language_name) +{ + if (kate_languages == NULL) + load_language_mappings (); + + return get_language_id (language_name, kate_languages); +} + +static gboolean +skip_whitespaces (gchar **s) +{ + while (**s != '\0' && g_ascii_isspace (**s)) + (*s)++; + return **s != '\0'; +} + +/* Parse vi(m) modelines. + * Vi(m) modelines looks like this: + * - first form: [text]{white}{vi:|vim:|ex:}[white]{options} + * - second form: [text]{white}{vi:|vim:|ex:}[white]se[t] {options}:[text] + * They can happen on the three first or last lines. + */ +static gchar * +parse_vim_modeline (gchar *s, + ModelineOptions *options) +{ + gboolean in_set = FALSE; + gboolean neg; + guint intval; + GString *key, *value; + + key = g_string_sized_new (8); + value = g_string_sized_new (8); + + while (*s != '\0' && !(in_set && *s == ':')) + { + while (*s != '\0' && (*s == ':' || g_ascii_isspace (*s))) + s++; + + if (*s == '\0') + break; + + if (strncmp (s, "set ", 4) == 0 || + strncmp (s, "se ", 3) == 0) + { + s = strchr(s, ' ') + 1; + in_set = TRUE; + } + + neg = FALSE; + if (strncmp (s, "no", 2) == 0) + { + neg = TRUE; + s += 2; + } + + g_string_assign (key, ""); + g_string_assign (value, ""); + + while (*s != '\0' && *s != ':' && *s != '=' && + !g_ascii_isspace (*s)) + { + g_string_append_c (key, *s); + s++; + } + + if (*s == '=') + { + s++; + while (*s != '\0' && *s != ':' && + !g_ascii_isspace (*s)) + { + g_string_append_c (value, *s); + s++; + } + } + + if (strcmp (key->str, "ft") == 0 || + strcmp (key->str, "filetype") == 0) + { + g_free (options->language_id); + options->language_id = get_language_id_vim (value->str); + + options->set |= MODELINE_SET_LANGUAGE; + } + else if (strcmp (key->str, "et") == 0 || + strcmp (key->str, "expandtab") == 0) + { + options->insert_spaces = !neg; + options->set |= MODELINE_SET_INSERT_SPACES; + } + else if (strcmp (key->str, "ts") == 0 || + strcmp (key->str, "tabstop") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->tab_width = intval; + options->set |= MODELINE_SET_TAB_WIDTH; + } + } + else if (strcmp (key->str, "sw") == 0 || + strcmp (key->str, "shiftwidth") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->indent_width = intval; + options->set |= MODELINE_SET_INDENT_WIDTH; + } + } + else if (strcmp (key->str, "wrap") == 0) + { + options->wrap_mode = neg ? GTK_WRAP_NONE : GTK_WRAP_WORD; + + options->set |= MODELINE_SET_WRAP_MODE; + } + else if (strcmp (key->str, "textwidth") == 0 || + strcmp (key->str, "tw") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->right_margin_position = intval; + options->display_right_margin = TRUE; + + options->set |= MODELINE_SET_SHOW_RIGHT_MARGIN | + MODELINE_SET_RIGHT_MARGIN_POSITION; + + } + } + } + + g_string_free (key, TRUE); + g_string_free (value, TRUE); + + return s; +} + +/* Parse emacs modelines. + * Emacs modelines looks like this: "-*- key1: value1; key2: value2 -*-" + * They can happen on the first line, or on the second one if the first line is + * a shebang (#!) + * See http://www.delorie.com/gnu/docs/emacs/emacs_486.html + */ +static gchar * +parse_emacs_modeline (gchar *s, + ModelineOptions *options) +{ + guint intval; + GString *key, *value; + + key = g_string_sized_new (8); + value = g_string_sized_new (8); + + while (*s != '\0') + { + while (*s != '\0' && (*s == ';' || g_ascii_isspace (*s))) + s++; + if (*s == '\0' || strncmp (s, "-*-", 3) == 0) + break; + + g_string_assign (key, ""); + g_string_assign (value, ""); + + while (*s != '\0' && *s != ':' && *s != ';' && + !g_ascii_isspace (*s)) + { + g_string_append_c (key, *s); + s++; + } + + if (!skip_whitespaces (&s)) + break; + + if (*s != ':') + continue; + s++; + + if (!skip_whitespaces (&s)) + break; + + while (*s != '\0' && *s != ';' && !g_ascii_isspace (*s)) + { + g_string_append_c (value, *s); + s++; + } + + gedit_debug_message (DEBUG_PLUGINS, + "Emacs modeline bit: %s = %s", + key->str, value->str); + + /* "Mode" key is case insenstive */ + if (g_ascii_strcasecmp (key->str, "Mode") == 0) + { + g_free (options->language_id); + options->language_id = get_language_id_emacs (value->str); + + options->set |= MODELINE_SET_LANGUAGE; + } + else if (strcmp (key->str, "tab-width") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->tab_width = intval; + options->set |= MODELINE_SET_TAB_WIDTH; + } + } + else if (strcmp (key->str, "indent-offset") == 0 || + strcmp (key->str, "c-basic-offset") == 0 || + strcmp (key->str, "js-indent-level") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->indent_width = intval; + options->set |= MODELINE_SET_INDENT_WIDTH; + } + } + else if (strcmp (key->str, "indent-tabs-mode") == 0) + { + intval = strcmp (value->str, "nil") == 0; + options->insert_spaces = intval; + + options->set |= MODELINE_SET_INSERT_SPACES; + } + else if (strcmp (key->str, "autowrap") == 0) + { + intval = strcmp (value->str, "nil") != 0; + options->wrap_mode = intval ? GTK_WRAP_WORD : GTK_WRAP_NONE; + + options->set |= MODELINE_SET_WRAP_MODE; + } + } + + g_string_free (key, TRUE); + g_string_free (value, TRUE); + + return *s == '\0' ? s : s + 2; +} + +/* + * Parse kate modelines. + * Kate modelines are of the form "kate: key1 value1; key2 value2;" + * These can happen on the 10 first or 10 last lines of the buffer. + * See http://wiki.kate-editor.org/index.php/Modelines + */ +static gchar * +parse_kate_modeline (gchar *s, + ModelineOptions *options) +{ + guint intval; + GString *key, *value; + + key = g_string_sized_new (8); + value = g_string_sized_new (8); + + while (*s != '\0') + { + while (*s != '\0' && (*s == ';' || g_ascii_isspace (*s))) + s++; + if (*s == '\0') + break; + + g_string_assign (key, ""); + g_string_assign (value, ""); + + while (*s != '\0' && *s != ';' && !g_ascii_isspace (*s)) + { + g_string_append_c (key, *s); + s++; + } + + if (!skip_whitespaces (&s)) + break; + if (*s == ';') + continue; + + while (*s != '\0' && *s != ';' && + !g_ascii_isspace (*s)) + { + g_string_append_c (value, *s); + s++; + } + + gedit_debug_message (DEBUG_PLUGINS, + "Kate modeline bit: %s = %s", + key->str, value->str); + + if (strcmp (key->str, "hl") == 0 || + strcmp (key->str, "syntax") == 0) + { + g_free (options->language_id); + options->language_id = get_language_id_kate (value->str); + + options->set |= MODELINE_SET_LANGUAGE; + } + else if (strcmp (key->str, "tab-width") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->tab_width = intval; + options->set |= MODELINE_SET_TAB_WIDTH; + } + } + else if (strcmp (key->str, "indent-width") == 0) + { + intval = atoi (value->str); + if (intval) options->indent_width = intval; + } + else if (strcmp (key->str, "space-indent") == 0) + { + intval = strcmp (value->str, "on") == 0 || + strcmp (value->str, "true") == 0 || + strcmp (value->str, "1") == 0; + + options->insert_spaces = intval; + options->set |= MODELINE_SET_INSERT_SPACES; + } + else if (strcmp (key->str, "word-wrap") == 0) + { + intval = strcmp (value->str, "on") == 0 || + strcmp (value->str, "true") == 0 || + strcmp (value->str, "1") == 0; + + options->wrap_mode = intval ? GTK_WRAP_WORD : GTK_WRAP_NONE; + + options->set |= MODELINE_SET_WRAP_MODE; + } + else if (strcmp (key->str, "word-wrap-column") == 0) + { + intval = atoi (value->str); + + if (intval) + { + options->right_margin_position = intval; + options->display_right_margin = TRUE; + + options->set |= MODELINE_SET_RIGHT_MARGIN_POSITION | + MODELINE_SET_SHOW_RIGHT_MARGIN; + } + } + } + + g_string_free (key, TRUE); + g_string_free (value, TRUE); + + return s; +} + +/* Scan a line for vi(m)/emacs/kate modelines. + * Line numbers are counted starting at one. + */ +static void +parse_modeline (gchar *line, + gint line_number, + gint line_count, + ModelineOptions *options) +{ + gchar *s = line; + + /* look for the beginning of a modeline */ + while (s != NULL && *s != '\0') + { + if (s > line && !g_ascii_isspace (*(s - 1))) + { + s++; + continue; + } + + if ((line_number <= 3 || line_number > line_count - 3) && + (strncmp (s, "ex:", 3) == 0 || + strncmp (s, "vi:", 3) == 0 || + strncmp (s, "vim:", 4) == 0)) + { + gedit_debug_message (DEBUG_PLUGINS, "Vim modeline on line %d", line_number); + + while (*s != ':') + { + s++; + } + + s = parse_vim_modeline (s + 1, options); + } + else if (line_number <= 2 && strncmp (s, "-*-", 3) == 0) + { + gedit_debug_message (DEBUG_PLUGINS, "Emacs modeline on line %d", line_number); + + s = parse_emacs_modeline (s + 3, options); + } + else if ((line_number <= 10 || line_number > line_count - 10) && + strncmp (s, "kate:", 5) == 0) + { + gedit_debug_message (DEBUG_PLUGINS, "Kate modeline on line %d", line_number); + + s = parse_kate_modeline (s + 5, options); + } + else + { + s++; + } + } +} + +static gboolean +check_previous (GtkSourceView *view, + ModelineOptions *previous, + ModelineSet set) +{ + GtkSourceBuffer *buffer = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view))); + + /* Do not restore default when this is the first time */ + if (!previous) + return FALSE; + + /* Do not restore default when previous was not set */ + if (!(previous->set & set)) + return FALSE; + + /* Only restore default when setting has not changed */ + switch (set) + { + case MODELINE_SET_INSERT_SPACES: + return gtk_source_view_get_insert_spaces_instead_of_tabs (view) == + previous->insert_spaces; + break; + case MODELINE_SET_TAB_WIDTH: + return gtk_source_view_get_tab_width (view) == previous->tab_width; + break; + case MODELINE_SET_INDENT_WIDTH: + return gtk_source_view_get_indent_width (view) == previous->indent_width; + break; + case MODELINE_SET_WRAP_MODE: + return gtk_text_view_get_wrap_mode (GTK_TEXT_VIEW (view)) == + previous->wrap_mode; + break; + case MODELINE_SET_RIGHT_MARGIN_POSITION: + return gtk_source_view_get_right_margin_position (view) == + previous->right_margin_position; + break; + case MODELINE_SET_SHOW_RIGHT_MARGIN: + return gtk_source_view_get_show_right_margin (view) == + previous->display_right_margin; + break; + case MODELINE_SET_LANGUAGE: + { + GtkSourceLanguage *language = gtk_source_buffer_get_language (buffer); + + return (language == NULL && previous->language_id == NULL) || + (language != NULL && g_strcmp0 (gtk_source_language_get_id (language), + previous->language_id) == 0); + } + break; + default: + return FALSE; + break; + } +} + +static void +free_modeline_options (ModelineOptions *options) +{ + g_free (options->language_id); + g_slice_free (ModelineOptions, options); +} + +void +modeline_parser_apply_modeline (GtkSourceView *view) +{ + ModelineOptions options; + GtkTextBuffer *buffer; + GtkTextIter iter, liter; + gint line_count; + GSettings *settings; + + options.language_id = NULL; + options.set = MODELINE_SET_NONE; + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); + gtk_text_buffer_get_start_iter (buffer, &iter); + + line_count = gtk_text_buffer_get_line_count (buffer); + + /* Parse the modelines on the 10 first lines... */ + while ((gtk_text_iter_get_line (&iter) < 10) && + !gtk_text_iter_is_end (&iter)) + { + gchar *line; + + liter = iter; + gtk_text_iter_forward_to_line_end (&iter); + line = gtk_text_buffer_get_text (buffer, &liter, &iter, TRUE); + + parse_modeline (line, + 1 + gtk_text_iter_get_line (&iter), + line_count, + &options); + + gtk_text_iter_forward_line (&iter); + + g_free (line); + } + + /* ...and on the 10 last ones (modelines are not allowed in between) */ + if (!gtk_text_iter_is_end (&iter)) + { + gint cur_line; + guint remaining_lines; + + /* we are on the 11th line (count from 0) */ + cur_line = gtk_text_iter_get_line (&iter); + /* g_assert (10 == cur_line); */ + + remaining_lines = line_count - cur_line - 1; + + if (remaining_lines > 10) + { + gtk_text_buffer_get_end_iter (buffer, &iter); + gtk_text_iter_backward_lines (&iter, 9); + } + } + + while (!gtk_text_iter_is_end (&iter)) + { + gchar *line; + + liter = iter; + gtk_text_iter_forward_to_line_end (&iter); + line = gtk_text_buffer_get_text (buffer, &liter, &iter, TRUE); + + parse_modeline (line, + 1 + gtk_text_iter_get_line (&iter), + line_count, + &options); + + gtk_text_iter_forward_line (&iter); + + g_free (line); + } + + /* Try to set language */ + if (has_option (&options, MODELINE_SET_LANGUAGE) && options.language_id) + { + if (g_ascii_strcasecmp (options.language_id, "text") == 0) + { + gedit_document_set_language (GEDIT_DOCUMENT (buffer), + NULL); + } + else + { + GtkSourceLanguageManager *manager; + GtkSourceLanguage *language; + + manager = gtk_source_language_manager_get_default (); + + language = gtk_source_language_manager_get_language + (manager, options.language_id); + if (language != NULL) + { + gedit_document_set_language (GEDIT_DOCUMENT (buffer), + language); + } + else + { + gedit_debug_message (DEBUG_PLUGINS, + "Unknown language `%s'", + options.language_id); + } + } + } + + ModelineOptions *previous = g_object_get_data (G_OBJECT (buffer), + MODELINE_OPTIONS_DATA_KEY); + + settings = g_settings_new ("org.gnome.gedit.preferences.editor"); + + /* Apply the options we got from modelines and restore defaults if + we set them before */ + if (has_option (&options, MODELINE_SET_INSERT_SPACES)) + { + gtk_source_view_set_insert_spaces_instead_of_tabs + (view, options.insert_spaces); + } + else if (check_previous (view, previous, MODELINE_SET_INSERT_SPACES)) + { + gboolean insert_spaces; + + insert_spaces = g_settings_get_boolean (settings, GEDIT_SETTINGS_INSERT_SPACES); + + gtk_source_view_set_insert_spaces_instead_of_tabs (view, insert_spaces); + } + + if (has_option (&options, MODELINE_SET_TAB_WIDTH)) + { + gtk_source_view_set_tab_width (view, options.tab_width); + } + else if (check_previous (view, previous, MODELINE_SET_TAB_WIDTH)) + { + guint tab_width; + + g_settings_get (settings, GEDIT_SETTINGS_TABS_SIZE, "u", &tab_width); + + gtk_source_view_set_tab_width (view, tab_width); + } + + if (has_option (&options, MODELINE_SET_INDENT_WIDTH)) + { + gtk_source_view_set_indent_width (view, options.indent_width); + } + else if (check_previous (view, previous, MODELINE_SET_INDENT_WIDTH)) + { + gtk_source_view_set_indent_width (view, -1); + } + + if (has_option (&options, MODELINE_SET_WRAP_MODE)) + { + gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), options.wrap_mode); + } + else if (check_previous (view, previous, MODELINE_SET_WRAP_MODE)) + { + GtkWrapMode mode; + + mode = g_settings_get_enum (settings, + GEDIT_SETTINGS_WRAP_MODE); + gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), mode); + } + + if (has_option (&options, MODELINE_SET_RIGHT_MARGIN_POSITION)) + { + gtk_source_view_set_right_margin_position (view, options.right_margin_position); + } + else if (check_previous (view, previous, MODELINE_SET_RIGHT_MARGIN_POSITION)) + { + guint right_margin_pos; + + g_settings_get (settings, GEDIT_SETTINGS_RIGHT_MARGIN_POSITION, "u", + &right_margin_pos); + gtk_source_view_set_right_margin_position (view, + right_margin_pos); + } + + if (has_option (&options, MODELINE_SET_SHOW_RIGHT_MARGIN)) + { + gtk_source_view_set_show_right_margin (view, options.display_right_margin); + } + else if (check_previous (view, previous, MODELINE_SET_SHOW_RIGHT_MARGIN)) + { + gboolean display_right_margin; + + display_right_margin = g_settings_get_boolean (settings, + GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN); + gtk_source_view_set_show_right_margin (view, display_right_margin); + } + + if (previous) + { + g_free (previous->language_id); + *previous = options; + previous->language_id = g_strdup (options.language_id); + } + else + { + previous = g_slice_new (ModelineOptions); + *previous = options; + previous->language_id = g_strdup (options.language_id); + + g_object_set_data_full (G_OBJECT (buffer), + MODELINE_OPTIONS_DATA_KEY, + previous, + (GDestroyNotify)free_modeline_options); + } + + g_object_unref (settings); + g_free (options.language_id); +} + +/* vi:ts=8 */ diff --git a/plugins/modelines/modeline-parser.h b/plugins/modelines/modeline-parser.h new file mode 100644 index 0000000..0fbf9a1 --- /dev/null +++ b/plugins/modelines/modeline-parser.h @@ -0,0 +1,36 @@ +/* + * modelie-parser.h + * Emacs, Kate and Vim-style modelines support for gedit. + * + * Copyright (C) 2005-2007 - Steve Frécinaux + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef MODELINE_PARSER_H +#define MODELINE_PARSER_H + +#include +#include + +G_BEGIN_DECLS + +void modeline_parser_init (const gchar *data_dir); +void modeline_parser_shutdown (void); +void modeline_parser_apply_modeline (GtkSourceView *view); + +G_END_DECLS + +#endif /* MODELINE_PARSER_H */ +/* ex:set ts=8 noet: */ diff --git a/plugins/modelines/modelines.plugin.desktop.in b/plugins/modelines/modelines.plugin.desktop.in new file mode 100644 index 0000000..d334c55 --- /dev/null +++ b/plugins/modelines/modelines.plugin.desktop.in @@ -0,0 +1,8 @@ +[Plugin] +Module=modelines +IAge=3 +Name=Modelines +Description=Emacs, Kate and Vim-style modelines support for gedit. +Authors=Steve Frécinaux +Copyright=Copyright © 2005 Steve Frécinaux +Website=http://www.gedit.org diff --git a/plugins/pythonconsole/meson.build b/plugins/pythonconsole/meson.build new file mode 100644 index 0000000..1aecada --- /dev/null +++ b/plugins/pythonconsole/meson.build @@ -0,0 +1,31 @@ +subdir('pythonconsole') + +pythonconsole_gschema_file = files('org.gnome.gedit.plugins.pythonconsole.gschema.xml') +install_data( + pythonconsole_gschema_file, + install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas') +) + +if xmllint.found() + test( + 'validate-pythonconsole-gschema', + xmllint, + args: [ + '--noout', + '--dtdvalid', gschema_dtd, + pythonconsole_gschema_file, + ] + ) +endif + +custom_target( + 'pythonconsole.plugin', + input: 'pythonconsole.plugin.desktop.in', + output: 'pythonconsole.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) diff --git a/plugins/pythonconsole/org.gnome.gedit.plugins.pythonconsole.gschema.xml b/plugins/pythonconsole/org.gnome.gedit.plugins.pythonconsole.gschema.xml new file mode 100644 index 0000000..0a29031 --- /dev/null +++ b/plugins/pythonconsole/org.gnome.gedit.plugins.pythonconsole.gschema.xml @@ -0,0 +1,30 @@ + + + + '#314e6c' + Command Color Text + The command color text + + + '#990000' + Error Color Text + The error color text + + + true + Whether to use the system font + + If true, the terminal will use the desktop-global standard + font if it’s monospace (and the most similar font it can + come up with otherwise). + + + + 'Monospace 10' + Font + + A Pango font name. Examples are “Sans 12” or “Monospace Bold 14”. + + + + diff --git a/plugins/pythonconsole/pythonconsole.plugin.desktop.in b/plugins/pythonconsole/pythonconsole.plugin.desktop.in new file mode 100644 index 0000000..2b4456c --- /dev/null +++ b/plugins/pythonconsole/pythonconsole.plugin.desktop.in @@ -0,0 +1,12 @@ +[Plugin] +Loader=python3 +Module=pythonconsole +IAge=3 +Name=Python Console +Description=Interactive Python console standing in the bottom panel. +# TRANSLATORS: Do NOT translate or transliterate this text! +# This is an icon file name. +Icon=text-x-script +Authors=Steve Frécinaux +Copyright=Copyright © 2006 Steve Frécinaux +Website=http://www.gedit.org diff --git a/plugins/pythonconsole/pythonconsole/__init__.py b/plugins/pythonconsole/pythonconsole/__init__.py new file mode 100644 index 0000000..6405596 --- /dev/null +++ b/plugins/pythonconsole/pythonconsole/__init__.py @@ -0,0 +1,75 @@ +# -*- coding: utf-8 -*- + +# __init__.py -- plugin object +# +# Copyright (C) 2006 - Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +# Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py) +# Copyright (C), 1998 James Henstridge +# Copyright (C), 2005 Adam Hooper +# Bits from gedit Python Console Plugin +# Copyrignt (C), 2005 Raphaël Slinckx + +import gi +gi.require_version('Gedit', '3.0') +gi.require_version('Peas', '1.0') +gi.require_version('PeasGtk', '1.0') +gi.require_version('Gtk', '3.0') + +from gi.repository import GObject, Gtk, Gedit, Peas, PeasGtk +from .console import PythonConsole +from .config import PythonConsoleConfigWidget + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class PythonConsolePlugin(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configurable): + __gtype_name__ = "PythonConsolePlugin" + + window = GObject.Property(type=Gedit.Window) + + def __init__(self): + GObject.Object.__init__(self) + + def do_activate(self): + self._console = PythonConsole(namespace = {'__builtins__' : __builtins__, + 'gedit' : Gedit, + 'window' : self.window}) + self._console.eval('print("You can access the main window through ' \ + '\'window\' :\\n%s" % window)', False) + bottom = self.window.get_bottom_panel() + self._console.show_all() + bottom.add_titled(self._console, "GeditPythonConsolePanel", _('Python Console')) + + def do_deactivate(self): + self._console.stop() + bottom = self.window.get_bottom_panel() + bottom.remove(self._console) + + def do_update_state(self): + pass + + def do_create_configure_widget(self): + config_widget = PythonConsoleConfigWidget(self.plugin_info.get_data_dir()) + + return config_widget.configure_widget() + +# ex:et:ts=4: diff --git a/plugins/pythonconsole/pythonconsole/config.py b/plugins/pythonconsole/pythonconsole/config.py new file mode 100644 index 0000000..8c609af --- /dev/null +++ b/plugins/pythonconsole/pythonconsole/config.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- + +# config.py -- Config dialog +# +# Copyright (C) 2008 - B. Clausius +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +# Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py) +# Copyright (C), 1998 James Henstridge +# Copyright (C), 2005 Adam Hooper +# Bits from gedit Python Console Plugin +# Copyrignt (C), 2005 Raphaël Slinckx + +import os +from gi.repository import Gio, Gtk, Gdk + +__all__ = ('PythonConsoleConfigWidget') + +class PythonConsoleConfigWidget(object): + + CONSOLE_KEY_BASE = 'org.gnome.gedit.plugins.pythonconsole' + CONSOLE_KEY_COMMAND_COLOR = 'command-color' + CONSOLE_KEY_ERROR_COLOR = 'error-color' + + def __init__(self, datadir): + object.__init__(self) + + self._ui_path = os.path.join(datadir, 'ui', 'config.ui') + self._settings = Gio.Settings.new(self.CONSOLE_KEY_BASE) + self._ui = Gtk.Builder() + + def configure_widget(self): + self._ui.add_from_file(self._ui_path) + + self.set_colorbutton_color(self._ui.get_object('colorbutton-command'), + self._settings.get_string(self.CONSOLE_KEY_COMMAND_COLOR)) + self.set_colorbutton_color(self._ui.get_object('colorbutton-error'), + self._settings.get_string(self.CONSOLE_KEY_ERROR_COLOR)) + + self._ui.connect_signals(self) + + widget = self._ui.get_object('grid') + + return widget + + @staticmethod + def set_colorbutton_color(colorbutton, value): + rgba = Gdk.RGBA() + parsed = rgba.parse(value) + + if parsed: + colorbutton.set_rgba(rgba) + + def on_colorbutton_command_color_set(self, colorbutton): + self._settings.set_string(self.CONSOLE_KEY_COMMAND_COLOR, + colorbutton.get_color().to_string()) + + def on_colorbutton_error_color_set(self, colorbutton): + self._settings.set_string(self.CONSOLE_KEY_ERROR_COLOR, + colorbutton.get_color().to_string()) + +# ex:et:ts=4: diff --git a/plugins/pythonconsole/pythonconsole/config.ui b/plugins/pythonconsole/pythonconsole/config.ui new file mode 100644 index 0000000..573be34 --- /dev/null +++ b/plugins/pythonconsole/pythonconsole/config.ui @@ -0,0 +1,70 @@ + + + + + True + False + 12 + 12 + 12 + 12 + 6 + 12 + + + True + False + 0 + C_ommand color: + True + colorbutton-command + + + 0 + 0 + + + + + True + False + 0 + _Error color: + True + colorbutton-error + + + 0 + 1 + + + + + False + True + True + True + True + #31314e4e6c6c + + + 1 + 0 + + + + + False + True + True + True + True + #999900000000 + + + 1 + 1 + + + + diff --git a/plugins/pythonconsole/pythonconsole/console.py b/plugins/pythonconsole/pythonconsole/console.py new file mode 100644 index 0000000..b81e8a7 --- /dev/null +++ b/plugins/pythonconsole/pythonconsole/console.py @@ -0,0 +1,415 @@ +# -*- coding: utf-8 -*- + +# pythonconsole.py -- Console widget +# +# Copyright (C) 2006 - Steve Frécinaux +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +# Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py) +# Copyright (C), 1998 James Henstridge +# Copyright (C), 2005 Adam Hooper +# Bits from gedit Python Console Plugin +# Copyrignt (C), 2005 Raphaël Slinckx + +import string +import sys +import re +import traceback + +from gi.repository import GLib, Gio, Gtk, Gdk, Pango + +__all__ = ('PythonConsole', 'OutFile') + +class PythonConsole(Gtk.ScrolledWindow): + + __gsignals__ = { + 'grab-focus' : 'override', + } + + DEFAULT_FONT = "Monospace 10" + + CONSOLE_KEY_BASE = 'org.gnome.gedit.plugins.pythonconsole' + SETTINGS_INTERFACE_DIR = "org.gnome.desktop.interface" + SETTINGS_PROFILE_DIR = "org.gnome.GnomeTerminal.profiles.Default" + + CONSOLE_KEY_COMMAND_COLOR = 'command-color' + CONSOLE_KEY_ERROR_COLOR = 'error-color' + + def __init__(self, namespace = {}): + Gtk.ScrolledWindow.__init__(self) + + self._settings = Gio.Settings.new(self.CONSOLE_KEY_BASE) + self._settings.connect("changed", self.on_color_settings_changed) + + self._interface_settings = Gio.Settings.new(self.SETTINGS_INTERFACE_DIR) + self._interface_settings.connect("changed", self.on_settings_changed) + + self._profile_settings = self.get_profile_settings() + self._profile_settings.connect("changed", self.on_settings_changed) + + self.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) + self.set_shadow_type(Gtk.ShadowType.NONE) + self.view = Gtk.TextView() + self.reconfigure() + self.view.set_editable(True) + self.view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR) + self.add(self.view) + self.view.show() + + buf = self.view.get_buffer() + self.normal = buf.create_tag("normal") + self.error = buf.create_tag("error") + self.command = buf.create_tag("command") + + # Load the default settings + self.on_color_settings_changed(self._settings, None) + + self.__spaces_pattern = re.compile(r'^\s+') + self.namespace = namespace + + self.block_command = False + + # Init first line + buf.create_mark("input-line", buf.get_end_iter(), True) + buf.insert(buf.get_end_iter(), ">>> ") + buf.create_mark("input", buf.get_end_iter(), True) + + # Init history + self.history = [''] + self.history_pos = 0 + self.current_command = '' + self.namespace['__history__'] = self.history + + # Set up hooks for standard output. + self.stdout = OutFile(self, sys.stdout.fileno(), self.normal) + self.stderr = OutFile(self, sys.stderr.fileno(), self.error) + + # Signals + self.view.connect("key-press-event", self.__key_press_event_cb) + buf.connect("mark-set", self.__mark_set_cb) + + def get_profile_settings(self): + #FIXME return either the gnome-terminal settings or the gedit one + return Gio.Settings.new(self.CONSOLE_KEY_BASE) + + def do_grab_focus(self): + self.view.grab_focus() + + def reconfigure(self): + # Font + font_desc = None + system_font = self._interface_settings.get_string("monospace-font-name") + + if self._profile_settings.get_boolean("use-system-font"): + font_name = system_font + else: + font_name = self._profile_settings.get_string("font") + + try: + font_desc = Pango.FontDescription(font_name) + except: + if font_name != self.DEFAULT_FONT: + if font_name != system_font: + try: + font_desc = Pango.FontDescription(system_font) + except: + pass + + if font_desc is None: + try: + font_desc = Pango.FontDescription(self.DEFAULT_FONT) + except: + pass + + if font_desc != None: + self.view.modify_font(font_desc) + + def on_settings_changed(self, settings, key): + self.reconfigure() + + def on_color_settings_changed(self, settings, key): + self.error.set_property("foreground", settings.get_string(self.CONSOLE_KEY_ERROR_COLOR)) + self.command.set_property("foreground", settings.get_string(self.CONSOLE_KEY_COMMAND_COLOR)) + + def stop(self): + self.namespace = None + + def __key_press_event_cb(self, view, event): + modifier_mask = Gtk.accelerator_get_default_mod_mask() + event_state = event.state & modifier_mask + + if event.keyval == Gdk.KEY_D and event_state == Gdk.ModifierType.CONTROL_MASK: + self.destroy() + + elif event.keyval == Gdk.KEY_Return and event_state == Gdk.ModifierType.CONTROL_MASK: + # Get the command + buf = view.get_buffer() + inp_mark = buf.get_mark("input") + inp = buf.get_iter_at_mark(inp_mark) + cur = buf.get_end_iter() + line = buf.get_text(inp, cur, False) + self.current_command = self.current_command + line + "\n" + self.history_add(line) + + # Prepare the new line + cur = buf.get_end_iter() + buf.insert(cur, "\n... ") + cur = buf.get_end_iter() + buf.move_mark(inp_mark, cur) + + # Keep indentation of precendent line + spaces = re.match(self.__spaces_pattern, line) + if spaces is not None: + buf.insert(cur, line[spaces.start() : spaces.end()]) + cur = buf.get_end_iter() + + buf.place_cursor(cur) + GLib.idle_add(self.scroll_to_end) + return True + + elif event.keyval == Gdk.KEY_Return: + # Get the marks + buf = view.get_buffer() + lin_mark = buf.get_mark("input-line") + inp_mark = buf.get_mark("input") + + # Get the command line + inp = buf.get_iter_at_mark(inp_mark) + cur = buf.get_end_iter() + line = buf.get_text(inp, cur, False) + self.current_command = self.current_command + line + "\n" + self.history_add(line) + + # Make the line blue + lin = buf.get_iter_at_mark(lin_mark) + buf.apply_tag(self.command, lin, cur) + buf.insert(cur, "\n") + + cur_strip = self.current_command.rstrip() + + if cur_strip.endswith(":") \ + or (self.current_command[-2:] != "\n\n" and self.block_command): + # Unfinished block command + self.block_command = True + com_mark = "... " + elif cur_strip.endswith("\\"): + com_mark = "... " + else: + # Eval the command + self.__run(self.current_command) + self.current_command = '' + self.block_command = False + com_mark = ">>> " + + # Prepare the new line + cur = buf.get_end_iter() + buf.move_mark(lin_mark, cur) + buf.insert(cur, com_mark) + cur = buf.get_end_iter() + buf.move_mark(inp_mark, cur) + buf.place_cursor(cur) + GLib.idle_add(self.scroll_to_end) + return True + + elif event.keyval == Gdk.KEY_KP_Down or event.keyval == Gdk.KEY_Down: + # Next entry from history + view.stop_emission_by_name("key_press_event") + self.history_down() + GLib.idle_add(self.scroll_to_end) + return True + + elif event.keyval == Gdk.KEY_KP_Up or event.keyval == Gdk.KEY_Up: + # Previous entry from history + view.stop_emission_by_name("key_press_event") + self.history_up() + GLib.idle_add(self.scroll_to_end) + return True + + elif event.keyval == Gdk.KEY_KP_Left or event.keyval == Gdk.KEY_Left or \ + event.keyval == Gdk.KEY_BackSpace: + buf = view.get_buffer() + inp = buf.get_iter_at_mark(buf.get_mark("input")) + cur = buf.get_iter_at_mark(buf.get_insert()) + if inp.compare(cur) == 0: + if not event_state: + buf.place_cursor(inp) + return True + return False + + # For the console we enable smart/home end behavior incoditionally + # since it is useful when editing python + + elif (event.keyval == Gdk.KEY_KP_Home or event.keyval == Gdk.KEY_Home) and \ + event_state == event_state & (Gdk.ModifierType.SHIFT_MASK|Gdk.ModifierType.CONTROL_MASK): + # Go to the begin of the command instead of the begin of the line + buf = view.get_buffer() + it = buf.get_iter_at_mark(buf.get_mark("input")) + ins = buf.get_iter_at_mark(buf.get_insert()) + + while it.get_char().isspace(): + it.forward_char() + + if it.equal(ins): + it = buf.get_iter_at_mark(buf.get_mark("input")) + + if event_state & Gdk.ModifierType.SHIFT_MASK: + buf.move_mark_by_name("insert", it) + else: + buf.place_cursor(it) + return True + + elif (event.keyval == Gdk.KEY_KP_End or event.keyval == Gdk.KEY_End) and \ + event_state == event_state & (Gdk.ModifierType.SHIFT_MASK|Gdk.ModifierType.CONTROL_MASK): + + buf = view.get_buffer() + it = buf.get_end_iter() + ins = buf.get_iter_at_mark(buf.get_insert()) + + it.backward_char() + + while it.get_char().isspace(): + it.backward_char() + + it.forward_char() + + if it.equal(ins): + it = buf.get_end_iter() + + if event_state & Gdk.ModifierType.SHIFT_MASK: + buf.move_mark_by_name("insert", it) + else: + buf.place_cursor(it) + return True + + def __mark_set_cb(self, buf, it, name): + input = buf.get_iter_at_mark(buf.get_mark("input")) + pos = buf.get_iter_at_mark(buf.get_insert()) + self.view.set_editable(pos.compare(input) != -1) + + def get_command_line(self): + buf = self.view.get_buffer() + inp = buf.get_iter_at_mark(buf.get_mark("input")) + cur = buf.get_end_iter() + return buf.get_text(inp, cur, False) + + def set_command_line(self, command): + buf = self.view.get_buffer() + mark = buf.get_mark("input") + inp = buf.get_iter_at_mark(mark) + cur = buf.get_end_iter() + buf.delete(inp, cur) + buf.insert(inp, command) + self.view.grab_focus() + + def history_add(self, line): + if line.strip() != '': + self.history_pos = len(self.history) + self.history[self.history_pos - 1] = line + self.history.append('') + + def history_up(self): + if self.history_pos > 0: + self.history[self.history_pos] = self.get_command_line() + self.history_pos = self.history_pos - 1 + self.set_command_line(self.history[self.history_pos]) + + def history_down(self): + if self.history_pos < len(self.history) - 1: + self.history[self.history_pos] = self.get_command_line() + self.history_pos = self.history_pos + 1 + self.set_command_line(self.history[self.history_pos]) + + def scroll_to_end(self): + i = self.view.get_buffer().get_end_iter() + self.view.scroll_to_iter(i, 0.0, False, 0.5, 0.5) + return False + + def write(self, text, tag = None): + buf = self.view.get_buffer() + if tag is None: + buf.insert(buf.get_end_iter(), text) + else: + buf.insert_with_tags(buf.get_end_iter(), text, tag) + + GLib.idle_add(self.scroll_to_end) + + def eval(self, command, display_command = False): + buf = self.view.get_buffer() + lin = buf.get_mark("input-line") + buf.delete(buf.get_iter_at_mark(lin), + buf.get_end_iter()) + + if isinstance(command, list) or isinstance(command, tuple): + for c in command: + if display_command: + self.write(">>> " + c + "\n", self.command) + self.__run(c) + else: + if display_command: + self.write(">>> " + c + "\n", self.command) + self.__run(command) + + cur = buf.get_end_iter() + buf.move_mark_by_name("input-line", cur) + buf.insert(cur, ">>> ") + cur = buf.get_end_iter() + buf.move_mark_by_name("input", cur) + self.view.scroll_to_iter(buf.get_end_iter(), 0.0, False, 0.5, 0.5) + + def __run(self, command): + sys.stdout, self.stdout = self.stdout, sys.stdout + sys.stderr, self.stderr = self.stderr, sys.stderr + + try: + try: + r = eval(command, self.namespace, self.namespace) + if r is not None: + print(r) + except SyntaxError: + exec(command, self.namespace) + except: + if hasattr(sys, 'last_type') and sys.last_type == SystemExit: + self.destroy() + else: + traceback.print_exc() + + sys.stdout, self.stdout = self.stdout, sys.stdout + sys.stderr, self.stderr = self.stderr, sys.stderr + + def destroy(self): + pass + #gtk.ScrolledWindow.destroy(self) + +class OutFile: + """A fake output file object. It sends output to a TK test widget, + and if asked for a file number, returns one set on instance creation""" + def __init__(self, console, fn, tag): + self.fn = fn + self.console = console + self.tag = tag + def close(self): pass + def flush(self): pass + def fileno(self): return self.fn + def isatty(self): return 0 + def read(self, a): return '' + def readline(self): return '' + def readlines(self): return [] + def write(self, s): self.console.write(s, self.tag) + def writelines(self, l): self.console.write(l, self.tag) + def seek(self, a): raise IOError((29, 'Illegal seek')) + def tell(self): raise IOError((29, 'Illegal seek')) + truncate = tell + +# ex:et:ts=4: diff --git a/plugins/pythonconsole/pythonconsole/meson.build b/plugins/pythonconsole/pythonconsole/meson.build new file mode 100644 index 0000000..6bae388 --- /dev/null +++ b/plugins/pythonconsole/pythonconsole/meson.build @@ -0,0 +1,24 @@ +pythonconsole_sources = files( + '__init__.py', + 'config.py', + 'console.py', +) + +install_data( + pythonconsole_sources, + install_dir: join_paths( + pkglibdir, + 'plugins', + 'pythonconsole', + ) +) + +install_data( + 'config.ui', + install_dir: join_paths( + pkgdatadir, + 'plugins', + 'pythonconsole', + 'ui', + ) +) diff --git a/plugins/quickhighlight/gedit-quick-highlight-plugin.c b/plugins/quickhighlight/gedit-quick-highlight-plugin.c new file mode 100644 index 0000000..7b4289d --- /dev/null +++ b/plugins/quickhighlight/gedit-quick-highlight-plugin.c @@ -0,0 +1,483 @@ +/* + * gedit-quick-highlight-plugin.c + * + * Copyright (C) 2018 Martin Blanchard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + * + */ + +#include "config.h" + +#include + +#include +#include +#include +#include + +#include "gedit-quick-highlight-plugin.h" + +struct _GeditQuickHighlightPluginPrivate +{ + GeditView *view; + + GeditDocument *buffer; + GtkTextMark *insert_mark; + + GtkSourceSearchContext *search_context; + GtkSourceStyle *style; + + gulong buffer_handler_id; + gulong mark_set_handler_id; + gulong delete_range_handler_id; + gulong style_scheme_handler_id; + + guint queued_highlight; +}; + +enum +{ + PROP_0, + PROP_VIEW +}; + +static void gedit_view_activatable_iface_init (GeditViewActivatableInterface *iface); + +G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditQuickHighlightPlugin, + gedit_quick_highlight_plugin, + PEAS_TYPE_EXTENSION_BASE, + 0, + G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_VIEW_ACTIVATABLE, + gedit_view_activatable_iface_init) + G_ADD_PRIVATE_DYNAMIC (GeditQuickHighlightPlugin)) + +static void gedit_quick_highlight_plugin_notify_buffer_cb (GObject *object, GParamSpec *pspec, gpointer user_data); +static void gedit_quick_highlight_plugin_mark_set_cb (GtkTextBuffer *textbuffer, GtkTextIter *location, GtkTextMark *mark, gpointer user_data); +static void gedit_quick_highlight_plugin_delete_range_cb (GtkTextBuffer *textbuffer, GtkTextIter *start, GtkTextIter *end, gpointer user_data); +static void gedit_quick_highlight_plugin_notify_style_scheme_cb (GObject *object, GParamSpec *pspec, gpointer user_data); + +static void +gedit_quick_highlight_plugin_load_style (GeditQuickHighlightPlugin *plugin) +{ + GtkSourceStyleScheme *style_scheme; + GtkSourceStyle *style = NULL; + + g_return_if_fail (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + if (plugin->priv->buffer == NULL) + { + return; + } + + gedit_debug (DEBUG_PLUGINS); + + g_clear_object (&plugin->priv->style); + + style_scheme = gtk_source_buffer_get_style_scheme (GTK_SOURCE_BUFFER (plugin->priv->buffer)); + + if (style_scheme != NULL) + { + style = gtk_source_style_scheme_get_style (style_scheme, "quick-highlight-match"); + + if (style != NULL) + { + plugin->priv->style = gtk_source_style_copy (style); + } + } +} + +static gboolean +gedit_quick_highlight_plugin_highlight_worker (gpointer user_data) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (user_data); + GtkSourceSearchSettings *search_settings; + GtkTextIter start, end; + g_autofree gchar *text = NULL; + + g_assert (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + plugin->priv->queued_highlight = 0; + + if (!gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (plugin->priv->buffer), &start, &end)) + { + g_clear_object (&plugin->priv->search_context); + return G_SOURCE_REMOVE; + } + + if (gtk_text_iter_get_line (&start) != gtk_text_iter_get_line (&end)) + { + g_clear_object (&plugin->priv->search_context); + return G_SOURCE_REMOVE; + } + + if (plugin->priv->search_context == NULL) + { + search_settings = + g_object_new (GTK_SOURCE_TYPE_SEARCH_SETTINGS, + "at-word-boundaries", FALSE, + "case-sensitive", TRUE, + "regex-enabled", FALSE, + NULL); + + plugin->priv->search_context = + g_object_new (GTK_SOURCE_TYPE_SEARCH_CONTEXT, + "buffer", plugin->priv->buffer, + "highlight", FALSE, + "match-style", plugin->priv->style, + "settings", search_settings, + NULL); + + g_object_unref (search_settings); + } + else + { + search_settings = + gtk_source_search_context_get_settings (plugin->priv->search_context); + } + + text = gtk_text_iter_get_slice (&start, &end); + + gtk_source_search_settings_set_search_text (search_settings, text); + + gtk_source_search_context_set_highlight (plugin->priv->search_context, TRUE); + + return G_SOURCE_REMOVE; +} + +static void +gedit_quick_highlight_plugin_queue_update (GeditQuickHighlightPlugin *plugin) +{ + g_return_if_fail (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + if (plugin->priv->queued_highlight != 0) + { + return; + } + + plugin->priv->queued_highlight = + gdk_threads_add_idle_full (G_PRIORITY_LOW, + gedit_quick_highlight_plugin_highlight_worker, + g_object_ref (plugin), + g_object_unref); +} + +static void +gedit_quick_highlight_plugin_notify_weak_buffer_cb (gpointer data, + GObject *where_the_object_was) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (data); + + g_assert (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + plugin->priv->style_scheme_handler_id = 0; + plugin->priv->buffer = NULL; +} + +static void +gedit_quick_highlight_plugin_unref_weak_buffer (GeditQuickHighlightPlugin *plugin) +{ + g_return_if_fail (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + if (plugin->priv->buffer == NULL) + { + return; + } + + if (plugin->priv->delete_range_handler_id > 0) + { + g_signal_handler_disconnect (plugin->priv->buffer, + plugin->priv->delete_range_handler_id); + plugin->priv->delete_range_handler_id = 0; + } + + if (plugin->priv->mark_set_handler_id > 0) + { + g_signal_handler_disconnect (plugin->priv->buffer, + plugin->priv->mark_set_handler_id); + plugin->priv->mark_set_handler_id = 0; + } + + if (plugin->priv->style_scheme_handler_id > 0) + { + g_signal_handler_disconnect (plugin->priv->buffer, + plugin->priv->style_scheme_handler_id); + plugin->priv->style_scheme_handler_id = 0; + } + + g_object_weak_unref (G_OBJECT (plugin->priv->buffer), + gedit_quick_highlight_plugin_notify_weak_buffer_cb, + plugin); + + plugin->priv->buffer = NULL; +} + +static void +gedit_quick_highlight_plugin_set_buffer (GeditQuickHighlightPlugin *plugin, + GeditDocument *buffer) +{ + g_return_if_fail (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + g_return_if_fail (GEDIT_IS_DOCUMENT (buffer)); + + if (plugin->priv->buffer == buffer) + { + return; + } + + gedit_debug (DEBUG_PLUGINS); + + gedit_quick_highlight_plugin_unref_weak_buffer (plugin); + + plugin->priv->buffer = buffer; + + if (plugin->priv->buffer != NULL) + { + g_object_weak_ref (G_OBJECT (plugin->priv->buffer), + gedit_quick_highlight_plugin_notify_weak_buffer_cb, + plugin); + + plugin->priv->style_scheme_handler_id = + g_signal_connect (plugin->priv->buffer, + "notify::style-scheme", + G_CALLBACK (gedit_quick_highlight_plugin_notify_style_scheme_cb), + plugin); + + plugin->priv->mark_set_handler_id = + g_signal_connect (plugin->priv->buffer, + "mark-set", + G_CALLBACK (gedit_quick_highlight_plugin_mark_set_cb), + plugin); + + plugin->priv->delete_range_handler_id = + g_signal_connect (plugin->priv->buffer, + "delete-range", + G_CALLBACK (gedit_quick_highlight_plugin_delete_range_cb), + plugin); + + plugin->priv->insert_mark = + gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (plugin->priv->buffer)); + + gedit_quick_highlight_plugin_load_style (plugin); + + gedit_quick_highlight_plugin_queue_update (plugin); + } +} + +static void +gedit_quick_highlight_plugin_mark_set_cb (GtkTextBuffer *textbuffer, + GtkTextIter *location, + GtkTextMark *mark, + gpointer user_data) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (user_data); + + g_assert (GEDIT_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + if G_LIKELY (mark != plugin->priv->insert_mark) + { + return; + } + + gedit_quick_highlight_plugin_queue_update (plugin); +} + +static void +gedit_quick_highlight_plugin_delete_range_cb (GtkTextBuffer *textbuffer, + GtkTextIter *start, + GtkTextIter *end, + gpointer user_data) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (user_data); + + g_assert (GEDIT_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + gedit_quick_highlight_plugin_queue_update (plugin); +} + +static void +gedit_quick_highlight_plugin_notify_style_scheme_cb (GObject *object, + GParamSpec *pspec, + gpointer user_data) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (user_data); + + g_assert (GEDIT_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + gedit_quick_highlight_plugin_load_style (plugin); +} + +static void +gedit_quick_highlight_plugin_dispose (GObject *object) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (object); + + g_clear_object (&plugin->priv->search_context); + + gedit_quick_highlight_plugin_unref_weak_buffer (plugin); + + g_clear_object (&plugin->priv->view); + + G_OBJECT_CLASS (gedit_quick_highlight_plugin_parent_class)->dispose (object); +} + +static void +gedit_quick_highlight_plugin_finalize (GObject *object) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (object); + + g_clear_object (&plugin->priv->style); + + G_OBJECT_CLASS (gedit_quick_highlight_plugin_parent_class)->finalize (object); +} + +static void +gedit_quick_highlight_plugin_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (object); + + switch (prop_id) + { + case PROP_VIEW: + g_value_set_object (value, plugin->priv->view); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_quick_highlight_plugin_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (object); + + switch (prop_id) + { + case PROP_VIEW: + plugin->priv->view = GEDIT_VIEW (g_value_dup_object (value)); + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +gedit_quick_highlight_plugin_class_init (GeditQuickHighlightPluginClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = gedit_quick_highlight_plugin_dispose; + object_class->finalize = gedit_quick_highlight_plugin_finalize; + object_class->set_property = gedit_quick_highlight_plugin_set_property; + object_class->get_property = gedit_quick_highlight_plugin_get_property; + + g_object_class_override_property (object_class, PROP_VIEW, "view"); +} + +static void +gedit_quick_highlight_plugin_class_finalize (GeditQuickHighlightPluginClass *klass) +{ +} + +static void +gedit_quick_highlight_plugin_init (GeditQuickHighlightPlugin *plugin) +{ + plugin->priv = gedit_quick_highlight_plugin_get_instance_private (plugin); +} + +static void +gedit_quick_highlight_plugin_activate (GeditViewActivatable *activatable) +{ + GeditQuickHighlightPlugin *plugin; + GtkTextBuffer *buffer; + + gedit_debug (DEBUG_PLUGINS); + + plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (activatable); + + plugin->priv->buffer_handler_id = + g_signal_connect (plugin->priv->view, + "notify::buffer", + G_CALLBACK (gedit_quick_highlight_plugin_notify_buffer_cb), + plugin); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (plugin->priv->view)); + + gedit_quick_highlight_plugin_set_buffer (plugin, GEDIT_DOCUMENT (buffer)); +} + +static void +gedit_quick_highlight_plugin_deactivate (GeditViewActivatable *activatable) +{ + GeditQuickHighlightPlugin *plugin; + + gedit_debug (DEBUG_PLUGINS); + + plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (activatable); + + g_clear_object (&plugin->priv->style); + g_clear_object (&plugin->priv->search_context); + + gedit_quick_highlight_plugin_unref_weak_buffer (plugin); + + if (plugin->priv->view != NULL && plugin->priv->buffer_handler_id > 0) + { + g_signal_handler_disconnect (plugin->priv->view, + plugin->priv->buffer_handler_id); + plugin->priv->buffer_handler_id = 0; + } +} + +static void +gedit_quick_highlight_plugin_notify_buffer_cb (GObject *object, + GParamSpec *pspec, + gpointer user_data) +{ + GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (user_data); + GtkTextBuffer *buffer; + + g_assert (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin)); + + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (plugin->priv->view)); + + gedit_quick_highlight_plugin_set_buffer (plugin, GEDIT_DOCUMENT (buffer)); +} + +static void +gedit_view_activatable_iface_init (GeditViewActivatableInterface *iface) +{ + iface->activate = gedit_quick_highlight_plugin_activate; + iface->deactivate = gedit_quick_highlight_plugin_deactivate; +} + +G_MODULE_EXPORT void +peas_register_types (PeasObjectModule *module) +{ + gedit_quick_highlight_plugin_register_type (G_TYPE_MODULE (module)); + + peas_object_module_register_extension_type (module, + GEDIT_TYPE_VIEW_ACTIVATABLE, + GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN); +} + +/* ex:set ts=8 noet: */ diff --git a/plugins/quickhighlight/gedit-quick-highlight-plugin.h b/plugins/quickhighlight/gedit-quick-highlight-plugin.h new file mode 100644 index 0000000..3e668d0 --- /dev/null +++ b/plugins/quickhighlight/gedit-quick-highlight-plugin.h @@ -0,0 +1,63 @@ +/* + * gedit-quick-highlight-plugin.h + * + * Copyright (C) 2018 Martin Blanchard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + * + */ + +#ifndef GEDIT_QUICK_HIGHLIGHT_PLUGIN_H +#define GEDIT_QUICK_HIGHLIGHT_PLUGIN_H + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN (gedit_quick_highlight_plugin_get_type ()) +#define GEDIT_QUICK_HIGHLIGHT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN, GeditQuickHighlightPlugin)) +#define GEDIT_QUICK_HIGHLIGHT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN, GeditQuickHighlightPluginClass)) +#define GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN)) +#define GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN)) +#define GEDIT_QUICK_HIGHLIGHT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_QUICK_HIGHLIGHT_PLUGIN, GeditQuickHighlightPluginClass)) + +typedef struct _GeditQuickHighlightPlugin GeditQuickHighlightPlugin; +typedef struct _GeditQuickHighlightPluginPrivate GeditQuickHighlightPluginPrivate; +typedef struct _GeditQuickHighlightPluginClass GeditQuickHighlightPluginClass; + +struct _GeditQuickHighlightPlugin +{ + PeasExtensionBase parent_instance; + + /* < private > */ + GeditQuickHighlightPluginPrivate *priv; +}; + +struct _GeditQuickHighlightPluginClass +{ + PeasExtensionBaseClass parent_class; +}; + +GType gedit_quick_highlight_plugin_get_type (void) G_GNUC_CONST; + +G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); + +G_END_DECLS + +#endif /* GEDIT_QUICK_HIGHLIGHT_PLUGIN_H */ + +/* ex:set ts=8 noet: */ diff --git a/plugins/quickhighlight/meson.build b/plugins/quickhighlight/meson.build new file mode 100644 index 0000000..18fb417 --- /dev/null +++ b/plugins/quickhighlight/meson.build @@ -0,0 +1,32 @@ +libquickhighlight_sources = files( + 'gedit-quick-highlight-plugin.c', +) + +libquickhighlight_deps = [ + libgedit_dep, +] + +libquickhighlight_sha = shared_module( + 'quickhighlight', + sources: libquickhighlight_sources, + include_directories: root_include_dir, + dependencies: libquickhighlight_deps, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ), + name_suffix: module_suffix, +) + +custom_target( + 'quickhighlight.plugin', + input: 'quickhighlight.plugin.desktop.in', + output: 'quickhighlight.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) diff --git a/plugins/quickhighlight/quickhighlight.plugin.desktop.in b/plugins/quickhighlight/quickhighlight.plugin.desktop.in new file mode 100644 index 0000000..abb1baf --- /dev/null +++ b/plugins/quickhighlight/quickhighlight.plugin.desktop.in @@ -0,0 +1,8 @@ +[Plugin] +Module=quickhighlight +IAge=3 +Name=Quick Highlight +Description=Highlights every occurrences of selected text. +Authors=Martin Blanchard +Copyright=Copyright © 2016 Martin Blanchard +Website=http://www.gedit.org diff --git a/plugins/quickopen/meson.build b/plugins/quickopen/meson.build new file mode 100644 index 0000000..c5a2680 --- /dev/null +++ b/plugins/quickopen/meson.build @@ -0,0 +1,19 @@ +install_subdir( + 'quickopen', + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) + +custom_target( + 'quickopen.plugin', + input: 'quickopen.plugin.desktop.in', + output: 'quickopen.plugin', + command: msgfmt_plugin_cmd, + install: true, + install_dir: join_paths( + pkglibdir, + 'plugins', + ) +) diff --git a/plugins/quickopen/quickopen.plugin.desktop.in b/plugins/quickopen/quickopen.plugin.desktop.in new file mode 100644 index 0000000..80fa03b --- /dev/null +++ b/plugins/quickopen/quickopen.plugin.desktop.in @@ -0,0 +1,12 @@ +[Plugin] +Loader=python3 +Module=quickopen +IAge=3 +Name=Quick Open +Description=Quickly open files. +# TRANSLATORS: Do NOT translate or transliterate this text! +# This is an icon file name. +Icon=document-open +Authors=Jesse van den Kieboom +Copyright=Copyright © 2009 Jesse van den Kieboom +Website=http://www.gedit.org diff --git a/plugins/quickopen/quickopen/__init__.py b/plugins/quickopen/quickopen/__init__.py new file mode 100644 index 0000000..3f708a3 --- /dev/null +++ b/plugins/quickopen/quickopen/__init__.py @@ -0,0 +1,193 @@ +# -*- coding: utf-8 -*- + +# Copyright (C) 2009 - Jesse van den Kieboom +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +import os + +import gi +gi.require_version('Gedit', '3.0') +gi.require_version('Gtk', '3.0') +from gi.repository import GObject, Gio, GLib, Gtk, Gedit + +from .popup import Popup +from .virtualdirs import RecentDocumentsDirectory +from .virtualdirs import CurrentDocumentsDirectory + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class QuickOpenAppActivatable(GObject.Object, Gedit.AppActivatable): + app = GObject.Property(type=Gedit.App) + + def __init__(self): + GObject.Object.__init__(self) + + def do_activate(self): + self.app.add_accelerator("O", "win.quickopen", None) + + self.menu_ext = self.extend_menu("file-section") + item = Gio.MenuItem.new(_("Quick Open…"), "win.quickopen") + self.menu_ext.prepend_menu_item(item) + + def do_deactivate(self): + self.app.remove_accelerator("win.quickopen", None) + + +class QuickOpenPlugin(GObject.Object, Gedit.WindowActivatable): + __gtype_name__ = "QuickOpenPlugin" + + window = GObject.Property(type=Gedit.Window) + + def __init__(self): + GObject.Object.__init__(self) + + def do_activate(self): + self._popup_size = (450, 300) + self._popup = None + + action = Gio.SimpleAction(name="quickopen") + action.connect('activate', self.on_quick_open_activate) + self.window.add_action(action) + + def do_deactivate(self): + self.window.remove_action("quickopen") + + def get_popup_size(self): + return self._popup_size + + def set_popup_size(self, size): + self._popup_size = size + + def _create_popup(self): + paths = [] + + # Open documents + paths.append(CurrentDocumentsDirectory(self.window)) + + doc = self.window.get_active_document() + + # Current document directory + if doc and doc.get_file().is_local(): + gfile = doc.get_file().get_location() + paths.append(gfile.get_parent()) + + # File browser root directory + bus = self.window.get_message_bus() + + if bus.is_registered('/plugins/filebrowser', 'get_root'): + msg = bus.send_sync('/plugins/filebrowser', 'get_root') + + if msg: + gfile = msg.props.location + + if gfile and gfile.is_native(): + paths.append(gfile) + + # Recent documents + paths.append(RecentDocumentsDirectory()) + + # Local bookmarks + for path in self._local_bookmarks(): + paths.append(path) + + # Desktop directory + desktopdir = self._desktop_dir() + + if desktopdir: + paths.append(Gio.file_new_for_path(desktopdir)) + + # Home directory + paths.append(Gio.file_new_for_path(os.path.expanduser('~'))) + + self._popup = Popup(self.window, paths, self.on_activated) + self.window.get_group().add_window(self._popup) + + self._popup.set_default_size(*self.get_popup_size()) + self._popup.set_transient_for(self.window) + self._popup.set_position(Gtk.WindowPosition.CENTER_ON_PARENT) + self._popup.connect('destroy', self.on_popup_destroy) + + def _local_bookmarks(self): + filename = os.path.expanduser('~/.config/gtk-3.0/bookmarks') + + if not os.path.isfile(filename): + return [] + + paths = [] + + for line in open(filename, 'r', encoding='utf-8'): + uri = line.strip().split(" ")[0] + f = Gio.file_new_for_uri(uri) + + if f.is_native(): + try: + info = f.query_info(Gio.FILE_ATTRIBUTE_STANDARD_TYPE, + Gio.FileQueryInfoFlags.NONE, + None) + + if info and info.get_file_type() == Gio.FileType.DIRECTORY: + paths.append(f) + except: + pass + + return paths + + def _desktop_dir(self): + config = os.getenv('XDG_CONFIG_HOME') + + if not config: + config = os.path.expanduser('~/.config') + + config = os.path.join(config, 'user-dirs.dirs') + desktopdir = None + + if os.path.isfile(config): + for line in open(config, 'r', encoding='utf-8'): + line = line.strip() + + if line.startswith('XDG_DESKTOP_DIR'): + parts = line.split('=', 1) + desktopdir = parts[1].strip('"').strip("'") + desktopdir = os.path.expandvars(desktopdir) + break + + if not desktopdir: + desktopdir = os.path.expanduser('~/Desktop') + + return desktopdir + + # Callbacks + def on_quick_open_activate(self, action, parameter, user_data=None): + if not self._popup: + self._create_popup() + + self._popup.show() + + def on_popup_destroy(self, popup, user_data=None): + self.set_popup_size(popup.get_final_size()) + + self._popup = None + + def on_activated(self, gfile, user_data=None): + Gedit.commands_load_location(self.window, gfile, None, -1, -1) + return True + +# ex:ts=4:et: diff --git a/plugins/quickopen/quickopen/popup.py b/plugins/quickopen/quickopen/popup.py new file mode 100644 index 0000000..50d957e --- /dev/null +++ b/plugins/quickopen/quickopen/popup.py @@ -0,0 +1,617 @@ +# -*- coding: utf-8 -*- + +# Copyright (C) 2009 - Jesse van den Kieboom +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +import os +import platform +import functools +import fnmatch + +from gi.repository import GLib, Gio, GObject, Pango, Gtk, Gdk, Gedit +import xml.sax.saxutils +from .virtualdirs import VirtualDirectory + +try: + import gettext + gettext.bindtextdomain('gedit') + gettext.textdomain('gedit') + _ = gettext.gettext +except: + _ = lambda s: s + +class Popup(Gtk.Dialog): + __gtype_name__ = "QuickOpenPopup" + + def __init__(self, window, paths, handler): + Gtk.Dialog.__init__(self, + title=_('Quick Open'), + transient_for=window, + modal=True, + destroy_with_parent=True) + + self.add_button(_("_Cancel"), Gtk.ResponseType.CANCEL) + self._open_button = self.add_button(_("_Open"), + Gtk.ResponseType.ACCEPT) + + self._handler = handler + self._build_ui() + + self._size = (0, 0) + self._dirs = [] + self._cache = {} + self._theme = None + self._cursor = None + self._shift_start = None + + self._busy_cursor = Gdk.Cursor(Gdk.CursorType.WATCH) + + accel_group = Gtk.AccelGroup() + accel_group.connect(Gdk.KEY_l, + Gdk.ModifierType.CONTROL_MASK, + 0, + self.on_focus_entry) + + self.add_accel_group(accel_group) + + unique = [] + + for path in paths: + if not path.get_uri() in unique: + self._dirs.append(path) + unique.append(path.get_uri()) + + self.connect('show', self.on_show) + + def get_final_size(self): + return self._size + + def _build_ui(self): + self.set_border_width(5) + vbox = self.get_content_area() + vbox.set_spacing(2) + action_area = self.get_action_area() + action_area.set_border_width(5) + action_area.set_spacing(6) + + self._entry = Gtk.SearchEntry() + self._entry.set_placeholder_text(_('Type to search…')) + + self._entry.connect('changed', self.on_changed) + self._entry.connect('key-press-event', self.on_key_press_event) + + sw = Gtk.ScrolledWindow() + sw.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) + sw.set_shadow_type(Gtk.ShadowType.OUT) + + tv = Gtk.TreeView() + tv.set_headers_visible(False) + + self._store = Gtk.ListStore(Gio.Icon, + str, + GObject.Object, + Gio.FileType) + tv.set_model(self._store) + + self._treeview = tv + tv.connect('row-activated', self.on_row_activated) + + column = Gtk.TreeViewColumn() + + renderer = Gtk.CellRendererPixbuf() + column.pack_start(renderer, False) + column.add_attribute(renderer, "gicon", 0) + + renderer = Gtk.CellRendererText() + column.pack_start(renderer, True) + column.add_attribute(renderer, "markup", 1) + + column.set_cell_data_func(renderer, self.on_cell_data_cb, None) + + tv.append_column(column) + sw.add(tv) + + selection = tv.get_selection() + selection.connect('changed', self.on_selection_changed) + selection.set_mode(Gtk.SelectionMode.MULTIPLE) + + vbox.pack_start(self._entry, False, False, 0) + vbox.pack_start(sw, True, True, 0) + + lbl = Gtk.Label() + lbl.set_halign(Gtk.Align.START) + lbl.set_ellipsize(Pango.EllipsizeMode.MIDDLE) + self._info_label = lbl + + vbox.pack_start(lbl, False, False, 0) + + # Initial selection + self.on_selection_changed(tv.get_selection()) + vbox.show_all() + + def on_cell_data_cb(self, column, cell, model, piter, user_data): + path = model.get_path(piter) + + if self._cursor and path == self._cursor.get_path(): + style = self._treeview.get_style() + bg = style.bg[Gtk.StateType.PRELIGHT] + + cell.set_property('cell-background-gdk', bg) + cell.set_property('style', Pango.Style.ITALIC) + else: + cell.set_property('cell-background-set', False) + cell.set_property('style-set', False) + + def _is_text(self, entry): + content_type = entry.get_content_type() + + if content_type is None or Gio.content_type_is_unknown(content_type): + return True + + if platform.system() != 'Windows': + if Gio.content_type_is_a(content_type, 'text/plain'): + return True + else: + if Gio.content_type_is_a(content_type, 'text'): + return True + + # This covers a rare case in which on Windows the PerceivedType + # is not set to "text" but the Content Type is set to text/plain + if Gio.content_type_get_mime_type(content_type) == 'text/plain': + return True + + return False + + def _list_dir(self, gfile): + entries = [] + + try: + ret = gfile.enumerate_children("standard::*", + Gio.FileQueryInfoFlags.NONE, + None) + except GLib.Error as e: + pass + + if isinstance(ret, Gio.FileEnumerator): + while True: + entry = ret.next_file(None) + + if not entry: + break + + if not entry.get_is_backup(): + entries.append((gfile.get_child(entry.get_name()), entry)) + else: + entries = ret + + children = [] + + for entry in entries: + file_type = entry[1].get_file_type() + + if file_type == Gio.FileType.REGULAR: + if not self._is_text(entry[1]): + continue + + children.append((entry[0], + entry[1].get_name(), + file_type, + entry[1].get_icon())) + + return children + + def _compare_entries(self, a, b, lpart): + if lpart in a: + if lpart in b: + if a.index(lpart) < b.index(lpart): + return -1 + elif a.index(lpart) > b.index(lpart): + return 1 + else: + return 0 + else: + return -1 + elif lpart in b: + return 1 + else: + return 0 + + def _match_glob(self, s, glob): + if glob: + glob += '*' + + return fnmatch.fnmatch(s, glob) + + def do_search_dir(self, parts, d): + if not parts or not d: + return [] + + if d in self._cache: + entries = self._cache[d] + else: + entries = self._list_dir(d) + entries.sort(key=lambda x: x[1].lower()) + self._cache[d] = entries + + found = [] + newdirs = [] + + lpart = parts[0].lower() + + for entry in entries: + if not entry: + continue + + lentry = entry[1].lower() + + if not lpart or lpart in lentry or self._match_glob(lentry, lpart): + if entry[2] == Gio.FileType.DIRECTORY: + if len(parts) > 1: + newdirs.append(entry[0]) + else: + found.append(entry) + elif entry[2] == Gio.FileType.REGULAR and \ + (not lpart or len(parts) == 1): + found.append(entry) + + found.sort(key=functools.cmp_to_key(lambda a, b: self._compare_entries(a[1].lower(), b[1].lower(), lpart))) + + if lpart == '..': + newdirs.append(d.get_parent()) + + for dd in newdirs: + found.extend(self.do_search_dir(parts[1:], dd)) + + return found + + def _replace_insensitive(self, s, find, rep): + out = '' + l = s.lower() + find = find.lower() + last = 0 + + if len(find) == 0: + return xml.sax.saxutils.escape(s) + + while True: + m = l.find(find, last) + + if m == -1: + break + else: + out += xml.sax.saxutils.escape(s[last:m]) + rep % (xml.sax.saxutils.escape(s[m:m + len(find)]),) + last = m + len(find) + + return out + xml.sax.saxutils.escape(s[last:]) + + def make_markup(self, parts, path): + out = [] + + for i in range(0, len(parts)): + out.append(self._replace_insensitive(path[i], parts[i], "%s")) + + return os.sep.join(out) + + def _get_icon(self, f): + query = f.query_info(Gio.FILE_ATTRIBUTE_STANDARD_ICON, + Gio.FileQueryInfoFlags.NONE, + None) + + if not query: + return None + else: + return query.get_icon() + + def _make_parts(self, parent, child, pp): + parts = [] + + # We went from parent, to child, using pp + idx = len(pp) - 1 + + while idx >= 0: + if pp[idx] == '..': + parts.insert(0, '..') + else: + parts.insert(0, child.get_basename()) + child = child.get_parent() + + idx -= 1 + + return parts + + def normalize_relative(self, parts): + if not parts: + return [] + + out = self.normalize_relative(parts[:-1]) + + if parts[-1] == '..': + if not out or (out[-1] == '..') or len(out) == 1: + out.append('..') + else: + del out[-1] + else: + out.append(parts[-1]) + + return out + + def _append_to_store(self, item): + uri = item[2].get_uri() + + if uri not in self._stored_items: + self._store.append(item) + self._stored_items.add(uri) + + def _clear_store(self): + self._store.clear() + self._stored_items = set() + + def _show_virtuals(self): + for d in self._dirs: + if isinstance(d, VirtualDirectory): + for entry in d.enumerate_children("standard::*", 0, None): + self._append_to_store((entry[1].get_icon(), + xml.sax.saxutils.escape(entry[1].get_name()), + entry[0], + entry[1].get_file_type())) + + def _set_busy(self, busy): + if busy: + self.get_window().set_cursor(self._busy_cursor) + else: + self.get_window().set_cursor(None) + Gdk.flush() + + def _remove_cursor(self): + if self._cursor: + path = self._cursor.get_path() + self._cursor = None + + self._store.row_changed(path, self._store.get_iter(path)) + + def do_search(self): + self._set_busy(True) + self._remove_cursor() + + text = self._entry.get_text().strip() + self._clear_store() + + if text == '': + self._show_virtuals() + else: + parts = self.normalize_relative(text.split(os.sep)) + files = [] + + for d in self._dirs: + for entry in self.do_search_dir(parts, d): + pathparts = self._make_parts(d, entry[0], parts) + self._append_to_store((entry[3], + self.make_markup(parts, pathparts), + entry[0], + entry[2])) + + piter = self._store.get_iter_first() + if piter: + path = self._store.get_path(piter) + self._treeview.get_selection().select_path(path) + + self._set_busy(False) + + # FIXME: override doesn't work anymore for some reason, if we override + # the widget is not realized + def on_show(self, data=None): + # Gtk.Window.do_show(self) + + self._entry.grab_focus() + self._entry.set_text("") + + self.do_search() + + def on_changed(self, editable): + self.do_search() + self.on_selection_changed(self._treeview.get_selection()) + + def _shift_extend(self, towhere): + selection = self._treeview.get_selection() + + if not self._shift_start: + model, rows = selection.get_selected_rows() + start = rows[0] + + self._shift_start = Gtk.TreeRowReference.new(self._store, start) + else: + start = self._shift_start.get_path() + + selection.unselect_all() + selection.select_range(start, towhere) + + def _select_index(self, idx, hasctrl, hasshift): + path = (idx,) + + if not (hasctrl or hasshift): + self._treeview.get_selection().unselect_all() + + if hasshift: + self._shift_extend(path) + else: + self._shift_start = None + + if not hasctrl: + self._treeview.get_selection().select_path(path) + + self._treeview.scroll_to_cell(path, None, True, 0.5, 0) + self._remove_cursor() + + if hasctrl or hasshift: + self._cursor = Gtk.TreeRowReference(self._store, path) + + piter = self._store.get_iter(path) + self._store.row_changed(path, piter) + + def _move_selection(self, howmany, hasctrl, hasshift): + num = self._store.iter_n_children(None) + + if num == 0: + return True + + # Test for cursor + path = None + + if self._cursor: + path = self._cursor.get_path() + else: + model, rows = self._treeview.get_selection().get_selected_rows() + + if len(rows) == 1: + path = rows[0] + + if not path: + if howmany > 0: + self._select_index(0, hasctrl, hasshift) + else: + self._select_index(num - 1, hasctrl, hasshift) + else: + idx = path.get_indices()[0] + + if idx + howmany < 0: + self._select_index(0, hasctrl, hasshift) + elif idx + howmany >= num: + self._select_index(num - 1, hasctrl, hasshift) + else: + self._select_index(idx + howmany, hasctrl, hasshift) + + return True + + def _direct_file(self): + uri = self._entry.get_text() + gfile = Gio.file_new_for_uri(uri) + + if Gedit.utils_is_valid_location(gfile) or \ + (os.path.isabs(uri) and gfile.query_exists()): + return gfile + else: + return None + + def _activate(self): + model, rows = self._treeview.get_selection().get_selected_rows() + ret = True + + for row in rows: + s = model.get_iter(row) + info = model.get(s, 2, 3) + + if info[1] != Gio.FileType.DIRECTORY: + ret = ret and self._handler(info[0]) + else: + text = self._entry.get_text() + + for i in range(len(text) - 1, -1, -1): + if text[i] == os.sep: + break + + self._entry.set_text(os.path.join(text[:i], os.path.basename(info[0].get_uri())) + os.sep) + self._entry.set_position(-1) + self._entry.grab_focus() + return True + + if rows and ret: + # We destroy the popup in an idle callback to work around a crash that happens with + # GTK_IM_MODULE=xim. See https://bugzilla.gnome.org/show_bug.cgi?id=737711 . + GLib.idle_add(self.destroy) + + if not rows: + gfile = self._direct_file() + + if gfile and self._handler(gfile): + GLib.idle_add(self.destroy) + else: + ret = False + else: + ret = False + + return ret + + def toggle_cursor(self): + if not self._cursor: + return + + path = self._cursor.get_path() + selection = self._treeview.get_selection() + + if selection.path_is_selected(path): + selection.unselect_path(path) + else: + selection.select_path(path) + + def on_key_press_event(self, widget, event): + move_mapping = { + Gdk.KEY_Down: 1, + Gdk.KEY_Up: -1, + Gdk.KEY_Page_Down: 5, + Gdk.KEY_Page_Up: -5 + } + + if event.keyval == Gdk.KEY_Escape: + self.destroy() + return True + elif event.keyval in move_mapping: + return self._move_selection(move_mapping[event.keyval], event.state & Gdk.ModifierType.CONTROL_MASK, event.state & Gdk.ModifierType.SHIFT_MASK) + elif event.keyval in [Gdk.KEY_Return, Gdk.KEY_KP_Enter, Gdk.KEY_Tab, Gdk.KEY_ISO_Left_Tab]: + return self._activate() + elif event.keyval == Gdk.KEY_space and event.state & Gdk.ModifierType.CONTROL_MASK: + self.toggle_cursor() + + return False + + def on_row_activated(self, view, path, column): + self._activate() + + def do_response(self, response): + if response != Gtk.ResponseType.ACCEPT or not self._activate(): + self.destroy() + + def do_configure_event(self, event): + if self.get_realized(): + alloc = self.get_allocation() + self._size = (alloc.width, alloc.height) + + return Gtk.Dialog.do_configure_event(self, event) + + def on_selection_changed(self, selection): + model, rows = selection.get_selected_rows() + + gfile = None + fname = None + + if not rows: + gfile = self._direct_file() + elif len(rows) == 1: + gfile = model.get(model.get_iter(rows[0]), 2)[0] + else: + fname = '' + + if gfile: + if gfile.is_native(): + fname = xml.sax.saxutils.escape(gfile.get_path()) + else: + fname = xml.sax.saxutils.escape(gfile.get_uri()) + + self._open_button.set_sensitive(fname is not None) + self._info_label.set_markup(fname or '') + + def on_focus_entry(self, group, accel, keyval, modifier): + self._entry.grab_focus() + +# ex:ts=4:et: diff --git a/plugins/quickopen/quickopen/virtualdirs.py b/plugins/quickopen/quickopen/virtualdirs.py new file mode 100644 index 0000000..6792f9b --- /dev/null +++ b/plugins/quickopen/quickopen/virtualdirs.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- + +# Copyright (C) 2009 - Jesse van den Kieboom +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +from gi.repository import Gio, Gtk + + +class VirtualDirectory(object): + def __init__(self, name): + self._name = name + self._children = [] + + def get_uri(self): + return 'virtual://' + self._name + + def get_parent(self): + return None + + def enumerate_children(self, attr, flags, callback): + return self._children + + def append(self, child): + if not child.is_native(): + return + + try: + info = child.query_info("standard::*", + Gio.FileQueryInfoFlags.NONE, + None) + + if info: + self._children.append((child, info)) + except Exception as e: + pass + + +class RecentDocumentsDirectory(VirtualDirectory): + def __init__(self, maxitems=200): + VirtualDirectory.__init__(self, 'recent') + + self._maxitems = maxitems + self.fill() + + def fill(self): + manager = Gtk.RecentManager.get_default() + + items = manager.get_items() + items.sort(key=lambda a: a.get_visited(), reverse=True) + + added = 0 + + for item in items: + if item.has_group('gedit'): + self.append(Gio.file_new_for_uri(item.get_uri())) + added += 1 + + if added >= self._maxitems: + break + + +class CurrentDocumentsDirectory(VirtualDirectory): + def __init__(self, window): + VirtualDirectory.__init__(self, 'documents') + + self.fill(window) + + def fill(self, window): + for doc in window.get_documents(): + location = doc.get_file().get_location() + + if location: + self.append(location) + +# ex:ts=4:et: diff --git a/plugins/snippets/data/c.xml b/plugins/snippets/data/c.xml new file mode 100644 index 0000000..f46ceed --- /dev/null +++ b/plugins/snippets/data/c.xml @@ -0,0 +1,281 @@ + + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * ${2} is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with ${2}. If not, see . + */ + +$0]]> + gpl + GPL License + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ${2} is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with ${2}. If not, see . + */ + +$0]]> + lgpl + LGPL License + + + + do + do .. while + + + + for + for loop + + + + while + while loop + + + + if + if + + + + elif + else if + + + + else + else + + + +$0]]> + Inc + #include <..> + + + + inc + #include ".." + + + + main + main + + + + struct + struct + + + + #endif + period]]> + + + + td + typedef + + + + +typedef struct _$<[1]: return camel_str >Private +{ +} $<[1]: return camel_str >Private; + +G_DEFINE_TYPE_WITH_PRIVATE ($<[1]: return camel_str >, $<[1]: return low_str >, ${2:G_TYPE_OBJECT}) + +static void +$<[1]: return low_str>_finalize (GObject *object) +{ + G_OBJECT_CLASS ($<[1]: return low_str >_parent_class)->finalize (object); +} + +static void +$<[1]: return low_str >_class_init ($<[1]: return camel_str >Class *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->finalize = $<[1]: return low_str >_finalize; +} + +static void +$<[1]: return low_str >_init ($<[1]: return camel_str> *self) +{ +} + +$<[1]: return camel_str > * +$<[1]: return low_str >_new () +{ + return g_object_new ($<[1]: return type_str >, NULL); +}]]> + gobject + GObject template + + + +G_DEFINE_INTERFACE ($<[1]: return camel_str >, $<[1]: return low_str >, ${2:G_TYPE_OBJECT}) + +/* Default implementation */ +static const gchar * +$<[1]: return low_str>_example_method_default ($<[1]: return camel_str > *self) +{ + g_return_val_if_reached (NULL); +} + +static void +$<[1]: return low_str>_init ($<[1]: return camel_str >Iface *iface) +{ + static gboolean initialized = FALSE; + + iface->example_method = $<[1]: return low_str>_example_method_default; + + if (!initialized) + { + initialized = TRUE; + } +} + +/* + * This is an method example for an interface + */ +const gchar * +$<[1]: return low_str>_example_method ($<[1]: return camel_str > *self) +{ + g_return_val_if_fail ($<[1]: return up_str> (self), NULL); + return $<[1]: return up_str>_GET_INTERFACE (self)->example_method (self); +}]]> + ginterface + GObject interface + + + + +struct _$<[1]: return camel_str > +{ +}; + +G_DEFINE_BOXED_TYPE ($<[1]: return camel_str >, $<[1]: return low_str >, $<[1]: return low_str >_${2:copy}, $<[1]: return low_str >_${3:free}) + +$<[1]: return camel_str > * +$<[1]: return low_str >_${2:copy} ($<[1]: return camel_str > *${4:boxed_name}) +{ + +} + +void +$<[1]: return low_str >_${3:free} ($<[1]: return camel_str > *${4:boxed_name}) +{ + +}]]> + gboxed + GBoxed template + + diff --git a/plugins/snippets/data/chdr.xml b/plugins/snippets/data/chdr.xml new file mode 100644 index 0000000..2ce94d7 --- /dev/null +++ b/plugins/snippets/data/chdr.xml @@ -0,0 +1,258 @@ + + + + + Header Include-Guard + once + + + + #include ".." + inc + + + +$0]]> + #include <..> + Inc + + + + namespace .. + namespace + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * ${2} is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with ${2}. If not, see . + */ + +$0]]> + gpl + GPL License + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ${2} is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with ${2}. If not, see . + */ + +$0]]> + lgpl + LGPL License + + + + td + typedef + + + + class .. + class + + + + struct + struct + + + ]]> + template <typename ..> + template + + + +#include <${2:glib-object.h}> + +G_BEGIN_DECLS + +#define $<[1]: return type_str > ($<[1]: return $1.lower() >_get_type ()) +G_DECLARE_DERIVABLE_TYPE ($<[1]: return camel_str >, $<[1]: return $1.lower() >, $<[1]: return module >, $<[1]: return name >, ${3:GObject}) + +struct _$<[1]: return camel_str >Class +{ + $3Class parent_class; +}; + +$<[1]: return camel_str > *$< return $1.lower()>_new (void); + +$0 +G_END_DECLS + +#endif /* $1_H */]]> + gobject + GObject template + + + + +G_BEGIN_DECLS + +$< +global camel_str +components = $1.split('_') +type_str = '_'.join([components[0], 'TYPE'] + components[1:]) +is_str = '_'.join([components[0], 'IS'] + components[1:]) +camel_str = '' + +for t in components: + camel_str += t.capitalize() + +items = [ \ +['#define ' + type_str, '(' + $1.lower() + '_get_type ())'], \ +['#define ' + $1 + '(obj)', '(G_TYPE_CHECK_INSTANCE_CAST ((obj), ' + type_str + ', ' + camel_str + '))'], \ +['#define ' + is_str + '(obj)', '(G_TYPE_CHECK_INSTANCE_TYPE ((obj), ' + type_str + '))'], \ +['#define ' + $1 + '_GET_INTERFACE(obj)', '(G_TYPE_INSTANCE_GET_INTERFACE ((obj), ' + type_str + ', ' + camel_str + 'Iface))'] +] + +return align(items) > + +$<[1]: +items = [ \ +['typedef struct _' + camel_str, camel_str + ';'], \ +['typedef struct _' + camel_str + 'Iface', camel_str + 'Iface;'], \ +] + +return align(items) > + +struct _$<[1]: return camel_str >Iface +{ + ${7:GTypeInterface} parent; + + const gchar * (*example_method) ($<[1]: return camel_str > *self); +}; + +GType $< return $1.lower() + '_get_type' > (void) G_GNUC_CONST; + +const gchar *$< return $1.lower()>_example_method ($<[1]: return camel_str > *self); +$0 +G_END_DECLS + +#endif /* $1_H */]]> + ginterface + GObject interface + + + + +G_BEGIN_DECLS + +$< +global camel_str +components = $1.split('_') +type_str = '_'.join([components[0], 'TYPE'] + components[1:]) +is_str = '_'.join([components[0], 'IS'] + components[1:]) +camel_str = '' + +for t in components: + camel_str += t.capitalize() + +items = [ \ +['#define ' + type_str, '(' + $1.lower() + '_get_type ())'], \ +['#define ' + $1 + '(obj)', '((' + camel_str + ' *)obj)'], \ +['#define ' + $1 + '_CONST(obj)', '((' + camel_str + ' const *)obj)'], \ +] + +return align(items) > + +$<[1]: +items = [ \ +['typedef struct _' + camel_str, camel_str + ';'], \ +] + +return align(items) > + +GType $< return $1.lower() + '_get_type' > (void) G_GNUC_CONST; +$<[1]: return camel_str > *$< return $1.lower()>_${3:copy} ($<[1]: return camel_str > *${4:boxed_name}); +void $< return $1.lower()>_${5:free} ($<[1]: return camel_str > *${4:boxed_name}); + +$0 +G_END_DECLS + +#endif /* $1_H */]]> + gboxed + GBoxed template + + diff --git a/plugins/snippets/data/cpp.xml b/plugins/snippets/data/cpp.xml new file mode 100644 index 0000000..1d4c31c --- /dev/null +++ b/plugins/snippets/data/cpp.xml @@ -0,0 +1,180 @@ + + + + + main + main + + + + for loop + for + + + + $1.begin + beginend + + + + do .. while + do + + + + period]]> + #endif + + + + if .. + if + + + + #include ".." + inc + + + +$0]]> + #include <..> + Inc + + + + namespace .. + namespace + + + v; +if (FILE* fp = fopen (${1:"filename"}, "r")) +{ + uint8_t buf[1024]; + while (size_t len = fread (buf, 1, sizeof (buf), fp)) + v.insert (v.end(), buf, buf + len); + fclose(fp); +} +$0]]> + Read File Into Vector + readfile + + + ${3:map}; +$0]]> + std::map + map + + + ${2:v}; +$0]]> + std::vector + vector + + + + struct .. + struct + + + ]]> + template <typename ..> + template + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * ${2} is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with ${2}. If not, see . + */ + + $0]]> + gpl + GPL License + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ${2} is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with ${2}. If not, see . + */ + + $0]]> + lgpl + LGPL License + + + + td + typedef + + + + while + while + + diff --git a/plugins/snippets/data/css.xml b/plugins/snippets/data/css.xml new file mode 100644 index 0000000..babca91 --- /dev/null +++ b/plugins/snippets/data/css.xml @@ -0,0 +1,557 @@ + + + + + background-attachment: scroll/fixed + background + + + + background-color: color-hex + background + + + + background-color: color-name + background + + + + background-color: color-rgb + background + + + + background: color image repeat attachment position + background + + + + background-color: transparent + background + + + + background-image: none + background + + + + background-image: url + background + + + + background-position: position + background + + + + background-repeat: r/r-x/r-y/n-r + background + + + + border-bottom-color: size style color + border + + + + border-bottom: size style color + border + + + + border-bottom-style: size style color + border + + + + border-bottom-width: size style color + border + + + + border-color: color + border + + + + border-left-color: color + border + + + + border-left: size style color + border + + + + border-left-style: style + border + + + + border-left-width: size + border + + + + border-right-color: color + border + + + + border-right: size style color + border + + + + border-right-style: style + border + + + + border-right-width: size + border + + + + border: size style color + border + + + + border-style: style + border + + + + border-top-color: color + border + + + + border-top: size style color + border + + + + border-top-style: style + border + + + + border-top-width: size + border + + + + border-width: width + border + + + + clear: value + clear + + + + color: color-hex + color + + + + color: color-name + color + + + + color: color-rgb + color + + + + cursor: type + cursor + + + + cursor: url + clear + + + + direction: ltr|rtl + direction + + + + display: block + display + + + + display: common-types + display + + + + display: inline + display + + + + display: table-types + display + + + + float: left/right/none + float + + + + font-family: family + font + + + + font: size font + font + + + + font-size: size + font + + + + font-style: normal/italic/oblique + font + + + + font: style variant weight size/line-height font-family + font + + + + font-variant: normal/small-caps + font + + + + font-weight: weight + font + + + + letter-spacing: length-em + letter + + + + letter-spacing: length-px + letter + + + + list-style-image: url + list + + + + list-style-position: pos + list + + + + list-style-type: asian + list + + + + list-style-type: marker + list + + + + list-style-type: numeric + list + + + + list-style-type: other + list + + + + list-style: type position image + list + + + + list-style-type: roman-alpha-greek + list + + + + margin: all + margin + + + + margin-bottom: length + margin + + + + margin-left: length + margin + + + + margin-right: length + margin + + + + margin-top: length + margin + + + + margin: T R B L + margin + + + + margin: V H + margin + + + + marker-offset: auto + marker + + + + marker-offset: length + marker + + + + overflow: type + overflow + + + + padding: all + padding + + + + padding-bottom: length + margin + + + + padding-left: length + margin + + + + padding-right: length + margin + + + + padding-top: length + margin + + + + padding: T R B L + padding + + + + padding: V H + padding + + + + position: type + position + + + + properties { } + { + + + + text-align: left/center/right + text + + + + text-decoration: none/underline/overline/line-through/blink + text + + + + text-indent: length + text + + + + text-shadow: color-hex x y blur + text + + + + text-shadow: color-rgb x y blur + text + + + + text-shadow: none + text + + + + text-transform: capitalize/upper/lower + text + + + + text-transform: none + text + + + + vertical-align: type + vertical + + + + visibility: type + visibility + + + + white-space: normal/pre/nowrap + white + + + + word-spacing: length + word + + + + word-spacing: normal + word + + + + z-index: index + z + + diff --git a/plugins/snippets/data/docbook.xml b/plugins/snippets/data/docbook.xml new file mode 100644 index 0000000..d2a07de --- /dev/null +++ b/plugins/snippets/data/docbook.xml @@ -0,0 +1,2645 @@ + + + + + + ${1}]]> + abbrev + abbrev + + + + ${1} +]]> + abstract + abstract + + + ${1}]]> + accel + accel + + + + ${1} +]]> + ackno + ackno + + + ${1}]]> + acronym + acronym + + + ${1}]]> + action + action + + + + ${1} +]]> + address + address + + + + ${1} +]]> + affiliation + affiliation + + + ${1}]]> + alt + alt + + + ]]> + anchor + anchor + + + + ${1} +]]> + answer + answer + + + + ${2} +]]> + appendix + appendix + + + + ${1} +]]> + appendixinfo + appendixinfo + + + ${1}]]> + application + application + + + ]]> + area + area + + + + ${3} +]]> + areaset + areaset + + + + ${2} +]]> + areaspec + areaspec + + + ${1}]]> + arg + arg + + + + ${2} +]]> + article + article + + + + ${1} +]]> + articleinfo + articleinfo + + + ${1}]]> + artpagenums + artpagenums + + + ${1}]]> + attribution + attribution + + + ]]> + audiodata + audiodata + + + + ${1} +]]> + audioobject + audioobject + + + + ${1} +]]> + author + author + + + + ${1} +]]> + authorblurb + authorblurb + + + + ${1} +]]> + authorgroup + authorgroup + + + ${1}]]> + authorinitials + authorinitials + + + ]]> + beginpage + beginpage + + + + ${1} +]]> + bibliocoverage + bibliocoverage + + + + ${1} +]]> + bibliodiv + bibliodiv + + + + ${1} +]]> + biblioentry + biblioentry + + + + ${1} +]]> + bibliography + bibliography + + + + ${1} +]]> + bibliographyinfo + bibliographyinfo + + + ${2}]]> + biblioid + biblioid + + + + ${1} +]]> + bibliolist + bibliolist + + + + ${1} +]]> + bibliomisc + bibliomisc + + + + ${1} +]]> + bibliomixed + bibliomixed + + + + ${2} +]]> + bibliomset + bibliomset + + + ]]> + biblioref + biblioref + + + ${3}]]> + bibliorelation + bibliorelation + + + + ${2} +]]> + biblioset + biblioset + + + ${2}]]> + bibliosource + bibliosource + + + + ${1} +]]> + blockinfo + blockinfo + + + + ${1} +]]> + blockquote + blockquote + + + + ${2} +]]> + book + book + + + + ${1} +]]> + bookinfo + bookinfo + + + ${2}]]> + bridgehead + bridgehead + + + + ${2} +]]> + callout + callout + + + + ${1} +]]> + calloutlist + calloutlist + + + + ${1} +]]> + caption + caption + + + + ${1} +]]> + caution + caution + + + + ${2} +]]> + chapter + chapter + + + + ${1} +]]> + chapterinfo + chapterinfo + + + ${1}]]> + citation + citation + + + ${2}]]> + citebiblioid + citebiblioid + + + ${1}]]> + citerefentry + citerefentry + + + ${2}]]> + citetitle + citetitle + + + ${1}]]> + city + city + + + ${1}]]> + classname + classname + + + + ${3} +]]> + classsynopsis + classsynopsis + + + + ${1} +]]> + classsynopsisinfo + classsynopsisinfo + + + + ${1} +]]> + cmdsynopsis + cmdsynopsis + + + ]]> + co + co + + + ${2}]]> + code + code + + + + ${1} +]]> + col + col + + + + ${1} +]]> + colgroup + colgroup + + + + ${1} +]]> + collab + collab + + + ${1}]]> + collabname + collabname + + + + ${1} +]]> + colophon + colophon + + + ]]> + colspec + colspec + + + ${1}]]> + command + command + + + ${1}]]> + computeroutput + computeroutput + + + ${1}]]> + confdates + confdates + + + + ${1} +]]> + confgroup + confgroup + + + ${1}]]> + confnum + confnum + + + ${1}]]> + confsponsor + confsponsor + + + ${1}]]> + conftitle + conftitle + + + ${1}]]> + constant + constant + + + + ${2} +]]> + constructorsynopsis + constructorsynopsis + + + ${1}]]> + contractnum + contractnum + + + ${1}]]> + contractsponsor + contractsponsor + + + ${1}]]> + contrib + contrib + + + + ${1} +]]> + copyright + copyright + + + ]]> + coref + coref + + + ${1}]]> + corpauthor + corpauthor + + + ${1}]]> + corpcredit + corpcredit + + + ${1}]]> + corpname + corpname + + + ${1}]]> + country + country + + + ${2}]]> + database + database + + + ${1}]]> + date + date + + + + ${1} +]]> + dedication + dedication + + + + ${2} +]]> + destructorsynopsis + destructorsynopsis + + + ${1}]]> + edition + edition + + + + ${1} +]]> + editor + editor + + + ${1}]]> + email + email + + + ${1}]]> + emphasis + emphasis + + + ${1}]]> + entry + entry + + + + ${2} +]]> + entrytbl + entrytbl + + + ${1}]]> + envar + envar + + + + ${1} +]]> + epigraph + epigraph + + + + ${1} +]]> + equation + equation + + + ${1}]]> + errorcode + errorcode + + + ${1}]]> + errorname + errorname + + + ${1}]]> + errortext + errortext + + + ${1}]]> + errortype + errortype + + + + ${2} +]]> + example + example + + + ${1}]]> + exceptionname + exceptionname + + + ${1}]]> + fax + fax + + + + ${2} +]]> + fieldsynopsis + fieldsynopsis + + + + ${2} +]]> + figure + figure + + + ${1}]]> + filename + filename + + + ${1}]]> + firstname + firstname + + + ${1}]]> + firstterm + firstterm + + + + ${1} +]]> + footnote + footnote + + + ]]> + footnoteref + footnoteref + + + ${1}]]> + foreignphrase + foreignphrase + + + + ${1} +]]> + formalpara + formalpara + + + ${1}]]> + funcdef + funcdef + + + ${1}]]> + funcparams + funcparams + + + + ${1} +]]> + funcprototype + funcprototype + + + + ${1} +]]> + funcsynopsis + funcsynopsis + + + + ${1} +]]> + funcsynopsisinfo + funcsynopsisinfo + + + ${1}]]> + function + function + + + + ${2} +]]> + glossary + glossary + + + + ${1} +]]> + glossaryinfo + glossaryinfo + + + + ${1} +]]> + glossdef + glossdef + + + + ${1} +]]> + glossdiv + glossdiv + + + + ${1} +]]> + glossentry + glossentry + + + + ${1} +]]> + glosslist + glosslist + + + ${2}]]> + glosssee + glosssee + + + ${2}]]> + glossseealso + glossseealso + + + ${1}]]> + glossterm + glossterm + + + ]]> + graphic + graphic + + + + ${1} +]]> + graphicco + graphicco + + + + ${1} +]]> + group + group + + + ${1}]]> + guibutton + guibutton + + + ${1}]]> + guiicon + guiicon + + + ${1}]]> + guilabel + guilabel + + + ${1}]]> + guimenu + guimenu + + + ${1}]]> + guimenuitem + guimenuitem + + + ${1}]]> + guisubmenu + guisubmenu + + + ${1}]]> + hardware + hardware + + + + ${1} +]]> + highlights + highlights + + + ${1}]]> + holder + holder + + + ${1}]]> + honorific + honorific + + + ]]> + imagedata + imagedata + + + + ${1} +]]> + imageobject + imageobject + + + + ${1} +]]> + imageobjectco + imageobjectco + + + + ${1} +]]> + important + important + + + + ${1} +]]> + index + index + + + + ${1} +]]> + indexdiv + indexdiv + + + + ${1} +]]> + indexentry + indexentry + + + + ${1} +]]> + indexinfo + indexinfo + + + + ${1} +]]> + indexterm + indexterm + + + + ${1} +]]> + informalequation + informalequation + + + + ${1} +]]> + informalexample + informalexample + + + + ${1} +]]> + informalfigure + informalfigure + + + + ${1} +]]> + informaltable + informaltable + + + ${1}]]> + initializer + initializer + + + + ${1} +]]> + inlineequation + inlineequation + + + ]]> + inlinegraphic + inlinegraphic + + + + ${1} +]]> + inlinemediaobject + inlinemediaobject + + + ${1}]]> + interface + interface + + + ${1}]]> + interfacename + interfacename + + + ${1}]]> + invpartnumber + invpartnumber + + + ${1}]]> + isbn + isbn + + + ${1}]]> + issn + issn + + + ${1}]]> + issuenum + issuenum + + + + ${1} +]]> + itemizedlist + itemizedlist + + + + ${1} +]]> + itermset + itermset + + + ${1}]]> + jobtitle + jobtitle + + + ${1}]]> + keycap + keycap + + + ${1}]]> + keycode + keycode + + + ${1}]]> + keycombo + keycombo + + + ${1}]]> + keysym + keysym + + + ${1}]]> + keyword + keyword + + + + ${1} +]]> + keywordset + keywordset + + + ${1}]]> + label + label + + + + ${1} +]]> + legalnotice + legalnotice + + + ${1}]]> + lineage + lineage + + + ${1}]]> + lineannotation + lineannotation + + + ${2}]]> + link + link + + + + ${1} +]]> + listitem + listitem + + + ${1}]]> + literal + literal + + + ${1}]]> + literallayout + literallayout + + + + ${1} +]]> + lot + lot + + + + ${2} +]]> + lotentry + lotentry + + + ${1}]]> + manvolnum + manvolnum + + + ${1}]]> + markup + markup + + + ${1}]]> + mathphrase + mathphrase + + + ${1}]]> + medialabel + medialabel + + + + ${1} +]]> + mediaobject + mediaobject + + + + ${1} +]]> + mediaobjectco + mediaobjectco + + + + ${1} +]]> + member + member + + + ${1}]]> + menuchoice + menuchoice + + + ${1}]]> + methodname + methodname + + + ${1}]]> + methodparam + methodparam + + + + ${2} +]]> + methodsynopsis + methodsynopsis + + + ${2}]]> + modespec + modespec + + + ${1}]]> + modifier + modifier + + + ${1}]]> + mousebutton + mousebutton + + + + ${1} +]]> + msg + msg + + + ${1}]]> + msgaud + msgaud + + + + ${1} +]]> + msgentry + msgentry + + + + ${1} +]]> + msgexplan + msgexplan + + + + ${1} +]]> + msginfo + msginfo + + + ${1}]]> + msglevel + msglevel + + + + ${1} +]]> + msgmain + msgmain + + + ${1}]]> + msgorig + msgorig + + + + ${1} +]]> + msgrel + msgrel + + + + ${1} +]]> + msgset + msgset + + + + ${1} +]]> + msgsub + msgsub + + + + ${1} +]]> + msgtext + msgtext + + + + ${1} +]]> + note + note + + + + ${1} +]]> + objectinfo + objectinfo + + + ${2}]]> + olink + olink + + + ${1}]]> + ooclass + ooclass + + + ${1}]]> + ooexception + ooexception + + + ${1}]]> + oointerface + oointerface + + + ${1}]]> + option + option + + + ${1}]]> + optional + optional + + + + ${1} +]]> + orderedlist + orderedlist + + + ${1}]]> + orgdiv + orgdiv + + + ${1}]]> + orgname + orgname + + + ${1}]]> + otheraddr + otheraddr + + + + ${1} +]]> + othercredit + othercredit + + + ${1}]]> + othername + othername + + + ${1}]]> + package + package + + + ${1}]]> + pagenums + pagenums + + + + ${1} +]]> + para + para + + + ${1}]]> + paramdef + paramdef + + + ${2}]]> + parameter + parameter + + + + ${2} +]]> + part + part + + + + ${1} +]]> + partinfo + partinfo + + + + ${1} +]]> + partintro + partintro + + + + ${1} +]]> + personblurb + personblurb + + + ${1}]]> + personname + personname + + + ${1}]]> + phone + phone + + + ${1}]]> + phrase + phrase + + + ${1}]]> + pob + pob + + + ${1}]]> + postcode + postcode + + + + ${2} +]]> + preface + preface + + + + ${1} +]]> + prefaceinfo + prefaceinfo + + + ${1}]]> + primary + primary + + + ${1}]]> + primaryie + primaryie + + + + ${1} +]]> + printhistory + printhistory + + + + ${1} +]]> + procedure + procedure + + + ${2}]]> + productname + productname + + + ${1}]]> + productnumber + productnumber + + + ${2}]]> + programlisting + programlisting + + + + ${1} +]]> + programlistingco + programlistingco + + + ${1}]]> + prompt + prompt + + + ${1}]]> + property + property + + + ${1}]]> + pubdate + pubdate + + + + ${1} +]]> + publisher + publisher + + + ${1}]]> + publishername + publishername + + + ${1}]]> + pubsnumber + pubsnumber + + + + ${1} +]]> + qandadiv + qandadiv + + + + ${1} +]]> + qandaentry + qandaentry + + + + ${1} +]]> + qandaset + qandaset + + + + ${1} +]]> + question + question + + + ${1}]]> + quote + quote + + + ${1}]]> + refclass + refclass + + + ${1}]]> + refdescriptor + refdescriptor + + + + ${1} +]]> + refentry + refentry + + + + ${1} +]]> + refentryinfo + refentryinfo + + + ${1}]]> + refentrytitle + refentrytitle + + + + ${1} +]]> + reference + reference + + + + ${1} +]]> + referenceinfo + referenceinfo + + + + ${1} +]]> + refmeta + refmeta + + + + ${1} +]]> + refmiscinfo + refmiscinfo + + + ${1}]]> + refname + refname + + + + ${1} +]]> + refnamediv + refnamediv + + + ${1}]]> + refpurpose + refpurpose + + + + ${1} +]]> + refsect1 + refsect1 + + + + ${1} +]]> + refsect1info + refsect1info + + + + ${1} +]]> + refsect2 + refsect2 + + + + ${1} +]]> + refsect2info + refsect2info + + + + ${1} +]]> + refsect3 + refsect3 + + + + ${1} +]]> + refsect3info + refsect3info + + + + ${1} +]]> + refsection + refsection + + + + ${1} +]]> + refsectioninfo + refsectioninfo + + + + ${1} +]]> + refsynopsisdiv + refsynopsisdiv + + + + ${1} +]]> + refsynopsisdivinfo + refsynopsisdivinfo + + + ${1}]]> + releaseinfo + releaseinfo + + + ${1}]]> + remark + remark + + + ${1}]]> + replaceable + replaceable + + + ${1}]]> + returnvalue + returnvalue + + + + ${1} +]]> + revdescription + revdescription + + + + ${1} +]]> + revhistory + revhistory + + + + ${1} +]]> + revision + revision + + + ${1}]]> + revnumber + revnumber + + + ${1}]]> + revremark + revremark + + + + ${1} +]]> + row + row + + + ]]> + sbr + sbr + + + ${1}]]> + screen + screen + + + + ${1} +]]> + screenco + screenco + + + ${1}]]> + screeninfo + screeninfo + + + + ${1} +]]> + screenshot + screenshot + + + ${1}]]> + secondary + secondary + + + ${1}]]> + secondaryie + secondaryie + + + + ${2} +]]> + sect1 + sect1 + + + + ${1} +]]> + sect1info + sect1info + + + + ${2} +]]> + sect2 + sect2 + + + + ${1} +]]> + sect2info + sect2info + + + + ${2} +]]> + sect3 + sect3 + + + + ${1} +]]> + sect3info + sect3info + + + + ${2} +]]> + sect4 + sect4 + + + + ${1} +]]> + sect4info + sect4info + + + + ${2} +]]> + sect5 + sect5 + + + + ${1} +]]> + sect5info + sect5info + + + + ${2} +]]> + section + section + + + + ${1} +]]> + sectioninfo + sectioninfo + + + ${1}]]> + see + see + + + ${1}]]> + seealso + seealso + + + ${1}]]> + seealsoie + seealsoie + + + ${1}]]> + seeie + seeie + + + ${1}]]> + seg + seg + + + + ${1} +]]> + seglistitem + seglistitem + + + + ${1} +]]> + segmentedlist + segmentedlist + + + ${1}]]> + segtitle + segtitle + + + ${1}]]> + seriesvolnums + seriesvolnums + + + + ${1} +]]> + set + set + + + + ${1} +]]> + setindex + setindex + + + + ${1} +]]> + setindexinfo + setindexinfo + + + + ${1} +]]> + setinfo + setinfo + + + ${1}]]> + sgmltag + sgmltag + + + ${1}]]> + shortaffil + shortaffil + + + ${1}]]> + shortcut + shortcut + + + + ${1} +]]> + sidebar + sidebar + + + + ${1} +]]> + sidebarinfo + sidebarinfo + + + + ${1} +]]> + simpara + simpara + + + + ${1} +]]> + simplelist + simplelist + + + + ${1} +]]> + simplemsgentry + simplemsgentry + + + + ${2} +]]> + simplesect + simplesect + + + ]]> + spanspec + spanspec + + + ${1}]]> + state + state + + + + ${1} +]]> + step + step + + + + ${1} +]]> + stepalternatives + stepalternatives + + + ${1}]]> + street + street + + + ${1}]]> + structfield + structfield + + + ${1}]]> + structname + structname + + + + ${1} +]]> + subject + subject + + + + ${1} +]]> + subjectset + subjectset + + + ${1}]]> + subjectterm + subjectterm + + + ${1}]]> + subscript + subscript + + + + ${1} +]]> + substeps + substeps + + + ${1}]]> + subtitle + subtitle + + + ${1}]]> + superscript + superscript + + + ${1}]]> + surname + surname + + + ${1}]]> + symbol + symbol + + + + ${2} +]]> + synopfragment + synopfragment + + + + ${2} +]]> + synopfragmentref + synopfragmentref + + + ${1}]]> + synopsis + synopsis + + + ${1}]]> + systemitem + systemitem + + + + ${2} +]]> + table + table + + + + ${1} +]]> + task + task + + + + ${1} +]]> + taskprerequisites + taskprerequisites + + + + ${1} +]]> + taskrelated + taskrelated + + + + ${1} +]]> + tasksummary + tasksummary + + + + ${1} +]]> + tbody + tbody + + + + ${1} +]]> + td + td + + + ${1}]]> + term + term + + + ${1}]]> + termdef + termdef + + + ${1}]]> + tertiary + tertiary + + + ${1}]]> + tertiaryie + tertiaryie + + + ]]> + textdata + textdata + + + + ${1} +]]> + textobject + textobject + + + + ${1} +]]> + tfoot + tfoot + + + + ${2} +]]> + tgroup + tgroup + + + + ${1} +]]> + th + th + + + + ${1} +]]> + thead + thead + + + + ${1} +]]> + tip + tip + + + ${1}]]> + title + title + + + ${1}]]> + titleabbrev + titleabbrev + + + + ${1} +]]> + toc + toc + + + ${2}]]> + tocback + tocback + + + + ${1} +]]> + tocchap + tocchap + + + ${2}]]> + tocentry + tocentry + + + ${2}]]> + tocfront + tocfront + + + + ${1} +]]> + toclevel1 + toclevel1 + + + + ${1} +]]> + toclevel2 + toclevel2 + + + + ${1} +]]> + toclevel3 + toclevel3 + + + + ${1} +]]> + toclevel4 + toclevel4 + + + + ${1} +]]> + toclevel5 + toclevel5 + + + + ${1} +]]> + tocpart + tocpart + + + ${1}]]> + token + token + + + + ${1} +]]> + tr + tr + + + ${2}]]> + trademark + trademark + + + ${1}]]> + type + type + + + ${2}]]> + ulink + ulink + + + ${1}]]> + uri + uri + + + ${1}]]> + userinput + userinput + + + ]]> + varargs + varargs + + + + ${1} +]]> + variablelist + variablelist + + + + ${1} +]]> + varlistentry + varlistentry + + + ${1}]]> + varname + varname + + + ]]> + videodata + videodata + + + + ${1} +]]> + videoobject + videoobject + + + ]]> + void + void + + + ${1}]]> + volumenum + volumenum + + + + ${1} +]]> + warning + warning + + + ${1}]]> + wordasword + wordasword + + + ]]> + xref + xref + + + ${1}]]> + year + year + + + + ${1}]]> + bold + emphasis, role bold + + + ${1}]]> + strong + emphasis, role strong + + + ${1}]]> + devicefile + filename, class devicefile + + + ${1}]]> + directory + filename, class directory + + + ${1}]]> + extension + filename, class extension + + + ${1}]]> + headerfile + filename, class headerfile + + + ${1}]]> + libraryfile + filename, class libraryfile + + + ${1}]]> + partition + filename, class partition + + + ${1}]]> + symlink + filename, class symlink + + + ${1}]]> + cartridge + medialabel, class cartridge + + + ${1}]]> + cdrom + medialabel, class cdrom + + + ${1}]]> + disk + medialabel, class disk + + + ${1}]]> + tape + medialabel, class tape + + + ${1}]]> + daemon + systemitem, class daemon + + + ${1}]]> + domainname + systemitem, class domainname + + + ${1}]]> + etheraddress + systemitem, class etheraddress + + + ${1}]]> + eventhandler + systemitem, class eventhandler + + + ${1}]]> + event + systemitem, class event + + + ${1}]]> + filesystem + systemitem, class filesystem + + + ${1}]]> + fqdomainname + systemitem, class fqdomainname + + + ${1}]]> + groupname + systemitem, class groupname + + + ${1}]]> + ipaddress + systemitem, class ipaddress + + + ${1}]]> + library + systemitem, class library + + + ${1}]]> + macro + systemitem, class macro + + + ${1}]]> + netmask + systemitem, class netmask + + + ${1}]]> + newsgroup + systemitem, class newsgroup + + + ${1}]]> + osname + systemitem, class osname + + + ${1}]]> + process + systemitem, class process + + + ${1}]]> + protocol + systemitem, class protocol + + + ${1}]]> + resource + systemitem, class resource + + + ${1}]]> + server + systemitem, class server + + + ${1}]]> + service + systemitem, class service + + + ${1}]]> + systemname + systemitem, class systemname + + + ${1}]]> + username + systemitem, class username + + + + ]]> + include + xi:include + + + + ${1} +]]> + fallback + xi:fallback + + + ]]> + xml + xml + + + +%BOOK_ENTITIES; +]>]]> + doctype + DOCTYPE + + + ]]> + entity + ENTITY + + diff --git a/plugins/snippets/data/fortran.xml b/plugins/snippets/data/fortran.xml new file mode 100644 index 0000000..205abe6 --- /dev/null +++ b/plugins/snippets/data/fortran.xml @@ -0,0 +1,164 @@ + + + + + c + character + + + + cl + close + + + + do + do ... end do + + + + func + function + + + + ifel + if ... else ... end if + + + + if + if ... end if + + + + i + integer + + + + ida + integerdimalloc + + + + id + integerdim + + + + l + logical + + + + mod + module + + + + op + open + + + + prog + program + + + + re + read + + + + r + real + + + + rda + realdimalloc + + + + rd + realdim + + + + rec + recursivfunc + + + + sel + select + + + + sub + subroutine + + + + t + type + + + + dow + while + + + + wr + write + + diff --git a/plugins/snippets/data/global.xml b/plugins/snippets/data/global.xml new file mode 100644 index 0000000..afe3c0b --- /dev/null +++ b/plugins/snippets/data/global.xml @@ -0,0 +1,2 @@ + + diff --git a/plugins/snippets/data/haskell.xml b/plugins/snippets/data/haskell.xml new file mode 100644 index 0000000..54a8e7d --- /dev/null +++ b/plugins/snippets/data/haskell.xml @@ -0,0 +1,14 @@ + + + + + module + mod + + + ${1:t}]]> + \t -> t + \ + + diff --git a/plugins/snippets/data/html.xml b/plugins/snippets/data/html.xml new file mode 100644 index 0000000..dd9faea --- /dev/null +++ b/plugins/snippets/data/html.xml @@ -0,0 +1,252 @@ + + + + +]]> + HTML5 Doctype + doctype + + + +]]> + XHTML — 1.0 Frameset + doctype + + + +]]> + XHTML — 1.0 Strict + doctype + + + +]]> + XHTML — 1.0 Transitional + doctype + + + +]]> + XHTML — 1.1 + doctype + + + +]]> + HTML — 4.0 Transitional + doctype + + + +]]> + HTML — 4.01 Strict + doctype + + + +$0]]> + author + Author + + + " /> +$0]]> + date + Date + + + ${2:$GEDIT_SELECTED_TEXT} +]]> + l]]> + Wrap Selection as Link + ref + + + $GEDIT_SELECTED_TEXT]]> + w]]> + Wrap Selection in Open/Close Tag + + + ${3:email me} $0]]> + Mail Anchor + mailto + + + $0]]> + Base + base + + + + $0 +]]> + Body + body + + + +$0]]> + space]]> + Br + + + $4 +]]> + button + Button + + + + ${0:$GEDIT_SELECTED_TEXT} +]]> + Div + div + + + $0 +]]> + file + File + + + + $0 + +

+]]>
+ Form + form +
+ + ${3:$GEDIT_SELECTED_TEXT} +$0]]> + Heading + h + + + + + ${1:Page Title} + $0 +]]> + Head + head + + + $0]]> + img + Image + + + ]]> + Input + input + + + $1$0]]> + li + List Element + + + +$0]]> + Link + link + + + +$0]]> + Meta + meta + + + + space]]> + Non-Breaking Space + + + $1$0]]> + noscript + Noscript + + + $2$0]]> + option + Option + + + + $0 +]]> + Script + script + + + ]]> + Script With External Source + scriptsrc + + + + + $4 +$0 +]]> + select + Select + + + $2$0]]> + span + Span + + + + $0 + +]]> + Style + style + + + + ${4:Header} + ${5:Data} + $0 +]]> + Table + table + + + $0]]> + Text Area + textarea + + + ${1:Page Title} +$0]]> + Title + title + + + $1 +$0]]> + tr + Table Row + + + +
  • $1
  • +
  • $2
  • + $3 + +$0]]>
    + ul + Unordered List +
    +
    diff --git a/plugins/snippets/data/idl.xml b/plugins/snippets/data/idl.xml new file mode 100644 index 0000000..2b6ef30 --- /dev/null +++ b/plugins/snippets/data/idl.xml @@ -0,0 +1,49 @@ + + + + + mod + Module + + + + if + Interface + + + + str + Struct + + + + exc + Exception + + + ]]> + seq + Sequence + + + ${0:newtype};]]> + tseq + Typedef Sequence + + diff --git a/plugins/snippets/data/java.xml b/plugins/snippets/data/java.xml new file mode 100644 index 0000000..f7f11c0 --- /dev/null +++ b/plugins/snippets/data/java.xml @@ -0,0 +1,91 @@ + + + + + const def + cd + + + + if .. else + ife + + + + if + if + + + + logger + log + + + + try .. catch .. finally + tcf + + + + while statement + while + + + + main + main + + + + System.out.println + sout + + + + t]]> + Wrap Selection in Try/Catch + + + + tc + try .. catch + + diff --git a/plugins/snippets/data/javascript.xml b/plugins/snippets/data/javascript.xml new file mode 100644 index 0000000..b55c5b3 --- /dev/null +++ b/plugins/snippets/data/javascript.xml @@ -0,0 +1,10 @@ + + + + + function + fun + + diff --git a/plugins/snippets/data/lang/snippets.lang b/plugins/snippets/data/lang/snippets.lang new file mode 100644 index 0000000..7b755cd --- /dev/null +++ b/plugins/snippets/data/lang/snippets.lang @@ -0,0 +1,160 @@ + + +