mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 13:17:46 +00:00
shpkpart: Support localization
This commit is contained in:
parent
e49ebcea33
commit
edc0439a0a
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include "shpkpart.h"
|
#include "shpkpart.h"
|
||||||
#include "dxbc_module.h"
|
#include "dxbc_module.h"
|
||||||
#include "dxbc_reader.h"
|
#include "dxbc_reader.h"
|
||||||
|
#include <KLocalizedString>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <spirv_glsl.hpp>
|
#include <spirv_glsl.hpp>
|
||||||
|
@ -53,11 +54,11 @@ void SHPKPart::load(physis_Buffer buffer)
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < shader.num_vertex_shaders; i++) {
|
for (int i = 0; i < shader.num_vertex_shaders; i++) {
|
||||||
addShader(shader.vertex_shaders[i], QStringLiteral("Vertex Shader %1").arg(i));
|
addShader(shader.vertex_shaders[i], i18nc("@title:tab", "Vertex Shader %1").arg(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < shader.num_pixel_shaders; i++) {
|
for (int i = 0; i < shader.num_pixel_shaders; i++) {
|
||||||
addShader(shader.pixel_shaders[i], QStringLiteral("Pixel Shader %1").arg(i));
|
addShader(shader.pixel_shaders[i], i18nc("@title:tab", "Pixel Shader %1").arg(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue