It's better but you should use:
```java
I18N.tr("Simple Style Editor - {0}",layer.getName());
```