I have alerts that I do not want to translate

Updated on November 15, 2017 in Swift 3
2 on November 12, 2017

I have alerts that I do not want to translate into Polish language can someone have an idea

else if Int(segmKolTxt.text!)! < 2 {
                if Int(katKolTxt.text!)! % Int(katSegmKol)  == Int()   {
                    let titleErrorInformacja = NSLocalizedString("🤔  Information  🤔", comment: "")
                    let messageInformacja = NSLocalizedString("To the angle \(String(describing: self.katKolTxt.text!))° You can use the template bend  90° from \(String(describing: Int(round(Double(szablSegmKol))))) segments,with radius \(String(describing: self.promKolTxt.text!)) mm and the diameter of the bend \(String(describing: self.sredKolTxt.text!)) mm  . Use only \(String(describing: self.segmKolTxt.text!)) segment , or (0,5 + 0,5)", comment: "")
                    let alert = UIAlertController(title: titleErrorInformacja, message: messageInformacja, preferredStyle: .alert)
                    alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
                    self.present(alert, animated: true, completion: nil)
                }}else if Int(katKolTxt.text!)! % Int(katSegmKol) == Int()   {
                let titleErrorInformacja = NSLocalizedString("🤔  Information  🤔", comment: "")
                let messageInformacja = NSLocalizedString("To the angle \(String(describing: self.katKolTxt.text!))° You can use the template bend  90° from \(String(describing: Int(round(Double(szablSegmKol))))) segments,with radius \(String(describing: self.promKolTxt.text!)) mm and the diameter of the bend \(String(describing: self.sredKolTxt.text!)) mm  . Use only \(String(describing: self.segmKolTxt.text!)) segment , or (0,5 + \(String(describing: Int(self.segmKolTxt.text!)! - 1)) + 0,5)", comment: "")
                let alert = UIAlertController(title: titleErrorInformacja, message: messageInformacja, preferredStyle: .alert)
                alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
                self.present(alert, animated: true, completion: nil)
            }

/* No comment provided by engineer. */

“To the angle (String(describing: self.katKolTxt.text!))° You can use the template bend  90° from (String(describing: Int(round(Double(szablSegmKol))))) segments,with radius (String(describing: self.promKolTxt.text!)) mm and the diameter of the bend (String(describing: self.sredKolTxt.text!)) mm  . Use only (String(describing: self.segmKolTxt.text!)) segment , or (0,5 + (String(describing: Int(self.segmKolTxt.text!)! – 1)) + 0,5)” = “Do kąta \\(String(describing: self.katKolTxt.text!))° możesz użyć szablonu kolana 90° z \\(String(describing: Int(round(szablSegmKol)))) segmentów,o promieniu \\(String(describing: self.promKolTxt.text!)) mm i średnicy kolana \\(String(describing: self.sredKolTxt.text!)) mm  . Użyj tylko \\(String(describing: self.segmKolTxt.text!)) segmentów , czyli (0,5 + \\(String(describing: Int(self.segmKolTxt.text!)! – 1)) + 0,5)”;

/* No comment provided by engineer. */

“To the angle (String(describing: self.katKolTxt.text!))° You can use the template bend  90° from (String(describing: Int(round(Double(szablSegmKol))))) segments,with radius (String(describing: self.promKolTxt.text!)) mm and the diameter of the bend (String(describing: self.sredKolTxt.text!)) mm  . Use only (String(describing: self.segmKolTxt.text!)) segment , or (0,5 + 0,5)” = “Do kąta \\(String(describing: self.katKolTxt.text!))° możesz użyć szablonu kolana 90° z \\(String(describing: Int(round(szablSegmKol)))) segmentów,o promieniu \\(String(describing: self.promKolTxt.text!)) mm i średnicy kolana \\(String(describing: self.sredKolTxt.text!)) mm  . Użyj tylko \\(String(describing: self.segmKolTxt.text!)) segmentu , czyli (0,5 + 0,5)”;

 
  • Liked by
Reply
1 on November 15, 2017

I’m not sure if I understand correctly: You want to write an Alert with Polish Words in it, but it gives you an Error? The answer will be ASCII-Table (I’ll search it after lunch).

on November 15, 2017

The answer will be ASCII-Table (I’ll search it after lunch).

From Ben

Ah sorry that was complete Bull****. Can you try to rephrase your problem? I don’t understand what you want…

Show more replies
  • Liked by
Reply
Cancel
Loading more replies