Commits

Colin Woodbury committed f182b38

Portuguese translation now usable

- Had to fix some errors, and tie everything together in Aura/Flags.hs.
- Added credits to man page.

Comments (0)

Files changed (5)

           | SwedishOut
           | GermanOut
           | SpanishOut
+          | PortuOut
             deriving (Eq,Ord)
 
 allFlags :: Language -> [OptDescr Flag]
                   , ( [], ["croatian","hrvatski"], CroatianOut )
                   , ( [], ["swedish","svenska"],   SwedishOut  )
                   , ( [], ["german", "deutsch"],   GermanOut   )
-                  , ( [], ["spanish", "español"],  SpanishOut  ) ]
+                  , ( [], ["spanish", "español"],  SpanishOut  )
+                  , ( [], ["portuguese","português"], PortuOut ) ]
 
 -- `Hijacked` flags. They have original pacman functionality, but
 -- that is masked and made unique in an Aura context.
 getLanguage :: [Flag] -> Language
 getLanguage = fishOutFlag flagsAndResults english
     where flagsAndResults = zip langFlags langFuns
-          langFlags       = [JapOut,PolishOut,CroatianOut,SwedishOut,GermanOut,SpanishOut]
-          langFuns        = [japanese,polish,croatian,swedish,german,spanish]
+          langFlags       = [ JapOut,PolishOut,CroatianOut,SwedishOut
+                            , GermanOut,SpanishOut,PortuOut ]
+          langFuns        = [ japanese,polish,croatian,swedish,german
+                            , spanish,portuguese ]
 
 getSuppression :: [Flag] -> Bool
 getSuppression = fishOutFlag [(Unsuppress,False)] True

Aura/Languages.hs

 buildPackagesMsg1 Swedish  p = "Bygger paket " ++ bt p ++ "..."
 buildPackagesMsg1 German   p = "Baue Paket " ++ bt p ++ "..."
 buildPackagesMsg1 Spanish  p = "Construyendo " ++ bt p ++ "..."
-buildPackagesMsg1 Portuguese p = "Compilando " ++ br p ++ "..."
+buildPackagesMsg1 Portuguese p = "Compilando " ++ bt p ++ "..."
 
 checkHotEditMsg1 :: Language -> String -> String
 checkHotEditMsg1 English  p =
 getVirtualConflictsMsg3 Spanish d dVer pro proVer =
     "La dependencia " ++ bt d ++ " requiere la versión " ++ bt dVer ++
     " pero el paquete " ++ bt pro ++ ", que la provee, da la versión " ++ bt proVer
-getVirtualConfictsMsg3 Portuguese d dVer pro proVer = 
+getVirtualConflictsMsg3 Portuguese d dVer pro proVer = 
     "A dependência " ++ bt d ++ " requer a versão " ++ bt dVer ++ 
-    " entretanto, o pacote" ++ bt pro ++ ", que o provê, possui a versão " ++ bt proVer
+    " entretanto, o pacote " ++ bt pro ++ ", que o provê, possui a versão " ++ bt proVer
 
 -----------------
 -- aura functions
     "Welche Version von " ++ bt p ++ " möchten Sie haben?"
 getDowngradeChoiceMsg1 Spanish p =
     "¿Qué versión de " ++ bt p ++ " quieres?"
-getDowngradeChoiceMSG1 Portuguese p =
+getDowngradeChoiceMsg1 Portuguese p =
      "Qual versão de " ++ bt p ++ " deseja?"
 
 backupCacheMsg1 :: Language -> String
 manpageMsg Swedish  = "Hänvisa till auras `man`-sida för detaljerade alternativ."
 manpageMsg German   = "Lesen Sie die aura man-Seite für Details zu aura Optionen."
 manpageMsg Spanish  = "Lee la página de manual de aura para detalles sobre las opciones."
-manpageMsg Portuguese = "Leia a man page do aura para mais detalhes sobre as opções
+manpageMsg Portuguese = "Leia a man page do aura para mais detalhes sobre as opções"
 
 displayOutputLanguagesMsg1 :: Language -> String
 displayOutputLanguagesMsg1 English  = "The following languages are available:"
 optdepends=('pacman-color: For coloured pacman output in Aura.')
 options=('strip')
 source=(https://github.com/downloads/fosskers/aura/${_hkgname}-${pkgver}.tar.gz)
-md5sums=('fee06e42e1363b33a144f22e2c51449b')
+md5sums=('0ec9ee4b634904481f14062c05cdc4f7')
 build() {
     cd ${srcdir}/${_hkgname}-${pkgver}
     runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O
 \-\-german, \-\-deutsch
 .P
 \-\-spanish, \-\-español
+.P
+\-\-portuguese, \-\-português
 .SH SEE ALSO
 .P
 \fBpacman\fR(8), \fBpacman.conf\fR(5), \fBmakepkg\fR(8)
 Fredrik Haikarainen (Swedish)
 Lukas Niederbremer <Lukas.Niederbremer@HS-Osnabrueck.de> (German)
 Alejandro Gómez <alejandroogomez@gmail.com> (Spanish)
+Henry "Ingvij" Kupty (Portuguese)
 
 1.0.3.0
 -------
-- Support for `pacman-color` added.
+- Portuguese translation added. Thanks to Henry "Ingvij" Kupty!
+- Support for `pacman-color` added. Run sudo with `-E` a la:
+    sudo -E aura -Ayu
+- Fixed backslash parsing bug in `Bash`.
 
 1.0.2.2
 -------