This patch implements the page label functionality in a similar way as Adobe Reader. For documents with page labels, if a non-existent page label is entered we'll try to fallback to the page number instead. The patch also includes a preference (`disablePageLabels`), to make it easy to opt-out of using page labels if the user/implementor so wishes. The way that `get/set currentPageLabel` is implemented in `PDFViewer`, is as wrappers for the corresponding `get/set currentPageNumber` functions, since that seemed like the cleanest solution. The page labels are purposely *only* added to the page controls in the viewer UI, and not stored in e.g. the `ViewHistory`. Since doing so would mean adding unnecessary code complexity, without any real added value, and would also mean delaying the inital loading of PDF documents. Note that this patch will ignore page labels if they are identical to standard page numbering, since in this case displaying the page labels adds no value (but only UI noise). The reason for handling this case specially, is that in practice a surprising number of PDF files include "pointless" page labels.
177 lines
7.0 KiB
Properties
177 lines
7.0 KiB
Properties
# Copyright 2012 Mozilla Foundation
|
||
#
|
||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
# you may not use this file except in compliance with the License.
|
||
# You may obtain a copy of the License at
|
||
#
|
||
# http://www.apache.org/licenses/LICENSE-2.0
|
||
#
|
||
# Unless required by applicable law or agreed to in writing, software
|
||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
# See the License for the specific language governing permissions and
|
||
# limitations under the License.
|
||
|
||
# Main toolbar buttons (tooltips and alt text for images)
|
||
previous.title=Föregående sida
|
||
previous_label=Föregående
|
||
next.title=Nästa sida
|
||
next_label=Nästa
|
||
|
||
# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
|
||
page.title=Sida
|
||
# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
|
||
# representing the total number of pages in the document.
|
||
of_pages=av {{pagesCount}}
|
||
# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
|
||
# will be replaced by a number representing the currently active visible page,
|
||
# respectively a number representing the total number of pages in the document.
|
||
page_of_pages=({{pageNumber}} av {{pagesCount}})
|
||
|
||
zoom_out.title=Zooma ut
|
||
zoom_out_label=Zooma ut
|
||
zoom_in.title=Zooma in
|
||
zoom_in_label=Zooma in
|
||
zoom.title=Zoom
|
||
presentation_mode.title=Byt till presentationsläge
|
||
presentation_mode_label=Presentationsläge
|
||
open_file.title=Öppna fil
|
||
open_file_label=Öppna
|
||
print.title=Skriv ut
|
||
print_label=Skriv ut
|
||
download.title=Hämta
|
||
download_label=Hämta
|
||
bookmark.title=Aktuell vy (kopiera eller öppna i nytt fönster)
|
||
bookmark_label=Aktuell vy
|
||
|
||
# Secondary toolbar and context menu
|
||
tools.title=Verktyg
|
||
tools_label=Verktyg
|
||
first_page.title=Gå till första sidan
|
||
first_page.label=Gå till första sidan
|
||
first_page_label=Gå till första sidan
|
||
last_page.title=Gå till sista sidan
|
||
last_page.label=Gå till sista sidan
|
||
last_page_label=Gå till sista sidan
|
||
page_rotate_cw.title=Rotera medurs
|
||
page_rotate_cw.label=Rotera medurs
|
||
page_rotate_cw_label=Rotera medurs
|
||
page_rotate_ccw.title=Rotera moturs
|
||
page_rotate_ccw.label=Rotera moturs
|
||
page_rotate_ccw_label=Rotera moturs
|
||
|
||
hand_tool_enable.title=Aktivera handverktyg
|
||
hand_tool_enable_label=Aktivera handverktyg
|
||
hand_tool_disable.title=Inaktivera handverktyg
|
||
hand_tool_disable_label=Inaktivera handverktyg
|
||
|
||
# Document properties dialog box
|
||
document_properties.title=Dokumentegenskaper…
|
||
document_properties_label=Dokumentegenskaper…
|
||
document_properties_file_name=Filnamn:
|
||
document_properties_file_size=Filstorlek:
|
||
# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
|
||
# will be replaced by the PDF file size in kilobytes, respectively in bytes.
|
||
document_properties_kb={{size_kb}} kB ({{size_b}} byte)
|
||
# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
|
||
# will be replaced by the PDF file size in megabytes, respectively in bytes.
|
||
document_properties_mb={{size_mb}} MB ({{size_b}} byte)
|
||
document_properties_title=Titel:
|
||
document_properties_author=Författare:
|
||
document_properties_subject=Ämne:
|
||
document_properties_keywords=Nyckelord:
|
||
document_properties_creation_date=Skapades:
|
||
document_properties_modification_date=Ändrades:
|
||
# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
|
||
# will be replaced by the creation/modification date, and time, of the PDF file.
|
||
document_properties_date_string={{date}}, {{time}}
|
||
document_properties_creator=Skapare:
|
||
document_properties_producer=PDF-producent:
|
||
document_properties_version=PDF-version:
|
||
document_properties_page_count=Sidantal:
|
||
document_properties_close=Stäng
|
||
|
||
# Tooltips and alt text for side panel toolbar buttons
|
||
# (the _label strings are alt text for the buttons, the .title strings are
|
||
# tooltips)
|
||
toggle_sidebar.title=Visa/dölj sidofält
|
||
toggle_sidebar_label=Visa/dölj sidofält
|
||
outline.title=Visa dokumentöversikt
|
||
outline_label=Dokumentöversikt
|
||
attachments.title=Visa Bilagor
|
||
attachments_label=Bilagor
|
||
thumbs.title=Visa miniatyrer
|
||
thumbs_label=Miniatyrer
|
||
findbar.title=Sök i dokument
|
||
findbar_label=Sök
|
||
|
||
# Thumbnails panel item (tooltip and alt text for images)
|
||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||
# number.
|
||
thumb_page_title=Sida {{page}}
|
||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||
# number.
|
||
thumb_page_canvas=Miniatyr av sida {{page}}
|
||
|
||
# Find panel button title and messages
|
||
find_label=Sök:
|
||
find_previous.title=Hitta föregående förekomst av frasen
|
||
find_previous_label=Föregående
|
||
find_next.title=Hitta nästa förekomst av frasen
|
||
find_next_label=Nästa
|
||
find_highlight=Markera alla
|
||
find_match_case_label=Matcha versal/gemen
|
||
find_reached_top=Nådde början av dokumentet, började från slutet
|
||
find_reached_bottom=Nådde slutet på dokumentet, började från början
|
||
find_not_found=Frasen hittades inte
|
||
|
||
# Error panel labels
|
||
error_more_info=Mer information
|
||
error_less_info=Mindre information
|
||
error_close=Stäng
|
||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||
# replaced by the PDF.JS version and build ID.
|
||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||
# english string describing the error.
|
||
error_message=Meddelande: {{message}}
|
||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||
# trace.
|
||
error_stack=Stack: {{stack}}
|
||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||
error_file=Fil: {{file}}
|
||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||
error_line=Rad: {{line}}
|
||
rendering_error=Ett fel uppstod vid visning av sidan.
|
||
|
||
# Predefined zoom values
|
||
page_scale_width=Sidbredd
|
||
page_scale_fit=Anpassa sida
|
||
page_scale_auto=Automatisk zoom
|
||
page_scale_actual=Verklig storlek
|
||
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
|
||
# numerical scale value.
|
||
page_scale_percent={{scale}}%
|
||
|
||
# Loading indicator messages
|
||
loading_error_indicator=Fel
|
||
loading_error=Ett fel uppstod vid laddning av PDF-filen.
|
||
invalid_file_error=Ogiltig eller korrupt PDF-fil.
|
||
missing_file_error=Saknad PDF-fil.
|
||
unexpected_response_error=Oväntat svar från servern.
|
||
|
||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||
text_annotation_type.alt=[{{type}}-annotering]
|
||
password_label=Skriv in lösenordet för att öppna PDF-filen.
|
||
password_invalid=Ogiltigt lösenord. Försök igen.
|
||
password_ok=OK
|
||
password_cancel=Avbryt
|
||
|
||
printing_not_supported=Varning: Utskrifter stöds inte helt av den här webbläsaren.
|
||
printing_not_ready=Varning: PDF:en är inte klar för utskrift.
|
||
web_fonts_disabled=Webbtypsnitt är inaktiverade: kan inte använda inbäddade PDF-typsnitt.
|
||
document_colors_not_allowed=PDF-dokument tillåts inte använda egna färger: "Låt sidor använda egna färger" är inaktiverat i webbläsaren.
|