diff options
author | Daniel Meyerholt <dxm523@googlemail.com> | 2014-06-21 16:44:00 +0200 |
---|---|---|
committer | Daniel Meyerholt <dxm523@googlemail.com> | 2014-06-21 16:44:00 +0200 |
commit | 1e92006a691e98a5fd712d1180d160c49200e041 (patch) | |
tree | a7d067f3c1af227bea8acafed3fece5f9c6337d8 | |
parent | dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3 (diff) | |
download | vdr-plugin-vdrrip-1e92006a691e98a5fd712d1180d160c49200e041.tar.gz vdr-plugin-vdrrip-1e92006a691e98a5fd712d1180d160c49200e041.tar.bz2 |
- Stole i18n Patch from e-tobi's deb-package
- Make gcc happy by using (char *) casts and inserting some paranthesis
-rwxr-xr-x | HISTORY | 6 | ||||
-rwxr-xr-x | Makefile | 30 | ||||
-rwxr-xr-x | a-tools.c | 2 | ||||
-rwxr-xr-x | codecs.c | 8 | ||||
-rwxr-xr-x | i18n.c | 1356 | ||||
-rwxr-xr-x | i18n.h | 10 | ||||
-rwxr-xr-x | menu-vdrrip.c | 10 | ||||
-rwxr-xr-x | vdrrip.c | 3 |
8 files changed, 45 insertions, 1380 deletions
@@ -136,3 +136,9 @@ VDR Plugin 'vdrrip' Revision History - use libdvdread's NEW_IFO_READ functions - fix compilation for gcc4.4 - Needs Project-X for demux. + +2014-06-21: Version 0.5 WIP +- Version bump +- Stole i18n Patch from e-tobi +- Make gcc happy by using (char *) casts and inserting some paranthesis + @@ -55,7 +55,7 @@ endif ### The object files (add further files here): OBJS = $(PLUGIN).o \ - menu-vdrrip.o movie.o templates.o codecs.o queue.o vdrriprecordings.o a-tools.o i18n.o + menu-vdrrip.o movie.o templates.o codecs.o queue.o vdrriprecordings.o a-tools.o ifdef VDRRIP_DVD DEFINES += -DVDRRIP_DVD @@ -76,9 +76,34 @@ $(DEPFILE): Makefile -include $(DEPFILE) +### Internationalization (I18N): + +PODIR = po +LOCALEDIR = $(VDRDIR)/locale +I18Npo = $(wildcard $(PODIR)/*.po) +I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Npot = $(PODIR)/$(PLUGIN).pot + +%.mo: %.po + msgfmt -c -o $@ $< + +$(I18Npot): $(wildcard *.c) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<tobias.grimm@e-tobi.net>' -o $@ $^ + +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + @touch $@ + +$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + @mkdir -p $(dir $@) + cp $< $@ + +.PHONY: i18n +i18n: $(I18Nmsgs) + ### Targets: -all: libvdr-$(PLUGIN).so +all: libvdr-$(PLUGIN).so i18n libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@ @@ -93,4 +118,5 @@ dist: clean @echo Distribution package created as $(PACKAGE).tgz clean: + @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ @@ -91,7 +91,7 @@ int strnumcol(const char *s, const char *d) { } char *strgrep(const char *s, FILE *f) { - char *s1 = ""; + char *s1 = (char *)""; size_t i = 0; // let's do some checks @@ -20,7 +20,7 @@ extern const char *MEncoder; cCodecs::cCodecs() { VCodecs = ACodecs = Containers = NULL; - queryCodecs(VCODECS, ACODECS); + queryCodecs((char *)VCODECS, (char *)ACODECS); queryContainers(); } @@ -117,13 +117,13 @@ void cCodecs::queryContainers() { Containers = (char**)malloc(NumContainers * sizeof(char*)); - Containers[0] = "avi"; + Containers[0] = (char *)"avi"; if (VdrripSetup.Ogm == 1) { - Containers[i] = "ogm"; + Containers[i] = (char *)"ogm"; i++;} - if (VdrripSetup.Matroska == 1) {Containers[i] = "matroska";} + if (VdrripSetup.Matroska == 1) {Containers[i] = (char *)"matroska";} } @@ -1,1356 +0,0 @@ -// i18n.c - -#include "i18n.h" - -const tI18nPhrase Phrases[] = { - { "encode vdr-recording", - "VDR-Aufzeichnung encodieren", - "",// TODO - "Comprimi registrazioni di vdr", - "",// TODO - "",// TODO - "Encoder un enregistrement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "edit encoding queue", - "Warteschlange bearbeiten", - "",// TODO - "Visualizza coda di compressione", - "",// TODO - "",// TODO - "Voir les encodages en attente", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "edit templates", - "Schablonen bearbeiten", - "",// TODO - "Editare le maschere", - "",// TODO - "",// TODO - "Editer les gabarits", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "encoding queue", - "Warteschlange", - "",// TODO - "Coda di compressione", - "",// TODO - "",// TODO - "Queue d'encodage", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "edit template", - "Schablone bearbeiten", - "",// TODO - "Editare la maschera", - "",// TODO - "",// TODO - "Editer les gabarits", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "reading movie-data...", - "lese Film-Daten...", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - - { "edit", - "bearbeiten", - "",// TODO - "Editare", - "",// TODO - "",// TODO - "Editer", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "new", - "neu", - "",// TODO - "Nuovo", - "",// TODO - "",// TODO - "Nouveau", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "delete", - "löschen", - "",// TODO - "Cancellare", - "",// TODO - "",// TODO - "Effacer", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "delete template %s ?", - "Schablone %s löschen ?", - "",// TODO - "Cancellare maschera %s ?", - "",// TODO - "",// TODO - "Effacer le gabarit %s ?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Name", - "Name", - "",// TODO - "Nome", - "",// TODO - "",// TODO - "Nom", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "FileSize", - "Datei-Grösse", - "",// TODO - "Dimensione file", - "",// TODO - "",// TODO - "TailleFich", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "FileNumbers", - "Anzahl Dateien", - "",// TODO - "Numero di file", - "",// TODO - "",// TODO - "Nb fichiers", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "BitrateVideo", - "Bitrate Video", - "",// TODO - "Video bitrate", - "",// TODO - "",// TODO - "Bitrate Video", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "BitrateAudio", - "Bitrate Audio", - "",// TODO - "Audio bitrate", - "",// TODO - "",// TODO - "Bitrate Audio", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Container", - "Container", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Video-Codec", - "Video Codec", - "",// TODO - "Codec video", - "",// TODO - "",// TODO - "Codec Video", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Audio-Codec", - "Audio Codec", - "",// TODO - "Codec audio", - "",// TODO - "",// TODO - "Codec Audio", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Bpp-Value (*100)", - "Bpp-Wert (*100)", - "",// TODO - "Valore Bpp (*100)", - "",// TODO - "",// TODO - "ValeurBpp (*100)", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "ScaleType", - "Skalierungsart", - "",// TODO - "Tipo scalatura", - "",// TODO - "",// TODO - "Dimensionnement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "encode movie", - "Film encodieren", - "",// TODO - "Compressione video", - "",// TODO - "",// TODO - "Encoder le film", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "add movie to encoding queue ?", - "Film zur Warteschlange hinzufügen ?", - "",// TODO - "Aggiungere un film alla coda di compressione ?", - "",// TODO - "",// TODO - "Ajouter le film à la queue d'encodage ?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "crop black movie boarders ?", - "schwarze Filmränder schneiden ?", - "",// TODO - "Tagliare i bordi neri del video ?", - "",// TODO - "",// TODO - "Découper le film entre les limites noires ?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "reset black movie boarders ?", - "schwarze Filmränder löschen ?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "search for black movie boarders", - "suche nach schwarzen Filmrändern", - "",// TODO - "Ricerca bordi neri nel video", - "",// TODO - "",// TODO - "Rechercher les limites noires dans le film", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "couldn't detect black movie boarders !", - "konnte keine schwarzen Filmränder erkennen !", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "add to queue", - "in Warteschl.", - "",// TODO - "Aggiunto in coda", - "",// TODO - "",// TODO - "Ajout. Queue", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "crop boarders", - "Ränder schn.", - "",// TODO - "Taglio bordi", - "",// TODO - "",// TODO - "Supp. les limites", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "reset boarders", - "Ränder lösch.", - "",// TODO - "Taglio bordi", - "",// TODO - "",// TODO - "Supp. les limites", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "expert modus(off)", - "Exp.-Modus(aus)", - "",// TODO - "Modo esperto(off)", - "",// TODO - "",// TODO - "Mode Expert(off)", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "expert modus(on)", - "Exp.-Modus(ein)", - "",// TODO - "Modo esperto(on)", - "",// TODO - "",// TODO - "Mode Expert(on)", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Template", - "Schablone", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "Gabarit", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Audio-Str.", - "Audiospur", - "",// TODO - "Stream audio", - "",// TODO - "",// TODO - "Flux Audio", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "MovieData", - "Film-Daten", - "",// TODO - "Dati del Film", - "",// TODO - "",// TODO - "Film-Infos", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "CropData", - "Schnitt-Daten", - "",// TODO - "Valori di taglio", - "",// TODO - "",// TODO - "ValeursDécoupage", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "ScaleData", - "Skalierung", - "",// TODO - "Valore di scalatura", - "",// TODO - "",// TODO - "ValeursRedimensionnement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "ScaleWidth", - "Skal.-breite", - "",// TODO - "Scalatura larghezza", - "",// TODO - "",// TODO - "Largeur Redimensionnement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "ScaleHeight", - "Skal.-höhe", - "",// TODO - "Scalatura altezza", - "",// TODO - "",// TODO - "Hauteur Redimensionnement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "------ expert settings: ------", - "--- Experten-Einstellungen: ---", - "",// TODO - "------ settaggi esperto: ------", - "",// TODO - "",// TODO - "--- Paramètres Mode Expert: ---", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "- adjust crop values:", - "- Schnittwerte anpassen:", - "",// TODO - "- aggiustatura valori di taglio:", - "",// TODO - "",// TODO - "- Ajuster les valeurs de découpage:", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "CropWidth", - "Schnittbreite", - "",// TODO - "Taglio larghezza", - "",// TODO - "",// TODO - "Largeur Découpage", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "CropHeight", - "Schnitthöhe", - "",// TODO - "Taglio altezza", - "",// TODO - "",// TODO - "Hauteur Découpage", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "- postprocessing Filters(%s):", - "- Nachbearbeitungsfilter(%s):", - "",// TODO - "- Filtri dopo il processo(%s):", - "",// TODO - "",// TODO - "- Filtres de PostTraitement(%s):", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "- remaining:", - "- sonstiges:", - "",// TODO - "- rimanenti:", - "",// TODO - "",// TODO - "- restant:", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "MaxScaleWidth", - "max. Skal.-breite", - "",// TODO - "Massima scalatura larghezza", - "",// TODO - "",// TODO - "LargeurMaxiRedimensionnement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "MinScaleWidth", - "min. Skal.-breite", - "",// TODO - "Minima scalatura larghezza", - "",// TODO - "",// TODO - "LargeurMiniRedimensionnement", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Crop Mode", - "Schnittmodus", - "",// TODO - "Modo di taglio", - "",// TODO - "",// TODO - "Mode de découpage", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Crop DetectLength (s)", - "Schnitt-Suchdauer (s)", - "",// TODO - "Ricerca larghezza di taglio (s)", - "",// TODO - "",// TODO - "Découpage-Longeur de détection (s)", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "Rename movie after encoding", - "Film nach Enc. umbenennen", - "",// TODO - "Rinnominare il film dopo la compressione", - "",// TODO - "",// TODO - "Renommer le film après l'encodage", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "up", - "nach oben", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "down", - "nach unten", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "switch mode", - "Modus wechseln", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "<ok> for preview-mode", - "<ok> fuer Vorschau-Modus", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "the queuefile is locked by the queuehandler !", - "die Warteschlange wird momentan vom queuehandler gesperrt !", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - - { "delete movie %s from queue ?", - "Film %s von Warteschl. löschen ?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - - { "not used", - "keine Nutzung", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "unknown", - "unbekannt", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - - { "not found", - "nicht gefunden", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif - }, - -#ifdef VDRRIP_DVD - { "encode dvd", - "DVD encodieren", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - - { "back", - "zurueck", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - - { "checking dvd...", - "ueberpruefe dvd...", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - - { "Title*", - "Titel*", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - - { "accept", - "akzeptieren", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - - { "reading audio-data from dvd...", - "lese Audio-Daten von DVD...", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO -#if VDRVERSNUM>10301 - "",// TODO -#endif //VDRVERSNUM - }, - -#endif //VDRRIP_DVD - - { NULL } - }; @@ -1,10 +0,0 @@ -// i18n.h - -#ifndef _I18N__H -#define _I18N__H - -#include <vdr/i18n.h> - -extern const tI18nPhrase Phrases[]; - -#endif //_I18N__H diff --git a/menu-vdrrip.c b/menu-vdrrip.c index d7d3f2f..b4a13d3 100755 --- a/menu-vdrrip.c +++ b/menu-vdrrip.c @@ -787,13 +787,13 @@ void cMenuVdrripMovie::SetHelpKeys() { if (Current() == 0) { SetHelp(tr("ABC/abc"), tr("Overwrite"), tr("Delete"), NULL); } else { - MovOSD.ScaleType == 1 | MovOSD.ScaleType == 3 ? Crop = true : Crop = false; - MovOSD.CropWidth == -1 && MovOSD.CropHeight == -1 ? CropReset = false : + (MovOSD.ScaleType == 1) | (MovOSD.ScaleType == 3) ? Crop = true : Crop = false; + (MovOSD.CropWidth == -1) && (MovOSD.CropHeight == -1) ? CropReset = false : CropReset = true; SetHelp(tr("add to queue"), - Crop ? tr(CropReset ? "reset boarders" : "crop boarders" ) : NULL, - tr(Expert ? "expert modus(off)" : "expert modus(on)"), + Crop ? CropReset ? tr("reset boarders") : tr("crop boarders") : NULL, + Expert ? tr("expert modus(off)") : tr("expert modus(on)"), NULL); } } @@ -1165,7 +1165,7 @@ eOSState cMenuVdrripMovie::ProcessKey(eKeys Key) { } case kGreen: { - if (MovOSD.ScaleType == 1 | MovOSD.ScaleType == 3) { + if ((MovOSD.ScaleType == 1) | (MovOSD.ScaleType == 3)) { if (CropReset) { if (Interface->Confirm(tr("reset black movie boarders ?"))) { CropReset = false; @@ -13,7 +13,7 @@ #include <vdr/menu.h> #include "menu-vdrrip.h" #include "movie.h" -#include "i18n.h" +#include <vdr/i18n.h> #include "a-tools.h" static const char *VERSION = "0.3.0"; @@ -117,7 +117,6 @@ bool cPluginVdrrip::Initialize(void) bool cPluginVdrrip::Start(void) { // Start any background activities the plugin shall perform. - RegisterI18n(Phrases); return true; } |